nmrium 0.23.0 → 0.24.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/README.md +4 -0
- package/lib/component/1d/Chart1D.js +1 -1
- package/lib/component/1d/ExclusionZoneAnnotation.js +1 -1
- package/lib/component/1d/ExclusionZonesAnnotations.js +2 -2
- package/lib/component/1d/FooterBanner.js +7 -8
- package/lib/component/1d/Integral.js +2 -2
- package/lib/component/1d/IntegralResizable.js +1 -1
- package/lib/component/1d/IntegralsSeries.js +2 -2
- package/lib/component/1d/LinesSeries.js +1 -1
- package/lib/component/1d/PeakAnnotation.js +3 -3
- package/lib/component/1d/PeakAnnotations.js +1 -1
- package/lib/component/1d/Resizable.js +2 -2
- package/lib/component/1d/ResurrectedDatabaseRanges.js +1 -1
- package/lib/component/1d/SpectraTracker.js +3 -3
- package/lib/component/1d/Viewer1D.js +5 -5
- package/lib/component/1d/XAxis.js +1 -1
- package/lib/component/1d/YAxis.js +1 -1
- package/lib/component/1d/jCouplingGraph/JGraph.js +3 -4
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js +1 -1
- package/lib/component/1d/jCouplingGraph/JsCoupling.js +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.js +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplings.js +2 -2
- package/lib/component/1d/multiAnalysis/AnalysisRange.js +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +2 -2
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +3 -3
- package/lib/component/1d/multiplicityTree/TempMultiplicityTree.js +1 -1
- package/lib/component/1d/multiplicityTree/TreeNodes.js +2 -2
- package/lib/component/1d/ranges/Range.js +2 -2
- package/lib/component/1d/ranges/RangeIntegral.js +1 -1
- package/lib/component/1d/ranges/Ranges.js +2 -2
- package/lib/component/1d/tool/BaseLineZones.js +1 -1
- package/lib/component/1d/tool/PeakPointer.js +1 -1
- package/lib/component/1d/tool/VerticalIndicator.js +1 -1
- package/lib/component/1d/tool/XLabelPointer.js +1 -1
- package/lib/component/2d/Chart2D.js +2 -2
- package/lib/component/2d/Contours.js +6 -6
- package/lib/component/2d/FooterBanner.js +3 -3
- package/lib/component/2d/Left1DChart.js +1 -1
- package/lib/component/2d/SignalDeltaLine.js +1 -1
- package/lib/component/2d/Top1DChart.js +1 -1
- package/lib/component/2d/Viewer2D.js +3 -3
- package/lib/component/2d/XAxis.js +1 -1
- package/lib/component/2d/YAxis.js +1 -1
- package/lib/component/2d/tools/XYLabelPointer.js +1 -1
- package/lib/component/2d/tools/slicing/HorizontalSliceChart.js +1 -1
- package/lib/component/2d/tools/slicing/SlicingView.js +1 -1
- package/lib/component/2d/tools/slicing/VerticalSliceChart.js +1 -1
- package/lib/component/2d/zones/IndicationLines.js +1 -1
- package/lib/component/2d/zones/Signal.js +2 -2
- package/lib/component/2d/zones/SignalCrosshair.js +1 -1
- package/lib/component/2d/zones/Zone.js +1 -1
- package/lib/component/2d/zones/Zones.js +2 -2
- package/lib/component/ErrorOverlay.js +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js +1 -1
- package/lib/component/NMRium.d.ts +34 -33
- package/lib/component/NMRium.js +10 -10
- package/lib/component/assignment/index.js +1 -1
- package/lib/component/context/PreferencesContext.d.ts +84 -2
- package/lib/component/context/PreferencesContext.js +30 -5
- package/lib/component/elements/Button.js +1 -1
- package/lib/component/elements/ButtonToolTip.js +1 -1
- package/lib/component/elements/CheckBox.js +1 -1
- package/lib/component/elements/CloseButton.js +1 -1
- package/lib/component/elements/ColorInput.js +1 -1
- package/lib/component/elements/ContextMenu.js +1 -1
- package/lib/component/elements/DeleteButton.js +1 -1
- package/lib/component/elements/EditableColumn.js +1 -1
- package/lib/component/elements/Input.js +1 -1
- package/lib/component/elements/InputRange.js +1 -1
- package/lib/component/elements/IsotopesViewer.js +1 -1
- package/lib/component/elements/Label.js +1 -1
- package/lib/component/elements/Logo.js +1 -1
- package/lib/component/elements/MenuButton.js +3 -3
- package/lib/component/elements/MolecularFormulaInput.js +1 -1
- package/lib/component/elements/MoleculeSelection.js +1 -1
- package/lib/component/elements/NextPrev.js +2 -2
- package/lib/component/elements/NumberInput.js +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js +1 -1
- package/lib/component/elements/ReactTable/ReactTable.js +3 -3
- package/lib/component/elements/ReactTable/ReactTableExpandable.js +3 -3
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js +2 -2
- package/lib/component/elements/SaveButton.js +1 -1
- package/lib/component/elements/Select.js +1 -1
- package/lib/component/elements/Tab/DeleteButton.js +1 -1
- package/lib/component/elements/Tab/Tab.js +3 -3
- package/lib/component/elements/Tab/Tabs.js +2 -2
- package/lib/component/elements/Table/Table.js +1 -1
- package/lib/component/elements/Table/TableBody.js +1 -1
- package/lib/component/elements/Table/TableCell.js +1 -1
- package/lib/component/elements/Table/TableHead.js +1 -1
- package/lib/component/elements/Table/TableRow.js +1 -1
- package/lib/component/elements/ToggleButton.js +1 -1
- package/lib/component/elements/ToolTip/ToolTip.js +2 -2
- package/lib/component/elements/ToolbarMenu.js +3 -3
- package/lib/component/elements/accordion/Accordion.js +1 -1
- package/lib/component/elements/accordion/AccordionItem.js +2 -2
- package/lib/component/elements/dropDownButton/DropDownButton.d.ts +20 -1
- package/lib/component/elements/dropDownButton/DropDownButton.js +32 -34
- package/lib/component/elements/dropDownButton/DropDownList.d.ts +2 -9
- package/lib/component/elements/dropDownButton/DropDownList.js +39 -25
- package/lib/component/elements/formik/ErrorMessage.js +2 -2
- package/lib/component/elements/formik/FormikCheckBox.d.ts +1 -0
- package/lib/component/elements/formik/FormikCheckBox.js +2 -2
- 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 +2 -2
- package/lib/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib/component/elements/formik/FormikForm.js +1 -1
- package/lib/component/elements/formik/FormikInput.js +1 -1
- package/lib/component/elements/formik/FormikNumberInput.js +1 -1
- package/lib/component/elements/formik/FormikSelect.js +1 -1
- package/lib/component/elements/formik/FormikSlider.js +1 -1
- package/lib/component/elements/formik/FormikTextarea.js +1 -1
- package/lib/component/elements/formik/Input.js +1 -1
- package/lib/component/elements/formik/SelectBox.js +1 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js +3 -3
- package/lib/component/elements/popup/Alert/ProgressIndicator.js +1 -1
- package/lib/component/elements/popup/Alert/Provider.js +3 -3
- package/lib/component/elements/popup/Modal/ConfirmDialog.js +1 -1
- package/lib/component/elements/popup/Modal/Modal.js +1 -1
- package/lib/component/elements/popup/Modal/ModalContent.js +1 -1
- package/lib/component/elements/popup/Modal/Provider.js +3 -3
- package/lib/component/elements/popup/Transition.js +1 -1
- package/lib/component/elements/popup/Wrapper.js +1 -1
- package/lib/component/elements/toggle/ToggleButton.js +1 -1
- package/lib/component/elements/toggle/ToggleButtonGroup.js +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.js +3 -3
- package/lib/component/header/BaseLineCorrectionPanel.js +1 -1
- package/lib/component/header/Header.js +28 -14
- package/lib/component/header/ManualPhaseCorrectionPanel.js +2 -2
- package/lib/component/header/RangesPickingOptionPanel.js +2 -2
- package/lib/component/header/ZeroFillingOptionsPanel.js +1 -1
- package/lib/component/header/Zones2DOptionPanel.js +1 -1
- package/lib/component/highlight/index.js +1 -1
- package/lib/component/hooks/useActiveSpectrumStyleOptions.js +1 -1
- package/lib/component/hooks/useCheckExperimentalFeature.js +5 -4
- package/lib/component/hooks/useCheckToolsVisibility.js +1 -1
- package/lib/component/hooks/useExport.js +15 -13
- package/lib/component/hooks/useTableSortBy.d.ts +2 -1
- package/lib/component/hooks/useTableSortBy.js +27 -16
- package/lib/component/loader/DefaultSpinnerComponent.js +1 -1
- package/lib/component/loader/DropZone.js +2 -2
- package/lib/component/loader/NoData.js +1 -3
- package/lib/component/loader/Spinner.js +1 -1
- package/lib/component/loader/SpinnerContext.js +1 -1
- package/lib/component/modal/AboutUsModal.js +4 -4
- package/lib/component/modal/AlignSpectraModal.js +1 -1
- package/lib/component/modal/CopyClipboardModal.js +2 -2
- package/lib/component/modal/ExportAsMatrixModal.js +1 -1
- package/lib/component/modal/ImportPublicationStringModal.js +13 -11
- package/lib/component/modal/LoadJCAMPModal.js +1 -1
- package/lib/component/modal/ModalStyle.js +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.js +1 -1
- package/lib/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.js +1 -1
- package/lib/component/modal/MultipleSpectraFiltersModal/FromToFilter.js +1 -1
- package/lib/component/modal/MultipleSpectraFiltersModal/index.js +4 -4
- package/lib/component/modal/MultipletAnalysisModal.js +5 -5
- package/lib/component/modal/PredictSpectraModal.js +30 -23
- package/lib/component/modal/SaveAsModal.js +2 -2
- package/lib/component/modal/changeSum/ChangeSumModal.js +8 -7
- package/lib/component/modal/changeSum/SelectMolecule.js +1 -1
- package/lib/component/modal/editRange/EditRangeModal.d.ts +2 -1
- package/lib/component/modal/editRange/EditRangeModal.js +13 -9
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +33 -40
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +5 -5
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +3 -3
- package/lib/component/modal/editRange/forms/components/SignalFormTab.js +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsForm.js +5 -5
- package/lib/component/modal/editZone/EditPathLengthFormik.js +3 -3
- package/lib/component/modal/editZone/EditZoneModal.js +17 -15
- package/lib/component/modal/editZone/SignalFormTab.js +1 -1
- package/lib/component/modal/editZone/SignalsForm.js +2 -2
- package/lib/component/modal/setting/ControllersTabContent.js +1 -1
- package/lib/component/modal/setting/DisplayTabContent.d.ts +2 -2
- package/lib/component/modal/setting/DisplayTabContent.js +49 -15
- package/lib/component/modal/setting/FormattingTabContent.js +3 -3
- package/lib/component/modal/setting/GeneralSettings.js +61 -76
- package/lib/component/modal/setting/WorkspaceItem.d.ts +6 -0
- package/lib/component/modal/setting/WorkspaceItem.js +59 -0
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +2 -2
- package/lib/component/panels/InformationPanel.js +4 -4
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +4 -4
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +6 -6
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +5 -6
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +3 -3
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +5 -5
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +6 -6
- package/lib/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +1 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.js +2 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +16 -14
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +3 -3
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +5 -5
- package/lib/component/panels/Panels.js +46 -34
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +2 -2
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +4 -5
- package/lib/component/panels/PeaksPanel/PeaksTable.js +4 -4
- package/lib/component/panels/RangesPanel/RangesHeader.js +16 -14
- package/lib/component/panels/RangesPanel/RangesPanel.js +3 -4
- package/lib/component/panels/RangesPanel/RangesPreferences.js +4 -5
- package/lib/component/panels/RangesPanel/RangesTable.js +3 -3
- package/lib/component/panels/RangesPanel/RangesTableRow.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts +2 -6
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +6 -66
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +2 -2
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.d.ts +7 -0
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +74 -0
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts +7 -0
- package/lib/component/panels/RangesPanel/{useMapRanges.js → hooks/useMapRanges.js} +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +12 -10
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.js +4 -4
- package/lib/component/panels/SpectrumsPanel/SpectrumListPanel.js +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +13 -11
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.js +3 -3
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +3 -3
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.js +5 -5
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +5 -5
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +3 -3
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +4 -4
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +4 -4
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +3 -3
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +3 -3
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +2 -2
- package/lib/component/panels/SummaryPanel/Overview.js +2 -2
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +2 -2
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +4 -4
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +3 -3
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +4 -7
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js +4 -5
- package/lib/component/panels/ZonesPanel/ZonesTable.js +2 -2
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +3 -3
- package/lib/component/panels/databasePanel/DatabasePreferences.js +3 -4
- package/lib/component/panels/databasePanel/DatabaseTable.js +4 -4
- package/lib/component/panels/extra/placeholder/NoTableData.js +1 -1
- package/lib/component/panels/filtersPanel/FilterPanel.js +2 -2
- package/lib/component/panels/filtersPanel/FiltersTable.js +19 -15
- package/lib/component/panels/header/DefaultPanelHeader.js +2 -2
- package/lib/component/panels/header/PreferencesHeader.js +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptions.js +5 -3
- package/lib/component/panels/predictionPanel/PredictionPanel.js +19 -17
- package/lib/component/reducer/Reducer.d.ts +7 -0
- package/lib/component/reducer/Reducer.js +7 -3
- package/lib/component/reducer/actions/FiltersActions.js +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts +2 -2
- package/lib/component/reducer/actions/LoadActions.js +20 -15
- package/lib/component/reducer/actions/MoleculeActions.js +5 -1
- package/lib/component/reducer/preferencesReducer.d.ts +183 -36
- package/lib/component/reducer/preferencesReducer.js +192 -83
- package/lib/component/reducer/types/Types.d.ts +6 -0
- package/lib/component/tool/BrushX.js +1 -1
- package/lib/component/tool/BrushXY.js +1 -1
- package/lib/component/tool/CrossLinePointer.js +1 -1
- package/lib/component/toolbar/BasicToolBar.js +23 -27
- package/lib/component/toolbar/FunctionToolBar.js +17 -18
- package/lib/component/toolbar/HistoryToolBar.js +1 -1
- package/lib/component/toolbar/ToolBar.js +2 -2
- package/lib/component/utility/FormatNumber.js +1 -1
- package/lib/component/workspaces/Workspace.d.ts +17 -0
- package/lib/component/workspaces/basic.js +29 -34
- package/lib/component/workspaces/exercise.d.ts +2 -0
- package/lib/component/workspaces/exercise.js +49 -0
- package/lib/component/workspaces/index.d.ts +3 -2
- package/lib/component/workspaces/index.js +3 -2
- package/lib/component/workspaces/prediction.d.ts +2 -0
- package/lib/component/workspaces/prediction.js +26 -0
- package/lib/component/workspaces/process1D.js +21 -32
- package/lib/data/PredictionManager.d.ts +2 -1
- package/lib/data/PredictionManager.js +20 -13
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +4 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +2 -3
- package/lib/data/utilities/getAtom.js +1 -1
- package/lib/data/utilities/getColor.d.ts +1 -0
- package/lib/data/utilities/getColor.js +1 -1
- package/lib/types/PanelPreferencesType.d.ts +10 -0
- package/lib/types/PanelPreferencesType.js +1 -0
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/Chart1D.js +1 -1
- package/lib-cjs/component/1d/ExclusionZoneAnnotation.js +1 -1
- package/lib-cjs/component/1d/ExclusionZonesAnnotations.js +7 -3
- package/lib-cjs/component/1d/FooterBanner.js +7 -8
- package/lib-cjs/component/1d/Integral.js +2 -2
- package/lib-cjs/component/1d/IntegralResizable.js +1 -1
- package/lib-cjs/component/1d/IntegralsSeries.js +2 -2
- package/lib-cjs/component/1d/Line.js +5 -1
- package/lib-cjs/component/1d/LinesSeries.js +1 -1
- package/lib-cjs/component/1d/PeakAnnotation.js +3 -3
- package/lib-cjs/component/1d/PeakAnnotations.js +1 -1
- package/lib-cjs/component/1d/Resizable.js +2 -2
- package/lib-cjs/component/1d/ResurrectedDatabaseRanges.js +1 -1
- package/lib-cjs/component/1d/SpectraTracker.js +3 -3
- package/lib-cjs/component/1d/Viewer1D.js +10 -6
- package/lib-cjs/component/1d/XAxis.js +6 -2
- package/lib-cjs/component/1d/YAxis.js +6 -2
- package/lib-cjs/component/1d/jCouplingGraph/JGraph.js +3 -4
- package/lib-cjs/component/1d/jCouplingGraph/JGraphVerticalAxis.js +1 -1
- package/lib-cjs/component/1d/jCouplingGraph/JsCoupling.js +1 -1
- package/lib-cjs/component/1d/jCouplingGraph/JsCouplingLinks.js +1 -1
- package/lib-cjs/component/1d/jCouplingGraph/JsCouplings.js +2 -2
- package/lib-cjs/component/1d/multiAnalysis/AnalysisRange.js +1 -1
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +2 -2
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +3 -3
- package/lib-cjs/component/1d/multiplicityTree/TempMultiplicityTree.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/TreeNodes.js +2 -2
- package/lib-cjs/component/1d/ranges/Range.js +2 -2
- package/lib-cjs/component/1d/ranges/RangeIntegral.js +1 -1
- package/lib-cjs/component/1d/ranges/Ranges.js +2 -2
- package/lib-cjs/component/1d/tool/BaseLineZones.js +1 -1
- package/lib-cjs/component/1d/tool/PeakPointer.js +1 -1
- package/lib-cjs/component/1d/tool/VerticalIndicator.js +1 -1
- package/lib-cjs/component/1d/tool/XLabelPointer.js +1 -1
- package/lib-cjs/component/2d/Chart2D.js +2 -2
- package/lib-cjs/component/2d/Contours.js +6 -6
- package/lib-cjs/component/2d/FooterBanner.js +3 -3
- package/lib-cjs/component/2d/Left1DChart.js +6 -2
- package/lib-cjs/component/2d/SignalDeltaLine.js +1 -1
- package/lib-cjs/component/2d/Top1DChart.js +6 -2
- package/lib-cjs/component/2d/Viewer2D.js +8 -4
- package/lib-cjs/component/2d/XAxis.js +6 -2
- package/lib-cjs/component/2d/YAxis.js +6 -2
- package/lib-cjs/component/2d/tools/XYLabelPointer.js +1 -1
- package/lib-cjs/component/2d/tools/slicing/HorizontalSliceChart.js +6 -2
- package/lib-cjs/component/2d/tools/slicing/SlicingView.js +1 -1
- package/lib-cjs/component/2d/tools/slicing/VerticalSliceChart.js +6 -2
- package/lib-cjs/component/2d/zones/IndicationLines.js +1 -1
- package/lib-cjs/component/2d/zones/Signal.js +2 -2
- package/lib-cjs/component/2d/zones/SignalCrosshair.js +1 -1
- package/lib-cjs/component/2d/zones/Zone.js +1 -1
- package/lib-cjs/component/2d/zones/Zones.js +2 -2
- package/lib-cjs/component/ErrorOverlay.js +1 -1
- package/lib-cjs/component/EventsTrackers/BrushTracker.js +1 -1
- package/lib-cjs/component/EventsTrackers/MouseTracker.js +1 -1
- package/lib-cjs/component/NMRium.js +14 -10
- package/lib-cjs/component/assignment/index.js +1 -1
- package/lib-cjs/component/context/PreferencesContext.js +33 -4
- package/lib-cjs/component/elements/Button.js +1 -1
- package/lib-cjs/component/elements/ButtonToolTip.js +1 -1
- package/lib-cjs/component/elements/CheckBox.js +1 -1
- package/lib-cjs/component/elements/CloseButton.js +1 -1
- package/lib-cjs/component/elements/ColorInput.js +1 -1
- package/lib-cjs/component/elements/ContextMenu.js +1 -1
- package/lib-cjs/component/elements/DeleteButton.js +1 -1
- package/lib-cjs/component/elements/EditableColumn.js +1 -1
- package/lib-cjs/component/elements/Input.js +1 -1
- package/lib-cjs/component/elements/InputRange.js +1 -1
- package/lib-cjs/component/elements/IsotopesViewer.js +1 -1
- package/lib-cjs/component/elements/Label.js +1 -1
- package/lib-cjs/component/elements/Logo.js +1 -1
- package/lib-cjs/component/elements/MenuButton.js +3 -3
- package/lib-cjs/component/elements/MolecularFormulaInput.js +1 -1
- package/lib-cjs/component/elements/MoleculeSelection.js +1 -1
- package/lib-cjs/component/elements/NextPrev.js +2 -2
- package/lib-cjs/component/elements/NumberInput.js +1 -1
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableHeader.js +1 -1
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +8 -4
- package/lib-cjs/component/elements/ReactTable/ReactTableExpandable.js +3 -3
- package/lib-cjs/component/elements/ReactTable/ReactTableFlexLayout.js +2 -2
- package/lib-cjs/component/elements/SaveButton.js +1 -1
- package/lib-cjs/component/elements/Select.js +1 -1
- package/lib-cjs/component/elements/Tab/DeleteButton.js +1 -1
- package/lib-cjs/component/elements/Tab/Tab.js +3 -3
- package/lib-cjs/component/elements/Tab/Tabs.js +2 -2
- package/lib-cjs/component/elements/Table/Table.js +1 -1
- package/lib-cjs/component/elements/Table/TableBody.js +1 -1
- package/lib-cjs/component/elements/Table/TableCell.js +1 -1
- package/lib-cjs/component/elements/Table/TableHead.js +1 -1
- package/lib-cjs/component/elements/Table/TableRow.js +1 -1
- package/lib-cjs/component/elements/ToggleButton.js +1 -1
- package/lib-cjs/component/elements/ToolTip/ToolTip.js +2 -2
- package/lib-cjs/component/elements/ToolbarMenu.js +3 -3
- package/lib-cjs/component/elements/accordion/Accordion.js +1 -1
- package/lib-cjs/component/elements/accordion/AccordionItem.js +2 -2
- package/lib-cjs/component/elements/dropDownButton/DropDownButton.js +32 -34
- package/lib-cjs/component/elements/dropDownButton/DropDownList.js +39 -25
- package/lib-cjs/component/elements/formik/ErrorMessage.js +2 -2
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +2 -2
- 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 +2 -2
- package/lib-cjs/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib-cjs/component/elements/formik/FormikForm.js +1 -1
- package/lib-cjs/component/elements/formik/FormikInput.js +1 -1
- package/lib-cjs/component/elements/formik/FormikNumberInput.js +1 -1
- package/lib-cjs/component/elements/formik/FormikSelect.js +1 -1
- package/lib-cjs/component/elements/formik/FormikSlider.js +1 -1
- package/lib-cjs/component/elements/formik/FormikTextarea.js +1 -1
- package/lib-cjs/component/elements/formik/Input.js +1 -1
- package/lib-cjs/component/elements/formik/SelectBox.js +1 -1
- package/lib-cjs/component/elements/linearAxis/LinearVerticalAxis.js +3 -3
- package/lib-cjs/component/elements/popup/Alert/ProgressIndicator.js +1 -1
- package/lib-cjs/component/elements/popup/Alert/Provider.js +3 -3
- package/lib-cjs/component/elements/popup/Modal/ConfirmDialog.js +1 -1
- package/lib-cjs/component/elements/popup/Modal/Modal.js +1 -1
- package/lib-cjs/component/elements/popup/Modal/ModalContent.js +1 -1
- package/lib-cjs/component/elements/popup/Modal/Provider.js +3 -3
- package/lib-cjs/component/elements/popup/Transition.js +1 -1
- package/lib-cjs/component/elements/popup/Wrapper.js +1 -1
- package/lib-cjs/component/elements/toggle/ToggleButton.js +1 -1
- package/lib-cjs/component/elements/toggle/ToggleButtonGroup.js +1 -1
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +3 -3
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +6 -2
- package/lib-cjs/component/header/Header.js +27 -13
- package/lib-cjs/component/header/ManualPhaseCorrectionPanel.js +7 -3
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +2 -2
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +1 -1
- package/lib-cjs/component/header/Zones2DOptionPanel.js +1 -1
- package/lib-cjs/component/highlight/index.js +1 -1
- package/lib-cjs/component/hooks/useActiveSpectrumStyleOptions.js +1 -1
- package/lib-cjs/component/hooks/useCheckExperimentalFeature.js +5 -4
- package/lib-cjs/component/hooks/useCheckToolsVisibility.js +1 -1
- package/lib-cjs/component/hooks/useExport.js +15 -13
- package/lib-cjs/component/hooks/useTableSortBy.js +27 -16
- package/lib-cjs/component/loader/DefaultSpinnerComponent.js +1 -1
- package/lib-cjs/component/loader/DropZone.js +2 -2
- package/lib-cjs/component/loader/NoData.js +1 -3
- package/lib-cjs/component/loader/Spinner.js +1 -1
- package/lib-cjs/component/loader/SpinnerContext.js +1 -1
- package/lib-cjs/component/modal/AboutUsModal.js +4 -4
- package/lib-cjs/component/modal/AlignSpectraModal.js +1 -1
- package/lib-cjs/component/modal/CopyClipboardModal.js +2 -2
- package/lib-cjs/component/modal/ExportAsMatrixModal.js +1 -1
- package/lib-cjs/component/modal/ImportPublicationStringModal.js +18 -12
- package/lib-cjs/component/modal/LoadJCAMPModal.js +1 -1
- package/lib-cjs/component/modal/ModalStyle.js +1 -1
- package/lib-cjs/component/modal/MoleculeStructureEditorModal.js +1 -1
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.js +1 -1
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/FromToFilter.js +1 -1
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/index.js +9 -5
- package/lib-cjs/component/modal/MultipletAnalysisModal.js +5 -5
- package/lib-cjs/component/modal/PredictSpectraModal.js +35 -24
- package/lib-cjs/component/modal/SaveAsModal.js +2 -2
- package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +13 -8
- package/lib-cjs/component/modal/changeSum/SelectMolecule.js +1 -1
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +13 -9
- package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +38 -41
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +5 -5
- package/lib-cjs/component/modal/editRange/forms/components/DeltaInput.js +3 -3
- package/lib-cjs/component/modal/editRange/forms/components/SignalFormTab.js +1 -1
- package/lib-cjs/component/modal/editRange/forms/components/SignalsForm.js +5 -5
- package/lib-cjs/component/modal/editRange/forms/validation/EditRangeValidation.js +5 -1
- package/lib-cjs/component/modal/editZone/EditPathLengthFormik.js +3 -3
- package/lib-cjs/component/modal/editZone/EditZoneModal.js +17 -15
- package/lib-cjs/component/modal/editZone/SignalFormTab.js +1 -1
- package/lib-cjs/component/modal/editZone/SignalsForm.js +2 -2
- package/lib-cjs/component/modal/editZone/validation/EditZoneValidation.js +5 -1
- package/lib-cjs/component/modal/setting/ControllersTabContent.js +1 -1
- package/lib-cjs/component/modal/setting/DisplayTabContent.js +48 -14
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +3 -3
- package/lib-cjs/component/modal/setting/GeneralSettings.js +64 -75
- package/lib-cjs/component/modal/setting/WorkspaceItem.js +64 -0
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignment.js +1 -1
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +2 -2
- package/lib-cjs/component/panels/InformationPanel.js +4 -4
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +4 -4
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +6 -6
- package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +5 -6
- package/lib-cjs/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +3 -3
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +5 -5
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +6 -6
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +1 -1
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.js +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +16 -14
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +8 -4
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +5 -5
- package/lib-cjs/component/panels/Panels.js +46 -34
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +2 -2
- package/lib-cjs/component/panels/PeaksPanel/PeaksPreferences.js +4 -5
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +9 -5
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +16 -14
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +3 -4
- package/lib-cjs/component/panels/RangesPanel/RangesPreferences.js +4 -5
- package/lib-cjs/component/panels/RangesPanel/RangesTable.js +3 -3
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/ActionsColumn.js +5 -65
- package/lib-cjs/component/panels/RangesPanel/TableColumns/CouplingColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RelativeColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/hooks/useEditRangeModal.js +80 -0
- package/lib-cjs/component/panels/RangesPanel/{useMapRanges.js → hooks/useMapRanges.js} +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPanelHeader.js +12 -10
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListItem.js +4 -4
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListPanel.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +13 -11
- package/lib-cjs/component/panels/SpectrumsPanel/base/ColorIndicator.js +3 -3
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +3 -3
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.js +5 -5
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +5 -5
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +3 -3
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +4 -4
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +4 -4
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +8 -4
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +3 -3
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/Overview.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/SetMolecularFormulaModal.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/SetShiftTolerancesModal.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +4 -4
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +3 -3
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +4 -7
- package/lib-cjs/component/panels/ZonesPanel/ZonesPreferences.js +4 -5
- package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/ZonesTableRow.js +1 -1
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +3 -3
- package/lib-cjs/component/panels/databasePanel/DatabasePreferences.js +3 -4
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +4 -4
- package/lib-cjs/component/panels/extra/placeholder/NoTableData.js +1 -1
- package/lib-cjs/component/panels/filtersPanel/FilterPanel.js +2 -2
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +19 -15
- package/lib-cjs/component/panels/header/DefaultPanelHeader.js +2 -2
- package/lib-cjs/component/panels/header/PreferencesHeader.js +1 -1
- package/lib-cjs/component/panels/predictionPanel/PredictionOptions.js +10 -4
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +19 -17
- package/lib-cjs/component/reducer/IgnoreActions.js +5 -1
- package/lib-cjs/component/reducer/Reducer.js +14 -5
- package/lib-cjs/component/reducer/actions/FiltersActions.js +6 -2
- package/lib-cjs/component/reducer/actions/LoadActions.js +25 -16
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +10 -2
- package/lib-cjs/component/reducer/actions/RangesActions.js +5 -1
- package/lib-cjs/component/reducer/actions/SpectraAnalysisAction.js +5 -1
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +5 -1
- package/lib-cjs/component/reducer/actions/ToolsActions.js +5 -1
- package/lib-cjs/component/reducer/actions/ZonesActions.js +5 -1
- package/lib-cjs/component/reducer/preferencesReducer.js +191 -81
- package/lib-cjs/component/tool/BrushX.js +1 -1
- package/lib-cjs/component/tool/BrushXY.js +1 -1
- package/lib-cjs/component/tool/CrossLinePointer.js +1 -1
- package/lib-cjs/component/toolbar/BasicToolBar.js +23 -27
- package/lib-cjs/component/toolbar/FunctionToolBar.js +22 -19
- package/lib-cjs/component/toolbar/HistoryToolBar.js +1 -1
- package/lib-cjs/component/toolbar/ToolBar.js +2 -2
- package/lib-cjs/component/toolbar/ToolTypes.js +5 -1
- package/lib-cjs/component/utility/FormatNumber.js +1 -1
- package/lib-cjs/component/workspaces/basic.js +29 -34
- package/lib-cjs/component/workspaces/exercise.js +52 -0
- package/lib-cjs/component/workspaces/index.js +3 -2
- package/lib-cjs/component/workspaces/prediction.js +29 -0
- package/lib-cjs/component/workspaces/process1D.js +21 -32
- package/lib-cjs/data/Filters.js +5 -1
- package/lib-cjs/data/FiltersManager.js +5 -1
- package/lib-cjs/data/PredictionManager.js +19 -12
- package/lib-cjs/data/SpectraManager.js +5 -1
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +9 -2
- package/lib-cjs/data/data1d/Spectrum1D/shift/getShiftX.js +5 -1
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +7 -4
- package/lib-cjs/data/data2d/Spectrum2D/shift/getShift.js +5 -1
- package/lib-cjs/data/utilities/getAtom.js +1 -1
- package/lib-cjs/data/utilities/getColor.js +2 -1
- package/lib-cjs/types/PanelPreferencesType.js +2 -0
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +21 -21
- package/lib/component/panels/RangesPanel/useMapRanges.d.ts +0 -6
- package/lib/component/workspaces/exercise1D.d.ts +0 -2
- package/lib/component/workspaces/exercise1D.js +0 -46
- package/lib-cjs/component/workspaces/exercise1D.js +0 -49
|
@@ -9,17 +9,13 @@ const react_1 = require("@emotion/react");
|
|
|
9
9
|
const react_2 = require("react");
|
|
10
10
|
const fa_1 = require("react-icons/fa");
|
|
11
11
|
const SignalsKinds_1 = require("../../../../data/constants/SignalsKinds");
|
|
12
|
-
const assignment_1 = require("../../../assignment");
|
|
13
|
-
const DispatchContext_1 = require("../../../context/DispatchContext");
|
|
14
12
|
const Select_1 = __importDefault(require("../../../elements/Select"));
|
|
15
|
-
const
|
|
16
|
-
const EditRangeModal_1 = __importDefault(require("../../../modal/editRange/EditRangeModal"));
|
|
17
|
-
const Types_1 = require("../../../reducer/types/Types");
|
|
18
|
-
const ToolTypes_1 = require("../../../toolbar/ToolTypes");
|
|
13
|
+
const useEditRangeModal_1 = __importDefault(require("../hooks/useEditRangeModal"));
|
|
19
14
|
const styles = (0, react_1.css) `
|
|
20
15
|
width: 66px;
|
|
21
16
|
padding: 0 !important;
|
|
22
|
-
button {
|
|
17
|
+
button {import useEditRangeModal from './../../../hooks/useEditRangeModal';
|
|
18
|
+
|
|
23
19
|
background-color: transparent;
|
|
24
20
|
border: none;
|
|
25
21
|
padding: 5px;
|
|
@@ -36,63 +32,7 @@ const selectBoxStyle = {
|
|
|
36
32
|
height: '20px',
|
|
37
33
|
};
|
|
38
34
|
function ActionsColumn({ rowData, onHoverSignal, rowSpanTags, }) {
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const assignmentData = (0, assignment_1.useAssignmentData)();
|
|
42
|
-
const zoomRangeHandler = (0, react_2.useCallback)(() => {
|
|
43
|
-
const margin = Math.abs(rowData.from - rowData.to);
|
|
44
|
-
dispatch({
|
|
45
|
-
type: Types_1.SET_X_DOMAIN,
|
|
46
|
-
xDomain: [rowData.from - margin, rowData.to + margin],
|
|
47
|
-
});
|
|
48
|
-
}, [dispatch, rowData.from, rowData.to]);
|
|
49
|
-
const deleteRangeHandler = (0, react_2.useCallback)(() => {
|
|
50
|
-
dispatch({
|
|
51
|
-
type: Types_1.DELETE_RANGE,
|
|
52
|
-
payload: {
|
|
53
|
-
data: { id: rowData.id, assignmentData },
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
}, [assignmentData, dispatch, rowData.id]);
|
|
57
|
-
const changeRangeSignalKindHandler = (0, react_2.useCallback)((value) => {
|
|
58
|
-
dispatch({
|
|
59
|
-
type: Types_1.CHANGE_RANGE_SIGNAL_KIND,
|
|
60
|
-
payload: {
|
|
61
|
-
data: { rowData, value },
|
|
62
|
-
},
|
|
63
|
-
});
|
|
64
|
-
}, [dispatch, rowData]);
|
|
65
|
-
const saveEditRangeHandler = (0, react_2.useCallback)((editedRowData) => {
|
|
66
|
-
dispatch({
|
|
67
|
-
type: Types_1.SAVE_EDITED_RANGE,
|
|
68
|
-
payload: {
|
|
69
|
-
editedRowData,
|
|
70
|
-
assignmentData,
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
|
-
}, [assignmentData, dispatch]);
|
|
74
|
-
const closeEditRangeHandler = (0, react_2.useCallback)(() => {
|
|
75
|
-
dispatch({ type: Types_1.RESET_SELECTED_TOOL });
|
|
76
|
-
modal.close();
|
|
77
|
-
}, [dispatch, modal]);
|
|
78
|
-
const openEditRangeHandler = (0, react_2.useCallback)(() => {
|
|
79
|
-
dispatch({
|
|
80
|
-
type: Types_1.SET_SELECTED_TOOL,
|
|
81
|
-
payload: { selectedTool: ToolTypes_1.options.editRange.id, tempRange: rowData },
|
|
82
|
-
});
|
|
83
|
-
modal.show((0, jsx_runtime_1.jsx)(EditRangeModal_1.default, { onCloseEditRangeModal: closeEditRangeHandler, onSaveEditRangeModal: saveEditRangeHandler, onZoomEditRangeModal: zoomRangeHandler, range: rowData }, void 0), {
|
|
84
|
-
position: Modal_1.positions.MIDDLE_RIGHT,
|
|
85
|
-
transition: Modal_1.transitions.SCALE,
|
|
86
|
-
isBackgroundBlur: false,
|
|
87
|
-
});
|
|
88
|
-
}, [
|
|
89
|
-
closeEditRangeHandler,
|
|
90
|
-
dispatch,
|
|
91
|
-
modal,
|
|
92
|
-
rowData,
|
|
93
|
-
saveEditRangeHandler,
|
|
94
|
-
zoomRangeHandler,
|
|
95
|
-
]);
|
|
96
|
-
return ((0, jsx_runtime_1.jsxs)(react_2.Fragment, { children: [(0, jsx_runtime_1.jsx)("td", { ...onHoverSignal, children: (0, jsx_runtime_1.jsx)(Select_1.default, { onChange: changeRangeSignalKindHandler, data: SignalsKinds_1.SignalKinds, defaultValue: rowData.tableMetaInfo.signal.kind, style: selectBoxStyle }, void 0) }, void 0), (0, jsx_runtime_1.jsxs)("td", { ...rowSpanTags, css: styles, children: [(0, jsx_runtime_1.jsx)("button", { type: "button", className: "delete-button", onClick: deleteRangeHandler, children: (0, jsx_runtime_1.jsx)(fa_1.FaRegTrashAlt, {}, void 0) }, void 0), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "zoom-button", onClick: zoomRangeHandler, children: (0, jsx_runtime_1.jsx)(fa_1.FaSearchPlus, { title: "Zoom to range in spectrum" }, void 0) }, void 0), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "edit-button", onClick: openEditRangeHandler, children: (0, jsx_runtime_1.jsx)(fa_1.FaEdit, { color: "blue" }, void 0) }, void 0)] }, void 0)] }, void 0));
|
|
35
|
+
const { editRange, deleteRange, changeRangeSignalKind, zoomRange } = (0, useEditRangeModal_1.default)(rowData);
|
|
36
|
+
return ((0, jsx_runtime_1.jsxs)(react_2.Fragment, { children: [(0, jsx_runtime_1.jsx)("td", { ...onHoverSignal, children: (0, jsx_runtime_1.jsx)(Select_1.default, { onChange: changeRangeSignalKind, data: SignalsKinds_1.SignalKinds, defaultValue: rowData.tableMetaInfo.signal.kind, style: selectBoxStyle }) }), (0, jsx_runtime_1.jsxs)("td", { ...rowSpanTags, css: styles, children: [(0, jsx_runtime_1.jsx)("button", { type: "button", className: "delete-button", onClick: deleteRange, children: (0, jsx_runtime_1.jsx)(fa_1.FaRegTrashAlt, {}) }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "zoom-button", onClick: zoomRange, children: (0, jsx_runtime_1.jsx)(fa_1.FaSearchPlus, { title: "Zoom to range in spectrum" }) }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "edit-button", onClick: editRange, children: (0, jsx_runtime_1.jsx)(fa_1.FaEdit, { color: "blue" }) })] })] }));
|
|
97
37
|
}
|
|
98
38
|
exports.default = ActionsColumn;
|
|
@@ -9,6 +9,6 @@ function CouplingColumn({ rowData, onHoverSignal }) {
|
|
|
9
9
|
const result = (0, get_1.default)(rowData, 'tableMetaInfo.signal.js');
|
|
10
10
|
return ((0, jsx_runtime_1.jsx)("td", { ...onHoverSignal, children: result
|
|
11
11
|
?.map((coupling) => !isNaN(coupling.coupling) ? coupling.coupling.toFixed(1) : '')
|
|
12
|
-
.join(',') }
|
|
12
|
+
.join(',') }));
|
|
13
13
|
}
|
|
14
14
|
exports.default = CouplingColumn;
|
|
@@ -36,10 +36,10 @@ function RangeAssignmentsColumn({ rowData, assignment, highlight, onUnlinkVisibi
|
|
|
36
36
|
highlight.isActive,
|
|
37
37
|
highlightData.highlight.sourceData?.type,
|
|
38
38
|
]);
|
|
39
|
-
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHover, ...{ onClick: (e) => onLink?.(e, assignment) }, children: rowData.nbAtoms !== undefined && rowData.nbAtoms > 0 ? (rowData.diaIDs && rowData.diaIDs.length > 0 ? ((0, jsx_runtime_1.jsxs)("div", { onMouseEnter: () => visibilityChangeHandler(true), onMouseLeave: () => visibilityChangeHandler(false), children: [rowData.nbAtoms, " ", ' ( ', (0, jsx_runtime_1.jsx)("span", { style: spanCss, children: diaIDs.length }
|
|
39
|
+
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHover, ...{ onClick: (e) => onLink?.(e, assignment) }, children: rowData.nbAtoms !== undefined && rowData.nbAtoms > 0 ? (rowData.diaIDs && rowData.diaIDs.length > 0 ? ((0, jsx_runtime_1.jsxs)("div", { onMouseEnter: () => visibilityChangeHandler(true), onMouseLeave: () => visibilityChangeHandler(false), children: [rowData.nbAtoms, " ", ' ( ', (0, jsx_runtime_1.jsx)("span", { style: spanCss, children: diaIDs.length }), ' ) ', (0, jsx_runtime_1.jsx)("sup", { children: (0, jsx_runtime_1.jsx)("button", { type: "button", style: {
|
|
40
40
|
visibility: unlinkVisibility ? 'visible' : 'hidden',
|
|
41
41
|
padding: 0,
|
|
42
42
|
margin: 0,
|
|
43
|
-
}, onClick: (e) => onUnlink?.(e, true), children: (0, jsx_runtime_1.jsx)(fa_1.FaMinusCircle, { color: "red" }
|
|
43
|
+
}, onClick: (e) => onUnlink?.(e, true), children: (0, jsx_runtime_1.jsx)(fa_1.FaMinusCircle, { color: "red" }) }) })] })) : assignment.isActive ? ((0, jsx_runtime_1.jsxs)("div", { children: [`${rowData.nbAtoms} (`, (0, jsx_runtime_1.jsx)("span", { style: spanStyle, children: "0" }), ')'] })) : (rowData.nbAtoms)) : assignment.isActive ? ((0, jsx_runtime_1.jsxs)("div", { children: ['0 (', (0, jsx_runtime_1.jsx)("span", { style: spanStyle, children: "0" }), ')'] })) : ('') }));
|
|
44
44
|
}
|
|
45
45
|
exports.default = (0, react_1.memo)(RangeAssignmentsColumn);
|
|
@@ -7,6 +7,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
7
7
|
const react_1 = require("react");
|
|
8
8
|
const FormatNumber_1 = __importDefault(require("../../../utility/FormatNumber"));
|
|
9
9
|
function RangeColumn({ value, rowSpanTags, onHoverRange, format, }) {
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHoverRange, children: (0, FormatNumber_1.default)(value, format) }
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHoverRange, children: (0, FormatNumber_1.default)(value, format) }));
|
|
11
11
|
}
|
|
12
12
|
exports.default = (0, react_1.memo)(RangeColumn);
|
|
@@ -25,6 +25,6 @@ function RelativeColumn({ rowData, rowSpanTags, onHoverRange, format }) {
|
|
|
25
25
|
},
|
|
26
26
|
});
|
|
27
27
|
}, [dispatch, rowData.id]);
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHoverRange, children: (0, jsx_runtime_1.jsx)(EditableColumn_1.default, { value: integralVal, onSave: saveHandler, type: "number", style: { padding: '0.1rem 0.4rem' } }
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)("td", { ...rowSpanTags, ...onHoverRange, children: (0, jsx_runtime_1.jsx)(EditableColumn_1.default, { value: integralVal, onSave: saveHandler, type: "number", style: { padding: '0.1rem 0.4rem' } }) }));
|
|
29
29
|
}
|
|
30
30
|
exports.default = RelativeColumn;
|
|
@@ -29,6 +29,6 @@ function SignalAssignmentsColumn({ rowData, onHover, assignment, highlight, onUn
|
|
|
29
29
|
visibility: unlinkVisibility ? 'visible' : 'hidden',
|
|
30
30
|
padding: 0,
|
|
31
31
|
margin: 0,
|
|
32
|
-
}, onClick: (e) => onUnlink?.(e, false), children: (0, jsx_runtime_1.jsx)(fa_1.FaMinusCircle, { color: "red" }
|
|
32
|
+
}, onClick: (e) => onUnlink?.(e, false), children: (0, jsx_runtime_1.jsx)(fa_1.FaMinusCircle, { color: "red" }) }) })] })) : assignment.isActive ? ('0') : ('') }));
|
|
33
33
|
}
|
|
34
34
|
exports.default = (0, react_1.memo)(SignalAssignmentsColumn);
|
|
@@ -25,7 +25,7 @@ function SignalDeltaColumn({ rowData, onHoverSignal, preferences, }) {
|
|
|
25
25
|
});
|
|
26
26
|
}, [dispatch, rowData.id, signal.id]);
|
|
27
27
|
if (!signal)
|
|
28
|
-
return (0, jsx_runtime_1.jsx)("td", { children: '' }
|
|
29
|
-
return ((0, jsx_runtime_1.jsx)("td", { ...onHoverSignal, children: !(0, MultiplicityUtilities_1.checkMultiplicity)(signal.multiplicity, ['m']) ? (`${format(rowData.from, 'fromFormat')} - ${format(rowData.to, 'toFormat')}`) : ((0, jsx_runtime_1.jsx)(EditableColumn_1.default, { value: signal.delta.toFixed(3), onSave: saveHandler, type: "number", style: { padding: '0.1rem 0.4rem' } }
|
|
28
|
+
return (0, jsx_runtime_1.jsx)("td", { children: '' });
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)("td", { ...onHoverSignal, children: !(0, MultiplicityUtilities_1.checkMultiplicity)(signal.multiplicity, ['m']) ? (`${format(rowData.from, 'fromFormat')} - ${format(rowData.to, 'toFormat')}`) : ((0, jsx_runtime_1.jsx)(EditableColumn_1.default, { value: signal.delta.toFixed(3), onSave: saveHandler, type: "number", style: { padding: '0.1rem 0.4rem' } })) }));
|
|
30
30
|
}
|
|
31
31
|
exports.default = SignalDeltaColumn;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const assignment_1 = require("../../../assignment");
|
|
9
|
+
const DispatchContext_1 = require("../../../context/DispatchContext");
|
|
10
|
+
const Modal_1 = require("../../../elements/popup/Modal");
|
|
11
|
+
const options_1 = require("../../../elements/popup/options");
|
|
12
|
+
const EditRangeModal_1 = __importDefault(require("../../../modal/editRange/EditRangeModal"));
|
|
13
|
+
const Types_1 = require("../../../reducer/types/Types");
|
|
14
|
+
const ToolTypes_1 = require("../../../toolbar/ToolTypes");
|
|
15
|
+
function useEditRangeModal(range) {
|
|
16
|
+
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
17
|
+
const modal = (0, Modal_1.useModal)();
|
|
18
|
+
const assignmentData = (0, assignment_1.useAssignmentData)();
|
|
19
|
+
const zoomRange = (0, react_1.useCallback)(() => {
|
|
20
|
+
const margin = Math.abs(range.from - range.to);
|
|
21
|
+
dispatch({
|
|
22
|
+
type: Types_1.SET_X_DOMAIN,
|
|
23
|
+
xDomain: [range.from - margin, range.to + margin],
|
|
24
|
+
});
|
|
25
|
+
}, [dispatch, range.from, range.to]);
|
|
26
|
+
const deleteRange = (0, react_1.useCallback)(() => {
|
|
27
|
+
dispatch({
|
|
28
|
+
type: Types_1.DELETE_RANGE,
|
|
29
|
+
payload: {
|
|
30
|
+
data: { id: range.id, assignmentData },
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}, [assignmentData, dispatch, range.id]);
|
|
34
|
+
const changeRangeSignalKind = (0, react_1.useCallback)((value) => {
|
|
35
|
+
dispatch({
|
|
36
|
+
type: Types_1.CHANGE_RANGE_SIGNAL_KIND,
|
|
37
|
+
payload: {
|
|
38
|
+
data: { rowData: range, value },
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
}, [dispatch, range]);
|
|
42
|
+
const saveEditRangeHandler = (0, react_1.useCallback)((editedRowData) => {
|
|
43
|
+
dispatch({
|
|
44
|
+
type: Types_1.SAVE_EDITED_RANGE,
|
|
45
|
+
payload: {
|
|
46
|
+
editedRowData,
|
|
47
|
+
assignmentData,
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
}, [assignmentData, dispatch]);
|
|
51
|
+
const closeEditRangeHandler = (0, react_1.useCallback)(() => {
|
|
52
|
+
dispatch({ type: Types_1.RESET_SELECTED_TOOL });
|
|
53
|
+
modal.close();
|
|
54
|
+
}, [dispatch, modal]);
|
|
55
|
+
const editRange = (0, react_1.useCallback)(() => {
|
|
56
|
+
dispatch({
|
|
57
|
+
type: Types_1.SET_SELECTED_TOOL,
|
|
58
|
+
payload: { selectedTool: ToolTypes_1.options.editRange.id, tempRange: range },
|
|
59
|
+
});
|
|
60
|
+
modal.show((0, jsx_runtime_1.jsx)(EditRangeModal_1.default, { onCloseEditRangeModal: closeEditRangeHandler, onSaveEditRangeModal: saveEditRangeHandler, onZoomEditRangeModal: zoomRange, range: range }), {
|
|
61
|
+
position: options_1.positions.MIDDLE_RIGHT,
|
|
62
|
+
transition: options_1.transitions.SCALE,
|
|
63
|
+
isBackgroundBlur: false,
|
|
64
|
+
});
|
|
65
|
+
}, [
|
|
66
|
+
closeEditRangeHandler,
|
|
67
|
+
dispatch,
|
|
68
|
+
modal,
|
|
69
|
+
range,
|
|
70
|
+
saveEditRangeHandler,
|
|
71
|
+
zoomRange,
|
|
72
|
+
]);
|
|
73
|
+
return (0, react_1.useMemo)(() => ({
|
|
74
|
+
editRange,
|
|
75
|
+
deleteRange,
|
|
76
|
+
zoomRange,
|
|
77
|
+
changeRangeSignalKind,
|
|
78
|
+
}), [changeRangeSignalKind, deleteRange, editRange, zoomRange]);
|
|
79
|
+
}
|
|
80
|
+
exports.default = useEditRangeModal;
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const react_1 = require("react");
|
|
7
|
-
const generateID_1 = __importDefault(require("
|
|
7
|
+
const generateID_1 = __importDefault(require("../../../../data/utilities/generateID"));
|
|
8
8
|
function useMapRanges(data) {
|
|
9
9
|
return (0, react_1.useMemo)(() => {
|
|
10
10
|
const _rangesData = [];
|
|
@@ -70,21 +70,23 @@ function SpectraPanelHeaderInner({ data, activeSpectrum, activeTab, displayerMod
|
|
|
70
70
|
const resetScaleHandler = (0, react_1.useCallback)(() => {
|
|
71
71
|
dispatch({ type: Types_1.RESET_SPECTRA_SCALE });
|
|
72
72
|
}, [dispatch]);
|
|
73
|
-
const automaticPickingHandler = (0, react_1.useCallback)(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
const automaticPickingHandler = (0, react_1.useCallback)(() => {
|
|
74
|
+
void (async () => {
|
|
75
|
+
const hideLoading = await alert.showLoading('Automatic Ranges/Zones detection for all spectra in progress');
|
|
76
|
+
setTimeout(() => {
|
|
77
|
+
dispatch({ type: Types_1.AUTO_RANGES_SPECTRA_PICKING });
|
|
78
|
+
dispatch({ type: Types_1.AUTO_ZONES_SPECTRA_PICKING });
|
|
79
|
+
hideLoading();
|
|
80
|
+
}, 0);
|
|
81
|
+
})();
|
|
80
82
|
}, [dispatch, alert]);
|
|
81
|
-
return ((0, jsx_runtime_1.jsxs)(DefaultPanelHeader_1.default, { onDelete: handleDelete, counter: spectrums?.length, deleteToolTip: "Delete all spectra", children: [(0, jsx_runtime_1.jsx)(ButtonToolTip_1.default, { popupTitle: "Hide all spectra", onClick: hideAllSpectrumsHandler, children: (0, jsx_runtime_1.jsx)(fa_1.FaEyeSlash, {}
|
|
83
|
+
return ((0, jsx_runtime_1.jsxs)(DefaultPanelHeader_1.default, { onDelete: handleDelete, counter: spectrums?.length, deleteToolTip: "Delete all spectra", children: [(0, jsx_runtime_1.jsx)(ButtonToolTip_1.default, { popupTitle: "Hide all spectra", onClick: hideAllSpectrumsHandler, children: (0, jsx_runtime_1.jsx)(fa_1.FaEyeSlash, {}) }), (0, jsx_runtime_1.jsx)(ButtonToolTip_1.default, { popupTitle: "Show all spectra", onClick: showAllSpectrumsHandler, children: (0, jsx_runtime_1.jsx)(fa_1.FaEye, {}) }), activeSpectrum && activeTab && activeTab.split(',').length > 1 && ((0, jsx_runtime_1.jsx)(ButtonToolTip_1.default, { popupTitle: "Add missing projection", onClick: addMissingProjectionHandler, children: (0, jsx_runtime_1.jsx)(fa_1.FaCreativeCommonsSamplingPlus, {}) })), displayerMode === Constants_1.DISPLAYER_MODE.DM_1D && spectrums.length > 1 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ButtonToolTip_1.default, { popupTitle: "Reset Scale", onClick: resetScaleHandler, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrResetScale, {}) }), (0, jsx_runtime_1.jsx)(ButtonToolTip_1.default, { popupTitle: "Same Top", onClick: setSameTopHandler, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrSameTop, {}) })] })), data && data.length > 0 && isAutomaticPickingVisible && ((0, jsx_runtime_1.jsx)(ButtonToolTip_1.default, { popupTitle: "Automatic Ranges/Zones picking for all spectra", onClick: automaticPickingHandler, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrRangePicking, {}) }))] }));
|
|
82
84
|
}
|
|
83
85
|
const MemoizedSpectraPanelHeader = (0, react_1.memo)(SpectraPanelHeaderInner);
|
|
84
86
|
function SpectrumsTabs({ spectrums }) {
|
|
85
87
|
const { data, activeSpectrum, activeTab, displayerMode } = (0, ChartContext_1.useChartData)();
|
|
86
88
|
const isToolVisible = (0, useCheckToolsVisibility_1.useCheckToolsVisibility)();
|
|
87
|
-
const isAutomaticPickingVisible = isToolVisible('
|
|
89
|
+
const isAutomaticPickingVisible = isToolVisible('autoRangesTool');
|
|
88
90
|
return ((0, jsx_runtime_1.jsx)(MemoizedSpectraPanelHeader, { ...{
|
|
89
91
|
data,
|
|
90
92
|
activeSpectrum,
|
|
@@ -92,6 +94,6 @@ function SpectrumsTabs({ spectrums }) {
|
|
|
92
94
|
displayerMode,
|
|
93
95
|
spectrums,
|
|
94
96
|
isAutomaticPickingVisible,
|
|
95
|
-
} }
|
|
97
|
+
} }));
|
|
96
98
|
}
|
|
97
99
|
exports.default = SpectrumsTabs;
|
|
@@ -57,16 +57,16 @@ function SpectrumListItem({ activeSpectrum, markersVisible, data, onChangeVisibi
|
|
|
57
57
|
...(activated
|
|
58
58
|
? { backgroundColor: '#fafafa' }
|
|
59
59
|
: { opacity: activeSpectrum ? 0.2 : 1 }),
|
|
60
|
-
}, onContextMenu: onContextMenu, children: [(0, jsx_runtime_1.jsx)(ShowHideSpectrumButton_1.default, { data: data, onChangeVisibility: onChangeVisibility, style: styles.button }
|
|
60
|
+
}, onContextMenu: onContextMenu, children: [(0, jsx_runtime_1.jsx)(ShowHideSpectrumButton_1.default, { data: data, onChangeVisibility: onChangeVisibility, style: styles.button }), (0, jsx_runtime_1.jsxs)("div", { "data-test-id": "activate-deactivate-spectrum-button", style: styles.name, onClick: () => onChangeActiveSpectrum(data), children: [(0, jsx_runtime_1.jsx)("div", { style: { ...styles.icon, width: '16px' }, children: data.info.isFid ? ((0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrFid, {})) : data.info.dimension === 2 ? ((0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmr2D, {})) : ((0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrFt, {})) }), (0, jsx_runtime_1.jsx)("span", { style: styles.info, children: name }), (0, jsx_runtime_1.jsx)("div", { style: styles.info,
|
|
61
61
|
// eslint-disable-next-line react/no-danger
|
|
62
62
|
dangerouslySetInnerHTML: {
|
|
63
63
|
__html: data.info && formatValueAsHTML(data.info.solvent),
|
|
64
|
-
} }
|
|
64
|
+
} }), (0, jsx_runtime_1.jsxs)("span", { style: styles.info, children: [(0, jsx_runtime_1.jsx)("span", { style: {
|
|
65
65
|
borderLeft: '0.55px solid #e5e5e5',
|
|
66
66
|
paddingRight: '5px',
|
|
67
|
-
} }
|
|
67
|
+
} }), data.info?.experiment] }), (0, jsx_runtime_1.jsx)("span", { style: styles.info, children: data.info?.pulse })] }), (0, jsx_runtime_1.jsx)(ShowHideMarkersButton_1.default, { data: data, style: {
|
|
68
68
|
...styles.icon,
|
|
69
69
|
...styles.button,
|
|
70
|
-
}, onChangeMarkersVisibility: onChangeMarkersVisibility, markersVisible: markersVisible }
|
|
70
|
+
}, onChangeMarkersVisibility: onChangeMarkersVisibility, markersVisible: markersVisible }), (0, jsx_runtime_1.jsx)(ColorIndicator_1.default, { style: styles.button, dimension: data.info.dimension, color: { positiveColor, color, negativeColor }, activated: activated, onClick: (event) => onOpenSettingModal(data, event) })] }));
|
|
71
71
|
}
|
|
72
72
|
exports.default = (0, react_1.memo)(SpectrumListItem);
|
|
@@ -19,6 +19,6 @@ function SpectrumListPanel() {
|
|
|
19
19
|
const tabChangeHandler = (0, react_1.useCallback)((e) => {
|
|
20
20
|
setSpectrums(e.data ? e.data : []);
|
|
21
21
|
}, []);
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: styles, children: [(0, jsx_runtime_1.jsx)(SpectraPanelHeader_1.default, { spectrums: spectrums }
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: styles, children: [(0, jsx_runtime_1.jsx)(SpectraPanelHeader_1.default, { spectrums: spectrums }), (0, jsx_runtime_1.jsx)(SpectrumsTabs_1.default, { onTabChange: tabChangeHandler })] }));
|
|
23
23
|
}
|
|
24
24
|
exports.default = (0, react_1.memo)(SpectrumListPanel);
|
|
@@ -71,15 +71,17 @@ function SpectrumsTabsInner({ data, activeSpectrum, activeTab, onTabChange, }) {
|
|
|
71
71
|
const contextMenu = (0, react_1.useMemo)(() => [
|
|
72
72
|
{
|
|
73
73
|
label: 'Copy to Clipboard',
|
|
74
|
-
onClick:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
onClick: (spectrumData) => {
|
|
75
|
+
void (async () => {
|
|
76
|
+
const { x, y, info } = spectrumData;
|
|
77
|
+
const success = await (0, Export_1.copyTextToClipboard)(JSON.stringify({ x, y, info }, undefined, 2));
|
|
78
|
+
if (success) {
|
|
79
|
+
alert.success('Data copied to clipboard');
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
alert.error('Copy to clipboard failed');
|
|
83
|
+
}
|
|
84
|
+
})();
|
|
83
85
|
},
|
|
84
86
|
},
|
|
85
87
|
{
|
|
@@ -127,11 +129,11 @@ function SpectrumsTabsInner({ data, activeSpectrum, activeTab, onTabChange, }) {
|
|
|
127
129
|
setIsSettingModalDisplayed(false);
|
|
128
130
|
}, []);
|
|
129
131
|
return ((0, jsx_runtime_1.jsxs)("div", { style: { height: 'calc(100% - 25px)' }, children: [(0, jsx_runtime_1.jsx)(Tabs_1.default, { activeTab: activeTab, onClick: onTabChangeHandler, children: spectrumsGroupByNucleus &&
|
|
130
|
-
Object.keys(spectrumsGroupByNucleus).map((group) => ((0, jsx_runtime_1.jsx)(Tab_1.default, { tablabel: group, tabid: group, children: spectrumsGroupByNucleus[group]?.map((d) => ((0, jsx_runtime_1.jsx)(SpectrumListItem_1.default, { activeSpectrum: activeSpectrum, markersVisible: markersVisible, data: d, onChangeVisibility: handleChangeVisibility, onChangeMarkersVisibility: handleChangeMarkersVisibility, onChangeActiveSpectrum: handleChangeActiveSpectrum, onOpenSettingModal: openSettingHandler, onContextMenu: (e) => contextMenuHandler(e, d) }, d.id))) }, group))) }
|
|
132
|
+
Object.keys(spectrumsGroupByNucleus).map((group) => ((0, jsx_runtime_1.jsx)(Tab_1.default, { tablabel: group, tabid: group, children: spectrumsGroupByNucleus[group]?.map((d) => ((0, jsx_runtime_1.jsx)(SpectrumListItem_1.default, { activeSpectrum: activeSpectrum, markersVisible: markersVisible, data: d, onChangeVisibility: handleChangeVisibility, onChangeMarkersVisibility: handleChangeMarkersVisibility, onChangeActiveSpectrum: handleChangeActiveSpectrum, onOpenSettingModal: openSettingHandler, onContextMenu: (e) => contextMenuHandler(e, d) }, d.id))) }, group))) }), (0, jsx_runtime_1.jsx)(ContextMenu_1.default, { ref: contextRef, context: contextMenu }), isSettingModalDisplayed ? ((0, jsx_runtime_1.jsx)(SpectrumSetting_1.default, { onClose: mouseLeaveHandler, data: selectedSpectrumData, position: settingModalPosition })) : null] }));
|
|
131
133
|
}
|
|
132
134
|
const MemoizedSpectra = (0, react_1.memo)(SpectrumsTabsInner);
|
|
133
135
|
function SpectrumsTabs({ onTabChange }) {
|
|
134
136
|
const { data, activeSpectrum, activeTab } = (0, ChartContext_1.useChartData)();
|
|
135
|
-
return ((0, jsx_runtime_1.jsx)(MemoizedSpectra, { ...{ data, activeSpectrum, activeTab, onTabChange } }
|
|
137
|
+
return ((0, jsx_runtime_1.jsx)(MemoizedSpectra, { ...{ data, activeSpectrum, activeTab, onTabChange } }));
|
|
136
138
|
}
|
|
137
139
|
exports.default = SpectrumsTabs;
|
|
@@ -9,13 +9,13 @@ function ColorIndicator1D({ color, activated }) {
|
|
|
9
9
|
width: '12px',
|
|
10
10
|
opacity: activated ? 1 : 0.1,
|
|
11
11
|
display: 'inline-block',
|
|
12
|
-
} }
|
|
12
|
+
} }));
|
|
13
13
|
}
|
|
14
14
|
function ColorIndicator2D({ positiveColor, negativeColor, activated, }) {
|
|
15
|
-
return ((0, jsx_runtime_1.jsx)("svg", { width: "12", height: "12", viewBox: "0 0 12 12", opacity: activated ? 1 : 0.1, children: (0, jsx_runtime_1.jsxs)("g", { children: [(0, jsx_runtime_1.jsx)("path", { d: "M0,0H12L0,12Z", fill: positiveColor, strokeWidth: "0" }
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)("svg", { width: "12", height: "12", viewBox: "0 0 12 12", opacity: activated ? 1 : 0.1, children: (0, jsx_runtime_1.jsxs)("g", { children: [(0, jsx_runtime_1.jsx)("path", { d: "M0,0H12L0,12Z", fill: positiveColor, strokeWidth: "0" }), (0, jsx_runtime_1.jsx)("path", { d: "M12,12H0L12,0Z", fill: negativeColor, strokeWidth: "0" })] }) }));
|
|
16
16
|
}
|
|
17
17
|
function ColorIndicator(props) {
|
|
18
18
|
const { style, onClick = () => null, activated } = props;
|
|
19
|
-
return ((0, jsx_runtime_1.jsx)("button", { style: style, type: "button", onClick: onClick, children: props.dimension === 2 ? ((0, jsx_runtime_1.jsx)(ColorIndicator2D, { ...props.color, activated: activated }
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)("button", { style: style, type: "button", onClick: onClick, children: props.dimension === 2 ? ((0, jsx_runtime_1.jsx)(ColorIndicator2D, { ...props.color, activated: activated })) : ((0, jsx_runtime_1.jsx)(ColorIndicator1D, { activated: activated, ...props.color })) }));
|
|
20
20
|
}
|
|
21
21
|
exports.default = (0, react_1.memo)(ColorIndicator);
|
|
@@ -11,6 +11,6 @@ function ShowHideMarkersButton({ data, onChangeMarkersVisibility, markersVisible
|
|
|
11
11
|
opacity: isMarkerVisible(data.id) && data.peaks && data.peaks.values.length > 0
|
|
12
12
|
? 1
|
|
13
13
|
: 0.1,
|
|
14
|
-
}, type: "button", onClick: () => onChangeMarkersVisibility(data), disabled: data.peaks && data.peaks.values.length === 0, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrPeaks, {}
|
|
14
|
+
}, type: "button", onClick: () => onChangeMarkersVisibility(data), disabled: data.peaks && data.peaks.values.length === 0, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrPeaks, {}) }));
|
|
15
15
|
}
|
|
16
16
|
exports.default = ShowHideMarkersButton;
|
|
@@ -17,7 +17,7 @@ function ShowHideSpectrumButton({ data, onChangeVisibility, style, }) {
|
|
|
17
17
|
opacity: 0.1,
|
|
18
18
|
fill: data.display.color,
|
|
19
19
|
}),
|
|
20
|
-
} }
|
|
20
|
+
} }) })), data.info.dimension === 2 && ((0, jsx_runtime_1.jsxs)("div", { style: { minWidth: '40px' }, children: [(0, jsx_runtime_1.jsx)("button", { style: { ...style, width: '20px', minWidth: '20px' }, type: "button", onClick: () => onChangeVisibility(data, 'isPositiveVisible'), children: (0, jsx_runtime_1.jsx)(fa_1.FaEye, { style: {
|
|
21
21
|
...(isVisible(data.id, 'isPositiveVisible')
|
|
22
22
|
? {
|
|
23
23
|
opacity: 1,
|
|
@@ -28,7 +28,7 @@ function ShowHideSpectrumButton({ data, onChangeVisibility, style, }) {
|
|
|
28
28
|
opacity: 0.1,
|
|
29
29
|
fill: data.display.positiveColor,
|
|
30
30
|
}),
|
|
31
|
-
} }
|
|
31
|
+
} }) }), (0, jsx_runtime_1.jsx)("button", { style: { ...style, width: '20px', minWidth: '20px' }, type: "button", onClick: () => onChangeVisibility(data, 'isNegativeVisible'), children: (0, jsx_runtime_1.jsx)(fa_1.FaEye, { style: {
|
|
32
32
|
...(isVisible(data.id, 'isNegativeVisible')
|
|
33
33
|
? {
|
|
34
34
|
opacity: 1,
|
|
@@ -39,6 +39,6 @@ function ShowHideSpectrumButton({ data, onChangeVisibility, style, }) {
|
|
|
39
39
|
opacity: 0.1,
|
|
40
40
|
fill: data.display.negativeColor,
|
|
41
41
|
}),
|
|
42
|
-
} }
|
|
42
|
+
} }) })] }))] }));
|
|
43
43
|
}
|
|
44
44
|
exports.default = ShowHideSpectrumButton;
|
|
@@ -49,32 +49,32 @@ function Spectrum1DHistogram({ color = 'red', data, options = {}, }) {
|
|
|
49
49
|
flexDirection: 'column',
|
|
50
50
|
alignItems: 'center',
|
|
51
51
|
justifyContent: 'center',
|
|
52
|
-
}, children: [(0, jsx_runtime_1.jsx)("div", { style: { display: 'block' }, children: (0, jsx_runtime_1.jsxs)(react_plot_1.Plot, { width: 180, height: 220, children: [(0, jsx_runtime_1.jsx)(react_plot_1.Heading, { title: "Sanplot" }
|
|
52
|
+
}, children: [(0, jsx_runtime_1.jsx)("div", { style: { display: 'block' }, children: (0, jsx_runtime_1.jsxs)(react_plot_1.Plot, { width: 180, height: 220, children: [(0, jsx_runtime_1.jsx)(react_plot_1.Heading, { title: "Sanplot" }), (0, jsx_runtime_1.jsx)(react_plot_1.LineSeries, { data: processedData.sanPlot.positive, xAxis: "x", yAxis: "y", label: "positive", lineStyle: {
|
|
53
53
|
stroke: color,
|
|
54
54
|
strokeWidth: 1.2,
|
|
55
55
|
}, markerStyle: {
|
|
56
56
|
fill: color,
|
|
57
57
|
stroke: color,
|
|
58
|
-
} }
|
|
58
|
+
} }), (0, jsx_runtime_1.jsx)(react_plot_1.LineSeries, { data: processedData.lines.positive, xAxis: "x", yAxis: "y", label: "noise level", lineStyle: {
|
|
59
59
|
stroke: 'blue',
|
|
60
60
|
strokeWidth: 0.8,
|
|
61
61
|
strokeDasharray: '3, 3',
|
|
62
62
|
}, markerStyle: {
|
|
63
63
|
fill: color,
|
|
64
64
|
stroke: color,
|
|
65
|
-
} }
|
|
65
|
+
} }), (0, jsx_runtime_1.jsx)(react_plot_1.Axis, { id: "x", label: "Pt", position: "bottom", tickLabelStyle: { fontSize: '0.6rem' }, labelStyle: { fontSize: '0.6rem' } }), (0, jsx_runtime_1.jsx)(react_plot_1.Axis, { id: "y", label: `Intensity [Log${yLogBase}]`, position: "left", tickLabelStyle: { fontSize: '0.6rem' }, labelStyle: { fontSize: '0.7rem' } }), (0, jsx_runtime_1.jsx)(react_plot_1.Legend, { position: "embedded", bottom: 5, right: 60 })] }) }), (0, jsx_runtime_1.jsx)("div", { style: { display: 'block', width: 180, height: 180 }, children: (0, jsx_runtime_1.jsxs)(react_plot_1.Plot, { width: 180, height: 180, children: [(0, jsx_runtime_1.jsx)(react_plot_1.LineSeries, { data: processedData.sanPlot.negative, xAxis: "x", yAxis: "y", label: "negative", lineStyle: {
|
|
66
66
|
stroke: color,
|
|
67
67
|
strokeWidth: 1.2,
|
|
68
68
|
}, markerStyle: {
|
|
69
69
|
fill: color,
|
|
70
70
|
stroke: color,
|
|
71
|
-
} }
|
|
71
|
+
} }), (0, jsx_runtime_1.jsx)(react_plot_1.LineSeries, { data: processedData.lines.negative, xAxis: "x", yAxis: "y", label: "noise level", lineStyle: {
|
|
72
72
|
stroke: 'blue',
|
|
73
73
|
strokeWidth: 0.8,
|
|
74
74
|
strokeDasharray: '3, 3',
|
|
75
75
|
}, markerStyle: {
|
|
76
76
|
fill: color,
|
|
77
77
|
stroke: color,
|
|
78
|
-
} }
|
|
78
|
+
} }), (0, jsx_runtime_1.jsx)(react_plot_1.Axis, { id: "x", label: "Pt", position: "bottom", tickLabelStyle: { fontSize: '0.6rem' }, labelStyle: { fontSize: '0.5rem' } }), (0, jsx_runtime_1.jsx)(react_plot_1.Axis, { id: "y", label: `Intensity [Log${yLogBase}]`, position: "left", tickLabelStyle: { fontSize: '0.6rem' }, labelStyle: { fontSize: '0.7rem' } }), (0, jsx_runtime_1.jsx)(react_plot_1.Legend, { position: "embedded", bottom: 5, right: 60 })] }) })] }));
|
|
79
79
|
}
|
|
80
80
|
exports.default = (0, react_1.memo)(Spectrum1DHistogram);
|
|
@@ -15,6 +15,6 @@ function Spectrum1DSetting({ data: SpectrumData, onSubmit, }) {
|
|
|
15
15
|
refForm.current.submitForm();
|
|
16
16
|
}
|
|
17
17
|
}, []);
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)(FormikForm_1.default, { ref: refForm, initialValues: SpectrumData.display, onSubmit: onSubmit, children: (0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex', flexDirection: 'column', gap: '1.25rem' }, children: [(0, jsx_runtime_1.jsx)("div", { style: { display: 'block', position: 'relative' }, children: (0, jsx_runtime_1.jsx)(FormikColorPicker_1.default, { name: "color", onColorChange: triggerSubmitHandler }
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)(FormikForm_1.default, { ref: refForm, initialValues: SpectrumData.display, onSubmit: onSubmit, children: (0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex', flexDirection: 'column', gap: '1.25rem' }, children: [(0, jsx_runtime_1.jsx)("div", { style: { display: 'block', position: 'relative' }, children: (0, jsx_runtime_1.jsx)(FormikColorPicker_1.default, { name: "color", onColorChange: triggerSubmitHandler }) }), (0, jsx_runtime_1.jsx)(Spectrum1DHistogram_1.default, { color: "red", data: SpectrumData.data })] }) }));
|
|
19
19
|
}
|
|
20
20
|
exports.default = Spectrum1DSetting;
|
|
@@ -44,7 +44,7 @@ function Spectrum2DHistogram({ color = 'red', data, options = {}, }) {
|
|
|
44
44
|
}
|
|
45
45
|
return { sanPlot, lines };
|
|
46
46
|
}, [data.z, options, yLogBase]);
|
|
47
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { style: { textAlign: 'center', paddingBottom: 5, paddingTop: 5 }, children: "San Plot" }
|
|
47
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { style: { textAlign: 'center', paddingBottom: 5, paddingTop: 5 }, children: "San Plot" }), (0, jsx_runtime_1.jsxs)("div", { style: {
|
|
48
48
|
borderTop: '1px solid #ededed',
|
|
49
49
|
marginTop: '10px',
|
|
50
50
|
paddingTop: '10px',
|
|
@@ -56,26 +56,26 @@ function Spectrum2DHistogram({ color = 'red', data, options = {}, }) {
|
|
|
56
56
|
}, markerStyle: {
|
|
57
57
|
fill: color,
|
|
58
58
|
stroke: color,
|
|
59
|
-
} }
|
|
59
|
+
} }), (0, jsx_runtime_1.jsx)(react_plot_1.LineSeries, { data: processedData.lines.positive, xAxis: "x", yAxis: "y", label: "noise level", lineStyle: {
|
|
60
60
|
stroke: 'blue',
|
|
61
61
|
strokeWidth: 0.8,
|
|
62
62
|
strokeDasharray: '3, 3',
|
|
63
63
|
}, markerStyle: {
|
|
64
64
|
fill: color,
|
|
65
65
|
stroke: color,
|
|
66
|
-
} }
|
|
66
|
+
} }), (0, jsx_runtime_1.jsx)(react_plot_1.Axis, { id: "x", label: "Pt", position: "bottom", tickLabelStyle: { fontSize: '0.6rem' }, labelStyle: { fontSize: '0.6rem' } }), (0, jsx_runtime_1.jsx)(react_plot_1.Axis, { id: "y", label: `Intensity [Log ${yLogBase}]`, position: "left", tickLabelStyle: { fontSize: '0.6rem' }, labelStyle: { fontSize: '0.7rem' } }), (0, jsx_runtime_1.jsx)(react_plot_1.Legend, { position: "embedded", bottom: 90, right: 5 })] }), (0, jsx_runtime_1.jsxs)(react_plot_1.Plot, { width: 220, height: 180, children: [(0, jsx_runtime_1.jsx)(react_plot_1.LineSeries, { data: processedData.sanPlot.negative, xAxis: "x", yAxis: "y", label: "negative", lineStyle: {
|
|
67
67
|
stroke: color,
|
|
68
68
|
strokeWidth: 1.2,
|
|
69
69
|
}, markerStyle: {
|
|
70
70
|
fill: color,
|
|
71
71
|
stroke: color,
|
|
72
|
-
} }
|
|
72
|
+
} }), (0, jsx_runtime_1.jsx)(react_plot_1.LineSeries, { data: processedData.lines.negative, xAxis: "x", yAxis: "y", label: "noise level", lineStyle: {
|
|
73
73
|
stroke: 'blue',
|
|
74
74
|
strokeWidth: 0.8,
|
|
75
75
|
strokeDasharray: '3, 3',
|
|
76
76
|
}, markerStyle: {
|
|
77
77
|
fill: color,
|
|
78
78
|
stroke: color,
|
|
79
|
-
} }
|
|
79
|
+
} }), (0, jsx_runtime_1.jsx)(react_plot_1.Axis, { id: "x", label: "Pt", position: "bottom", tickLabelStyle: { fontSize: '0.6rem' }, labelStyle: { fontSize: '0.5rem' } }), (0, jsx_runtime_1.jsx)(react_plot_1.Axis, { id: "y", position: "left", tickLabelStyle: { fontSize: '0.6rem' }, labelStyle: { fontSize: '0.7rem' } }), (0, jsx_runtime_1.jsx)(react_plot_1.Legend, { position: "embedded", bottom: 90, right: 5 })] })] })] }));
|
|
80
80
|
}
|
|
81
81
|
exports.default = (0, react_1.memo)(Spectrum2DHistogram);
|
|
@@ -32,6 +32,6 @@ function Spectrum2DSetting({ data: SpectrumData, onSubmit, }) {
|
|
|
32
32
|
const triggerSubmitHandler = (0, react_2.useCallback)(() => {
|
|
33
33
|
refForm.current.submitForm();
|
|
34
34
|
}, []);
|
|
35
|
-
return ((0, jsx_runtime_1.jsx)(FormikForm_1.default, { ref: refForm, initialValues: SpectrumData.display, onSubmit: onSubmit, children: (0, jsx_runtime_1.jsxs)("div", { css: style, children: [(0, jsx_runtime_1.jsxs)("div", { className: "positive", children: [(0, jsx_runtime_1.jsx)("span", { style: { padding: '0 10px' }, children: "Positive" }
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)(FormikForm_1.default, { ref: refForm, initialValues: SpectrumData.display, onSubmit: onSubmit, children: (0, jsx_runtime_1.jsxs)("div", { css: style, children: [(0, jsx_runtime_1.jsxs)("div", { className: "positive", children: [(0, jsx_runtime_1.jsx)("span", { style: { padding: '0 10px' }, children: "Positive" }), (0, jsx_runtime_1.jsx)(FormikColorPicker_1.default, { name: "positiveColor", onColorChange: triggerSubmitHandler }), (0, jsx_runtime_1.jsxs)("div", { style: { padding: '5px' }, children: [(0, jsx_runtime_1.jsx)("span", { className: "label", children: "contour Levels [ min - max ]" }), (0, jsx_runtime_1.jsx)(FormikSlider_1.default, { name: "contourOptions.positive.contourLevels", onAfterChange: triggerSubmitHandler }), (0, jsx_runtime_1.jsx)("span", { className: "label", children: "number of Layers " }), (0, jsx_runtime_1.jsx)(FormikInput_1.default, { name: "contourOptions.positive.numberOfLayers", onChange: triggerSubmitHandler, type: "number" })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "negative", children: [(0, jsx_runtime_1.jsx)("span", { style: { padding: '0 10px' }, children: "Negative" }), (0, jsx_runtime_1.jsx)(FormikColorPicker_1.default, { name: "negativeColor", onColorChange: triggerSubmitHandler }), (0, jsx_runtime_1.jsxs)("div", { style: { padding: '5px' }, children: [(0, jsx_runtime_1.jsx)("span", { className: "label", children: "contour Levels [ min - max ]" }), (0, jsx_runtime_1.jsx)(FormikSlider_1.default, { name: "contourOptions.negative.contourLevels", onAfterChange: triggerSubmitHandler }), (0, jsx_runtime_1.jsx)("span", { className: "label", children: "number of Layers " }), (0, jsx_runtime_1.jsx)(FormikInput_1.default, { name: "contourOptions.negative.numberOfLayers", onChange: triggerSubmitHandler, type: "number" })] })] }), (0, jsx_runtime_1.jsx)(Spectrum2DHistogram_1.default, { data: SpectrumData.data })] }) }));
|
|
36
36
|
}
|
|
37
37
|
exports.default = Spectrum2DSetting;
|
|
@@ -94,7 +94,7 @@ function SpectrumSetting({ position, data, onClose }) {
|
|
|
94
94
|
width: info.dimension === 2 ? 450 : 240,
|
|
95
95
|
padding: info.dimension === 2 ? '10px 0' : '',
|
|
96
96
|
top: y,
|
|
97
|
-
}, children: info.dimension === 2 ? ((0, jsx_runtime_1.jsx)(Spectrum2DSetting_1.default, { onSubmit: submitHandler, data: data }
|
|
97
|
+
}, children: info.dimension === 2 ? ((0, jsx_runtime_1.jsx)(Spectrum2DSetting_1.default, { onSubmit: submitHandler, data: data })) : ((0, jsx_runtime_1.jsx)(Spectrum1DSetting_1.default, { onSubmit: submitHandler, data: data })) }) }));
|
|
98
98
|
}
|
|
99
99
|
function arePropsEqual() {
|
|
100
100
|
return true;
|
|
@@ -91,7 +91,7 @@ function AdditionalColumnField({ rowCorrelation, columnCorrelation, commonLinks,
|
|
|
91
91
|
label: `edit ${commonLinkContextMenuLabel}`,
|
|
92
92
|
onClick: () => {
|
|
93
93
|
highlightCommonLinks.hide();
|
|
94
|
-
modal.show((0, jsx_runtime_1.jsx)(EditLinkModal_1.default, { onClose: () => modal.close(), onEdit: onEdit, link: commonLink, correlationDim1: columnCorrelation, correlationDim2: rowCorrelation, correlations: correlations }
|
|
94
|
+
modal.show((0, jsx_runtime_1.jsx)(EditLinkModal_1.default, { onClose: () => modal.close(), onEdit: onEdit, link: commonLink, correlationDim1: columnCorrelation, correlationDim2: rowCorrelation, correlations: correlations }), {
|
|
95
95
|
position: Modal_1.positions.MIDDLE_RIGHT,
|
|
96
96
|
isBackgroundBlur: false,
|
|
97
97
|
});
|
|
@@ -132,7 +132,7 @@ function AdditionalColumnField({ rowCorrelation, columnCorrelation, commonLinks,
|
|
|
132
132
|
color: commonLink.pseudo === true || commonLink.edited?.moved === true
|
|
133
133
|
? 'blue'
|
|
134
134
|
: 'black',
|
|
135
|
-
}, children: (0, Utilities_1.getAbbreviation)(commonLink) }
|
|
135
|
+
}, children: (0, Utilities_1.getAbbreviation)(commonLink) }), i < commonLinks.length - 1 && (0, jsx_runtime_1.jsx)("label", { children: "/" })] }, commonLink.id))), [commonLinks]);
|
|
136
136
|
const title = (0, react_1.useMemo)(() => commonLinks
|
|
137
137
|
.reduce((arr, link) => {
|
|
138
138
|
if (!arr.includes(link.experimentType.toUpperCase())) {
|
|
@@ -153,6 +153,6 @@ function AdditionalColumnField({ rowCorrelation, columnCorrelation, commonLinks,
|
|
|
153
153
|
: isInViewColumn || isInViewRow
|
|
154
154
|
? '#f5f5dc'
|
|
155
155
|
: 'inherit',
|
|
156
|
-
}, title: title, onMouseEnter: mouseEnterHandler, onMouseLeave: mouseLeaveHandler, children: [contentLabel, (0, jsx_runtime_1.jsx)(ContextMenu_1.default, { ref: contextRef, context: contextMenu }
|
|
156
|
+
}, title: title, onMouseEnter: mouseEnterHandler, onMouseLeave: mouseLeaveHandler, children: [contentLabel, (0, jsx_runtime_1.jsx)(ContextMenu_1.default, { ref: contextRef, context: contextMenu })] }));
|
|
157
157
|
}
|
|
158
158
|
exports.default = AdditionalColumnField;
|