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
package/src/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { RefinementCtx } from 'zod';
|
|
2
|
+
|
|
3
|
+
interface CheckUniqueByKeyOptions<T> {
|
|
4
|
+
data?: T[];
|
|
5
|
+
checkKey: keyof T;
|
|
6
|
+
basePath?: string;
|
|
7
|
+
context: RefinementCtx;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function checkUniqueByKey<T>(options: CheckUniqueByKeyOptions<T>) {
|
|
11
|
+
const { data, checkKey, context, basePath = '' } = options;
|
|
12
|
+
|
|
13
|
+
if (!data) return true;
|
|
14
|
+
|
|
15
|
+
const matchesFrequencies: Record<
|
|
16
|
+
string,
|
|
17
|
+
{ value: number; fieldsIndexes: number[] }
|
|
18
|
+
> = {};
|
|
19
|
+
let index = 0;
|
|
20
|
+
for (const datum of data) {
|
|
21
|
+
let key;
|
|
22
|
+
const matchValue = datum[checkKey];
|
|
23
|
+
|
|
24
|
+
if (typeof matchValue === 'string') {
|
|
25
|
+
key = matchValue.toLowerCase();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (key) {
|
|
29
|
+
if (matchesFrequencies[key]) {
|
|
30
|
+
++matchesFrequencies[key].value;
|
|
31
|
+
matchesFrequencies[key].fieldsIndexes.push(index);
|
|
32
|
+
} else {
|
|
33
|
+
matchesFrequencies[key] = { value: 1, fieldsIndexes: [index] };
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
index++;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
for (const key in matchesFrequencies) {
|
|
40
|
+
const { value, fieldsIndexes } = matchesFrequencies[key];
|
|
41
|
+
if (value > 1) {
|
|
42
|
+
for (const index of fieldsIndexes) {
|
|
43
|
+
context.addIssue({
|
|
44
|
+
code: 'custom',
|
|
45
|
+
message: `${key} must be unique`,
|
|
46
|
+
path: basePath
|
|
47
|
+
? [basePath, index, String(checkKey)]
|
|
48
|
+
: [index, String(checkKey)],
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return true;
|
|
55
|
+
}
|
package/src/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
|
|
3
|
+
import { checkUniqueByKey } from './check_unique_by_key.ts';
|
|
4
|
+
|
|
5
|
+
export const databasesValidation = z.object({
|
|
6
|
+
defaultDatabase: z.string(),
|
|
7
|
+
data: z
|
|
8
|
+
.array(
|
|
9
|
+
z.object({
|
|
10
|
+
key: z.string(),
|
|
11
|
+
label: z.string(),
|
|
12
|
+
url: z.string(),
|
|
13
|
+
enabled: z.boolean(),
|
|
14
|
+
}),
|
|
15
|
+
)
|
|
16
|
+
.superRefine((data, ctx) => {
|
|
17
|
+
checkUniqueByKey({
|
|
18
|
+
data,
|
|
19
|
+
checkKey: 'key',
|
|
20
|
+
context: ctx,
|
|
21
|
+
});
|
|
22
|
+
}),
|
|
23
|
+
});
|
package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { Layout, PageSizeName } from '@zakodium/nmrium-core';
|
|
2
|
+
import { units } from '@zakodium/nmrium-core';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
const exportSizes: PageSizeName[] = [
|
|
6
|
+
'Letter',
|
|
7
|
+
'Legal',
|
|
8
|
+
'Tabloid',
|
|
9
|
+
'Executive',
|
|
10
|
+
'Statement',
|
|
11
|
+
'Folio',
|
|
12
|
+
'A3',
|
|
13
|
+
'A4',
|
|
14
|
+
'A5',
|
|
15
|
+
'B4',
|
|
16
|
+
'B5',
|
|
17
|
+
];
|
|
18
|
+
const exportLayouts: Layout[] = ['portrait', 'landscape'];
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @see {import("@zakodium/nmrium-core").BaseExportSettings}
|
|
22
|
+
*/
|
|
23
|
+
const baseExportSettings = z.object({
|
|
24
|
+
useDefaultSettings: z.boolean(),
|
|
25
|
+
dpi: z.coerce.number<string>(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @see {import("@zakodium/nmrium-core").BasicExportSettings}
|
|
30
|
+
*/
|
|
31
|
+
const basicExportSettings = z.object({
|
|
32
|
+
mode: z.literal('basic'),
|
|
33
|
+
...baseExportSettings.shape,
|
|
34
|
+
size: z.enum(exportSizes),
|
|
35
|
+
layout: z.enum(exportLayouts),
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* @see {import("@zakodium/nmrium-core").AdvanceExportSettings}
|
|
39
|
+
*/
|
|
40
|
+
const advancedExportSettings = z.object({
|
|
41
|
+
mode: z.literal('advance'),
|
|
42
|
+
...baseExportSettings.shape,
|
|
43
|
+
width: z.coerce.number<string>(),
|
|
44
|
+
height: z.coerce.number<string>(),
|
|
45
|
+
unit: z.enum(units.map((u) => u.unit)),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @see {import("@zakodium/nmrium-core").ExportSettings}
|
|
50
|
+
*/
|
|
51
|
+
export const exportSettingsValidation = z.discriminatedUnion('mode', [
|
|
52
|
+
basicExportSettings,
|
|
53
|
+
advancedExportSettings,
|
|
54
|
+
]);
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @see {import("@zakodium/nmrium-core").ExportPreferences}
|
|
58
|
+
*/
|
|
59
|
+
export const exportPreferencesValidation = z.object({
|
|
60
|
+
png: exportSettingsValidation,
|
|
61
|
+
svg: exportSettingsValidation,
|
|
62
|
+
clipboard: exportSettingsValidation,
|
|
63
|
+
});
|
package/src/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EXTERNAL_API_KEYS } from '@zakodium/nmrium-core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
import { withUUID } from './utils.ts';
|
|
5
|
+
|
|
6
|
+
const externalAPIValidation = z.object({
|
|
7
|
+
key: z.enum(EXTERNAL_API_KEYS.map(({ key }) => key)),
|
|
8
|
+
serverLink: z.url(),
|
|
9
|
+
APIKey: z.string(),
|
|
10
|
+
});
|
|
11
|
+
export const externalAPIWithUUIDValidation = withUUID(externalAPIValidation);
|
|
12
|
+
export const externalAPIsValidation = z.array(externalAPIWithUUIDValidation);
|
package/src/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
import type { LoggerType } from '../../../../context/LoggerContext.js';
|
|
4
|
+
|
|
5
|
+
import { panelPreferencesTypeValidation } from './panels_tab_validation.ts';
|
|
6
|
+
|
|
7
|
+
const loggingLevel: LoggerType[] = [
|
|
8
|
+
'fatal',
|
|
9
|
+
'error',
|
|
10
|
+
'warn',
|
|
11
|
+
'info',
|
|
12
|
+
'debug',
|
|
13
|
+
'trace',
|
|
14
|
+
'silent',
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
export const peaksLabelValidation = z.object({
|
|
18
|
+
marginTop: z.coerce.number(),
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export const generalValidation = z.object({
|
|
22
|
+
dimmedSpectraOpacity: z.coerce.number().min(0).max(1),
|
|
23
|
+
invert: z.boolean(),
|
|
24
|
+
invertScroll: z.boolean(),
|
|
25
|
+
spectraRendering: z.enum([
|
|
26
|
+
'auto',
|
|
27
|
+
'optimizeSpeed',
|
|
28
|
+
'crispEdges',
|
|
29
|
+
'geometricPrecision',
|
|
30
|
+
]),
|
|
31
|
+
popupLoggingLevel: z.enum(loggingLevel).optional(),
|
|
32
|
+
loggingLevel: z.enum(loggingLevel).optional(),
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export const displayGeneralValidation = z
|
|
36
|
+
.object({
|
|
37
|
+
experimentalFeatures: panelPreferencesTypeValidation,
|
|
38
|
+
hidePanelsBar: z.boolean().optional(),
|
|
39
|
+
})
|
|
40
|
+
.optional();
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const nmrLoadersGeneralDataSelection = [
|
|
4
|
+
{ label: 'FT', value: 'ft' } as const,
|
|
5
|
+
{ label: 'FID', value: 'fid' } as const,
|
|
6
|
+
{ label: 'Both', value: 'both' } as const,
|
|
7
|
+
{ label: 'Prefer FT', value: 'preferFT' } as const,
|
|
8
|
+
{ label: 'Prefer FID', value: 'preferFID' } as const,
|
|
9
|
+
];
|
|
10
|
+
const nmrLoadersGeneralValidation = z.object({
|
|
11
|
+
dataSelection: z
|
|
12
|
+
.enum(nmrLoadersGeneralDataSelection.map(({ value }) => value))
|
|
13
|
+
.optional(),
|
|
14
|
+
keep1D: z.boolean().optional(),
|
|
15
|
+
keep2D: z.boolean().optional(),
|
|
16
|
+
onlyReal: z.boolean().optional(),
|
|
17
|
+
});
|
|
18
|
+
const nmrLoadersBrukerValidation = z.object({
|
|
19
|
+
processingNumbers: z.string().optional(),
|
|
20
|
+
experimentNumbers: z.string().optional(),
|
|
21
|
+
onlyFirstProcessedData: z.boolean().optional(),
|
|
22
|
+
});
|
|
23
|
+
export const nmrLoadersValidation = z.object({
|
|
24
|
+
general: nmrLoadersGeneralValidation,
|
|
25
|
+
bruker: nmrLoadersBrukerValidation,
|
|
26
|
+
});
|
package/src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
import { checkUniqueByKey } from './check_unique_by_key.js';
|
|
4
|
+
import { withUUID } from './utils.ts';
|
|
5
|
+
|
|
6
|
+
export const nucleiValidation = z
|
|
7
|
+
.array(
|
|
8
|
+
withUUID(
|
|
9
|
+
z.object({
|
|
10
|
+
nucleus: z.string({ error: 'Nucleus is a required field' }),
|
|
11
|
+
ppmFormat: z.string({ error: 'PPM format is a required field' }),
|
|
12
|
+
hzFormat: z.string({ error: 'Hz format is a required field' }),
|
|
13
|
+
axisFrom: z.coerce.number<string>().optional(),
|
|
14
|
+
axisTo: z.coerce.number<string>().optional(),
|
|
15
|
+
}),
|
|
16
|
+
),
|
|
17
|
+
)
|
|
18
|
+
.superRefine((nuclei, ctx) => {
|
|
19
|
+
checkUniqueByKey({
|
|
20
|
+
data: nuclei,
|
|
21
|
+
checkKey: 'nucleus',
|
|
22
|
+
context: ctx,
|
|
23
|
+
});
|
|
24
|
+
});
|
package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const displayPanelsStatus = [
|
|
4
|
+
{ label: 'Hidden', value: 'hidden' } as const,
|
|
5
|
+
{ label: 'Available', value: 'available' } as const,
|
|
6
|
+
{ label: 'Active', value: 'active' } as const,
|
|
7
|
+
{ label: 'Open', value: 'open' } as const,
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
type PanelStatus = (typeof displayPanelsStatus)[number]['value'];
|
|
11
|
+
const panelStatusValidation = z.enum([
|
|
12
|
+
...displayPanelsStatus.map((s) => s.value),
|
|
13
|
+
'undefined',
|
|
14
|
+
]);
|
|
15
|
+
|
|
16
|
+
export const panelPreferencesTypeValidation = z
|
|
17
|
+
.object({
|
|
18
|
+
display: z.boolean(),
|
|
19
|
+
visible: z.boolean(),
|
|
20
|
+
open: z.boolean().optional(),
|
|
21
|
+
})
|
|
22
|
+
.optional();
|
|
23
|
+
const panelCodec = z.codec(
|
|
24
|
+
panelStatusValidation,
|
|
25
|
+
panelPreferencesTypeValidation,
|
|
26
|
+
{
|
|
27
|
+
encode: (status) => {
|
|
28
|
+
if (!status) return 'undefined';
|
|
29
|
+
|
|
30
|
+
const { display = false, visible = false, open = false } = status;
|
|
31
|
+
let value: PanelStatus = 'hidden';
|
|
32
|
+
const isActive = visible && display;
|
|
33
|
+
|
|
34
|
+
if (isActive && open) {
|
|
35
|
+
value = 'open';
|
|
36
|
+
} else if (isActive) {
|
|
37
|
+
value = 'active';
|
|
38
|
+
} else if (visible) {
|
|
39
|
+
value = 'available';
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return value;
|
|
43
|
+
},
|
|
44
|
+
decode: (status) => {
|
|
45
|
+
if (status === 'undefined') return undefined;
|
|
46
|
+
|
|
47
|
+
let visible = false;
|
|
48
|
+
let display = false;
|
|
49
|
+
let open = false;
|
|
50
|
+
|
|
51
|
+
if (status === 'available') {
|
|
52
|
+
visible = true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (status === 'active') {
|
|
56
|
+
visible = true;
|
|
57
|
+
display = true;
|
|
58
|
+
}
|
|
59
|
+
if (status === 'open') {
|
|
60
|
+
visible = true;
|
|
61
|
+
display = true;
|
|
62
|
+
open = true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return { open, visible, display };
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
export const displayPanelsValidation = z
|
|
71
|
+
.object({
|
|
72
|
+
spectraPanel: panelCodec,
|
|
73
|
+
informationPanel: panelCodec,
|
|
74
|
+
peaksPanel: panelCodec,
|
|
75
|
+
integralsPanel: panelCodec,
|
|
76
|
+
rangesPanel: panelCodec,
|
|
77
|
+
structuresPanel: panelCodec,
|
|
78
|
+
processingsPanel: panelCodec,
|
|
79
|
+
zonesPanel: panelCodec,
|
|
80
|
+
summaryPanel: panelCodec,
|
|
81
|
+
multipleSpectraAnalysisPanel: panelCodec,
|
|
82
|
+
databasePanel: panelCodec,
|
|
83
|
+
predictionPanel: panelCodec,
|
|
84
|
+
automaticAssignmentPanel: panelCodec,
|
|
85
|
+
matrixGenerationPanel: panelCodec,
|
|
86
|
+
simulationPanel: panelCodec,
|
|
87
|
+
})
|
|
88
|
+
.optional();
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
|
|
3
|
+
import { jpathCodec, withUUID } from './utils.ts';
|
|
4
|
+
|
|
5
|
+
const spectraColorsTabOneDimensionValidation = z.object({
|
|
6
|
+
jpath: jpathCodec,
|
|
7
|
+
value: z.string(),
|
|
8
|
+
color: z.string(),
|
|
9
|
+
});
|
|
10
|
+
export const spectraColorsTabOneDimensionWithUUIDValidation = withUUID(
|
|
11
|
+
spectraColorsTabOneDimensionValidation,
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
const spectraColorsTabTwoDimensionValidation = z.object({
|
|
15
|
+
jpath: jpathCodec,
|
|
16
|
+
value: z.string(),
|
|
17
|
+
positiveColor: z.string(),
|
|
18
|
+
negativeColor: z.string(),
|
|
19
|
+
});
|
|
20
|
+
export const spectraColorsTabTwoDimensionWithUUIDValidation = withUUID(
|
|
21
|
+
spectraColorsTabTwoDimensionValidation,
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
export const spectraColorsTabValidation = z.object({
|
|
25
|
+
highlightColor: z.string(),
|
|
26
|
+
indicatorLineColor: z.string(),
|
|
27
|
+
oneDimension: z.array(spectraColorsTabOneDimensionWithUUIDValidation),
|
|
28
|
+
twoDimensions: z.array(spectraColorsTabTwoDimensionWithUUIDValidation),
|
|
29
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { svgTextStyleFieldsSchema } from 'react-science/ui';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
import { jpathCodec, withUUID } from './utils.ts';
|
|
5
|
+
|
|
6
|
+
const infoBlockFieldTabValidation = z.object({
|
|
7
|
+
format: z.string(),
|
|
8
|
+
jpath: jpathCodec,
|
|
9
|
+
visible: z.boolean(),
|
|
10
|
+
label: z.string().min(1),
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export const infoBlockFieldTabValidationWithUUID = withUUID(
|
|
14
|
+
infoBlockFieldTabValidation,
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
const infoBlockFieldsTabValidation = z.array(
|
|
18
|
+
infoBlockFieldTabValidationWithUUID,
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
export const infoBlockTabValidation = z.object({
|
|
22
|
+
visible: z.boolean(),
|
|
23
|
+
fields: infoBlockFieldsTabValidation,
|
|
24
|
+
nameStyle: svgTextStyleFieldsSchema.optional(),
|
|
25
|
+
valueStyle: svgTextStyleFieldsSchema.optional(),
|
|
26
|
+
});
|
package/src/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const toolBarButtonsValidation = z
|
|
4
|
+
.object({
|
|
5
|
+
zoom: z.boolean().optional(),
|
|
6
|
+
zoomOut: z.boolean().optional(),
|
|
7
|
+
import: z.boolean().optional(),
|
|
8
|
+
exportAs: z.boolean().optional(),
|
|
9
|
+
spectraStackAlignments: z.boolean().optional(),
|
|
10
|
+
spectraCenterAlignments: z.boolean().optional(),
|
|
11
|
+
realImaginary: z.boolean().optional(),
|
|
12
|
+
peakPicking: z.boolean().optional(),
|
|
13
|
+
integral: z.boolean().optional(),
|
|
14
|
+
zonePicking: z.boolean().optional(),
|
|
15
|
+
slicing: z.boolean().optional(),
|
|
16
|
+
rangePicking: z.boolean().optional(),
|
|
17
|
+
zeroFilling: z.boolean().optional(),
|
|
18
|
+
zeroFillingDimension1: z.boolean().optional(),
|
|
19
|
+
zeroFillingDimension2: z.boolean().optional(),
|
|
20
|
+
apodization: z.boolean().optional(),
|
|
21
|
+
apodizationDimension1: z.boolean().optional(),
|
|
22
|
+
apodizationDimension2: z.boolean().optional(),
|
|
23
|
+
phaseCorrection: z.boolean().optional(),
|
|
24
|
+
phaseCorrectionTwoDimensions: z.boolean().optional(),
|
|
25
|
+
baselineCorrection: z.boolean().optional(),
|
|
26
|
+
fft: z.boolean().optional(),
|
|
27
|
+
fftDimension1: z.boolean().optional(),
|
|
28
|
+
fftDimension2: z.boolean().optional(),
|
|
29
|
+
multipleSpectraAnalysis: z.boolean().optional(),
|
|
30
|
+
exclusionZones: z.boolean().optional(),
|
|
31
|
+
autoRangeAndZonePicking: z.boolean().optional(),
|
|
32
|
+
inset: z.boolean().optional(),
|
|
33
|
+
})
|
|
34
|
+
.optional();
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ZodCodec, ZodObject, ZodUUID } from 'zod';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import type { $ZodObjectConfig, $ZodShape } from 'zod/v4/core';
|
|
4
|
+
|
|
5
|
+
export const jpathCodec = z.codec(
|
|
6
|
+
z.string().min(1),
|
|
7
|
+
z.array(z.string().min(1)).min(1),
|
|
8
|
+
{
|
|
9
|
+
encode: (path) => path.join('.'),
|
|
10
|
+
decode: (path) => (path ? path.split('.') : []),
|
|
11
|
+
},
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Add an uuid field to `z.input<validator>` and keep as-is the `z.output<validator>`.
|
|
16
|
+
* It is mandatory for fields in table rows.
|
|
17
|
+
* @param validator
|
|
18
|
+
*/
|
|
19
|
+
export function withUUID<ZT extends ZodObject<$ZodShape, $ZodObjectConfig>>(
|
|
20
|
+
validator: ZT,
|
|
21
|
+
): ZodCodec<ZodObject<ZT['shape'] & { uuid: ZodUUID }>, ZT> {
|
|
22
|
+
return z.codec(validator.extend({ uuid: z.uuid() }), validator, {
|
|
23
|
+
encode: (value) => ({
|
|
24
|
+
...validator.decode(value),
|
|
25
|
+
uuid: crypto.randomUUID(),
|
|
26
|
+
}),
|
|
27
|
+
decode: ({ uuid, ...value }) =>
|
|
28
|
+
validator.encode(value as z.output<typeof validator>),
|
|
29
|
+
});
|
|
30
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
import { workspaceDefaultProperties } from '../../../workspaces/workspaceDefaultProperties.js';
|
|
4
|
+
|
|
5
|
+
import { autoProcessingTabValidation } from './validation/auto_processing_tab_validation.ts';
|
|
6
|
+
import { databasesValidation } from './validation/database_tab_validation.ts';
|
|
7
|
+
import { exportPreferencesValidation } from './validation/export_tab_validation.js';
|
|
8
|
+
import { externalAPIsValidation } from './validation/external_apis_validation.js';
|
|
9
|
+
import {
|
|
10
|
+
displayGeneralValidation,
|
|
11
|
+
generalValidation,
|
|
12
|
+
peaksLabelValidation,
|
|
13
|
+
} from './validation/general_tab_validation.js';
|
|
14
|
+
import { nmrLoadersValidation } from './validation/import_filters_tab_validation.js';
|
|
15
|
+
import { nucleiValidation } from './validation/nuclei_tab_validation.js';
|
|
16
|
+
import { displayPanelsValidation } from './validation/panels_tab_validation.js';
|
|
17
|
+
import { spectraColorsTabValidation } from './validation/spectra_colors_tab_validation.ts';
|
|
18
|
+
import { infoBlockTabValidation } from './validation/title_block_tab_validation.js';
|
|
19
|
+
import { toolBarButtonsValidation } from './validation/tools_tab_validation.ts';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The type for the workspace preferences is `WorkspaceWithSource`
|
|
23
|
+
* The form save / apply actions merge current workspace values with form values.
|
|
24
|
+
*
|
|
25
|
+
* @see {import('../../reducer/preferences/preferencesReducer.ts').WorkspaceWithSource}
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
const displayValidation = z.object({
|
|
29
|
+
general: displayGeneralValidation,
|
|
30
|
+
panels: displayPanelsValidation,
|
|
31
|
+
toolBarButtons: toolBarButtonsValidation,
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export const workspaceValidation = z.object({
|
|
35
|
+
display: displayValidation,
|
|
36
|
+
general: generalValidation,
|
|
37
|
+
nuclei: nucleiValidation,
|
|
38
|
+
databases: databasesValidation,
|
|
39
|
+
nmrLoaders: nmrLoadersValidation,
|
|
40
|
+
infoBlock: infoBlockTabValidation,
|
|
41
|
+
onLoadProcessing: autoProcessingTabValidation,
|
|
42
|
+
spectraColors: spectraColorsTabValidation,
|
|
43
|
+
externalAPIs: externalAPIsValidation,
|
|
44
|
+
export: exportPreferencesValidation,
|
|
45
|
+
peaksLabel: peaksLabelValidation,
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
// This object is used to define type not real values. Do not use it as values
|
|
49
|
+
export const defaultGeneralSettingsFormValues: z.input<
|
|
50
|
+
typeof workspaceValidation
|
|
51
|
+
> = workspaceValidation.encode(workspaceDefaultProperties);
|
|
@@ -4,14 +4,14 @@ import type { BoundingBox, MoleculeView } from '@zakodium/nmrium-core';
|
|
|
4
4
|
import { useForm } from 'react-hook-form';
|
|
5
5
|
import * as Yup from 'yup';
|
|
6
6
|
|
|
7
|
-
import { usePreferences } from '../../context/PreferencesContext.
|
|
7
|
+
import { usePreferences } from '../../context/PreferencesContext.js';
|
|
8
8
|
import { CheckController } from '../../elements/CheckController.js';
|
|
9
9
|
import { GroupPane } from '../../elements/GroupPane.js';
|
|
10
10
|
import type { LabelStyle } from '../../elements/Label.js';
|
|
11
11
|
import Label from '../../elements/Label.js';
|
|
12
12
|
import { NumberInput2Controller } from '../../elements/NumberInput2Controller.js';
|
|
13
13
|
import { Select2Controller } from '../../elements/Select2Controller.js';
|
|
14
|
-
import PreferencesHeader from '../header/PreferencesHeader.
|
|
14
|
+
import PreferencesHeader from '../header/PreferencesHeader.js';
|
|
15
15
|
|
|
16
16
|
const atomAnnotations: Array<{
|
|
17
17
|
value: MoleculeView['atomAnnotation'];
|
|
@@ -13,9 +13,9 @@ import { NextPrev } from '../../elements/NextPrev.js';
|
|
|
13
13
|
import { useMoleculeEditor } from '../../modal/MoleculeStructureEditorModal.js';
|
|
14
14
|
|
|
15
15
|
import MoleculeHeader from './MoleculeHeader.js';
|
|
16
|
-
import { MoleculeOptionsPanel } from './MoleculeOptionsPanel.
|
|
16
|
+
import { MoleculeOptionsPanel } from './MoleculeOptionsPanel.js';
|
|
17
17
|
import MoleculePanelHeader from './MoleculePanelHeader.js';
|
|
18
|
-
import { MoleculeStructure } from './MoleculeStructure.
|
|
18
|
+
import { MoleculeStructure } from './MoleculeStructure.js';
|
|
19
19
|
|
|
20
20
|
const styles: Record<
|
|
21
21
|
'panel' | 'innerPanel' | 'molecule' | 'slider' | 'items',
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import { FaMaximize, FaMinimize } from 'react-icons/fa6';
|
|
17
17
|
import { IoOpenOutline } from 'react-icons/io5';
|
|
18
18
|
import { MdFlashAuto, MdNumbers, MdOutlineLabelOff } from 'react-icons/md';
|
|
19
|
-
import { PanelHeader, Toolbar } from 'react-science/ui';
|
|
19
|
+
import { PanelHeader, Toolbar, TooltipHelpContent } from 'react-science/ui';
|
|
20
20
|
|
|
21
21
|
import type {
|
|
22
22
|
MoleculesView,
|
|
@@ -30,23 +30,23 @@ import { ClipboardFallbackModal } from '../../../utils/clipboard/clipboardCompon
|
|
|
30
30
|
import { useClipboard } from '../../../utils/clipboard/clipboardHooks.js';
|
|
31
31
|
import { useDispatch } from '../../context/DispatchContext.js';
|
|
32
32
|
import { useGlobal } from '../../context/GlobalContext.js';
|
|
33
|
-
import { usePreferences } from '../../context/PreferencesContext.
|
|
33
|
+
import { usePreferences } from '../../context/PreferencesContext.js';
|
|
34
34
|
import { useToaster } from '../../context/ToasterContext.js';
|
|
35
35
|
import { useTopicMolecule } from '../../context/TopicMoleculeContext.js';
|
|
36
36
|
import type { ToolbarPopoverMenuItem } from '../../elements/ToolbarPopoverItem.js';
|
|
37
37
|
import { ToolbarPopoverItem } from '../../elements/ToolbarPopoverItem.js';
|
|
38
|
-
import { useDialogToggle } from '../../hooks/useDialogToggle.
|
|
38
|
+
import { useDialogToggle } from '../../hooks/useDialogToggle.js';
|
|
39
39
|
import AboutPredictionModal from '../../modal/AboutPredictionModal.js';
|
|
40
|
-
import { MoleculeAutoLabelsDatabaseModal } from '../../modal/MoleculeAutoLabelsDatabaseModal.
|
|
40
|
+
import { MoleculeAutoLabelsDatabaseModal } from '../../modal/MoleculeAutoLabelsDatabaseModal.js';
|
|
41
41
|
import PredictSpectraModal from '../../modal/PredictSpectraModal.js';
|
|
42
|
-
import { booleanToString } from '../../utility/booleanToString.
|
|
42
|
+
import { booleanToString } from '../../utility/booleanToString.js';
|
|
43
43
|
import {
|
|
44
44
|
browserNotSupportedErrorToast,
|
|
45
45
|
copyPNGToClipboard,
|
|
46
46
|
exportAsMolfile,
|
|
47
47
|
exportAsSVG,
|
|
48
48
|
} from '../../utility/export.js';
|
|
49
|
-
import { useMoleculeAnnotationCore } from '../hooks/useMoleculeAnnotationCore.
|
|
49
|
+
import { useMoleculeAnnotationCore } from '../hooks/useMoleculeAnnotationCore.js';
|
|
50
50
|
|
|
51
51
|
type ExportOperation =
|
|
52
52
|
| 'CopyAsSmiles'
|
|
@@ -384,7 +384,7 @@ export default function MoleculePanelHeader(props: MoleculePanelHeaderProps) {
|
|
|
384
384
|
{dialog.autoLabelDatabaseDialog && (
|
|
385
385
|
<MoleculeAutoLabelsDatabaseModal onClose={closeDialog} />
|
|
386
386
|
)}
|
|
387
|
-
<Toolbar>
|
|
387
|
+
<Toolbar overflow="collapse">
|
|
388
388
|
{renderSource === 'predictionPanel' && <AboutPredictionModal />}
|
|
389
389
|
{renderSource === 'moleculePanel' && (
|
|
390
390
|
<ToolbarPopoverItem
|
|
@@ -429,7 +429,13 @@ export default function MoleculePanelHeader(props: MoleculePanelHeaderProps) {
|
|
|
429
429
|
disabled={!hasMolecules}
|
|
430
430
|
/>
|
|
431
431
|
<Toolbar.Item
|
|
432
|
-
tooltip={
|
|
432
|
+
tooltip={
|
|
433
|
+
<TooltipHelpContent
|
|
434
|
+
title={`${booleanToString(!isAnnotation('custom-labels'), { trueLabel: 'Display' })} custom atom labels`}
|
|
435
|
+
description="Custom atom labels can be displayed or hidden on the molecule structure"
|
|
436
|
+
link="https://docs.nmrium.org/help/structure-labelling/"
|
|
437
|
+
/>
|
|
438
|
+
}
|
|
433
439
|
icon={<FaRegBookmark />}
|
|
434
440
|
onClick={() => handleChangeAtomAnnotation('custom-labels')}
|
|
435
441
|
active={isAnnotation('custom-labels')}
|