nmrium 0.24.1 → 0.27.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/Chart1D.js +3 -2
- package/lib/component/1d/FooterBanner.js +1 -1
- package/lib/component/1d/Integral.d.ts +2 -1
- package/lib/component/1d/Integral.js +5 -12
- package/lib/component/1d/IntegralResizable.d.ts +2 -1
- package/lib/component/1d/IntegralResizable.js +21 -16
- package/lib/component/1d/IntegralsSeries.js +3 -3
- package/lib/component/1d/Line.d.ts +2 -2
- package/lib/component/1d/PeakAnnotation.js +5 -4
- package/lib/component/1d/database/DatabaseElements.d.ts +3 -0
- package/lib/component/1d/database/DatabaseElements.js +18 -0
- package/lib/component/1d/database/DatabaseSpectrum.d.ts +3 -0
- package/lib/component/1d/database/DatabaseSpectrum.js +58 -0
- package/lib/component/1d/{ResurrectedDatabaseRanges.d.ts → database/ResurrectedDatabaseRanges.d.ts} +0 -0
- package/lib/component/1d/{ResurrectedDatabaseRanges.js → database/ResurrectedDatabaseRanges.js} +9 -6
- package/lib/component/1d/jCouplingGraph/JGraph.js +4 -10
- package/lib/component/1d/multiAnalysis/AnalysisRange.js +36 -32
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +5 -5
- package/lib/component/1d/ranges/Range.d.ts +2 -1
- package/lib/component/1d/ranges/Range.js +38 -39
- package/lib/component/1d/ranges/Ranges.js +6 -3
- package/lib/component/1d/tool/XLabelPointer.js +1 -1
- package/lib/component/2d/Chart2D.js +2 -1
- package/lib/component/2d/Contours.js +4 -1
- package/lib/component/2d/FooterBanner.js +1 -1
- package/lib/component/2d/tools/XYLabelPointer.js +1 -1
- package/lib/component/2d/tools/slicing/HorizontalSliceChart.d.ts +2 -2
- package/lib/component/2d/tools/slicing/SliceScale.d.ts +1 -1
- package/lib/component/2d/tools/slicing/VerticalSliceChart.d.ts +2 -2
- package/lib/component/2d/zones/Signal.js +8 -8
- package/lib/component/2d/zones/Zone.js +3 -3
- package/lib/component/EventsTrackers/KeysListenerTracker.js +11 -5
- package/lib/component/NMRium.d.ts +5 -1
- package/lib/component/NMRium.js +28 -32
- package/lib/component/SplitPaneWrapper.d.ts +4 -0
- package/lib/component/SplitPaneWrapper.js +8 -0
- package/lib/component/assignment/AssignmentsContext.d.ts +35 -0
- package/lib/component/assignment/AssignmentsContext.js +83 -0
- package/lib/component/assignment/AssignmentsReducer.d.ts +32 -0
- package/lib/component/assignment/AssignmentsReducer.js +39 -0
- package/lib/component/assignment/actions/initAssignment.d.ts +5 -0
- package/lib/component/assignment/actions/initAssignment.js +62 -0
- package/lib/component/assignment/actions/removeAssignment.d.ts +16 -0
- package/lib/component/assignment/actions/removeAssignment.js +24 -0
- package/lib/component/assignment/actions/setActiveAssignment.d.ts +10 -0
- package/lib/component/assignment/actions/setActiveAssignment.js +8 -0
- package/lib/component/assignment/actions/toggleAssignment.d.ts +7 -0
- package/lib/component/assignment/actions/toggleAssignment.js +44 -0
- package/lib/component/assignment/index.d.ts +0 -18
- package/lib/component/assignment/index.js +12 -266
- package/lib/component/assignment/utilities/filterForIDsWithAssignment.d.ts +2 -0
- package/lib/component/assignment/utilities/filterForIDsWithAssignment.js +3 -0
- package/lib/component/context/GlobalContext.d.ts +15 -3
- package/lib/component/context/GlobalContext.js +1 -1
- package/lib/component/context/PreferencesContext.d.ts +15 -12
- package/lib/component/context/PreferencesContext.js +1 -1
- package/lib/component/elements/ActionButtons.d.ts +10 -0
- package/lib/component/elements/ActionButtons.js +14 -0
- package/lib/component/elements/Button.d.ts +30 -5
- package/lib/component/elements/Button.js +151 -4
- package/lib/component/elements/ColorInput.js +2 -2
- package/lib/component/elements/ContextMenu.d.ts +8 -3
- package/lib/component/elements/ContextMenu.js +6 -6
- package/lib/component/elements/EditableColumn.d.ts +3 -2
- package/lib/component/elements/EditableColumn.js +27 -20
- package/lib/component/elements/Input.d.ts +9 -1
- package/lib/component/elements/Input.js +18 -5
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +5 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +38 -10
- package/lib/component/elements/ReactTable/ReactTable.d.ts +3 -1
- package/lib/component/elements/ReactTable/ReactTable.js +7 -2
- package/lib/component/elements/ReactTable/Style.d.ts +1 -3
- package/lib/component/elements/ReactTable/Style.js +1 -7
- package/lib/component/elements/Select.d.ts +1 -0
- package/lib/component/elements/Select.js +21 -15
- package/lib/component/elements/ToggleButton.d.ts +2 -1
- package/lib/component/elements/ToggleButton.js +2 -2
- package/lib/component/elements/ToolTip/ToolTip.js +3 -2
- package/lib/component/elements/draggble/SVGDraggable.d.ts +17 -0
- package/lib/component/elements/draggble/SVGDraggable.js +33 -0
- package/lib/component/elements/draggble/useDraggable.d.ts +22 -0
- package/lib/component/elements/draggble/useDraggable.js +70 -0
- package/lib/component/elements/formik/FormikColorPicker.d.ts +1 -0
- package/lib/component/elements/formik/FormikColorPicker.js +10 -7
- package/lib/component/elements/formik/FormikColumnFormatField.d.ts +5 -4
- package/lib/component/elements/formik/FormikColumnFormatField.js +2 -2
- package/lib/component/elements/formik/FormikInput.d.ts +1 -0
- package/lib/component/elements/formik/FormikInput.js +6 -3
- package/lib/component/elements/formik/FormikSlider.d.ts +1 -0
- package/lib/component/elements/formik/FormikSlider.js +6 -3
- package/lib/component/elements/popup/Alert/Provider.js +1 -1
- package/lib/component/elements/resizer/DivResizer.d.ts +2 -0
- package/lib/component/elements/resizer/DivResizer.js +62 -0
- package/lib/component/elements/resizer/Resizer.d.ts +20 -0
- package/lib/component/elements/resizer/Resizer.js +12 -0
- package/lib/component/elements/resizer/SVGResizer.d.ts +2 -0
- package/lib/component/elements/resizer/SVGResizer.js +42 -0
- package/lib/component/elements/resizer/useResizer.d.ts +11 -0
- package/lib/component/elements/resizer/useResizer.js +65 -0
- package/lib/component/header/AutoPeakPickingOptionPanel.js +4 -15
- package/lib/component/header/BaseLineCorrectionPanel.js +2 -9
- package/lib/component/header/ManualPhaseCorrectionPanel.js +2 -9
- package/lib/component/header/RangesPickingOptionPanel.js +3 -16
- package/lib/component/header/ZeroFillingOptionsPanel.js +2 -9
- package/lib/component/header/Zones2DOptionPanel.js +3 -14
- package/lib/component/hooks/useExport.d.ts +1 -1
- package/lib/component/hooks/useExport.js +11 -9
- package/lib/component/hooks/useFormatNumberByNucleus.d.ts +3 -0
- package/lib/component/{utility/FormatNumber.js → hooks/useFormatNumberByNucleus.js} +1 -10
- package/lib/component/hooks/usePanelPreferences.d.ts +7 -0
- package/lib/component/hooks/usePanelPreferences.js +54 -0
- package/lib/component/hooks/useXYReduce.d.ts +2 -2
- package/lib/component/loader/DefaultSpinnerComponent.d.ts +3 -1
- package/lib/component/loader/DefaultSpinnerComponent.js +2 -2
- package/lib/component/loader/DropZone.js +1 -0
- package/lib/component/loader/SpinnerContext.d.ts +3 -3
- package/lib/component/loader/SpinnerContext.js +2 -2
- package/lib/component/modal/AlignSpectraModal.js +2 -1
- package/lib/component/modal/ExportAsMatrixModal.js +2 -1
- package/lib/component/modal/ImportPublicationStringModal.js +2 -1
- package/lib/component/modal/LoadJCAMPModal.js +7 -6
- package/lib/component/modal/ModalStyle.js +4 -26
- package/lib/component/modal/MoleculeStructureEditorModal.d.ts +3 -4
- package/lib/component/modal/MoleculeStructureEditorModal.js +24 -2
- package/lib/component/modal/MultipleSpectraFiltersModal/index.js +2 -1
- package/lib/component/modal/PredictSpectraModal.js +2 -7
- package/lib/component/modal/SaveAsModal.d.ts +1 -1
- package/lib/component/modal/SaveAsModal.js +2 -1
- package/lib/component/modal/editRange/EditRangeModal.js +6 -5
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.d.ts +2 -0
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +3 -6
- package/lib/component/modal/editRange/forms/components/SignalsForm.d.ts +3 -1
- package/lib/component/modal/editRange/forms/components/SignalsForm.js +12 -9
- package/lib/component/modal/setting/DatabasesTabContent.d.ts +6 -0
- package/lib/component/modal/setting/DatabasesTabContent.js +75 -0
- package/lib/component/modal/setting/DisplayTabContent.js +11 -7
- package/lib/component/modal/setting/FormattingTabContent.js +20 -14
- package/lib/component/modal/setting/GeneralSettings.js +4 -1
- package/lib/component/modal/setting/settingsValidation.d.ts +56 -0
- package/lib/component/modal/setting/settingsValidation.js +46 -0
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +6 -4
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts +4 -3
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +13 -6
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.d.ts +10 -0
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +65 -0
- package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts +0 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +2 -5
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +2 -2
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +10 -11
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +26 -74
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.d.ts +8 -0
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.js +38 -0
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +12 -23
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +21 -7
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +31 -11
- package/lib/component/panels/MoleculesPanel/Utilities.js +61 -68
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts +2 -2
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +55 -60
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +1 -1
- package/lib/component/panels/Panels.js +2 -3
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +3 -3
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +29 -82
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts +1 -5
- package/lib/component/panels/PeaksPanel/PeaksTable.js +18 -25
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts +2 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js +16 -10
- package/lib/component/panels/RangesPanel/RangesPanel.js +5 -11
- package/lib/component/panels/RangesPanel/RangesPreferences.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.js +55 -66
- package/lib/component/panels/RangesPanel/RangesTable.d.ts +11 -6
- package/lib/component/panels/RangesPanel/RangesTable.js +3 -7
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +5 -2
- package/lib/component/panels/RangesPanel/RangesTableRow.js +15 -14
- package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts +2 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.d.ts +2 -1
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.js +5 -2
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.d.ts +16 -9
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts +2 -3
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.d.ts +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +3 -4
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.d.ts +13 -0
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +14 -0
- package/lib/component/panels/RangesPanel/TableColumns/format.js +2 -2
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +5 -18
- package/lib/component/panels/SpectrumsPanel/base/setting/PlotChart.d.ts +18 -0
- package/lib/component/panels/SpectrumsPanel/base/setting/PlotChart.js +18 -0
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.d.ts +1 -2
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.js +7 -68
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +1 -8
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.d.ts +1 -2
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +7 -68
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +8 -21
- package/lib/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +2 -2
- package/lib/component/panels/SpectrumsPanel/base/setting/processSnapPlot.d.ts +6 -0
- package/lib/component/panels/SpectrumsPanel/base/setting/processSnapPlot.js +51 -0
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts +5 -7
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.d.ts +4 -8
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.d.ts +5 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +3 -2
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts +5 -9
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +4 -4
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts +4 -8
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js +20 -84
- package/lib/component/panels/ZonesPanel/ZonesTable.js +4 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +7 -2
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +22 -22
- package/lib/component/panels/databasePanel/DatabasePanel.js +73 -40
- package/lib/component/panels/databasePanel/DatabasePreferences.js +10 -42
- package/lib/component/panels/databasePanel/DatabaseTable.js +23 -11
- package/lib/component/panels/databasePanel/useDatabases.d.ts +5 -0
- package/lib/component/panels/databasePanel/useDatabases.js +10 -0
- package/lib/component/panels/extra/placeholder/NoTableData.d.ts +3 -1
- package/lib/component/panels/extra/placeholder/NoTableData.js +2 -2
- package/lib/component/panels/extra/preferences/ColumnsHelper.js +3 -3
- package/lib/component/panels/extra/preferences/NucleusPreferences.d.ts +13 -0
- package/lib/component/panels/extra/preferences/NucleusPreferences.js +22 -0
- package/lib/component/panels/extra/preferences/PreferencesContainer.d.ts +6 -0
- package/lib/component/panels/extra/preferences/PreferencesContainer.js +10 -0
- package/lib/component/panels/extra/preferences/PreferencesGroup.d.ts +7 -0
- package/lib/component/panels/extra/preferences/PreferencesGroup.js +21 -0
- package/lib/component/panels/header/SpectraAutomaticPickingButton.d.ts +2 -0
- package/lib/component/panels/header/SpectraAutomaticPickingButton.js +30 -0
- package/lib/component/panels/predictionPanel/PredictionOptions.js +2 -18
- package/lib/component/reducer/Reducer.d.ts +360 -45
- package/lib/component/reducer/Reducer.js +9 -2
- package/lib/component/reducer/actions/AssignmentsActions.d.ts +9 -0
- package/lib/component/reducer/actions/AssignmentsActions.js +18 -0
- package/lib/component/reducer/actions/LoadActions.d.ts +1 -1
- package/lib/component/reducer/actions/LoadActions.js +11 -6
- package/lib/component/reducer/actions/MoleculeActions.d.ts +4 -2
- package/lib/component/reducer/actions/MoleculeActions.js +15 -3
- package/lib/component/reducer/actions/PreferencesActions.js +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +1 -1
- package/lib/component/reducer/preferences/actions/addWorkspace.d.ts +3 -0
- package/lib/component/reducer/preferences/actions/addWorkspace.js +19 -0
- package/lib/component/reducer/preferences/actions/initPreferences.d.ts +3 -0
- package/lib/component/reducer/preferences/actions/initPreferences.js +60 -0
- package/lib/component/reducer/preferences/actions/removeWorkspace.d.ts +3 -0
- package/lib/component/reducer/preferences/actions/removeWorkspace.js +20 -0
- package/lib/component/reducer/preferences/actions/resetPreferences.d.ts +3 -0
- package/lib/component/reducer/preferences/actions/resetPreferences.js +14 -0
- package/lib/component/reducer/preferences/actions/setPanelsPreferences.d.ts +3 -0
- package/lib/component/reducer/preferences/actions/setPanelsPreferences.js +13 -0
- package/lib/component/reducer/preferences/actions/setPreferences.d.ts +3 -0
- package/lib/component/reducer/preferences/actions/setPreferences.js +34 -0
- package/lib/component/reducer/preferences/actions/setWorkspace.d.ts +3 -0
- package/lib/component/reducer/preferences/actions/setWorkspace.js +8 -0
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts +7 -0
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +55 -0
- package/lib/component/reducer/{preferencesReducer.d.ts → preferences/preferencesReducer.d.ts} +132 -15
- package/lib/component/reducer/preferences/preferencesReducer.js +80 -0
- package/lib/component/reducer/preferences/utilites/checkKeysExists.d.ts +1 -0
- package/lib/component/reducer/preferences/utilites/checkKeysExists.js +14 -0
- package/lib/component/reducer/preferences/utilites/filterObject.d.ts +1 -0
- package/lib/component/reducer/preferences/utilites/filterObject.js +7 -0
- package/lib/component/reducer/preferences/utilites/flatObject.d.ts +1 -0
- package/lib/component/reducer/preferences/utilites/flatObject.js +9 -0
- package/lib/component/reducer/preferences/utilites/getActiveWorkspace.d.ts +3 -0
- package/lib/component/reducer/preferences/utilites/getActiveWorkspace.js +3 -0
- package/lib/component/reducer/preferences/utilites/getPreferencesByWorkspace.d.ts +2 -0
- package/lib/component/reducer/preferences/utilites/getPreferencesByWorkspace.js +4 -0
- package/lib/component/reducer/preferences/utilites/mapNucleiFormatting.d.ts +5 -0
- package/lib/component/reducer/preferences/utilites/mapNucleiFormatting.js +8 -0
- package/lib/component/reducer/types/Types.d.ts +3 -0
- package/lib/component/reducer/types/Types.js +3 -0
- package/lib/component/tool/FloatMoleculeStructures/ActionsButton.d.ts +4 -0
- package/lib/component/tool/FloatMoleculeStructures/ActionsButton.js +7 -0
- package/lib/component/tool/FloatMoleculeStructures/DraggableStructure.d.ts +14 -0
- package/lib/component/tool/FloatMoleculeStructures/DraggableStructure.js +43 -0
- package/lib/component/tool/FloatMoleculeStructures/index.d.ts +15 -0
- package/lib/component/tool/FloatMoleculeStructures/index.js +28 -0
- package/lib/component/utility/Export.d.ts +3 -3
- package/lib/component/utility/Export.js +16 -9
- package/lib/component/utility/PathBuilder.js +2 -1
- package/lib/component/utility/formatNumber.d.ts +3 -0
- package/lib/component/utility/formatNumber.js +10 -0
- package/lib/component/utility/getUniqueNuclei.d.ts +1 -0
- package/lib/component/utility/getUniqueNuclei.js +10 -0
- package/lib/component/workspaces/Workspace.d.ts +74 -5
- package/lib/component/workspaces/basic.js +17 -10
- package/lib/component/workspaces/embedded.d.ts +2 -0
- package/lib/component/workspaces/embedded.js +32 -0
- package/lib/component/workspaces/exercise.js +2 -0
- package/lib/component/workspaces/index.d.ts +1 -0
- package/lib/component/workspaces/index.js +2 -1
- package/lib/component/workspaces/prediction.js +2 -0
- package/lib/component/workspaces/process1D.js +2 -0
- package/lib/data/SpectraManager.js +23 -15
- package/lib/data/data1d/Data1DManager.d.ts +1 -1
- package/lib/data/data1d/Data1DManager.js +6 -1
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.js +10 -0
- package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +2 -1
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.js +2 -1
- package/lib/data/data1d/Spectrum1D/toJSON.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/toJSON.js +1 -0
- package/lib/data/data1d/database.d.ts +9 -15
- package/lib/data/data1d/database.js +15 -20
- package/lib/data/data1d/filter1d/absolute.d.ts +3 -2
- package/lib/data/data1d/filter1d/autoPhaseCorrection.d.ts +3 -2
- package/lib/data/data1d/filter1d/baselineCorrection.d.ts +3 -2
- package/lib/data/data1d/filter1d/centerMean.d.ts +3 -2
- package/lib/data/data1d/filter1d/digitalFilter.d.ts +3 -2
- package/lib/data/data1d/filter1d/equallySpaced.d.ts +3 -2
- package/lib/data/data1d/filter1d/exclusionZones.d.ts +1 -4
- package/lib/data/data1d/filter1d/exclusionZones.js +4 -4
- package/lib/data/data1d/filter1d/fft.d.ts +3 -2
- package/lib/data/data1d/filter1d/fft.js +2 -2
- package/lib/data/data1d/filter1d/fromTo.d.ts +3 -2
- package/lib/data/data1d/filter1d/lineBroadening.d.ts +3 -2
- package/lib/data/data1d/filter1d/lineBroadening.js +1 -1
- package/lib/data/data1d/filter1d/pareto.d.ts +3 -2
- package/lib/data/data1d/filter1d/pareto.js +2 -2
- package/lib/data/data1d/filter1d/phaseCorrection.d.ts +3 -2
- package/lib/data/data1d/filter1d/shiftX.d.ts +2 -1
- package/lib/data/data1d/filter1d/standardDeviation.d.ts +3 -2
- package/lib/data/data1d/filter1d/zeroFilling.d.ts +3 -2
- package/lib/data/data1d/filter1d/zeroFilling.js +1 -1
- package/lib/data/data2d/Data2DManager.d.ts +1 -1
- package/lib/data/data2d/Data2DManager.js +6 -1
- package/lib/data/data2d/Spectrum2D/toJSON.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/toJSON.js +1 -0
- package/lib/data/data2d/filter2d/shiftX.d.ts +4 -3
- package/lib/data/data2d/filter2d/shiftX.js +2 -2
- package/lib/data/data2d/filter2d/shiftY.d.ts +4 -3
- package/lib/data/data2d/filter2d/shiftY.js +2 -2
- package/lib/data/molecules/Molecule.d.ts +3 -3
- package/lib/data/molecules/Molecule.js +7 -1
- package/lib/data/molecules/MoleculeManager.d.ts +4 -1
- package/lib/data/molecules/MoleculeManager.js +33 -2
- package/lib/data/types/common/Source.d.ts +1 -0
- package/lib/data/types/data1d/Data1D.d.ts +3 -3
- package/lib/data/types/data1d/Info1D.d.ts +1 -0
- package/lib/data/types/data2d/Signal2DAxisData.d.ts +1 -1
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/Chart1D.js +3 -2
- package/lib-cjs/component/1d/FooterBanner.js +2 -2
- package/lib-cjs/component/1d/Integral.js +5 -12
- package/lib-cjs/component/1d/IntegralResizable.js +20 -15
- package/lib-cjs/component/1d/IntegralsSeries.js +3 -3
- package/lib-cjs/component/1d/PeakAnnotation.js +5 -4
- package/lib-cjs/component/1d/database/DatabaseElements.js +23 -0
- package/lib-cjs/component/1d/database/DatabaseSpectrum.js +60 -0
- package/lib-cjs/component/1d/{ResurrectedDatabaseRanges.js → database/ResurrectedDatabaseRanges.js} +9 -6
- package/lib-cjs/component/1d/jCouplingGraph/JGraph.js +4 -10
- package/lib-cjs/component/1d/multiAnalysis/AnalysisRange.js +35 -31
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +6 -6
- package/lib-cjs/component/1d/ranges/Range.js +40 -41
- package/lib-cjs/component/1d/ranges/Ranges.js +6 -3
- package/lib-cjs/component/1d/tool/XLabelPointer.js +2 -2
- package/lib-cjs/component/2d/Chart2D.js +2 -1
- package/lib-cjs/component/2d/Contours.js +4 -1
- package/lib-cjs/component/2d/FooterBanner.js +2 -2
- package/lib-cjs/component/2d/tools/XYLabelPointer.js +2 -2
- package/lib-cjs/component/2d/zones/Signal.js +9 -9
- package/lib-cjs/component/2d/zones/Zone.js +4 -4
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +12 -6
- package/lib-cjs/component/NMRium.js +27 -31
- package/lib-cjs/component/SplitPaneWrapper.js +12 -0
- package/lib-cjs/component/assignment/AssignmentsContext.js +88 -0
- package/lib-cjs/component/assignment/AssignmentsReducer.js +45 -0
- package/lib-cjs/component/assignment/actions/initAssignment.js +65 -0
- package/lib-cjs/component/assignment/actions/removeAssignment.js +29 -0
- package/lib-cjs/component/assignment/actions/setActiveAssignment.js +11 -0
- package/lib-cjs/component/assignment/actions/toggleAssignment.js +47 -0
- package/lib-cjs/component/assignment/index.js +15 -269
- package/lib-cjs/component/assignment/utilities/filterForIDsWithAssignment.js +7 -0
- package/lib-cjs/component/context/GlobalContext.js +1 -1
- package/lib-cjs/component/context/PreferencesContext.js +1 -1
- package/lib-cjs/component/elements/ActionButtons.js +20 -0
- package/lib-cjs/component/elements/Button.js +150 -4
- package/lib-cjs/component/elements/ColorInput.js +2 -2
- package/lib-cjs/component/elements/ContextMenu.js +6 -6
- package/lib-cjs/component/elements/EditableColumn.js +27 -20
- package/lib-cjs/component/elements/Input.js +18 -5
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableRow.js +42 -14
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +7 -2
- package/lib-cjs/component/elements/ReactTable/Style.js +1 -9
- package/lib-cjs/component/elements/Select.js +20 -14
- package/lib-cjs/component/elements/ToggleButton.js +2 -2
- package/lib-cjs/component/elements/ToolTip/ToolTip.js +3 -2
- package/lib-cjs/component/elements/draggble/SVGDraggable.js +39 -0
- package/lib-cjs/component/elements/draggble/useDraggable.js +73 -0
- package/lib-cjs/component/elements/formik/FormikColorPicker.js +10 -7
- package/lib-cjs/component/elements/formik/FormikColumnFormatField.js +2 -2
- package/lib-cjs/component/elements/formik/FormikInput.js +6 -3
- package/lib-cjs/component/elements/formik/FormikSlider.js +6 -3
- package/lib-cjs/component/elements/popup/Alert/Provider.js +1 -1
- package/lib-cjs/component/elements/resizer/DivResizer.js +68 -0
- package/lib-cjs/component/elements/resizer/Resizer.js +18 -0
- package/lib-cjs/component/elements/resizer/SVGResizer.js +48 -0
- package/lib-cjs/component/elements/resizer/useResizer.js +71 -0
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +3 -14
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +2 -9
- package/lib-cjs/component/header/ManualPhaseCorrectionPanel.js +2 -9
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +2 -15
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +2 -9
- package/lib-cjs/component/header/Zones2DOptionPanel.js +2 -13
- package/lib-cjs/component/hooks/useExport.js +11 -9
- package/lib-cjs/component/{utility/FormatNumber.js → hooks/useFormatNumberByNucleus.js} +2 -12
- package/lib-cjs/component/hooks/usePanelPreferences.js +62 -0
- package/lib-cjs/component/loader/DefaultSpinnerComponent.js +2 -2
- package/lib-cjs/component/loader/DropZone.js +1 -0
- package/lib-cjs/component/loader/SpinnerContext.js +2 -2
- package/lib-cjs/component/modal/AlignSpectraModal.js +2 -1
- package/lib-cjs/component/modal/ExportAsMatrixModal.js +2 -1
- package/lib-cjs/component/modal/ImportPublicationStringModal.js +2 -1
- package/lib-cjs/component/modal/LoadJCAMPModal.js +7 -6
- package/lib-cjs/component/modal/ModalStyle.js +4 -26
- package/lib-cjs/component/modal/MoleculeStructureEditorModal.js +29 -2
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/index.js +2 -1
- package/lib-cjs/component/modal/PredictSpectraModal.js +2 -7
- package/lib-cjs/component/modal/SaveAsModal.js +2 -1
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +6 -5
- package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +3 -6
- package/lib-cjs/component/modal/editRange/forms/components/SignalsForm.js +12 -9
- package/lib-cjs/component/modal/setting/DatabasesTabContent.js +80 -0
- package/lib-cjs/component/modal/setting/DisplayTabContent.js +11 -7
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +19 -13
- package/lib-cjs/component/modal/setting/GeneralSettings.js +4 -1
- package/lib-cjs/component/modal/setting/settingsValidation.js +72 -0
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignment.js +6 -4
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +13 -6
- package/lib-cjs/component/panels/AutomaticAssignment/useAutoAssignments.js +72 -0
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +2 -5
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +10 -11
- package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +24 -72
- package/lib-cjs/component/panels/MoleculesPanel/MoleculeHeader.js +44 -0
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +12 -23
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +21 -7
- package/lib-cjs/component/panels/MoleculesPanel/Utilities.js +61 -68
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +55 -60
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +2 -2
- package/lib-cjs/component/panels/Panels.js +2 -3
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +4 -4
- package/lib-cjs/component/panels/PeaksPanel/PeaksPreferences.js +27 -80
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +18 -48
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +17 -11
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +6 -12
- package/lib-cjs/component/panels/RangesPanel/RangesPreferences.js +53 -64
- package/lib-cjs/component/panels/RangesPanel/RangesTable.js +3 -7
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +18 -17
- package/lib-cjs/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +2 -5
- package/lib-cjs/component/panels/RangesPanel/TableColumns/ActionsColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/TableColumns/CouplingColumn.js +5 -2
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeColumn.js +2 -5
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RelativeColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +3 -4
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +16 -0
- package/lib-cjs/component/panels/RangesPanel/TableColumns/format.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/hooks/useEditRangeModal.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPanelHeader.js +3 -16
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/PlotChart.js +21 -0
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.js +10 -68
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +1 -8
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +10 -68
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +8 -21
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/processSnapPlot.js +55 -0
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +3 -2
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +4 -4
- package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/ZonesPreferences.js +18 -82
- package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +4 -1
- package/lib-cjs/component/panels/ZonesPanel/ZonesTableRow.js +23 -23
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +72 -39
- package/lib-cjs/component/panels/databasePanel/DatabasePreferences.js +10 -42
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +22 -10
- package/lib-cjs/component/panels/databasePanel/useDatabases.js +14 -0
- package/lib-cjs/component/panels/extra/placeholder/NoTableData.js +2 -2
- package/lib-cjs/component/panels/extra/preferences/ColumnsHelper.js +3 -3
- package/lib-cjs/component/panels/extra/preferences/NucleusPreferences.js +29 -0
- package/lib-cjs/component/panels/extra/preferences/PreferencesContainer.js +14 -0
- package/lib-cjs/component/panels/extra/preferences/PreferencesGroup.js +25 -0
- package/lib-cjs/component/panels/header/SpectraAutomaticPickingButton.js +37 -0
- package/lib-cjs/component/panels/predictionPanel/PredictionOptions.js +2 -18
- package/lib-cjs/component/reducer/Reducer.js +9 -2
- package/lib-cjs/component/reducer/actions/AssignmentsActions.js +21 -0
- package/lib-cjs/component/reducer/actions/LoadActions.js +10 -5
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +17 -3
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +1 -1
- package/lib-cjs/component/reducer/actions/ToolsActions.js +1 -1
- package/lib-cjs/component/reducer/preferences/actions/addWorkspace.js +26 -0
- package/lib-cjs/component/reducer/preferences/actions/initPreferences.js +67 -0
- package/lib-cjs/component/reducer/preferences/actions/removeWorkspace.js +24 -0
- package/lib-cjs/component/reducer/preferences/actions/resetPreferences.js +18 -0
- package/lib-cjs/component/reducer/preferences/actions/setPanelsPreferences.js +17 -0
- package/lib-cjs/component/reducer/preferences/actions/setPreferences.js +38 -0
- package/lib-cjs/component/reducer/preferences/actions/setWorkspace.js +12 -0
- package/lib-cjs/component/reducer/preferences/panelsPreferencesDefaultValues.js +62 -0
- package/lib-cjs/component/reducer/preferences/preferencesReducer.js +87 -0
- package/lib-cjs/component/reducer/preferences/utilites/checkKeysExists.js +18 -0
- package/lib-cjs/component/reducer/preferences/utilites/filterObject.js +11 -0
- package/lib-cjs/component/reducer/preferences/utilites/flatObject.js +13 -0
- package/lib-cjs/component/reducer/preferences/utilites/getActiveWorkspace.js +7 -0
- package/lib-cjs/component/reducer/preferences/utilites/getPreferencesByWorkspace.js +11 -0
- package/lib-cjs/component/reducer/preferences/utilites/mapNucleiFormatting.js +12 -0
- package/lib-cjs/component/reducer/types/Types.js +6 -3
- package/lib-cjs/component/tool/FloatMoleculeStructures/ActionsButton.js +13 -0
- package/lib-cjs/component/tool/FloatMoleculeStructures/DraggableStructure.js +50 -0
- package/lib-cjs/component/tool/FloatMoleculeStructures/index.js +36 -0
- package/lib-cjs/component/utility/Export.js +16 -9
- package/lib-cjs/component/utility/PathBuilder.js +2 -1
- package/lib-cjs/component/utility/formatNumber.js +17 -0
- package/lib-cjs/component/utility/getUniqueNuclei.js +14 -0
- package/lib-cjs/component/workspaces/basic.js +17 -10
- package/lib-cjs/component/workspaces/embedded.js +35 -0
- package/lib-cjs/component/workspaces/exercise.js +2 -0
- package/lib-cjs/component/workspaces/index.js +2 -1
- package/lib-cjs/component/workspaces/prediction.js +2 -0
- package/lib-cjs/component/workspaces/process1D.js +2 -0
- package/lib-cjs/data/SpectraManager.js +23 -15
- package/lib-cjs/data/data1d/Data1DManager.js +6 -1
- package/lib-cjs/data/data1d/Spectrum1D/convertDataToFloat64Array.js +14 -0
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +2 -1
- package/lib-cjs/data/data1d/Spectrum1D/peaks/mapPeaks.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.js +2 -1
- package/lib-cjs/data/data1d/Spectrum1D/toJSON.js +1 -0
- package/lib-cjs/data/data1d/database.js +15 -21
- package/lib-cjs/data/data1d/filter1d/exclusionZones.js +4 -4
- package/lib-cjs/data/data1d/filter1d/fft.js +2 -2
- package/lib-cjs/data/data1d/filter1d/lineBroadening.js +1 -1
- package/lib-cjs/data/data1d/filter1d/pareto.js +2 -2
- package/lib-cjs/data/data1d/filter1d/shiftX.js +2 -2
- package/lib-cjs/data/data1d/filter1d/zeroFilling.js +1 -1
- package/lib-cjs/data/data2d/Data2DManager.js +6 -1
- package/lib-cjs/data/data2d/Spectrum2D/toJSON.js +1 -0
- package/lib-cjs/data/data2d/filter2d/shiftX.js +4 -4
- package/lib-cjs/data/data2d/filter2d/shiftY.js +4 -4
- package/lib-cjs/data/molecules/Molecule.js +7 -1
- package/lib-cjs/data/molecules/MoleculeManager.js +37 -3
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +49 -48
- package/lib/component/1d/Resizable.d.ts +0 -12
- package/lib/component/1d/Resizable.js +0 -105
- package/lib/component/panels/extra/preferences/defaultValues.d.ts +0 -54
- package/lib/component/panels/extra/preferences/defaultValues.js +0 -54
- package/lib/component/reducer/preferencesReducer.js +0 -272
- package/lib/component/utility/FormatNumber.d.ts +0 -6
- package/lib-cjs/component/1d/Resizable.js +0 -110
- package/lib-cjs/component/panels/extra/preferences/defaultValues.js +0 -61
- package/lib-cjs/component/reducer/preferencesReducer.js +0 -279
|
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
|
2
2
|
/** @jsxImportSource @emotion/react */
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { useRef, useCallback } from 'react';
|
|
5
|
+
import Button from '../elements/Button';
|
|
5
6
|
import CloseButton from '../elements/CloseButton';
|
|
6
7
|
import { loadFile, extractFileMetaFromPath } from '../utility/FileUtility';
|
|
7
8
|
const styles = css `
|
|
@@ -33,12 +34,13 @@ const styles = css `
|
|
|
33
34
|
.container {
|
|
34
35
|
display: flex;
|
|
35
36
|
margin: 30px 5px;
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
align-items: center;
|
|
38
|
+
height: 36px;
|
|
39
|
+
|
|
40
|
+
input {
|
|
38
41
|
padding: 5px;
|
|
39
42
|
border: 1px solid gray;
|
|
40
43
|
border-radius: 5px;
|
|
41
|
-
height: 36px;
|
|
42
44
|
margin: 2px;
|
|
43
45
|
}
|
|
44
46
|
input {
|
|
@@ -46,8 +48,7 @@ const styles = css `
|
|
|
46
48
|
}
|
|
47
49
|
button {
|
|
48
50
|
flex: 2;
|
|
49
|
-
|
|
50
|
-
background-color: gray;
|
|
51
|
+
height: 100%;
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
`;
|
|
@@ -73,5 +74,5 @@ export default function LoadJCAMPModal({ onLoadClick, onClose, startLoading, })
|
|
|
73
74
|
onLoadClick(null);
|
|
74
75
|
}
|
|
75
76
|
}, [onLoadClick, startLoading]);
|
|
76
|
-
return (_jsxs("div", { css: styles, children: [_jsxs("div", { className: "header handle", children: [_jsx("span", { children: "Load JCAMP Dialog" }), _jsx(CloseButton, { onClick: onClose })] }), _jsxs("div", { className: "container", children: [_jsx("input", { ref: pathReft, type: "text", placeholder: "Enter URL to JCAMP-DX file" }), _jsx(
|
|
77
|
+
return (_jsxs("div", { css: styles, children: [_jsxs("div", { className: "header handle", children: [_jsx("span", { children: "Load JCAMP Dialog" }), _jsx(CloseButton, { onClick: onClose })] }), _jsxs("div", { className: "container", children: [_jsx("input", { ref: pathReft, type: "text", placeholder: "Enter URL to JCAMP-DX file" }), _jsx(Button.Done, { onClick: loadJCAMPHandler, children: "Load" })] })] }));
|
|
77
78
|
}
|
|
@@ -28,34 +28,12 @@ export const ModalStyles = css `
|
|
|
28
28
|
overflow: auto;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
button:focus {
|
|
32
|
-
outline: none;
|
|
33
|
-
}
|
|
34
|
-
button:not([disabled]):hover {
|
|
35
|
-
color: black;
|
|
36
|
-
}
|
|
37
|
-
.btn:not([disabled]):hover {
|
|
38
|
-
background-color: #ffffff;
|
|
39
|
-
}
|
|
40
|
-
.btn:disabled {
|
|
41
|
-
opacity: 0.5;
|
|
42
|
-
}
|
|
43
|
-
.btn {
|
|
44
|
-
border: none;
|
|
45
|
-
padding: 0 15px;
|
|
46
|
-
background-color: #ffffff5e;
|
|
47
|
-
border-radius: 5px;
|
|
48
|
-
height: 25px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.primary {
|
|
52
|
-
background-color: #e2e2e2;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
31
|
.footer-container {
|
|
56
32
|
display: flex;
|
|
57
|
-
flex-direction: row
|
|
58
|
-
align-items:
|
|
33
|
+
flex-direction: row;
|
|
34
|
+
align-items: end;
|
|
35
|
+
justify-content: end;
|
|
36
|
+
|
|
59
37
|
background: rgb(242, 242, 242);
|
|
60
38
|
background: -moz-linear-gradient(
|
|
61
39
|
0deg,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import { Molecule } from '../../data/molecules/Molecule';
|
|
1
2
|
interface MoleculeStructureEditorModalProps {
|
|
2
3
|
onClose?: (element?: string) => void;
|
|
3
|
-
selectedMolecule
|
|
4
|
-
key: any;
|
|
5
|
-
molfile: string;
|
|
6
|
-
};
|
|
4
|
+
selectedMolecule?: Molecule;
|
|
7
5
|
}
|
|
8
6
|
declare function MoleculeStructureEditorModal(props: MoleculeStructureEditorModalProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function useMoleculeEditor(): (molecule?: Molecule) => void;
|
|
9
8
|
export default MoleculeStructureEditorModal;
|
|
@@ -3,6 +3,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
|
3
3
|
import { useState, useEffect, useCallback } from 'react';
|
|
4
4
|
import { StructureEditor } from 'react-ocl/full';
|
|
5
5
|
import { useDispatch } from '../context/DispatchContext';
|
|
6
|
+
import ActionButtons from '../elements/ActionButtons';
|
|
7
|
+
import { useModal } from '../elements/popup/Modal';
|
|
8
|
+
import { positions } from '../elements/popup/options';
|
|
6
9
|
import { SET_MOLECULE, ADD_MOLECULE } from '../reducer/types/Types';
|
|
7
10
|
import { ModalStyles } from './ModalStyle';
|
|
8
11
|
function MoleculeStructureEditorModal(props) {
|
|
@@ -26,7 +29,16 @@ function MoleculeStructureEditorModal(props) {
|
|
|
26
29
|
}, [onClose]);
|
|
27
30
|
const handleSave = useCallback(() => {
|
|
28
31
|
if (selectedMolecule) {
|
|
29
|
-
|
|
32
|
+
const { key, isFloat, label } = selectedMolecule;
|
|
33
|
+
dispatch({
|
|
34
|
+
type: SET_MOLECULE,
|
|
35
|
+
payload: {
|
|
36
|
+
molfile,
|
|
37
|
+
key,
|
|
38
|
+
isFloat,
|
|
39
|
+
label,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
30
42
|
onClose('replace');
|
|
31
43
|
}
|
|
32
44
|
else {
|
|
@@ -34,6 +46,16 @@ function MoleculeStructureEditorModal(props) {
|
|
|
34
46
|
onClose('new');
|
|
35
47
|
}
|
|
36
48
|
}, [dispatch, selectedMolecule, molfile, onClose]);
|
|
37
|
-
return (_jsxs("div", { css: ModalStyles, children: [_jsx(StructureEditor, { initialMolfile: selectedMolecule?.molfile, svgMenu: true, fragment: false, onChange: cb }),
|
|
49
|
+
return (_jsxs("div", { css: ModalStyles, children: [_jsx(StructureEditor, { initialMolfile: selectedMolecule?.molfile, svgMenu: true, fragment: false, onChange: cb }), _jsx("div", { className: "footer-container", children: _jsx(ActionButtons, { style: { flexDirection: 'row-reverse', margin: 0 }, onDone: handleSave, doneLabel: "Save", onCancel: handleClose }) })] }));
|
|
50
|
+
}
|
|
51
|
+
export function useMoleculeEditor() {
|
|
52
|
+
const modal = useModal();
|
|
53
|
+
return useCallback((molecule) => {
|
|
54
|
+
modal.show(_jsx(MoleculeStructureEditorModal, { selectedMolecule: molecule }), {
|
|
55
|
+
position: positions.TOP_CENTER,
|
|
56
|
+
width: 700,
|
|
57
|
+
height: 500,
|
|
58
|
+
});
|
|
59
|
+
}, [modal]);
|
|
38
60
|
}
|
|
39
61
|
export default MoleculeStructureEditorModal;
|
|
@@ -5,6 +5,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
|
5
5
|
import * as Filters from '../../../data/Filters';
|
|
6
6
|
import { REFERENCES } from '../../../data/constants/References';
|
|
7
7
|
import { useDispatch } from '../../context/DispatchContext';
|
|
8
|
+
import ActionButtons from '../../elements/ActionButtons';
|
|
8
9
|
import CloseButton from '../../elements/CloseButton';
|
|
9
10
|
import Select from '../../elements/Select';
|
|
10
11
|
import FormikForm from '../../elements/formik/FormikForm';
|
|
@@ -114,6 +115,6 @@ function MultipleSpectraFiltersModal({ onClose = () => null, nucleus = '', }) {
|
|
|
114
115
|
break;
|
|
115
116
|
}
|
|
116
117
|
}, [filter, submitHandler]);
|
|
117
|
-
return (_jsxs("div", { css: [ModalStyles, styles], children: [_jsxs("div", { className: "header handle", children: [_jsx("span", { children: "Apply filters" }), _jsx(CloseButton, { onClick: onClose, className: "close-bt" })] }), _jsxs("div", { className: "inner-content container", children: [_jsx("p", { className: "infoText", children: "This filter will use the exclusions zones defined in the first spectrum." }), _jsxs("div", { className: "row margin-10", children: [_jsx("span", { className: "custom-label", children: "Filter :" }), _jsx(Select, { data: List, style: { width: 275, height: 30, margin: 0 }, onChange: filterChangeHandler })] }), filterOptions] }),
|
|
118
|
+
return (_jsxs("div", { css: [ModalStyles, styles], children: [_jsxs("div", { className: "header handle", children: [_jsx("span", { children: "Apply filters" }), _jsx(CloseButton, { onClick: onClose, className: "close-bt" })] }), _jsxs("div", { className: "inner-content container", children: [_jsx("p", { className: "infoText", children: "This filter will use the exclusions zones defined in the first spectrum." }), _jsxs("div", { className: "row margin-10", children: [_jsx("span", { className: "custom-label", children: "Filter :" }), _jsx(Select, { data: List, style: { width: 275, height: 30, margin: 0 }, onChange: filterChangeHandler })] }), filterOptions] }), _jsx("div", { className: "footer-container", children: _jsx(ActionButtons, { style: { flexDirection: 'row-reverse', margin: 0 }, onDone: handleSave, doneLabel: "Save", onCancel: onClose, cancelLabel: "Close" }) })] }));
|
|
118
119
|
}
|
|
119
120
|
export default MultipleSpectraFiltersModal;
|
|
@@ -7,6 +7,7 @@ import { defaultPredictionOptions, FREQUENCIES, } from '../../data/PredictionMan
|
|
|
7
7
|
import generateNumbersPowerOfX from '../../data/utilities/generateNumbersPowerOfX';
|
|
8
8
|
import { useChartData } from '../context/ChartContext';
|
|
9
9
|
import { useDispatch } from '../context/DispatchContext';
|
|
10
|
+
import Button from '../elements/Button';
|
|
10
11
|
import CheckBox from '../elements/CheckBox';
|
|
11
12
|
import CloseButton from '../elements/CloseButton';
|
|
12
13
|
import IsotopesViewer from '../elements/IsotopesViewer';
|
|
@@ -60,12 +61,6 @@ const styles = css `
|
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
|
|
63
|
-
button[disabled],
|
|
64
|
-
button[disabled]:hover {
|
|
65
|
-
opacity: 0.5;
|
|
66
|
-
color: black;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
64
|
.middle-x {
|
|
70
65
|
padding: 0 10px;
|
|
71
66
|
}
|
|
@@ -161,6 +156,6 @@ function PredictSpectraModal({ onClose = () => null, molfile, }) {
|
|
|
161
156
|
const approveCheckHandler = useCallback((e) => {
|
|
162
157
|
setApproved(e.target.checked);
|
|
163
158
|
}, []);
|
|
164
|
-
return (_jsxs("div", { css: [ModalStyles, styles], children: [_jsxs("div", { className: "header handle", children: [_jsx("span", { children: "Prediction of NMR spectrum" }), _jsx(CloseButton, { onClick: onClose, className: "close-bt" })] }), _jsxs("div", { className: "inner-content", children: [_jsxs(FormikForm, { ref: refForm, initialValues: initValues, validationSchema: predictionFormValidation, onSubmit: submitHandler, children: [_jsx(FormikErrorsSummary, {}), _jsxs("div", { className: "row margin-10", children: [_jsx("span", { className: "custom-label", children: "Name :" }), _jsx(FormikInput, { name: "name", style: { input: { width: '200px', textAlign: 'left' } } })] }), _jsxs("div", { className: "row margin-10", children: [_jsx("span", { className: "custom-label", children: "Spectrometer Frequency :" }), _jsx(FormikSelect, { data: FREQUENCIES, style: { width: 290, height: 30, margin: 0 }, name: "frequency" })] }), _jsx("span", { className: "group-label", children: "1D Options " }), _jsxs("div", { className: "row margin-10 padding-h-10", children: [_jsx(IsotopesViewer, { value: "1H", className: "custom-label" }), _jsx(Label, { title: "From", children: _jsx(FormikInput, { name: "1d.1H.from", type: "number" }) }), _jsx(Label, { title: "To", style: { label: { padding: '0 10px' } }, children: _jsx(FormikInput, { name: "1d.1H.to", type: "number" }) })] }), _jsxs("div", { className: "row margin-10 padding-h-10", children: [_jsx(IsotopesViewer, { value: "13C", className: "custom-label" }), _jsx(Label, { title: "From", children: _jsx(FormikInput, { name: "1d.13C.from", type: "number" }) }), _jsx(Label, { title: "To", style: { label: { padding: '0 10px' } }, children: _jsx(FormikInput, { name: "1d.13C.to", type: "number" }) })] }), _jsxs("div", { className: "row margin-10 padding-h-10", children: [_jsx("span", { className: "custom-label", children: "Line Width : " }), _jsx(FormikInput, { name: "1d.lineWidth", type: "number", style: { input: { margin: 0 } } }), _jsx("span", { style: { paddingLeft: '0.4rem' }, children: " Hz " })] }), _jsxs("div", { className: "row margin-10 padding-h-10", children: [_jsx("span", { className: "custom-label", children: "Number of Points : " }), _jsx(FormikSelect, { data: NUMBER_OF_POINTS_1D, name: "1d.nbPoints", style: { width: 290, height: 30, margin: 0 } })] }), _jsx("span", { className: "group-label", children: "2D Options " }), _jsxs("div", { className: "row margin-10 padding-h-10", children: [_jsx("span", { className: "custom-label", children: "Number of Points : " }), _jsx(FormikSelect, { data: NUMBER_OF_POINTS_2D, name: "2d.nbPoints.x", style: { margin: 0, height: 30 } }), _jsx("span", { className: "middle-x", children: " X " }), _jsx(FormikSelect, { data: NUMBER_OF_POINTS_2D, name: "2d.nbPoints.y", style: { margin: 0, height: 30 } })] }), _jsx("div", { className: "row margin-10", children: _jsx("span", { className: "group-label", children: "Spectra " }) }), _jsxs("div", { className: "row margin-10 padding-h-10", style: { justifyContent: 'space-between' }, children: [_jsxs("div", { className: "row", children: [_jsx(FormikCheckBox, { name: "spectra.proton" }), _jsx(IsotopesViewer, { value: "1H", className: "nucleus-label" })] }), _jsxs("div", { className: "row", children: [_jsx(FormikCheckBox, { name: "spectra.carbon" }), _jsx(IsotopesViewer, { value: "13C", className: "nucleus-label" })] }), _jsxs("div", { className: "row", children: [_jsx(FormikCheckBox, { name: "spectra.cosy" }), _jsx(IsotopesViewer, { value: "COSY", className: "nucleus-label" })] }), _jsxs("div", { className: "row", children: [_jsx(FormikCheckBox, { name: "spectra.hsqc" }), _jsx(IsotopesViewer, { value: "HSQC", className: "nucleus-label" })] }), _jsxs("div", { className: "row", children: [_jsx(FormikCheckBox, { name: "spectra.hmbc" }), _jsx(IsotopesViewer, { value: "HMBC", className: "nucleus-label" })] })] })] }), _jsx("p", { className: "warning", children: "In order to predict spectra we are calling an external service and the chemical structure will leave your browser! You should never predict spectra for confidential molecules." }), _jsxs("div", { className: "warning-container", children: [_jsx(CheckBox, { onChange: approveCheckHandler, checked: isApproved }, String(isApproved)), _jsx("p", { children: "I confirm that the chemical structure is not confidential." })] })] }), _jsx("div", { className: "footer-container", children: _jsx(
|
|
159
|
+
return (_jsxs("div", { css: [ModalStyles, styles], children: [_jsxs("div", { className: "header handle", children: [_jsx("span", { children: "Prediction of NMR spectrum" }), _jsx(CloseButton, { onClick: onClose, className: "close-bt" })] }), _jsxs("div", { className: "inner-content", children: [_jsxs(FormikForm, { ref: refForm, initialValues: initValues, validationSchema: predictionFormValidation, onSubmit: submitHandler, children: [_jsx(FormikErrorsSummary, {}), _jsxs("div", { className: "row margin-10", children: [_jsx("span", { className: "custom-label", children: "Name :" }), _jsx(FormikInput, { name: "name", style: { input: { width: '200px', textAlign: 'left' } } })] }), _jsxs("div", { className: "row margin-10", children: [_jsx("span", { className: "custom-label", children: "Spectrometer Frequency :" }), _jsx(FormikSelect, { data: FREQUENCIES, style: { width: 290, height: 30, margin: 0 }, name: "frequency" })] }), _jsx("span", { className: "group-label", children: "1D Options " }), _jsxs("div", { className: "row margin-10 padding-h-10", children: [_jsx(IsotopesViewer, { value: "1H", className: "custom-label" }), _jsx(Label, { title: "From", children: _jsx(FormikInput, { name: "1d.1H.from", type: "number" }) }), _jsx(Label, { title: "To", style: { label: { padding: '0 10px' } }, children: _jsx(FormikInput, { name: "1d.1H.to", type: "number" }) })] }), _jsxs("div", { className: "row margin-10 padding-h-10", children: [_jsx(IsotopesViewer, { value: "13C", className: "custom-label" }), _jsx(Label, { title: "From", children: _jsx(FormikInput, { name: "1d.13C.from", type: "number" }) }), _jsx(Label, { title: "To", style: { label: { padding: '0 10px' } }, children: _jsx(FormikInput, { name: "1d.13C.to", type: "number" }) })] }), _jsxs("div", { className: "row margin-10 padding-h-10", children: [_jsx("span", { className: "custom-label", children: "Line Width : " }), _jsx(FormikInput, { name: "1d.lineWidth", type: "number", style: { input: { margin: 0 } } }), _jsx("span", { style: { paddingLeft: '0.4rem' }, children: " Hz " })] }), _jsxs("div", { className: "row margin-10 padding-h-10", children: [_jsx("span", { className: "custom-label", children: "Number of Points : " }), _jsx(FormikSelect, { data: NUMBER_OF_POINTS_1D, name: "1d.nbPoints", style: { width: 290, height: 30, margin: 0 } })] }), _jsx("span", { className: "group-label", children: "2D Options " }), _jsxs("div", { className: "row margin-10 padding-h-10", children: [_jsx("span", { className: "custom-label", children: "Number of Points : " }), _jsx(FormikSelect, { data: NUMBER_OF_POINTS_2D, name: "2d.nbPoints.x", style: { margin: 0, height: 30 } }), _jsx("span", { className: "middle-x", children: " X " }), _jsx(FormikSelect, { data: NUMBER_OF_POINTS_2D, name: "2d.nbPoints.y", style: { margin: 0, height: 30 } })] }), _jsx("div", { className: "row margin-10", children: _jsx("span", { className: "group-label", children: "Spectra " }) }), _jsxs("div", { className: "row margin-10 padding-h-10", style: { justifyContent: 'space-between' }, children: [_jsxs("div", { className: "row", children: [_jsx(FormikCheckBox, { name: "spectra.proton" }), _jsx(IsotopesViewer, { value: "1H", className: "nucleus-label" })] }), _jsxs("div", { className: "row", children: [_jsx(FormikCheckBox, { name: "spectra.carbon" }), _jsx(IsotopesViewer, { value: "13C", className: "nucleus-label" })] }), _jsxs("div", { className: "row", children: [_jsx(FormikCheckBox, { name: "spectra.cosy" }), _jsx(IsotopesViewer, { value: "COSY", className: "nucleus-label" })] }), _jsxs("div", { className: "row", children: [_jsx(FormikCheckBox, { name: "spectra.hsqc" }), _jsx(IsotopesViewer, { value: "HSQC", className: "nucleus-label" })] }), _jsxs("div", { className: "row", children: [_jsx(FormikCheckBox, { name: "spectra.hmbc" }), _jsx(IsotopesViewer, { value: "HMBC", className: "nucleus-label" })] })] })] }), _jsx("p", { className: "warning", children: "In order to predict spectra we are calling an external service and the chemical structure will leave your browser! You should never predict spectra for confidential molecules." }), _jsxs("div", { className: "warning-container", children: [_jsx(CheckBox, { onChange: approveCheckHandler, checked: isApproved }, String(isApproved)), _jsx("p", { children: "I confirm that the chemical structure is not confidential." })] })] }), _jsx("div", { className: "footer-container", children: _jsx(Button.Done, { onClick: handleSave, disabled: !isApproved, children: "Predict spectrum" }) })] }));
|
|
165
160
|
}
|
|
166
161
|
export default PredictSpectraModal;
|
|
@@ -4,6 +4,7 @@ import { css } from '@emotion/react';
|
|
|
4
4
|
import { Field } from 'formik';
|
|
5
5
|
import { useCallback, useRef } from 'react';
|
|
6
6
|
import { DataExportOptions } from '../../data/SpectraManager';
|
|
7
|
+
import ActionButtons from '../elements/ActionButtons';
|
|
7
8
|
import CloseButton from '../elements/CloseButton';
|
|
8
9
|
import FormikCheckBox from '../elements/formik/FormikCheckBox';
|
|
9
10
|
import FormikForm from '../elements/formik/FormikForm';
|
|
@@ -56,6 +57,6 @@ function SaveAsModal({ onClose, onSave, name }) {
|
|
|
56
57
|
}, [onClose, onSave]);
|
|
57
58
|
return (_jsxs("div", { css: [ModalStyles, styles], children: [_jsxs("div", { className: "header handle", children: [_jsx("span", { children: "Save as ... " }), _jsx(CloseButton, { onClick: onClose, className: "close-bt" })] }), _jsx("div", { className: "inner-content", children: _jsxs(FormikForm, { ref: refForm, initialValues: { ...INITIAL_VALUE, name }, onSubmit: submitHandler, children: [_jsxs("div", { className: "row margin-10", children: [_jsx("span", { className: "custom-label", children: "Name" }), _jsx(FormikInput, { name: "name", className: "name", style: {
|
|
58
59
|
inputWrapper: { width: '100%' },
|
|
59
|
-
} })] }), _jsxs("div", { className: "row margin-10", children: [_jsx("span", { className: "custom-label", children: "Compressed" }), _jsx(FormikCheckBox, { name: "compressed" })] }), _jsxs("div", { className: "row margin-10", children: [_jsx("span", { className: "custom-label", children: "Pretty Format" }), _jsx(FormikCheckBox, { name: "pretty" })] }), _jsxs("div", { className: "row margin-10", children: [_jsx("span", { className: "custom-label", children: " Include " }), _jsxs("div", { className: "data-export-group", children: [_jsxs("label", { children: [_jsx(Field, { type: "radio", name: "dataExportOption", value: DataExportOptions.ROW_DATA }), "Raw Data"] }), _jsxs("label", { children: [_jsx(Field, { type: "radio", name: "dataExportOption", value: DataExportOptions.DATA_SOURCE }), "Data Source"] })] })] })] }) }),
|
|
60
|
+
} })] }), _jsxs("div", { className: "row margin-10", children: [_jsx("span", { className: "custom-label", children: "Compressed" }), _jsx(FormikCheckBox, { name: "compressed" })] }), _jsxs("div", { className: "row margin-10", children: [_jsx("span", { className: "custom-label", children: "Pretty Format" }), _jsx(FormikCheckBox, { name: "pretty" })] }), _jsxs("div", { className: "row margin-10", children: [_jsx("span", { className: "custom-label", children: " Include " }), _jsxs("div", { className: "data-export-group", children: [_jsxs("label", { children: [_jsx(Field, { type: "radio", name: "dataExportOption", value: DataExportOptions.ROW_DATA }), "Raw Data"] }), _jsxs("label", { children: [_jsx(Field, { type: "radio", name: "dataExportOption", value: DataExportOptions.DATA_SOURCE }), "Data Source"] })] })] })] }) }), _jsx("div", { className: "footer-container", children: _jsx(ActionButtons, { style: { flexDirection: 'row-reverse', margin: 0 }, onDone: handleSave, doneLabel: "Save", onCancel: () => onClose?.() }) })] }));
|
|
60
61
|
}
|
|
61
62
|
export default SaveAsModal;
|
|
@@ -11,9 +11,10 @@ import CloseButton from '../../elements/CloseButton';
|
|
|
11
11
|
import SaveButton from '../../elements/SaveButton';
|
|
12
12
|
import FormikForm from '../../elements/formik/FormikForm';
|
|
13
13
|
import FormikOnChange from '../../elements/formik/FormikOnChange';
|
|
14
|
+
import { usePanelPreferences } from '../../hooks/usePanelPreferences';
|
|
14
15
|
import { hasCouplingConstant, translateMultiplet, } from '../../panels/extra/utilities/MultiplicityUtilities';
|
|
15
16
|
import { CHANGE_TEMP_RANGE } from '../../reducer/types/Types';
|
|
16
|
-
import {
|
|
17
|
+
import { formatNumber } from '../../utility/formatNumber';
|
|
17
18
|
import SignalsForm from './forms/components/SignalsForm';
|
|
18
19
|
import useRangeFormValidation from './forms/validation/EditRangeValidation';
|
|
19
20
|
const styles = css `
|
|
@@ -71,7 +72,7 @@ function EditRangeModal({ onSaveEditRangeModal = () => null, onCloseEditRangeMod
|
|
|
71
72
|
const formRef = useRef(null);
|
|
72
73
|
const { activeTab } = useChartData();
|
|
73
74
|
const dispatch = useDispatch();
|
|
74
|
-
const
|
|
75
|
+
const rangesPreferences = usePanelPreferences('ranges', activeTab);
|
|
75
76
|
const validation = useRangeFormValidation();
|
|
76
77
|
const handleOnZoom = useCallback(() => {
|
|
77
78
|
onZoomEditRangeModal(range);
|
|
@@ -124,7 +125,7 @@ function EditRangeModal({ onSaveEditRangeModal = () => null, onCloseEditRangeMod
|
|
|
124
125
|
};
|
|
125
126
|
if (hasCouplingConstant(_multiplicity)) {
|
|
126
127
|
coupling = { ...signal.js[counterJ] };
|
|
127
|
-
coupling.coupling = Number(
|
|
128
|
+
coupling.coupling = Number(formatNumber(coupling.coupling, rangesPreferences.coupling.format));
|
|
128
129
|
counterJ++;
|
|
129
130
|
}
|
|
130
131
|
coupling.multiplicity = translateMultiplet(coupling.multiplicity);
|
|
@@ -133,7 +134,7 @@ function EditRangeModal({ onSaveEditRangeModal = () => null, onCloseEditRangeMod
|
|
|
133
134
|
return { ...signal, js: couplings };
|
|
134
135
|
});
|
|
135
136
|
return { activeTab: '0', signals };
|
|
136
|
-
}, [
|
|
137
|
+
}, [range.signals, rangesPreferences.coupling.format]);
|
|
137
138
|
const changeHandler = useCallback((values) => {
|
|
138
139
|
const signals = getSignals(values.signals);
|
|
139
140
|
dispatch({
|
|
@@ -141,6 +142,6 @@ function EditRangeModal({ onSaveEditRangeModal = () => null, onCloseEditRangeMod
|
|
|
141
142
|
payload: { tempRange: Object.assign({}, range, { signals }) },
|
|
142
143
|
});
|
|
143
144
|
}, [dispatch, getSignals, range]);
|
|
144
|
-
return (_jsx("div", { css: styles, children: _jsxs(FormikForm, { ref: formRef, initialValues: data, validationSchema: validation, onSubmit: handleOnSave, children: [_jsxs("div", { className: "header handle", children: [_jsx(Button, { onClick: handleOnZoom, className: "zoom-button", children: _jsx(FaSearchPlus, { title: "Set to default view on range in spectrum" }) }), _jsx("span", { children: ` Range and Signal edition: ${
|
|
145
|
+
return (_jsx("div", { css: styles, children: _jsxs(FormikForm, { ref: formRef, initialValues: data, validationSchema: validation, onSubmit: handleOnSave, children: [_jsxs("div", { className: "header handle", children: [_jsx(Button, { onClick: handleOnZoom, className: "zoom-button", children: _jsx(FaSearchPlus, { title: "Set to default view on range in spectrum" }) }), _jsx("span", { children: ` Range and Signal edition: ${formatNumber(range.from, rangesPreferences.from.format)} ppm to ${formatNumber(range.to, rangesPreferences.to.format)} ppm` }), _jsx(SaveButton, { onClick: () => formRef.current.submitForm(), popupTitle: "Save and exit" }), _jsx(CloseButton, { onClick: handleOnClose })] }), _jsx(SignalsForm, { range: range, preferences: rangesPreferences }), _jsx(FormikOnChange, { onChange: changeHandler })] }) }));
|
|
145
146
|
}
|
|
146
147
|
export default EditRangeModal;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { WorkSpacePanelPreferences } from '../../../../workspaces/Workspace';
|
|
2
3
|
interface AddSignalFormTabProps {
|
|
3
4
|
onFocus: (element: any) => void;
|
|
4
5
|
onBlur?: () => void;
|
|
5
6
|
range: any;
|
|
7
|
+
preferences: WorkSpacePanelPreferences['ranges'];
|
|
6
8
|
}
|
|
7
9
|
declare const _default: import("react").ForwardRefExoticComponent<AddSignalFormTabProps & import("react").RefAttributes<unknown>>;
|
|
8
10
|
export default _default;
|
|
@@ -5,12 +5,11 @@ import { useFormikContext } from 'formik';
|
|
|
5
5
|
import { forwardRef, useCallback, useMemo } from 'react';
|
|
6
6
|
import { FaPlus } from 'react-icons/fa';
|
|
7
7
|
import * as Yup from 'yup';
|
|
8
|
-
import { useChartData } from '../../../../context/ChartContext';
|
|
9
8
|
import Button from '../../../../elements/Button';
|
|
10
9
|
import FormikForm from '../../../../elements/formik/FormikForm';
|
|
11
10
|
import FormikInput from '../../../../elements/formik/FormikInput';
|
|
12
11
|
import { translateMultiplet } from '../../../../panels/extra/utilities/MultiplicityUtilities';
|
|
13
|
-
import {
|
|
12
|
+
import { formatNumber } from '../../../../utility/formatNumber';
|
|
14
13
|
const styles = {
|
|
15
14
|
container: css `
|
|
16
15
|
text-align: center;
|
|
@@ -52,10 +51,8 @@ const styles = {
|
|
|
52
51
|
`,
|
|
53
52
|
};
|
|
54
53
|
// TODO: this seems to be a hacky use of ref.
|
|
55
|
-
function AddSignalFormTab({ onFocus, onBlur, range }, ref) {
|
|
54
|
+
function AddSignalFormTab({ onFocus, onBlur, range, preferences }, ref) {
|
|
56
55
|
const { values, setFieldValue } = useFormikContext();
|
|
57
|
-
const { activeTab } = useChartData();
|
|
58
|
-
const format = useFormatNumberByNucleus(activeTab);
|
|
59
56
|
const saveHandler = useCallback((val) => {
|
|
60
57
|
const newSignal = {
|
|
61
58
|
multiplicity: 'm',
|
|
@@ -91,6 +88,6 @@ function AddSignalFormTab({ onFocus, onBlur, range }, ref) {
|
|
|
91
88
|
width: '250px',
|
|
92
89
|
height: '30px',
|
|
93
90
|
},
|
|
94
|
-
}, checkErrorAfterInputTouched: false }) }), _jsxs("p", { css: styles.inputInfo, children: ["[
|
|
91
|
+
}, checkErrorAfterInputTouched: false }) }), _jsxs("p", { css: styles.inputInfo, children: ["[", `${formatNumber(range.from, preferences.from.format)} ppm - ${formatNumber(range.to, preferences.to.format)} ppm`, "]"] }), _jsx(Button, { css: styles.addSignalBtn, onClick: triggerSubmitHandler, children: _jsx(FaPlus, { title: "Add new signal" }) })] })] }) }));
|
|
95
92
|
}
|
|
96
93
|
export default forwardRef(AddSignalFormTab);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { WorkSpacePanelPreferences } from '../../../../workspaces/Workspace';
|
|
2
3
|
interface SignalsFormProps {
|
|
3
4
|
range: number;
|
|
5
|
+
preferences: WorkSpacePanelPreferences['ranges'];
|
|
4
6
|
}
|
|
5
|
-
declare function SignalsForm({ range }: SignalsFormProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function SignalsForm({ range, preferences }: SignalsFormProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
8
|
declare const _default: import("react").MemoExoticComponent<typeof SignalsForm>;
|
|
7
9
|
export default _default;
|
|
@@ -3,12 +3,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { useFormikContext } from 'formik';
|
|
5
5
|
import { useCallback, useMemo, memo, useEffect, useState, useRef } from 'react';
|
|
6
|
-
import { useChartData } from '../../../../context/ChartContext';
|
|
7
6
|
import Tab from '../../../../elements/Tab/Tab';
|
|
8
7
|
import Tabs from '../../../../elements/Tab/Tabs';
|
|
9
8
|
import useSpectrum from '../../../../hooks/useSpectrum';
|
|
10
9
|
import Events from '../../../../utility/Events';
|
|
11
|
-
import {
|
|
10
|
+
import { formatNumber } from '../../../../utility/formatNumber';
|
|
12
11
|
import AddSignalFormTab from './AddSignalFormTab';
|
|
13
12
|
import DeltaInput from './DeltaInput';
|
|
14
13
|
import SignalFormTab from './SignalFormTab';
|
|
@@ -38,13 +37,11 @@ const tabStyles = css `
|
|
|
38
37
|
list-style: none;
|
|
39
38
|
padding: 0.5rem 1.5rem;
|
|
40
39
|
`;
|
|
41
|
-
function SignalsForm({ range }) {
|
|
40
|
+
function SignalsForm({ range, preferences }) {
|
|
42
41
|
const newSignalFormRef = useRef();
|
|
43
42
|
const [activeField, setActiveField] = useState(null);
|
|
44
43
|
const { values, setFieldValue, errors, } = useFormikContext();
|
|
45
|
-
const { activeTab } = useChartData();
|
|
46
44
|
const { info } = useSpectrum({ info: {} });
|
|
47
|
-
const format = useFormatNumberByNucleus(activeTab);
|
|
48
45
|
useEffect(() => {
|
|
49
46
|
function handle(event) {
|
|
50
47
|
if (info?.originFrequency && activeField) {
|
|
@@ -57,7 +54,7 @@ function SignalsForm({ range }) {
|
|
|
57
54
|
setFieldValue(activeField, (event.range[1] - event.range[0]) / 2 + event.range[0]);
|
|
58
55
|
}
|
|
59
56
|
else {
|
|
60
|
-
const value = Number(
|
|
57
|
+
const value = Number(formatNumber(Math.abs(event.range[0] - event.range[1]) * info.originFrequency, preferences.deltaHz.format));
|
|
61
58
|
setFieldValue(activeField, value);
|
|
62
59
|
}
|
|
63
60
|
}
|
|
@@ -67,7 +64,13 @@ function SignalsForm({ range }) {
|
|
|
67
64
|
return () => {
|
|
68
65
|
Events.off('brushEnd', handle);
|
|
69
66
|
};
|
|
70
|
-
}, [
|
|
67
|
+
}, [
|
|
68
|
+
activeField,
|
|
69
|
+
setFieldValue,
|
|
70
|
+
values.activeTab,
|
|
71
|
+
info,
|
|
72
|
+
preferences?.deltaHz?.format,
|
|
73
|
+
]);
|
|
71
74
|
useEffect(() => {
|
|
72
75
|
function handle(event) {
|
|
73
76
|
if (activeField) {
|
|
@@ -109,9 +112,9 @@ function SignalsForm({ range }) {
|
|
|
109
112
|
// eslint-disable-next-line react/no-array-index-key
|
|
110
113
|
, { tabid: `${i}`, tabstyles: tabContainsErrors(i) ? tabStylesAddition : tabStyles, canDelete: true, render: () => (_jsx(DeltaInput, { signal: signal, index: i, onFocus: handleOnFocus })), children: _jsx(SignalFormTab, { onFocus: handleOnFocus }) }, `signalForm${i}`)))
|
|
111
114
|
: [];
|
|
112
|
-
const addSignalTab = (_jsx(Tab, { tablabel: "+", tabid: "addSignalTab", canDelete: false, className: "add-signal-tab", children: _jsx(AddSignalFormTab, { onFocus: handleOnFocus, range: range, ref: newSignalFormRef }) }, "addSignalTab"));
|
|
115
|
+
const addSignalTab = (_jsx(Tab, { tablabel: "+", tabid: "addSignalTab", canDelete: false, className: "add-signal-tab", children: _jsx(AddSignalFormTab, { onFocus: handleOnFocus, range: range, ref: newSignalFormRef, preferences: preferences }) }, "addSignalTab"));
|
|
113
116
|
return signalTabs.concat(addSignalTab);
|
|
114
|
-
}, [handleOnFocus, range, tabContainsErrors, values.signals]);
|
|
117
|
+
}, [handleOnFocus, preferences, range, tabContainsErrors, values.signals]);
|
|
115
118
|
const editSignalInfoText = (_jsx("p", { className: "infoText", children: "Focus on an input field and press Shift + Drag & Drop to draw a coupling constant in spectrum view." }));
|
|
116
119
|
const addSignalInfoText = (_jsx("p", { className: "infoText", children: "Focus on the input field and press Shift + Left mouse click to select new signal delta value in spectrum view." }));
|
|
117
120
|
return (_jsxs("div", { children: [_jsx("div", { css: textStyles, children: errors.signals &&
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NMRiumWorkspace } from '../../NMRium';
|
|
2
|
+
interface DatabasesTabContentProps {
|
|
3
|
+
currentWorkspace: NMRiumWorkspace;
|
|
4
|
+
}
|
|
5
|
+
declare function DatabasesTabContent({ currentWorkspace }: DatabasesTabContentProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default DatabasesTabContent;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
|
|
2
|
+
/** @jsxImportSource @emotion/react */
|
|
3
|
+
import { css } from '@emotion/react';
|
|
4
|
+
import { useFormikContext } from 'formik';
|
|
5
|
+
import lodashGet from 'lodash/get';
|
|
6
|
+
import { useCallback, useMemo } from 'react';
|
|
7
|
+
import { FaPlus, FaTimes } from 'react-icons/fa';
|
|
8
|
+
import Button from '../../elements/Button';
|
|
9
|
+
import FormikCheckBox from '../../elements/formik/FormikCheckBox';
|
|
10
|
+
import FormikInput from '../../elements/formik/FormikInput';
|
|
11
|
+
import Workspaces from '../../workspaces';
|
|
12
|
+
const style = {
|
|
13
|
+
addButton: css `
|
|
14
|
+
background-color: transparent;
|
|
15
|
+
border: 0;
|
|
16
|
+
outline: none;
|
|
17
|
+
margin-left: 5px;
|
|
18
|
+
svg {
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
fill: green;
|
|
21
|
+
}
|
|
22
|
+
`,
|
|
23
|
+
table: {
|
|
24
|
+
width: '100%',
|
|
25
|
+
},
|
|
26
|
+
th: {
|
|
27
|
+
fontSize: '12px',
|
|
28
|
+
},
|
|
29
|
+
input: {
|
|
30
|
+
input: { width: '100%' },
|
|
31
|
+
},
|
|
32
|
+
labelCol: {
|
|
33
|
+
width: '30%',
|
|
34
|
+
},
|
|
35
|
+
serialCol: {
|
|
36
|
+
width: '5%',
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
function DatabasesTabContent({ currentWorkspace }) {
|
|
40
|
+
const { values, setFieldValue } = useFormikContext();
|
|
41
|
+
const databases = useMemo(() => lodashGet(values, 'databases', []), [values]);
|
|
42
|
+
const deleteHandler = useCallback((index) => {
|
|
43
|
+
const _database = databases.slice();
|
|
44
|
+
_database.splice(index, 1);
|
|
45
|
+
setFieldValue('databases', _database);
|
|
46
|
+
}, [databases, setFieldValue]);
|
|
47
|
+
const addNewDatabaseHandler = useCallback(() => {
|
|
48
|
+
const newDatabase = {
|
|
49
|
+
label: '',
|
|
50
|
+
url: '',
|
|
51
|
+
enabled: true,
|
|
52
|
+
};
|
|
53
|
+
setFieldValue('databases', [...databases, newDatabase]);
|
|
54
|
+
}, [databases, setFieldValue]);
|
|
55
|
+
const resetDatabaseHandler = useCallback(() => {
|
|
56
|
+
const database = Workspaces?.[currentWorkspace]?.databases || Workspaces.default.databases;
|
|
57
|
+
setFieldValue('databases', database);
|
|
58
|
+
}, [currentWorkspace, setFieldValue]);
|
|
59
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "section-header", style: { display: 'flex' }, children: [_jsx("p", { style: { flex: 1 }, children: "Databases" }), _jsxs("div", { style: { display: 'flex', justifyContent: 'space-between' }, children: [_jsx(Button.Danger, { fill: "clear", size: "xSmall", onClick: resetDatabaseHandler, style: { margin: '0 5px' }, children: "Reset Databases" }), _jsx(Button.Done, { fill: "outline", size: "xSmall", onClick: addNewDatabaseHandler, children: "Add Database" })] })] }), _jsx("div", { children: _jsxs("table", { style: style.table, children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { style: style.th, children: "#" }), _jsx("th", { style: style.th, children: "Label " }), _jsx("th", { style: style.th, children: "URL" }), _jsx("th", { style: style.th, children: "Enabled" }), _jsx("th", {})] }) }), _jsx("tbody", { children: databases?.map((item, index) => {
|
|
60
|
+
const num = index + 1;
|
|
61
|
+
return (
|
|
62
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
63
|
+
_jsxs("tr", { style: { height: '33px' }, children: [_jsxs("td", { style: style.serialCol, children: [_jsx("span", { children: num }), ' '] }), _jsx("td", { style: style.labelCol, children: _jsx(FormikInput, { style: style.input, name: `databases.${index}.label`, checkErrorAfterInputTouched: false }) }), _jsx("td", { children: _jsx(FormikInput, { style: style.input, name: `databases.${index}.url`, checkErrorAfterInputTouched: false }) }), _jsx("td", { children: _jsx(FormikCheckBox, { style: {
|
|
64
|
+
container: {
|
|
65
|
+
display: 'block',
|
|
66
|
+
margin: '0 auto',
|
|
67
|
+
width: 'fit-content',
|
|
68
|
+
},
|
|
69
|
+
}, className: "checkbox-element", name: `databases.${index}.enabled` }) }), _jsx("td", { children: _jsxs("div", { style: {
|
|
70
|
+
display: 'flex',
|
|
71
|
+
height: '100%',
|
|
72
|
+
}, children: [_jsx(Button.Danger, { style: { fontSize: '14px' }, fill: "clear", onClick: () => deleteHandler(index), children: _jsx(FaTimes, {}) }), databases.length === index + 1 && (_jsx(Button.Done, { fill: "clear", style: { fontSize: '14px' }, onClick: addNewDatabaseHandler, children: _jsx(FaPlus, {}) }))] }) })] }, `${index}`));
|
|
73
|
+
}) })] }) })] }));
|
|
74
|
+
}
|
|
75
|
+
export default DatabasesTabContent;
|
|
@@ -9,7 +9,7 @@ const LIST = [
|
|
|
9
9
|
name: 'panels.spectraPanel',
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
|
-
label: 'Spectra information
|
|
12
|
+
label: 'Spectra information panel',
|
|
13
13
|
name: 'panels.informationPanel',
|
|
14
14
|
},
|
|
15
15
|
{
|
|
@@ -29,7 +29,7 @@ const LIST = [
|
|
|
29
29
|
name: 'panels.structuresPanel',
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
label: 'Filters
|
|
32
|
+
label: 'Filters panel',
|
|
33
33
|
name: 'panels.filtersPanel',
|
|
34
34
|
},
|
|
35
35
|
{
|
|
@@ -37,23 +37,27 @@ const LIST = [
|
|
|
37
37
|
name: 'panels.zonesPanel',
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
label: 'Assignment summary
|
|
40
|
+
label: 'Assignment summary panel',
|
|
41
41
|
name: 'panels.summaryPanel',
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
label: 'Multiple
|
|
44
|
+
label: 'Multiple spectra analysis panel',
|
|
45
45
|
name: 'panels.multipleSpectraAnalysisPanel',
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
label: '
|
|
48
|
+
label: 'Databases panel',
|
|
49
49
|
name: 'panels.databasePanel',
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
|
-
label: 'Prediction
|
|
52
|
+
label: 'Prediction panel',
|
|
53
53
|
name: 'panels.predictionPanel',
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
label: '
|
|
56
|
+
label: 'Automatic assignment panel',
|
|
57
|
+
name: 'panels.automaticAssignmentPanel',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: 'Experimental features',
|
|
57
61
|
name: 'general.experimentalFeatures',
|
|
58
62
|
hideOpenOption: true,
|
|
59
63
|
},
|
|
@@ -4,9 +4,9 @@ import { css } from '@emotion/react';
|
|
|
4
4
|
import { useFormikContext } from 'formik';
|
|
5
5
|
import lodashGet from 'lodash/get';
|
|
6
6
|
import { Fragment, useCallback, useMemo } from 'react';
|
|
7
|
-
import { FaPlus } from 'react-icons/fa';
|
|
7
|
+
import { FaPlus, FaTimes } from 'react-icons/fa';
|
|
8
8
|
import generateID from '../../../data/utilities/generateID';
|
|
9
|
-
import
|
|
9
|
+
import Button from '../../elements/Button';
|
|
10
10
|
import FormikInput from '../../elements/formik/FormikInput';
|
|
11
11
|
const styles = css `
|
|
12
12
|
.counter-col {
|
|
@@ -18,7 +18,7 @@ const styles = css `
|
|
|
18
18
|
width: 80px;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.
|
|
21
|
+
.input {
|
|
22
22
|
width: 100% !important;
|
|
23
23
|
margin: 0px !important;
|
|
24
24
|
}
|
|
@@ -47,24 +47,30 @@ const styles = css `
|
|
|
47
47
|
`;
|
|
48
48
|
function FormattingTabContent() {
|
|
49
49
|
const { values, setFieldValue } = useFormikContext();
|
|
50
|
-
const
|
|
51
|
-
const deleteHandler = useCallback((
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
const nuclei = useMemo(() => lodashGet(values, 'formatting.nuclei', {}), [values]);
|
|
51
|
+
const deleteHandler = useCallback((key) => {
|
|
52
|
+
let _nuclei = {};
|
|
53
|
+
for (const nucleus in nuclei) {
|
|
54
|
+
if (nucleus !== key) {
|
|
55
|
+
_nuclei[nucleus] = nuclei[nucleus];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
setFieldValue('formatting.nuclei', _nuclei);
|
|
59
|
+
}, [nuclei, setFieldValue]);
|
|
55
60
|
const addNewNucleusFormatHandler = useCallback(() => {
|
|
56
61
|
const newFormat = {
|
|
57
|
-
key: generateID(),
|
|
58
62
|
name: '',
|
|
59
63
|
ppm: '0.00',
|
|
60
64
|
hz: '0.00',
|
|
61
65
|
};
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
const key = generateID();
|
|
67
|
+
const newNuclei = { ...nuclei, [key]: newFormat };
|
|
68
|
+
setFieldValue('formatting.nuclei', newNuclei);
|
|
69
|
+
}, [nuclei, setFieldValue]);
|
|
70
|
+
const nucleiList = Object.keys(nuclei);
|
|
71
|
+
return (_jsxs(Fragment, { children: [_jsx("p", { className: "section-header", children: "Number formatting for crosshair and info line" }), _jsx("div", { css: styles, children: _jsxs("table", { children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "counter-col", children: "#" }), _jsx("th", { className: "nucleus-label-col", children: "Nucleus " }), _jsx("th", { className: "nucleus-format-input-col", children: "\u03B4 (ppm)" }), _jsx("th", { className: "nucleus-format-input-col", children: "Coupling (Hz)" }), _jsx("th", { className: "nucleus-format-input-col" })] }) }), _jsx("tbody", { children: nucleiList?.map((key, index) => {
|
|
66
72
|
const num = index + 1;
|
|
67
|
-
return (_jsxs("tr", { children: [_jsxs("td", { className: "counter-col", children: [_jsxs("span", { children: [num, " - "] }), ' '] }), _jsx("td", { className: "nucleus-label-col", children: _jsx(FormikInput, { name: `formatting.
|
|
73
|
+
return (_jsxs("tr", { children: [_jsxs("td", { className: "counter-col", children: [_jsxs("span", { children: [num, " - "] }), ' '] }), _jsx("td", { className: "nucleus-label-col", children: _jsx(FormikInput, { name: `formatting.nuclei.${key}.name`, className: "input", checkErrorAfterInputTouched: false }) }), _jsx("td", { className: "nucleus-format-input-col", children: _jsx(FormikInput, { name: `formatting.nuclei.${key}.ppm`, className: "input" }) }), _jsx("td", { className: "nucleus-format-input-col", children: _jsx(FormikInput, { name: `formatting.nuclei.${key}.hz`, className: "input" }) }), _jsxs("td", { className: "operation-container", children: [_jsx(Button.Danger, { style: { fontSize: '14px' }, fill: "clear", onClick: () => deleteHandler(key), children: _jsx(FaTimes, {}) }), nucleiList.length === index + 1 && (_jsx(Button.Done, { fill: "clear", style: { fontSize: '14px' }, onClick: addNewNucleusFormatHandler, children: _jsx(FaPlus, {}) }))] })] }, `${key}`));
|
|
68
74
|
}) })] }) })] }));
|
|
69
75
|
}
|
|
70
76
|
export default FormattingTabContent;
|