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,192 @@
|
|
|
1
|
+
import { Classes } from '@blueprintjs/core';
|
|
2
|
+
import { useField } from '@tanstack/react-form';
|
|
3
|
+
import { useCallback, useMemo } from 'react';
|
|
4
|
+
import { FaPlus, FaRegTrashAlt } from 'react-icons/fa';
|
|
5
|
+
import { Button, createTableColumnHelper, withForm } from 'react-science/ui';
|
|
6
|
+
import type { z } from 'zod';
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
CellActions,
|
|
10
|
+
CellActionsButton,
|
|
11
|
+
CellInput,
|
|
12
|
+
CellNumericInput,
|
|
13
|
+
TableSettings,
|
|
14
|
+
} from '../ui/table.tsx';
|
|
15
|
+
import { TableSection } from '../ui/table_section.tsx';
|
|
16
|
+
import type { nucleiValidation } from '../validation/nuclei_tab_validation.ts';
|
|
17
|
+
import { defaultGeneralSettingsFormValues } from '../validation.js';
|
|
18
|
+
|
|
19
|
+
type NucleiFormElement = z.input<typeof nucleiValidation>[number];
|
|
20
|
+
|
|
21
|
+
function emptyNucleiFormElement(): NucleiFormElement {
|
|
22
|
+
return {
|
|
23
|
+
nucleus: '',
|
|
24
|
+
ppmFormat: '0.00',
|
|
25
|
+
hzFormat: '0.00',
|
|
26
|
+
uuid: crypto.randomUUID(),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const NucleiTab = withForm({
|
|
31
|
+
defaultValues: defaultGeneralSettingsFormValues,
|
|
32
|
+
render: function Render({ form }) {
|
|
33
|
+
const nucleiField = useField({ form, name: 'nuclei', mode: 'array' });
|
|
34
|
+
|
|
35
|
+
const { Field } = form;
|
|
36
|
+
const { insertValue, removeValue, pushValue } = nucleiField;
|
|
37
|
+
|
|
38
|
+
const insertNucleus = useCallback(
|
|
39
|
+
(index: number) => {
|
|
40
|
+
insertValue(index, emptyNucleiFormElement());
|
|
41
|
+
},
|
|
42
|
+
[insertValue],
|
|
43
|
+
);
|
|
44
|
+
const pushNucleus = useCallback(() => {
|
|
45
|
+
pushValue(emptyNucleiFormElement());
|
|
46
|
+
}, [pushValue]);
|
|
47
|
+
const deleteNucleus = useCallback(
|
|
48
|
+
(index: number) => {
|
|
49
|
+
removeValue(index);
|
|
50
|
+
},
|
|
51
|
+
[removeValue],
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
const COLUMNS = useMemo(() => {
|
|
55
|
+
const columnHelper = createTableColumnHelper<NucleiFormElement>();
|
|
56
|
+
return [
|
|
57
|
+
columnHelper.accessor('nucleus', {
|
|
58
|
+
header: 'Nucleus',
|
|
59
|
+
cell: ({ row: { index } }) => (
|
|
60
|
+
<Field key={index} name={`nuclei[${index}].nucleus`}>
|
|
61
|
+
{(subField) => (
|
|
62
|
+
<CellInput
|
|
63
|
+
value={subField.state.value}
|
|
64
|
+
onChange={subField.handleChange}
|
|
65
|
+
onBlur={subField.handleBlur}
|
|
66
|
+
/>
|
|
67
|
+
)}
|
|
68
|
+
</Field>
|
|
69
|
+
),
|
|
70
|
+
}),
|
|
71
|
+
columnHelper.accessor('ppmFormat', {
|
|
72
|
+
header: 'δ (ppm)',
|
|
73
|
+
cell: ({ row: { index } }) => (
|
|
74
|
+
<Field key={index} name={`nuclei[${index}].ppmFormat`}>
|
|
75
|
+
{(subField) => (
|
|
76
|
+
<CellInput
|
|
77
|
+
value={subField.state.value}
|
|
78
|
+
onChange={subField.handleChange}
|
|
79
|
+
onBlur={subField.handleBlur}
|
|
80
|
+
/>
|
|
81
|
+
)}
|
|
82
|
+
</Field>
|
|
83
|
+
),
|
|
84
|
+
}),
|
|
85
|
+
columnHelper.accessor('hzFormat', {
|
|
86
|
+
header: 'Coupling (Hz)',
|
|
87
|
+
cell: ({ row: { index } }) => (
|
|
88
|
+
<Field key={index} name={`nuclei[${index}].hzFormat`}>
|
|
89
|
+
{(subField) => (
|
|
90
|
+
<CellInput
|
|
91
|
+
value={subField.state.value}
|
|
92
|
+
onChange={subField.handleChange}
|
|
93
|
+
onBlur={subField.handleBlur}
|
|
94
|
+
/>
|
|
95
|
+
)}
|
|
96
|
+
</Field>
|
|
97
|
+
),
|
|
98
|
+
}),
|
|
99
|
+
columnHelper.display({
|
|
100
|
+
id: 'axisFrom',
|
|
101
|
+
header: 'Axis from',
|
|
102
|
+
cell: ({ row: { index } }) => (
|
|
103
|
+
<Field key={index} name={`nuclei[${index}].axisFrom`}>
|
|
104
|
+
{(subField) => (
|
|
105
|
+
<CellNumericInput
|
|
106
|
+
value={subField.state.value}
|
|
107
|
+
onChange={(event) =>
|
|
108
|
+
subField.handleChange(event.currentTarget.value)
|
|
109
|
+
}
|
|
110
|
+
onBlur={subField.handleBlur}
|
|
111
|
+
fill
|
|
112
|
+
/>
|
|
113
|
+
)}
|
|
114
|
+
</Field>
|
|
115
|
+
),
|
|
116
|
+
}),
|
|
117
|
+
columnHelper.display({
|
|
118
|
+
id: 'axisTo',
|
|
119
|
+
header: 'Axis to',
|
|
120
|
+
cell: ({ row: { index } }) => (
|
|
121
|
+
<Field key={index} name={`nuclei[${index}].axisTo`}>
|
|
122
|
+
{(subField) => (
|
|
123
|
+
<CellNumericInput
|
|
124
|
+
value={subField.state.value}
|
|
125
|
+
onChange={(event) =>
|
|
126
|
+
subField.handleChange(event.currentTarget.value)
|
|
127
|
+
}
|
|
128
|
+
onBlur={subField.handleBlur}
|
|
129
|
+
fill
|
|
130
|
+
/>
|
|
131
|
+
)}
|
|
132
|
+
</Field>
|
|
133
|
+
),
|
|
134
|
+
}),
|
|
135
|
+
columnHelper.display({
|
|
136
|
+
id: 'actions',
|
|
137
|
+
header: '',
|
|
138
|
+
meta: {
|
|
139
|
+
thStyle: {
|
|
140
|
+
width: '60px',
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
cell: ({ row: { index } }) => (
|
|
144
|
+
<CellActions>
|
|
145
|
+
<CellActionsButton
|
|
146
|
+
intent="success"
|
|
147
|
+
onClick={() => insertNucleus(index + 1)}
|
|
148
|
+
>
|
|
149
|
+
<FaPlus className={Classes.ICON} />
|
|
150
|
+
</CellActionsButton>
|
|
151
|
+
<CellActionsButton
|
|
152
|
+
intent="danger"
|
|
153
|
+
onClick={() => deleteNucleus(index)}
|
|
154
|
+
>
|
|
155
|
+
<FaRegTrashAlt className={Classes.ICON} />
|
|
156
|
+
</CellActionsButton>
|
|
157
|
+
</CellActions>
|
|
158
|
+
),
|
|
159
|
+
}),
|
|
160
|
+
];
|
|
161
|
+
}, [Field, deleteNucleus, insertNucleus]);
|
|
162
|
+
|
|
163
|
+
return (
|
|
164
|
+
<TableSection
|
|
165
|
+
title="Nuclei number formatting"
|
|
166
|
+
description="for crosshair, info line and axis domain"
|
|
167
|
+
actions={
|
|
168
|
+
<Button
|
|
169
|
+
size="small"
|
|
170
|
+
variant="outlined"
|
|
171
|
+
intent="success"
|
|
172
|
+
tooltipProps={{ content: '', disabled: true }}
|
|
173
|
+
onClick={pushNucleus}
|
|
174
|
+
>
|
|
175
|
+
Add nuclei preferences
|
|
176
|
+
</Button>
|
|
177
|
+
}
|
|
178
|
+
>
|
|
179
|
+
<TableSettings
|
|
180
|
+
data={nucleiField.state.value}
|
|
181
|
+
columns={COLUMNS}
|
|
182
|
+
emptyContent="No nucleus"
|
|
183
|
+
getRowId={getRowId}
|
|
184
|
+
/>
|
|
185
|
+
</TableSection>
|
|
186
|
+
);
|
|
187
|
+
},
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
function getRowId(row: NucleiFormElement) {
|
|
191
|
+
return row.uuid;
|
|
192
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { withFieldGroup, withForm } from 'react-science/ui';
|
|
2
|
+
|
|
3
|
+
import { displayPanelsStatus } from '../validation/panels_tab_validation.js';
|
|
4
|
+
import { defaultGeneralSettingsFormValues } from '../validation.js';
|
|
5
|
+
|
|
6
|
+
export const PanelsTab = withForm({
|
|
7
|
+
defaultValues: defaultGeneralSettingsFormValues,
|
|
8
|
+
render: ({ form }) => {
|
|
9
|
+
const { Section, AppField } = form;
|
|
10
|
+
return (
|
|
11
|
+
<>
|
|
12
|
+
<Section title="Panels bar">
|
|
13
|
+
<AppField name="display.general.hidePanelsBar">
|
|
14
|
+
{({ Checkbox }) => <Checkbox label="Hide panels bar" />}
|
|
15
|
+
</AppField>
|
|
16
|
+
</Section>
|
|
17
|
+
|
|
18
|
+
<SpectraSettings form={form} fields="display.panels" />
|
|
19
|
+
<Spectra1dSettings form={form} fields="display.panels" />
|
|
20
|
+
<Spectra2dSettings form={form} fields="display.panels" />
|
|
21
|
+
<ChemicalSettings form={form} fields="display.panels" />
|
|
22
|
+
</>
|
|
23
|
+
);
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const SpectraSettings = withFieldGroup({
|
|
28
|
+
defaultValues: defaultGeneralSettingsFormValues.display.panels,
|
|
29
|
+
render: ({ group }) => {
|
|
30
|
+
const { Section, AppField } = group;
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Section title="Spectra">
|
|
34
|
+
<AppField name="spectraPanel">
|
|
35
|
+
{({ Select }) => (
|
|
36
|
+
<Select label="Spectra selection" items={displayPanelsStatus} />
|
|
37
|
+
)}
|
|
38
|
+
</AppField>
|
|
39
|
+
<AppField name="informationPanel">
|
|
40
|
+
{({ Select }) => (
|
|
41
|
+
<Select label="Information" items={displayPanelsStatus} />
|
|
42
|
+
)}
|
|
43
|
+
</AppField>
|
|
44
|
+
<AppField name="processingsPanel">
|
|
45
|
+
{({ Select }) => (
|
|
46
|
+
<Select label="Processing" items={displayPanelsStatus} />
|
|
47
|
+
)}
|
|
48
|
+
</AppField>
|
|
49
|
+
</Section>
|
|
50
|
+
);
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
const Spectra1dSettings = withFieldGroup({
|
|
55
|
+
defaultValues: defaultGeneralSettingsFormValues.display.panels,
|
|
56
|
+
render: ({ group }) => {
|
|
57
|
+
const { Section, AppField } = group;
|
|
58
|
+
|
|
59
|
+
return (
|
|
60
|
+
<Section title="1D Spectra">
|
|
61
|
+
<AppField name="peaksPanel">
|
|
62
|
+
{({ Select }) => <Select label="Peaks" items={displayPanelsStatus} />}
|
|
63
|
+
</AppField>
|
|
64
|
+
<AppField name="integralsPanel">
|
|
65
|
+
{({ Select }) => (
|
|
66
|
+
<Select label="Integrals" items={displayPanelsStatus} />
|
|
67
|
+
)}
|
|
68
|
+
</AppField>
|
|
69
|
+
<AppField name="rangesPanel">
|
|
70
|
+
{({ Select }) => (
|
|
71
|
+
<Select
|
|
72
|
+
label="Ranges / Multiplet analysis"
|
|
73
|
+
items={displayPanelsStatus}
|
|
74
|
+
/>
|
|
75
|
+
)}
|
|
76
|
+
</AppField>
|
|
77
|
+
<AppField name="matrixGenerationPanel">
|
|
78
|
+
{({ Select }) => (
|
|
79
|
+
<Select label="Matrix generation" items={displayPanelsStatus} />
|
|
80
|
+
)}
|
|
81
|
+
</AppField>
|
|
82
|
+
<AppField name="simulationPanel">
|
|
83
|
+
{({ Select }) => (
|
|
84
|
+
<Select label="Spectrum simulation" items={displayPanelsStatus} />
|
|
85
|
+
)}
|
|
86
|
+
</AppField>
|
|
87
|
+
<AppField name="multipleSpectraAnalysisPanel">
|
|
88
|
+
{({ Select }) => (
|
|
89
|
+
<Select
|
|
90
|
+
label="Multiple spectra analysis"
|
|
91
|
+
items={displayPanelsStatus}
|
|
92
|
+
/>
|
|
93
|
+
)}
|
|
94
|
+
</AppField>
|
|
95
|
+
</Section>
|
|
96
|
+
);
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
const Spectra2dSettings = withFieldGroup({
|
|
101
|
+
defaultValues: defaultGeneralSettingsFormValues.display.panels,
|
|
102
|
+
render: ({ group }) => {
|
|
103
|
+
const { Section, AppField } = group;
|
|
104
|
+
|
|
105
|
+
return (
|
|
106
|
+
<Section title="2D Spectra">
|
|
107
|
+
<AppField name="zonesPanel">
|
|
108
|
+
{({ Select }) => <Select label="Zones" items={displayPanelsStatus} />}
|
|
109
|
+
</AppField>
|
|
110
|
+
</Section>
|
|
111
|
+
);
|
|
112
|
+
},
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
const ChemicalSettings = withFieldGroup({
|
|
116
|
+
defaultValues: defaultGeneralSettingsFormValues.display.panels,
|
|
117
|
+
render: ({ group }) => {
|
|
118
|
+
const { Section, AppField } = group;
|
|
119
|
+
|
|
120
|
+
return (
|
|
121
|
+
<Section title="Chemicals">
|
|
122
|
+
<AppField name="structuresPanel">
|
|
123
|
+
{({ Select }) => (
|
|
124
|
+
<Select label="Chemical structures" items={displayPanelsStatus} />
|
|
125
|
+
)}
|
|
126
|
+
</AppField>
|
|
127
|
+
<AppField name="summaryPanel">
|
|
128
|
+
{({ Select }) => (
|
|
129
|
+
<Select label="Summary" items={displayPanelsStatus} />
|
|
130
|
+
)}
|
|
131
|
+
</AppField>
|
|
132
|
+
<AppField name="databasePanel">
|
|
133
|
+
{({ Select }) => (
|
|
134
|
+
<Select label="Databases" items={displayPanelsStatus} />
|
|
135
|
+
)}
|
|
136
|
+
</AppField>
|
|
137
|
+
<AppField name="predictionPanel">
|
|
138
|
+
{({ Select }) => (
|
|
139
|
+
<Select label="Prediction" items={displayPanelsStatus} />
|
|
140
|
+
)}
|
|
141
|
+
</AppField>
|
|
142
|
+
<AppField name="automaticAssignmentPanel">
|
|
143
|
+
{({ Select }) => (
|
|
144
|
+
<Select label="Automatic assignment" items={displayPanelsStatus} />
|
|
145
|
+
)}
|
|
146
|
+
</AppField>
|
|
147
|
+
</Section>
|
|
148
|
+
);
|
|
149
|
+
},
|
|
150
|
+
});
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import { Classes } from '@blueprintjs/core';
|
|
2
|
+
import { useField } from '@tanstack/react-form';
|
|
3
|
+
import { createColumnHelper } from '@tanstack/react-table';
|
|
4
|
+
import { useCallback, useMemo } from 'react';
|
|
5
|
+
import { FaPlus, FaRegTrashAlt } from 'react-icons/fa';
|
|
6
|
+
import { Button, withFieldGroup, withForm } from 'react-science/ui';
|
|
7
|
+
import type { z } from 'zod/v4';
|
|
8
|
+
|
|
9
|
+
import { useChartData } from '../../../../context/ChartContext.tsx';
|
|
10
|
+
import { getSpectraObjectPaths } from '../../../../utility/getSpectraObjectPaths.ts';
|
|
11
|
+
import {
|
|
12
|
+
CellActions,
|
|
13
|
+
CellActionsButton,
|
|
14
|
+
CellColorPicker,
|
|
15
|
+
CellInput,
|
|
16
|
+
TableSettings,
|
|
17
|
+
} from '../ui/table.tsx';
|
|
18
|
+
import { TableSection } from '../ui/table_section.tsx';
|
|
19
|
+
import type {
|
|
20
|
+
spectraColorsTabOneDimensionWithUUIDValidation,
|
|
21
|
+
spectraColorsTabTwoDimensionWithUUIDValidation,
|
|
22
|
+
} from '../validation/spectra_colors_tab_validation.ts';
|
|
23
|
+
import { defaultGeneralSettingsFormValues } from '../validation.ts';
|
|
24
|
+
|
|
25
|
+
export const SpectraColorsTab = withForm({
|
|
26
|
+
defaultValues: defaultGeneralSettingsFormValues,
|
|
27
|
+
render: function Render({ form }) {
|
|
28
|
+
return (
|
|
29
|
+
<>
|
|
30
|
+
<GeneralColors form={form} fields="spectraColors" />
|
|
31
|
+
<Spectra1DColors form={form} />
|
|
32
|
+
<Spectra2DColors form={form} />
|
|
33
|
+
</>
|
|
34
|
+
);
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const GeneralColors = withFieldGroup({
|
|
39
|
+
defaultValues: defaultGeneralSettingsFormValues.spectraColors,
|
|
40
|
+
render: ({ group }) => {
|
|
41
|
+
return (
|
|
42
|
+
<group.Section title="General">
|
|
43
|
+
<group.AppField name="highlightColor">
|
|
44
|
+
{(field) => <field.ColorPicker label="Assignment highlight color" />}
|
|
45
|
+
</group.AppField>
|
|
46
|
+
<group.AppField name="indicatorLineColor">
|
|
47
|
+
{(field) => <field.ColorPicker label="Indicator line color" />}
|
|
48
|
+
</group.AppField>
|
|
49
|
+
</group.Section>
|
|
50
|
+
);
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
type OneDimensionData = z.input<
|
|
55
|
+
typeof spectraColorsTabOneDimensionWithUUIDValidation
|
|
56
|
+
>;
|
|
57
|
+
const Spectra1DColors = withForm({
|
|
58
|
+
defaultValues: defaultGeneralSettingsFormValues,
|
|
59
|
+
render: function Render({ form }) {
|
|
60
|
+
const { Field } = form;
|
|
61
|
+
|
|
62
|
+
const field = useField({
|
|
63
|
+
form,
|
|
64
|
+
name: 'spectraColors.oneDimension',
|
|
65
|
+
mode: 'array',
|
|
66
|
+
});
|
|
67
|
+
const { insertValue, removeValue } = field;
|
|
68
|
+
|
|
69
|
+
const { data: chartData } = useChartData();
|
|
70
|
+
const { datalist } = useMemo(() => {
|
|
71
|
+
return getSpectraObjectPaths(chartData);
|
|
72
|
+
}, [chartData]);
|
|
73
|
+
|
|
74
|
+
const handleAdd = useCallback(
|
|
75
|
+
(index: number) => {
|
|
76
|
+
insertValue(index, {
|
|
77
|
+
uuid: crypto.randomUUID(),
|
|
78
|
+
value: '',
|
|
79
|
+
jpath: 'info.experiment',
|
|
80
|
+
color: 'red',
|
|
81
|
+
});
|
|
82
|
+
},
|
|
83
|
+
[insertValue],
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
const handleDelete = useCallback(
|
|
87
|
+
(index: number) => {
|
|
88
|
+
removeValue(index);
|
|
89
|
+
},
|
|
90
|
+
[removeValue],
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
const COLUMNS = useMemo(() => {
|
|
94
|
+
const helper = createColumnHelper<OneDimensionData>();
|
|
95
|
+
return [
|
|
96
|
+
helper.accessor('jpath', {
|
|
97
|
+
header: 'Field',
|
|
98
|
+
cell: ({ row: { index } }) => (
|
|
99
|
+
<Field name={`spectraColors.oneDimension[${index}].jpath`}>
|
|
100
|
+
{(field) => (
|
|
101
|
+
<CellInput
|
|
102
|
+
name={field.name}
|
|
103
|
+
value={field.state.value}
|
|
104
|
+
filterItems={datalist}
|
|
105
|
+
onChange={field.handleChange}
|
|
106
|
+
onBlur={field.handleBlur}
|
|
107
|
+
/>
|
|
108
|
+
)}
|
|
109
|
+
</Field>
|
|
110
|
+
),
|
|
111
|
+
}),
|
|
112
|
+
helper.accessor('value', {
|
|
113
|
+
header: 'Value',
|
|
114
|
+
cell: ({ row: { index } }) => (
|
|
115
|
+
<Field name={`spectraColors.oneDimension[${index}].value`}>
|
|
116
|
+
{(field) => (
|
|
117
|
+
<CellInput
|
|
118
|
+
name={field.name}
|
|
119
|
+
value={field.state.value}
|
|
120
|
+
onBlur={field.handleBlur}
|
|
121
|
+
onChange={field.handleChange}
|
|
122
|
+
/>
|
|
123
|
+
)}
|
|
124
|
+
</Field>
|
|
125
|
+
),
|
|
126
|
+
}),
|
|
127
|
+
helper.accessor('color', {
|
|
128
|
+
header: 'Color',
|
|
129
|
+
cell: ({ row: { index } }) => (
|
|
130
|
+
<Field name={`spectraColors.oneDimension[${index}].color`}>
|
|
131
|
+
{(field) => (
|
|
132
|
+
<CellColorPicker
|
|
133
|
+
color={{ hex: field.state.value }}
|
|
134
|
+
onChangeComplete={({ hex }) => field.handleChange(hex)}
|
|
135
|
+
/>
|
|
136
|
+
)}
|
|
137
|
+
</Field>
|
|
138
|
+
),
|
|
139
|
+
}),
|
|
140
|
+
helper.display({
|
|
141
|
+
id: 'actions',
|
|
142
|
+
header: '',
|
|
143
|
+
cell: ({ row: { index, original } }) => (
|
|
144
|
+
<CellActions>
|
|
145
|
+
<CellActionsButton
|
|
146
|
+
intent="success"
|
|
147
|
+
onClick={() => handleAdd(index + 1)}
|
|
148
|
+
>
|
|
149
|
+
<FaPlus className={Classes.ICON} />
|
|
150
|
+
</CellActionsButton>
|
|
151
|
+
{!('name' in original) && (
|
|
152
|
+
<CellActionsButton
|
|
153
|
+
intent="danger"
|
|
154
|
+
onClick={() => handleDelete(index)}
|
|
155
|
+
>
|
|
156
|
+
<FaRegTrashAlt className={Classes.ICON} />
|
|
157
|
+
</CellActionsButton>
|
|
158
|
+
)}
|
|
159
|
+
</CellActions>
|
|
160
|
+
),
|
|
161
|
+
}),
|
|
162
|
+
];
|
|
163
|
+
}, [Field, datalist, handleAdd, handleDelete]);
|
|
164
|
+
|
|
165
|
+
return (
|
|
166
|
+
<TableSection
|
|
167
|
+
title="1D Spectra"
|
|
168
|
+
actions={
|
|
169
|
+
<Button
|
|
170
|
+
size="small"
|
|
171
|
+
variant="outlined"
|
|
172
|
+
intent="success"
|
|
173
|
+
onClick={() => handleAdd(0)}
|
|
174
|
+
>
|
|
175
|
+
Add custom color
|
|
176
|
+
</Button>
|
|
177
|
+
}
|
|
178
|
+
>
|
|
179
|
+
<TableSettings
|
|
180
|
+
data={field.state.value}
|
|
181
|
+
columns={COLUMNS}
|
|
182
|
+
getRowId={get1DRowId}
|
|
183
|
+
emptyContent="No criteria colors"
|
|
184
|
+
/>
|
|
185
|
+
</TableSection>
|
|
186
|
+
);
|
|
187
|
+
},
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
function get1DRowId(row: OneDimensionData) {
|
|
191
|
+
return row.uuid;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
type TwoDimensionData = z.input<
|
|
195
|
+
typeof spectraColorsTabTwoDimensionWithUUIDValidation
|
|
196
|
+
>;
|
|
197
|
+
const Spectra2DColors = withForm({
|
|
198
|
+
defaultValues: defaultGeneralSettingsFormValues,
|
|
199
|
+
render: function Render({ form }) {
|
|
200
|
+
const { Field } = form;
|
|
201
|
+
|
|
202
|
+
const field = useField({
|
|
203
|
+
form,
|
|
204
|
+
name: 'spectraColors.twoDimensions',
|
|
205
|
+
mode: 'array',
|
|
206
|
+
});
|
|
207
|
+
const { insertValue, removeValue } = field;
|
|
208
|
+
|
|
209
|
+
const handleAdd = useCallback(
|
|
210
|
+
(index: number) => {
|
|
211
|
+
insertValue(index, {
|
|
212
|
+
uuid: crypto.randomUUID(),
|
|
213
|
+
value: '',
|
|
214
|
+
jpath: 'info.experiment',
|
|
215
|
+
positiveColor: 'red',
|
|
216
|
+
negativeColor: 'blue',
|
|
217
|
+
});
|
|
218
|
+
},
|
|
219
|
+
[insertValue],
|
|
220
|
+
);
|
|
221
|
+
|
|
222
|
+
const handleDelete = useCallback(
|
|
223
|
+
(index: number) => {
|
|
224
|
+
removeValue(index);
|
|
225
|
+
},
|
|
226
|
+
[removeValue],
|
|
227
|
+
);
|
|
228
|
+
|
|
229
|
+
const { data: chartData } = useChartData();
|
|
230
|
+
const { datalist } = useMemo(() => {
|
|
231
|
+
return getSpectraObjectPaths(chartData);
|
|
232
|
+
}, [chartData]);
|
|
233
|
+
|
|
234
|
+
const COLUMNS = useMemo(() => {
|
|
235
|
+
const helper = createColumnHelper<TwoDimensionData>();
|
|
236
|
+
return [
|
|
237
|
+
helper.accessor('jpath', {
|
|
238
|
+
header: 'Field',
|
|
239
|
+
cell: ({ row: { index } }) => (
|
|
240
|
+
<Field name={`spectraColors.twoDimensions[${index}].jpath`}>
|
|
241
|
+
{(field) => (
|
|
242
|
+
<CellInput
|
|
243
|
+
name={field.name}
|
|
244
|
+
value={field.state.value}
|
|
245
|
+
filterItems={datalist}
|
|
246
|
+
onChange={field.handleChange}
|
|
247
|
+
onBlur={field.handleBlur}
|
|
248
|
+
/>
|
|
249
|
+
)}
|
|
250
|
+
</Field>
|
|
251
|
+
),
|
|
252
|
+
}),
|
|
253
|
+
helper.accessor('value', {
|
|
254
|
+
header: 'Value',
|
|
255
|
+
cell: ({ row: { index } }) => (
|
|
256
|
+
<Field name={`spectraColors.twoDimensions[${index}].value`}>
|
|
257
|
+
{(field) => (
|
|
258
|
+
<CellInput
|
|
259
|
+
name={field.name}
|
|
260
|
+
value={field.state.value}
|
|
261
|
+
onChange={field.handleChange}
|
|
262
|
+
onBlur={field.handleBlur}
|
|
263
|
+
/>
|
|
264
|
+
)}
|
|
265
|
+
</Field>
|
|
266
|
+
),
|
|
267
|
+
}),
|
|
268
|
+
helper.accessor('positiveColor', {
|
|
269
|
+
header: 'Positive color',
|
|
270
|
+
cell: ({ row: { index } }) => (
|
|
271
|
+
<Field name={`spectraColors.twoDimensions[${index}].positiveColor`}>
|
|
272
|
+
{(field) => (
|
|
273
|
+
<CellColorPicker
|
|
274
|
+
color={{ hex: field.state.value }}
|
|
275
|
+
onChangeComplete={({ hex }) => {
|
|
276
|
+
field.handleChange(hex);
|
|
277
|
+
field.handleBlur();
|
|
278
|
+
}}
|
|
279
|
+
/>
|
|
280
|
+
)}
|
|
281
|
+
</Field>
|
|
282
|
+
),
|
|
283
|
+
}),
|
|
284
|
+
helper.accessor('negativeColor', {
|
|
285
|
+
header: 'Negative color',
|
|
286
|
+
cell: ({ row: { index } }) => (
|
|
287
|
+
<Field name={`spectraColors.twoDimensions[${index}].negativeColor`}>
|
|
288
|
+
{(field) => (
|
|
289
|
+
<CellColorPicker
|
|
290
|
+
color={{ hex: field.state.value }}
|
|
291
|
+
onChangeComplete={({ hex }) => {
|
|
292
|
+
field.handleChange(hex);
|
|
293
|
+
field.handleBlur();
|
|
294
|
+
}}
|
|
295
|
+
/>
|
|
296
|
+
)}
|
|
297
|
+
</Field>
|
|
298
|
+
),
|
|
299
|
+
}),
|
|
300
|
+
helper.display({
|
|
301
|
+
id: 'actions',
|
|
302
|
+
header: '',
|
|
303
|
+
cell: ({ row: { index, original } }) => (
|
|
304
|
+
<CellActions>
|
|
305
|
+
<CellActionsButton
|
|
306
|
+
intent="success"
|
|
307
|
+
onClick={() => handleAdd(index + 1)}
|
|
308
|
+
>
|
|
309
|
+
<FaPlus className={Classes.ICON} />
|
|
310
|
+
</CellActionsButton>
|
|
311
|
+
{!('name' in original) && (
|
|
312
|
+
<CellActionsButton
|
|
313
|
+
intent="danger"
|
|
314
|
+
onClick={() => handleDelete(index)}
|
|
315
|
+
>
|
|
316
|
+
<FaRegTrashAlt className={Classes.ICON} />
|
|
317
|
+
</CellActionsButton>
|
|
318
|
+
)}
|
|
319
|
+
</CellActions>
|
|
320
|
+
),
|
|
321
|
+
}),
|
|
322
|
+
];
|
|
323
|
+
}, [Field, datalist, handleAdd, handleDelete]);
|
|
324
|
+
|
|
325
|
+
return (
|
|
326
|
+
<TableSection
|
|
327
|
+
title="2D Spectra"
|
|
328
|
+
actions={
|
|
329
|
+
<Button
|
|
330
|
+
size="small"
|
|
331
|
+
variant="outlined"
|
|
332
|
+
intent="success"
|
|
333
|
+
onClick={() => handleAdd(0)}
|
|
334
|
+
>
|
|
335
|
+
Add custom color
|
|
336
|
+
</Button>
|
|
337
|
+
}
|
|
338
|
+
>
|
|
339
|
+
<TableSettings
|
|
340
|
+
data={field.state.value}
|
|
341
|
+
columns={COLUMNS}
|
|
342
|
+
getRowId={get2DRowId}
|
|
343
|
+
emptyContent="No criteria colors"
|
|
344
|
+
/>
|
|
345
|
+
</TableSection>
|
|
346
|
+
);
|
|
347
|
+
},
|
|
348
|
+
});
|
|
349
|
+
|
|
350
|
+
function get2DRowId(row: TwoDimensionData) {
|
|
351
|
+
return row.uuid;
|
|
352
|
+
}
|