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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InnerNMRiumContents.js","sourceRoot":"","sources":["../../../src/component/main/InnerNMRiumContents.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAGrC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,yBAAyB,MAAM,mDAAmD,CAAC;AAC1F,OAAO,mBAAmB,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO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B,IAClB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,GACpB,EACF,KAAC,SAAS,KAAG,EACb,cACE,GAAG,EAAE,kBAAkB,EAEvB,EAAE,EAAC,cAAc,EACjB,KAAK,EAAE;oDACL,QAAQ,EAAE,UAAU;oDACpB,aAAa,EAAE,MAAM;oDACrB,MAAM,EAAE,EAAE;oDACV,IAAI,EAAE,CAAC;oDACP,KAAK,EAAE,CAAC;oDACR,GAAG,EAAE,CAAC;oDACN,MAAM,EAAE,CAAC;iDACV,IAVI,MAAM,CAAC,YAAY,CAAC,CAWzB,IACE,IACF,GACG,EACX,eAAO,EACP,KAAC,YAAY,cACX,KAAC,YAAY,IAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,GAAI,GAC/C,EACf,KAAC,uBAAuB,cACtB,KAAC,YAAY,IAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,GAAI,GACpC,IACA,GACZ,IACjB,CACJ,CAAC;AACJ,CAAC;AAMD,SAAS,YAAY,CAAC,KAAwB;IAC5C,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,EACJ,OAAO,EAAE,EAAE,gBAAgB,EAAE,EAC7B,QAAQ,GACT,GAAG,cAAc,EAAE,CAAC;IAErB,SAAS,sBAAsB,CAAC,OAAyB;QACvD,QAAQ,CAAC,EAAE,IAAI,EAAE,4BAA4B,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,OAAO,CACL,KAAC,YAAY,IACX,uBAAuB,EAAE,gBAAgB,EACzC,OAAO,EAAE,sBAAsB,YAE9B,QAAQ,GACI,CAChB,CAAC;AACJ,CAAC"}
|
|
@@ -9,7 +9,7 @@ import { SVGRootContainer } from '../1d-2d/components/SVGRootContainer.js';
|
|
|
9
9
|
import Viewer2D from '../2d/Viewer2D.js';
|
|
10
10
|
import { useChartData } from '../context/ChartContext.js';
|
|
11
11
|
import { useExportSettings } from '../elements/export/index.js';
|
|
12
|
-
import { usePrintPage } from
|
|
12
|
+
import { usePrintPage } from '../elements/print/index.js';
|
|
13
13
|
import { useCheckExportStatus, useViewportSize, } from '../hooks/useViewportSize.js';
|
|
14
14
|
export function NMRiumViewer(props) {
|
|
15
15
|
const { emptyText, viewerRef, onRender, style = {} } = props;
|
|
@@ -38,7 +38,7 @@ export function NMRiumViewer(props) {
|
|
|
38
38
|
position: 'relative',
|
|
39
39
|
backgroundColor: 'white',
|
|
40
40
|
...style,
|
|
41
|
-
}, children: [_jsx(
|
|
41
|
+
}, children: [_jsx(Viewer, { emptyText: emptyText }), _jsx(FloatingRanges, {}), _jsx(FloatPublicationString, {}), _jsx(SpectraInsets, {}), _jsx(FloatMolecules, {})] }));
|
|
42
42
|
}
|
|
43
43
|
function Viewer(props) {
|
|
44
44
|
const { emptyText, renderSvgContentOnly = false } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NMRiumViewer.js","sourceRoot":"","sources":["../../../src/component/main/NMRiumViewer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,+DAA+D,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|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MAAM,CAAC,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NMRiumViewerWrapper.d.ts","sourceRoot":"","sources":["../../../src/component/main/NMRiumViewerWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,UAAU,wBAAwB;IAChC,SAAS,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACrC,SAAS,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;CACrC;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,
|
|
1
|
+
{"version":3,"file":"NMRiumViewerWrapper.d.ts","sourceRoot":"","sources":["../../../src/component/main/NMRiumViewerWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,UAAU,wBAAwB;IAChC,SAAS,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACrC,SAAS,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;CACrC;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CAqDlE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { SplitPane } from 'react-science/ui';
|
|
3
3
|
import { usePreferences } from '../context/PreferencesContext.js';
|
|
4
|
-
import { Panels
|
|
4
|
+
import { Panels } from '../panels/Panels.js';
|
|
5
5
|
import { useAccordionItems } from '../panels/hooks/useAccordionItems.js';
|
|
6
6
|
import { useGetPanelOptions } from '../panels/hooks/useGetPanelOptions.js';
|
|
7
7
|
import { NMRiumViewer } from './NMRiumViewer.js';
|
|
@@ -9,7 +9,6 @@ export function NMRiumViewerWrapper(props) {
|
|
|
9
9
|
const { emptyText, viewerRef } = props;
|
|
10
10
|
const { current, dispatch } = usePreferences();
|
|
11
11
|
const getPanelPreferences = useGetPanelOptions();
|
|
12
|
-
const { closeSplitPane, openSplitPane, isSplitPaneOpen } = usePanelOpenState();
|
|
13
12
|
const { general: { verticalSplitterPosition, verticalSplitterCloseThreshold }, display: { general = {} }, } = current;
|
|
14
13
|
const items = useAccordionItems();
|
|
15
14
|
function resizeHandler(value) {
|
|
@@ -20,6 +19,12 @@ export function NMRiumViewerWrapper(props) {
|
|
|
20
19
|
},
|
|
21
20
|
});
|
|
22
21
|
}
|
|
22
|
+
function handleToggleSplitPanel() {
|
|
23
|
+
dispatch({
|
|
24
|
+
type: 'TOGGLE_SPLIT_PANEL',
|
|
25
|
+
payload: {},
|
|
26
|
+
});
|
|
27
|
+
}
|
|
23
28
|
const displayedPanels = items.filter((item) => {
|
|
24
29
|
const panelOptions = getPanelPreferences(item);
|
|
25
30
|
return panelOptions.display;
|
|
@@ -28,6 +33,7 @@ export function NMRiumViewerWrapper(props) {
|
|
|
28
33
|
if (items?.length === 0 || !hasDisplayedPanels) {
|
|
29
34
|
return _jsx(NMRiumViewer, { emptyText: emptyText, viewerRef: viewerRef });
|
|
30
35
|
}
|
|
31
|
-
|
|
36
|
+
const isOpen = !general?.hidePanelOnLoad;
|
|
37
|
+
return (_jsxs(SplitPane, { size: verticalSplitterPosition, direction: "horizontal", controlledSide: "end", open: isOpen, defaultOpen: isOpen, closeThreshold: verticalSplitterCloseThreshold, onSizeChange: resizeHandler, onOpenChange: handleToggleSplitPanel, children: [_jsx(NMRiumViewer, { emptyText: emptyText, viewerRef: viewerRef }), _jsx(Panels, {})] }));
|
|
32
38
|
}
|
|
33
39
|
//# sourceMappingURL=NMRiumViewerWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NMRiumViewerWrapper.js","sourceRoot":"","sources":["../../../src/component/main/NMRiumViewerWrapper.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"NMRiumViewerWrapper.js","sourceRoot":"","sources":["../../../src/component/main/NMRiumViewerWrapper.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAG3E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOjD,MAAM,UAAU,mBAAmB,CAAC,KAA+B;IACjE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,cAAc,EAAE,CAAC;IAC/C,MAAM,mBAAmB,GAAG,kBAAkB,EAAE,CAAC;IAEjD,MAAM,EACJ,OAAO,EAAE,EAAE,wBAAwB,EAAE,8BAA8B,EAAE,EACrE,OAAO,EAAE,EAAE,OAAO,GAAG,EAAE,EAAE,GAC1B,GAAG,OAAO,CAAC;IACZ,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAElC,SAAS,aAAa,CAAC,KAAoB;QACzC,QAAQ,CAAC;YACP,IAAI,EAAE,gCAAgC;YACtC,OAAO,EAAE;gBACP,KAAK;aACN;SACF,CAAC,CAAC;IACL,CAAC;IACD,SAAS,sBAAsB;QAC7B,QAAQ,CAAC;YACP,IAAI,EAAE,oBAAoB;YAC1B,OAAO,EAAE,EAAE;SACZ,CAAC,CAAC;IACL,CAAC;IAED,MAAM,eAAe,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;QAC5C,MAAM,YAAY,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAC/C,OAAO,YAAY,CAAC,OAAO,CAAC;IAC9B,CAAC,CAAC,CAAC;IACH,MAAM,kBAAkB,GAAG,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC;IAEtD,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC/C,OAAO,KAAC,YAAY,IAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,GAAI,CAAC;IACtE,CAAC;IAED,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,eAAe,CAAC;IAEzC,OAAO,CACL,MAAC,SAAS,IACR,IAAI,EAAE,wBAAwB,EAC9B,SAAS,EAAC,YAAY,EACtB,cAAc,EAAC,KAAK,EACpB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,8BAA8B,EAC9C,YAAY,EAAE,aAAa,EAC3B,YAAY,EAAE,sBAAsB,aAEpC,KAAC,YAAY,IAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,GAAI,EAC5D,KAAC,MAAM,KAAG,IACA,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Dialog } from '@blueprintjs/core';
|
|
3
2
|
import styled from '@emotion/styled';
|
|
4
3
|
import { FaInfo } from 'react-icons/fa';
|
|
5
4
|
import { Toolbar, useOnOff } from 'react-science/ui';
|
|
5
|
+
import { StandardDialog } from "../elements/StandardDialog.js";
|
|
6
6
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
7
7
|
const DialogBody = styled(StyledDialogBody) `
|
|
8
8
|
ul {
|
|
@@ -38,7 +38,7 @@ const DialogBody = styled(StyledDialogBody) `
|
|
|
38
38
|
`;
|
|
39
39
|
function AboutPredictionModal() {
|
|
40
40
|
const [isOpenDialog, openDialog, closeDialog] = useOnOff(false);
|
|
41
|
-
return (_jsxs(_Fragment, { children: [_jsx(Toolbar.Item, { icon: _jsx(FaInfo, {}), onClick: openDialog, tooltip: "About prediction" }), _jsx(
|
|
41
|
+
return (_jsxs(_Fragment, { children: [_jsx(Toolbar.Item, { icon: _jsx(FaInfo, {}), onClick: openDialog, tooltip: "About prediction" }), _jsx(StandardDialog, { isOpen: isOpenDialog, onClose: closeDialog, title: "About prediction", style: { width: '600px' }, children: _jsxs(DialogBody, { children: [_jsx("p", { children: "If you are using our tools please cite us:" }), _jsxs("ul", { children: [_jsxs("li", { children: ["Damiano Banfi and Luc Patiny", ' ', _jsx("a", { href: "http://dx.doi.org/10.2533/chimia.2008.280", target: "_blank", rel: "noreferrer", children: "www.nmrdb.org: Resurrecting and processing NMR spectra on-line" }), ' ', _jsx("i", { children: "Chimia" }), ", ", _jsx("b", { children: "2008" }), ", 62(4), 280-281."] }), _jsxs("li", { children: ["Andr\u00E9s M. Castillo, Luc Patiny and Julien Wist", ' ', _jsx("a", { href: "http://dx.doi.org/10.1016/j.jmr.2010.12.008", target: "_blank", rel: "noreferrer", children: "Fast and Accurate Algorithm for the Simulation of NMR spectra of Large Spin Systems" }), ' ', _jsx("i", { children: "Journal of Magnetic Resonance" }), " ", _jsx("b", { children: "2011" }), ", 209(2), 123-130."] })] }), _jsxs("p", { children: [_jsx("sup", { children: "1" }), "H NMR prediction is possible thanks to the tool of the FCT-Universidade NOVA de Lisboa developed by Yuri Binev and Joao Aires-de-Sousa:"] }), _jsxs("ul", { children: [_jsxs("li", { children: ["Yuri Binev, Maria M. B. Marques and Jo\u00E3o Aires-de-Sousa", ' ', _jsxs("a", { href: "http://dx.doi.org/10.1021/ci700172n", target: "_blank", rel: "noreferrer", children: ["Prediction of ", _jsx("sup", { children: "1" }), "H NMR coupling constants with associative neural networks trained for chemical shifts"] }), ' ', _jsx("i", { children: "J. Chem. Inf. Model." }), " ", _jsx("b", { children: "2007" }), ", 47(6), 2089-2097."] }), _jsxs("li", { children: ["Jo\u00E3o Aires-de-Sousa, Markus C. Hemmer and Johann Gasteiger", ' ', _jsxs("a", { href: "http://dx.doi.org/10.1021/ac010737m", target: "_blank", rel: "noreferrer", children: ["Prediction of ", _jsx("sup", { children: "1" }), "H NMR Chemical Shifts Using Neural Networks"] }), ", ", _jsx("i", { children: "Analytical Chemistry" }), ", ", _jsx("b", { children: "2002" }), ", 74(1), 80-90."] })] }), _jsxs("p", { children: [_jsx("sup", { children: "13" }), "C NMR prediction was possible thanks to NMRshiftDB:"] }), _jsx("ul", { children: _jsxs("li", { children: ["Steinbeck, Christoph, Stefan Krause, and Stefan Kuhn", ' ', _jsx("a", { href: "http://dx.doi.org/10.1021/ci0341363", target: "_blank", rel: "noreferrer", children: "NMRShiftDB Constructing a Free Chemical Information System with Open-Source Components" }), ' ', _jsx("i", { children: "Journal of chemical information and computer sciences" }), ",", ' ', _jsx("b", { children: "2003" }), ", 43(6): 1733-1739."] }) })] }) })] }));
|
|
42
42
|
}
|
|
43
43
|
export default AboutPredictionModal;
|
|
44
44
|
//# sourceMappingURL=AboutPredictionModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AboutPredictionModal.js","sourceRoot":"","sources":["../../../src/component/modal/AboutPredictionModal.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AboutPredictionModal.js","sourceRoot":"","sources":["../../../src/component/modal/AboutPredictionModal.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAAgC,CAAC;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B,QAAE,+BAAW,uBACvC,IACF,EACL,wBACE,+BAAa,2DACX,EACJ,uBACE,iFACuD,GAAG,EACxD,YACE,IAAI,EAAC,qCAAqC,EAC1C,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,YAAY,uGAId,EAAC,GAAG,EACR,gFAA4D,OAAE,GAAG,EACjE,+BAAW,2BACR,GACF,IACM,GACE,IAChB,CACJ,CAAC;AACJ,CAAC;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Dialog } from '@blueprintjs/core';
|
|
3
2
|
import styled from '@emotion/styled';
|
|
4
3
|
import { FaInfo } from 'react-icons/fa';
|
|
5
4
|
import { Toolbar, useOnOff } from 'react-science/ui';
|
|
5
|
+
import { StandardDialog } from "../elements/StandardDialog.js";
|
|
6
6
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
7
7
|
const DialogBody = styled(StyledDialogBody) `
|
|
8
8
|
background-color: white;
|
|
@@ -40,7 +40,7 @@ const DialogBody = styled(StyledDialogBody) `
|
|
|
40
40
|
`;
|
|
41
41
|
function AboutSpectrumSimulationModal() {
|
|
42
42
|
const [isOpenDialog, openDialog, closeDialog] = useOnOff(false);
|
|
43
|
-
return (_jsxs(_Fragment, { children: [_jsx(Toolbar, { children: _jsx(Toolbar.Item, { onClick: openDialog, tooltip: "About prediction", icon: _jsx(FaInfo, {}) }) }), _jsx(
|
|
43
|
+
return (_jsxs(_Fragment, { children: [_jsx(Toolbar, { children: _jsx(Toolbar.Item, { onClick: openDialog, tooltip: "About prediction", icon: _jsx(FaInfo, {}) }) }), _jsx(StandardDialog, { isOpen: isOpenDialog, onClose: closeDialog, title: "About spectrum simulation", style: { width: '600px' }, children: _jsxs(DialogBody, { children: [_jsx("p", { children: "If you are using our tools please cite us:" }), _jsx("ul", { children: _jsxs("li", { children: ["Andr\u00E9s M. Castillo, Luc Patiny and Julien Wist", ' ', _jsx("a", { href: "http://dx.doi.org/10.1016/j.jmr.2010.12.008", target: "_blank", rel: "noreferrer", children: "Fast and Accurate Algorithm for the Simulation of NMR spectra of Large Spin Systems" }), ' ', _jsx("i", { children: "Journal of Magnetic Resonance" }), " ", _jsx("b", { children: "2011" }), ", 209(2), 123-130."] }) })] }) })] }));
|
|
44
44
|
}
|
|
45
45
|
export default AboutSpectrumSimulationModal;
|
|
46
46
|
//# sourceMappingURL=AboutSpectrumSimulationModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AboutSpectrumSimulationModal.js","sourceRoot":"","sources":["../../../src/component/modal/AboutSpectrumSimulationModal.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AboutSpectrumSimulationModal.js","sourceRoot":"","sources":["../../../src/component/modal/AboutSpectrumSimulationModal.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAAgC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,MAAM,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC1C,CAAC;AAEF,SAAS,4BAA4B;IACnC,MAAM,CAAC,YAAY,EAAE,UAAU,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChE,OAAO,CACL,8BACE,KAAC,OAAO,cACN,KAAC,OAAO,CAAC,IAAI,IACX,OAAO,EAAE,UAAU,EACnB,OAAO,EAAC,kBAAkB,EAC1B,IAAI,EAAE,KAAC,MAAM,KAAG,GAChB,GACM,EACV,KAAC,cAAc,IACb,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,WAAW,EACpB,KAAK,EAAC,2BAA2B,EACjC,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,YAEzB,MAAC,UAAU,eACT,qEAAiD,EACjD,uBACE,gFACiD,GAAG,EAClD,YACE,IAAI,EAAC,6CAA6C,EAClD,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,YAAY,oGAId,EAAC,GAAG,EACR,wDAAoC,OAAC,+BAAW,0BAC7C,GACF,IACM,GACE,IAChB,CACJ,CAAC;AACJ,CAAC;AAED,eAAe,4BAA4B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditPeakShapeModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/EditPeakShapeModal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"EditPeakShapeModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/EditPeakShapeModal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAgFlD,UAAU,uBAAuB;IAC/B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,uDAKhE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { DialogFooter } from '@blueprintjs/core';
|
|
3
3
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
import { useForm } from 'react-hook-form';
|
|
@@ -9,8 +9,9 @@ import ActionButtons from '../elements/ActionButtons.js';
|
|
|
9
9
|
import Label from '../elements/Label.js';
|
|
10
10
|
import { NumberInput2Controller } from '../elements/NumberInput2Controller.js';
|
|
11
11
|
import { Select2 } from '../elements/Select2.js';
|
|
12
|
+
import { StandardDialog } from "../elements/StandardDialog.js";
|
|
12
13
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
13
|
-
import { useActiveNucleusTab } from
|
|
14
|
+
import { useActiveNucleusTab } from '../hooks/useActiveNucleusTab.js';
|
|
14
15
|
import { usePanelPreferences } from '../hooks/usePanelPreferences.js';
|
|
15
16
|
import { formatNumber } from '../utility/formatNumber.js';
|
|
16
17
|
function getKindDefaultValues(kind) {
|
|
@@ -94,6 +95,6 @@ function InnerEditPeakShapeModal(props) {
|
|
|
94
95
|
setKind(value);
|
|
95
96
|
}
|
|
96
97
|
const valuePPM = formatNumber(peak.x, peaksPreferences.deltaPPM.format);
|
|
97
|
-
return (_jsxs(
|
|
98
|
+
return (_jsxs(StandardDialog, { isOpen: true, style: { width: 400 }, onClose: onCloseDialog, title: `Peak Shape Edition ( ${valuePPM} PPM )`, children: [_jsx(StyledDialogBody, { padding: "1.5em 3em", children: _jsxs(_Fragment, { children: [_jsx(Label, { title: "Kind:", style: labelStyle, children: _jsx(Select2, { items: KINDS, selectedItemValue: kind, onItemSelect: handleChangeKind }) }), _jsx(Label, { title: "FWHM:", style: labelStyle, children: _jsx(NumberInput2Controller, { min: 0, control: control, name: "fwhm" }) }), kind === 'pseudoVoigt' && (_jsx(Label, { title: "Mu:", style: labelStyle, children: _jsx(NumberInput2Controller, { min: 0, control: control, name: "mu" }) })), kind === 'generalizedLorentzian' && (_jsx(Label, { title: "Gamma:", style: labelStyle, children: _jsx(NumberInput2Controller, { min: -1, max: 2, control: control, name: "gamma" }) }))] }) }), _jsx(DialogFooter, { children: _jsx(ActionButtons, { style: { flexDirection: 'row-reverse', margin: 0 }, onDone: () => handleSubmit(changePeakShapeHandler)(), doneLabel: "Save", onCancel: () => onCloseDialog?.() }) })] }));
|
|
98
99
|
}
|
|
99
100
|
//# sourceMappingURL=EditPeakShapeModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditPeakShapeModal.js","sourceRoot":"","sources":["../../../src/component/modal/EditPeakShapeModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"EditPeakShapeModal.js","sourceRoot":"","sources":["../../../src/component/modal/EditPeakShapeModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,aAAa,MAAM,8BAA8B,CAAC;AAEzD,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAAgC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAW1D,SAAS,oBAAoB,CAAC,IAAU;IACtC,OAAO;QACL,IAAI;QACJ,IAAI,EAAE,GAAG;QACT,GAAG,CAAC,IAAI,KAAK,aAAa;YACxB,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE;YACb,CAAC,CAAC,IAAI,KAAK,uBAAuB,IAAI,EAAE,KAAK,EAA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,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,sBAAsB,CAAC,EAAE,EACpD,SAAS,EAAC,MAAM,EAChB,QAAQ,EAAE,GAAG,EAAE,CAAC,aAAa,EAAE,EAAE,GACjC,GACW,IACA,CAClB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportAsJcampModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/ExportAsJcampModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"ExportAsJcampModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/ExportAsJcampModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAoDtD,UAAU,uBAAuB;IAC/B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AACD,UAAU,kBAAmB,SAAQ,uBAAuB;IAC1D,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,iBAAS,kBAAkB,CAAC,KAAK,EAAE,kBAAkB,kDAepD;AA2ED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { DialogFooter } from '@blueprintjs/core';
|
|
3
3
|
import { useRef } from 'react';
|
|
4
4
|
import { exportAsJcamp } from '../../data/SpectraManager.js';
|
|
5
5
|
import { useToaster } from '../context/ToasterContext.js';
|
|
6
6
|
import ActionButtons from '../elements/ActionButtons.js';
|
|
7
7
|
import Label from '../elements/Label.js';
|
|
8
8
|
import { Select2 } from '../elements/Select2.js';
|
|
9
|
+
import { StandardDialog } from "../elements/StandardDialog.js";
|
|
9
10
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
10
11
|
import useSpectrum from '../hooks/useSpectrum.js';
|
|
11
12
|
const originalFidExportDataTypes = [
|
|
@@ -89,7 +90,7 @@ function InnerExportAsJcampModal(props) {
|
|
|
89
90
|
function handleChangeExportDataType(item) {
|
|
90
91
|
exportDataAsRef.current = item.value;
|
|
91
92
|
}
|
|
92
|
-
return (_jsxs(
|
|
93
|
+
return (_jsxs(StandardDialog, { isOpen: true, style: { width: 400 }, onClose: closeDialog, title: "Export as JCAMP", children: [_jsx(StyledDialogBody, { padding: "1.5em 3em", children: _jsx(Label, { title: "Data", style: labelStyle, children: _jsx(Select2, { defaultSelectedItem: exportDataTypes[0], onItemSelect: handleChangeExportDataType, items: exportDataTypes }) }) }), _jsx(DialogFooter, { children: _jsx(ActionButtons, { style: { flexDirection: 'row-reverse', margin: 0 }, onDone: submitHandler, doneLabel: "export", onCancel: () => {
|
|
93
94
|
closeDialog?.();
|
|
94
95
|
} }) })] }));
|
|
95
96
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportAsJcampModal.js","sourceRoot":"","sources":["../../../src/component/modal/ExportAsJcampModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ExportAsJcampModal.js","sourceRoot":"","sources":["../../../src/component/modal/ExportAsJcampModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,aAAa,MAAM,8BAA8B,CAAC;AAEzD,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAAgC,CAAC;AAChE,OAAO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AAE,EAAE,CAAC;YAChB,WAAW,EAAE,CAAC;QAChB,CAAC;IACH,CAAC;IAED,SAAS,0BAA0B,CAAC,IAAS;QAC3C,eAAe,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC;IACvC,CAAC;IAED,OAAO,CACL,MAAC,cAAc,IACb,MAAM,QACN,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EACrB,OAAO,EAAE,WAAW,EACpB,KAAK,EAAC,iBAAiB,aAEvB,KAAC,gBAAgB,IAAC,OAAO,EAAC,WAAW,YACnC,KAAC,KAAK,IAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAE,UAAU,YACnC,KAAC,OAAO,IACN,mBAAmB,EAAE,eAAe,CAAC,CAAC,CAAC,EACvC,YAAY,EAAE,0BAA0B,EACxC,KAAK,EAAE,eAAe,GACtB,GACI,GACS,EACnB,KAAC,YAAY,cACX,KAAC,aAAa,IACZ,KAAK,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC,EAAE,EAClD,MAAM,EAAE,aAAa,EACrB,SAAS,EAAC,QAAQ,EAClB,QAAQ,EAAE,GAAG,EAAE;wBACb,WAAW,EAAE,EAAE,CAAC;oBAClB,CAAC,GACD,GACW,IACA,CAClB,CAAC;AACJ,CAAC;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportPublicationStringModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/ImportPublicationStringModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImportPublicationStringModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/ImportPublicationStringModal.tsx"],"names":[],"mappings":"AAgBA,UAAU,sCAAsC;IAC9C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,UAAU,iCAAkC,SAAQ,sCAAsC;IACxF,MAAM,EAAE,OAAO,CAAC;CACjB;AAoCD,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,iCAAiC,uDAMzC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button,
|
|
2
|
+
import { Button, DialogFooter, TextArea } from '@blueprintjs/core';
|
|
3
3
|
import { FifoLogger } from 'fifo-logger';
|
|
4
4
|
import debounce from 'lodash/debounce.js';
|
|
5
5
|
import { resurrect } from 'nmr-processing';
|
|
@@ -9,6 +9,7 @@ import { useDispatch } from '../context/DispatchContext.js';
|
|
|
9
9
|
import { useToaster } from '../context/ToasterContext.js';
|
|
10
10
|
import { GroupPane } from '../elements/GroupPane.js';
|
|
11
11
|
import ReactTable from '../elements/ReactTable/ReactTable.js';
|
|
12
|
+
import { StandardDialog } from "../elements/StandardDialog.js";
|
|
12
13
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
13
14
|
function handleRowStyle(data) {
|
|
14
15
|
const level = (data?.original).level;
|
|
@@ -93,7 +94,7 @@ function InnerImportPublicationStringModal(props) {
|
|
|
93
94
|
debounceChanges(value);
|
|
94
95
|
}
|
|
95
96
|
const isNotValid = logs.some((log) => ['error', 'fatal'].includes(log.levelLabel));
|
|
96
|
-
return (_jsxs(
|
|
97
|
+
return (_jsxs(StandardDialog, { title: "Generate spectrum from publication string", isOpen: true, onClose: onClose, style: { width: 800, height: 500 }, children: [_jsx(StyledDialogBody, { children: _jsxs("div", { style: {
|
|
97
98
|
display: 'flex',
|
|
98
99
|
flexDirection: 'column',
|
|
99
100
|
height: '100%',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportPublicationStringModal.js","sourceRoot":"","sources":["../../../src/component/modal/ImportPublicationStringModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"ImportPublicationStringModal.js","sourceRoot":"","sources":["../../../src/component/modal/ImportPublicationStringModal.tsx"],"names":[],"mappings":";AAAA,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,EAAE,MAAM,EAAE,GACjD,CACH,CAAC;oCACJ,CAAC,GACD,IACE,EACN,KAAC,SAAS,IAAC,IAAI,EAAC,MAAM,YACpB,KAAC,UAAU,IACT,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EACV,gBAAgB,EAAC,SAAS,EAC1B,QAAQ,EAAE,cAAc,EACxB,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAC1B,GACQ,IACR,GACW,EACnB,KAAC,YAAY,cACX,cAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,YAC3D,KAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,wBAAwB,CAAC,EAAE,EACvD,QAAQ,EAAE,UAAU,IAAI,CAAC,OAAO,EAChC,MAAM,EAAC,SAAS,kCAGT,GACL,GACO,IACA,CAClB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadJCAMPModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/LoadJCAMPModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LoadJCAMPModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/LoadJCAMPModal.tsx"],"names":[],"mappings":"AA2CA,UAAU,wBAAwB;IAChC,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AACD,UAAU,mBAAoB,SAAQ,wBAAwB;IAC5D,MAAM,EAAE,OAAO,CAAC;CACjB;AACD,wBAAgB,cAAc,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,mBAAmB,uDAI5E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button,
|
|
2
|
+
import { Button, DialogFooter } from '@blueprintjs/core';
|
|
3
3
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
4
4
|
import { useForm } from 'react-hook-form';
|
|
5
5
|
import * as Yup from 'yup';
|
|
@@ -8,6 +8,7 @@ import { useDispatch } from '../context/DispatchContext.js';
|
|
|
8
8
|
import { useToaster } from '../context/ToasterContext.js';
|
|
9
9
|
import { Input2Controller } from '../elements/Input2Controller.js';
|
|
10
10
|
import Label from '../elements/Label.js';
|
|
11
|
+
import { StandardDialog } from "../elements/StandardDialog.js";
|
|
11
12
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
12
13
|
const allowedExtensions = new Set(['dx', 'jdx', 'jcamp']);
|
|
13
14
|
const loadFormValidation = Yup.object({
|
|
@@ -72,6 +73,6 @@ function InnerLoadJCAMPModal({ onCloseDialog }) {
|
|
|
72
73
|
onCloseDialog?.();
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
|
-
return (_jsxs(
|
|
76
|
+
return (_jsxs(StandardDialog, { isOpen: true, onClose: onCloseDialog, title: "Load JCAMP", style: { minWidth: 400 }, children: [_jsx(StyledDialogBody, { children: _jsx(Label, { title: "URL", style: labelStyle, children: _jsx(Input2Controller, { name: "url", control: control, fill: true, placeholder: "Enter URL to JCAMP-DX file", enableErrorMessage: true }) }) }), _jsx(DialogFooter, { children: _jsx("div", { style: { display: 'flex', flexDirection: 'row-reverse' }, children: _jsx(Button, { intent: "success", onClick: () => void handleSubmit(loadJCAMPHandler)(), children: "Load" }) }) })] }));
|
|
76
77
|
}
|
|
77
78
|
//# sourceMappingURL=LoadJCAMPModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadJCAMPModal.js","sourceRoot":"","sources":["../../../src/component/modal/LoadJCAMPModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"LoadJCAMPModal.js","sourceRoot":"","sources":["../../../src/component/modal/LoadJCAMPModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC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BACX,iBAAiB,EAAE,KAAK;oBACxB,cAAc;oBACd,YAAY;iBACb;aACF,CAAC,CAAC;QACL,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,kBAAkB,GAAG,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;QACvE,CAAC;gBAAS,CAAC;YACT,UAAU,EAAE,CAAC;YACb,aAAa,EAAE,EAAE,CAAC;QACpB,CAAC;IACH,CAAC;IAED,OAAO,CACL,MAAC,cAAc,IACb,MAAM,QACN,OAAO,EAAE,aAAa,EACtB,KAAK,EAAC,YAAY,EAClB,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,aAExB,KAAC,gBAAgB,cACf,KAAC,KAAK,IAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAE,UAAU,YAClC,KAAC,gBAAgB,IACf,IAAI,EAAC,KAAK,EACV,OAAO,EAAE,OAAO,EAChB,IAAI,QACJ,WAAW,EAAC,4BAA4B,EACxC,kBAAkB,SAClB,GACI,GACS,EACnB,KAAC,YAAY,cACX,cAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,YAC3D,KAAC,MAAM,IACL,MAAM,EAAC,SAAS,EAChB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,YAAY,CAAC,gBAAgB,CAAC,EAAE,qBAG7C,GACL,GACO,IACA,CAClB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogsHistoryModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/LogsHistoryModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LogsHistoryModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/LogsHistoryModal.tsx"],"names":[],"mappings":"AAgEA,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,2CA4H5D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { DialogFooter } from '@blueprintjs/core';
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import { FaRegTrashAlt } from 'react-icons/fa';
|
|
5
5
|
import { IoBugOutline } from 'react-icons/io5';
|
|
@@ -9,6 +9,7 @@ import { useLogger } from '../context/LoggerContext.js';
|
|
|
9
9
|
import Button from '../elements/Button.js';
|
|
10
10
|
import { ColumnWrapper } from '../elements/ColumnWrapper.js';
|
|
11
11
|
import ReactTable from '../elements/ReactTable/ReactTable.js';
|
|
12
|
+
import { StandardDialog } from "../elements/StandardDialog.js";
|
|
12
13
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
13
14
|
const logsDataFormat = new Intl.DateTimeFormat('default', {
|
|
14
15
|
hour: 'numeric',
|
|
@@ -102,7 +103,7 @@ export function LogsHistoryModal(props) {
|
|
|
102
103
|
minWidth: '14px',
|
|
103
104
|
fontSize: '0.75em',
|
|
104
105
|
color: 'white',
|
|
105
|
-
}, children: count }))] }) })), _jsxs(
|
|
106
|
+
}, children: count }))] }) })), _jsxs(StandardDialog, { isOpen: isOpenDialog, onClose: () => {
|
|
106
107
|
markAsRead();
|
|
107
108
|
closeDialog();
|
|
108
109
|
onClose?.();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogsHistoryModal.js","sourceRoot":"","sources":["../../../src/component/modal/LogsHistoryModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"LogsHistoryModal.js","sourceRoot":"","sources":["../../../src/component/modal/LogsHistoryModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,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mB,IAClD,GACQ,GACH,IACA,IAChB,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface MoleculeAutoLabelsDatabaseModalProps {
|
|
2
|
+
onClose?: (element?: string) => void;
|
|
3
|
+
}
|
|
4
|
+
export declare function MoleculeAutoLabelsDatabaseModal({ onClose, }: MoleculeAutoLabelsDatabaseModalProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=MoleculeAutoLabelsDatabaseModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoleculeAutoLabelsDatabaseModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/MoleculeAutoLabelsDatabaseModal.tsx"],"names":[],"mappings":"AAyHA,UAAU,oCAAoC;IAC5C,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,wBAAgB,+BAA+B,CAAC,EAC9C,OAAoB,GACrB,EAAE,oCAAoC,2CA4FtC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { InputGroup } from '@blueprintjs/core';
|
|
3
|
+
import styled from '@emotion/styled';
|
|
4
|
+
import { Molecule } from 'openchemlib';
|
|
5
|
+
import { autoLabelDatabase } from 'openchemlib-utils';
|
|
6
|
+
import { useState } from 'react';
|
|
7
|
+
import { MF } from 'react-mf';
|
|
8
|
+
import { IdcodeSvgRenderer } from 'react-ocl';
|
|
9
|
+
import { Button } from 'react-science/ui';
|
|
10
|
+
import { filter } from 'smart-array-filter';
|
|
11
|
+
import { useDispatch } from '../context/DispatchContext.js';
|
|
12
|
+
import { StandardDialog } from "../elements/StandardDialog.js";
|
|
13
|
+
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
14
|
+
const ChemicalGrid = styled.div `
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-wrap: wrap;
|
|
17
|
+
gap: 1.25rem;
|
|
18
|
+
justify-content: flex-start;
|
|
19
|
+
padding: 0.5rem 1rem;
|
|
20
|
+
flex: 1;
|
|
21
|
+
`;
|
|
22
|
+
const AddButton = styled(Button) `
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 0;
|
|
25
|
+
left: 0;
|
|
26
|
+
`;
|
|
27
|
+
const ChemicalCard = styled.div `
|
|
28
|
+
position: relative;
|
|
29
|
+
flex: 0 0 calc((100% - 2.5rem) / 3);
|
|
30
|
+
min-width: 200px;
|
|
31
|
+
border-radius: 8px;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
background: #fff;
|
|
34
|
+
box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
|
|
35
|
+
transition: all 0.25s ease;
|
|
36
|
+
/* stylelint-disable nesting-selector-no-missing-scoping-root */
|
|
37
|
+
&:hover {
|
|
38
|
+
box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
|
|
39
|
+
transform: translateY(-2px);
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
42
|
+
const CardLabel = styled.div `
|
|
43
|
+
padding: 0.75rem 1rem;
|
|
44
|
+
background: linear-gradient(180deg, #fff 0%, #f0f2f5 40%, #e2e6eb 100%);
|
|
45
|
+
border-bottom: 1px solid #d1d5db;
|
|
46
|
+
box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%);
|
|
47
|
+
|
|
48
|
+
h3 {
|
|
49
|
+
margin: 0;
|
|
50
|
+
font-size: 0.95rem;
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
color: #374151;
|
|
53
|
+
text-align: center;
|
|
54
|
+
text-transform: capitalize;
|
|
55
|
+
letter-spacing: 0.02em;
|
|
56
|
+
text-shadow: 0 1px 0 rgb(255 255 255 / 50%);
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
59
|
+
const StructureContainer = styled.div `
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
padding: 0.5rem;
|
|
64
|
+
background: #fafafa;
|
|
65
|
+
border-bottom: 1px solid #eee;
|
|
66
|
+
`;
|
|
67
|
+
const CardInfo = styled.div `
|
|
68
|
+
padding: 0.75rem 1rem;
|
|
69
|
+
display: flex;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
align-items: center;
|
|
72
|
+
background: #fff;
|
|
73
|
+
`;
|
|
74
|
+
const MolecularFormula = styled.div `
|
|
75
|
+
font-size: 0.9rem;
|
|
76
|
+
font-weight: 500;
|
|
77
|
+
color: ${({ color }) => color ?? '#374151'};
|
|
78
|
+
`;
|
|
79
|
+
const SearchContainer = styled.div `
|
|
80
|
+
padding: 1.2rem;
|
|
81
|
+
margin-bottom: 1.5rem;
|
|
82
|
+
background-color: white;
|
|
83
|
+
border-bottom: 1px solid #e0e0e0;
|
|
84
|
+
position: sticky;
|
|
85
|
+
top: 0;
|
|
86
|
+
z-index: 1;
|
|
87
|
+
`;
|
|
88
|
+
const SearchInput = styled(InputGroup) `
|
|
89
|
+
input {
|
|
90
|
+
background: #eceff7;
|
|
91
|
+
|
|
92
|
+
&:focus {
|
|
93
|
+
background: #fff;
|
|
94
|
+
box-shadow: 0 1px 4px rgb(0 0 0 / 15%);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
`;
|
|
98
|
+
const NoResults = styled.p `
|
|
99
|
+
text-align: center;
|
|
100
|
+
color: #6b7280;
|
|
101
|
+
font-size: 1rem;
|
|
102
|
+
padding: 3rem;
|
|
103
|
+
`;
|
|
104
|
+
export function MoleculeAutoLabelsDatabaseModal({ onClose = () => null, }) {
|
|
105
|
+
const dispatch = useDispatch();
|
|
106
|
+
const [keywords, setSearch] = useState('');
|
|
107
|
+
function handleAddMolecule(options) {
|
|
108
|
+
const { idCode, coordinates, label } = options;
|
|
109
|
+
const molecule = Molecule.fromIDCode(idCode, coordinates);
|
|
110
|
+
if (molecule.getAllAtoms() <= 0) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
dispatch({
|
|
114
|
+
type: 'ADD_MOLECULE',
|
|
115
|
+
payload: { molfile: molecule.toMolfileV3(), label },
|
|
116
|
+
});
|
|
117
|
+
onClose();
|
|
118
|
+
}
|
|
119
|
+
const filteredLabelDatabase = filter(autoLabelDatabase, { keywords });
|
|
120
|
+
return (_jsx(StandardDialog, { isOpen: true, onClose: () => onClose(), style: { width: '90vw', maxWidth: 1000, height: '80vh' }, title: "Template database", children: _jsxs(StyledDialogBody, { style: { padding: 0 }, children: [_jsx(SearchContainer, { children: _jsx(SearchInput, { size: "large", placeholder: "Search ...", value: keywords, onChange: ({ target }) => {
|
|
121
|
+
if (target.value !== undefined) {
|
|
122
|
+
setSearch(target.value);
|
|
123
|
+
}
|
|
124
|
+
}, leftIcon: "search", type: "search" }) }), filteredLabelDatabase.length === 0 ? (_jsxs(NoResults, { children: ["No results found for \"", keywords, "\""] })) : (_jsx(ChemicalGrid, { children: filteredLabelDatabase.map((compound) => (_jsxs(ChemicalCard, { children: [_jsx(AddButton, { size: "large", icon: "plus", minimal: true, tooltipProps: {
|
|
125
|
+
content: (_jsxs(MolecularFormula, { color: "white", children: [_jsx("span", { children: "Add " }), _jsx(MF, { mf: compound.mf }), " -", _jsxs("span", { children: [" ", compound.mw.toFixed(2)] }), _jsx("span", { children: " molecule " })] })),
|
|
126
|
+
}, onClick: () => handleAddMolecule(compound) }), _jsx(CardLabel, { children: _jsx("h3", { children: compound.label }) }), _jsx(StructureContainer, { children: _jsx(IdcodeSvgRenderer, { idcode: compound.idCode, coordinates: compound.coordinates, width: 300, height: 200 }) }), _jsx(CardInfo, { children: _jsxs(MolecularFormula, { children: [_jsx(MF, { mf: compound.mf }), " -", _jsxs("span", { children: [" ", compound.mw.toFixed(2)] })] }) })] }, compound.label))) }))] }) }));
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=MoleculeAutoLabelsDatabaseModal.js.map
|