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
|
@@ -8,6 +8,7 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
8
8
|
const react_1 = require("@emotion/react");
|
|
9
9
|
const uuid_1 = require("@lukeed/uuid");
|
|
10
10
|
const formik_1 = require("formik");
|
|
11
|
+
const nmr_processing_1 = require("nmr-processing");
|
|
11
12
|
const react_2 = require("react");
|
|
12
13
|
const fa_1 = require("react-icons/fa");
|
|
13
14
|
const ChartContext_1 = require("../../context/ChartContext");
|
|
@@ -74,7 +75,7 @@ function EditRangeModal({ onSaveEditRangeModal = () => null, onCloseEditRangeMod
|
|
|
74
75
|
.map((coupling) => {
|
|
75
76
|
return {
|
|
76
77
|
...coupling,
|
|
77
|
-
multiplicity: (0,
|
|
78
|
+
multiplicity: (0, nmr_processing_1.translateMultiplet)(coupling.multiplicity),
|
|
78
79
|
};
|
|
79
80
|
}), []);
|
|
80
81
|
const getSignals = (0, react_2.useCallback)((signals) => {
|
|
@@ -83,7 +84,7 @@ function EditRangeModal({ onSaveEditRangeModal = () => null, onCloseEditRangeMod
|
|
|
83
84
|
id: (0, uuid_1.v4)(),
|
|
84
85
|
...signal,
|
|
85
86
|
multiplicity: signal.js
|
|
86
|
-
.map((_coupling) => (0,
|
|
87
|
+
.map((_coupling) => (0, nmr_processing_1.translateMultiplet)(_coupling.multiplicity))
|
|
87
88
|
.join(''),
|
|
88
89
|
js: getCouplings(signal?.js || []),
|
|
89
90
|
};
|
|
@@ -102,7 +103,7 @@ function EditRangeModal({ onSaveEditRangeModal = () => null, onCloseEditRangeMod
|
|
|
102
103
|
let counterJ = 0;
|
|
103
104
|
const couplings = [];
|
|
104
105
|
if (signal.multiplicity) {
|
|
105
|
-
for (const multiplicity of signal.multiplicity
|
|
106
|
+
for (const multiplicity of (0, nmr_processing_1.splitPatterns)(signal.multiplicity)) {
|
|
106
107
|
let js = {
|
|
107
108
|
multiplicity,
|
|
108
109
|
coupling: '',
|
|
@@ -112,7 +113,7 @@ function EditRangeModal({ onSaveEditRangeModal = () => null, onCloseEditRangeMod
|
|
|
112
113
|
js.coupling = Number((0, formatNumber_1.formatNumber)(js.coupling, rangesPreferences.coupling.format));
|
|
113
114
|
counterJ++;
|
|
114
115
|
}
|
|
115
|
-
js.multiplicity = (0,
|
|
116
|
+
js.multiplicity = (0, nmr_processing_1.translateMultiplet)(js.multiplicity || '');
|
|
116
117
|
couplings.push(js);
|
|
117
118
|
}
|
|
118
119
|
}
|
|
@@ -30,12 +30,12 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
30
30
|
/** @jsxImportSource @emotion/react */
|
|
31
31
|
const react_1 = require("@emotion/react");
|
|
32
32
|
const formik_1 = require("formik");
|
|
33
|
+
const nmr_processing_1 = require("nmr-processing");
|
|
33
34
|
const react_2 = require("react");
|
|
34
35
|
const fa_1 = require("react-icons/fa");
|
|
35
36
|
const Yup = __importStar(require("yup"));
|
|
36
37
|
const Button_1 = __importDefault(require("../../../../elements/Button"));
|
|
37
38
|
const FormikInput_1 = __importDefault(require("../../../../elements/formik/FormikInput"));
|
|
38
|
-
const MultiplicityUtilities_1 = require("../../../../panels/extra/utilities/MultiplicityUtilities");
|
|
39
39
|
const formatNumber_1 = require("../../../../utility/formatNumber");
|
|
40
40
|
const styles = {
|
|
41
41
|
container: (0, react_1.css) `
|
|
@@ -69,7 +69,7 @@ function AddSignalFormTab({ onFocus, onBlur, range, preferences }, ref) {
|
|
|
69
69
|
multiplicity: 'm',
|
|
70
70
|
kind: 'signal',
|
|
71
71
|
delta: Number(val.newSignalDelta),
|
|
72
|
-
js: [{ multiplicity: (0,
|
|
72
|
+
js: [{ multiplicity: (0, nmr_processing_1.translateMultiplet)('m'), coupling: '' }],
|
|
73
73
|
};
|
|
74
74
|
const _signals = values.signals.slice().concat(newSignal);
|
|
75
75
|
setFieldValue('signals', _signals);
|
|
@@ -8,6 +8,7 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
8
8
|
const react_1 = require("@emotion/react");
|
|
9
9
|
const formik_1 = require("formik");
|
|
10
10
|
const get_1 = __importDefault(require("lodash/get"));
|
|
11
|
+
const nmr_processing_1 = require("nmr-processing");
|
|
11
12
|
const react_2 = require("react");
|
|
12
13
|
const fa_1 = require("react-icons/fa");
|
|
13
14
|
const Multiplets_1 = require("../../../../../data/constants/Multiplets");
|
|
@@ -48,7 +49,7 @@ function CouplingsTable({ push, remove, onFocus, onBlur, }) {
|
|
|
48
49
|
}, [setFieldValue]);
|
|
49
50
|
const couplingsList = (0, get_1.default)(values, `signals[${values.activeTab}].js`, []);
|
|
50
51
|
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)(Button_1.default.Done, { fill: "outline", style: { marginBottom: '10px' }, onClick: () => push({
|
|
51
|
-
multiplicity: (0,
|
|
52
|
+
multiplicity: (0, nmr_processing_1.translateMultiplet)('m'),
|
|
52
53
|
coupling: '',
|
|
53
54
|
}), children: [(0, jsx_runtime_1.jsx)(fa_1.FaPlus, { title: "Add new coupling", style: { display: 'inline-block' } }), (0, jsx_runtime_1.jsx)("span", { style: { display: 'inline-block', paddingLeft: '5px' }, children: "Add New Coupling" })] }), (0, jsx_runtime_1.jsx)("table", { css: CouplingsTableStyle, children: (0, jsx_runtime_1.jsxs)("tbody", { children: [(0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("th", { children: "#" }), (0, jsx_runtime_1.jsx)("th", { children: "Multiplicity" }), (0, jsx_runtime_1.jsx)("th", { children: "J (Hz)" }), (0, jsx_runtime_1.jsx)("th", { children: '' })] }), couplingsList.map((_coupling, i) => ((0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("td", { children: i + 1 }), (0, jsx_runtime_1.jsx)("td", { children: (0, jsx_runtime_1.jsx)(FormikSelect_1.default, { className: "select-box", name: `signals.${values.activeTab}.js.${i}.multiplicity`, items: Multiplets_1.Multiplets, itemValueField: "label", onChange: (value) => {
|
|
54
55
|
multiplicityChangeHandler(value, `signals.${values.activeTab}.js.${i}.coupling`);
|
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const nmr_processing_1 = require("nmr-processing");
|
|
7
8
|
const FormikInput_1 = __importDefault(require("../../../../elements/formik/FormikInput"));
|
|
8
|
-
const MultiplicityUtilities_1 = require("../../../../panels/extra/utilities/MultiplicityUtilities");
|
|
9
9
|
const style = {
|
|
10
10
|
input: {
|
|
11
11
|
width: '50px',
|
|
@@ -16,7 +16,7 @@ const style = {
|
|
|
16
16
|
};
|
|
17
17
|
function DeltaInput({ signal, index, onFocus }) {
|
|
18
18
|
return ((0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex', alignItems: 'center' }, children: [(0, jsx_runtime_1.jsx)("span", { children: "\uD835\uDEC5: " }), (0, jsx_runtime_1.jsx)(FormikInput_1.default, { name: `signals.${index}.delta`, type: "number", placeholder: 'J (Hz)', onFocus: onFocus, style: style, checkErrorAfterInputTouched: false }), (0, jsx_runtime_1.jsx)("span", { children: signal.js
|
|
19
|
-
.map((_coupling) => (0,
|
|
19
|
+
.map((_coupling) => (0, nmr_processing_1.translateMultiplet)(_coupling.multiplicity))
|
|
20
20
|
.join('') })] }));
|
|
21
21
|
}
|
|
22
22
|
exports.default = DeltaInput;
|
|
@@ -42,37 +42,27 @@ function IntegralTable({ activeTab, data }) {
|
|
|
42
42
|
index: 1,
|
|
43
43
|
Header: '#',
|
|
44
44
|
accessor: (_, index) => index + 1,
|
|
45
|
-
width:
|
|
45
|
+
style: { width: '30px', maxWidth: '30px' },
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
index: 2,
|
|
49
49
|
Header: 'From',
|
|
50
50
|
sortType: 'basic',
|
|
51
|
-
resizable: true,
|
|
52
51
|
accessor: (row) => row.from.toFixed(2),
|
|
53
52
|
},
|
|
54
53
|
{
|
|
55
54
|
index: 3,
|
|
56
55
|
Header: 'To',
|
|
57
56
|
sortType: 'basic',
|
|
58
|
-
resizable: true,
|
|
59
57
|
accessor: (row) => row.to.toFixed(2),
|
|
60
58
|
},
|
|
61
|
-
{
|
|
62
|
-
index: 6,
|
|
63
|
-
Header: 'Kind',
|
|
64
|
-
sortType: 'basic',
|
|
65
|
-
resizable: true,
|
|
66
|
-
accessor: 'kind',
|
|
67
|
-
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)(Select_1.default, { onChange: (value) => changeIntegralDataHandler(value, row), items: SignalsKinds_1.SignalKinds, style: selectStyle, defaultValue: row.original.kind })),
|
|
68
|
-
},
|
|
69
59
|
{
|
|
70
60
|
index: 7,
|
|
71
61
|
style: { width: '1%', maxWidth: '24px', minWidth: '24px' },
|
|
72
62
|
id: 'delete-button',
|
|
73
63
|
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)("button", { type: "button", className: "delete-button", onClick: (e) => deleteIntegralHandler(e, row), children: (0, jsx_runtime_1.jsx)(fa_1.FaRegTrashAlt, {}) })),
|
|
74
64
|
},
|
|
75
|
-
], [
|
|
65
|
+
], [deleteIntegralHandler]);
|
|
76
66
|
const saveRelativeHandler = (0, react_1.useCallback)((event, row) => {
|
|
77
67
|
const data = { value: event.target.value, id: row.id };
|
|
78
68
|
dispatch({
|
|
@@ -108,7 +98,21 @@ function IntegralTable({ activeTab, data }) {
|
|
|
108
98
|
return ((0, jsx_runtime_1.jsx)(EditableColumn_1.default, { value: integral, onSave: (event) => saveRelativeHandler(event, row.original), type: "number" }));
|
|
109
99
|
},
|
|
110
100
|
},
|
|
111
|
-
|
|
101
|
+
{
|
|
102
|
+
index: 6,
|
|
103
|
+
Header: 'Kind',
|
|
104
|
+
sortType: 'basic',
|
|
105
|
+
resizable: true,
|
|
106
|
+
accessor: 'kind',
|
|
107
|
+
showWhen: 'showKind',
|
|
108
|
+
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)(Select_1.default, { onChange: (value) => changeIntegralDataHandler(value, row), items: SignalsKinds_1.SignalKinds, style: selectStyle, defaultValue: row.original.kind })),
|
|
109
|
+
},
|
|
110
|
+
], [
|
|
111
|
+
activeTab,
|
|
112
|
+
changeIntegralDataHandler,
|
|
113
|
+
integralsPreferences,
|
|
114
|
+
saveRelativeHandler,
|
|
115
|
+
]);
|
|
112
116
|
const tableColumns = (0, react_1.useMemo)(() => {
|
|
113
117
|
let columns = [...initialColumns];
|
|
114
118
|
for (const col of COLUMNS) {
|
|
@@ -28,6 +28,12 @@ const formatFields = [
|
|
|
28
28
|
checkControllerName: 'relative.show',
|
|
29
29
|
formatControllerName: 'relative.format',
|
|
30
30
|
},
|
|
31
|
+
{
|
|
32
|
+
id: 3,
|
|
33
|
+
label: 'Kind :',
|
|
34
|
+
checkControllerName: 'showKind',
|
|
35
|
+
hideFormatField: true,
|
|
36
|
+
},
|
|
31
37
|
];
|
|
32
38
|
function IntegralsPreferences(props, ref) {
|
|
33
39
|
const preferences = (0, PreferencesContext_1.usePreferences)();
|
|
@@ -35,9 +41,6 @@ function IntegralsPreferences(props, ref) {
|
|
|
35
41
|
const nuclei = (0, react_1.useMemo)(() => (0, getUniqueNuclei_1.getUniqueNuclei)(nucleus), [nucleus]);
|
|
36
42
|
const preferencesByNuclei = (0, usePanelPreferences_1.usePanelPreferencesByNuclei)('integrals', nuclei);
|
|
37
43
|
const formRef = (0, react_1.useRef)();
|
|
38
|
-
(0, react_1.useEffect)(() => {
|
|
39
|
-
formRef.current.setValues(preferencesByNuclei);
|
|
40
|
-
}, [preferencesByNuclei]);
|
|
41
44
|
const saveHandler = (0, react_1.useCallback)((values) => {
|
|
42
45
|
preferences.dispatch({
|
|
43
46
|
type: 'SET_PANELS_PREFERENCES',
|
|
@@ -49,7 +52,7 @@ function IntegralsPreferences(props, ref) {
|
|
|
49
52
|
formRef.current.submitForm();
|
|
50
53
|
},
|
|
51
54
|
}));
|
|
52
|
-
return ((0, jsx_runtime_1.jsx)(PreferencesContainer_1.PreferencesContainer, { children: (0, jsx_runtime_1.jsx)(formik_1.Formik, { initialValues:
|
|
55
|
+
return ((0, jsx_runtime_1.jsx)(PreferencesContainer_1.PreferencesContainer, { children: (0, jsx_runtime_1.jsx)(formik_1.Formik, { initialValues: preferencesByNuclei, onSubmit: saveHandler, innerRef: formRef, children: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: nuclei?.map((n) => ((0, jsx_runtime_1.jsx)(NucleusPreferences_1.NucleusPreferences, { nucleus: n, fields: formatFields, renderTop: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(FormikColorInput_1.default, { name: `nuclei.${n}.color` }), (0, jsx_runtime_1.jsx)(Label_1.default, { title: "stroke width :", style: {
|
|
53
56
|
label: {
|
|
54
57
|
fontSize: '11px',
|
|
55
58
|
fontWeight: 'bold',
|
|
@@ -20,6 +20,7 @@ const MenuButton_1 = __importDefault(require("../../elements/MenuButton"));
|
|
|
20
20
|
const ToolTip_1 = __importDefault(require("../../elements/ToolTip/ToolTip"));
|
|
21
21
|
const Alert_1 = require("../../elements/popup/Alert");
|
|
22
22
|
const Modal_1 = require("../../elements/popup/Modal");
|
|
23
|
+
const AboutPredictionModal_1 = __importDefault(require("../../modal/AboutPredictionModal"));
|
|
23
24
|
const PredictSpectraModal_1 = __importDefault(require("../../modal/PredictSpectraModal"));
|
|
24
25
|
const Types_1 = require("../../reducer/types/Types");
|
|
25
26
|
const export_1 = require("../../utility/export");
|
|
@@ -27,7 +28,7 @@ const toolbarStyle = (0, react_1.css) `
|
|
|
27
28
|
display: flex;
|
|
28
29
|
flex-direction: row;
|
|
29
30
|
border-bottom: 0.55px solid rgb(240 240 240);
|
|
30
|
-
padding:
|
|
31
|
+
padding: 2px 5px;
|
|
31
32
|
|
|
32
33
|
button svg {
|
|
33
34
|
fill: #4e4e4e;
|
|
@@ -173,7 +174,7 @@ function MoleculePanelHeader({ currentIndex, molecules, moleculesView, onMolecul
|
|
|
173
174
|
});
|
|
174
175
|
}
|
|
175
176
|
const hasMolecules = molecules && molecules.length > 0;
|
|
176
|
-
return ((0, jsx_runtime_1.jsxs)("div", { css: toolbarStyle, children: [!actionsOptions.hideExport && ((0, jsx_runtime_1.jsx)(MenuButton_1.default, { component: (0, jsx_runtime_1.jsx)(fa_1.FaFileExport, {}), toolTip: "Export As", items: MOL_EXPORT_MENU, onClick: exportHandler })), !actionsOptions.hidePast && ((0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: "Paste molfile", popupPlacement: "left", children: (0, jsx_runtime_1.jsx)("button", { className: "bar-button", type: "button", onClick: handlePaste, children: (0, jsx_runtime_1.jsx)(fa_1.FaPaste, {}) }) })), !actionsOptions.hideAdd && ((0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: "Add molecule", popupPlacement: "left", children: (0, jsx_runtime_1.jsx)("button", { className: "bar-button", type: "button", onClick: onOpenMoleculeEditor, children: (0, jsx_runtime_1.jsx)(fa_1.FaPlus, {}) }) })), !actionsOptions.hideDelete && ((0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: "Delete molecule", popupPlacement: "left", children: (0, jsx_runtime_1.jsx)("button", { className: "bar-button", type: "button", onClick: handleDelete, children: (0, jsx_runtime_1.jsx)(fa_1.FaRegTrashAlt, {}) }) })), !actionsOptions.hidePredict && hasMolecules && ((0, jsx_runtime_1.jsx)(ButtonToolTip_1.default, { popupTitle: "Predict spectra", popupPlacement: "left", onClick: openPredictSpectraModal, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrFt, {}) })), (0, jsx_runtime_1.jsx)(ActiveButton_1.default, { value: moleculesView?.[moleculeKey]?.floating.visible || false, popupTitle: "Float molecule", popupPlacement: "left", onClick: floatMoleculeHandler, disabled: !hasMolecules, children: (0, jsx_runtime_1.jsx)(io5_1.IoOpenOutline, {}) }), (0, jsx_runtime_1.jsx)(ActiveButton_1.default, { style: { marginLeft: '2px' }, value: moleculesView?.[moleculeKey]?.showAtomNumber || false, popupTitle: "Show atom number", popupPlacement: "left", onClick: showAtomNumbersHandler, disabled: !hasMolecules, children: (0, jsx_runtime_1.jsx)("p", { style: atomLabelStyle, children: "#" }) }), (0, jsx_runtime_1.jsxs)("p", { children: [molecules &&
|
|
177
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: toolbarStyle, children: [actionsOptions?.showAboutPredict && (0, jsx_runtime_1.jsx)(AboutPredictionModal_1.default, {}), !actionsOptions.hideExport && ((0, jsx_runtime_1.jsx)(MenuButton_1.default, { component: (0, jsx_runtime_1.jsx)(fa_1.FaFileExport, {}), toolTip: "Export As", items: MOL_EXPORT_MENU, onClick: exportHandler })), !actionsOptions.hidePast && ((0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: "Paste molfile", popupPlacement: "left", children: (0, jsx_runtime_1.jsx)("button", { className: "bar-button", type: "button", onClick: handlePaste, children: (0, jsx_runtime_1.jsx)(fa_1.FaPaste, {}) }) })), !actionsOptions.hideAdd && ((0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: "Add molecule", popupPlacement: "left", children: (0, jsx_runtime_1.jsx)("button", { className: "bar-button", type: "button", onClick: onOpenMoleculeEditor, children: (0, jsx_runtime_1.jsx)(fa_1.FaPlus, {}) }) })), !actionsOptions.hideDelete && ((0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: "Delete molecule", popupPlacement: "left", children: (0, jsx_runtime_1.jsx)("button", { className: "bar-button", type: "button", onClick: handleDelete, children: (0, jsx_runtime_1.jsx)(fa_1.FaRegTrashAlt, {}) }) })), !actionsOptions.hidePredict && hasMolecules && ((0, jsx_runtime_1.jsx)(ButtonToolTip_1.default, { popupTitle: "Predict spectra", popupPlacement: "left", onClick: openPredictSpectraModal, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrFt, {}) })), (0, jsx_runtime_1.jsx)(ActiveButton_1.default, { value: moleculesView?.[moleculeKey]?.floating.visible || false, popupTitle: "Float molecule", popupPlacement: "left", onClick: floatMoleculeHandler, disabled: !hasMolecules, children: (0, jsx_runtime_1.jsx)(io5_1.IoOpenOutline, {}) }), (0, jsx_runtime_1.jsx)(ActiveButton_1.default, { style: { marginLeft: '2px' }, value: moleculesView?.[moleculeKey]?.showAtomNumber || false, popupTitle: "Show atom number", popupPlacement: "left", onClick: showAtomNumbersHandler, disabled: !hasMolecules, children: (0, jsx_runtime_1.jsx)("p", { style: atomLabelStyle, children: "#" }) }), (0, jsx_runtime_1.jsxs)("p", { children: [molecules &&
|
|
177
178
|
molecules.length > 0 &&
|
|
178
179
|
`${+(currentIndex + 1)} / ${molecules.length}`, ' '] })] }));
|
|
179
180
|
}
|
|
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.AssignmentColumnCssStyle = void 0;
|
|
7
6
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
8
7
|
/** @jsxImportSource @emotion/react */
|
|
9
8
|
const react_1 = require("@emotion/react");
|
|
@@ -28,17 +27,6 @@ const HighlightedRowStyle = (0, react_1.css) `
|
|
|
28
27
|
const ConstantlyHighlightedRowStyle = (0, react_1.css) `
|
|
29
28
|
background-color: #f5f5dc;
|
|
30
29
|
`;
|
|
31
|
-
exports.AssignmentColumnCssStyle = (0, react_1.css) `
|
|
32
|
-
.remove-assignment {
|
|
33
|
-
visibility: hidden;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&:hover {
|
|
37
|
-
.remove-assignment {
|
|
38
|
-
visibility: visible;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
`;
|
|
42
30
|
function RangesTableRow({ rowData, onUnlink, onContextMenuSelect, contextMenu = [], preferences, info, }) {
|
|
43
31
|
const assignmentData = (0, AssignmentsContext_1.useAssignmentData)();
|
|
44
32
|
const assignmentRange = (0, AssignmentsContext_1.useAssignment)(rowData.id);
|
|
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
4
4
|
/** @jsxImportSource @emotion/react */
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
+
const RemoveAssignmentsButton_1 = require("../../../elements/RemoveAssignmentsButton");
|
|
6
7
|
const highlight_1 = require("../../../highlight");
|
|
7
|
-
const RangesTableRow_1 = require("../RangesTableRow");
|
|
8
|
-
const RemoveAssignmentsButton_1 = require("./RemoveAssignmentsButton");
|
|
9
8
|
const columnStyle = {
|
|
10
9
|
padding: 0,
|
|
11
10
|
textAlign: 'center',
|
|
@@ -39,6 +38,6 @@ function RangeAssignmentsColumn({ row, assignment, highlight, onLink, onUnlink,
|
|
|
39
38
|
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, style: {
|
|
40
39
|
...columnStyle,
|
|
41
40
|
...rowSpanTags.style,
|
|
42
|
-
}, ...onHover, ...{ onClick: (e) => onLink?.(e, assignment) }, css: !assignment.isActive &&
|
|
41
|
+
}, ...onHover, ...{ onClick: (e) => onLink?.(e, assignment) }, css: !assignment.isActive && RemoveAssignmentsButton_1.removeAssignmentCssStyle, children: (totalNumberOfAtoms > 0 || assignment.isActive) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [totalNumberOfAtoms, " ", ' ( ', (0, jsx_runtime_1.jsx)("span", { style: getStyle(flag, isCompletelyAssigned), children: diaIDs?.length || 0 }), ' ) ', (0, jsx_runtime_1.jsx)(RemoveAssignmentsButton_1.RemoveAssignmentsButton, { onClick: (e) => onUnlink?.(e, true) })] })) }));
|
|
43
42
|
}
|
|
44
43
|
exports.default = (0, react_1.memo)(RangeAssignmentsColumn);
|
|
@@ -7,8 +7,7 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
7
7
|
/** @jsxImportSource @emotion/react */
|
|
8
8
|
const get_1 = __importDefault(require("lodash/get"));
|
|
9
9
|
const react_1 = require("react");
|
|
10
|
-
const
|
|
11
|
-
const RemoveAssignmentsButton_1 = require("./RemoveAssignmentsButton");
|
|
10
|
+
const RemoveAssignmentsButton_1 = require("../../../elements/RemoveAssignmentsButton");
|
|
12
11
|
function SignalAssignmentsColumn({ row, onHover, assignment, highlight, onLink, onUnlink, }) {
|
|
13
12
|
const diaIDs = (0, get_1.default)(row, 'tableMetaInfo.signal.diaIDs', []);
|
|
14
13
|
const tdCss = assignment.isActive || highlight.isActive
|
|
@@ -20,6 +19,6 @@ function SignalAssignmentsColumn({ row, onHover, assignment, highlight, onLink,
|
|
|
20
19
|
function assignHandler(e) {
|
|
21
20
|
onLink?.(e, assignment);
|
|
22
21
|
}
|
|
23
|
-
return ((0, jsx_runtime_1.jsx)("td", { ...onHover, onClick: assignHandler, style: { padding: '0', ...tdCss }, css: !assignment.isActive &&
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)("td", { ...onHover, onClick: assignHandler, style: { padding: '0', ...tdCss }, css: !assignment.isActive && RemoveAssignmentsButton_1.removeAssignmentCssStyle, children: (diaIDs?.length > 0 || assignment.isActive) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: diaIDs?.length || 0 }), (0, jsx_runtime_1.jsx)(RemoveAssignmentsButton_1.RemoveAssignmentsButton, { onClick: (e) => onUnlink?.(e, false) })] })) }));
|
|
24
23
|
}
|
|
25
24
|
exports.default = (0, react_1.memo)(SignalAssignmentsColumn);
|
|
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const nmr_processing_1 = require("nmr-processing");
|
|
7
8
|
const DispatchContext_1 = require("../../../context/DispatchContext");
|
|
8
9
|
const EditableColumn_1 = __importDefault(require("../../../elements/EditableColumn"));
|
|
9
10
|
const Types_1 = require("../../../reducer/types/Types");
|
|
10
11
|
const formatNumber_1 = require("../../../utility/formatNumber");
|
|
11
|
-
const MultiplicityUtilities_1 = require("../../extra/utilities/MultiplicityUtilities");
|
|
12
12
|
function SignalDeltaColumn({ row, onHover, format, rowSpanTags, }) {
|
|
13
13
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
14
14
|
const signal = row.tableMetaInfo.signal;
|
|
@@ -24,6 +24,6 @@ function SignalDeltaColumn({ row, onHover, format, rowSpanTags, }) {
|
|
|
24
24
|
}
|
|
25
25
|
if (!signal)
|
|
26
26
|
return (0, jsx_runtime_1.jsx)("td", { children: '' });
|
|
27
|
-
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHover, children: !(0,
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHover, children: !(0, nmr_processing_1.checkMultiplicity)(signal.multiplicity, ['m']) ? (`${(0, formatNumber_1.formatNumber)(row.from, format)} - ${(0, formatNumber_1.formatNumber)(row.to, format)}`) : ((0, jsx_runtime_1.jsx)(EditableColumn_1.default, { value: (0, formatNumber_1.formatNumber)(signal.delta, format), onSave: saveHandler, type: "number", style: { padding: '0.1rem 0.4rem' } })) }));
|
|
28
28
|
}
|
|
29
29
|
exports.default = SignalDeltaColumn;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const nmr_processing_1 = require("nmr-processing");
|
|
4
5
|
const formatNumber_1 = require("../../../utility/formatNumber");
|
|
5
|
-
const MultiplicityUtilities_1 = require("../../extra/utilities/MultiplicityUtilities");
|
|
6
6
|
function SignalDeltaHzColumn({ row, onHover, format, info, rowSpanTags, }) {
|
|
7
7
|
const signal = row.tableMetaInfo.signal;
|
|
8
8
|
if (!signal)
|
|
9
9
|
return (0, jsx_runtime_1.jsx)("td", { children: '' });
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHover, children: !(0,
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHover, children: !(0, nmr_processing_1.checkMultiplicity)(signal.multiplicity, ['m'])
|
|
11
11
|
? `${(0, formatNumber_1.formatNumber)(row.from * info.originFrequency, format)} - ${(0, formatNumber_1.formatNumber)(row.to * info.originFrequency, format)}`
|
|
12
12
|
: info?.originFrequency
|
|
13
13
|
? (0, formatNumber_1.formatNumber)(signal.delta * info.originFrequency, format)
|
|
@@ -35,7 +35,7 @@ function SpectraPreferences(props, ref) {
|
|
|
35
35
|
}), []);
|
|
36
36
|
const handleAdd = (0, react_1.useCallback)((nucleus, index) => {
|
|
37
37
|
const data = formRef.current.values;
|
|
38
|
-
let columns = data.nuclei[nucleus]
|
|
38
|
+
let columns = data.nuclei[nucleus]?.columns || [];
|
|
39
39
|
columns = [
|
|
40
40
|
...columns.slice(0, index),
|
|
41
41
|
{
|
|
@@ -58,7 +58,7 @@ function SpectraPreferences(props, ref) {
|
|
|
58
58
|
}, []);
|
|
59
59
|
const handleDelete = (0, react_1.useCallback)((nucleus, index) => {
|
|
60
60
|
const data = formRef.current.values;
|
|
61
|
-
const columns = data.nuclei[nucleus]
|
|
61
|
+
const columns = data.nuclei[nucleus]?.columns.filter((_, columnIndex) => columnIndex !== index);
|
|
62
62
|
formRef.current.setValues({
|
|
63
63
|
...data,
|
|
64
64
|
nuclei: {
|
|
@@ -60,6 +60,6 @@ function SpectraColumnsManager({ nucleus, onAdd, onDelete, datalist, mapOnChange
|
|
|
60
60
|
},
|
|
61
61
|
},
|
|
62
62
|
], [datalist, mapOnChangeValue, mapValue, nucleus, onAdd, onDelete]);
|
|
63
|
-
return ((0, jsx_runtime_1.jsx)(ReactTable_1.default, { data: nucleiPreferences.nuclei[nucleus]
|
|
63
|
+
return ((0, jsx_runtime_1.jsx)(ReactTable_1.default, { data: nucleiPreferences.nuclei[nucleus]?.columns || [], columns: COLUMNS }));
|
|
64
64
|
}
|
|
65
65
|
exports.SpectraColumnsManager = SpectraColumnsManager;
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
visibility: showUnlinkButton ? 'visible' : 'hidden',
|
|
19
|
-
padding: 0,
|
|
20
|
-
margin: 0,
|
|
21
|
-
}, onClick: (e) => onUnlink(e, false, axis), children: (0, jsx_runtime_1.jsx)(fa_1.FaMinusCircle, { color: "red" }) }) })] })) : assignment.isActive && assignment.activated?.axis === axis ? ('0') : ('') }));
|
|
3
|
+
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
4
|
+
const RemoveAssignmentsButton_1 = require("../../../elements/RemoveAssignmentsButton");
|
|
5
|
+
function SignalAssignmentsColumn({ rowData, assignment, highlight, onHover, onClick, onUnlink, axis, }) {
|
|
6
|
+
const diaIDs = rowData?.tableMetaInfo?.signal?.[axis]?.diaIDs || [];
|
|
7
|
+
const isAssignmentActive = assignment.isActive && assignment.activated?.axis === axis;
|
|
8
|
+
const tdCss = assignment.isActive || highlight.isActive
|
|
9
|
+
? {
|
|
10
|
+
color: 'red',
|
|
11
|
+
fontWeight: 'bold',
|
|
12
|
+
}
|
|
13
|
+
: {};
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)("td", { ...onHover, ...{ onClick: (e) => onClick(e, assignment, axis) }, style: { padding: '0', ...tdCss }, css: !isAssignmentActive && RemoveAssignmentsButton_1.removeAssignmentCssStyle, children: (diaIDs?.length > 0 || isAssignmentActive) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: diaIDs?.length || 0 }), (0, jsx_runtime_1.jsx)(RemoveAssignmentsButton_1.RemoveAssignmentsButton, { onClick: (e) => onUnlink(e, false, axis) })] })) }));
|
|
22
15
|
}
|
|
23
16
|
exports.default = SignalAssignmentsColumn;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const react_1 = require("react");
|
|
8
8
|
const SignalAssignmentsColumn_1 = __importDefault(require("./SignalAssignmentsColumn"));
|
|
9
|
-
function SignalAssignmentsColumns({ rowData, assignmentSignal, onHoverSignalX, onHoverSignalY,
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(SignalAssignmentsColumn_1.default, { rowData: rowData, assignment: assignmentSignal, highlight: highlightSignalX, onHover: onHoverSignalX, onClick: onClick, onUnlink: onUnlink, axis: "x"
|
|
9
|
+
function SignalAssignmentsColumns({ rowData, assignmentSignal, onHoverSignalX, onHoverSignalY, onClick, onUnlink, highlightSignalX, highlightSignalY, }) {
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(SignalAssignmentsColumn_1.default, { rowData: rowData, assignment: assignmentSignal, highlight: highlightSignalX, onHover: onHoverSignalX, onClick: onClick, onUnlink: onUnlink, axis: "x" }), (0, jsx_runtime_1.jsx)(SignalAssignmentsColumn_1.default, { rowData: rowData, assignment: assignmentSignal, highlight: highlightSignalY, onHover: onHoverSignalY, onClick: onClick, onUnlink: onUnlink, axis: "y" })] }));
|
|
11
11
|
}
|
|
12
12
|
exports.default = SignalAssignmentsColumns;
|
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
3
|
+
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
4
|
+
const RemoveAssignmentsButton_1 = require("../../../elements/RemoveAssignmentsButton");
|
|
5
|
+
function getStyle(flag, isCompletelyAssigned) {
|
|
6
|
+
if (flag) {
|
|
7
|
+
return {
|
|
8
|
+
color: 'red',
|
|
9
|
+
fontWeight: 'bold',
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
else if (isCompletelyAssigned) {
|
|
13
|
+
return { color: 'green', fontWeight: 'bold' };
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
return { color: 'black', fontWeight: 'normal' };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function ZoneAssignmentColumn({ rowData, assignment, highlight, onHover, onClick, onUnlink, axis, rowSpanTags, }) {
|
|
20
|
+
const diaIDs = rowData?.[axis].diaIDs || []; // diaIds at the level of zone
|
|
21
|
+
const isAssignmentActive = assignment.isActive && assignment.activated?.axis === axis;
|
|
22
|
+
const flag = isAssignmentActive ||
|
|
23
|
+
(assignment.isOver && assignment.highlighted?.axis === axis) ||
|
|
24
|
+
highlight.isActive;
|
|
25
|
+
let totalNumberOfAtoms = rowData?.[axis]?.nbAtoms || 0;
|
|
26
|
+
for (const signal of rowData?.signals || []) {
|
|
27
|
+
totalNumberOfAtoms += signal?.[axis]?.nbAtoms || 0;
|
|
28
|
+
}
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHover, ...{ onClick: (e) => onClick(e, assignment, axis) }, css: !isAssignmentActive && RemoveAssignmentsButton_1.removeAssignmentCssStyle, children: (totalNumberOfAtoms > 0 || isAssignmentActive) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [totalNumberOfAtoms, " ", ' ( ', (0, jsx_runtime_1.jsx)("span", { style: getStyle(flag, false), children: diaIDs?.length || 0 }), ' ) ', (0, jsx_runtime_1.jsx)(RemoveAssignmentsButton_1.RemoveAssignmentsButton, { onClick: (e) => onUnlink(e, true, axis) })] })) }));
|
|
25
30
|
}
|
|
26
31
|
exports.default = ZoneAssignmentColumn;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const react_1 = require("react");
|
|
8
8
|
const ZoneAssignmentsColumn_1 = __importDefault(require("./ZoneAssignmentsColumn"));
|
|
9
|
-
function ZoneAssignmentsColumns({ rowData, assignmentZone, onHoverZoneX, onHoverZoneY,
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ZoneAssignmentsColumn_1.default, { rowData: rowData, assignment: assignmentZone, highlight: highlightZoneX, onHover: onHoverZoneX, onClick: onClick, onUnlink: onUnlink, axis: 'x',
|
|
9
|
+
function ZoneAssignmentsColumns({ rowData, assignmentZone, onHoverZoneX, onHoverZoneY, rowSpanTags, onClick, onUnlink, highlightZoneX, highlightZoneY, }) {
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ZoneAssignmentsColumn_1.default, { rowData: rowData, assignment: assignmentZone, highlight: highlightZoneX, onHover: onHoverZoneX, onClick: onClick, onUnlink: onUnlink, axis: 'x', rowSpanTags: rowSpanTags }), (0, jsx_runtime_1.jsx)(ZoneAssignmentsColumn_1.default, { rowData: rowData, assignment: assignmentZone, highlight: highlightZoneY, onHover: onHoverZoneY, onClick: onClick, onUnlink: onUnlink, axis: 'y', rowSpanTags: rowSpanTags })] }));
|
|
11
11
|
}
|
|
12
12
|
exports.default = ZoneAssignmentsColumns;
|
|
@@ -25,10 +25,6 @@ function ZonesTableRow({ rowData, onUnlink, contextMenu = [], onContextMenuSelec
|
|
|
25
25
|
const assignmentSignal = (0, AssignmentsContext_1.useAssignment)(rowData.tableMetaInfo.id);
|
|
26
26
|
const highlightSignalX = (0, highlight_1.useHighlight)([(0, Concatenation_1.buildID)(assignmentSignal.id, 'X')].concat(assignmentSignal.assigned?.x || [], (0, Concatenation_1.buildID)(assignmentSignal.id, 'Crosshair')));
|
|
27
27
|
const highlightSignalY = (0, highlight_1.useHighlight)([(0, Concatenation_1.buildID)(assignmentSignal.id, 'Y')].concat(assignmentSignal.assigned?.y || [], (0, Concatenation_1.buildID)(assignmentSignal.id, 'Crosshair')));
|
|
28
|
-
const [showUnlinkButtonZoneX, setShowUnlinkButtonZoneX] = (0, react_1.useState)(false);
|
|
29
|
-
const [showUnlinkButtonZoneY, setShowUnlinkButtonZoneY] = (0, react_1.useState)(false);
|
|
30
|
-
const [showUnlinkButtonSignalX, setShowUnlinkButtonSignalX] = (0, react_1.useState)(false);
|
|
31
|
-
const [showUnlinkButtonSignalY, setShowUnlinkButtonSignalY] = (0, react_1.useState)(false);
|
|
32
28
|
const rowSpanTags = (0, react_1.useMemo)(() => {
|
|
33
29
|
return {
|
|
34
30
|
rowSpan: rowData.tableMetaInfo.rowSpan,
|
|
@@ -46,43 +42,27 @@ function ZonesTableRow({ rowData, onUnlink, contextMenu = [], onContextMenuSelec
|
|
|
46
42
|
if (axis === 'x') {
|
|
47
43
|
if (isOnZoneLevel !== undefined) {
|
|
48
44
|
if (isOnZoneLevel) {
|
|
49
|
-
setShowUnlinkButtonZoneX(false);
|
|
50
45
|
assignmentZone.removeAll('x');
|
|
51
46
|
}
|
|
52
47
|
else {
|
|
53
|
-
setShowUnlinkButtonSignalX(false);
|
|
54
48
|
assignmentSignal.removeAll('x');
|
|
55
49
|
}
|
|
56
50
|
}
|
|
57
|
-
else {
|
|
58
|
-
setShowUnlinkButtonZoneX(false);
|
|
59
|
-
setShowUnlinkButtonSignalX(false);
|
|
60
|
-
}
|
|
61
51
|
}
|
|
62
52
|
else if (axis === 'y') {
|
|
63
53
|
if (isOnZoneLevel !== undefined) {
|
|
64
54
|
if (isOnZoneLevel) {
|
|
65
|
-
setShowUnlinkButtonZoneY(false);
|
|
66
55
|
assignmentZone.removeAll('y');
|
|
67
56
|
}
|
|
68
57
|
else {
|
|
69
|
-
setShowUnlinkButtonSignalY(false);
|
|
70
58
|
assignmentSignal.removeAll('y');
|
|
71
59
|
}
|
|
72
60
|
}
|
|
73
|
-
else {
|
|
74
|
-
setShowUnlinkButtonZoneY(false);
|
|
75
|
-
setShowUnlinkButtonSignalY(false);
|
|
76
|
-
}
|
|
77
61
|
}
|
|
78
62
|
else {
|
|
79
|
-
setShowUnlinkButtonZoneX(false);
|
|
80
63
|
assignmentZone.removeAll('x');
|
|
81
|
-
setShowUnlinkButtonSignalX(false);
|
|
82
64
|
assignmentSignal.removeAll('x');
|
|
83
|
-
setShowUnlinkButtonZoneY(false);
|
|
84
65
|
assignmentZone.removeAll('y');
|
|
85
|
-
setShowUnlinkButtonSignalY(false);
|
|
86
66
|
assignmentSignal.removeAll('y');
|
|
87
67
|
}
|
|
88
68
|
}, [assignmentSignal, assignmentZone, onUnlink, rowData]);
|
|
@@ -142,6 +122,6 @@ function ZonesTableRow({ rowData, onUnlink, contextMenu = [], onContextMenuSelec
|
|
|
142
122
|
? HighlightedRowStyle
|
|
143
123
|
: (0, get_1.default)(rowData, 'tableMetaInfo.isConstantlyHighlighted', false)
|
|
144
124
|
? ConstantlyHighlightedRowStyle
|
|
145
|
-
: null, ...highlightZone.onHover, children: [(0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, children: rowIndex + 1 }), (0, jsx_runtime_1.jsx)(SignalDeltaColumn_1.default, { rowData: rowData, onHoverSignalX: onHoverSignalX, onHoverSignalY: onHoverSignalY, format: format }), (0, jsx_runtime_1.jsx)(SignalAssignmentsColumns_1.default, { rowData: rowData, assignmentSignal: assignmentSignal, onHoverSignalX: onHoverSignalX, onHoverSignalY: onHoverSignalY,
|
|
125
|
+
: null, ...highlightZone.onHover, children: [(0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, children: rowIndex + 1 }), (0, jsx_runtime_1.jsx)(SignalDeltaColumn_1.default, { rowData: rowData, onHoverSignalX: onHoverSignalX, onHoverSignalY: onHoverSignalY, format: format }), (0, jsx_runtime_1.jsx)(SignalAssignmentsColumns_1.default, { rowData: rowData, assignmentSignal: assignmentSignal, onHoverSignalX: onHoverSignalX, onHoverSignalY: onHoverSignalY, onClick: clickHandler, onUnlink: unlinkHandler, highlightSignalX: highlightSignalX, highlightSignalY: highlightSignalY }), (0, jsx_runtime_1.jsx)(ZoneAssignmentsColumns_1.default, { rowData: rowData, assignmentZone: assignmentZone, onHoverZoneX: onHoverZoneX, onHoverZoneY: onHoverZoneY, rowSpanTags: rowSpanTags, onClick: clickHandler, onUnlink: unlinkHandler, highlightZoneX: highlightZoneX, highlightZoneY: highlightZoneY }), (0, jsx_runtime_1.jsx)(ActionsColumn_1.default, { rowData: rowData, rowSpanTags: rowSpanTags })] }));
|
|
146
126
|
}
|
|
147
127
|
exports.default = ZonesTableRow;
|