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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSpectrumWithDataSource.js","sourceRoot":"","sources":["../../../src/component/hooks/useSpectrumWithDataSource.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,SAAS,WAAW,CAClB,IAAgB,EAChB,WAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"useSpectrumWithDataSource.js","sourceRoot":"","sources":["../../../src/component/hooks/useSpectrumWithDataSource.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,SAAS,WAAW,CAClB,IAAgB,EAChB,WAAmB,EACnB,YAAqB;IAErB,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,WAAW,CAAC,IAAI,YAAY,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,UAAsB,EACtB,eAA+B,IAAI;IAEnC,MAAM,cAAc,GAAG,iBAAiB,EAAE,CAAC;IAC3C,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,OAAO,OAAO,CAA4B,GAAG,EAAE;QAC7C,IAAI,CAAC,UAAU;YAAE,OAAO,YAAY,CAAC;QAErC,IAAI,KAAK,EAAE,CAAC;YACV,OAAO,WAAW,CAChB,UAAU,EACV,KAAK,CAAC,WAAW,EACjB,YAAY,CACb,CAAC;QACJ,CAAC;QAED,IAAI,UAAU,IAAI,cAAc,EAAE,QAAQ,EAAE,CAAC;YAC3C,OAAO,WAAW,CAChB,UAAU,EACV,cAAc,CAAC,EAAE,EACjB,YAAY,CACb,CAAC;QACJ,CAAC;QAED,OAAO,YAAY,CAAC;IACtB,CAAC,EAAE,CAAC,cAAc,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function useTempSpectrum(defaultValue?: any):
|
|
1
|
+
export default function useTempSpectrum(defaultValue?: any): any;
|
|
2
2
|
//# sourceMappingURL=useTempSpectrum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTempSpectrum.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useTempSpectrum.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,YAAY,GAAE,GAAU,
|
|
1
|
+
{"version":3,"file":"useTempSpectrum.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useTempSpectrum.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,YAAY,GAAE,GAAU,OAG/D"}
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
export declare function useTicksConfig():
|
|
2
|
-
textStyle: import("@zakodium/nmrium-core").TextStyle;
|
|
3
|
-
isSecondaryEnabled: boolean;
|
|
4
|
-
};
|
|
1
|
+
export declare function useTicksConfig(): import("@zakodium/nmrium-core").AxisPreferences;
|
|
5
2
|
//# sourceMappingURL=use_ticks_config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_ticks_config.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/use_ticks_config.ts"],"names":[],"mappings":"AAGA,wBAAgB,cAAc
|
|
1
|
+
{"version":3,"file":"use_ticks_config.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/use_ticks_config.ts"],"names":[],"mappings":"AAGA,wBAAgB,cAAc,oDAK7B"}
|
|
@@ -3,11 +3,6 @@ import { workspaceDefaultProperties } from "../workspaces/workspaceDefaultProper
|
|
|
3
3
|
export function useTicksConfig() {
|
|
4
4
|
const { current } = usePreferences();
|
|
5
5
|
const axis = current.axis ?? workspaceDefaultProperties.axis;
|
|
6
|
-
|
|
7
|
-
const { enabled } = axis.secondaryTicks;
|
|
8
|
-
return {
|
|
9
|
-
textStyle,
|
|
10
|
-
isSecondaryEnabled: enabled,
|
|
11
|
-
};
|
|
6
|
+
return axis;
|
|
12
7
|
}
|
|
13
8
|
//# sourceMappingURL=use_ticks_config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_ticks_config.js","sourceRoot":"","sources":["../../../src/component/hooks/use_ticks_config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAmC,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAEzF,MAAM,UAAU,cAAc;IAC5B,MAAM,EAAE,OAAO,EAAE,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,0BAA0B,CAAC,IAAI,CAAC;IAE7D,
|
|
1
|
+
{"version":3,"file":"use_ticks_config.js","sourceRoot":"","sources":["../../../src/component/hooks/use_ticks_config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAmC,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAEzF,MAAM,UAAU,cAAc;IAC5B,MAAM,EAAE,OAAO,EAAE,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,0BAA0B,CAAC,IAAI,CAAC;IAE7D,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { ACSExportOptions, Spectrum } from '@zakodium/nmrium-core';
|
|
|
2
2
|
interface InnerPublicationStringModalProps {
|
|
3
3
|
onClose: () => void;
|
|
4
4
|
acsExportOptions: ACSExportOptions;
|
|
5
|
-
spectrum: Spectrum;
|
|
5
|
+
spectrum: Spectrum | undefined;
|
|
6
6
|
publicationStringVisibility?: {
|
|
7
7
|
isShown: boolean;
|
|
8
8
|
toggle: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicationStringModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/PublicationStringModal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAEhB,QAAQ,EACT,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"PublicationStringModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/PublicationStringModal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAEhB,QAAQ,EACT,MAAM,uBAAuB,CAAC;AAmF/B,UAAU,gCAAgC;IACxC,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC/B,2BAA2B,CAAC,EAAE;QAC5B,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,IAAI,CAAC;KACpB,CAAC;IAEF,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,2BAA4B,SAAQ,gCAAgC;IAC5E,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,2CAMxE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Button, DialogFooter, Tooltip } from '@blueprintjs/core';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
import {
|
|
4
|
+
import { AppForm, FieldGroupSVGTextStyleFields, assert, svgTextStyleFieldsSchema, useForm, } from 'react-science/ui';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { isSpectrum1D } from '../../data/data1d/Spectrum1D/index.js';
|
|
7
7
|
import { ClipboardFallbackModal } from "../../utils/clipboard/clipboardComponents.js";
|
|
@@ -84,7 +84,7 @@ function InnerPublicationStringModal(props) {
|
|
|
84
84
|
defaultValues,
|
|
85
85
|
validators: { onChange: validationSchema },
|
|
86
86
|
onSubmit: ({ value, formApi }) => {
|
|
87
|
-
assert(
|
|
87
|
+
assert(isSpectrum1D(spectrum));
|
|
88
88
|
const nucleus = spectrum.info.nucleus;
|
|
89
89
|
const parsedValues = validationSchema.parse(value);
|
|
90
90
|
if (!formApi.state.fieldMeta['acs.textStyle.fontSize']?.isTouched &&
|
|
@@ -113,13 +113,9 @@ function InnerPublicationStringModal(props) {
|
|
|
113
113
|
onClose();
|
|
114
114
|
},
|
|
115
115
|
});
|
|
116
|
-
if (!
|
|
116
|
+
if (!isSpectrum1D(spectrum))
|
|
117
117
|
return null;
|
|
118
|
-
|
|
119
|
-
event.preventDefault();
|
|
120
|
-
void form.handleSubmit(event);
|
|
121
|
-
}
|
|
122
|
-
return (_jsxs(form.AppForm, { children: [_jsx(StandardDialog, { isOpen: true, title: "Publication string", icon: _jsx("span", { style: { paddingRight: '16px' }, children: spectrum.info.nucleus }), onClose: onClose, style: { minWidth: 600 }, children: _jsxs(Form, { noValidate: true, onSubmit: onSubmit, layout: "inline", children: [_jsx(HelpForm, { children: "This configuration is at the nucleus level." }), _jsxs(StyledDialogBody, { children: [_jsx(form.AppField, { name: "acs.signalKind", children: (field) => _jsx(field.Select, { label: "Filter", items: exportOptions }) }), _jsx(form.AppField, { name: "acs.format", children: (field) => _jsx(field.Select, { label: "Format", items: exportFormats }) }), _jsx(form.AppField, { name: "acs.ascending", children: (field) => _jsx(field.Checkbox, { label: "Ascending order" }) }), _jsx(form.AppField, { name: "acs.deltaFormat", children: (field) => _jsx(field.Input, { label: "Delta format" }) }), _jsx(form.AppField, { name: "acs.couplingFormat", children: (field) => _jsx(field.Input, { label: "Couplings format" }) }), allowTextStyle && (_jsx(FieldGroupSVGTextStyleFields, { form: form, fields: "acs.textStyle", label: "Text style", previewText: "Publication string" })), _jsx(Body, { children: _jsx(form.Subscribe, { selector: (s) => s.values, children: (values) => (_jsx(PublicationStringPreview, { values: values, spectrum: spectrum, onCopy: sendToClipboard })) }) })] }), _jsx(DialogFooter, { actions: _jsx(form.SubmitButton, { intent: "success", children: saveLabel }), children: publicationStringVisibility && (_jsx(form.AppField, { name: "isPublicationStringShown", children: (field) => (_jsx(field.Checkbox, { label: "Show publication string", style: { display: 'inline-block' } })) })) })] }) }), _jsx(ClipboardFallbackModal, { mode: shouldFallback, onDismiss: cleanShouldFallback, text: text, label: "Preview publication string" })] }));
|
|
118
|
+
return (_jsxs(_Fragment, { children: [_jsx(StandardDialog, { isOpen: true, title: "Publication string", icon: _jsx("span", { style: { paddingRight: '16px' }, children: spectrum.info.nucleus }), onClose: onClose, style: { minWidth: 600 }, children: _jsxs(AppForm, { form: form, layout: "inline", children: [_jsx(HelpForm, { children: "This configuration is at the nucleus level." }), _jsxs(StyledDialogBody, { children: [_jsx(form.AppField, { name: "acs.signalKind", children: (field) => _jsx(field.Select, { label: "Filter", items: exportOptions }) }), _jsx(form.AppField, { name: "acs.format", children: (field) => _jsx(field.Select, { label: "Format", items: exportFormats }) }), _jsx(form.AppField, { name: "acs.ascending", children: (field) => _jsx(field.Checkbox, { label: "Ascending order" }) }), _jsx(form.AppField, { name: "acs.deltaFormat", children: (field) => _jsx(field.Input, { label: "Delta format" }) }), _jsx(form.AppField, { name: "acs.couplingFormat", children: (field) => _jsx(field.Input, { label: "Couplings format" }) }), allowTextStyle && (_jsx(FieldGroupSVGTextStyleFields, { form: form, fields: "acs.textStyle", label: "Text style", previewText: "Publication string" })), _jsx(Body, { children: _jsx(form.Subscribe, { selector: (s) => s.values, children: (values) => (_jsx(PublicationStringPreview, { values: values, spectrum: spectrum, onCopy: sendToClipboard })) }) })] }), _jsx(DialogFooter, { actions: _jsx(form.SubmitButton, { intent: "success", children: saveLabel }), children: publicationStringVisibility && (_jsx(form.AppField, { name: "isPublicationStringShown", children: (field) => (_jsx(field.Checkbox, { label: "Show publication string", style: { display: 'inline-block' } })) })) })] }) }), _jsx(ClipboardFallbackModal, { mode: shouldFallback, onDismiss: cleanShouldFallback, text: text, label: "Preview publication string" })] }));
|
|
123
119
|
}
|
|
124
120
|
const CopyPreviewButton = styled(Button) `
|
|
125
121
|
margin-left: 5px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicationStringModal.js","sourceRoot":"","sources":["../../../src/component/modal/PublicationStringModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,MAAM,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"PublicationStringModal.js","sourceRoot":"","sources":["../../../src/component/modal/PublicationStringModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,MAAM,M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AAEF,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAA;;CAExB,CAAC;AAQF,SAAS,wBAAwB,CAAC,KAAoC;IACpE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAE3C,MAAM,EAAE,GAAG,EAAE,GAAG,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/C,MAAM,KAAK,GAAG,sBAAsB,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;IAExD,IAAI,CAAC,KAAK;QAAE,OAAO,KAAC,SAAS,IAAC,IAAI,EAAC,uBAAuB,GAAG,CAAC;IAE9D,OAAO,CACL,8BACE,KAAC,OAAO,IACN,OAAO,EAAC,MAAM,EACd,WAAW,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAC1C,SAAS,EAAC,KAAK,YAEf,KAAC,iBAAiB,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,IAAI,EAAC,WAAW,GAAG,GAC5D,EAEV,cAAK,uBAAuB,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAI,IAClD,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { DialogBody, DialogFooter } from '@blueprintjs/core';
|
|
3
3
|
import { revalidateLogic } from '@tanstack/react-form';
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { AppForm, Button, useForm } from 'react-science/ui';
|
|
6
6
|
import { z } from 'zod/v4';
|
|
7
7
|
import { DataExportOptions } from '../../data/SpectraManager.js';
|
|
8
8
|
import { useChartData } from '../context/ChartContext.js';
|
|
@@ -39,7 +39,7 @@ function InnerSaveAsModal(props) {
|
|
|
39
39
|
const { data, aggregator } = useChartData();
|
|
40
40
|
const { saveHandler } = useExport();
|
|
41
41
|
const form = useForm({
|
|
42
|
-
defaultValues: { ...INITIAL_VALUE, name: data[0]?.info?.name },
|
|
42
|
+
defaultValues: { ...INITIAL_VALUE, name: data[0]?.info?.name ?? '' },
|
|
43
43
|
validators: { onDynamic: formSchema },
|
|
44
44
|
validationLogic: revalidateLogic({ modeAfterSubmission: 'change' }),
|
|
45
45
|
onSubmit: ({ value }) => {
|
|
@@ -62,9 +62,6 @@ function InnerSaveAsModal(props) {
|
|
|
62
62
|
{ value: DataExportOptions.NO_DATA, label: 'None' },
|
|
63
63
|
];
|
|
64
64
|
}, [containsLinkedFiles]);
|
|
65
|
-
return (_jsx(StandardDialog, { isOpen: true, title: "Save as ... ", onClose: onCloseDialog, style: { width: 600 }, children: _jsx(form.
|
|
66
|
-
event.preventDefault();
|
|
67
|
-
void form.handleSubmit();
|
|
68
|
-
}, children: [_jsxs(DialogBody, { style: { backgroundColor: 'white' }, children: [_jsx(form.Section, { title: "General information", children: _jsx(form.AppField, { name: "name", children: (field) => _jsx(field.Input, { label: "Name", required: true, autoFocus: true }) }) }), _jsxs(form.Section, { title: "Include", children: [_jsx(form.AppField, { name: "include.view", children: (field) => _jsx(field.Checkbox, { label: "View" }) }), _jsx(form.AppField, { name: "include.settings", children: (field) => _jsx(field.Checkbox, { label: "Workspace" }) }), _jsx(form.AppField, { name: "include.dataType", children: (field) => (_jsx(field.RadioGroup, { inline: true, label: "Data", options: options })) })] })] }), _jsx(DialogFooter, { actions: _jsxs(_Fragment, { children: [_jsx(Button, { variant: "outlined", intent: "danger", onClick: () => onCloseDialog?.(), children: "Cancel" }), _jsx(form.SubmitButton, { intent: "success", children: "Save" })] }) })] }) }) }));
|
|
65
|
+
return (_jsx(StandardDialog, { isOpen: true, title: "Save as ... ", onClose: onCloseDialog, style: { width: 600 }, children: _jsxs(AppForm, { form: form, layout: "inline", children: [_jsxs(DialogBody, { style: { backgroundColor: 'white' }, children: [_jsx(form.Section, { title: "General information", children: _jsx(form.AppField, { name: "name", children: (field) => _jsx(field.Input, { label: "Name", required: true, autoFocus: true }) }) }), _jsxs(form.Section, { title: "Include", children: [_jsx(form.AppField, { name: "include.view", children: (field) => _jsx(field.Checkbox, { label: "View" }) }), _jsx(form.AppField, { name: "include.settings", children: (field) => _jsx(field.Checkbox, { label: "Workspace" }) }), _jsx(form.AppField, { name: "include.dataType", children: (field) => (_jsx(field.RadioGroup, { inline: true, label: "Data", options: options })) })] })] }), _jsx(DialogFooter, { actions: _jsxs(_Fragment, { children: [_jsx(Button, { variant: "outlined", intent: "danger", onClick: () => onCloseDialog?.(), children: "Cancel" }), _jsx(form.SubmitButton, { intent: "success", children: "Save" })] }) })] }) }));
|
|
69
66
|
}
|
|
70
67
|
//# sourceMappingURL=SaveAsModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveAsModal.js","sourceRoot":"","sources":["../../../src/component/modal/SaveAsModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SaveAsModal.js","sourceRoot":"","sources":["../../../src/component/modal/SaveAsModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO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/component/modal/aboutUs/AboutUsModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AboutUsModal.d.ts","sourceRoot":"","sources":["../../../../src/component/modal/aboutUs/AboutUsModal.tsx"],"names":[],"mappings":"AAmHA,iBAAS,YAAY,gCA8BpB;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -3,11 +3,10 @@ import styled from '@emotion/styled';
|
|
|
3
3
|
import { SvgLogoNmrium } from 'cheminfo-font';
|
|
4
4
|
import { Toolbar, useOnOff } from 'react-science/ui';
|
|
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.js";
|
|
9
8
|
import { StyledDialogBody } from '../../elements/StyledDialogBody.js';
|
|
10
|
-
import {
|
|
9
|
+
import { CoreSlot } from "../../utility/CoreSlot.js";
|
|
11
10
|
import AboutUsZakodium from './AboutUsZakodium.js';
|
|
12
11
|
const FallbackDialogContents = styled.div `
|
|
13
12
|
display: flex;
|
|
@@ -63,12 +62,11 @@ const Separator = styled.span `
|
|
|
63
62
|
const modalContentFallback = (_jsxs(FallbackDialogContents, { children: [_jsxs(InfoBlock, { children: [_jsx(Logo, { width: 160, height: 50 }), "Version ", _jsx(VersionInfo, {}), _jsx(Separator, {}), _jsx("a", { href: "https://github.com/cheminfo/nmrium", target: "_blank", rel: "noreferrer", children: "GitHub ( https://github.com/cheminfo/nmrium )" })] }), _jsx(InfoBlock, { children: _jsx(Separator, {}) }), _jsx("span", { className: "content", children: "This project is developed by Zakodium S\u00E0rl (Switzerland), the University of Cologne (Germany), Johannes Gutenberg University Mainz (Germany) and Universidad del Valle (Colombia)." }), _jsxs(InfoBlock, { children: [_jsx(Separator, {}), _jsx("span", { className: "title", children: "Funding is provided by" }), _jsx(Separator, {})] }), _jsx("div", { className: "content", children: _jsxs("ul", { children: [_jsx("li", { children: "IDNMR grant, which part of the Scientific Library Services and Information Systems (LIS) initiative of the DFG." }), _jsx("li", { children: _jsx(AboutUsZakodium, {}) }), _jsx("li", { children: "Universidad del Valle (Cali, Colombia)." }), _jsx("li", { children: "This project has received funding from the European Union\u2019s Horizon 2020 research and innovation programme under grant agreement No 957189. The project is part of BATTERY 2030+, the large-scale European research initiative for inventing the sustainable batteries of the future." })] }) })] }));
|
|
64
63
|
function AboutUsModal() {
|
|
65
64
|
const [isOpenDialog, openDialog, closeDialog] = useOnOff(false);
|
|
66
|
-
const core = useCore();
|
|
67
65
|
return (_jsxs(_Fragment, { children: [_jsx(Toolbar.Item, { onClick: openDialog, id: "logo", tooltip: "About NMRium", icon: _jsx(SvgLogoNmrium, {}) }), _jsx(StandardDialog, { isOpen: isOpenDialog, onClose: closeDialog, style: {
|
|
68
66
|
maxWidth: 1000,
|
|
69
67
|
width: '40vw',
|
|
70
68
|
minWidth: '500px',
|
|
71
|
-
}, title: "About NMRium", children: _jsx(StyledDialogBody, { children:
|
|
69
|
+
}, title: "About NMRium", children: _jsx(StyledDialogBody, { children: _jsx(CoreSlot, { slot: "topbar.about_us.modal", fallback: modalContentFallback }) }) })] }));
|
|
72
70
|
}
|
|
73
71
|
export default AboutUsModal;
|
|
74
72
|
function VersionInfo() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AboutUsModal.js","sourceRoot":"","sources":["../../../../src/component/modal/aboutUs/AboutUsModal.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"AboutUsModal.js","sourceRoot":"","sources":["../../../../src/component/modal/aboutUs/AboutUsModal.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewSignalTab.d.ts","sourceRoot":"","sources":["../../../../../../src/component/modal/editRange/forms/components/NewSignalTab.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NewSignalTab.d.ts","sourceRoot":"","sources":["../../../../../../src/component/modal/editRange/forms/components/NewSignalTab.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAiCjD,UAAU,iBAAiB;IACzB,KAAK,EAAE,KAAK,CAAC;CACd;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAoFpD"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { NumberInput2Controller } from '../../../../elements/NumberInput2Controller.js';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { revalidateLogic } from '@tanstack/react-form';
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
|
+
import { useFormContext, useWatch } from 'react-hook-form';
|
|
5
|
+
import { AppForm, useForm } from 'react-science/ui';
|
|
6
|
+
import { z } from 'zod/v4';
|
|
8
7
|
import { useTabsController } from '../../../../elements/TabsProvider.js';
|
|
9
8
|
import { useActiveNucleusTab } from '../../../../hooks/useActiveNucleusTab.js';
|
|
10
9
|
import { usePanelPreferences } from '../../../../hooks/usePanelPreferences.js';
|
|
@@ -32,59 +31,62 @@ export function NewSignalTab(props) {
|
|
|
32
31
|
const { signals } = useWatch();
|
|
33
32
|
const activeTab = useActiveNucleusTab();
|
|
34
33
|
const { tablePreferences } = usePanelPreferences('ranges', activeTab);
|
|
35
|
-
|
|
34
|
+
const schemaFormValidation = useMemo(() => {
|
|
35
|
+
return getSignalValidationSchema(range);
|
|
36
|
+
}, [range]);
|
|
37
|
+
function saveHandler({ delta }) {
|
|
36
38
|
const newSignal = {
|
|
37
39
|
multiplicity: 'm',
|
|
38
40
|
kind: 'signal',
|
|
39
|
-
delta
|
|
41
|
+
delta,
|
|
40
42
|
js: [{ multiplicity: 'm', coupling: '' }],
|
|
41
43
|
};
|
|
42
|
-
const _signals = signals
|
|
44
|
+
const _signals = [...signals, newSignal];
|
|
43
45
|
setValue('signals', _signals);
|
|
44
46
|
selectTab(_signals.length - 1);
|
|
45
47
|
}
|
|
46
|
-
const
|
|
48
|
+
const form = useForm({
|
|
47
49
|
defaultValues: {
|
|
48
|
-
delta: (range.from + range.to) / 2,
|
|
50
|
+
delta: String((range.from + range.to) / 2),
|
|
51
|
+
},
|
|
52
|
+
onSubmit: ({ value }) => {
|
|
53
|
+
const parsedValues = schemaFormValidation.parse(value);
|
|
54
|
+
saveHandler(parsedValues);
|
|
55
|
+
},
|
|
56
|
+
validationLogic: revalidateLogic({ modeAfterSubmission: 'change' }),
|
|
57
|
+
validators: {
|
|
58
|
+
onDynamic: schemaFormValidation,
|
|
49
59
|
},
|
|
50
|
-
resolver: yupResolver(getSignalValidationSchema(range)),
|
|
51
60
|
});
|
|
52
61
|
useEvent({
|
|
53
62
|
onClick: ({ xPPM, shiftKey }) => {
|
|
54
63
|
if (signalIndex === -1 && shiftKey) {
|
|
55
|
-
reset({ delta: xPPM });
|
|
64
|
+
form.reset({ delta: String(xPPM) });
|
|
56
65
|
}
|
|
57
66
|
},
|
|
58
67
|
onBrushEnd: (options) => {
|
|
59
68
|
const { range: [from, to], shiftKey, } = options;
|
|
60
69
|
if (signalIndex === -1 && shiftKey) {
|
|
61
|
-
reset({ delta: (to - from) / 2 + from });
|
|
70
|
+
form.reset({ delta: String((to - from) / 2 + from) });
|
|
62
71
|
}
|
|
63
72
|
},
|
|
64
73
|
});
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
setFocus('delta', { shouldSelect: true });
|
|
69
|
-
}, 0);
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
return (_jsx("div", { style: styles.container, children: _jsxs("div", { style: styles.innerContainer, children: [_jsxs("p", { style: styles.infoText, children: ["Edit or select a delta value of new signal in range [", `${formatNumber(range.from, tablePreferences.from.format)} ppm - ${formatNumber(range.to, tablePreferences.to.format)} ppm`, "]:"] }), _jsx(NumberInput2Controller, { control: control, name: "delta", placeholder: `𝛅(ppm)`, autoSelect: true, fill: true }), _jsx(Button, { intent: "success", style: {
|
|
73
|
-
marginTop: '20px',
|
|
74
|
-
}, onClick: () => handleSubmit(saveHandler)(), children: "Add a signal" })] }) }));
|
|
74
|
+
return (_jsx("div", { style: styles.container, children: _jsx("div", { style: styles.innerContainer, children: _jsxs(AppForm, { form: form, onSubmitMeta: (event) => {
|
|
75
|
+
event.stopPropagation();
|
|
76
|
+
}, children: [_jsx(form.AppField, { name: "delta", children: (field) => (_jsx(field.NumericInput, { autoFocus: true, placeholder: "\uD835\uDEC5(ppm)", label: "Edit or select a delta value of new signal", helpText: `Value should be in range [${formatNumber(range.from, tablePreferences.from.format)} ppm - ${formatNumber(range.to, tablePreferences.to.format)} ppm]` })) }), _jsx(form.SubmitButton, { intent: "success", children: "Add a signal" })] }) }) }));
|
|
75
77
|
}
|
|
76
78
|
function getSignalValidationSchema(range) {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
.
|
|
79
|
+
const params = {
|
|
80
|
+
error: (ctx) => {
|
|
81
|
+
const input = Number(ctx.input);
|
|
82
|
+
return `${input.toFixed(5)} ppm out of the range`;
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
return z.object({
|
|
86
|
+
delta: z.coerce
|
|
87
|
+
.number()
|
|
88
|
+
.min(range.from, params)
|
|
89
|
+
.max(range.to, params),
|
|
88
90
|
});
|
|
89
91
|
}
|
|
90
92
|
//# sourceMappingURL=NewSignalTab.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewSignalTab.js","sourceRoot":"","sources":["../../../../../../src/component/modal/editRange/forms/components/NewSignalTab.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"NewSignalTab.js","sourceRoot":"","sources":["../../../../../../src/component/modal/editRange/forms/components/NewSignalTab.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,MAAM,MAAM,GAGR;IACF,SAAS,EAAE;QACT,OAAO,EAAE,QAAQ;KAClB;IACD,cAAc,EAAE;QACd,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,OAAO;QAChB,MAAM,EAAE,MAAM;KACf;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,QAAQ;QACjB,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,OAAO;KACnB;CACF,CAAC;AAMF,MAAM,UAAU,YAAY,CAAC,KAAwB;IACnD,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IACxB,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,EAAE,CAAC;IACtC,MAAM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