nmrium 0.36.0 → 0.38.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/FooterBanner.js +1 -1
- package/lib/component/1d/Viewer1D.js +26 -21
- package/lib/component/1d/integral/Integral.d.ts +2 -6
- package/lib/component/1d/integral/IntegralResizable.d.ts +2 -6
- package/lib/component/1d/integral/IntegralResizable.js +2 -3
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +7 -9
- package/lib/component/1d/peaks/PeakAnnotation.js +1 -2
- package/lib/component/1d/ranges/Range.js +9 -8
- package/lib/component/1d/ranges/Ranges.js +5 -7
- package/lib/component/1d/tool/BaseLineZones.js +1 -2
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +4 -5
- package/lib/component/1d-2d/components/FloatMoleculeStructures/index.js +13 -17
- package/lib/component/2d/1d-tracer/Left1DChart.js +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.js +1 -1
- package/lib/component/2d/Chart2D.js +1 -1
- package/lib/component/2d/Viewer2D.js +10 -9
- package/lib/component/2d/fid/FidCanvas.js +4 -6
- package/lib/component/2d/ft/Contours.js +1 -7
- package/lib/component/2d/utilities/DimensionLayout.d.ts +9 -24
- package/lib/component/2d/utilities/scale.d.ts +2 -1
- package/lib/component/2d/utilities/scale.js +1 -1
- package/lib/component/2d/zones/Zones.js +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js +28 -21
- package/lib/component/NMRium.d.ts +2 -0
- package/lib/component/NMRium.js +22 -15
- package/lib/component/assignment/AssignmentsReducer.d.ts +1 -1
- package/lib/component/context/DispatchContext.d.ts +23 -3
- package/lib/component/context/DispatchContext.js +1 -1
- package/lib/component/context/LoggerContext.js +1 -1
- package/lib/component/elements/Button.js +7 -9
- package/lib/component/elements/IsotopesViewer.js +1 -1
- package/lib/component/elements/ReactTable/ReactTable.js +1 -2
- package/lib/component/elements/RemoveAssignmentsButton.d.ts +4 -0
- package/lib/component/{panels/RangesPanel/TableColumns → elements}/RemoveAssignmentsButton.js +14 -1
- package/lib/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib/component/elements/formik/FormikColorInput.js +1 -1
- package/lib/component/elements/formik/FormikColorPicker.js +1 -1
- package/lib/component/elements/formik/FormikColumnFormatField.js +1 -1
- package/lib/component/elements/formik/FormikInput.js +1 -1
- package/lib/component/elements/formik/FormikSelect.js +2 -2
- package/lib/component/elements/formik/FormikSlider.js +1 -1
- package/lib/component/elements/formik/FormikTextarea.js +2 -2
- package/lib/component/header/ApodizationOptionsPanel.js +4 -5
- package/lib/component/header/AutoPeakPickingOptionPanel.js +1 -2
- package/lib/component/header/BaseLineCorrectionPanel.js +4 -5
- package/lib/component/header/Header.js +5 -7
- package/lib/component/header/PhaseCorrectionPanel.js +7 -8
- package/lib/component/header/RangesPickingOptionPanel.js +1 -2
- package/lib/component/header/ZeroFillingOptionsPanel.js +3 -11
- package/lib/component/header/Zones2DOptionPanel.js +5 -6
- package/lib/component/hooks/useExport.js +1 -0
- package/lib/component/hooks/useToolsFunctions.js +8 -10
- package/lib/component/loader/DropZone.js +4 -5
- package/lib/component/loader/NoData.js +1 -1
- package/lib/component/modal/AboutPredictionModal.d.ts +2 -0
- package/lib/component/modal/AboutPredictionModal.js +49 -0
- package/lib/component/modal/AlignSpectraModal.js +1 -2
- package/lib/component/modal/EditPeakShapeModal.js +1 -2
- package/lib/component/modal/ImportPublicationStringModal.js +1 -2
- package/lib/component/modal/LoadJCAMPModal.js +2 -3
- package/lib/component/modal/MoleculeStructureEditorModal.js +24 -19
- package/lib/component/modal/PredictSpectraModal.js +24 -21
- package/lib/component/modal/changeSum/SelectMolecule.js +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +3 -4
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +2 -2
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js +2 -3
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +4 -4
- package/lib/component/modal/setting/settings-tabs/FormattingTabContent.js +2 -2
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +2 -2
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +1 -2
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +7 -6
- package/lib/component/panels/InformationPanel.js +6 -6
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +11 -20
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +27 -23
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +8 -5
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +1 -1
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js +4 -4
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +1 -2
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.js +1 -2
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +10 -13
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +1 -0
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +7 -7
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +4 -1
- package/lib/component/panels/MoleculesPanel/Utilities.js +2 -2
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +8 -9
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +3 -4
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +1 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +2 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.js +2 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/MultipleAnalysisCodeEditor.js +1 -1
- package/lib/component/panels/Panels.js +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +4 -5
- package/lib/component/panels/PeaksPanel/PeaksTable.js +4 -5
- package/lib/component/panels/RangesPanel/RangesHeader.js +12 -15
- package/lib/component/panels/RangesPanel/RangesPanel.js +24 -29
- 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/RangeAssignmentsColumn.js +2 -3
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js +3 -3
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +2 -3
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -2
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.d.ts +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +16 -14
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +16 -16
- package/lib/component/panels/SpectrumsPanel/SpectraPreferences.js +2 -2
- package/lib/component/panels/SpectrumsPanel/SpectraTable.js +7 -5
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +4 -5
- package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +3 -7
- package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +4 -2
- package/lib/component/panels/SpectrumsPanel/base/setting/processSnapPlot.js +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +4 -8
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +39 -34
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.d.ts +2 -21
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +22 -20
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts +4 -5
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +12 -16
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.d.ts +3 -7
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.d.ts +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +6 -7
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts +4 -5
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +27 -19
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts +3 -7
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +2 -2
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +15 -18
- package/lib/component/panels/ZonesPanel/ZonesTable.js +2 -51
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +3 -3
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +2 -22
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.d.ts +16 -0
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.js +52 -0
- package/lib/component/panels/databasePanel/DatabasePanel.js +9 -7
- package/lib/component/panels/filtersPanel/FilterPanel.js +1 -2
- package/lib/component/panels/filtersPanel/FiltersTable.js +8 -9
- package/lib/component/panels/header/DefaultPanelHeader.js +1 -1
- package/lib/component/panels/header/SpectraAutomaticPickingButton.js +2 -3
- package/lib/component/panels/predictionPanel/PredictionPanel.js +10 -6
- package/lib/component/reducer/IgnoreActions.d.ts +2 -1
- package/lib/component/reducer/IgnoreActions.js +35 -32
- package/lib/component/reducer/Reducer.d.ts +8 -5
- package/lib/component/reducer/Reducer.js +199 -221
- package/lib/component/reducer/actions/AssignmentsActions.d.ts +7 -6
- package/lib/component/reducer/actions/AssignmentsActions.js +2 -2
- package/lib/component/reducer/actions/CorrelationsActions.d.ts +21 -13
- package/lib/component/reducer/actions/CorrelationsActions.js +25 -20
- package/lib/component/reducer/actions/DatabaseActions.d.ts +15 -2
- package/lib/component/reducer/actions/DatabaseActions.js +5 -2
- package/lib/component/reducer/actions/DimensionsActions.d.ts +8 -3
- package/lib/component/reducer/actions/DimensionsActions.js +3 -5
- package/lib/component/reducer/actions/DomainActions.d.ts +11 -5
- package/lib/component/reducer/actions/DomainActions.js +13 -19
- package/lib/component/reducer/actions/FiltersActions.d.ts +70 -23
- package/lib/component/reducer/actions/FiltersActions.js +250 -255
- package/lib/component/reducer/actions/GlobalActions.d.ts +7 -2
- package/lib/component/reducer/actions/GlobalActions.js +3 -3
- package/lib/component/reducer/actions/IntegralsActions.d.ts +28 -7
- package/lib/component/reducer/actions/IntegralsActions.js +16 -15
- package/lib/component/reducer/actions/LoadActions.d.ts +23 -5
- package/lib/component/reducer/actions/LoadActions.js +65 -57
- package/lib/component/reducer/actions/MoleculeActions.d.ts +38 -9
- package/lib/component/reducer/actions/MoleculeActions.js +53 -20
- package/lib/component/reducer/actions/PeaksActions.d.ts +39 -8
- package/lib/component/reducer/actions/PeaksActions.js +19 -11
- package/lib/component/reducer/actions/PreferencesActions.d.ts +8 -3
- package/lib/component/reducer/actions/PreferencesActions.js +22 -7
- package/lib/component/reducer/actions/RangesActions.d.ts +85 -18
- package/lib/component/reducer/actions/RangesActions.js +80 -65
- package/lib/component/reducer/actions/SpectraAnalysisAction.d.ts +7 -1
- package/lib/component/reducer/actions/SpectrumsActions.d.ts +57 -24
- package/lib/component/reducer/actions/SpectrumsActions.js +69 -60
- package/lib/component/reducer/actions/ToolsActions.d.ts +59 -21
- package/lib/component/reducer/actions/ToolsActions.js +54 -32
- package/lib/component/reducer/actions/ZonesActions.d.ts +79 -15
- package/lib/component/reducer/actions/ZonesActions.js +68 -49
- package/lib/component/reducer/helper/Zoom1DManager.d.ts +6 -5
- package/lib/component/reducer/helper/Zoom1DManager.js +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +2 -2
- package/lib/component/reducer/helper/get2DRange.d.ts +7 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -0
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -1
- package/lib/component/reducer/types/ActionType.d.ts +6 -0
- package/lib/component/reducer/types/ActionType.js +1 -0
- package/lib/component/toolbar/BasicToolBar.js +6 -9
- package/lib/component/toolbar/FunctionToolBar.js +4 -9
- package/lib/component/toolbar/ToolBar.js +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts +2 -2
- package/lib/component/utility/Events.d.ts +4 -4
- package/lib/component/utility/Events.js +2 -2
- package/lib/component/utility/GroupByInfoKey.js +1 -1
- package/lib/component/utility/getSpectraObjectPaths.js +1 -1
- 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/PredictionManager.d.ts +5 -8
- package/lib/data/PredictionManager.js +3 -3
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.js +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts +2 -3
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +5 -4
- package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.d.ts +5 -3
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +1 -35
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.d.ts +2 -35
- package/lib/data/data1d/filter1d/baselineCorrection.d.ts +7 -10
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +1 -1
- 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 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts +5 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js +6 -8
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/zones/mapZones.d.ts +2 -0
- package/lib/data/matrixGeneration.js +4 -2
- package/lib/data/molecules/Molecule.d.ts +3 -3
- package/lib/data/molecules/MoleculeManager.d.ts +5 -5
- package/lib/data/molecules/MoleculeManager.js +1 -1
- package/lib/data/utilities/ZoneUtilities.js +0 -1
- package/lib/data/utilities/generateColor.js +1 -1
- package/lib/data/utilities/isNumber.d.ts +1 -0
- package/lib/data/utilities/isNumber.js +3 -0
- package/lib/types/NMRiumGeneralPreferences.d.ts +1 -0
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/FooterBanner.js +1 -1
- package/lib-cjs/component/1d/Viewer1D.js +25 -20
- package/lib-cjs/component/1d/integral/IntegralResizable.js +2 -3
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +7 -9
- package/lib-cjs/component/1d/peaks/PeakAnnotation.js +1 -2
- package/lib-cjs/component/1d/ranges/Range.js +9 -8
- package/lib-cjs/component/1d/ranges/Ranges.js +5 -7
- package/lib-cjs/component/1d/tool/BaseLineZones.js +1 -2
- package/lib-cjs/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +4 -5
- package/lib-cjs/component/1d-2d/components/FloatMoleculeStructures/index.js +13 -17
- package/lib-cjs/component/2d/1d-tracer/Left1DChart.js +1 -1
- package/lib-cjs/component/2d/1d-tracer/VerticalSliceChart.js +1 -1
- package/lib-cjs/component/2d/Chart2D.js +1 -1
- package/lib-cjs/component/2d/Viewer2D.js +10 -9
- package/lib-cjs/component/2d/fid/FidCanvas.js +4 -6
- package/lib-cjs/component/2d/ft/Contours.js +1 -7
- package/lib-cjs/component/2d/utilities/scale.js +1 -1
- package/lib-cjs/component/2d/zones/Zones.js +1 -1
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +28 -21
- package/lib-cjs/component/NMRium.js +19 -12
- package/lib-cjs/component/context/DispatchContext.js +1 -1
- package/lib-cjs/component/context/LoggerContext.js +1 -1
- package/lib-cjs/component/elements/Button.js +7 -9
- package/lib-cjs/component/elements/IsotopesViewer.js +1 -1
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +1 -2
- package/lib-cjs/component/{panels/RangesPanel/TableColumns → elements}/RemoveAssignmentsButton.js +15 -2
- package/lib-cjs/component/elements/Tab/Tabs.js +1 -1
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColorInput.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColorPicker.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColumnFormatField.js +1 -1
- package/lib-cjs/component/elements/formik/FormikInput.js +1 -1
- package/lib-cjs/component/elements/formik/FormikSelect.js +2 -2
- package/lib-cjs/component/elements/formik/FormikSlider.js +1 -1
- package/lib-cjs/component/elements/formik/FormikTextarea.js +2 -2
- package/lib-cjs/component/header/ApodizationOptionsPanel.js +3 -4
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +1 -2
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +4 -5
- package/lib-cjs/component/header/Header.js +5 -7
- package/lib-cjs/component/header/PhaseCorrectionPanel.js +7 -8
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +1 -2
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +3 -11
- package/lib-cjs/component/header/Zones2DOptionPanel.js +5 -6
- package/lib-cjs/component/highlight/index.js +1 -1
- package/lib-cjs/component/hooks/useExport.js +1 -0
- package/lib-cjs/component/hooks/useTableSortBy.js +1 -1
- package/lib-cjs/component/hooks/useToolsFunctions.js +8 -10
- package/lib-cjs/component/hooks/useXYReduce.js +1 -1
- package/lib-cjs/component/loader/DropZone.js +4 -5
- package/lib-cjs/component/loader/NoData.js +1 -1
- package/lib-cjs/component/modal/AboutPredictionModal.js +54 -0
- package/lib-cjs/component/modal/AlignSpectraModal.js +1 -2
- package/lib-cjs/component/modal/EditPeakShapeModal.js +1 -2
- package/lib-cjs/component/modal/ImportPublicationStringModal.js +1 -2
- package/lib-cjs/component/modal/LoadJCAMPModal.js +2 -3
- package/lib-cjs/component/modal/MoleculeStructureEditorModal.js +24 -19
- package/lib-cjs/component/modal/PredictSpectraModal.js +24 -21
- package/lib-cjs/component/modal/changeSum/SelectMolecule.js +1 -1
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +3 -4
- package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +2 -2
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +1 -1
- package/lib-cjs/component/modal/metaImportation/MetaImportationModal.js +2 -3
- package/lib-cjs/component/modal/setting/settings-tabs/DatabasesTabContent.js +4 -4
- package/lib-cjs/component/modal/setting/settings-tabs/FormattingTabContent.js +2 -2
- package/lib-cjs/component/modal/setting/settings-tabs/InfoBlockTabContent.js +2 -2
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +1 -2
- package/lib-cjs/component/panels/AutomaticAssignment/useAutoAssignments.js +7 -6
- package/lib-cjs/component/panels/InformationPanel.js +6 -6
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +11 -20
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +27 -23
- package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +7 -4
- package/lib-cjs/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +1 -1
- package/lib-cjs/component/panels/MatrixGenerationPanel/FiltersOptions.js +4 -4
- package/lib-cjs/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +1 -2
- package/lib-cjs/component/panels/MoleculesPanel/MoleculeHeader.js +1 -2
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +10 -13
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +7 -7
- package/lib-cjs/component/panels/MoleculesPanel/Utilities.js +2 -2
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +8 -9
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +3 -4
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +1 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.js +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/MultipleAnalysisCodeEditor.js +1 -1
- package/lib-cjs/component/panels/Panels.js +1 -1
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +4 -5
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +4 -5
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +12 -15
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +24 -29
- 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/RelativeColumn.js +3 -3
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +2 -3
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -2
- package/lib-cjs/component/panels/RangesPanel/hooks/useEditRangeModal.js +16 -14
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPanelHeader.js +16 -16
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPreferences.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraTable.js +7 -5
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +4 -5
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +3 -7
- package/lib-cjs/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +4 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/processSnapPlot.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +4 -8
- package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +39 -34
- package/lib-cjs/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +22 -20
- 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/SignalDeltaColumn.js +6 -7
- 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/ZonesPanel.js +15 -18
- package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +2 -51
- package/lib-cjs/component/panels/ZonesPanel/ZonesTableRow.js +1 -21
- package/lib-cjs/component/panels/ZonesPanel/hooks/useMapZones.js +56 -0
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +8 -6
- package/lib-cjs/component/panels/filtersPanel/FilterPanel.js +1 -2
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +8 -9
- package/lib-cjs/component/panels/header/DefaultPanelHeader.js +1 -1
- package/lib-cjs/component/panels/header/SpectraAutomaticPickingButton.js +2 -3
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +10 -6
- package/lib-cjs/component/reducer/IgnoreActions.js +35 -55
- package/lib-cjs/component/reducer/Reducer.js +199 -221
- package/lib-cjs/component/reducer/actions/AssignmentsActions.js +3 -3
- package/lib-cjs/component/reducer/actions/CorrelationsActions.js +23 -18
- package/lib-cjs/component/reducer/actions/DatabaseActions.js +4 -1
- package/lib-cjs/component/reducer/actions/DimensionsActions.js +3 -6
- package/lib-cjs/component/reducer/actions/DomainActions.js +15 -23
- package/lib-cjs/component/reducer/actions/FiltersActions.js +267 -272
- package/lib-cjs/component/reducer/actions/GlobalActions.js +4 -4
- package/lib-cjs/component/reducer/actions/IntegralsActions.js +19 -18
- package/lib-cjs/component/reducer/actions/LoadActions.js +68 -60
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +56 -23
- package/lib-cjs/component/reducer/actions/PeaksActions.js +23 -15
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +24 -9
- package/lib-cjs/component/reducer/actions/RangesActions.js +81 -64
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +77 -67
- package/lib-cjs/component/reducer/actions/ToolsActions.js +54 -31
- package/lib-cjs/component/reducer/actions/ZonesActions.js +73 -52
- package/lib-cjs/component/reducer/core/Constants.js +1 -1
- package/lib-cjs/component/reducer/helper/Zoom1DManager.js +2 -2
- package/lib-cjs/component/reducer/helper/ZoomHistoryManager.js +2 -2
- package/lib-cjs/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -0
- package/lib-cjs/component/reducer/types/ActionType.js +2 -0
- package/lib-cjs/component/toolbar/BasicToolBar.js +6 -9
- package/lib-cjs/component/toolbar/FunctionToolBar.js +4 -9
- package/lib-cjs/component/toolbar/ToolBar.js +1 -1
- package/lib-cjs/component/utility/GroupByInfoKey.js +1 -1
- package/lib-cjs/component/utility/getSpectraObjectPaths.js +1 -1
- package/lib-cjs/component/workspaces/exercise.js +31 -0
- package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib-cjs/data/PredictionManager.js +3 -3
- package/lib-cjs/data/SpectraManager.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/getSpectrumErrorValue.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +5 -4
- package/lib-cjs/data/data1d/multipleSpectraAnalysis.js +2 -2
- package/lib-cjs/data/data2d/Spectrum2D/contours.js +0 -1
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +1 -1
- package/lib-cjs/data/data2d/Spectrum2D/zones/changeZoneSignal.js +6 -8
- package/lib-cjs/data/matrixGeneration.js +4 -2
- package/lib-cjs/data/molecules/MoleculeManager.js +1 -1
- package/lib-cjs/data/utilities/ZoneUtilities.js +0 -1
- package/lib-cjs/data/utilities/generateColor.js +1 -1
- package/lib-cjs/data/utilities/isNumber.js +7 -0
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +35 -34
- package/lib/component/panels/RangesPanel/TableColumns/RemoveAssignmentsButton.d.ts +0 -3
- package/lib/component/reducer/actions/HistoryActions.d.ts +0 -4
- package/lib/component/reducer/actions/HistoryActions.js +0 -40
- package/lib/component/reducer/types/HistoryTypes.d.ts +0 -4
- package/lib/component/reducer/types/HistoryTypes.js +0 -4
- package/lib/component/reducer/types/Types.d.ts +0 -132
- package/lib/component/reducer/types/Types.js +0 -126
- package/lib/component/toolbar/HistoryToolBar.d.ts +0 -8
- package/lib/component/toolbar/HistoryToolBar.js +0 -30
- package/lib/data/utilities/isMolFileEmpty.d.ts +0 -1
- package/lib/data/utilities/isMolFileEmpty.js +0 -6
- package/lib-cjs/component/reducer/actions/HistoryActions.js +0 -45
- package/lib-cjs/component/reducer/types/HistoryTypes.js +0 -7
- package/lib-cjs/component/reducer/types/Types.js +0 -131
- package/lib-cjs/component/toolbar/HistoryToolBar.js +0 -35
- package/lib-cjs/data/utilities/isMolFileEmpty.js +0 -10
|
@@ -7,7 +7,6 @@ import { useDispatch } from '../../context/DispatchContext';
|
|
|
7
7
|
import IsotopesViewer from '../../elements/IsotopesViewer';
|
|
8
8
|
import Tab from '../../elements/Tab/Tab';
|
|
9
9
|
import Tabs from '../../elements/Tab/Tabs';
|
|
10
|
-
import { SET_ACTIVE_TAB, CHANGE_VISIBILITY, CHANGE_ACTIVE_SPECTRUM, } from '../../reducer/types/Types';
|
|
11
10
|
import groupByInfoKey from '../../utility/GroupByInfoKey';
|
|
12
11
|
import { SpectraTable } from './SpectraTable';
|
|
13
12
|
import SpectrumSetting from './base/setting/SpectrumSetting';
|
|
@@ -23,7 +22,7 @@ function SpectrumsTabsInner({ data, activeSpectra, activeTab, }) {
|
|
|
23
22
|
return groupByNucleus(data, true);
|
|
24
23
|
}, [data]);
|
|
25
24
|
function onTabChangeHandler(tab) {
|
|
26
|
-
dispatch({ type: SET_ACTIVE_TAB, tab: tab.tabid });
|
|
25
|
+
dispatch({ type: 'SET_ACTIVE_TAB', payload: { tab: tab.tabid } });
|
|
27
26
|
}
|
|
28
27
|
const openSettingHandler = useCallback((event, selectedSpectrum) => {
|
|
29
28
|
event.stopPropagation();
|
|
@@ -36,7 +35,7 @@ function SpectrumsTabsInner({ data, activeSpectra, activeTab, }) {
|
|
|
36
35
|
}, []);
|
|
37
36
|
const handleChangeVisibility = useCallback((d, key) => {
|
|
38
37
|
dispatch({
|
|
39
|
-
type:
|
|
38
|
+
type: 'CHANGE_SPECTRUM_VISIBILITY',
|
|
40
39
|
payload: {
|
|
41
40
|
id: d.id,
|
|
42
41
|
key,
|
|
@@ -47,7 +46,7 @@ function SpectrumsTabsInner({ data, activeSpectra, activeTab, }) {
|
|
|
47
46
|
setTimeout(() => {
|
|
48
47
|
const modifier = `shift[${e.shiftKey ? 'true' : 'false'}]_ctrl[${e.ctrlKey ? 'true' : 'false'}]`;
|
|
49
48
|
dispatch({
|
|
50
|
-
type: CHANGE_ACTIVE_SPECTRUM,
|
|
49
|
+
type: 'CHANGE_ACTIVE_SPECTRUM',
|
|
51
50
|
payload: { modifier, id: spectrum.id },
|
|
52
51
|
});
|
|
53
52
|
}, 0);
|
|
@@ -65,5 +64,5 @@ function SpectrumsTabsInner({ data, activeSpectra, activeTab, }) {
|
|
|
65
64
|
const MemoizedSpectra = memo(SpectrumsTabsInner);
|
|
66
65
|
export default function SpectrumsTabs() {
|
|
67
66
|
const { data, view: { spectra: { activeTab, activeSpectra }, }, } = useChartData();
|
|
68
|
-
return _jsx(MemoizedSpectra, {
|
|
67
|
+
return _jsx(MemoizedSpectra, { data, activeSpectra, activeTab });
|
|
69
68
|
}
|
|
@@ -18,13 +18,9 @@ function getStyle(display, key) {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
export default function ShowHideSpectrumButton({ data, onChangeVisibility, }) {
|
|
21
|
-
return (_jsxs("div", { children: [_jsx(DisplayButtons1D, {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} }), _jsx(DisplayButtons2D, { ...{
|
|
25
|
-
data,
|
|
26
|
-
onChangeVisibility,
|
|
27
|
-
} })] }));
|
|
21
|
+
return (_jsxs("div", { children: [_jsx(DisplayButtons1D, { data,
|
|
22
|
+
onChangeVisibility }), _jsx(DisplayButtons2D, { data,
|
|
23
|
+
onChangeVisibility })] }));
|
|
28
24
|
}
|
|
29
25
|
function DisplayButtons1D(props) {
|
|
30
26
|
const { data, onChangeVisibility } = props;
|
|
@@ -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
|
}
|
|
@@ -3,7 +3,6 @@ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { memo, useCallback } from 'react';
|
|
5
5
|
import { useDispatch } from '../../../../context/DispatchContext';
|
|
6
|
-
import { CHANGE_SPECTRUM_SETTING } from '../../../../reducer/types/Types';
|
|
7
6
|
import Spectrum1DSetting from './Spectrum1DSetting';
|
|
8
7
|
import Spectrum2DSetting from './Spectrum2DSetting';
|
|
9
8
|
const style = css `
|
|
@@ -68,7 +67,10 @@ function SpectrumSetting({ position, data, onClose }) {
|
|
|
68
67
|
const dispatch = useDispatch();
|
|
69
68
|
const { id, info } = data;
|
|
70
69
|
const submitHandler = useCallback((values) => {
|
|
71
|
-
dispatch({
|
|
70
|
+
dispatch({
|
|
71
|
+
type: 'CHANGE_SPECTRUM_SETTING',
|
|
72
|
+
payload: { id, display: values },
|
|
73
|
+
});
|
|
72
74
|
}, [dispatch, id]);
|
|
73
75
|
const clickHandler = useCallback((e) => {
|
|
74
76
|
if (e.target === e.currentTarget) {
|
|
@@ -18,8 +18,8 @@ export function processSnapPlot(dimension, data, yLogBase) {
|
|
|
18
18
|
function getLine(value, data, options) {
|
|
19
19
|
const { log10, abs } = Math;
|
|
20
20
|
const { yLogBase } = options;
|
|
21
|
-
const first = data.
|
|
22
|
-
const last = data.
|
|
21
|
+
const first = data.at(0)?.x ?? 0;
|
|
22
|
+
const last = data.at(-1)?.x ?? 0;
|
|
23
23
|
const inLogScale = log10(abs(value)) / log10(yLogBase);
|
|
24
24
|
return [
|
|
25
25
|
{ x: first, y: inLogScale },
|
|
@@ -171,19 +171,15 @@ function CorrelationTableRow({ additionalColumnData, correlations, correlation,
|
|
|
171
171
|
}, [contextRef]);
|
|
172
172
|
const { title, ...otherTableDataProps } = tableDataProps;
|
|
173
173
|
const t = title || '';
|
|
174
|
-
return (_jsxs("tr", { style: styleRow, children: [_jsxs("td", { title: t, ...
|
|
175
|
-
|
|
176
|
-
style: { ...tableDataProps.style, styleLabel },
|
|
177
|
-
}, onContextMenu: (e) => {
|
|
174
|
+
return (_jsxs("tr", { style: styleRow, children: [_jsxs("td", { title: t, ...otherTableDataProps,
|
|
175
|
+
style: { ...tableDataProps.style, styleLabel }, onContextMenu: (e) => {
|
|
178
176
|
if (contextMenu.length > 0) {
|
|
179
177
|
contextMenuHandler(e);
|
|
180
178
|
}
|
|
181
179
|
}, children: [getLabel(correlations, correlation), _jsx(ContextMenu, { ref: contextRef, context: contextMenu })] }), _jsx("td", { title: t, ...otherTableDataProps, children: getCorrelationDelta(correlation)
|
|
182
180
|
? getCorrelationDelta(correlation)?.toFixed(2)
|
|
183
|
-
: '' }), _jsx("td", { title: t, ...otherTableDataProps, children: correlation.atomType !== 'H' ? (_jsx(EditableColumn, { type: "number", value: correlation.equivalence, style: equivalenceCellStyle, onSave: onSaveEquivalencesHandler })) : (_jsx("text", { style: equivalenceCellStyle, children: correlation.equivalence })) }), _jsx("td", { title: t, ...otherTableDataProps, children: correlation.atomType !== 'H' ? (_jsx(EditableColumn, { type: "text", value: correlation.protonsCount.join(','), style: correlation.edited.protonsCount ? { color: 'blue' } : {}, onSave: (e) => onSaveEditNumericValuesHandler(e, 'protonsCount') })) : ('') }), _jsx("td", { title: t, ...
|
|
184
|
-
|
|
185
|
-
style: { ...tableDataProps.style, borderRight: '1px solid' },
|
|
186
|
-
}, children: correlation.atomType !== 'H' ? (_jsx(EditableColumn, { type: "text", value: correlation.hybridization
|
|
181
|
+
: '' }), _jsx("td", { title: t, ...otherTableDataProps, children: correlation.atomType !== 'H' ? (_jsx(EditableColumn, { type: "number", value: correlation.equivalence, style: equivalenceCellStyle, onSave: onSaveEquivalencesHandler })) : (_jsx("text", { style: equivalenceCellStyle, children: correlation.equivalence })) }), _jsx("td", { title: t, ...otherTableDataProps, children: correlation.atomType !== 'H' ? (_jsx(EditableColumn, { type: "text", value: correlation.protonsCount.join(','), style: correlation.edited.protonsCount ? { color: 'blue' } : {}, onSave: (e) => onSaveEditNumericValuesHandler(e, 'protonsCount') })) : ('') }), _jsx("td", { title: t, ...otherTableDataProps,
|
|
182
|
+
style: { ...tableDataProps.style, borderRight: '1px solid' }, children: correlation.atomType !== 'H' ? (_jsx(EditableColumn, { type: "text", value: correlation.hybridization
|
|
187
183
|
.map((hybrid) => `sp${hybrid}`)
|
|
188
184
|
.join(','), style: correlation.edited.hybridization ? { color: 'blue' } : {}, onSave: (e) => onSaveEditNumericValuesHandler(e, 'hybridization') })) : ('') }), additionalColumnFields] }));
|
|
189
185
|
}
|
|
@@ -12,7 +12,6 @@ import Select from '../../elements/Select';
|
|
|
12
12
|
import ToolTip from '../../elements/ToolTip/ToolTip';
|
|
13
13
|
import { useModal } from '../../elements/popup/Modal';
|
|
14
14
|
import { DISPLAYER_MODE } from '../../reducer/core/Constants';
|
|
15
|
-
import { DELETE_1D_SIGNAL, DELETE_2D_SIGNAL, DELETE_CORRELATION, SET_2D_SIGNAL_PATH_LENGTH, SET_CORRELATION, SET_CORRELATIONS, SET_CORRELATIONS_MF, SET_CORRELATIONS_TOLERANCE, } from '../../reducer/types/Types';
|
|
16
15
|
import DefaultPanelHeader from '../header/DefaultPanelHeader';
|
|
17
16
|
import CorrelationTable from './CorrelationTable/CorrelationTable';
|
|
18
17
|
import Overview from './Overview';
|
|
@@ -139,7 +138,7 @@ function SummaryPanel() {
|
|
|
139
138
|
]);
|
|
140
139
|
const handleOnSetMolecularFormula = useCallback((mf) => {
|
|
141
140
|
dispatch({
|
|
142
|
-
type: SET_CORRELATIONS_MF,
|
|
141
|
+
type: 'SET_CORRELATIONS_MF',
|
|
143
142
|
payload: {
|
|
144
143
|
mf,
|
|
145
144
|
},
|
|
@@ -147,7 +146,7 @@ function SummaryPanel() {
|
|
|
147
146
|
}, [dispatch]);
|
|
148
147
|
const handleOnSetShiftTolerance = useCallback((tolerance) => {
|
|
149
148
|
dispatch({
|
|
150
|
-
type: SET_CORRELATIONS_TOLERANCE,
|
|
149
|
+
type: 'SET_CORRELATIONS_TOLERANCE',
|
|
151
150
|
payload: {
|
|
152
151
|
tolerance,
|
|
153
152
|
},
|
|
@@ -182,7 +181,7 @@ function SummaryPanel() {
|
|
|
182
181
|
}, [filteredCorrelationsData, selectedAdditionalColumnsAtomType]);
|
|
183
182
|
const editEquivalencesSaveHandler = useCallback((correlation, value) => {
|
|
184
183
|
dispatch({
|
|
185
|
-
type: SET_CORRELATION,
|
|
184
|
+
type: 'SET_CORRELATION',
|
|
186
185
|
payload: {
|
|
187
186
|
id: correlation.id,
|
|
188
187
|
correlation: {
|
|
@@ -195,7 +194,7 @@ function SummaryPanel() {
|
|
|
195
194
|
}, [dispatch]);
|
|
196
195
|
const editNumericValuesSaveHandler = useCallback(({ correlation, values, key, }) => {
|
|
197
196
|
dispatch({
|
|
198
|
-
type: SET_CORRELATION,
|
|
197
|
+
type: 'SET_CORRELATION',
|
|
199
198
|
payload: {
|
|
200
199
|
id: correlation.id,
|
|
201
200
|
correlation: {
|
|
@@ -211,7 +210,7 @@ function SummaryPanel() {
|
|
|
211
210
|
}, [dispatch]);
|
|
212
211
|
const setCorrelationsHandler = useCallback((correlations, options) => {
|
|
213
212
|
dispatch({
|
|
214
|
-
type: SET_CORRELATIONS,
|
|
213
|
+
type: 'SET_CORRELATIONS',
|
|
215
214
|
payload: {
|
|
216
215
|
correlations,
|
|
217
216
|
options,
|
|
@@ -220,7 +219,7 @@ function SummaryPanel() {
|
|
|
220
219
|
}, [dispatch]);
|
|
221
220
|
const deleteCorrelationHandler = useCallback((correlation) => {
|
|
222
221
|
dispatch({
|
|
223
|
-
type: DELETE_CORRELATION,
|
|
222
|
+
type: 'DELETE_CORRELATION',
|
|
224
223
|
payload: {
|
|
225
224
|
correlation,
|
|
226
225
|
assignmentData,
|
|
@@ -234,29 +233,33 @@ function SummaryPanel() {
|
|
|
234
233
|
const spectrum = findSpectrum(spectraData, link.experimentID, false);
|
|
235
234
|
const range = findRange(spectrum, link.signal.id);
|
|
236
235
|
const signal = findSignal1D(spectrum, link.signal.id);
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
236
|
+
if (spectrum && range && signal) {
|
|
237
|
+
dispatch({
|
|
238
|
+
type: 'DELETE_1D_SIGNAL',
|
|
239
|
+
payload: {
|
|
240
|
+
spectrum,
|
|
241
|
+
range,
|
|
242
|
+
signal,
|
|
243
|
+
assignmentData,
|
|
244
|
+
},
|
|
245
|
+
});
|
|
246
|
+
}
|
|
246
247
|
}
|
|
247
248
|
else if (linkDim === 2) {
|
|
248
249
|
const spectrum = findSpectrum(spectraData, link.experimentID, false);
|
|
249
250
|
const zone = findZone(spectrum, link.signal.id);
|
|
250
251
|
const signal = findSignal2D(spectrum, link.signal.id);
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
252
|
+
if (zone && signal) {
|
|
253
|
+
dispatch({
|
|
254
|
+
type: 'DELETE_2D_SIGNAL',
|
|
255
|
+
payload: {
|
|
256
|
+
spectrum,
|
|
257
|
+
zone,
|
|
258
|
+
signal,
|
|
259
|
+
assignmentData,
|
|
260
|
+
},
|
|
261
|
+
});
|
|
262
|
+
}
|
|
260
263
|
}
|
|
261
264
|
}, [assignmentData, dispatch, spectraData]);
|
|
262
265
|
const changeSignalPathLengthHandler = useCallback((link) => {
|
|
@@ -265,15 +268,17 @@ function SummaryPanel() {
|
|
|
265
268
|
const spectrum = findSpectrum(spectraData, link.experimentID, false);
|
|
266
269
|
const zone = findZone(spectrum, link.signal.id);
|
|
267
270
|
const signal = findSignal2D(spectrum, link.signal.id);
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
271
|
+
if (zone && signal) {
|
|
272
|
+
dispatch({
|
|
273
|
+
type: 'SET_2D_SIGNAL_PATH_LENGTH',
|
|
274
|
+
payload: {
|
|
275
|
+
spectrum,
|
|
276
|
+
zone,
|
|
277
|
+
signal,
|
|
278
|
+
pathLength: link.signal.j?.pathLength,
|
|
279
|
+
},
|
|
280
|
+
});
|
|
281
|
+
}
|
|
277
282
|
}
|
|
278
283
|
}, [dispatch, spectraData]);
|
|
279
284
|
const editCorrelationTableCellHandler = useCallback((editedCorrelations, action, link, options) => {
|
|
@@ -252,7 +252,7 @@ function cloneCorrelationAndSetPathLength(correlation, editedLink, axis) {
|
|
|
252
252
|
function convertValuesString(valuesString, key) {
|
|
253
253
|
valuesString = valuesString
|
|
254
254
|
.toLowerCase()
|
|
255
|
-
.
|
|
255
|
+
.replaceAll(/\s+/g, '')
|
|
256
256
|
.split(',')
|
|
257
257
|
.map((token) => (token === 'sp' ? 'sp1' : token))
|
|
258
258
|
.join(',');
|
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
id: number;
|
|
3
|
-
tableMetaInfo: {
|
|
4
|
-
id: number;
|
|
5
|
-
signalIndex: number;
|
|
6
|
-
rowSpan: any;
|
|
7
|
-
signal: {
|
|
8
|
-
kind: any;
|
|
9
|
-
};
|
|
10
|
-
experiment: string;
|
|
11
|
-
};
|
|
12
|
-
x: {
|
|
13
|
-
from: number;
|
|
14
|
-
to: number;
|
|
15
|
-
};
|
|
16
|
-
y: {
|
|
17
|
-
from: number;
|
|
18
|
-
to: number;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
1
|
+
import { ZoneData } from '../hooks/useMapZones';
|
|
21
2
|
interface ActionsColumnProps {
|
|
22
|
-
rowData:
|
|
3
|
+
rowData: ZoneData;
|
|
23
4
|
rowSpanTags: any;
|
|
24
5
|
}
|
|
25
6
|
declare function ActionsColumn({ rowData, rowSpanTags }: ActionsColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,8 +7,6 @@ import { useDispatch } from '../../../context/DispatchContext';
|
|
|
7
7
|
import Select from '../../../elements/Select';
|
|
8
8
|
import { useModal, positions, transitions, } from '../../../elements/popup/Modal';
|
|
9
9
|
import EditZoneModal from '../../../modal/editZone/EditZoneModal';
|
|
10
|
-
import { CHANGE_ZONE_SIGNAL_KIND, DELETE_2D_ZONE, SAVE_EDITED_ZONE, SET_SELECTED_TOOL, SET_X_DOMAIN, SET_Y_DOMAIN, } from '../../../reducer/types/Types';
|
|
11
|
-
import { options } from '../../../toolbar/ToolTypes';
|
|
12
10
|
const selectBoxStyle = {
|
|
13
11
|
marginLeft: 2,
|
|
14
12
|
marginRight: 2,
|
|
@@ -19,18 +17,18 @@ function ActionsColumn({ rowData, rowSpanTags }) {
|
|
|
19
17
|
const dispatch = useDispatch();
|
|
20
18
|
const assignmentData = useAssignmentData();
|
|
21
19
|
const modal = useModal();
|
|
22
|
-
const changeSignalKindHandler = useCallback((
|
|
20
|
+
const changeSignalKindHandler = useCallback((kind) => {
|
|
23
21
|
dispatch({
|
|
24
|
-
type: CHANGE_ZONE_SIGNAL_KIND,
|
|
22
|
+
type: 'CHANGE_ZONE_SIGNAL_KIND',
|
|
25
23
|
payload: {
|
|
26
|
-
rowData,
|
|
27
|
-
|
|
24
|
+
zoneData: rowData,
|
|
25
|
+
kind,
|
|
28
26
|
},
|
|
29
27
|
});
|
|
30
28
|
}, [dispatch, rowData]);
|
|
31
29
|
const deleteZoneHandler = useCallback(() => {
|
|
32
30
|
dispatch({
|
|
33
|
-
type: DELETE_2D_ZONE,
|
|
31
|
+
type: 'DELETE_2D_ZONE',
|
|
34
32
|
payload: {
|
|
35
33
|
id: rowData.id,
|
|
36
34
|
assignmentData,
|
|
@@ -40,31 +38,35 @@ function ActionsColumn({ rowData, rowSpanTags }) {
|
|
|
40
38
|
const zoomZoneHandler = useCallback(() => {
|
|
41
39
|
const xMargin = Math.abs(rowData.x.from - rowData.x.to) * 10;
|
|
42
40
|
dispatch({
|
|
43
|
-
type: SET_X_DOMAIN,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
type: 'SET_X_DOMAIN',
|
|
42
|
+
payload: {
|
|
43
|
+
xDomain: rowData.x.from <= rowData.x.to
|
|
44
|
+
? [rowData.x.from - xMargin, rowData.x.to + xMargin]
|
|
45
|
+
: [rowData.x.to - xMargin, rowData.x.from + xMargin],
|
|
46
|
+
},
|
|
47
47
|
});
|
|
48
48
|
const yMargin = Math.abs(rowData.y.from - rowData.y.to) * 10;
|
|
49
49
|
dispatch({
|
|
50
|
-
type: SET_Y_DOMAIN,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
type: 'SET_Y_DOMAIN',
|
|
51
|
+
payload: {
|
|
52
|
+
yDomain: rowData.y.from <= rowData.y.to
|
|
53
|
+
? [rowData.y.from - yMargin, rowData.y.to + yMargin]
|
|
54
|
+
: [rowData.y.to - yMargin, rowData.y.from + yMargin],
|
|
55
|
+
},
|
|
54
56
|
});
|
|
55
57
|
}, [dispatch, rowData.x.from, rowData.x.to, rowData.y.from, rowData.y.to]);
|
|
56
|
-
const saveEditZoneHandler = useCallback((
|
|
58
|
+
const saveEditZoneHandler = useCallback((zone) => {
|
|
57
59
|
dispatch({
|
|
58
|
-
type: SAVE_EDITED_ZONE,
|
|
60
|
+
type: 'SAVE_EDITED_ZONE',
|
|
59
61
|
payload: {
|
|
60
|
-
|
|
62
|
+
zone,
|
|
61
63
|
},
|
|
62
64
|
});
|
|
63
65
|
}, [dispatch]);
|
|
64
66
|
const openEditZoneHandler = useCallback(() => {
|
|
65
67
|
dispatch({
|
|
66
|
-
type: SET_SELECTED_TOOL,
|
|
67
|
-
payload: { selectedTool:
|
|
68
|
+
type: 'SET_SELECTED_TOOL',
|
|
69
|
+
payload: { selectedTool: 'editRange' },
|
|
68
70
|
});
|
|
69
71
|
modal.show(_jsx(EditZoneModal, { onCloseEditZoneModal: () => modal.close(), onSaveEditZoneModal: saveEditZoneHandler, onZoomEditZoneModal: () => zoomZoneHandler(), rowData: rowData }), {
|
|
70
72
|
position: positions.MIDDLE_RIGHT,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
1
2
|
import { AssignmentsData, Axis } from '../../../assignment/AssignmentsContext';
|
|
2
|
-
import {
|
|
3
|
+
import { ZoneData } from '../hooks/useMapZones';
|
|
3
4
|
export interface SignalAssignmentsColumnProps {
|
|
4
|
-
rowData:
|
|
5
|
+
rowData: ZoneData;
|
|
5
6
|
assignment: AssignmentsData;
|
|
6
7
|
highlight: {
|
|
7
8
|
isActive: any;
|
|
@@ -9,9 +10,7 @@ export interface SignalAssignmentsColumnProps {
|
|
|
9
10
|
onHover: () => void;
|
|
10
11
|
onClick: (event: any, assignment: AssignmentsData, axis: Axis) => void;
|
|
11
12
|
onUnlink: (event: any, flag: boolean, axis: Axis) => void;
|
|
12
|
-
showUnlinkButton: boolean;
|
|
13
13
|
axis: Axis;
|
|
14
|
-
setShowUnlinkButton: (element: boolean) => void;
|
|
15
14
|
}
|
|
16
|
-
declare function SignalAssignmentsColumn({ rowData, assignment, highlight, onHover, onClick, onUnlink, axis,
|
|
15
|
+
declare function SignalAssignmentsColumn({ rowData, assignment, highlight, onHover, onClick, onUnlink, axis, }: SignalAssignmentsColumnProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
16
|
export default SignalAssignmentsColumn;
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
visibility: showUnlinkButton ? 'visible' : 'hidden',
|
|
14
|
-
padding: 0,
|
|
15
|
-
margin: 0,
|
|
16
|
-
}, onClick: (e) => onUnlink(e, false, axis), children: _jsx(FaMinusCircle, { color: "red" }) }) })] })) : assignment.isActive && assignment.activated?.axis === axis ? ('0') : ('') }));
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { RemoveAssignmentsButton, removeAssignmentCssStyle, } from '../../../elements/RemoveAssignmentsButton';
|
|
3
|
+
function SignalAssignmentsColumn({ rowData, assignment, highlight, onHover, onClick, onUnlink, axis, }) {
|
|
4
|
+
const diaIDs = rowData?.tableMetaInfo?.signal?.[axis]?.diaIDs || [];
|
|
5
|
+
const isAssignmentActive = assignment.isActive && assignment.activated?.axis === axis;
|
|
6
|
+
const tdCss = assignment.isActive || highlight.isActive
|
|
7
|
+
? {
|
|
8
|
+
color: 'red',
|
|
9
|
+
fontWeight: 'bold',
|
|
10
|
+
}
|
|
11
|
+
: {};
|
|
12
|
+
return (_jsx("td", { ...onHover, onClick: (e) => onClick(e, assignment, axis), style: { padding: '0', ...tdCss }, css: !isAssignmentActive && removeAssignmentCssStyle, children: (diaIDs?.length > 0 || isAssignmentActive) && (_jsxs(_Fragment, { children: [_jsx("span", { children: diaIDs?.length || 0 }), _jsx(RemoveAssignmentsButton, { onClick: (e) => onUnlink(e, false, axis) })] })) }));
|
|
17
13
|
}
|
|
18
14
|
export default SignalAssignmentsColumn;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { AssignmentsData, Axis } from '../../../assignment/AssignmentsContext';
|
|
2
|
-
import {
|
|
2
|
+
import { ZoneData } from '../hooks/useMapZones';
|
|
3
3
|
interface SignalAssignmentsColumnsProps {
|
|
4
|
-
rowData:
|
|
4
|
+
rowData: ZoneData;
|
|
5
5
|
onHoverSignalX: any;
|
|
6
6
|
onHoverSignalY: any;
|
|
7
|
-
showUnlinkButtonSignalX: boolean;
|
|
8
|
-
showUnlinkButtonSignalY: boolean;
|
|
9
|
-
setShowUnlinkButtonSignalX: (element: boolean) => void;
|
|
10
|
-
setShowUnlinkButtonSignalY: (element: boolean) => void;
|
|
11
7
|
onClick: (event: any, assignment: AssignmentsData, axis: Axis) => void;
|
|
12
8
|
onUnlink: (event: any, flag: boolean, axis: Axis) => void;
|
|
13
9
|
highlightSignalX: {
|
|
@@ -18,5 +14,5 @@ interface SignalAssignmentsColumnsProps {
|
|
|
18
14
|
};
|
|
19
15
|
assignmentSignal: AssignmentsData;
|
|
20
16
|
}
|
|
21
|
-
declare function SignalAssignmentsColumns({ rowData, assignmentSignal, onHoverSignalX, onHoverSignalY,
|
|
17
|
+
declare function SignalAssignmentsColumns({ rowData, assignmentSignal, onHoverSignalX, onHoverSignalY, onClick, onUnlink, highlightSignalX, highlightSignalY, }: SignalAssignmentsColumnsProps): import("react/jsx-runtime").JSX.Element;
|
|
22
18
|
export default SignalAssignmentsColumns;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
3
|
import SignalAssignmentsColumn from './SignalAssignmentsColumn';
|
|
4
|
-
function SignalAssignmentsColumns({ rowData, assignmentSignal, onHoverSignalX, onHoverSignalY,
|
|
5
|
-
return (_jsxs(Fragment, { children: [_jsx(SignalAssignmentsColumn, { rowData: rowData, assignment: assignmentSignal, highlight: highlightSignalX, onHover: onHoverSignalX, onClick: onClick, onUnlink: onUnlink, axis: "x"
|
|
4
|
+
function SignalAssignmentsColumns({ rowData, assignmentSignal, onHoverSignalX, onHoverSignalY, onClick, onUnlink, highlightSignalX, highlightSignalY, }) {
|
|
5
|
+
return (_jsxs(Fragment, { children: [_jsx(SignalAssignmentsColumn, { rowData: rowData, assignment: assignmentSignal, highlight: highlightSignalX, onHover: onHoverSignalX, onClick: onClick, onUnlink: onUnlink, axis: "x" }), _jsx(SignalAssignmentsColumn, { rowData: rowData, assignment: assignmentSignal, highlight: highlightSignalY, onHover: onHoverSignalY, onClick: onClick, onUnlink: onUnlink, axis: "y" })] }));
|
|
6
6
|
}
|
|
7
7
|
export default SignalAssignmentsColumns;
|
|
@@ -3,7 +3,6 @@ import lodashGet from 'lodash/get';
|
|
|
3
3
|
import { Fragment, useCallback } from 'react';
|
|
4
4
|
import { useDispatch } from '../../../context/DispatchContext';
|
|
5
5
|
import EditableColumn from '../../../elements/EditableColumn';
|
|
6
|
-
import { CHANGE_ZONE_SIGNAL_VALUE } from '../../../reducer/types/Types';
|
|
7
6
|
import { formatNumber } from '../../../utility/formatNumber';
|
|
8
7
|
function SignalDeltaColumn({ rowData, onHoverSignalX, onHoverSignalY, format, }) {
|
|
9
8
|
const dispatch = useDispatch();
|
|
@@ -13,20 +12,20 @@ function SignalDeltaColumn({ rowData, onHoverSignalX, onHoverSignalY, format, })
|
|
|
13
12
|
const saveXHandler = useCallback((event) => {
|
|
14
13
|
const value = event.target.value;
|
|
15
14
|
dispatch({
|
|
16
|
-
type: CHANGE_ZONE_SIGNAL_VALUE,
|
|
15
|
+
type: 'CHANGE_ZONE_SIGNAL_VALUE',
|
|
17
16
|
payload: {
|
|
18
|
-
|
|
19
|
-
signal: { id,
|
|
17
|
+
zoneId: rowData.id,
|
|
18
|
+
signal: { id, deltaX: value },
|
|
20
19
|
},
|
|
21
20
|
});
|
|
22
21
|
}, [dispatch, id, rowData.id]);
|
|
23
22
|
const saveYHandler = useCallback((event) => {
|
|
24
23
|
const value = event.target.value;
|
|
25
24
|
dispatch({
|
|
26
|
-
type: CHANGE_ZONE_SIGNAL_VALUE,
|
|
25
|
+
type: 'CHANGE_ZONE_SIGNAL_VALUE',
|
|
27
26
|
payload: {
|
|
28
|
-
|
|
29
|
-
signal: { id,
|
|
27
|
+
zoneId: rowData.id,
|
|
28
|
+
signal: { id, deltaY: value },
|
|
30
29
|
},
|
|
31
30
|
});
|
|
32
31
|
}, [dispatch, id, rowData.id]);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
1
2
|
import { MouseEvent } from 'react';
|
|
2
3
|
import { AssignmentsData, Axis } from '../../../assignment/AssignmentsContext';
|
|
3
|
-
import {
|
|
4
|
+
import { ZoneData } from '../hooks/useMapZones';
|
|
4
5
|
export interface ZoneAssignmentColumnProps {
|
|
5
|
-
rowData:
|
|
6
|
+
rowData: ZoneData;
|
|
6
7
|
axis: any;
|
|
7
8
|
onHover: () => void;
|
|
8
9
|
onClick: (event: MouseEvent, assignment: AssignmentsData, axis: Axis) => void;
|
|
@@ -11,9 +12,7 @@ export interface ZoneAssignmentColumnProps {
|
|
|
11
12
|
isActive: any;
|
|
12
13
|
};
|
|
13
14
|
assignment: AssignmentsData;
|
|
14
|
-
showUnlinkButton: boolean;
|
|
15
|
-
setShowUnlinkButton: (element: boolean) => void;
|
|
16
15
|
rowSpanTags: any;
|
|
17
16
|
}
|
|
18
|
-
declare function ZoneAssignmentColumn({ rowData, assignment, highlight, onHover, onClick, onUnlink, axis,
|
|
17
|
+
declare function ZoneAssignmentColumn({ rowData, assignment, highlight, onHover, onClick, onUnlink, axis, rowSpanTags, }: ZoneAssignmentColumnProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
18
|
export default ZoneAssignmentColumn;
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { RemoveAssignmentsButton, removeAssignmentCssStyle, } from '../../../elements/RemoveAssignmentsButton';
|
|
3
|
+
function getStyle(flag, isCompletelyAssigned) {
|
|
4
|
+
if (flag) {
|
|
5
|
+
return {
|
|
6
|
+
color: 'red',
|
|
7
|
+
fontWeight: 'bold',
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
else if (isCompletelyAssigned) {
|
|
11
|
+
return { color: 'green', fontWeight: 'bold' };
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
return { color: 'black', fontWeight: 'normal' };
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function ZoneAssignmentColumn({ rowData, assignment, highlight, onHover, onClick, onUnlink, axis, rowSpanTags, }) {
|
|
18
|
+
const diaIDs = rowData?.[axis].diaIDs || []; // diaIds at the level of zone
|
|
19
|
+
const isAssignmentActive = assignment.isActive && assignment.activated?.axis === axis;
|
|
20
|
+
const flag = isAssignmentActive ||
|
|
21
|
+
(assignment.isOver && assignment.highlighted?.axis === axis) ||
|
|
22
|
+
highlight.isActive;
|
|
23
|
+
let totalNumberOfAtoms = rowData?.[axis]?.nbAtoms || 0;
|
|
24
|
+
for (const signal of rowData?.signals || []) {
|
|
25
|
+
totalNumberOfAtoms += signal?.[axis]?.nbAtoms || 0;
|
|
26
|
+
}
|
|
27
|
+
return (_jsx("td", { ...rowSpanTags, ...onHover, onClick: (e) => onClick(e, assignment, axis), css: !isAssignmentActive && removeAssignmentCssStyle, children: (totalNumberOfAtoms > 0 || isAssignmentActive) && (_jsxs(_Fragment, { children: [totalNumberOfAtoms, " ", ' ( ', _jsx("span", { style: getStyle(flag, false), children: diaIDs?.length || 0 }), ' ) ', _jsx(RemoveAssignmentsButton, { onClick: (e) => onUnlink(e, true, axis) })] })) }));
|
|
20
28
|
}
|
|
21
29
|
export default ZoneAssignmentColumn;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { AssignmentsData, Axis } from '../../../assignment/AssignmentsContext';
|
|
2
|
-
import {
|
|
2
|
+
import { ZoneData } from '../hooks/useMapZones';
|
|
3
3
|
interface ZoneAssignmentsColumnsProps {
|
|
4
|
-
rowData:
|
|
4
|
+
rowData: ZoneData;
|
|
5
5
|
onHoverZoneX: any;
|
|
6
6
|
onHoverZoneY: any;
|
|
7
7
|
onClick: (event: any, assignment: AssignmentsData, axis: Axis) => void;
|
|
8
8
|
onUnlink: (event: any, flag: boolean, axis: Axis) => void;
|
|
9
9
|
rowSpanTags: any;
|
|
10
|
-
showUnlinkButtonZoneX: boolean;
|
|
11
|
-
showUnlinkButtonZoneY: boolean;
|
|
12
|
-
setShowUnlinkButtonZoneX: (element: boolean) => void;
|
|
13
|
-
setShowUnlinkButtonZoneY: (element: boolean) => void;
|
|
14
10
|
assignmentZone: AssignmentsData;
|
|
15
11
|
highlightZoneX: {
|
|
16
12
|
isActive: any;
|
|
@@ -19,5 +15,5 @@ interface ZoneAssignmentsColumnsProps {
|
|
|
19
15
|
isActive: any;
|
|
20
16
|
};
|
|
21
17
|
}
|
|
22
|
-
declare function ZoneAssignmentsColumns({ rowData, assignmentZone, onHoverZoneX, onHoverZoneY,
|
|
18
|
+
declare function ZoneAssignmentsColumns({ rowData, assignmentZone, onHoverZoneX, onHoverZoneY, rowSpanTags, onClick, onUnlink, highlightZoneX, highlightZoneY, }: ZoneAssignmentsColumnsProps): import("react/jsx-runtime").JSX.Element;
|
|
23
19
|
export default ZoneAssignmentsColumns;
|