nmrium 2.3.0 → 2.5.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/HorizontalAxis1D.d.ts.map +1 -1
- package/lib/component/1d/HorizontalAxis1D.js +4 -1
- package/lib/component/1d/HorizontalAxis1D.js.map +1 -1
- package/lib/component/1d/SVGContent1D.d.ts.map +1 -1
- package/lib/component/1d/SVGContent1D.js +2 -1
- package/lib/component/1d/SVGContent1D.js.map +1 -1
- package/lib/component/1d/Viewer1D.d.ts.map +1 -1
- package/lib/component/1d/Viewer1D.js +2 -1
- package/lib/component/1d/Viewer1D.js.map +1 -1
- package/lib/component/1d/integral/IntegralResizable.d.ts.map +1 -1
- package/lib/component/1d/integral/IntegralResizable.js +4 -4
- package/lib/component/1d/integral/IntegralResizable.js.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.d.ts +1 -1
- package/lib/component/1d/ranges/Range.d.ts.map +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/Signals.d.ts +2 -0
- package/lib/component/1d/ranges/Signals.d.ts.map +1 -0
- package/lib/component/1d/ranges/Signals.js +16 -0
- package/lib/component/1d/ranges/Signals.js.map +1 -0
- package/lib/component/1d-2d/components/RangeIndicator.d.ts +13 -0
- package/lib/component/1d-2d/components/RangeIndicator.d.ts.map +1 -0
- package/lib/component/1d-2d/components/RangeIndicator.js +52 -0
- package/lib/component/1d-2d/components/RangeIndicator.js.map +1 -0
- package/lib/component/1d-2d/components/Signals1D.d.ts +19 -0
- package/lib/component/1d-2d/components/Signals1D.d.ts.map +1 -0
- package/lib/component/1d-2d/components/Signals1D.js +155 -0
- package/lib/component/1d-2d/components/Signals1D.js.map +1 -0
- package/lib/component/1d-2d/tools/BrushXY.js +6 -6
- package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.d.ts +16 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.js +25 -15
- package/lib/component/1d-2d/tools/CrossLinePointer.js.map +1 -1
- package/lib/component/1d-2d/tools/CursorToolIcon.d.ts +9 -0
- package/lib/component/1d-2d/tools/CursorToolIcon.d.ts.map +1 -0
- package/lib/component/1d-2d/tools/CursorToolIcon.js +58 -0
- package/lib/component/1d-2d/tools/CursorToolIcon.js.map +1 -0
- package/lib/component/2d/1d-tracer/Left1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.js +7 -2
- package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/Ranges1D.d.ts +9 -0
- package/lib/component/2d/1d-tracer/Ranges1D.d.ts.map +1 -0
- package/lib/component/2d/1d-tracer/Ranges1D.js +20 -0
- package/lib/component/2d/1d-tracer/Ranges1D.js.map +1 -0
- package/lib/component/2d/1d-tracer/Top1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.js +7 -2
- package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
- package/lib/component/2d/DirectAxis2D.d.ts.map +1 -1
- package/lib/component/2d/DirectAxis2D.js +4 -1
- package/lib/component/2d/DirectAxis2D.js.map +1 -1
- package/lib/component/2d/IndirectAxis2D.d.ts.map +1 -1
- package/lib/component/2d/IndirectAxis2D.js +5 -2
- package/lib/component/2d/IndirectAxis2D.js.map +1 -1
- package/lib/component/2d/Viewer2D.d.ts.map +1 -1
- package/lib/component/2d/Viewer2D.js +2 -1
- package/lib/component/2d/Viewer2D.js.map +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
- package/lib/component/2d/ft/FTContainer.js.map +1 -1
- package/lib/component/AnchorSVG.d.ts +36 -0
- package/lib/component/AnchorSVG.d.ts.map +1 -0
- package/lib/component/AnchorSVG.js +140 -0
- package/lib/component/AnchorSVG.js.map +1 -0
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +16 -2
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.d.ts +3 -0
- package/lib/component/EventsTrackers/MouseTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js +15 -0
- package/lib/component/EventsTrackers/MouseTracker.js.map +1 -1
- package/lib/component/context/KeyModifierContext.d.ts +2 -0
- package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
- package/lib/component/context/KeyModifierContext.js +26 -6
- package/lib/component/context/KeyModifierContext.js.map +1 -1
- package/lib/component/elements/D3Axis.d.ts.map +1 -1
- package/lib/component/elements/D3Axis.js +4 -3
- package/lib/component/elements/D3Axis.js.map +1 -1
- package/lib/component/elements/DraggableDialog.d.ts.map +1 -1
- package/lib/component/elements/DraggableDialog.js +1 -2
- package/lib/component/elements/DraggableDialog.js.map +1 -1
- package/lib/component/elements/Sections.d.ts +3 -3
- package/lib/component/elements/Sections.d.ts.map +1 -1
- package/lib/component/elements/Sections.js +1 -1
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.js +2 -5
- package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.d.ts.map +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.js +59 -31
- package/lib/component/header/AutoPeakPickingOptionPanel.js.map +1 -1
- package/lib/component/header/Header.d.ts.map +1 -1
- package/lib/component/header/Header.js +2 -4
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/header/RangesPickingOptionPanel.d.ts.map +1 -1
- package/lib/component/header/RangesPickingOptionPanel.js +34 -19
- package/lib/component/header/RangesPickingOptionPanel.js.map +1 -1
- package/lib/component/hooks/useAddMultipletSignal.d.ts +7 -0
- package/lib/component/hooks/useAddMultipletSignal.d.ts.map +1 -0
- package/lib/component/hooks/useAddMultipletSignal.js +28 -0
- package/lib/component/hooks/useAddMultipletSignal.js.map +1 -0
- package/lib/component/hooks/useFilter.d.ts.map +1 -1
- package/lib/component/hooks/useFilter.js.map +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
- package/lib/component/hooks/useSaveSettings.js +3 -6
- package/lib/component/hooks/useSaveSettings.js.map +1 -1
- package/lib/component/hooks/useSpectrum.d.ts +3 -1
- package/lib/component/hooks/useSpectrum.d.ts.map +1 -1
- package/lib/component/hooks/useSpectrum.js +1 -1
- package/lib/component/hooks/useSpectrum.js.map +1 -1
- package/lib/component/hooks/useSpectrumWithDataSource.d.ts +1 -1
- package/lib/component/hooks/useSpectrumWithDataSource.d.ts.map +1 -1
- package/lib/component/hooks/useSpectrumWithDataSource.js.map +1 -1
- package/lib/component/hooks/useTempSpectrum.d.ts +1 -1
- package/lib/component/hooks/useTempSpectrum.d.ts.map +1 -1
- package/lib/component/hooks/use_ticks_config.d.ts +1 -4
- package/lib/component/hooks/use_ticks_config.d.ts.map +1 -1
- package/lib/component/hooks/use_ticks_config.js +1 -6
- package/lib/component/hooks/use_ticks_config.js.map +1 -1
- package/lib/component/modal/PublicationStringModal.d.ts +1 -1
- package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/PublicationStringModal.js +4 -8
- package/lib/component/modal/PublicationStringModal.js.map +1 -1
- package/lib/component/modal/SaveAsModal.js +3 -6
- package/lib/component/modal/SaveAsModal.js.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.d.ts.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.js +2 -4
- package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js +38 -36
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +142 -24
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +142 -24
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.js +9 -12
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +142 -24
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +120 -24
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +120 -24
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +20 -4
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +120 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +120 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.js +12 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +120 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +120 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +120 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +120 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +120 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +120 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +120 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +120 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +120 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +120 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +120 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.d.ts +22 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.js +15 -2
- package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +22 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +1 -9
- package/lib/component/panels/PeaksPanel/PeaksPanel.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.js +9 -9
- package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js +1 -3
- package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +10 -12
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +7 -0
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/FilterPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/FilterPanel.js +5 -2
- package/lib/component/panels/filtersPanel/FilterPanel.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/filtersPanel/processings_sections_panel.d.ts +2 -0
- package/lib/component/panels/filtersPanel/processings_sections_panel.d.ts.map +1 -0
- package/lib/component/panels/filtersPanel/processings_sections_panel.js +134 -0
- package/lib/component/panels/filtersPanel/processings_sections_panel.js.map +1 -0
- package/lib/component/panels/hooks/use_processings_mutation.d.ts +10 -0
- package/lib/component/panels/hooks/use_processings_mutation.d.ts.map +1 -0
- package/lib/component/panels/hooks/use_processings_mutation.js +130 -0
- package/lib/component/panels/hooks/use_processings_mutation.js.map +1 -0
- package/lib/component/panels/informationPanel/InformationPanel.js +1 -1
- 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 +4 -0
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.js +2 -2
- package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +2 -0
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +1 -1
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +9 -0
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +11 -2
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +36 -29
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +8 -2
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +6 -1
- 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 +5 -17
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/helper/getTraceSpectrumID.d.ts +5 -0
- package/lib/component/reducer/helper/getTraceSpectrumID.d.ts.map +1 -0
- package/lib/component/reducer/helper/getTraceSpectrumID.js +14 -0
- package/lib/component/reducer/helper/getTraceSpectrumID.js.map +1 -0
- package/lib/component/reducer/preferences/actions/setPreferences.d.ts +2 -2
- package/lib/component/reducer/preferences/actions/setPreferences.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/setPreferences.js +8 -5
- package/lib/component/reducer/preferences/actions/setPreferences.js.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts +21 -1
- package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
- package/lib/component/toolbar/ToolTypes.js +40 -0
- package/lib/component/toolbar/ToolTypes.js.map +1 -1
- package/lib/component/toolbar/nmr_toolbar.d.ts.map +1 -1
- package/lib/component/toolbar/nmr_toolbar.js +12 -36
- package/lib/component/toolbar/nmr_toolbar.js.map +1 -1
- package/lib/component/utility/CoreSlot.d.ts +27 -0
- package/lib/component/utility/CoreSlot.d.ts.map +1 -0
- package/lib/component/utility/CoreSlot.js +56 -0
- package/lib/component/utility/CoreSlot.js.map +1 -0
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +19 -2
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +13 -5
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +1 -0
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +35 -30
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js +1 -0
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +12 -4
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js.map +1 -1
- package/lib/data/utilities/RangeUtilities.d.ts +1 -6
- package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
- package/lib/data/utilities/RangeUtilities.js +10 -27
- package/lib/data/utilities/RangeUtilities.js.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +29 -27
- package/src/component/1d/HorizontalAxis1D.tsx +12 -2
- package/src/component/1d/SVGContent1D.tsx +2 -0
- package/src/component/1d/Viewer1D.tsx +2 -0
- package/src/component/1d/integral/IntegralResizable.tsx +6 -6
- package/src/component/1d/ranges/Range.tsx +6 -6
- package/src/component/1d/ranges/Signals.tsx +28 -0
- package/src/component/1d-2d/components/RangeIndicator.tsx +106 -0
- package/src/component/1d-2d/components/Signals1D.tsx +306 -0
- package/src/component/1d-2d/tools/BrushXY.tsx +8 -8
- package/src/component/1d-2d/tools/CrossLinePointer.tsx +75 -32
- package/src/component/1d-2d/tools/CursorToolIcon.tsx +110 -0
- package/src/component/2d/1d-tracer/Left1DChart.tsx +26 -1
- package/src/component/2d/1d-tracer/Ranges1D.tsx +38 -0
- package/src/component/2d/1d-tracer/Top1DChart.tsx +31 -2
- package/src/component/2d/DirectAxis2D.tsx +12 -3
- package/src/component/2d/IndirectAxis2D.tsx +9 -5
- package/src/component/2d/Viewer2D.tsx +5 -2
- package/src/component/2d/ft/FTContainer.tsx +1 -0
- package/src/component/AnchorSVG.tsx +369 -0
- package/src/component/EventsTrackers/BrushTracker.tsx +25 -5
- package/src/component/EventsTrackers/MouseTracker.tsx +21 -0
- package/src/component/context/KeyModifierContext.tsx +32 -8
- package/src/component/elements/D3Axis.tsx +31 -9
- package/src/component/elements/DraggableDialog.tsx +1 -2
- package/src/component/elements/Sections.tsx +4 -4
- package/src/component/elements/export/ExportOptionsModal.tsx +22 -31
- package/src/component/header/AutoPeakPickingOptionPanel.tsx +173 -102
- package/src/component/header/Header.tsx +2 -4
- package/src/component/header/RangesPickingOptionPanel.tsx +72 -59
- package/src/component/hooks/useAddMultipletSignal.tsx +32 -0
- package/src/component/hooks/useFilter.ts +2 -1
- package/src/component/hooks/useSaveSettings.tsx +4 -15
- package/src/component/hooks/useSpectrum.ts +7 -1
- package/src/component/hooks/useSpectrumWithDataSource.ts +16 -8
- package/src/component/hooks/use_ticks_config.ts +1 -7
- package/src/component/modal/PublicationStringModal.tsx +8 -14
- package/src/component/modal/SaveAsModal.tsx +41 -50
- package/src/component/modal/aboutUs/AboutUsModal.tsx +5 -4
- package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +57 -57
- package/src/component/modal/setting/tanstack_general_settings/general_settings.tsx +23 -29
- package/src/component/modal/setting/tanstack_general_settings/tabs/axis_tab.tsx +76 -12
- package/src/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.ts +16 -2
- package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +1 -1
- package/src/component/panels/PeaksPanel/PeaksPanel.tsx +1 -8
- package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +1 -1
- package/src/component/panels/PeaksPanel/PeaksTable.tsx +11 -9
- package/src/component/panels/RangesPanel/RangesPanel.tsx +1 -3
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +10 -12
- package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.tsx +2 -2
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +13 -11
- package/src/component/panels/filtersPanel/FilterPanel.tsx +10 -0
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +1 -0
- package/src/component/panels/filtersPanel/processings_sections_panel.tsx +307 -0
- package/src/component/panels/hooks/use_processings_mutation.ts +171 -0
- package/src/component/panels/informationPanel/InformationPanel.tsx +1 -1
- package/src/component/reducer/Reducer.ts +4 -0
- package/src/component/reducer/actions/CorrelationsActions.ts +2 -2
- package/src/component/reducer/actions/FiltersActions.ts +1 -1
- package/src/component/reducer/actions/RangesActions.ts +53 -30
- package/src/component/reducer/actions/SpectraActions.ts +20 -1
- package/src/component/reducer/actions/ToolsActions.ts +5 -21
- package/src/component/reducer/helper/getTraceSpectrumID.tsx +25 -0
- package/src/component/reducer/preferences/actions/setPreferences.ts +18 -10
- package/src/component/reducer/preferences/preferencesReducer.ts +1 -1
- package/src/component/toolbar/ToolTypes.ts +92 -1
- package/src/component/toolbar/nmr_toolbar.tsx +15 -71
- package/src/component/utility/CoreSlot.tsx +126 -0
- package/src/component/workspaces/workspaceDefaultProperties.ts +19 -2
- package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +14 -8
- package/src/data/data1d/Spectrum1D/peaks/autoPeakPicking.ts +1 -0
- package/src/data/data1d/Spectrum1D/peaks/optimizePeaks.ts +35 -30
- package/src/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.ts +1 -0
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +12 -4
- package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +1 -1
- package/src/data/utilities/RangeUtilities.ts +12 -36
- package/src/versionInfo.ts +1 -1
- package/lib/component/1d/integral/IntegralIndicator.d.ts +0 -9
- package/lib/component/1d/integral/IntegralIndicator.d.ts.map +0 -1
- package/lib/component/1d/integral/IntegralIndicator.js +0 -22
- package/lib/component/1d/integral/IntegralIndicator.js.map +0 -1
- package/lib/component/utility/renderCoreSlot.d.ts +0 -11
- package/lib/component/utility/renderCoreSlot.d.ts.map +0 -1
- package/lib/component/utility/renderCoreSlot.js +0 -13
- package/lib/component/utility/renderCoreSlot.js.map +0 -1
- package/src/component/1d/integral/IntegralIndicator.tsx +0 -43
- package/src/component/utility/renderCoreSlot.tsx +0 -21
|
@@ -1,51 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { Checkbox, Classes, FormGroup, NumericInput } from '@blueprintjs/core';
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
|
+
import { revalidateLogic } from '@tanstack/react-form';
|
|
4
|
+
import { AppForm, useForm } from 'react-science/ui';
|
|
5
|
+
import { z } from 'zod';
|
|
5
6
|
|
|
6
7
|
import { useDispatch } from '../context/DispatchContext.js';
|
|
7
8
|
import { useToaster } from '../context/ToasterContext.js';
|
|
8
|
-
import Label from '../elements/Label.js';
|
|
9
|
-
import { NumberInput2Controller } from '../elements/NumberInput2Controller.js';
|
|
10
9
|
import {
|
|
11
10
|
MIN_AREA_POINTS,
|
|
12
11
|
useCheckPointsNumberInWindowArea,
|
|
13
12
|
} from '../hooks/useCheckPointsNumberInWindowArea.js';
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
interface AutoRangesOptions {
|
|
19
|
-
minMaxRatio: number;
|
|
20
|
-
lookNegative: boolean;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const validationSchema = Yup.object().shape({
|
|
24
|
-
minMaxRatio: Yup.number().min(0).required(),
|
|
25
|
-
lookNegative: Yup.boolean().required(),
|
|
14
|
+
const validationZodSchema = z.object({
|
|
15
|
+
minMaxRatio: z.coerce.number<string>().min(0),
|
|
16
|
+
lookNegative: z.boolean(),
|
|
26
17
|
});
|
|
27
18
|
|
|
28
|
-
const
|
|
29
|
-
minMaxRatio: 0.05,
|
|
19
|
+
const defaultValues: AutoRangesOptionsInput = {
|
|
20
|
+
minMaxRatio: '0.05',
|
|
30
21
|
lookNegative: false,
|
|
31
22
|
};
|
|
32
23
|
|
|
24
|
+
const AppFormContainer = styled(AppForm)`
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
gap: 10px;
|
|
28
|
+
align-items: center;
|
|
29
|
+
|
|
30
|
+
.${Classes.CHECKBOX}, .${Classes.FORM_GROUP} {
|
|
31
|
+
margin-bottom: 0;
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
|
|
35
|
+
type AutoRangesOptionsInput = z.input<typeof validationZodSchema>;
|
|
36
|
+
type AutoRangesOptions = z.output<typeof validationZodSchema>;
|
|
37
|
+
|
|
33
38
|
function RangesPickingOptionPanel() {
|
|
34
39
|
const dispatch = useDispatch();
|
|
35
|
-
|
|
36
|
-
handleSubmit,
|
|
37
|
-
register,
|
|
38
|
-
control,
|
|
39
|
-
formState: { isValid },
|
|
40
|
-
} = useForm<AutoRangesOptions>({
|
|
41
|
-
defaultValues: initialValues,
|
|
42
|
-
resolver: yupResolver(validationSchema),
|
|
43
|
-
mode: 'onChange',
|
|
44
|
-
});
|
|
40
|
+
|
|
45
41
|
const hasEnoughPoints = useCheckPointsNumberInWindowArea();
|
|
46
42
|
const toaster = useToaster();
|
|
47
43
|
|
|
48
|
-
function handleRangesPicking(values:
|
|
44
|
+
function handleRangesPicking(values: AutoRangesOptions) {
|
|
49
45
|
if (hasEnoughPoints) {
|
|
50
46
|
dispatch({
|
|
51
47
|
type: 'AUTO_RANGES_DETECTION',
|
|
@@ -59,37 +55,54 @@ function RangesPickingOptionPanel() {
|
|
|
59
55
|
}
|
|
60
56
|
}
|
|
61
57
|
|
|
58
|
+
const form = useForm({
|
|
59
|
+
defaultValues,
|
|
60
|
+
validationLogic: revalidateLogic({ modeAfterSubmission: 'change' }),
|
|
61
|
+
validators: {
|
|
62
|
+
onDynamic: validationZodSchema,
|
|
63
|
+
},
|
|
64
|
+
onSubmit: ({ value }) => {
|
|
65
|
+
const parsedValues = validationZodSchema.parse(value);
|
|
66
|
+
handleRangesPicking(parsedValues);
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
|
|
62
70
|
return (
|
|
63
|
-
<
|
|
64
|
-
<
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
71
|
+
<AppFormContainer form={form}>
|
|
72
|
+
<form.AppField name="lookNegative">
|
|
73
|
+
{(field) => (
|
|
74
|
+
<Checkbox
|
|
75
|
+
label="Detect negative"
|
|
76
|
+
checked={field.state.value}
|
|
77
|
+
onBlur={field.handleBlur}
|
|
78
|
+
onChange={({ target: { checked } }) => field.handleChange(checked)}
|
|
79
|
+
/>
|
|
80
|
+
)}
|
|
81
|
+
</form.AppField>
|
|
82
|
+
|
|
83
|
+
<form.AppField name="minMaxRatio">
|
|
84
|
+
{(field) => (
|
|
85
|
+
<FormGroup label="Min/max ratio:" inline>
|
|
86
|
+
<NumericInput
|
|
87
|
+
value={field.state.value ?? ''}
|
|
88
|
+
onBlur={field.handleBlur}
|
|
89
|
+
min={0}
|
|
90
|
+
stepSize={0.01}
|
|
91
|
+
minorStepSize={0.01}
|
|
92
|
+
onValueChange={(_, valueAsString) => {
|
|
93
|
+
field.handleChange(valueAsString);
|
|
94
|
+
}}
|
|
95
|
+
/>
|
|
96
|
+
</FormGroup>
|
|
97
|
+
)}
|
|
98
|
+
</form.AppField>
|
|
83
99
|
|
|
84
|
-
<
|
|
85
|
-
intent="success"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
Auto ranges picking
|
|
91
|
-
</Button>
|
|
92
|
-
</HeaderWrapper>
|
|
100
|
+
<div>
|
|
101
|
+
<form.SubmitButton intent="success">
|
|
102
|
+
Auto ranges picking
|
|
103
|
+
</form.SubmitButton>
|
|
104
|
+
</div>
|
|
105
|
+
</AppFormContainer>
|
|
93
106
|
);
|
|
94
107
|
}
|
|
95
108
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Jcoupling, Range, Signal1D } from '@zakodium/nmr-types';
|
|
2
|
+
|
|
3
|
+
import { useDispatch } from '../context/DispatchContext.tsx';
|
|
4
|
+
|
|
5
|
+
export function useAddMultipletSignal() {
|
|
6
|
+
const dispatch = useDispatch();
|
|
7
|
+
|
|
8
|
+
return (options: { range: Range; spectrumId?: string; delta: number }) => {
|
|
9
|
+
const { range, delta, spectrumId } = options;
|
|
10
|
+
const updatedRange = structuredClone(range);
|
|
11
|
+
const signal: Signal1D = {
|
|
12
|
+
id: crypto.randomUUID(),
|
|
13
|
+
delta,
|
|
14
|
+
js: [
|
|
15
|
+
{
|
|
16
|
+
multiplicity: 'm',
|
|
17
|
+
} as Jcoupling,
|
|
18
|
+
],
|
|
19
|
+
kind: 'signal',
|
|
20
|
+
multiplicity: 'm',
|
|
21
|
+
};
|
|
22
|
+
updatedRange.signals.push(signal);
|
|
23
|
+
|
|
24
|
+
dispatch({
|
|
25
|
+
type: 'UPDATE_RANGE',
|
|
26
|
+
payload: {
|
|
27
|
+
range: updatedRange,
|
|
28
|
+
spectrumId,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Filter1DEntry, Filter2DEntry } from '@zakodium/nmr-types';
|
|
2
|
+
import type { Spectrum } from '@zakodium/nmrium-core';
|
|
2
3
|
import { useMemo } from 'react';
|
|
3
4
|
|
|
4
5
|
import type { ExtractFilterEntry } from '../../data/types/common/ExtractFilterEntry.js';
|
|
@@ -6,7 +7,7 @@ import type { FilterEntry } from '../../data/types/common/FilterEntry.js';
|
|
|
6
7
|
|
|
7
8
|
import useSpectrum from './useSpectrum.js';
|
|
8
9
|
|
|
9
|
-
const emptyData = { filters: [] };
|
|
10
|
+
const emptyData: Pick<Spectrum, 'filters'> = { filters: [] };
|
|
10
11
|
type FilterReturnType<T> = T extends Filter1DEntry['name']
|
|
11
12
|
? ExtractFilterEntry<T>
|
|
12
13
|
: T extends Filter2DEntry['name']
|
|
@@ -2,11 +2,7 @@ import { Button, DialogBody, DialogFooter } from '@blueprintjs/core';
|
|
|
2
2
|
import { revalidateLogic } from '@tanstack/react-form';
|
|
3
3
|
import type { Workspace } from '@zakodium/nmrium-core';
|
|
4
4
|
import { useRef } from 'react';
|
|
5
|
-
import {
|
|
6
|
-
Form,
|
|
7
|
-
useForm as useReactScienceForm,
|
|
8
|
-
useOnOff,
|
|
9
|
-
} from 'react-science/ui';
|
|
5
|
+
import { AppForm, useForm, useOnOff } from 'react-science/ui';
|
|
10
6
|
import { z } from 'zod/v4';
|
|
11
7
|
|
|
12
8
|
import { usePreferences } from '../context/PreferencesContext.js';
|
|
@@ -30,7 +26,7 @@ export function useSaveSettings() {
|
|
|
30
26
|
|
|
31
27
|
const { saveWorkspace, addNewWorkspace } = useWorkspaceAction();
|
|
32
28
|
|
|
33
|
-
const form =
|
|
29
|
+
const form = useForm({
|
|
34
30
|
defaultValues: { workspaceName: '' },
|
|
35
31
|
validationLogic: revalidateLogic({ modeAfterSubmission: 'change' }),
|
|
36
32
|
validators: { onDynamic: schema },
|
|
@@ -67,14 +63,7 @@ export function useSaveSettings() {
|
|
|
67
63
|
title="Save workspace"
|
|
68
64
|
role="dialog"
|
|
69
65
|
>
|
|
70
|
-
<
|
|
71
|
-
layout="stacked"
|
|
72
|
-
noValidate
|
|
73
|
-
onSubmit={(event) => {
|
|
74
|
-
event.preventDefault();
|
|
75
|
-
void form.handleSubmit();
|
|
76
|
-
}}
|
|
77
|
-
>
|
|
66
|
+
<AppForm form={form} layout="stacked">
|
|
78
67
|
<DialogBody>
|
|
79
68
|
<form.AppField name="workspaceName">
|
|
80
69
|
{(field) => (
|
|
@@ -107,7 +96,7 @@ export function useSaveSettings() {
|
|
|
107
96
|
</>
|
|
108
97
|
}
|
|
109
98
|
/>
|
|
110
|
-
</
|
|
99
|
+
</AppForm>
|
|
111
100
|
</StandardDialog>
|
|
112
101
|
);
|
|
113
102
|
},
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
import type { Spectrum } from '@zakodium/nmrium-core';
|
|
2
|
+
|
|
1
3
|
import { useChartData } from '../context/ChartContext.js';
|
|
2
4
|
|
|
3
5
|
import { useSpectrumWithDataSource } from './useSpectrumWithDataSource.js';
|
|
4
6
|
|
|
5
|
-
export default function useSpectrum(
|
|
7
|
+
export default function useSpectrum<Default>(
|
|
8
|
+
defaultValue: Default,
|
|
9
|
+
): Spectrum | Default;
|
|
10
|
+
export default function useSpectrum(): Spectrum | undefined;
|
|
11
|
+
export default function useSpectrum<Default>(defaultValue?: Default) {
|
|
6
12
|
const { data } = useChartData();
|
|
7
13
|
return useSpectrumWithDataSource(data, defaultValue);
|
|
8
14
|
}
|
|
@@ -5,30 +5,38 @@ import { useInsetOptions } from '../1d/inset/InsetProvider.js';
|
|
|
5
5
|
|
|
6
6
|
import { useActiveSpectrum } from './useActiveSpectrum.js';
|
|
7
7
|
|
|
8
|
-
function getSpectrum(
|
|
8
|
+
function getSpectrum<Default>(
|
|
9
9
|
data: Spectrum[],
|
|
10
10
|
spectrumKey: string,
|
|
11
|
-
defaultValue
|
|
11
|
+
defaultValue: Default,
|
|
12
12
|
) {
|
|
13
13
|
return data.find((datum) => datum.id === spectrumKey) || defaultValue;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export function useSpectrumWithDataSource(
|
|
17
|
-
dataSource:
|
|
18
|
-
defaultValue:
|
|
16
|
+
export function useSpectrumWithDataSource<Default = Spectrum>(
|
|
17
|
+
dataSource: Spectrum[],
|
|
18
|
+
defaultValue: Default | null = null,
|
|
19
19
|
) {
|
|
20
20
|
const activeSpectrum = useActiveSpectrum();
|
|
21
21
|
const inset = useInsetOptions();
|
|
22
22
|
|
|
23
|
-
return useMemo<Spectrum>(() => {
|
|
23
|
+
return useMemo<Spectrum | Default | null>(() => {
|
|
24
24
|
if (!dataSource) return defaultValue;
|
|
25
25
|
|
|
26
26
|
if (inset) {
|
|
27
|
-
return getSpectrum
|
|
27
|
+
return getSpectrum<Default | null>(
|
|
28
|
+
dataSource,
|
|
29
|
+
inset.spectrumKey,
|
|
30
|
+
defaultValue,
|
|
31
|
+
);
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
if (dataSource && activeSpectrum?.selected) {
|
|
31
|
-
return getSpectrum
|
|
35
|
+
return getSpectrum<Default | null>(
|
|
36
|
+
dataSource,
|
|
37
|
+
activeSpectrum.id,
|
|
38
|
+
defaultValue,
|
|
39
|
+
);
|
|
32
40
|
}
|
|
33
41
|
|
|
34
42
|
return defaultValue;
|
|
@@ -5,11 +5,5 @@ export function useTicksConfig() {
|
|
|
5
5
|
const { current } = usePreferences();
|
|
6
6
|
const axis = current.axis ?? workspaceDefaultProperties.axis;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
const { enabled } = axis.secondaryTicks;
|
|
10
|
-
|
|
11
|
-
return {
|
|
12
|
-
textStyle,
|
|
13
|
-
isSecondaryEnabled: enabled,
|
|
14
|
-
};
|
|
8
|
+
return axis;
|
|
15
9
|
}
|
|
@@ -5,10 +5,9 @@ import type {
|
|
|
5
5
|
Spectrum1D,
|
|
6
6
|
Spectrum,
|
|
7
7
|
} from '@zakodium/nmrium-core';
|
|
8
|
-
import type { FormEvent } from 'react';
|
|
9
8
|
import {
|
|
9
|
+
AppForm,
|
|
10
10
|
FieldGroupSVGTextStyleFields,
|
|
11
|
-
Form,
|
|
12
11
|
assert,
|
|
13
12
|
svgTextStyleFieldsSchema,
|
|
14
13
|
useForm,
|
|
@@ -92,7 +91,7 @@ interface InnerPublicationStringModalProps {
|
|
|
92
91
|
onClose: () => void;
|
|
93
92
|
|
|
94
93
|
acsExportOptions: ACSExportOptions;
|
|
95
|
-
spectrum: Spectrum;
|
|
94
|
+
spectrum: Spectrum | undefined;
|
|
96
95
|
publicationStringVisibility?: {
|
|
97
96
|
isShown: boolean;
|
|
98
97
|
toggle: () => void;
|
|
@@ -151,7 +150,7 @@ function InnerPublicationStringModal(props: InnerPublicationStringModalProps) {
|
|
|
151
150
|
defaultValues,
|
|
152
151
|
validators: { onChange: validationSchema },
|
|
153
152
|
onSubmit: ({ value, formApi }) => {
|
|
154
|
-
assert(
|
|
153
|
+
assert(isSpectrum1D(spectrum));
|
|
155
154
|
const nucleus = spectrum.info.nucleus;
|
|
156
155
|
|
|
157
156
|
const parsedValues = validationSchema.parse(value);
|
|
@@ -189,15 +188,10 @@ function InnerPublicationStringModal(props: InnerPublicationStringModalProps) {
|
|
|
189
188
|
},
|
|
190
189
|
});
|
|
191
190
|
|
|
192
|
-
if (!
|
|
193
|
-
|
|
194
|
-
function onSubmit(event: FormEvent<HTMLFormElement>) {
|
|
195
|
-
event.preventDefault();
|
|
196
|
-
void form.handleSubmit(event);
|
|
197
|
-
}
|
|
191
|
+
if (!isSpectrum1D(spectrum)) return null;
|
|
198
192
|
|
|
199
193
|
return (
|
|
200
|
-
|
|
194
|
+
<>
|
|
201
195
|
<StandardDialog
|
|
202
196
|
isOpen
|
|
203
197
|
title="Publication string"
|
|
@@ -207,7 +201,7 @@ function InnerPublicationStringModal(props: InnerPublicationStringModalProps) {
|
|
|
207
201
|
onClose={onClose}
|
|
208
202
|
style={{ minWidth: 600 }}
|
|
209
203
|
>
|
|
210
|
-
<
|
|
204
|
+
<AppForm form={form} layout="inline">
|
|
211
205
|
<HelpForm>This configuration is at the nucleus level.</HelpForm>
|
|
212
206
|
<StyledDialogBody>
|
|
213
207
|
<form.AppField name="acs.signalKind">
|
|
@@ -265,7 +259,7 @@ function InnerPublicationStringModal(props: InnerPublicationStringModalProps) {
|
|
|
265
259
|
</form.AppField>
|
|
266
260
|
)}
|
|
267
261
|
</DialogFooter>
|
|
268
|
-
</
|
|
262
|
+
</AppForm>
|
|
269
263
|
</StandardDialog>
|
|
270
264
|
|
|
271
265
|
<ClipboardFallbackModal
|
|
@@ -274,7 +268,7 @@ function InnerPublicationStringModal(props: InnerPublicationStringModalProps) {
|
|
|
274
268
|
text={text}
|
|
275
269
|
label="Preview publication string"
|
|
276
270
|
/>
|
|
277
|
-
|
|
271
|
+
</>
|
|
278
272
|
);
|
|
279
273
|
}
|
|
280
274
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DialogBody, DialogFooter } from '@blueprintjs/core';
|
|
2
2
|
import { revalidateLogic } from '@tanstack/react-form';
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { AppForm, Button, useForm } from 'react-science/ui';
|
|
5
5
|
import { z } from 'zod/v4';
|
|
6
6
|
|
|
7
7
|
import { DataExportOptions } from '../../data/SpectraManager.js';
|
|
@@ -52,7 +52,7 @@ function InnerSaveAsModal(props: InnerSaveAsModalProps) {
|
|
|
52
52
|
const { saveHandler } = useExport();
|
|
53
53
|
|
|
54
54
|
const form = useForm({
|
|
55
|
-
defaultValues: { ...INITIAL_VALUE, name: data[0]?.info?.name },
|
|
55
|
+
defaultValues: { ...INITIAL_VALUE, name: data[0]?.info?.name ?? '' },
|
|
56
56
|
validators: { onDynamic: formSchema },
|
|
57
57
|
validationLogic: revalidateLogic({ modeAfterSubmission: 'change' }),
|
|
58
58
|
onSubmit: ({ value }) => {
|
|
@@ -86,54 +86,45 @@ function InnerSaveAsModal(props: InnerSaveAsModalProps) {
|
|
|
86
86
|
onClose={onCloseDialog}
|
|
87
87
|
style={{ width: 600 }}
|
|
88
88
|
>
|
|
89
|
-
<form
|
|
90
|
-
<
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
</form.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
>
|
|
129
|
-
Cancel
|
|
130
|
-
</Button>
|
|
131
|
-
<form.SubmitButton intent="success">Save</form.SubmitButton>
|
|
132
|
-
</>
|
|
133
|
-
}
|
|
134
|
-
/>
|
|
135
|
-
</Form>
|
|
136
|
-
</form.AppForm>
|
|
89
|
+
<AppForm form={form} layout="inline">
|
|
90
|
+
<DialogBody style={{ backgroundColor: 'white' }}>
|
|
91
|
+
<form.Section title="General information">
|
|
92
|
+
<form.AppField name="name">
|
|
93
|
+
{(field) => <field.Input label="Name" required autoFocus />}
|
|
94
|
+
</form.AppField>
|
|
95
|
+
</form.Section>
|
|
96
|
+
<form.Section title="Include">
|
|
97
|
+
<form.AppField name="include.view">
|
|
98
|
+
{(field) => <field.Checkbox label="View" />}
|
|
99
|
+
</form.AppField>
|
|
100
|
+
|
|
101
|
+
<form.AppField name="include.settings">
|
|
102
|
+
{(field) => <field.Checkbox label="Workspace" />}
|
|
103
|
+
</form.AppField>
|
|
104
|
+
|
|
105
|
+
<form.AppField name="include.dataType">
|
|
106
|
+
{(field) => (
|
|
107
|
+
<field.RadioGroup inline label="Data" options={options} />
|
|
108
|
+
)}
|
|
109
|
+
</form.AppField>
|
|
110
|
+
</form.Section>
|
|
111
|
+
</DialogBody>
|
|
112
|
+
|
|
113
|
+
<DialogFooter
|
|
114
|
+
actions={
|
|
115
|
+
<>
|
|
116
|
+
<Button
|
|
117
|
+
variant="outlined"
|
|
118
|
+
intent="danger"
|
|
119
|
+
onClick={() => onCloseDialog?.()}
|
|
120
|
+
>
|
|
121
|
+
Cancel
|
|
122
|
+
</Button>
|
|
123
|
+
<form.SubmitButton intent="success">Save</form.SubmitButton>
|
|
124
|
+
</>
|
|
125
|
+
}
|
|
126
|
+
/>
|
|
127
|
+
</AppForm>
|
|
137
128
|
</StandardDialog>
|
|
138
129
|
);
|
|
139
130
|
}
|
|
@@ -3,11 +3,10 @@ import { SvgLogoNmrium } from 'cheminfo-font';
|
|
|
3
3
|
import { Toolbar, useOnOff } from 'react-science/ui';
|
|
4
4
|
|
|
5
5
|
import versionInfo from '../../../versionInfo.js';
|
|
6
|
-
import { useCore } from '../../context/CoreContext.js';
|
|
7
6
|
import Logo from '../../elements/Logo.js';
|
|
8
7
|
import { StandardDialog } from '../../elements/StandardDialog.tsx';
|
|
9
8
|
import { StyledDialogBody } from '../../elements/StyledDialogBody.js';
|
|
10
|
-
import {
|
|
9
|
+
import { CoreSlot } from '../../utility/CoreSlot.tsx';
|
|
11
10
|
|
|
12
11
|
import AboutUsZakodium from './AboutUsZakodium.js';
|
|
13
12
|
|
|
@@ -116,7 +115,6 @@ const modalContentFallback = (
|
|
|
116
115
|
|
|
117
116
|
function AboutUsModal() {
|
|
118
117
|
const [isOpenDialog, openDialog, closeDialog] = useOnOff(false);
|
|
119
|
-
const core = useCore();
|
|
120
118
|
|
|
121
119
|
return (
|
|
122
120
|
<>
|
|
@@ -137,7 +135,10 @@ function AboutUsModal() {
|
|
|
137
135
|
title="About NMRium"
|
|
138
136
|
>
|
|
139
137
|
<StyledDialogBody>
|
|
140
|
-
|
|
138
|
+
<CoreSlot
|
|
139
|
+
slot="topbar.about_us.modal"
|
|
140
|
+
fallback={modalContentFallback}
|
|
141
|
+
/>
|
|
141
142
|
</StyledDialogBody>
|
|
142
143
|
</StandardDialog>
|
|
143
144
|
</>
|