nmrium 1.11.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +170 -109
- package/lib/component/1d/FloatPublicationString.js.map +1 -1
- package/lib/component/1d/FloatingRanges.d.ts.map +1 -1
- package/lib/component/1d/FloatingRanges.js +2 -2
- package/lib/component/1d/FloatingRanges.js.map +1 -1
- package/lib/component/1d/SVGContent1D.js +1 -1
- package/lib/component/1d/SVGContent1D.js.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.d.ts.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
- package/lib/component/1d/inset/DraggableInset.d.ts.map +1 -1
- package/lib/component/1d/inset/DraggableInset.js +3 -3
- package/lib/component/1d/inset/DraggableInset.js.map +1 -1
- package/lib/component/1d/matrix/Boxplot.js +1 -1
- package/lib/component/1d/matrix/Stocsy.js +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +2 -2
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.js +2 -2
- package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.js +2 -2
- package/lib/component/1d/peaks/Peaks.js.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts +1 -1
- package/lib/component/1d/ranges/Range.js +3 -3
- package/lib/component/1d/ranges/Range.js.map +1 -1
- package/lib/component/1d/ranges/Ranges.js +2 -2
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d/ranges/RangesIntegrals.js +1 -1
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.d.ts +1 -1
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.d.ts.map +1 -1
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.js +4 -4
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +4 -4
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js +5 -19
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
- package/lib/component/2d/FooterBanner.d.ts +1 -1
- package/lib/component/2d/SVGContent2D.d.ts +1 -1
- package/lib/component/2d/YAxis.js +3 -3
- package/lib/component/2d/YAxis.js.map +1 -1
- package/lib/component/2d/ft/Contours.d.ts.map +1 -1
- package/lib/component/2d/ft/Contours.js +10 -12
- package/lib/component/2d/ft/Contours.js.map +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts +1 -1
- package/lib/component/2d/tools/XYLabelPointer.d.ts +1 -1
- package/lib/component/2d/useTracesSpectra.js +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +5 -5
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/Zone.js +1 -1
- package/lib/component/2d/zones/Zone.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js +6 -0
- package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
- package/lib/component/context/LoggerContext.d.ts +1 -0
- package/lib/component/context/LoggerContext.d.ts.map +1 -1
- package/lib/component/context/LoggerContext.js.map +1 -1
- package/lib/component/context/PreferencesContext.d.ts +1 -1
- package/lib/component/context/PreferencesContext.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.d.ts +9 -5
- package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js +42 -10
- package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
- package/lib/component/elements/Alert.d.ts.map +1 -1
- package/lib/component/elements/Alert.js +3 -2
- package/lib/component/elements/Alert.js.map +1 -1
- package/lib/component/elements/DraggableDialog.d.ts +1 -1
- package/lib/component/elements/DraggableDialog.d.ts.map +1 -1
- package/lib/component/elements/StandardDialog.d.ts +3 -0
- package/lib/component/elements/StandardDialog.d.ts.map +1 -0
- package/lib/component/elements/StandardDialog.js +7 -0
- package/lib/component/elements/StandardDialog.js.map +1 -0
- package/lib/component/elements/ToolbarPopoverItem.d.ts +7 -2
- package/lib/component/elements/ToolbarPopoverItem.d.ts.map +1 -1
- package/lib/component/elements/ToolbarPopoverItem.js +6 -2
- package/lib/component/elements/ToolbarPopoverItem.js.map +1 -1
- package/lib/component/elements/export/ExportManager.js +1 -1
- package/lib/component/elements/export/ExportManager.js.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.js +3 -2
- package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
- package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
- package/lib/component/elements/print/PrintContent.js +3 -2
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/header/Header.js +1 -1
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/hooks/reduce2DSpectrum.d.ts +4 -0
- package/lib/component/hooks/reduce2DSpectrum.d.ts.map +1 -0
- package/lib/component/hooks/reduce2DSpectrum.js +60 -0
- package/lib/component/hooks/reduce2DSpectrum.js.map +1 -0
- package/lib/component/hooks/use2DReducer.d.ts +14 -0
- package/lib/component/hooks/use2DReducer.d.ts.map +1 -0
- package/lib/component/hooks/use2DReducer.js +30 -0
- package/lib/component/hooks/use2DReducer.js.map +1 -0
- package/lib/component/hooks/useActiveNucleusTab.js +1 -1
- package/lib/component/hooks/useActiveNucleusTab.js.map +1 -1
- package/lib/component/hooks/useActiveSpectrumRangesViewState.js +1 -1
- package/lib/component/hooks/useCreateNmriumZip.d.ts +3 -0
- package/lib/component/hooks/useCreateNmriumZip.d.ts.map +1 -0
- package/lib/component/hooks/useCreateNmriumZip.js +28 -0
- package/lib/component/hooks/useCreateNmriumZip.js.map +1 -0
- package/lib/component/hooks/useDatumWithSpectraStatistics.js +1 -1
- package/lib/component/hooks/useDatumWithSpectraStatistics.js.map +1 -1
- package/lib/component/hooks/useExport.d.ts +8 -5
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +5 -22
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/useSVGUnitConverter.d.ts.map +1 -1
- package/lib/component/hooks/useSVGUnitConverter.js +12 -9
- package/lib/component/hooks/useSVGUnitConverter.js.map +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
- package/lib/component/hooks/useSaveSettings.js +3 -2
- package/lib/component/hooks/useSaveSettings.js.map +1 -1
- package/lib/component/hooks/useSetActiveSpectrumAction.js +1 -1
- package/lib/component/hooks/useSetActiveSpectrumAction.js.map +1 -1
- package/lib/component/hooks/useTextMetrics.d.ts +16 -1
- package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
- package/lib/component/hooks/useTextMetrics.js +43 -15
- package/lib/component/hooks/useTextMetrics.js.map +1 -1
- package/lib/component/hooks/useToggleSpectraVisibility.js +1 -1
- package/lib/component/hooks/use_acs_settings.d.ts +4 -0
- package/lib/component/hooks/use_acs_settings.d.ts.map +1 -0
- package/lib/component/hooks/use_acs_settings.js +21 -0
- package/lib/component/hooks/use_acs_settings.js.map +1 -0
- package/lib/component/hooks/use_publication_strings.d.ts +9 -0
- package/lib/component/hooks/use_publication_strings.d.ts.map +1 -0
- package/lib/component/hooks/use_publication_strings.js +42 -0
- package/lib/component/hooks/use_publication_strings.js.map +1 -0
- package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
- package/lib/component/loader/useLoadFiles.js +4 -5
- package/lib/component/loader/useLoadFiles.js.map +1 -1
- package/lib/component/main/InnerNMRium.d.ts.map +1 -1
- package/lib/component/main/InnerNMRium.js +2 -2
- package/lib/component/main/InnerNMRium.js.map +1 -1
- package/lib/component/main/NMRium.d.ts +48 -3
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRium.js.map +1 -1
- package/lib/component/main/NMRiumRefAPI.d.ts +2 -0
- package/lib/component/main/NMRiumRefAPI.d.ts.map +1 -1
- package/lib/component/main/NMRiumRefAPI.js +4 -1
- package/lib/component/main/NMRiumRefAPI.js.map +1 -1
- package/lib/component/main/NMRiumStateProvider.d.ts +5 -2
- package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
- package/lib/component/main/NMRiumStateProvider.js +36 -30
- package/lib/component/main/NMRiumStateProvider.js.map +1 -1
- package/lib/component/main/NMRiumViewer.js +1 -1
- package/lib/component/main/NMRiumViewer.js.map +1 -1
- package/lib/component/main/NMRiumViewerWrapper.d.ts.map +1 -1
- package/lib/component/main/NMRiumViewerWrapper.js +3 -5
- package/lib/component/main/NMRiumViewerWrapper.js.map +1 -1
- package/lib/component/modal/AboutPredictionModal.js +2 -2
- package/lib/component/modal/AboutPredictionModal.js.map +1 -1
- package/lib/component/modal/AboutSpectrumSimulationModal.js +2 -2
- package/lib/component/modal/AboutSpectrumSimulationModal.js.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.d.ts.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.js +4 -3
- package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
- package/lib/component/modal/ExportAsJcampModal.d.ts.map +1 -1
- package/lib/component/modal/ExportAsJcampModal.js +3 -2
- package/lib/component/modal/ExportAsJcampModal.js.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.js +3 -2
- package/lib/component/modal/ImportPublicationStringModal.js.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.d.ts.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.js +7 -6
- package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
- package/lib/component/modal/LogsHistoryModal.d.ts.map +1 -1
- package/lib/component/modal/LogsHistoryModal.js +3 -2
- package/lib/component/modal/LogsHistoryModal.js.map +1 -1
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.d.ts.map +1 -1
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js +4 -3
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js.map +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.d.ts.map +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.js +4 -3
- package/lib/component/modal/MoleculeStructureEditorModal.js.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.d.ts.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.js +2 -2
- package/lib/component/modal/MultipletAnalysisModal.js.map +1 -1
- package/lib/component/modal/PredictSpectraModal.d.ts.map +1 -1
- package/lib/component/modal/PredictSpectraModal.js +3 -2
- package/lib/component/modal/PredictSpectraModal.js.map +1 -1
- package/lib/component/modal/PublicationStringModal.d.ts +10 -1
- package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/PublicationStringModal.js +89 -77
- package/lib/component/modal/PublicationStringModal.js.map +1 -1
- package/lib/component/modal/SaveAsModal.d.ts.map +1 -1
- package/lib/component/modal/SaveAsModal.js +3 -2
- package/lib/component/modal/SaveAsModal.js.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.js +2 -2
- package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts.map +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.js +2 -2
- package/lib/component/modal/changeSum/ChangeSumModal.js.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.d.ts.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js +3 -2
- package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
- package/lib/component/modal/setting/{GeneralSettings.d.ts → general_settings.d.ts} +1 -1
- package/lib/component/modal/setting/general_settings.d.ts.map +1 -0
- package/lib/component/modal/setting/{GeneralSettings.js → general_settings.js} +12 -6
- package/lib/component/modal/setting/general_settings.js.map +1 -0
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts +10 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.js +82 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +1356 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js +50 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +1356 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js +22 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js +61 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js +110 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +466 -0
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.js +59 -0
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js +32 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js +80 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +55 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +151 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.js +11 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +58 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js +34 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.js +26 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js +76 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js +40 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js +142 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +112 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js +38 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts +68 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.js +133 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.d.ts +10 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js +31 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +71 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.js +67 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.d.ts +10 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.js +40 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.d.ts +11 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.js +20 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +166 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +58 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.d.ts +32 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.js +11 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +42 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js +34 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts +37 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.js +26 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts +17 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js +19 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts +187 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js +77 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.d.ts +54 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.js +22 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.d.ts +55 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.js +18 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts +32 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js +34 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/utils.d.ts +13 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/utils.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/utils.js +20 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/utils.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +558 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation.js +40 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation.js.map +1 -0
- package/lib/component/panels/MoleculesPanel/MoleculeOptionsPanel.js +2 -2
- package/lib/component/panels/MoleculesPanel/MoleculeOptionsPanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +2 -2
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +7 -7
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.js +31 -4
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +17 -17
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/extractFromAtom.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getUniqueDiaIDs.d.ts +1 -1
- package/lib/component/panels/Panels.d.ts.map +1 -1
- package/lib/component/panels/Panels.js +12 -25
- package/lib/component/panels/Panels.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js +23 -15
- package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js +3 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts +2 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +8 -3
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +3 -2
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +3 -2
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseInfo.js +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +3 -3
- package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js +2 -2
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +27 -34
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.d.ts.map +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.js +2 -1
- package/lib/component/panels/header/DefaultPanelHeader.js.map +1 -1
- package/lib/component/panels/hooks/useMoleculeAnnotationCore.js +1 -1
- package/lib/component/panels/hooks/useMoleculeAnnotationCore.js.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.js +3 -2
- package/lib/component/panels/informationPanel/InformationEditionModal.js.map +1 -1
- package/lib/component/panels/informationPanel/InformationPanel.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/InformationPanel.js +38 -3
- package/lib/component/panels/informationPanel/InformationPanel.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +1 -3
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/AssignmentsActions.js +3 -3
- package/lib/component/reducer/actions/CorrelationsActions.js +2 -2
- package/lib/component/reducer/actions/DatabaseActions.js +1 -1
- package/lib/component/reducer/actions/DomainActions.js +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +2 -4
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +14 -5
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/InsetActions.js +2 -2
- package/lib/component/reducer/actions/LoadAction.d.ts +1 -4
- package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadAction.js +12 -21
- package/lib/component/reducer/actions/LoadAction.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +6 -3
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.js +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +1 -1
- package/lib/component/reducer/actions/RangesActions.js +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +5 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +5 -3
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +3 -3
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +2 -2
- package/lib/component/reducer/helper/get2DRange.d.ts +1 -1
- package/lib/component/reducer/preferences/actions/applyGeneralPreferences.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/applyGeneralPreferences.js.map +1 -1
- package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.d.ts +1 -1
- package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.js +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +3 -3
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js +4 -4
- package/lib/component/toolbar/ToolBar.d.ts.map +1 -1
- package/lib/component/toolbar/ToolBar.js +5 -1
- package/lib/component/toolbar/ToolBar.js.map +1 -1
- package/lib/component/utility/export.js +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +12 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/data/PredictionManager.d.ts.map +1 -1
- package/lib/data/PredictionManager.js +4 -1
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/SpectraManager.d.ts +1 -1
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts +7 -6
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +22 -6
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +1 -10
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/data/molecules/Molecule.d.ts +5 -1
- package/lib/data/molecules/Molecule.d.ts.map +1 -1
- package/lib/data/molecules/Molecule.js +9 -7
- package/lib/data/molecules/Molecule.js.map +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +0 -6
- package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.js +25 -25
- package/lib/data/molecules/MoleculeManager.js.map +1 -1
- package/lib/data/utilities/FindUtilities.js +2 -2
- package/lib/utils/clipboard/clipboardComponents.js +2 -2
- package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
- package/lib/versionInfo.d.ts.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/lib/versionInfo.js.map +1 -1
- package/package.json +44 -43
- package/src/component/1d/FloatPublicationString.tsx +275 -176
- package/src/component/1d/FloatingRanges.tsx +1 -2
- package/src/component/1d/SVGContent1D.tsx +1 -1
- package/src/component/1d/database/DatabaseSpectrum.tsx +3 -1
- package/src/component/1d/inset/DraggableInset.tsx +2 -3
- package/src/component/1d/integral/IntegralResizable.tsx +1 -1
- package/src/component/1d/matrix/Boxplot.tsx +1 -1
- package/src/component/1d/matrix/Stocsy.tsx +1 -1
- package/src/component/1d/multiAnalysis/AnalysisRange.tsx +1 -1
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +2 -2
- package/src/component/1d/peaks/PeakAnnotations.tsx +2 -2
- package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +2 -2
- package/src/component/1d/peaks/Peaks.tsx +2 -2
- package/src/component/1d/ranges/Range.tsx +5 -5
- package/src/component/1d/ranges/Ranges.tsx +2 -2
- package/src/component/1d/ranges/RangesIntegrals.tsx +1 -1
- package/src/component/1d/ranges/useAssignmentsPopoverActionsButtons.tsx +5 -5
- package/src/component/1d/tool/BaseLineZones.tsx +1 -1
- package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +3 -4
- package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +11 -24
- package/src/component/2d/FooterBanner.tsx +1 -1
- package/src/component/2d/SVGContent2D.tsx +1 -1
- package/src/component/2d/YAxis.tsx +3 -3
- package/src/component/2d/ft/Contours.tsx +14 -27
- package/src/component/2d/ft/FTContainer.tsx +1 -1
- package/src/component/2d/tools/XYLabelPointer.tsx +1 -1
- package/src/component/2d/useTracesSpectra.ts +1 -1
- package/src/component/2d/zones/SignalsGuideLines.tsx +5 -5
- package/src/component/2d/zones/Zone.tsx +1 -1
- package/src/component/EventsTrackers/BrushTracker.tsx +1 -1
- package/src/component/EventsTrackers/KeysListenerTracker.tsx +6 -0
- package/src/component/context/LoggerContext.tsx +9 -0
- package/src/component/context/PreferencesContext.tsx +1 -1
- package/src/component/elements/ActionsButtonsPopover.tsx +81 -25
- package/src/component/elements/Alert.tsx +4 -2
- package/src/component/elements/DraggableDialog.tsx +2 -2
- package/src/component/elements/StandardDialog.tsx +11 -0
- package/src/component/elements/ToolbarPopoverItem.tsx +16 -3
- package/src/component/elements/export/ExportManager.tsx +1 -1
- package/src/component/elements/export/ExportOptionsModal.tsx +3 -3
- package/src/component/elements/print/PrintContent.tsx +4 -9
- package/src/component/header/Header.tsx +1 -1
- package/src/component/hooks/reduce2DSpectrum.ts +98 -0
- package/src/component/hooks/use2DReducer.tsx +56 -0
- package/src/component/hooks/useActiveNucleusTab.ts +1 -1
- package/src/component/hooks/useActiveSpectrumRangesViewState.ts +1 -1
- package/src/component/hooks/useCreateNmriumZip.ts +37 -0
- package/src/component/hooks/useDatumWithSpectraStatistics.ts +1 -1
- package/src/component/hooks/useExport.tsx +17 -32
- package/src/component/hooks/useSVGUnitConverter.ts +13 -9
- package/src/component/hooks/useSaveSettings.tsx +4 -3
- package/src/component/hooks/useSetActiveSpectrumAction.ts +1 -1
- package/src/component/hooks/useTextMetrics.ts +66 -18
- package/src/component/hooks/useToggleSpectraVisibility.tsx +1 -1
- package/src/component/hooks/use_acs_settings.ts +27 -0
- package/src/component/hooks/use_publication_strings.ts +67 -0
- package/src/component/loader/useLoadFiles.ts +6 -10
- package/src/component/main/InnerNMRium.tsx +4 -2
- package/src/component/main/NMRium.tsx +50 -2
- package/src/component/main/NMRiumRefAPI.ts +7 -1
- package/src/component/main/NMRiumStateProvider.tsx +57 -35
- package/src/component/main/NMRiumViewer.tsx +1 -1
- package/src/component/main/NMRiumViewerWrapper.tsx +3 -5
- package/src/component/modal/AboutPredictionModal.tsx +3 -3
- package/src/component/modal/AboutSpectrumSimulationModal.tsx +3 -3
- package/src/component/modal/EditPeakShapeModal.tsx +5 -4
- package/src/component/modal/ExportAsJcampModal.tsx +4 -3
- package/src/component/modal/ImportPublicationStringModal.tsx +4 -3
- package/src/component/modal/LoadJCAMPModal.tsx +8 -7
- package/src/component/modal/LogsHistoryModal.tsx +4 -3
- package/src/component/modal/MoleculeAutoLabelsDatabaseModal.tsx +5 -4
- package/src/component/modal/MoleculeStructureEditorModal.tsx +9 -4
- package/src/component/modal/MultipletAnalysisModal.tsx +3 -3
- package/src/component/modal/PredictSpectraModal.tsx +4 -3
- package/src/component/modal/PublicationStringModal.tsx +234 -134
- package/src/component/modal/SaveAsModal.tsx +4 -9
- package/src/component/modal/aboutUs/AboutUsModal.tsx +3 -3
- package/src/component/modal/changeSum/ChangeSumModal.tsx +4 -3
- package/src/component/modal/editRange/EditRangeModal.tsx +1 -1
- package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +1 -1
- package/src/component/modal/metaImportation/MetaImportationModal.tsx +4 -3
- package/src/component/modal/setting/{GeneralSettings.tsx → general_settings.tsx} +36 -5
- package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/ExternalAPIsTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/GeneralTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/NucleiTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +1 -1
- package/src/component/modal/setting/tanstack_general_settings/general_settings.tsx +132 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +116 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.tsx +39 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx +105 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.tsx +199 -0
- package/src/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.ts +95 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.tsx +81 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +210 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +271 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.tsx +24 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +150 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/general_tab.tsx +94 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.tsx +72 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.tsx +192 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/panels_tab.tsx +150 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +352 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +248 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/tools_tab.tsx +155 -0
- package/src/component/modal/setting/tanstack_general_settings/ui/table.tsx +163 -0
- package/src/component/modal/setting/tanstack_general_settings/ui/table_section.tsx +52 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.ts +73 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.ts +55 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.ts +23 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +63 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.ts +12 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.ts +40 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.ts +26 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts +24 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts +88 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.ts +29 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.ts +26 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.ts +34 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/utils.ts +30 -0
- package/src/component/modal/setting/tanstack_general_settings/validation.ts +51 -0
- package/src/component/panels/MoleculesPanel/MoleculeOptionsPanel.tsx +2 -2
- package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +2 -2
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +14 -8
- package/src/component/panels/MoleculesPanel/MoleculeStructure.tsx +40 -5
- package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +21 -21
- package/src/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.ts +1 -1
- package/src/component/panels/MoleculesPanel/utilities/extractFromAtom.ts +1 -1
- package/src/component/panels/MoleculesPanel/utilities/getAssignIds.ts +1 -1
- package/src/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.ts +1 -1
- package/src/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.ts +2 -2
- package/src/component/panels/MoleculesPanel/utilities/getUniqueDiaIDs.ts +1 -1
- package/src/component/panels/Panels.tsx +4 -40
- package/src/component/panels/RangesPanel/RangesHeader.tsx +34 -29
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +1 -1
- package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +3 -3
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.tsx +3 -2
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +12 -4
- package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +1 -1
- package/src/component/panels/SummaryPanel/SetMolecularFormulaModal.tsx +4 -3
- package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +4 -3
- package/src/component/panels/databasePanel/DatabaseInfo.tsx +1 -1
- package/src/component/panels/databasePanel/DatabasePanel.tsx +7 -5
- package/src/component/panels/databasePanel/DatabaseStructureSearchModal.tsx +3 -3
- package/src/component/panels/databasePanel/DatabaseTable.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +35 -50
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +1 -1
- package/src/component/panels/header/DefaultPanelHeader.tsx +2 -1
- package/src/component/panels/hooks/useMoleculeAnnotationCore.ts +1 -1
- package/src/component/panels/informationPanel/InformationEditionModal.tsx +4 -3
- package/src/component/panels/informationPanel/InformationPanel.tsx +83 -2
- package/src/component/reducer/Reducer.ts +1 -3
- package/src/component/reducer/actions/AssignmentsActions.ts +3 -3
- package/src/component/reducer/actions/CorrelationsActions.ts +2 -2
- package/src/component/reducer/actions/DatabaseActions.ts +1 -1
- package/src/component/reducer/actions/DomainActions.ts +1 -1
- package/src/component/reducer/actions/FiltersActions.ts +16 -10
- package/src/component/reducer/actions/InsetActions.ts +2 -2
- package/src/component/reducer/actions/LoadAction.ts +16 -31
- package/src/component/reducer/actions/MoleculeActions.ts +6 -3
- package/src/component/reducer/actions/PreferencesActions.ts +1 -1
- package/src/component/reducer/actions/RangesActions.ts +3 -3
- package/src/component/reducer/actions/SpectraActions.ts +15 -7
- package/src/component/reducer/actions/ToolsActions.ts +5 -3
- package/src/component/reducer/actions/ZonesActions.ts +3 -3
- package/src/component/reducer/helper/get2DRange.ts +1 -1
- package/src/component/reducer/preferences/actions/applyGeneralPreferences.ts +1 -2
- package/src/component/reducer/preferences/actions/toggleOpenSplitPanel.ts +2 -2
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +1 -1
- package/src/component/reducer/preferences/preferencesReducer.ts +7 -7
- package/src/component/toolbar/ToolBar.tsx +6 -1
- package/src/component/utility/export.ts +1 -1
- package/src/component/workspaces/workspaceDefaultProperties.ts +14 -1
- package/src/data/PredictionManager.ts +4 -1
- package/src/data/SpectraManager.ts +2 -2
- package/src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/detectRanges.ts +1 -1
- package/src/data/data2d/Spectrum2D/contours.ts +28 -12
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +1 -17
- package/src/data/molecules/Molecule.ts +17 -7
- package/src/data/molecules/MoleculeManager.ts +31 -29
- package/src/data/utilities/FindUtilities.ts +2 -2
- package/src/utils/clipboard/clipboardComponents.tsx +3 -3
- package/src/versionInfo.ts +1 -1
- package/lib/component/modal/setting/GeneralSettings.d.ts.map +0 -1
- package/lib/component/modal/setting/GeneralSettings.js.map +0 -1
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { Checkbox, Tag } from '@blueprintjs/core';
|
|
2
|
+
import { useStore } from '@tanstack/react-form';
|
|
3
|
+
import type { PageSizeName, Unit } from '@zakodium/nmrium-core';
|
|
4
|
+
import { units } from '@zakodium/nmrium-core';
|
|
5
|
+
import { memo, useMemo } from 'react';
|
|
6
|
+
import { FormGroup, assertUnreachable, withFieldGroup } from 'react-science/ui';
|
|
7
|
+
import type { z } from 'zod/v4';
|
|
8
|
+
|
|
9
|
+
import { convertToPixels } from '../../../../elements/export/units.js';
|
|
10
|
+
import { useExportConfigurer } from '../../../../elements/export/useExportConfigurer.js';
|
|
11
|
+
import {
|
|
12
|
+
getExportDefaultOptionsByMode,
|
|
13
|
+
getExportOptions,
|
|
14
|
+
} from '../../../../elements/export/utilities/getExportOptions.js';
|
|
15
|
+
import { pageSizes } from '../../../../elements/print/pageSize.js';
|
|
16
|
+
import { exportSettingsValidation } from '../validation/export_tab_validation.js';
|
|
17
|
+
import { defaultGeneralSettingsFormValues } from '../validation.js';
|
|
18
|
+
|
|
19
|
+
type Mode = 'basic' | 'advance';
|
|
20
|
+
type Layout = 'portrait' | 'landscape';
|
|
21
|
+
|
|
22
|
+
interface SelectItem<Value extends string> {
|
|
23
|
+
label: string;
|
|
24
|
+
value: Value;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const pageSizeItems: Record<Layout, Array<SelectItem<PageSizeName>>> = {
|
|
28
|
+
portrait: pageSizes.map((item) => ({
|
|
29
|
+
value: item.name,
|
|
30
|
+
label: `${item.name} (${item.portrait.width} cm x ${item.portrait.height} cm)`,
|
|
31
|
+
})),
|
|
32
|
+
landscape: pageSizes.map((item) => ({
|
|
33
|
+
value: item.name,
|
|
34
|
+
label: `${item.name} (${item.landscape.width} cm x ${item.landscape.height} cm)`,
|
|
35
|
+
})),
|
|
36
|
+
};
|
|
37
|
+
const modeItems: Array<SelectItem<Mode>> = [
|
|
38
|
+
{ label: 'Basic', value: 'basic' },
|
|
39
|
+
{ label: 'Advanced', value: 'advance' },
|
|
40
|
+
];
|
|
41
|
+
const unitItems: Array<SelectItem<Unit>> = units.map((u) => ({
|
|
42
|
+
label: u.name,
|
|
43
|
+
value: u.unit,
|
|
44
|
+
}));
|
|
45
|
+
const layoutItems: Array<SelectItem<Layout>> = [
|
|
46
|
+
{ value: 'portrait', label: 'Portrait' },
|
|
47
|
+
{ value: 'landscape', label: 'Landscape' },
|
|
48
|
+
];
|
|
49
|
+
|
|
50
|
+
function safeNumber(value: number) {
|
|
51
|
+
if (Number.isNaN(value)) value = 1;
|
|
52
|
+
else if (value <= 0) value = 1;
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function safeStringNumber(str: string, onInvalid: (str: string) => void) {
|
|
57
|
+
let isInvalid = false;
|
|
58
|
+
let value = Number(str);
|
|
59
|
+
if (Number.isNaN(value)) {
|
|
60
|
+
value = 1;
|
|
61
|
+
isInvalid = true;
|
|
62
|
+
}
|
|
63
|
+
if (value <= 0) {
|
|
64
|
+
value = 1;
|
|
65
|
+
isInvalid = true;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (!isInvalid) {
|
|
69
|
+
const result = String(value);
|
|
70
|
+
onInvalid(result);
|
|
71
|
+
return result;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return str;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export const ExportFields = withFieldGroup({
|
|
78
|
+
defaultValues: defaultGeneralSettingsFormValues.export.png,
|
|
79
|
+
render: function ExportFields({ group }) {
|
|
80
|
+
const inputValues = useStore(group.store, (s) => s.values);
|
|
81
|
+
const outputValues = useMemo(() => {
|
|
82
|
+
return exportSettingsValidation.decode(inputValues);
|
|
83
|
+
}, [inputValues]);
|
|
84
|
+
const advancedTransforms = useExportConfigurer(outputValues);
|
|
85
|
+
|
|
86
|
+
function onModeChange({ value }: { value: Mode }) {
|
|
87
|
+
const newOptions = getExportDefaultOptionsByMode(value);
|
|
88
|
+
|
|
89
|
+
for (const [key, value] of Object.entries(newOptions)) {
|
|
90
|
+
group.setFieldValue(key as keyof typeof newOptions, value, {
|
|
91
|
+
dontRunListeners: true,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function onChangeUnit({ value }: { value: Unit }) {
|
|
97
|
+
const { width, height } = advancedTransforms.changeUnit({ unit: value });
|
|
98
|
+
group.setFieldValue('width', String(safeNumber(width)), {
|
|
99
|
+
dontRunListeners: true,
|
|
100
|
+
});
|
|
101
|
+
group.setFieldValue('height', String(safeNumber(height)), {
|
|
102
|
+
dontRunListeners: true,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function onWidthChange({ value }: { value: string }) {
|
|
106
|
+
value = safeStringNumber(value, (width) =>
|
|
107
|
+
group.setFieldValue('width', width, { dontRunListeners: true }),
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
const height = advancedTransforms.changeSize(
|
|
111
|
+
Number(value),
|
|
112
|
+
'height',
|
|
113
|
+
'width',
|
|
114
|
+
);
|
|
115
|
+
if (!advancedTransforms.isAspectRatioEnabled) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
group.setFieldValue('height', String(safeNumber(height)), {
|
|
119
|
+
dontRunListeners: true,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function onHeightChange({ value }: { value: string }) {
|
|
123
|
+
value = safeStringNumber(value, (height) =>
|
|
124
|
+
group.setFieldValue('height', height, { dontRunListeners: true }),
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
const width = advancedTransforms.changeSize(
|
|
128
|
+
Number(value),
|
|
129
|
+
'width',
|
|
130
|
+
'height',
|
|
131
|
+
);
|
|
132
|
+
if (!advancedTransforms.isAspectRatioEnabled) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
group.setFieldValue('width', String(safeNumber(width)), {
|
|
136
|
+
dontRunListeners: true,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function onDPIChange({ value }: { value: string }) {
|
|
141
|
+
if (inputValues.mode !== 'advance') return;
|
|
142
|
+
if (inputValues.unit !== 'px') return;
|
|
143
|
+
|
|
144
|
+
value = safeStringNumber(value, (dpi) =>
|
|
145
|
+
group.setFieldValue('dpi', dpi, { dontRunListeners: true }),
|
|
146
|
+
);
|
|
147
|
+
const { width, height } = advancedTransforms.changeDPI(Number(value));
|
|
148
|
+
group.setFieldValue('width', String(safeNumber(width)), {
|
|
149
|
+
dontRunListeners: true,
|
|
150
|
+
});
|
|
151
|
+
group.setFieldValue('height', String(safeNumber(height)), {
|
|
152
|
+
dontRunListeners: true,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const { AppField, Subscribe } = group;
|
|
157
|
+
return (
|
|
158
|
+
<>
|
|
159
|
+
<AppField name="mode" listeners={{ onChange: onModeChange }}>
|
|
160
|
+
{({ RadioGroup }) => <RadioGroup label="Mode" options={modeItems} />}
|
|
161
|
+
</AppField>
|
|
162
|
+
<DescriptionPreview {...outputValues} />
|
|
163
|
+
<Subscribe
|
|
164
|
+
selector={(state) => {
|
|
165
|
+
const mode = state.values.mode;
|
|
166
|
+
switch (state.values.mode) {
|
|
167
|
+
case 'basic':
|
|
168
|
+
return { mode: state.values.mode, layout: state.values.layout };
|
|
169
|
+
case 'advance':
|
|
170
|
+
return { mode: state.values.mode, unit: state.values.unit };
|
|
171
|
+
default:
|
|
172
|
+
assertUnreachable(mode as never);
|
|
173
|
+
}
|
|
174
|
+
}}
|
|
175
|
+
>
|
|
176
|
+
{({ mode, layout, unit }) => {
|
|
177
|
+
switch (mode) {
|
|
178
|
+
case 'basic':
|
|
179
|
+
return (
|
|
180
|
+
<>
|
|
181
|
+
<AppField name="size">
|
|
182
|
+
{({ Select }) => (
|
|
183
|
+
<Select label="Size" items={pageSizeItems[layout]} />
|
|
184
|
+
)}
|
|
185
|
+
</AppField>
|
|
186
|
+
<AppField name="layout">
|
|
187
|
+
{({ RadioGroup }) => (
|
|
188
|
+
<RadioGroup label="Layout" options={layoutItems} />
|
|
189
|
+
)}
|
|
190
|
+
</AppField>
|
|
191
|
+
</>
|
|
192
|
+
);
|
|
193
|
+
case 'advance':
|
|
194
|
+
return (
|
|
195
|
+
<>
|
|
196
|
+
<AppField
|
|
197
|
+
name="unit"
|
|
198
|
+
listeners={{ onChange: onChangeUnit }}
|
|
199
|
+
>
|
|
200
|
+
{({ Select }) => (
|
|
201
|
+
<Select label="Unit" items={unitItems} />
|
|
202
|
+
)}
|
|
203
|
+
</AppField>
|
|
204
|
+
<Checkbox
|
|
205
|
+
label="Keep ratio"
|
|
206
|
+
checked={advancedTransforms.isAspectRatioEnabled}
|
|
207
|
+
onChange={(event) => {
|
|
208
|
+
advancedTransforms.enableAspectRatio(
|
|
209
|
+
event.currentTarget.checked,
|
|
210
|
+
);
|
|
211
|
+
}}
|
|
212
|
+
/>
|
|
213
|
+
<AppField
|
|
214
|
+
name="width"
|
|
215
|
+
listeners={{ onChange: onWidthChange }}
|
|
216
|
+
>
|
|
217
|
+
{({ NumericInput }) => (
|
|
218
|
+
<NumericInput
|
|
219
|
+
label="Width"
|
|
220
|
+
min={1}
|
|
221
|
+
rightElement={<Tag>{unit}</Tag>}
|
|
222
|
+
/>
|
|
223
|
+
)}
|
|
224
|
+
</AppField>
|
|
225
|
+
<AppField
|
|
226
|
+
name="height"
|
|
227
|
+
listeners={{ onChange: onHeightChange }}
|
|
228
|
+
>
|
|
229
|
+
{({ NumericInput }) => (
|
|
230
|
+
<NumericInput
|
|
231
|
+
label="Height"
|
|
232
|
+
min={1}
|
|
233
|
+
rightElement={<Tag>{unit}</Tag>}
|
|
234
|
+
/>
|
|
235
|
+
)}
|
|
236
|
+
</AppField>
|
|
237
|
+
</>
|
|
238
|
+
);
|
|
239
|
+
default:
|
|
240
|
+
assertUnreachable(mode);
|
|
241
|
+
}
|
|
242
|
+
}}
|
|
243
|
+
</Subscribe>
|
|
244
|
+
<AppField name="dpi" listeners={{ onChange: onDPIChange }}>
|
|
245
|
+
{({ NumericInput }) => <NumericInput label="DPI" />}
|
|
246
|
+
</AppField>
|
|
247
|
+
<AppField name="useDefaultSettings">
|
|
248
|
+
{({ Checkbox }) => (
|
|
249
|
+
<Checkbox label="Don't show the options dialog during export and use current settings" />
|
|
250
|
+
)}
|
|
251
|
+
</AppField>
|
|
252
|
+
</>
|
|
253
|
+
);
|
|
254
|
+
},
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
type DescriptionPreviewProps = z.output<typeof exportSettingsValidation>;
|
|
258
|
+
const DescriptionPreview = memo(function DescriptionPreview(
|
|
259
|
+
props: DescriptionPreviewProps,
|
|
260
|
+
) {
|
|
261
|
+
const { width, height, dpi, unit } = getExportOptions(props);
|
|
262
|
+
const convertOptions = { precision: 0 };
|
|
263
|
+
const widthInPixel = convertToPixels(width, unit, dpi, convertOptions);
|
|
264
|
+
const heightInPixel = convertToPixels(height, unit, dpi, convertOptions);
|
|
265
|
+
|
|
266
|
+
return (
|
|
267
|
+
<FormGroup label="Description">
|
|
268
|
+
<Tag>{`${widthInPixel} px x ${heightInPixel} px @ ${dpi}DPI`}</Tag>
|
|
269
|
+
</FormGroup>
|
|
270
|
+
);
|
|
271
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { withForm } from 'react-science/ui';
|
|
2
|
+
|
|
3
|
+
import { defaultGeneralSettingsFormValues } from '../validation.js';
|
|
4
|
+
|
|
5
|
+
import { ExportFields } from './export_tab.fields.js';
|
|
6
|
+
|
|
7
|
+
export const ExportTab = withForm({
|
|
8
|
+
defaultValues: defaultGeneralSettingsFormValues,
|
|
9
|
+
render: ({ form }) => {
|
|
10
|
+
return (
|
|
11
|
+
<>
|
|
12
|
+
<form.Section title="Export SVG to file options">
|
|
13
|
+
<ExportFields form={form} fields="export.svg" />
|
|
14
|
+
</form.Section>
|
|
15
|
+
<form.Section title="Export PNG to file options">
|
|
16
|
+
<ExportFields form={form} fields="export.png" />
|
|
17
|
+
</form.Section>
|
|
18
|
+
<form.Section title="Export PNG to clipboard options">
|
|
19
|
+
<ExportFields form={form} fields="export.clipboard" />
|
|
20
|
+
</form.Section>
|
|
21
|
+
</>
|
|
22
|
+
);
|
|
23
|
+
},
|
|
24
|
+
});
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { Classes } from '@blueprintjs/core';
|
|
2
|
+
import { useField } from '@tanstack/react-form';
|
|
3
|
+
import { createColumnHelper } from '@tanstack/react-table';
|
|
4
|
+
import { EXTERNAL_API_KEYS } from '@zakodium/nmrium-core';
|
|
5
|
+
import { useMemo } from 'react';
|
|
6
|
+
import { FaPlus, FaRegTrashAlt } from 'react-icons/fa';
|
|
7
|
+
import { Button, withForm } from 'react-science/ui';
|
|
8
|
+
import type { z } from 'zod';
|
|
9
|
+
|
|
10
|
+
import { Select2 } from '../../../../elements/Select2.js';
|
|
11
|
+
import {
|
|
12
|
+
CellActions,
|
|
13
|
+
CellActionsButton,
|
|
14
|
+
CellInput,
|
|
15
|
+
TableSettings,
|
|
16
|
+
} from '../ui/table.js';
|
|
17
|
+
import { TableSection } from '../ui/table_section.js';
|
|
18
|
+
import type { externalAPIWithUUIDValidation } from '../validation/external_apis_validation.js';
|
|
19
|
+
import { defaultGeneralSettingsFormValues } from '../validation.js';
|
|
20
|
+
|
|
21
|
+
type API = z.input<typeof externalAPIWithUUIDValidation>;
|
|
22
|
+
function emptyApi(): API {
|
|
23
|
+
return { key: 'CT', serverLink: '', APIKey: '', uuid: crypto.randomUUID() };
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const itemsAPI = EXTERNAL_API_KEYS.slice();
|
|
27
|
+
|
|
28
|
+
export const ExternalApiTab = withForm({
|
|
29
|
+
defaultValues: defaultGeneralSettingsFormValues,
|
|
30
|
+
render: function ExternalApiTab({ form }) {
|
|
31
|
+
const { Field } = form;
|
|
32
|
+
const field = useField({ form, name: 'externalAPIs', mode: 'array' });
|
|
33
|
+
const { name, pushValue, insertValue, removeValue } = field;
|
|
34
|
+
|
|
35
|
+
const columns = useMemo(() => {
|
|
36
|
+
const helper = createColumnHelper<API>();
|
|
37
|
+
return [
|
|
38
|
+
helper.accessor('key', {
|
|
39
|
+
header: 'Service',
|
|
40
|
+
cell: ({ row: { index } }) => (
|
|
41
|
+
<Field name={`${name}[${index}].key`}>
|
|
42
|
+
{(field) => (
|
|
43
|
+
<Select2
|
|
44
|
+
items={itemsAPI}
|
|
45
|
+
itemValueKey="key"
|
|
46
|
+
itemTextKey="description"
|
|
47
|
+
selectedItemValue={field.state.value}
|
|
48
|
+
onItemSelect={({ key }) => field.handleChange(key)}
|
|
49
|
+
intent={!field.state.meta.isValid ? 'danger' : 'none'}
|
|
50
|
+
fill
|
|
51
|
+
/>
|
|
52
|
+
)}
|
|
53
|
+
</Field>
|
|
54
|
+
),
|
|
55
|
+
}),
|
|
56
|
+
helper.accessor('serverLink', {
|
|
57
|
+
header: 'Server link',
|
|
58
|
+
cell: ({ row: { index } }) => (
|
|
59
|
+
<Field name={`${name}[${index}].serverLink`}>
|
|
60
|
+
{(field) => (
|
|
61
|
+
<CellInput
|
|
62
|
+
name={field.name}
|
|
63
|
+
value={field.state.value}
|
|
64
|
+
onChange={field.handleChange}
|
|
65
|
+
onBlur={field.handleBlur}
|
|
66
|
+
intent={
|
|
67
|
+
!field.state.meta.isValid && field.state.meta.isDirty
|
|
68
|
+
? 'danger'
|
|
69
|
+
: 'none'
|
|
70
|
+
}
|
|
71
|
+
/>
|
|
72
|
+
)}
|
|
73
|
+
</Field>
|
|
74
|
+
),
|
|
75
|
+
}),
|
|
76
|
+
helper.accessor('APIKey', {
|
|
77
|
+
header: 'API key',
|
|
78
|
+
cell: ({ row: { index } }) => (
|
|
79
|
+
<Field name={`${name}[${index}].APIKey`}>
|
|
80
|
+
{(field) => (
|
|
81
|
+
<CellInput
|
|
82
|
+
name={field.name}
|
|
83
|
+
value={field.state.value}
|
|
84
|
+
onChange={field.handleChange}
|
|
85
|
+
onBlur={field.handleBlur}
|
|
86
|
+
intent={
|
|
87
|
+
!field.state.meta.isValid && field.state.meta.isDirty
|
|
88
|
+
? 'danger'
|
|
89
|
+
: 'none'
|
|
90
|
+
}
|
|
91
|
+
/>
|
|
92
|
+
)}
|
|
93
|
+
</Field>
|
|
94
|
+
),
|
|
95
|
+
}),
|
|
96
|
+
helper.display({
|
|
97
|
+
id: 'actions',
|
|
98
|
+
header: '',
|
|
99
|
+
cell: ({ row: { index } }) => (
|
|
100
|
+
<CellActions>
|
|
101
|
+
<CellActionsButton
|
|
102
|
+
intent="success"
|
|
103
|
+
onClick={() => insertValue(index, emptyApi())}
|
|
104
|
+
>
|
|
105
|
+
<FaPlus className={Classes.ICON} />
|
|
106
|
+
</CellActionsButton>
|
|
107
|
+
<CellActionsButton
|
|
108
|
+
intent="danger"
|
|
109
|
+
onClick={() => removeValue(index)}
|
|
110
|
+
>
|
|
111
|
+
<FaRegTrashAlt className={Classes.ICON} />
|
|
112
|
+
</CellActionsButton>
|
|
113
|
+
</CellActions>
|
|
114
|
+
),
|
|
115
|
+
}),
|
|
116
|
+
];
|
|
117
|
+
}, [Field, insertValue, name, removeValue]);
|
|
118
|
+
|
|
119
|
+
function onAddField() {
|
|
120
|
+
pushValue(emptyApi());
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return (
|
|
124
|
+
<TableSection
|
|
125
|
+
title="External APIs"
|
|
126
|
+
actions={
|
|
127
|
+
<Button
|
|
128
|
+
size="small"
|
|
129
|
+
variant="outlined"
|
|
130
|
+
intent="success"
|
|
131
|
+
onClick={onAddField}
|
|
132
|
+
>
|
|
133
|
+
Add an external API
|
|
134
|
+
</Button>
|
|
135
|
+
}
|
|
136
|
+
>
|
|
137
|
+
<TableSettings
|
|
138
|
+
data={field.state.value}
|
|
139
|
+
columns={columns}
|
|
140
|
+
getRowId={getRowId}
|
|
141
|
+
emptyContent="No external APIs"
|
|
142
|
+
/>
|
|
143
|
+
</TableSection>
|
|
144
|
+
);
|
|
145
|
+
},
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
function getRowId(row: API) {
|
|
149
|
+
return row.uuid;
|
|
150
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Tag } from '@blueprintjs/core';
|
|
2
|
+
import { withForm } from 'react-science/ui';
|
|
3
|
+
|
|
4
|
+
import { LOGGER_LEVELS } from '../../../../context/LoggerContext.js';
|
|
5
|
+
import type { SelectDefaultItem } from '../../../../elements/Select2.js';
|
|
6
|
+
import { defaultGeneralSettingsFormValues } from '../validation.js';
|
|
7
|
+
|
|
8
|
+
const SHAPE_RENDERING: SelectDefaultItem[] = [
|
|
9
|
+
{
|
|
10
|
+
label: 'Auto',
|
|
11
|
+
value: 'auto',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
label: 'Optimize speed',
|
|
15
|
+
value: 'optimizeSpeed',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
label: 'Crisp edges',
|
|
19
|
+
value: 'crispEdges',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: 'Geometric precision',
|
|
23
|
+
value: 'geometricPrecision',
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
const LOGS_LEVELS = Object.keys(LOGGER_LEVELS).map((level) => ({
|
|
28
|
+
label: level.replace(/^\w/, (c) => c.toUpperCase()),
|
|
29
|
+
value: level,
|
|
30
|
+
}));
|
|
31
|
+
|
|
32
|
+
export const GeneralTab = withForm({
|
|
33
|
+
defaultValues: defaultGeneralSettingsFormValues,
|
|
34
|
+
render: ({ form }) => {
|
|
35
|
+
return (
|
|
36
|
+
<>
|
|
37
|
+
<form.Section title="General">
|
|
38
|
+
<form.AppField name="general.dimmedSpectraOpacity">
|
|
39
|
+
{(field) => (
|
|
40
|
+
<field.NumericInput
|
|
41
|
+
label="Opacity of dimmed spectra"
|
|
42
|
+
helpText="Should be between [0 - 1]"
|
|
43
|
+
min={0}
|
|
44
|
+
max={1}
|
|
45
|
+
step={0.1}
|
|
46
|
+
/>
|
|
47
|
+
)}
|
|
48
|
+
</form.AppField>
|
|
49
|
+
<form.AppField name="general.invert">
|
|
50
|
+
{(field) => <field.Checkbox label="Invert actions" />}
|
|
51
|
+
</form.AppField>
|
|
52
|
+
<form.AppField name="general.invertScroll">
|
|
53
|
+
{(field) => <field.Checkbox label="Invert scroll" />}
|
|
54
|
+
</form.AppField>
|
|
55
|
+
</form.Section>
|
|
56
|
+
<form.Section title="Experimental features">
|
|
57
|
+
<form.AppField name="display.general.experimentalFeatures.display">
|
|
58
|
+
{(field) => <field.Checkbox label="Enable experimental features" />}
|
|
59
|
+
</form.AppField>
|
|
60
|
+
</form.Section>
|
|
61
|
+
<form.Section title="Rendering">
|
|
62
|
+
<form.AppField name="general.spectraRendering">
|
|
63
|
+
{(field) => (
|
|
64
|
+
<field.Select label="Spectra rendering" items={SHAPE_RENDERING} />
|
|
65
|
+
)}
|
|
66
|
+
</form.AppField>
|
|
67
|
+
</form.Section>
|
|
68
|
+
<form.Section title="Logging settings">
|
|
69
|
+
<form.AppField name="general.loggingLevel">
|
|
70
|
+
{(field) => <field.Select label="Level" items={LOGS_LEVELS} />}
|
|
71
|
+
</form.AppField>
|
|
72
|
+
<form.AppField name="general.popupLoggingLevel">
|
|
73
|
+
{(field) => (
|
|
74
|
+
<field.Select label="Popup logging level" items={LOGS_LEVELS} />
|
|
75
|
+
)}
|
|
76
|
+
</form.AppField>
|
|
77
|
+
</form.Section>
|
|
78
|
+
<form.Section title="Peaks label">
|
|
79
|
+
<form.AppField name="peaksLabel.marginTop">
|
|
80
|
+
{(field) => (
|
|
81
|
+
<field.NumericInput
|
|
82
|
+
label="Margin top"
|
|
83
|
+
min={0}
|
|
84
|
+
max={1}
|
|
85
|
+
stepSize={0.1}
|
|
86
|
+
rightElement={<Tag>px</Tag>}
|
|
87
|
+
/>
|
|
88
|
+
)}
|
|
89
|
+
</form.AppField>
|
|
90
|
+
</form.Section>
|
|
91
|
+
</>
|
|
92
|
+
);
|
|
93
|
+
},
|
|
94
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { withFieldGroup, withForm } from 'react-science/ui';
|
|
2
|
+
|
|
3
|
+
import { nmrLoadersGeneralDataSelection } from '../validation/import_filters_tab_validation.js';
|
|
4
|
+
import { defaultGeneralSettingsFormValues } from '../validation.js';
|
|
5
|
+
|
|
6
|
+
export const ImportFiltersTab = withForm({
|
|
7
|
+
defaultValues: defaultGeneralSettingsFormValues,
|
|
8
|
+
render: ({ form }) => {
|
|
9
|
+
const { Section } = form;
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<>
|
|
13
|
+
<Section title="General">
|
|
14
|
+
<General form={form} fields="nmrLoaders.general" />
|
|
15
|
+
</Section>
|
|
16
|
+
<Section title="Bruker">
|
|
17
|
+
<Bruker form={form} fields="nmrLoaders.bruker" />
|
|
18
|
+
</Section>
|
|
19
|
+
</>
|
|
20
|
+
);
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const General = withFieldGroup({
|
|
25
|
+
defaultValues: defaultGeneralSettingsFormValues.nmrLoaders.general,
|
|
26
|
+
render: ({ group }) => {
|
|
27
|
+
const { AppField } = group;
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<>
|
|
31
|
+
<AppField name="keep1D">
|
|
32
|
+
{({ Checkbox }) => <Checkbox label="Keep 1D" />}
|
|
33
|
+
</AppField>
|
|
34
|
+
<AppField name="keep2D">
|
|
35
|
+
{({ Checkbox }) => <Checkbox label="Keep 2D" />}
|
|
36
|
+
</AppField>
|
|
37
|
+
<AppField name="onlyReal">
|
|
38
|
+
{({ Checkbox }) => <Checkbox label="Only real" />}
|
|
39
|
+
</AppField>
|
|
40
|
+
<AppField name="dataSelection">
|
|
41
|
+
{({ Select }) => (
|
|
42
|
+
<Select
|
|
43
|
+
label="Data selection"
|
|
44
|
+
items={nmrLoadersGeneralDataSelection}
|
|
45
|
+
/>
|
|
46
|
+
)}
|
|
47
|
+
</AppField>
|
|
48
|
+
</>
|
|
49
|
+
);
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
const Bruker = withFieldGroup({
|
|
54
|
+
defaultValues: defaultGeneralSettingsFormValues.nmrLoaders.bruker,
|
|
55
|
+
render: ({ group }) => {
|
|
56
|
+
const { AppField } = group;
|
|
57
|
+
|
|
58
|
+
return (
|
|
59
|
+
<>
|
|
60
|
+
<AppField name="processingNumbers">
|
|
61
|
+
{({ Input }) => <Input label="Processing numbers" />}
|
|
62
|
+
</AppField>
|
|
63
|
+
<AppField name="experimentNumbers">
|
|
64
|
+
{({ Input }) => <Input label="Experiment numbers" />}
|
|
65
|
+
</AppField>
|
|
66
|
+
<AppField name="onlyFirstProcessedData">
|
|
67
|
+
{({ Checkbox }) => <Checkbox label="Only first processed data" />}
|
|
68
|
+
</AppField>
|
|
69
|
+
</>
|
|
70
|
+
);
|
|
71
|
+
},
|
|
72
|
+
});
|