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,43 +1,38 @@
|
|
|
1
|
-
import { Button,
|
|
1
|
+
import { Button, DialogFooter, Tooltip } from '@blueprintjs/core';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
import type {
|
|
4
|
+
ACSExportOptions,
|
|
5
|
+
Spectrum1D,
|
|
6
|
+
Spectrum,
|
|
7
|
+
} from '@zakodium/nmrium-core';
|
|
8
|
+
import type { FormEvent } from 'react';
|
|
9
|
+
import {
|
|
10
|
+
FieldGroupSVGTextStyleFields,
|
|
11
|
+
Form,
|
|
12
|
+
assert,
|
|
13
|
+
svgTextStyleFieldsSchema,
|
|
14
|
+
useForm,
|
|
15
|
+
} from 'react-science/ui';
|
|
16
|
+
import { z } from 'zod';
|
|
17
|
+
|
|
18
|
+
import { isSpectrum1D } from '../../data/data1d/Spectrum1D/index.js';
|
|
19
|
+
import { ClipboardFallbackModal } from '../../utils/clipboard/clipboardComponents.tsx';
|
|
20
|
+
import { useClipboard } from '../../utils/clipboard/clipboardHooks.ts';
|
|
21
|
+
import { usePreferences } from '../context/PreferencesContext.js';
|
|
22
|
+
import { useToaster } from '../context/ToasterContext.tsx';
|
|
13
23
|
import { EmptyText } from '../elements/EmptyText.js';
|
|
14
|
-
import {
|
|
15
|
-
import type { LabelStyle } from '../elements/Label.js';
|
|
16
|
-
import Label from '../elements/Label.js';
|
|
17
|
-
import { Select2Controller } from '../elements/Select2Controller.tsx';
|
|
24
|
+
import { StandardDialog } from '../elements/StandardDialog.tsx';
|
|
18
25
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
19
|
-
import {
|
|
20
|
-
import useSpectrum from '../hooks/useSpectrum.js';
|
|
26
|
+
import { buildPublicationString } from '../hooks/use_publication_strings.js';
|
|
21
27
|
|
|
22
28
|
const Body = styled.div`
|
|
23
29
|
border: 1px solid #e9e9e9;
|
|
24
30
|
min-height: 180px;
|
|
25
31
|
padding: 5px;
|
|
26
32
|
width: 100%;
|
|
33
|
+
margin-top: 15px;
|
|
27
34
|
`;
|
|
28
35
|
|
|
29
|
-
const labelStyle: LabelStyle = {
|
|
30
|
-
label: {
|
|
31
|
-
color: '#232323',
|
|
32
|
-
width: '150px',
|
|
33
|
-
},
|
|
34
|
-
wrapper: {
|
|
35
|
-
display: 'flex',
|
|
36
|
-
justifyContent: 'flex-start',
|
|
37
|
-
},
|
|
38
|
-
container: { padding: '5px 0' },
|
|
39
|
-
};
|
|
40
|
-
|
|
41
36
|
interface SelectItem<T> {
|
|
42
37
|
label: string;
|
|
43
38
|
value: T;
|
|
@@ -47,23 +42,25 @@ type ExportFormatType = 'IMJA' | 'IMJ' | 'D';
|
|
|
47
42
|
|
|
48
43
|
type ExportSignalKind = ACSExportOptions['signalKind'];
|
|
49
44
|
|
|
50
|
-
const validationSchema =
|
|
51
|
-
|
|
52
|
-
.
|
|
53
|
-
.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
45
|
+
const validationSchema = z.object({
|
|
46
|
+
acs: z.object({
|
|
47
|
+
signalKind: z.enum(['all', 'signal']),
|
|
48
|
+
ascending: z.boolean(),
|
|
49
|
+
format: z.string(),
|
|
50
|
+
couplingFormat: z.string(),
|
|
51
|
+
deltaFormat: z.string(),
|
|
52
|
+
textStyle: svgTextStyleFieldsSchema.optional(),
|
|
53
|
+
}),
|
|
54
|
+
isPublicationStringShown: z.boolean(),
|
|
58
55
|
});
|
|
59
56
|
|
|
60
57
|
const exportOptions: Array<SelectItem<ExportSignalKind>> = [
|
|
61
58
|
{
|
|
62
|
-
label: '
|
|
59
|
+
label: 'All',
|
|
63
60
|
value: 'all',
|
|
64
61
|
},
|
|
65
62
|
{
|
|
66
|
-
label: '
|
|
63
|
+
label: 'Only signals',
|
|
67
64
|
value: 'signal',
|
|
68
65
|
},
|
|
69
66
|
];
|
|
@@ -84,7 +81,17 @@ const exportFormats: Array<SelectItem<ExportFormatType>> = [
|
|
|
84
81
|
|
|
85
82
|
interface InnerPublicationStringModalProps {
|
|
86
83
|
onClose: () => void;
|
|
87
|
-
|
|
84
|
+
|
|
85
|
+
acsExportOptions: ACSExportOptions;
|
|
86
|
+
spectrum: Spectrum;
|
|
87
|
+
publicationStringVisibility?: {
|
|
88
|
+
isShown: boolean;
|
|
89
|
+
toggle: () => void;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
allowTextStyle?: boolean;
|
|
93
|
+
saveLabel?: string;
|
|
94
|
+
copyOnSave?: boolean;
|
|
88
95
|
}
|
|
89
96
|
|
|
90
97
|
interface PublicationStringModalProps extends InnerPublicationStringModalProps {
|
|
@@ -99,110 +106,203 @@ export function PublicationStringModal(props: PublicationStringModalProps) {
|
|
|
99
106
|
return <InnerPublicationStringModal {...otherProps} />;
|
|
100
107
|
}
|
|
101
108
|
|
|
102
|
-
const defaultOptions = {
|
|
103
|
-
signalKind: 'signal',
|
|
104
|
-
ascending: true,
|
|
105
|
-
format: 'IMJA',
|
|
106
|
-
couplingFormat: '0.00',
|
|
107
|
-
deltaFormat: '0.00',
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
function useACSSettings() {
|
|
111
|
-
const nucleus = useActiveNucleusTab();
|
|
112
|
-
const { current } = usePreferences();
|
|
113
|
-
return current.acsExportSettings[nucleus] || defaultOptions;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
109
|
function InnerPublicationStringModal(props: InnerPublicationStringModalProps) {
|
|
117
|
-
const {
|
|
118
|
-
|
|
110
|
+
const {
|
|
111
|
+
onClose,
|
|
112
|
+
acsExportOptions,
|
|
113
|
+
spectrum,
|
|
114
|
+
publicationStringVisibility,
|
|
115
|
+
allowTextStyle = false,
|
|
116
|
+
saveLabel = 'Apply',
|
|
117
|
+
copyOnSave = false,
|
|
118
|
+
} = props;
|
|
119
119
|
const { dispatch } = usePreferences();
|
|
120
|
-
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
|
|
121
|
+
const toaster = useToaster();
|
|
122
|
+
const { rawWriteWithType, shouldFallback, text, cleanShouldFallback } =
|
|
123
|
+
useClipboard();
|
|
124
|
+
function sendToClipboard(value: string) {
|
|
125
|
+
void rawWriteWithType(value, 'text/html').then(() =>
|
|
126
|
+
toaster.show({ message: 'Data copied to clipboard', intent: 'success' }),
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
const defaultValues = validationSchema.encode({
|
|
131
|
+
acs: acsExportOptions,
|
|
132
|
+
isPublicationStringShown: publicationStringVisibility?.isShown ?? false,
|
|
124
133
|
});
|
|
134
|
+
if (
|
|
135
|
+
defaultValues.acs.textStyle &&
|
|
136
|
+
defaultValues.acs.textStyle.fontSize === undefined
|
|
137
|
+
) {
|
|
138
|
+
defaultValues.acs.textStyle.fontSize = '12';
|
|
139
|
+
}
|
|
125
140
|
|
|
126
|
-
const
|
|
141
|
+
const form = useForm({
|
|
142
|
+
defaultValues,
|
|
143
|
+
validators: { onChange: validationSchema },
|
|
144
|
+
onSubmit: ({ value, formApi }) => {
|
|
145
|
+
assert(spectrum && isSpectrum1D(spectrum));
|
|
146
|
+
const nucleus = spectrum.info.nucleus;
|
|
127
147
|
|
|
128
|
-
|
|
148
|
+
const parsedValues = validationSchema.parse(value);
|
|
149
|
+
if (
|
|
150
|
+
!formApi.state.fieldMeta['acs.textStyle.fontSize']?.isTouched &&
|
|
151
|
+
parsedValues.acs.textStyle?.fontSize === 12
|
|
152
|
+
) {
|
|
153
|
+
parsedValues.acs.textStyle.fontSize = undefined;
|
|
154
|
+
}
|
|
129
155
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
156
|
+
// Apply
|
|
157
|
+
dispatch({
|
|
158
|
+
type: 'CHANGE_EXPORT_ACS_SETTINGS',
|
|
159
|
+
payload: { options: parsedValues.acs, nucleus },
|
|
160
|
+
});
|
|
161
|
+
if (
|
|
162
|
+
publicationStringVisibility &&
|
|
163
|
+
parsedValues.isPublicationStringShown !==
|
|
164
|
+
publicationStringVisibility.isShown
|
|
165
|
+
) {
|
|
166
|
+
publicationStringVisibility.toggle();
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// Copy
|
|
170
|
+
if (copyOnSave) {
|
|
171
|
+
const publicationString = buildPublicationString({
|
|
172
|
+
spectrum,
|
|
173
|
+
acs: parsedValues.acs,
|
|
174
|
+
});
|
|
175
|
+
sendToClipboard(publicationString);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// Close
|
|
179
|
+
onClose();
|
|
180
|
+
},
|
|
151
181
|
});
|
|
152
182
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
onCopyClick(value);
|
|
159
|
-
onClose();
|
|
183
|
+
if (!spectrum || !isSpectrum1D(spectrum)) return null;
|
|
184
|
+
|
|
185
|
+
function onSubmit(event: FormEvent<HTMLFormElement>) {
|
|
186
|
+
event.preventDefault();
|
|
187
|
+
void form.handleSubmit(event);
|
|
160
188
|
}
|
|
161
189
|
|
|
162
190
|
return (
|
|
163
|
-
<
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
191
|
+
<form.AppForm>
|
|
192
|
+
<StandardDialog
|
|
193
|
+
isOpen
|
|
194
|
+
title="Publication string"
|
|
195
|
+
icon={
|
|
196
|
+
<span style={{ paddingRight: '16px' }}>{spectrum.info.nucleus}</span>
|
|
197
|
+
}
|
|
198
|
+
onClose={onClose}
|
|
199
|
+
style={{ minWidth: 600 }}
|
|
200
|
+
>
|
|
201
|
+
<Form noValidate onSubmit={onSubmit} layout="inline">
|
|
202
|
+
<HelpForm>This configuration is at the nucleus level.</HelpForm>
|
|
203
|
+
<StyledDialogBody>
|
|
204
|
+
<form.AppField name="acs.signalKind">
|
|
205
|
+
{(field) => <field.Select label="Filter" items={exportOptions} />}
|
|
206
|
+
</form.AppField>
|
|
207
|
+
<form.AppField name="acs.format">
|
|
208
|
+
{(field) => <field.Select label="Format" items={exportFormats} />}
|
|
209
|
+
</form.AppField>
|
|
210
|
+
<form.AppField name="acs.ascending">
|
|
211
|
+
{(field) => <field.Checkbox label="Ascending order" />}
|
|
212
|
+
</form.AppField>
|
|
213
|
+
<form.AppField name="acs.deltaFormat">
|
|
214
|
+
{(field) => <field.Input label="Delta format" />}
|
|
215
|
+
</form.AppField>
|
|
216
|
+
<form.AppField name="acs.couplingFormat">
|
|
217
|
+
{(field) => <field.Input label="Couplings format" />}
|
|
218
|
+
</form.AppField>
|
|
219
|
+
|
|
220
|
+
{allowTextStyle && (
|
|
221
|
+
<FieldGroupSVGTextStyleFields
|
|
222
|
+
form={form}
|
|
223
|
+
fields="acs.textStyle"
|
|
224
|
+
label="Text style"
|
|
225
|
+
previewText="Publication string"
|
|
226
|
+
/>
|
|
227
|
+
)}
|
|
228
|
+
|
|
229
|
+
<Body>
|
|
230
|
+
<form.Subscribe selector={(s) => s.values}>
|
|
231
|
+
{(values) => (
|
|
232
|
+
<PublicationStringPreview
|
|
233
|
+
values={values}
|
|
234
|
+
spectrum={spectrum}
|
|
235
|
+
onCopy={sendToClipboard}
|
|
236
|
+
/>
|
|
237
|
+
)}
|
|
238
|
+
</form.Subscribe>
|
|
239
|
+
</Body>
|
|
240
|
+
</StyledDialogBody>
|
|
241
|
+
<DialogFooter
|
|
242
|
+
actions={
|
|
243
|
+
<form.SubmitButton intent="success">
|
|
244
|
+
{saveLabel}
|
|
245
|
+
</form.SubmitButton>
|
|
246
|
+
}
|
|
247
|
+
>
|
|
248
|
+
{publicationStringVisibility && (
|
|
249
|
+
<form.AppField name="isPublicationStringShown">
|
|
250
|
+
{(field) => (
|
|
251
|
+
<field.Checkbox
|
|
252
|
+
label="Show publication string"
|
|
253
|
+
style={{ display: 'inline-block' }}
|
|
254
|
+
/>
|
|
255
|
+
)}
|
|
256
|
+
</form.AppField>
|
|
257
|
+
)}
|
|
258
|
+
</DialogFooter>
|
|
259
|
+
</Form>
|
|
260
|
+
</StandardDialog>
|
|
261
|
+
|
|
262
|
+
<ClipboardFallbackModal
|
|
263
|
+
mode={shouldFallback}
|
|
264
|
+
onDismiss={cleanShouldFallback}
|
|
265
|
+
text={text}
|
|
266
|
+
label="Preview publication string"
|
|
267
|
+
/>
|
|
268
|
+
</form.AppForm>
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
const CopyPreviewButton = styled(Button)`
|
|
273
|
+
margin-left: 5px;
|
|
274
|
+
margin-bottom: 5px;
|
|
275
|
+
`;
|
|
276
|
+
|
|
277
|
+
const HelpForm = styled.p`
|
|
278
|
+
margin: 8px;
|
|
279
|
+
`;
|
|
280
|
+
|
|
281
|
+
interface PublicationStringPreviewProps {
|
|
282
|
+
spectrum: Spectrum1D;
|
|
283
|
+
values: z.input<typeof validationSchema>;
|
|
284
|
+
onCopy: (value: string) => void;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
function PublicationStringPreview(props: PublicationStringPreviewProps) {
|
|
288
|
+
const { spectrum, values, onCopy } = props;
|
|
289
|
+
|
|
290
|
+
const { acs } = validationSchema.parse(values);
|
|
291
|
+
const value = buildPublicationString({ spectrum, acs });
|
|
292
|
+
|
|
293
|
+
if (!value) return <EmptyText text="No publication string" />;
|
|
294
|
+
|
|
295
|
+
return (
|
|
296
|
+
<>
|
|
297
|
+
<Tooltip
|
|
298
|
+
content="Copy"
|
|
299
|
+
targetProps={{ style: { float: 'right' } }}
|
|
300
|
+
placement="top"
|
|
301
|
+
>
|
|
302
|
+
<CopyPreviewButton onClick={() => onCopy(value)} icon="duplicate" />
|
|
303
|
+
</Tooltip>
|
|
304
|
+
{/* eslint-disable-next-line react/no-danger */}
|
|
305
|
+
<div dangerouslySetInnerHTML={{ __html: value }} />
|
|
306
|
+
</>
|
|
207
307
|
);
|
|
208
308
|
}
|
|
@@ -1,33 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Checkbox,
|
|
3
|
-
Dialog,
|
|
4
|
-
DialogFooter,
|
|
5
|
-
Radio,
|
|
6
|
-
RadioGroup,
|
|
7
|
-
} from '@blueprintjs/core';
|
|
1
|
+
import { Checkbox, DialogFooter, Radio, RadioGroup } from '@blueprintjs/core';
|
|
8
2
|
import { useMemo } from 'react';
|
|
9
3
|
import { Controller, useForm } from 'react-hook-form';
|
|
10
4
|
|
|
11
|
-
import type { ExportOptions } from '../../data/SpectraManager.js';
|
|
12
5
|
import { DataExportOptions } from '../../data/SpectraManager.js';
|
|
13
6
|
import { useChartData } from '../context/ChartContext.js';
|
|
14
7
|
import ActionButtons from '../elements/ActionButtons.js';
|
|
15
8
|
import { Input2Controller } from '../elements/Input2Controller.js';
|
|
16
9
|
import type { LabelStyle } from '../elements/Label.js';
|
|
17
10
|
import Label from '../elements/Label.js';
|
|
11
|
+
import { StandardDialog } from '../elements/StandardDialog.tsx';
|
|
18
12
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
19
|
-
import
|
|
13
|
+
import type { SaveOptions } from '../hooks/useExport.js';
|
|
20
14
|
import { useExport } from '../hooks/useExport.js';
|
|
21
15
|
|
|
22
|
-
const INITIAL_VALUE = {
|
|
16
|
+
const INITIAL_VALUE: SaveOptions = {
|
|
23
17
|
name: '',
|
|
24
|
-
compressed: false,
|
|
25
|
-
pretty: false,
|
|
26
18
|
include: {
|
|
27
|
-
dataType: DataExportOptions.
|
|
19
|
+
dataType: DataExportOptions.SELF_CONTAINED,
|
|
28
20
|
view: false,
|
|
29
21
|
settings: false,
|
|
30
|
-
}
|
|
22
|
+
},
|
|
31
23
|
};
|
|
32
24
|
|
|
33
25
|
export const labelStyle: LabelStyle = {
|
|
@@ -57,15 +49,14 @@ function SaveAsModal(props: SaveAsModalProps) {
|
|
|
57
49
|
|
|
58
50
|
return <InnerSaveAsModal onCloseDialog={onCloseDialog} />;
|
|
59
51
|
}
|
|
52
|
+
|
|
60
53
|
function InnerSaveAsModal(props: InnerSaveAsModalProps) {
|
|
61
54
|
const { onCloseDialog } = props;
|
|
62
|
-
const {
|
|
55
|
+
const { data, aggregator } = useChartData();
|
|
63
56
|
const { saveHandler } = useExport();
|
|
64
|
-
const experimentalFlagEnabled = useCheckExperimentalFeature();
|
|
65
|
-
|
|
66
57
|
const fileName = data[0]?.info?.name;
|
|
67
58
|
|
|
68
|
-
function submitHandler(values:
|
|
59
|
+
function submitHandler(values: SaveOptions) {
|
|
69
60
|
saveHandler(values);
|
|
70
61
|
onCloseDialog?.();
|
|
71
62
|
}
|
|
@@ -79,7 +70,7 @@ function InnerSaveAsModal(props: InnerSaveAsModalProps) {
|
|
|
79
70
|
}, [aggregator]);
|
|
80
71
|
|
|
81
72
|
return (
|
|
82
|
-
<
|
|
73
|
+
<StandardDialog
|
|
83
74
|
isOpen
|
|
84
75
|
title="Save as ... "
|
|
85
76
|
onClose={onCloseDialog}
|
|
@@ -94,12 +85,6 @@ function InnerSaveAsModal(props: InnerSaveAsModalProps) {
|
|
|
94
85
|
controllerProps={{ rules: { required: true } }}
|
|
95
86
|
/>
|
|
96
87
|
</Label>
|
|
97
|
-
<Label style={labelStyle} title="Compressed">
|
|
98
|
-
<Checkbox style={{ margin: 0 }} {...register(`compressed`)} />
|
|
99
|
-
</Label>
|
|
100
|
-
<Label style={labelStyle} title="Pretty format">
|
|
101
|
-
<Checkbox style={{ margin: 0 }} {...register(`pretty`)} />
|
|
102
|
-
</Label>
|
|
103
88
|
<Label style={labelStyle} title="Include view">
|
|
104
89
|
<Checkbox style={{ margin: 0 }} {...register(`include.view`)} />
|
|
105
90
|
</Label>
|
|
@@ -114,33 +99,16 @@ function InnerSaveAsModal(props: InnerSaveAsModalProps) {
|
|
|
114
99
|
const { value, ref, ...otherFieldProps } = field;
|
|
115
100
|
return (
|
|
116
101
|
<RadioGroup inline selectedValue={value} {...otherFieldProps}>
|
|
117
|
-
<Radio label="Raw data" value={DataExportOptions.RAW_DATA} />
|
|
118
102
|
<Radio
|
|
119
|
-
label="
|
|
120
|
-
value={DataExportOptions.
|
|
121
|
-
|
|
103
|
+
label="External data embed"
|
|
104
|
+
value={DataExportOptions.SELF_CONTAINED}
|
|
105
|
+
/>
|
|
106
|
+
<Radio
|
|
107
|
+
label="External data linked"
|
|
108
|
+
disabled={!containsLinkedFiles}
|
|
109
|
+
value={DataExportOptions.SELF_CONTAINED_EXTERNAL_DATASOURCE}
|
|
122
110
|
/>
|
|
123
111
|
<Radio label="No data" value={DataExportOptions.NO_DATA} />
|
|
124
|
-
|
|
125
|
-
{/*
|
|
126
|
-
* Radio group works with Children.map.
|
|
127
|
-
* So Radio must be direct children of RadioGroup.
|
|
128
|
-
*/}
|
|
129
|
-
{experimentalFlagEnabled && (
|
|
130
|
-
<Radio
|
|
131
|
-
label="Full data (external data embed, experimental)"
|
|
132
|
-
value={DataExportOptions.SELF_CONTAINED}
|
|
133
|
-
/>
|
|
134
|
-
)}
|
|
135
|
-
{experimentalFlagEnabled && (
|
|
136
|
-
<Radio
|
|
137
|
-
label="Full data (external data linked, experimental)"
|
|
138
|
-
disabled={!containsLinkedFiles}
|
|
139
|
-
value={
|
|
140
|
-
DataExportOptions.SELF_CONTAINED_EXTERNAL_DATASOURCE
|
|
141
|
-
}
|
|
142
|
-
/>
|
|
143
|
-
)}
|
|
144
112
|
</RadioGroup>
|
|
145
113
|
);
|
|
146
114
|
}}
|
|
@@ -157,7 +125,7 @@ function InnerSaveAsModal(props: InnerSaveAsModalProps) {
|
|
|
157
125
|
onCancel={() => onCloseDialog?.()}
|
|
158
126
|
/>
|
|
159
127
|
</DialogFooter>
|
|
160
|
-
</
|
|
128
|
+
</StandardDialog>
|
|
161
129
|
);
|
|
162
130
|
}
|
|
163
131
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Dialog } from '@blueprintjs/core';
|
|
2
1
|
import styled from '@emotion/styled';
|
|
3
2
|
import { SvgLogoNmrium } from 'cheminfo-font';
|
|
4
3
|
import { Toolbar, useOnOff } from 'react-science/ui';
|
|
@@ -6,6 +5,7 @@ import { Toolbar, useOnOff } from 'react-science/ui';
|
|
|
6
5
|
import versionInfo from '../../../versionInfo.js';
|
|
7
6
|
import { useCore } from '../../context/CoreContext.js';
|
|
8
7
|
import Logo from '../../elements/Logo.js';
|
|
8
|
+
import { StandardDialog } from '../../elements/StandardDialog.tsx';
|
|
9
9
|
import { StyledDialogBody } from '../../elements/StyledDialogBody.js';
|
|
10
10
|
import { renderCoreSlot } from '../../utility/renderCoreSlot.js';
|
|
11
11
|
|
|
@@ -126,7 +126,7 @@ function AboutUsModal() {
|
|
|
126
126
|
tooltip="About NMRium"
|
|
127
127
|
icon={<SvgLogoNmrium />}
|
|
128
128
|
/>
|
|
129
|
-
<
|
|
129
|
+
<StandardDialog
|
|
130
130
|
isOpen={isOpenDialog}
|
|
131
131
|
onClose={closeDialog}
|
|
132
132
|
style={{
|
|
@@ -139,7 +139,7 @@ function AboutUsModal() {
|
|
|
139
139
|
<StyledDialogBody>
|
|
140
140
|
{renderCoreSlot(core, 'topbar.about_us.modal', modalContentFallback)}
|
|
141
141
|
</StyledDialogBody>
|
|
142
|
-
</
|
|
142
|
+
</StandardDialog>
|
|
143
143
|
</>
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Dialog } from '@blueprintjs/core';
|
|
2
1
|
import { SvgNmrSum } from 'cheminfo-font';
|
|
3
2
|
import { Toolbar, useOnOff } from 'react-science/ui';
|
|
4
3
|
|
|
4
|
+
import { StandardDialog } from '../../elements/StandardDialog.tsx';
|
|
5
|
+
|
|
5
6
|
import type { ChangeSumModalContentsProps } from './ChangeSumModalContents.js';
|
|
6
7
|
import { ChangeSumModalContents } from './ChangeSumModalContents.js';
|
|
7
8
|
|
|
@@ -32,10 +33,10 @@ export default function ChangeSumModal(props: ChangeSumModalProps) {
|
|
|
32
33
|
/>
|
|
33
34
|
|
|
34
35
|
{isOpenDialog && (
|
|
35
|
-
<
|
|
36
|
+
<StandardDialog
|
|
36
37
|
isOpen
|
|
37
38
|
onClose={closeDialog}
|
|
38
|
-
style={{ width: 500 }}
|
|
39
|
+
style={{ width: 500, minHeight: 450 }}
|
|
39
40
|
title={
|
|
40
41
|
currentSum
|
|
41
42
|
? `Set new ${sumType} sum (Current: ${currentSum.toFixed(2)})`
|
|
@@ -43,7 +44,7 @@ export default function ChangeSumModal(props: ChangeSumModalProps) {
|
|
|
43
44
|
}
|
|
44
45
|
>
|
|
45
46
|
<ChangeSumModalContents {...otherProps} onClose={closeDialog} />
|
|
46
|
-
</
|
|
47
|
+
</StandardDialog>
|
|
47
48
|
)}
|
|
48
49
|
</>
|
|
49
50
|
);
|
|
@@ -87,29 +87,29 @@ export default function SelectMolecule<
|
|
|
87
87
|
[setValue],
|
|
88
88
|
);
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
<
|
|
94
|
-
|
|
90
|
+
if (element && molecules && molecules.length > 0) {
|
|
91
|
+
return (
|
|
92
|
+
<Container>
|
|
93
|
+
<Title>Select a molecule as reference!</Title>
|
|
94
|
+
|
|
95
|
+
<SelectionContainer>
|
|
96
|
+
<MoleculeSelection
|
|
97
|
+
index={currentIndex}
|
|
98
|
+
molecules={molecules}
|
|
99
|
+
onChange={onChangeMoleculeSelectionHandler}
|
|
100
|
+
/>
|
|
101
|
+
<SumValue>
|
|
102
|
+
New sum for {element} will be {newSum}!
|
|
103
|
+
</SumValue>
|
|
104
|
+
</SelectionContainer>
|
|
105
|
+
</Container>
|
|
106
|
+
);
|
|
107
|
+
}
|
|
95
108
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
/>
|
|
102
|
-
<SumValue>
|
|
103
|
-
New sum for {element} will be {newSum}!
|
|
104
|
-
</SumValue>
|
|
105
|
-
</SelectionContainer>
|
|
106
|
-
</Container>
|
|
107
|
-
) : (
|
|
108
|
-
<EmptyText color={invalid ? 'red' : 'black'}>
|
|
109
|
-
You have to Select a spectrum and Add a molecule from the Structure
|
|
110
|
-
panel to select as a reference!
|
|
111
|
-
</EmptyText>
|
|
112
|
-
)}
|
|
113
|
-
</div>
|
|
109
|
+
return (
|
|
110
|
+
<EmptyText color={invalid ? 'red' : 'black'}>
|
|
111
|
+
You have to Select a spectrum and Add a molecule from the Structure panel
|
|
112
|
+
to select as a reference!
|
|
113
|
+
</EmptyText>
|
|
114
114
|
);
|
|
115
115
|
}
|
|
@@ -13,7 +13,7 @@ import type { DialogProps } from '../../elements/DialogManager.js';
|
|
|
13
13
|
import { DraggableDialog } from '../../elements/DraggableDialog.js';
|
|
14
14
|
import { StyledDialogBody } from '../../elements/StyledDialogBody.js';
|
|
15
15
|
import { TabsProvider } from '../../elements/TabsProvider.js';
|
|
16
|
-
import { useActiveNucleusTab } from '../../hooks/useActiveNucleusTab.
|
|
16
|
+
import { useActiveNucleusTab } from '../../hooks/useActiveNucleusTab.js';
|
|
17
17
|
import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
18
18
|
import useSpectrum from '../../hooks/useSpectrum.js';
|
|
19
19
|
import useEditRangeModal from '../../panels/RangesPanel/hooks/useEditRangeModal.js';
|