nmrium 0.35.1 → 0.37.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/ApodizationLine.d.ts +1 -2
- package/lib/component/1d/Chart1D.d.ts +1 -2
- package/lib/component/1d/ExclusionZonesAnnotations.d.ts +1 -2
- package/lib/component/1d/Line.d.ts +1 -1
- package/lib/component/1d/LinesSeries.d.ts +1 -2
- package/lib/component/1d/SpectraLegends.d.ts +1 -2
- package/lib/component/1d/Viewer1D.d.ts +1 -1
- package/lib/component/1d/database/DatabaseElements.d.ts +1 -2
- package/lib/component/1d/database/DatabaseSpectrum.d.ts +1 -2
- package/lib/component/1d/database/ResurrectedDatabaseRanges.d.ts +1 -2
- package/lib/component/1d/integral/Integral.d.ts +1 -2
- package/lib/component/1d/integral/IntegralIndicator.d.ts +1 -2
- package/lib/component/1d/integral/IntegralsSeries.d.ts +1 -2
- package/lib/component/1d/jCouplingGraph/JGraph.d.ts +1 -2
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.d.ts +1 -2
- package/lib/component/1d/jCouplingGraph/JsCoupling.d.ts +1 -2
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.d.ts +1 -2
- package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts +1 -2
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.d.ts +1 -2
- package/lib/component/1d/multiplicityTree/LevelNode.d.ts +1 -2
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +2 -1
- package/lib/component/1d/multiplicityTree/StringNode.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/TreeNodes.d.ts +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.d.ts +1 -2
- package/lib/component/1d/peaks/PeaksShapes.d.ts +1 -2
- package/lib/component/1d/ranges/AssignmentActionsButtons.d.ts +1 -2
- package/lib/component/1d/ranges/RangeIntegral.d.ts +1 -2
- package/lib/component/1d/ranges/Ranges.d.ts +1 -2
- package/lib/component/1d/tool/PeakPointer.d.ts +1 -2
- package/lib/component/1d/tool/VerticalIndicator.d.ts +1 -2
- package/lib/component/1d/tool/XLabelPointer.d.ts +1 -2
- package/lib/component/1d-2d/components/FloatMoleculeStructures/ActionsButton.d.ts +1 -2
- package/lib/component/1d-2d/components/FloatMoleculeStructures/index.d.ts +2 -3
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts +1 -2
- package/lib/component/1d-2d/tools/BrushX.d.ts +1 -2
- package/lib/component/1d-2d/tools/BrushXY.d.ts +1 -2
- package/lib/component/1d-2d/tools/CrossLinePointer.d.ts +1 -2
- package/lib/component/2d/1d-tracer/HorizontalSliceChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.d.ts +1 -1
- package/lib/component/2d/Chart2D.d.ts +1 -2
- package/lib/component/2d/SlicingView.d.ts +1 -2
- package/lib/component/2d/Viewer2D.d.ts +1 -1
- package/lib/component/2d/fid/FidCanvas.d.ts +1 -2
- package/lib/component/2d/fid/FidContainer.d.ts +1 -2
- package/lib/component/2d/ft/Contours.d.ts +1 -2
- package/lib/component/2d/ft/Contours.js +0 -6
- package/lib/component/2d/ft/FTContainer.d.ts +1 -2
- package/lib/component/2d/tools/XYLabelPointer.d.ts +1 -2
- package/lib/component/2d/zones/Zones.d.ts +1 -2
- package/lib/component/ErrorOverlay.d.ts +1 -2
- package/lib/component/EventsTrackers/BrushTracker.d.ts +1 -1
- package/lib/component/EventsTrackers/MouseTracker.d.ts +1 -1
- package/lib/component/NMRium.d.ts +2 -0
- package/lib/component/NMRium.js +7 -8
- package/lib/component/SplitPaneWrapper.d.ts +1 -2
- package/lib/component/assignment/index.d.ts +1 -2
- package/lib/component/context/LoggerContext.d.ts +1 -1
- package/lib/component/elements/ActionButtons.d.ts +1 -1
- package/lib/component/elements/ButtonToolTip.d.ts +1 -1
- package/lib/component/elements/CheckBoxCell.d.ts +1 -2
- package/lib/component/elements/CloseButton.d.ts +1 -1
- package/lib/component/elements/ColumnWrapper.d.ts +1 -1
- package/lib/component/elements/DeleteButton.d.ts +1 -2
- package/lib/component/elements/GroupPane.d.ts +1 -1
- package/lib/component/elements/IsotopesViewer.d.ts +1 -1
- package/lib/component/elements/Logo.d.ts +1 -2
- package/lib/component/elements/Message.d.ts +1 -1
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts +1 -2
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.d.ts +1 -1
- package/lib/component/elements/RemoveAssignmentsButton.d.ts +4 -0
- package/lib/component/{panels/RangesPanel/TableColumns → elements}/RemoveAssignmentsButton.js +14 -1
- package/lib/component/elements/SVGGroup.d.ts +1 -1
- package/lib/component/elements/Table/Table.d.ts +1 -1
- package/lib/component/elements/Table/TableBody.d.ts +1 -1
- package/lib/component/elements/Table/TableCell.d.ts +1 -1
- package/lib/component/elements/Table/TableHead.d.ts +1 -1
- package/lib/component/elements/Table/TableRow.d.ts +1 -1
- package/lib/component/elements/ToolTip/ToolTip.d.ts +1 -1
- package/lib/component/elements/accordion/Accordion.d.ts +1 -1
- package/lib/component/elements/accordion/AccordionItem.d.ts +1 -1
- package/lib/component/elements/draggable/SVGDraggable.d.ts +1 -1
- package/lib/component/elements/formik/ErrorMessage.d.ts +1 -1
- package/lib/component/elements/formik/FormikCheckBox.d.ts +1 -1
- package/lib/component/elements/formik/FormikColorInput.d.ts +1 -1
- package/lib/component/elements/formik/FormikColorPicker.d.ts +1 -1
- package/lib/component/elements/formik/FormikColumnFormatField.d.ts +1 -1
- package/lib/component/elements/formik/FormikErrorsSummary.d.ts +1 -1
- package/lib/component/elements/formik/FormikInput.d.ts +1 -2
- package/lib/component/elements/formik/FormikNumberInput.d.ts +1 -2
- package/lib/component/elements/formik/FormikSelect.d.ts +1 -2
- package/lib/component/elements/formik/FormikSlider.d.ts +1 -2
- package/lib/component/elements/formik/FormikTextarea.d.ts +1 -1
- package/lib/component/elements/formik/Input.d.ts +1 -2
- package/lib/component/elements/linearAxis/LinearVerticalAxis.d.ts +1 -2
- package/lib/component/elements/popup/Alert/Provider.d.ts +1 -1
- package/lib/component/elements/popup/Modal/Modal.d.ts +1 -1
- package/lib/component/elements/popup/Transition.d.ts +1 -1
- package/lib/component/elements/popup/Wrapper.d.ts +1 -2
- package/lib/component/elements/resizer/Resizer.d.ts +1 -1
- package/lib/component/elements/toggle/ToggleButton.d.ts +1 -1
- package/lib/component/elements/toggle/ToggleButtonGroup.d.ts +1 -1
- package/lib/component/header/ApodizationOptionsPanel.d.ts +1 -2
- package/lib/component/header/AutoPeakPickingOptionPanel.d.ts +1 -1
- package/lib/component/header/BaseLineCorrectionPanel.d.ts +1 -2
- package/lib/component/header/Header.js +1 -1
- package/lib/component/header/HeaderContainer.d.ts +1 -1
- package/lib/component/header/LogsHistory.d.ts +1 -2
- package/lib/component/header/PhaseCorrectionPanel.d.ts +1 -2
- package/lib/component/header/RangesPickingOptionPanel.d.ts +1 -2
- package/lib/component/header/ZeroFillingOptionsPanel.d.ts +1 -2
- package/lib/component/header/Zones2DOptionPanel.d.ts +1 -2
- package/lib/component/highlight/index.d.ts +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts +1 -2
- package/lib/component/loader/NoData.d.ts +1 -1
- package/lib/component/loader/Spinner.d.ts +1 -1
- package/lib/component/loader/SpinnerContext.d.ts +1 -1
- package/lib/component/modal/AboutPredictionModal.d.ts +2 -0
- package/lib/component/modal/AboutPredictionModal.js +49 -0
- package/lib/component/modal/ExportAsJcampModal.d.ts +1 -2
- package/lib/component/modal/MultipletAnalysisModal.js +6 -1
- package/lib/component/modal/editRange/EditRangeModal.js +3 -2
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +1 -1
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +2 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts +1 -2
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +1 -1
- package/lib/component/modal/editRange/forms/components/SignalFormInfo.d.ts +1 -2
- package/lib/component/modal/editRange/forms/components/SignalFormTab.d.ts +1 -1
- package/lib/component/modal/editZone/SignalFormTab.d.ts +1 -2
- package/lib/component/modal/setting/WorkspaceItem.d.ts +1 -2
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts +1 -2
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.d.ts +1 -2
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.d.ts +1 -2
- package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.d.ts +1 -2
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.d.ts +1 -2
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts +1 -2
- package/lib/component/modal/setting/settings-tabs/ToolsTabContent.d.ts +1 -2
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts +1 -1
- package/lib/component/panels/InformationPanel.d.ts +1 -2
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +17 -13
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +8 -5
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.d.ts +1 -2
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +1 -0
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +3 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.d.ts +1 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisCell.d.ts +1 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.d.ts +1 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.d.ts +1 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.d.ts +1 -2
- package/lib/component/panels/PanelNoData.d.ts +1 -2
- package/lib/component/panels/Panels.d.ts +1 -2
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +0 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +0 -11
- package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.d.ts +1 -2
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.d.ts +1 -2
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -3
- package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.d.ts +1 -2
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.d.ts +1 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +2 -3
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.d.ts +1 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.d.ts +1 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.d.ts +1 -2
- package/lib/component/panels/SpectrumsPanel/SpectraPreferences.js +2 -2
- package/lib/component/panels/SpectrumsPanel/SpectraTable.d.ts +1 -2
- package/lib/component/panels/SpectrumsPanel/SpectrumListPanel.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.d.ts +1 -2
- package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.d.ts +1 -2
- package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/SpectrumName.d.ts +1 -2
- package/lib/component/panels/SpectrumsPanel/base/setting/PlotChart.d.ts +1 -2
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.d.ts +1 -2
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts +1 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +1 -2
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.d.ts +3 -12
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts +2 -4
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +12 -16
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.d.ts +1 -6
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.d.ts +1 -2
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts +2 -3
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +27 -19
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts +1 -6
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +2 -2
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +2 -22
- package/lib/component/panels/extra/placeholder/NoTableData.d.ts +1 -2
- package/lib/component/panels/extra/preferences/NucleusGroup.d.ts +1 -1
- package/lib/component/panels/extra/preferences/NucleusPreferences.d.ts +1 -2
- package/lib/component/panels/extra/preferences/PreferencesContainer.d.ts +1 -1
- package/lib/component/panels/extra/preferences/PreferencesGroup.d.ts +1 -1
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts +2 -5
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.js +3 -29
- package/lib/component/panels/filtersPanel/FiltersTable.d.ts +1 -2
- package/lib/component/panels/header/SpectraAutomaticPickingButton.d.ts +1 -2
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts +1 -2
- package/lib/component/panels/predictionPanel/PredictionPanel.js +6 -1
- package/lib/component/reducer/actions/LoadActions.js +14 -6
- package/lib/component/reducer/actions/MoleculeActions.js +26 -2
- package/lib/component/reducer/actions/PreferencesActions.js +17 -4
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -0
- package/lib/component/toolbar/BasicToolBar.d.ts +1 -2
- package/lib/component/toolbar/FunctionToolBar.d.ts +1 -2
- package/lib/component/toolbar/HistoryToolBar.d.ts +1 -1
- package/lib/component/toolbar/ToolBar.d.ts +1 -2
- package/lib/component/workspaces/Workspace.d.ts +2 -1
- package/lib/component/workspaces/exercise.js +31 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib/data/constants/Multiplets.js +6 -13
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignal.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignal.js +41 -18
- package/lib/data/data1d/filter1d/fft.js +5 -7
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +2 -2
- package/lib/data/data2d/Processing2D.d.ts +3 -3
- package/lib/data/data2d/Spectrum2D/contours.d.ts +1 -4
- package/lib/data/data2d/Spectrum2D/contours.js +0 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +1 -2
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +12 -0
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +1 -0
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +9 -4
- package/lib/data/utilities/ZoneUtilities.js +0 -1
- package/lib/types/NMRiumGeneralPreferences.d.ts +1 -0
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +2 -1
- package/lib-cjs/component/2d/ft/Contours.js +0 -6
- package/lib-cjs/component/NMRium.js +4 -5
- package/lib-cjs/component/{panels/RangesPanel/TableColumns → elements}/RemoveAssignmentsButton.js +15 -2
- package/lib-cjs/component/header/Header.js +1 -1
- package/lib-cjs/component/modal/AboutPredictionModal.js +54 -0
- package/lib-cjs/component/modal/MultipletAnalysisModal.js +6 -1
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +5 -4
- package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +2 -2
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +2 -1
- package/lib-cjs/component/modal/editRange/forms/components/DeltaInput.js +2 -2
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +17 -13
- package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +7 -4
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +3 -2
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +0 -12
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -3
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +2 -3
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPreferences.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +12 -19
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +27 -22
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/ZonesTableRow.js +1 -21
- package/lib-cjs/component/panels/extra/utilities/MultiplicityUtilities.js +5 -34
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +6 -1
- package/lib-cjs/component/reducer/actions/LoadActions.js +14 -6
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +25 -1
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +17 -4
- package/lib-cjs/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -0
- package/lib-cjs/component/workspaces/exercise.js +31 -0
- package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib-cjs/data/constants/Multiplets.js +6 -13
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectSignal.js +40 -17
- package/lib-cjs/data/data1d/filter1d/fft.js +5 -7
- package/lib-cjs/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +2 -2
- package/lib-cjs/data/data2d/Spectrum2D/contours.js +0 -1
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +1 -2
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZonesManual.js +12 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/getDetectionZones.js +9 -4
- package/lib-cjs/data/utilities/ZoneUtilities.js +0 -1
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +33 -33
- package/lib/component/panels/RangesPanel/TableColumns/RemoveAssignmentsButton.d.ts +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { translateMultiplet } from 'nmr-processing';
|
|
2
3
|
import FormikInput from '../../../../elements/formik/FormikInput';
|
|
3
|
-
import { translateMultiplet } from '../../../../panels/extra/utilities/MultiplicityUtilities';
|
|
4
4
|
const style = {
|
|
5
5
|
input: {
|
|
6
6
|
width: '50px',
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function SignalFormInfo(): JSX.Element;
|
|
1
|
+
export declare function SignalFormInfo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,6 +3,6 @@ interface SignalFormTabProps {
|
|
|
3
3
|
onFocus: (element: any) => void;
|
|
4
4
|
onBlur?: () => void;
|
|
5
5
|
}
|
|
6
|
-
declare function SignalFormTab({ onFocus, onBlur }: SignalFormTabProps): JSX.Element;
|
|
6
|
+
declare function SignalFormTab({ onFocus, onBlur }: SignalFormTabProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare const _default: import("react").MemoExoticComponent<typeof SignalFormTab>;
|
|
8
8
|
export default _default;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface SignalFormTabProps {
|
|
3
2
|
signalIndex: number;
|
|
4
3
|
}
|
|
5
|
-
declare function SignalFormTab({ signalIndex }: SignalFormTabProps): JSX.Element;
|
|
4
|
+
declare function SignalFormTab({ signalIndex }: SignalFormTabProps): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default SignalFormTab;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface WorkspaceItemProps {
|
|
3
2
|
item: any;
|
|
4
3
|
onSave?: (name: string) => void;
|
|
5
4
|
onDelete?: (key: string) => void;
|
|
6
5
|
}
|
|
7
|
-
declare function WorkspaceItem({ item, onSave, onDelete }: WorkspaceItemProps): JSX.Element;
|
|
6
|
+
declare function WorkspaceItem({ item, onSave, onDelete }: WorkspaceItemProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default WorkspaceItem;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { NMRiumWorkspace } from '../../../NMRium';
|
|
3
2
|
import { CustomWorkspaces } from '../../../workspaces/Workspace';
|
|
4
3
|
interface DatabasesTabContentProps {
|
|
5
4
|
currentWorkspace: NMRiumWorkspace;
|
|
6
5
|
originalWorkspaces: CustomWorkspaces;
|
|
7
6
|
}
|
|
8
|
-
declare function DatabasesTabContent({ currentWorkspace, originalWorkspaces, }: DatabasesTabContentProps): JSX.Element;
|
|
7
|
+
declare function DatabasesTabContent({ currentWorkspace, originalWorkspaces, }: DatabasesTabContentProps): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export default DatabasesTabContent;
|
|
@@ -3,6 +3,6 @@ import { AutoAssignmentsData } from './useAutoAssignments';
|
|
|
3
3
|
interface AutomaticAssignmentTableProps {
|
|
4
4
|
data: AutoAssignmentsData[];
|
|
5
5
|
}
|
|
6
|
-
declare function AutomaticAssignmentTable({ data }: AutomaticAssignmentTableProps): JSX.Element;
|
|
6
|
+
declare function AutomaticAssignmentTable({ data }: AutomaticAssignmentTableProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare const _default: import("react").MemoExoticComponent<typeof AutomaticAssignmentTable>;
|
|
8
8
|
export default _default;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function InformationPanel(): JSX.Element;
|
|
1
|
+
export default function InformationPanel(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,6 @@ import { IntegralPanelInnerProps } from './IntegralPanel';
|
|
|
4
4
|
interface IntegralTableProps extends Pick<IntegralPanelInnerProps, 'activeTab'> {
|
|
5
5
|
data: Array<Integral>;
|
|
6
6
|
}
|
|
7
|
-
declare function IntegralTable({ activeTab, data }: IntegralTableProps): JSX.Element;
|
|
7
|
+
declare function IntegralTable({ activeTab, data }: IntegralTableProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare const _default: import("react").MemoExoticComponent<typeof IntegralTable>;
|
|
9
9
|
export default _default;
|
|
@@ -37,37 +37,27 @@ function IntegralTable({ activeTab, data }) {
|
|
|
37
37
|
index: 1,
|
|
38
38
|
Header: '#',
|
|
39
39
|
accessor: (_, index) => index + 1,
|
|
40
|
-
width:
|
|
40
|
+
style: { width: '30px', maxWidth: '30px' },
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
index: 2,
|
|
44
44
|
Header: 'From',
|
|
45
45
|
sortType: 'basic',
|
|
46
|
-
resizable: true,
|
|
47
46
|
accessor: (row) => row.from.toFixed(2),
|
|
48
47
|
},
|
|
49
48
|
{
|
|
50
49
|
index: 3,
|
|
51
50
|
Header: 'To',
|
|
52
51
|
sortType: 'basic',
|
|
53
|
-
resizable: true,
|
|
54
52
|
accessor: (row) => row.to.toFixed(2),
|
|
55
53
|
},
|
|
56
|
-
{
|
|
57
|
-
index: 6,
|
|
58
|
-
Header: 'Kind',
|
|
59
|
-
sortType: 'basic',
|
|
60
|
-
resizable: true,
|
|
61
|
-
accessor: 'kind',
|
|
62
|
-
Cell: ({ row }) => (_jsx(Select, { onChange: (value) => changeIntegralDataHandler(value, row), items: SignalKinds, style: selectStyle, defaultValue: row.original.kind })),
|
|
63
|
-
},
|
|
64
54
|
{
|
|
65
55
|
index: 7,
|
|
66
56
|
style: { width: '1%', maxWidth: '24px', minWidth: '24px' },
|
|
67
57
|
id: 'delete-button',
|
|
68
58
|
Cell: ({ row }) => (_jsx("button", { type: "button", className: "delete-button", onClick: (e) => deleteIntegralHandler(e, row), children: _jsx(FaRegTrashAlt, {}) })),
|
|
69
59
|
},
|
|
70
|
-
], [
|
|
60
|
+
], [deleteIntegralHandler]);
|
|
71
61
|
const saveRelativeHandler = useCallback((event, row) => {
|
|
72
62
|
const data = { value: event.target.value, id: row.id };
|
|
73
63
|
dispatch({
|
|
@@ -103,7 +93,21 @@ function IntegralTable({ activeTab, data }) {
|
|
|
103
93
|
return (_jsx(EditableColumn, { value: integral, onSave: (event) => saveRelativeHandler(event, row.original), type: "number" }));
|
|
104
94
|
},
|
|
105
95
|
},
|
|
106
|
-
|
|
96
|
+
{
|
|
97
|
+
index: 6,
|
|
98
|
+
Header: 'Kind',
|
|
99
|
+
sortType: 'basic',
|
|
100
|
+
resizable: true,
|
|
101
|
+
accessor: 'kind',
|
|
102
|
+
showWhen: 'showKind',
|
|
103
|
+
Cell: ({ row }) => (_jsx(Select, { onChange: (value) => changeIntegralDataHandler(value, row), items: SignalKinds, style: selectStyle, defaultValue: row.original.kind })),
|
|
104
|
+
},
|
|
105
|
+
], [
|
|
106
|
+
activeTab,
|
|
107
|
+
changeIntegralDataHandler,
|
|
108
|
+
integralsPreferences,
|
|
109
|
+
saveRelativeHandler,
|
|
110
|
+
]);
|
|
107
111
|
const tableColumns = useMemo(() => {
|
|
108
112
|
let columns = [...initialColumns];
|
|
109
113
|
for (const col of COLUMNS) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Formik } from 'formik';
|
|
3
|
-
import {
|
|
3
|
+
import { useCallback, useImperativeHandle, useRef, memo, forwardRef, useMemo, } from 'react';
|
|
4
4
|
import { usePreferences } from '../../context/PreferencesContext';
|
|
5
5
|
import Label from '../../elements/Label';
|
|
6
6
|
import FormikColorInput from '../../elements/formik/FormikColorInput';
|
|
@@ -23,6 +23,12 @@ const formatFields = [
|
|
|
23
23
|
checkControllerName: 'relative.show',
|
|
24
24
|
formatControllerName: 'relative.format',
|
|
25
25
|
},
|
|
26
|
+
{
|
|
27
|
+
id: 3,
|
|
28
|
+
label: 'Kind :',
|
|
29
|
+
checkControllerName: 'showKind',
|
|
30
|
+
hideFormatField: true,
|
|
31
|
+
},
|
|
26
32
|
];
|
|
27
33
|
function IntegralsPreferences(props, ref) {
|
|
28
34
|
const preferences = usePreferences();
|
|
@@ -30,9 +36,6 @@ function IntegralsPreferences(props, ref) {
|
|
|
30
36
|
const nuclei = useMemo(() => getUniqueNuclei(nucleus), [nucleus]);
|
|
31
37
|
const preferencesByNuclei = usePanelPreferencesByNuclei('integrals', nuclei);
|
|
32
38
|
const formRef = useRef();
|
|
33
|
-
useEffect(() => {
|
|
34
|
-
formRef.current.setValues(preferencesByNuclei);
|
|
35
|
-
}, [preferencesByNuclei]);
|
|
36
39
|
const saveHandler = useCallback((values) => {
|
|
37
40
|
preferences.dispatch({
|
|
38
41
|
type: 'SET_PANELS_PREFERENCES',
|
|
@@ -44,7 +47,7 @@ function IntegralsPreferences(props, ref) {
|
|
|
44
47
|
formRef.current.submitForm();
|
|
45
48
|
},
|
|
46
49
|
}));
|
|
47
|
-
return (_jsx(PreferencesContainer, { children: _jsx(Formik, { initialValues:
|
|
50
|
+
return (_jsx(PreferencesContainer, { children: _jsx(Formik, { initialValues: preferencesByNuclei, onSubmit: saveHandler, innerRef: formRef, children: _jsx(_Fragment, { children: nuclei?.map((n) => (_jsx(NucleusPreferences, { nucleus: n, fields: formatFields, renderTop: () => (_jsxs(_Fragment, { children: [_jsx(FormikColorInput, { name: `nuclei.${n}.color` }), _jsx(Label, { title: "stroke width :", style: {
|
|
48
51
|
label: {
|
|
49
52
|
fontSize: '11px',
|
|
50
53
|
fontWeight: 'bold',
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { StateMoleculeExtended } from '../../../data/molecules/Molecule';
|
|
3
2
|
interface MoleculeHeaderProps {
|
|
4
3
|
currentMolecule: StateMoleculeExtended;
|
|
5
4
|
molecules: StateMoleculeExtended[];
|
|
6
5
|
}
|
|
7
|
-
export default function MoleculeHeader(props: MoleculeHeaderProps): JSX.Element;
|
|
6
|
+
export default function MoleculeHeader(props: MoleculeHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -15,6 +15,7 @@ import MenuButton from '../../elements/MenuButton';
|
|
|
15
15
|
import ToolTip from '../../elements/ToolTip/ToolTip';
|
|
16
16
|
import { useAlert } from '../../elements/popup/Alert';
|
|
17
17
|
import { positions, useModal } from '../../elements/popup/Modal';
|
|
18
|
+
import AboutPredictionModal from '../../modal/AboutPredictionModal';
|
|
18
19
|
import PredictSpectraModal from '../../modal/PredictSpectraModal';
|
|
19
20
|
import { ADD_MOLECULE, DELETE_MOLECULE, FLOAT_MOLECULE_OVER_SPECTRUM, TOGGLE_MOLECULE_ATOM_NUMBER, } from '../../reducer/types/Types';
|
|
20
21
|
import { copyPNGToClipboard, copyTextToClipboard, exportAsSVG, } from '../../utility/export';
|
|
@@ -22,7 +23,7 @@ const toolbarStyle = css `
|
|
|
22
23
|
display: flex;
|
|
23
24
|
flex-direction: row;
|
|
24
25
|
border-bottom: 0.55px solid rgb(240 240 240);
|
|
25
|
-
padding:
|
|
26
|
+
padding: 2px 5px;
|
|
26
27
|
|
|
27
28
|
button svg {
|
|
28
29
|
fill: #4e4e4e;
|
|
@@ -168,7 +169,7 @@ export default function MoleculePanelHeader({ currentIndex, molecules, molecules
|
|
|
168
169
|
});
|
|
169
170
|
}
|
|
170
171
|
const hasMolecules = molecules && molecules.length > 0;
|
|
171
|
-
return (_jsxs("div", { css: toolbarStyle, children: [!actionsOptions.hideExport && (_jsx(MenuButton, { component: _jsx(FaFileExport, {}), toolTip: "Export As", items: MOL_EXPORT_MENU, onClick: exportHandler })), !actionsOptions.hidePast && (_jsx(ToolTip, { title: "Paste molfile", popupPlacement: "left", children: _jsx("button", { className: "bar-button", type: "button", onClick: handlePaste, children: _jsx(FaPaste, {}) }) })), !actionsOptions.hideAdd && (_jsx(ToolTip, { title: "Add molecule", popupPlacement: "left", children: _jsx("button", { className: "bar-button", type: "button", onClick: onOpenMoleculeEditor, children: _jsx(FaPlus, {}) }) })), !actionsOptions.hideDelete && (_jsx(ToolTip, { title: "Delete molecule", popupPlacement: "left", children: _jsx("button", { className: "bar-button", type: "button", onClick: handleDelete, children: _jsx(FaRegTrashAlt, {}) }) })), !actionsOptions.hidePredict && hasMolecules && (_jsx(ButtonToolTip, { popupTitle: "Predict spectra", popupPlacement: "left", onClick: openPredictSpectraModal, children: _jsx(SvgNmrFt, {}) })), _jsx(ActiveButton, { value: moleculesView?.[moleculeKey]?.floating.visible || false, popupTitle: "Float molecule", popupPlacement: "left", onClick: floatMoleculeHandler, disabled: !hasMolecules, children: _jsx(IoOpenOutline, {}) }), _jsx(ActiveButton, { style: { marginLeft: '2px' }, value: moleculesView?.[moleculeKey]?.showAtomNumber || false, popupTitle: "Show atom number", popupPlacement: "left", onClick: showAtomNumbersHandler, disabled: !hasMolecules, children: _jsx("p", { style: atomLabelStyle, children: "#" }) }), _jsxs("p", { children: [molecules &&
|
|
172
|
+
return (_jsxs("div", { css: toolbarStyle, children: [actionsOptions?.showAboutPredict && _jsx(AboutPredictionModal, {}), !actionsOptions.hideExport && (_jsx(MenuButton, { component: _jsx(FaFileExport, {}), toolTip: "Export As", items: MOL_EXPORT_MENU, onClick: exportHandler })), !actionsOptions.hidePast && (_jsx(ToolTip, { title: "Paste molfile", popupPlacement: "left", children: _jsx("button", { className: "bar-button", type: "button", onClick: handlePaste, children: _jsx(FaPaste, {}) }) })), !actionsOptions.hideAdd && (_jsx(ToolTip, { title: "Add molecule", popupPlacement: "left", children: _jsx("button", { className: "bar-button", type: "button", onClick: onOpenMoleculeEditor, children: _jsx(FaPlus, {}) }) })), !actionsOptions.hideDelete && (_jsx(ToolTip, { title: "Delete molecule", popupPlacement: "left", children: _jsx("button", { className: "bar-button", type: "button", onClick: handleDelete, children: _jsx(FaRegTrashAlt, {}) }) })), !actionsOptions.hidePredict && hasMolecules && (_jsx(ButtonToolTip, { popupTitle: "Predict spectra", popupPlacement: "left", onClick: openPredictSpectraModal, children: _jsx(SvgNmrFt, {}) })), _jsx(ActiveButton, { value: moleculesView?.[moleculeKey]?.floating.visible || false, popupTitle: "Float molecule", popupPlacement: "left", onClick: floatMoleculeHandler, disabled: !hasMolecules, children: _jsx(IoOpenOutline, {}) }), _jsx(ActiveButton, { style: { marginLeft: '2px' }, value: moleculesView?.[moleculeKey]?.showAtomNumber || false, popupTitle: "Show atom number", popupPlacement: "left", onClick: showAtomNumbersHandler, disabled: !hasMolecules, children: _jsx("p", { style: atomLabelStyle, children: "#" }) }), _jsxs("p", { children: [molecules &&
|
|
172
173
|
molecules.length > 0 &&
|
|
173
174
|
`${+(currentIndex + 1)} / ${molecules.length}`, ' '] })] }));
|
|
174
175
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SpectraAnalysisData } from '../../../data/data1d/multipleSpectraAnalysis';
|
|
3
2
|
interface MultipleSpectraAnalysisTableProps {
|
|
4
3
|
data: SpectraAnalysisData;
|
|
5
4
|
activeTab: string;
|
|
6
5
|
resortSpectra: boolean;
|
|
7
6
|
}
|
|
8
|
-
declare function MultipleSpectraAnalysisTable({ data, activeTab, resortSpectra, }: MultipleSpectraAnalysisTableProps): JSX.Element;
|
|
7
|
+
declare function MultipleSpectraAnalysisTable({ data, activeTab, resortSpectra, }: MultipleSpectraAnalysisTableProps): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export default MultipleSpectraAnalysisTable;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface AnalysisCellProps {
|
|
3
2
|
columnKey: string;
|
|
4
3
|
value: any;
|
|
5
4
|
activeTab: string;
|
|
6
5
|
}
|
|
7
|
-
declare function AnalysisCell({ columnKey, value, activeTab }: AnalysisCellProps): JSX.Element;
|
|
6
|
+
declare function AnalysisCell({ columnKey, value, activeTab }: AnalysisCellProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default AnalysisCell;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface AnalysisColumnHeaderProps {
|
|
3
2
|
columnKey: string;
|
|
4
3
|
rangeLabel: string;
|
|
@@ -9,5 +8,5 @@ interface AnalysisColumnHeaderProps {
|
|
|
9
8
|
};
|
|
10
9
|
onDelete: () => void;
|
|
11
10
|
}
|
|
12
|
-
declare function AnalysisColumnHeader({ columnKey, rangeLabel, data, onColumnFilter, onDelete, }: AnalysisColumnHeaderProps): JSX.Element;
|
|
11
|
+
declare function AnalysisColumnHeader({ columnKey, rangeLabel, data, onColumnFilter, onDelete, }: AnalysisColumnHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
export default AnalysisColumnHeader;
|
package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function AnalysisTablePreferences(): JSX.Element;
|
|
1
|
+
export declare function AnalysisTablePreferences(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface PanelNoDataProps {
|
|
3
2
|
children?: string;
|
|
4
3
|
}
|
|
5
|
-
export declare function PanelNoData({ children }: PanelNoDataProps): JSX.Element;
|
|
4
|
+
export declare function PanelNoData({ children }: PanelNoDataProps): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export {};
|
|
@@ -3,6 +3,6 @@ interface PeaksTableProps {
|
|
|
3
3
|
activeTab: string;
|
|
4
4
|
data: any;
|
|
5
5
|
}
|
|
6
|
-
declare function PeaksTable({ activeTab, data }: PeaksTableProps): JSX.Element;
|
|
6
|
+
declare function PeaksTable({ activeTab, data }: PeaksTableProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare const _default: import("react").MemoExoticComponent<typeof PeaksTable>;
|
|
8
8
|
export default _default;
|
|
@@ -3,7 +3,6 @@ import { CSSProperties } from 'react';
|
|
|
3
3
|
import { ContextMenuProps } from '../../elements/ReactTable/ReactTable';
|
|
4
4
|
import { WorkSpacePanelPreferences } from '../../workspaces/Workspace';
|
|
5
5
|
import { RangeData } from './hooks/useMapRanges';
|
|
6
|
-
export declare const AssignmentColumnCssStyle: import("@emotion/react").SerializedStyles;
|
|
7
6
|
interface RangesTableRowProps extends ContextMenuProps {
|
|
8
7
|
rowData: any;
|
|
9
8
|
onUnlink: (a: any, b?: any) => void;
|
|
@@ -22,17 +22,6 @@ const HighlightedRowStyle = css `
|
|
|
22
22
|
const ConstantlyHighlightedRowStyle = css `
|
|
23
23
|
background-color: #f5f5dc;
|
|
24
24
|
`;
|
|
25
|
-
export const AssignmentColumnCssStyle = css `
|
|
26
|
-
.remove-assignment {
|
|
27
|
-
visibility: hidden;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&:hover {
|
|
31
|
-
.remove-assignment {
|
|
32
|
-
visibility: visible;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
`;
|
|
36
25
|
function RangesTableRow({ rowData, onUnlink, onContextMenuSelect, contextMenu = [], preferences, info, }) {
|
|
37
26
|
const assignmentData = useAssignmentData();
|
|
38
27
|
const assignmentRange = useAssignment(rowData.id);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { RangeColumnProps } from '../RangesTableRow';
|
|
3
|
-
declare function AbsoluteColumn({ rowSpanTags, row, onHover, format, }: RangeColumnProps): JSX.Element;
|
|
2
|
+
declare function AbsoluteColumn({ rowSpanTags, row, onHover, format, }: RangeColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default AbsoluteColumn;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { OnHoverEvent, BaseRangeColumnProps } from '../RangesTableRow';
|
|
3
2
|
type CouplingColumnProps = BaseRangeColumnProps & OnHoverEvent;
|
|
4
|
-
declare function CouplingColumn({ row, onHover, format }: CouplingColumnProps): JSX.Element;
|
|
3
|
+
declare function CouplingColumn({ row, onHover, format }: CouplingColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default CouplingColumn;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
2
|
/** @jsxImportSource @emotion/react */
|
|
3
3
|
import { memo } from 'react';
|
|
4
|
+
import { RemoveAssignmentsButton, removeAssignmentCssStyle, } from '../../../elements/RemoveAssignmentsButton';
|
|
4
5
|
import { HighlightEventSource } from '../../../highlight';
|
|
5
|
-
import { AssignmentColumnCssStyle } from '../RangesTableRow';
|
|
6
|
-
import { RemoveAssignmentsButton } from './RemoveAssignmentsButton';
|
|
7
6
|
const columnStyle = {
|
|
8
7
|
padding: 0,
|
|
9
8
|
textAlign: 'center',
|
|
@@ -37,6 +36,6 @@ function RangeAssignmentsColumn({ row, assignment, highlight, onLink, onUnlink,
|
|
|
37
36
|
return (_jsx("td", { ...rowSpanTags, style: {
|
|
38
37
|
...columnStyle,
|
|
39
38
|
...rowSpanTags.style,
|
|
40
|
-
}, ...onHover, ...{ onClick: (e) => onLink?.(e, assignment) }, css: !assignment.isActive &&
|
|
39
|
+
}, ...onHover, ...{ onClick: (e) => onLink?.(e, assignment) }, css: !assignment.isActive && removeAssignmentCssStyle, children: (totalNumberOfAtoms > 0 || assignment.isActive) && (_jsxs(_Fragment, { children: [totalNumberOfAtoms, " ", ' ( ', _jsx("span", { style: getStyle(flag, isCompletelyAssigned), children: diaIDs?.length || 0 }), ' ) ', _jsx(RemoveAssignmentsButton, { onClick: (e) => onUnlink?.(e, true) })] })) }));
|
|
41
40
|
}
|
|
42
41
|
export default memo(RangeAssignmentsColumn);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { RangeColumnProps } from '../RangesTableRow';
|
|
3
2
|
interface RangeColumnInnerProps extends Omit<RangeColumnProps, 'row'> {
|
|
4
3
|
value: any;
|
|
5
4
|
}
|
|
6
|
-
declare function RangeColumn({ value, rowSpanTags, onHover, format, }: RangeColumnInnerProps): JSX.Element;
|
|
5
|
+
declare function RangeColumn({ value, rowSpanTags, onHover, format, }: RangeColumnInnerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default RangeColumn;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { RangeColumnProps } from '../RangesTableRow';
|
|
3
|
-
declare function RelativeColumn({ row, rowSpanTags, onHover, format, }: RangeColumnProps): JSX.Element;
|
|
2
|
+
declare function RelativeColumn({ row, rowSpanTags, onHover, format, }: RangeColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default RelativeColumn;
|
|
@@ -2,8 +2,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/reac
|
|
|
2
2
|
/** @jsxImportSource @emotion/react */
|
|
3
3
|
import lodashGet from 'lodash/get';
|
|
4
4
|
import { memo } from 'react';
|
|
5
|
-
import {
|
|
6
|
-
import { RemoveAssignmentsButton } from './RemoveAssignmentsButton';
|
|
5
|
+
import { RemoveAssignmentsButton, removeAssignmentCssStyle, } from '../../../elements/RemoveAssignmentsButton';
|
|
7
6
|
function SignalAssignmentsColumn({ row, onHover, assignment, highlight, onLink, onUnlink, }) {
|
|
8
7
|
const diaIDs = lodashGet(row, 'tableMetaInfo.signal.diaIDs', []);
|
|
9
8
|
const tdCss = assignment.isActive || highlight.isActive
|
|
@@ -15,6 +14,6 @@ function SignalAssignmentsColumn({ row, onHover, assignment, highlight, onLink,
|
|
|
15
14
|
function assignHandler(e) {
|
|
16
15
|
onLink?.(e, assignment);
|
|
17
16
|
}
|
|
18
|
-
return (_jsx("td", { ...onHover, onClick: assignHandler, style: { padding: '0', ...tdCss }, css: !assignment.isActive &&
|
|
17
|
+
return (_jsx("td", { ...onHover, onClick: assignHandler, style: { padding: '0', ...tdCss }, css: !assignment.isActive && removeAssignmentCssStyle, children: (diaIDs?.length > 0 || assignment.isActive) && (_jsxs(_Fragment, { children: [_jsx("span", { children: diaIDs?.length || 0 }), _jsx(RemoveAssignmentsButton, { onClick: (e) => onUnlink?.(e, false) })] })) }));
|
|
19
18
|
}
|
|
20
19
|
export default memo(SignalAssignmentsColumn);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { RangeColumnProps } from '../RangesTableRow';
|
|
3
|
-
declare function SignalDeltaColumn({ row, onHover, format, rowSpanTags, }: RangeColumnProps): JSX.Element;
|
|
2
|
+
declare function SignalDeltaColumn({ row, onHover, format, rowSpanTags, }: RangeColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default SignalDeltaColumn;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { checkMultiplicity } from 'nmr-processing';
|
|
2
3
|
import { useDispatch } from '../../../context/DispatchContext';
|
|
3
4
|
import EditableColumn from '../../../elements/EditableColumn';
|
|
4
5
|
import { CHANGE_RANGE_SIGNAL_VALUE } from '../../../reducer/types/Types';
|
|
5
6
|
import { formatNumber } from '../../../utility/formatNumber';
|
|
6
|
-
import { checkMultiplicity } from '../../extra/utilities/MultiplicityUtilities';
|
|
7
7
|
function SignalDeltaColumn({ row, onHover, format, rowSpanTags, }) {
|
|
8
8
|
const dispatch = useDispatch();
|
|
9
9
|
const signal = row.tableMetaInfo.signal;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Info1D } from 'nmr-load-save';
|
|
3
2
|
import { RangeColumnProps } from '../RangesTableRow';
|
|
4
3
|
interface SignalDeltaHzColumnProps extends RangeColumnProps {
|
|
5
4
|
info: Info1D;
|
|
6
5
|
}
|
|
7
|
-
declare function SignalDeltaHzColumn({ row, onHover, format, info, rowSpanTags, }: SignalDeltaHzColumnProps): JSX.Element;
|
|
6
|
+
declare function SignalDeltaHzColumn({ row, onHover, format, info, rowSpanTags, }: SignalDeltaHzColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default SignalDeltaHzColumn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { checkMultiplicity } from 'nmr-processing';
|
|
2
3
|
import { formatNumber } from '../../../utility/formatNumber';
|
|
3
|
-
import { checkMultiplicity } from '../../extra/utilities/MultiplicityUtilities';
|
|
4
4
|
function SignalDeltaHzColumn({ row, onHover, format, info, rowSpanTags, }) {
|
|
5
5
|
const signal = row.tableMetaInfo.signal;
|
|
6
6
|
if (!signal)
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface SpectraPanelHeaderProps {
|
|
3
2
|
onSettingClick: () => void;
|
|
4
3
|
}
|
|
5
|
-
export default function SpectrumsTabs({ onSettingClick, }: SpectraPanelHeaderProps): JSX.Element;
|
|
4
|
+
export default function SpectrumsTabs({ onSettingClick, }: SpectraPanelHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export {};
|
|
@@ -30,7 +30,7 @@ function SpectraPreferences(props, ref) {
|
|
|
30
30
|
}), []);
|
|
31
31
|
const handleAdd = useCallback((nucleus, index) => {
|
|
32
32
|
const data = formRef.current.values;
|
|
33
|
-
let columns = data.nuclei[nucleus]
|
|
33
|
+
let columns = data.nuclei[nucleus]?.columns || [];
|
|
34
34
|
columns = [
|
|
35
35
|
...columns.slice(0, index),
|
|
36
36
|
{
|
|
@@ -53,7 +53,7 @@ function SpectraPreferences(props, ref) {
|
|
|
53
53
|
}, []);
|
|
54
54
|
const handleDelete = useCallback((nucleus, index) => {
|
|
55
55
|
const data = formRef.current.values;
|
|
56
|
-
const columns = data.nuclei[nucleus]
|
|
56
|
+
const columns = data.nuclei[nucleus]?.columns.filter((_, columnIndex) => columnIndex !== index);
|
|
57
57
|
formRef.current.setValues({
|
|
58
58
|
...data,
|
|
59
59
|
nuclei: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Spectrum } from 'nmr-load-save';
|
|
3
2
|
import { ActiveSpectrum } from '../../reducer/Reducer';
|
|
4
3
|
import { OnChangeVisibilityEvent } from './base/ShowHideSpectrumButton';
|
|
@@ -9,5 +8,5 @@ interface SpectraTableProps extends OnChangeVisibilityEvent {
|
|
|
9
8
|
onChangeActiveSpectrum: (event: Event, data: Spectrum) => void;
|
|
10
9
|
nucleus: string;
|
|
11
10
|
}
|
|
12
|
-
export declare function SpectraTable(props: SpectraTableProps): JSX.Element;
|
|
11
|
+
export declare function SpectraTable(props: SpectraTableProps): import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare function SpectrumListPanel(): JSX.Element;
|
|
2
|
+
declare function SpectrumListPanel(): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare const _default: import("react").MemoExoticComponent<typeof SpectrumListPanel>;
|
|
4
4
|
export default _default;
|
|
@@ -5,6 +5,6 @@ interface ColorIndicatorProps {
|
|
|
5
5
|
display: Display1D | Display2D;
|
|
6
6
|
dimension: number;
|
|
7
7
|
}
|
|
8
|
-
declare function ColorIndicator(props: ColorIndicatorProps): JSX.Element;
|
|
8
|
+
declare function ColorIndicator(props: ColorIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
declare const _default: import("react").MemoExoticComponent<typeof ColorIndicator>;
|
|
10
10
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Spectrum } from 'nmr-load-save';
|
|
3
2
|
type VisibleKey = 'isVisible' | 'isPositiveVisible' | 'isNegativeVisible';
|
|
4
3
|
export interface OnChangeVisibilityEvent {
|
|
@@ -7,5 +6,5 @@ export interface OnChangeVisibilityEvent {
|
|
|
7
6
|
interface ShowHideSpectrumButtonProps extends OnChangeVisibilityEvent {
|
|
8
7
|
data: Spectrum;
|
|
9
8
|
}
|
|
10
|
-
export default function ShowHideSpectrumButton({ data, onChangeVisibility, }: ShowHideSpectrumButtonProps): JSX.Element;
|
|
9
|
+
export default function ShowHideSpectrumButton({ data, onChangeVisibility, }: ShowHideSpectrumButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { InputMapValueFunctions } from '../../../elements/formik/FormikInput';
|
|
3
2
|
interface SpectraColumnsManagerProps extends InputMapValueFunctions {
|
|
4
3
|
nucleus: string;
|
|
@@ -6,5 +5,5 @@ interface SpectraColumnsManagerProps extends InputMapValueFunctions {
|
|
|
6
5
|
onDelete: (nucleus: string, index: number) => void;
|
|
7
6
|
datalist?: string[];
|
|
8
7
|
}
|
|
9
|
-
export declare function SpectraColumnsManager({ nucleus, onAdd, onDelete, datalist, mapOnChangeValue, mapValue, }: SpectraColumnsManagerProps): JSX.Element;
|
|
8
|
+
export declare function SpectraColumnsManager({ nucleus, onAdd, onDelete, datalist, mapOnChangeValue, mapValue, }: SpectraColumnsManagerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -54,5 +54,5 @@ export function SpectraColumnsManager({ nucleus, onAdd, onDelete, datalist, mapO
|
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
56
|
], [datalist, mapOnChangeValue, mapValue, nucleus, onAdd, onDelete]);
|
|
57
|
-
return (_jsx(ReactTable, { data: nucleiPreferences.nuclei[nucleus]
|
|
57
|
+
return (_jsx(ReactTable, { data: nucleiPreferences.nuclei[nucleus]?.columns || [], columns: COLUMNS }));
|
|
58
58
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Spectrum } from 'nmr-load-save';
|
|
3
2
|
interface SpectrumNameProps {
|
|
4
3
|
data: Spectrum;
|
|
5
4
|
}
|
|
6
|
-
export declare function SpectrumName(props: SpectrumNameProps): JSX.Element;
|
|
5
|
+
export declare function SpectrumName(props: SpectrumNameProps): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SeriesPoint } from 'react-plot';
|
|
3
2
|
interface PlotData {
|
|
4
3
|
positive: SeriesPoint[];
|
|
@@ -14,5 +13,5 @@ interface PlotChartPros {
|
|
|
14
13
|
yLogBase: number;
|
|
15
14
|
hideHeading?: boolean;
|
|
16
15
|
}
|
|
17
|
-
export default function PlotChart({ data, sign, color, yLogBase, hideHeading, }: PlotChartPros): JSX.Element;
|
|
16
|
+
export default function PlotChart({ data, sign, color, yLogBase, hideHeading, }: PlotChartPros): import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
export {};
|
|
@@ -3,6 +3,6 @@ interface Spectrum1DHistogramProps {
|
|
|
3
3
|
color?: string;
|
|
4
4
|
data: any;
|
|
5
5
|
}
|
|
6
|
-
declare function Spectrum1DHistogram({ color, data, }: Spectrum1DHistogramProps): JSX.Element;
|
|
6
|
+
declare function Spectrum1DHistogram({ color, data, }: Spectrum1DHistogramProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare const _default: import("react").MemoExoticComponent<typeof Spectrum1DHistogram>;
|
|
8
8
|
export default _default;
|