nmrium 0.21.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 +3 -4
- package/lib/component/1d/FooterBanner.js +7 -8
- package/lib/component/1d/Integral.js +3 -8
- 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 +9 -9
- 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 +2 -6
- 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/1d/utilities/scale.d.ts +1 -1
- package/lib/component/1d/utilities/scale.js +7 -6
- 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 +8 -8
- 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 +36 -36
- package/lib/component/NMRium.js +10 -16
- 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.d.ts +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 +30 -20
- 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/{1d/utilities → hooks}/useIntegralPath.d.ts +0 -0
- package/lib/component/hooks/useIntegralPath.js +53 -0
- package/lib/component/hooks/useTableSortBy.d.ts +2 -1
- package/lib/component/hooks/useTableSortBy.js +27 -16
- package/lib/component/hooks/useToolsFunctions.js +4 -5
- package/lib/component/hooks/useXScale.d.ts +2 -0
- package/lib/component/hooks/useXScale.js +7 -0
- 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.d.ts +0 -28
- package/lib/component/modal/PredictSpectraModal.js +31 -54
- 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/editRange/forms/validation/EditRangeValidation.js +1 -1
- package/lib/component/modal/editZone/EditPathLengthFormik.d.ts +5 -0
- package/lib/component/modal/editZone/EditPathLengthFormik.js +72 -0
- package/lib/component/modal/editZone/EditZoneModal.d.ts +8 -0
- package/lib/component/modal/editZone/EditZoneModal.js +98 -0
- package/lib/component/modal/editZone/SignalFormTab.d.ts +6 -0
- package/lib/component/modal/editZone/SignalFormTab.js +6 -0
- package/lib/component/modal/editZone/SignalsForm.d.ts +2 -0
- package/lib/component/modal/editZone/SignalsForm.js +62 -0
- package/lib/component/modal/editZone/validation/EditZoneValidation.d.ts +534 -0
- package/lib/component/modal/editZone/validation/EditZoneValidation.js +17 -0
- package/lib/component/modal/editZone/validation/isDefaultPathLength.d.ts +3 -0
- package/lib/component/modal/editZone/validation/isDefaultPathLength.js +7 -0
- 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 +52 -14
- package/lib/component/modal/setting/FormattingTabContent.js +3 -3
- package/lib/component/modal/setting/GeneralSettings.d.ts +1 -2
- package/lib/component/modal/setting/GeneralSettings.js +69 -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.d.ts +2 -0
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +13 -0
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts +7 -0
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +38 -0
- 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.d.ts +10 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +28 -18
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +9 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +7 -7
- 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.d.ts +1 -1
- package/lib/component/panels/Panels.js +60 -45
- 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 +5 -6
- 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 +10 -5
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +11 -6
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.d.ts +1 -6
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.js +1 -7
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts +2 -3
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +5 -6
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +2 -3
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +23 -27
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +24 -30
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts +8 -0
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +89 -0
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts +1 -1
- 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 +42 -45
- package/lib/component/panels/SummaryPanel/utilities/IsInView.d.ts +6 -0
- package/lib/component/panels/SummaryPanel/utilities/IsInView.js +16 -0
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +29 -0
- package/lib/component/panels/SummaryPanel/{Utilities.js → utilities/Utilities.js} +155 -19
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.d.ts +1 -0
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +26 -3
- 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 +13 -8
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js +4 -5
- package/lib/component/panels/ZonesPanel/ZonesTable.d.ts +3 -2
- package/lib/component/panels/ZonesPanel/ZonesTable.js +7 -4
- 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.d.ts +6 -0
- package/lib/component/panels/predictionPanel/PredictionOptions.js +90 -0
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts +2 -0
- package/lib/component/panels/predictionPanel/PredictionPanel.js +35 -0
- package/lib/component/reducer/IgnoreActions.js +2 -1
- package/lib/component/reducer/Reducer.d.ts +16 -23
- package/lib/component/reducer/Reducer.js +14 -11
- package/lib/component/reducer/actions/DatabaseActions.js +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts +3 -1
- package/lib/component/reducer/actions/DomainActions.js +20 -1
- package/lib/component/reducer/actions/FiltersActions.js +1 -1
- package/lib/component/reducer/actions/IntegralsActions.js +2 -0
- package/lib/component/reducer/actions/LoadActions.d.ts +2 -2
- package/lib/component/reducer/actions/LoadActions.js +42 -9
- package/lib/component/reducer/actions/MoleculeActions.js +5 -1
- package/lib/component/reducer/actions/PreferencesActions.js +0 -2
- package/lib/component/reducer/actions/RangesActions.js +3 -1
- package/lib/component/reducer/actions/SpectrumsActions.js +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +31 -27
- package/lib/component/reducer/actions/ZonesActions.d.ts +3 -1
- package/lib/component/reducer/actions/ZonesActions.js +33 -2
- package/lib/component/reducer/helper/Zoom1DManager.d.ts +17 -21
- package/lib/component/reducer/helper/Zoom1DManager.js +53 -69
- package/lib/component/reducer/preferencesReducer.d.ts +182 -42
- package/lib/component/reducer/preferencesReducer.js +198 -80
- package/lib/component/reducer/types/Types.d.ts +9 -1
- package/lib/component/reducer/types/Types.js +3 -1
- 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 -33
- 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 -31
- package/lib/data/PredictionManager.d.ts +36 -3
- package/lib/data/PredictionManager.js +62 -17
- package/lib/data/constants/DefaultPathLengths.d.ts +6 -0
- package/lib/data/constants/DefaultPathLengths.js +8 -0
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.js +4 -0
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +11 -20
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts +11 -0
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.js +11 -0
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +2 -21
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts +9 -0
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.js +7 -0
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.js +29 -0
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +13 -0
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.js +14 -0
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.js +13 -8
- 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 +8 -5
- package/lib-cjs/component/1d/FooterBanner.js +7 -8
- package/lib-cjs/component/1d/Integral.js +3 -8
- 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 +14 -10
- 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 +2 -6
- 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/1d/utilities/scale.js +7 -6
- 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 +12 -8
- 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 -17
- 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 +29 -19
- 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/useIntegralPath.js +56 -0
- package/lib-cjs/component/hooks/useTableSortBy.js +27 -16
- package/lib-cjs/component/hooks/useToolsFunctions.js +4 -5
- package/lib-cjs/component/hooks/useXScale.js +11 -0
- 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 +36 -55
- 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 +6 -2
- package/lib-cjs/component/modal/editZone/EditPathLengthFormik.js +77 -0
- package/lib-cjs/component/modal/editZone/EditZoneModal.js +103 -0
- package/lib-cjs/component/modal/editZone/SignalFormTab.js +11 -0
- package/lib-cjs/component/modal/editZone/SignalsForm.js +67 -0
- package/lib-cjs/component/modal/editZone/validation/EditZoneValidation.js +42 -0
- package/lib-cjs/component/modal/editZone/validation/isDefaultPathLength.js +12 -0
- package/lib-cjs/component/modal/setting/ControllersTabContent.js +1 -1
- package/lib-cjs/component/modal/setting/DisplayTabContent.js +51 -13
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +3 -3
- package/lib-cjs/component/modal/setting/GeneralSettings.js +72 -75
- package/lib-cjs/component/modal/setting/WorkspaceItem.js +64 -0
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignment.js +18 -0
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +43 -0
- 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 +28 -18
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +7 -7
- 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 +61 -46
- 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 +5 -6
- 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 +10 -5
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +11 -6
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/Constants.js +1 -8
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +5 -6
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +23 -27
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +47 -30
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +94 -0
- 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 +41 -44
- package/lib-cjs/component/panels/SummaryPanel/utilities/IsInView.js +18 -0
- package/lib-cjs/component/panels/SummaryPanel/{Utilities.js → utilities/Utilities.js} +157 -19
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +24 -1
- 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 +13 -8
- package/lib-cjs/component/panels/ZonesPanel/ZonesPreferences.js +4 -5
- package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +7 -4
- 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 +118 -0
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +41 -0
- package/lib-cjs/component/reducer/IgnoreActions.js +7 -2
- package/lib-cjs/component/reducer/Reducer.js +21 -13
- package/lib-cjs/component/reducer/actions/DatabaseActions.js +2 -2
- package/lib-cjs/component/reducer/actions/DomainActions.js +21 -1
- package/lib-cjs/component/reducer/actions/FiltersActions.js +6 -2
- package/lib-cjs/component/reducer/actions/IntegralsActions.js +2 -0
- package/lib-cjs/component/reducer/actions/LoadActions.js +47 -10
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +10 -2
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +0 -2
- package/lib-cjs/component/reducer/actions/RangesActions.js +7 -1
- package/lib-cjs/component/reducer/actions/SpectraAnalysisAction.js +5 -1
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +7 -3
- package/lib-cjs/component/reducer/actions/ToolsActions.js +43 -35
- package/lib-cjs/component/reducer/actions/ZonesActions.js +40 -3
- package/lib-cjs/component/reducer/helper/Zoom1DManager.js +55 -73
- package/lib-cjs/component/reducer/preferencesReducer.js +197 -78
- package/lib-cjs/component/reducer/types/Types.js +6 -4
- 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 -33
- 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 -31
- package/lib-cjs/data/Filters.js +5 -1
- package/lib-cjs/data/FiltersManager.js +5 -1
- package/lib-cjs/data/PredictionManager.js +62 -17
- package/lib-cjs/data/SpectraManager.js +5 -1
- package/lib-cjs/data/constants/DefaultPathLengths.js +10 -0
- package/lib-cjs/data/data1d/Spectrum1D/getSpectrumErrorValue.js +8 -0
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +16 -21
- package/lib-cjs/data/data1d/Spectrum1D/integrals/initiateIntegrals.js +18 -0
- package/lib-cjs/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +2 -21
- package/lib-cjs/data/data1d/Spectrum1D/peaks/initiatePeaks.js +14 -0
- package/lib-cjs/data/data1d/Spectrum1D/peaks/mapPeaks.js +36 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/initiateRanges.js +21 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/mapRanges.js +13 -8
- 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/1d/utilities/useIntegralPath.js +0 -63
- package/lib/component/panels/RangesPanel/useMapRanges.d.ts +0 -6
- package/lib/component/panels/SummaryPanel/Utilities.d.ts +0 -25
- package/lib/component/reducer/actions/Zoom.d.ts +0 -16
- package/lib/component/reducer/actions/Zoom.js +0 -92
- package/lib/component/workspaces/exercise1D.d.ts +0 -2
- package/lib/component/workspaces/exercise1D.js +0 -45
- package/lib-cjs/component/1d/utilities/useIntegralPath.js +0 -66
- package/lib-cjs/component/reducer/actions/Zoom.js +0 -116
- package/lib-cjs/component/workspaces/exercise1D.js +0 -48
|
@@ -8,7 +8,6 @@ import FormikForm from '../../elements/formik/FormikForm';
|
|
|
8
8
|
import FormikNumberInput from '../../elements/formik/FormikNumberInput';
|
|
9
9
|
import { useAlert } from '../../elements/popup/Alert';
|
|
10
10
|
import useNucleus from '../../hooks/useNucleus';
|
|
11
|
-
import { SET_PANELS_PREFERENCES } from '../../reducer/preferencesReducer';
|
|
12
11
|
import { getValue as getValueByKeyPath } from '../../utility/LocalStorage';
|
|
13
12
|
import { integralDefaultValues } from '../extra/preferences/defaultValues';
|
|
14
13
|
const styles = {
|
|
@@ -65,7 +64,7 @@ function IntegralsPreferencesInner({ nucleus, preferences, innerRef, }) {
|
|
|
65
64
|
const updateValues = useCallback(() => {
|
|
66
65
|
if (nucleus) {
|
|
67
66
|
const { color, strokeWidth, ...restProps } = integralDefaultValues;
|
|
68
|
-
const integralPreferences = getValueByKeyPath(preferences, `formatting.panels.integrals`);
|
|
67
|
+
const integralPreferences = getValueByKeyPath(preferences.current, `formatting.panels.integrals`);
|
|
69
68
|
let defaultValues = nucleus.reduce((acc, nucleusLabel) => {
|
|
70
69
|
acc[nucleusLabel] = restProps;
|
|
71
70
|
return acc;
|
|
@@ -79,7 +78,7 @@ function IntegralsPreferencesInner({ nucleus, preferences, innerRef, }) {
|
|
|
79
78
|
}, [updateValues]);
|
|
80
79
|
const saveHandler = useCallback((values) => {
|
|
81
80
|
preferences.dispatch({
|
|
82
|
-
type: SET_PANELS_PREFERENCES,
|
|
81
|
+
type: 'SET_PANELS_PREFERENCES',
|
|
83
82
|
payload: { key: 'integrals', value: values },
|
|
84
83
|
});
|
|
85
84
|
alert.success('Integrals preferences saved successfully');
|
|
@@ -89,14 +88,14 @@ function IntegralsPreferencesInner({ nucleus, preferences, innerRef, }) {
|
|
|
89
88
|
formRef.current.submitForm();
|
|
90
89
|
},
|
|
91
90
|
}));
|
|
92
|
-
return (_jsx("div", { style: styles.container, children: _jsxs(FormikForm, { onSubmit: saveHandler, ref: formRef, children: [_jsxs("div", { style: styles.groupContainer, children: [_jsx("p", { style: styles.header, children: "General" }
|
|
91
|
+
return (_jsx("div", { style: styles.container, children: _jsxs(FormikForm, { onSubmit: saveHandler, ref: formRef, children: [_jsxs("div", { style: styles.groupContainer, children: [_jsx("p", { style: styles.header, children: "General" }), _jsx(FormikColorInput, { name: "color" }), _jsx(FormikNumberInput, { name: "strokeWidth", label: "stroke width :", style: {
|
|
93
92
|
label: { fontSize: '11px', fontWeight: 'bold', color: '#232323' },
|
|
94
93
|
input: {
|
|
95
94
|
width: '60%',
|
|
96
95
|
textAlign: 'center',
|
|
97
96
|
borderRadius: '5px',
|
|
98
97
|
},
|
|
99
|
-
}, min: 1, max: 9, pattern: "[1-9]+" }
|
|
98
|
+
}, min: 1, max: 9, pattern: "[1-9]+" })] }), nucleus?.map((nucleusLabel) => (_jsxs("div", { style: styles.groupContainer, children: [_jsx("p", { style: styles.header, children: _jsx(MF, { mf: nucleusLabel }) }), formatFields.map((field) => (_jsx(FormikColumnFormatField, { label: field.label, checkControllerName: `${nucleusLabel}.${field.checkController}`, formatControllerName: `${nucleusLabel}.${field.formatController}` }, field.id)))] }, nucleusLabel)))] }) }));
|
|
100
99
|
}
|
|
101
100
|
const MemoizedIntegralsPreferences = memo(IntegralsPreferencesInner);
|
|
102
101
|
// TODO: remove this hacky use of ref.
|
|
@@ -106,6 +105,6 @@ function IntegralsPreferences(props, ref) {
|
|
|
106
105
|
return (_jsx(MemoizedIntegralsPreferences, { innerRef: ref, ...{
|
|
107
106
|
nucleus,
|
|
108
107
|
preferences,
|
|
109
|
-
} }
|
|
108
|
+
} }));
|
|
110
109
|
}
|
|
111
110
|
export default forwardRef(IntegralsPreferences);
|
|
@@ -15,7 +15,7 @@ function MatrixGenerationPanel() {
|
|
|
15
15
|
const dispatch = useDispatch();
|
|
16
16
|
const openFiltersModal = useCallback(() => {
|
|
17
17
|
dispatch({ type: RESET_SELECTED_TOOL });
|
|
18
|
-
modal.show(_jsx(MultipleSpectraFiltersModal, {}
|
|
18
|
+
modal.show(_jsx(MultipleSpectraFiltersModal, {}), {
|
|
19
19
|
isBackgroundBlur: false,
|
|
20
20
|
position: positions.TOP_CENTER,
|
|
21
21
|
width: 550,
|
|
@@ -24,12 +24,12 @@ function MatrixGenerationPanel() {
|
|
|
24
24
|
}, [modal, dispatch]);
|
|
25
25
|
const openExportAsMatrixModal = useCallback(() => {
|
|
26
26
|
dispatch({ type: RESET_SELECTED_TOOL });
|
|
27
|
-
modal.show(_jsx(ExportAsMatrixModal, {}
|
|
27
|
+
modal.show(_jsx(ExportAsMatrixModal, {}), {
|
|
28
28
|
isBackgroundBlur: false,
|
|
29
29
|
position: positions.TOP_CENTER,
|
|
30
30
|
width: 500,
|
|
31
31
|
});
|
|
32
32
|
}, [modal, dispatch]);
|
|
33
|
-
return (_jsxs("div", { css: tablePanelStyle, children: [_jsxs(DefaultPanelHeader, { deleteToolTip: "Delete All Peaks", showSettingButton: true, canDelete: false, children: [_jsx(Button, { popupTitle: "Add Filter", onClick: openFiltersModal, children: _jsx(SvgNmrAddFilter, { style: { fontSize: '18px' } }
|
|
33
|
+
return (_jsxs("div", { css: tablePanelStyle, children: [_jsxs(DefaultPanelHeader, { deleteToolTip: "Delete All Peaks", showSettingButton: true, canDelete: false, children: [_jsx(Button, { popupTitle: "Add Filter", onClick: openFiltersModal, children: _jsx(SvgNmrAddFilter, { style: { fontSize: '18px' } }) }), _jsx(Button, { popupTitle: "Export spectra as a Matrix", onClick: openExportAsMatrixModal, children: _jsx(SvgNmrExportAsMatrix, {}) })] }), _jsx("div", { className: "inner-container" })] }));
|
|
34
34
|
}
|
|
35
35
|
export default MatrixGenerationPanel;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { Molecule } from '../../../data/molecules/Molecule';
|
|
3
|
+
import { MoleculeHeaderActionsOptions } from './MoleculePanelHeader';
|
|
4
|
+
interface MoleculePanelProps {
|
|
5
|
+
onMoleculeChange?: (molecule: Molecule) => void;
|
|
6
|
+
children?: ReactElement;
|
|
7
|
+
actionsOptions?: MoleculeHeaderActionsOptions;
|
|
8
|
+
}
|
|
9
|
+
export default function MoleculePanel({ onMoleculeChange, children, actionsOptions, }: MoleculePanelProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -18,16 +18,21 @@ import useAtomAssignment from './useAtomAssignment';
|
|
|
18
18
|
const styles = {
|
|
19
19
|
panel: css({
|
|
20
20
|
display: 'flex',
|
|
21
|
+
overflow: 'auto',
|
|
21
22
|
flexGrow: 1,
|
|
22
23
|
width: '100%',
|
|
23
24
|
height: '100%',
|
|
24
25
|
flexDirection: 'column',
|
|
25
26
|
}),
|
|
26
|
-
|
|
27
|
+
innerPanel: css({
|
|
27
28
|
display: 'flex',
|
|
28
|
-
flex: '1
|
|
29
|
+
flex: '1',
|
|
29
30
|
flexDirection: 'column',
|
|
30
|
-
|
|
31
|
+
overflow: 'auto',
|
|
32
|
+
}),
|
|
33
|
+
molecule: css({
|
|
34
|
+
display: 'flex',
|
|
35
|
+
flex: '1',
|
|
31
36
|
}),
|
|
32
37
|
toolbar: css({
|
|
33
38
|
display: 'flex',
|
|
@@ -52,7 +57,7 @@ const styles = {
|
|
|
52
57
|
minHeight: 0,
|
|
53
58
|
}),
|
|
54
59
|
};
|
|
55
|
-
function MoleculePanelInner({ zones, ranges, molecules: moleculesProp, activeTab, displayerMode, }) {
|
|
60
|
+
function MoleculePanelInner({ zones, ranges, molecules: moleculesProp, activeTab, displayerMode, onMoleculeChange, actionsOptions, children, }) {
|
|
56
61
|
const [currentIndex, setCurrentIndex] = useState(0);
|
|
57
62
|
const [molecules, setMolecules] = useState([]);
|
|
58
63
|
const dispatch = useDispatch();
|
|
@@ -68,11 +73,14 @@ function MoleculePanelInner({ zones, ranges, molecules: moleculesProp, activeTab
|
|
|
68
73
|
});
|
|
69
74
|
}
|
|
70
75
|
}, [molecules.length, moleculesProp]);
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
onMoleculeChange?.(molecules[currentIndex] || null);
|
|
78
|
+
}, [currentIndex, molecules, onMoleculeChange]);
|
|
71
79
|
const handleReplaceMolecule = useCallback((key, molfile) => {
|
|
72
80
|
dispatch({ type: SET_MOLECULE, molfile, key });
|
|
73
81
|
}, [dispatch]);
|
|
74
82
|
const openMoleculeEditorHandler = useCallback((moleclue = null) => {
|
|
75
|
-
modal.show(_jsx(MoleculeStructureEditorModal, { selectedMolecule: moleclue }
|
|
83
|
+
modal.show(_jsx(MoleculeStructureEditorModal, { selectedMolecule: moleclue }), {
|
|
76
84
|
position: positions.TOP_CENTER,
|
|
77
85
|
width: 700,
|
|
78
86
|
height: 500,
|
|
@@ -81,21 +89,21 @@ function MoleculePanelInner({ zones, ranges, molecules: moleculesProp, activeTab
|
|
|
81
89
|
const moleculeIndexHandler = useCallback((index) => {
|
|
82
90
|
setCurrentIndex(index);
|
|
83
91
|
}, []);
|
|
84
|
-
return (_jsxs("div", { css: styles.panel, children: [_jsx(MoleculePanelHeader, { currentIndex: currentIndex, molecules: molecules, onOpenMoleculeEditor: () => openMoleculeEditorHandler(), onMoleculeIndexChange: moleculeIndexHandler },
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
return (_jsxs("div", { css: styles.panel, children: [_jsx(MoleculePanelHeader, { currentIndex: currentIndex, molecules: molecules, onOpenMoleculeEditor: () => openMoleculeEditorHandler(), onMoleculeIndexChange: moleculeIndexHandler, actionsOptions: actionsOptions }), _jsxs("div", { css: styles.innerPanel, children: [_jsx("div", { css: styles.molecule, children: _jsx(NextPrev, { onChange: (slideIndex) => setCurrentIndex(slideIndex), defaultIndex: currentIndex, children: molecules && molecules.length > 0 ? (molecules.map((mol, index) => (_jsxs("div", { css: styles.items, children: [_jsxs("span", { css: styles.toolbar, children: [_jsx(MF, { mf: mol.mf }), " - ", mol.mw?.toFixed(2)] }), _jsx("div", { css: styles.slider, className: "mol-svg-container", onDoubleClick: () => openMoleculeEditorHandler(mol), style: {
|
|
93
|
+
backgroundColor: (index + 1) % 2 !== 0 ? '#fafafa' : 'white',
|
|
94
|
+
}, children: _jsx(ResponsiveChart, { children: ({ height, width }) => {
|
|
95
|
+
return (_jsx(OCLnmr, { OCL: OCL, id: `molSVG${index}`, width: width, height: height, molfile: mol.molfile || '', setMolfile: (molfile) => handleReplaceMolecule(mol.key, molfile), setSelectedAtom: handleOnClickAtom, atomHighlightColor: currentDiaIDsToHighlight &&
|
|
96
|
+
currentDiaIDsToHighlight.length > 0
|
|
97
|
+
? 'red'
|
|
98
|
+
: '#FFD700', atomHighlightOpacity: 0.35, highlights: currentDiaIDsToHighlight &&
|
|
99
|
+
currentDiaIDsToHighlight.length > 0
|
|
100
|
+
? currentDiaIDsToHighlight
|
|
101
|
+
: assignedDiaIDsMerged, setHoverAtom: handleOnAtomHover }));
|
|
102
|
+
} }) })] }, mol.key)))) : (_jsx("div", { css: styles.slider, style: { height: '100%' }, onClick: () => openMoleculeEditorHandler(), children: _jsx("span", { children: "Click to draw molecule" }) })) }) }), children] })] }));
|
|
95
103
|
}
|
|
96
104
|
const MemoizedMoleculePanel = memo(MoleculePanelInner);
|
|
97
105
|
const emptyData = { ranges: {}, zones: {} };
|
|
98
|
-
export default function MoleculePanel() {
|
|
106
|
+
export default function MoleculePanel({ onMoleculeChange, children, actionsOptions, }) {
|
|
99
107
|
const { molecules, displayerMode, activeTab } = useChartData();
|
|
100
108
|
const data = useSpectrum(emptyData);
|
|
101
109
|
const ranges = data?.ranges || {};
|
|
@@ -106,5 +114,7 @@ export default function MoleculePanel() {
|
|
|
106
114
|
activeTab,
|
|
107
115
|
ranges,
|
|
108
116
|
zones,
|
|
109
|
-
|
|
117
|
+
onMoleculeChange,
|
|
118
|
+
actionsOptions,
|
|
119
|
+
}, children: children }));
|
|
110
120
|
}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
export interface MoleculeHeaderActionsOptions {
|
|
2
|
+
hidePast?: boolean;
|
|
3
|
+
hideAdd?: boolean;
|
|
4
|
+
hideExport?: boolean;
|
|
5
|
+
hideDelete?: boolean;
|
|
6
|
+
hidePredict?: boolean;
|
|
7
|
+
}
|
|
1
8
|
interface MoleculePanelHeaderProps {
|
|
2
9
|
currentIndex: number;
|
|
3
10
|
molecules: Array<any>;
|
|
4
11
|
onMoleculeIndexChange: (index: number) => void;
|
|
5
12
|
onOpenMoleculeEditor: () => void;
|
|
13
|
+
actionsOptions?: MoleculeHeaderActionsOptions;
|
|
6
14
|
}
|
|
7
|
-
export default function MoleculePanelHeader({ currentIndex, molecules, onMoleculeIndexChange, onOpenMoleculeEditor, }: MoleculePanelHeaderProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default function MoleculePanelHeader({ currentIndex, molecules, onMoleculeIndexChange, onOpenMoleculeEditor, actionsOptions, }: MoleculePanelHeaderProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
16
|
export {};
|
|
@@ -41,21 +41,21 @@ const toolbarStyle = css `
|
|
|
41
41
|
const MOL_EXPORT_MENU = [
|
|
42
42
|
{
|
|
43
43
|
id: 'molfile',
|
|
44
|
-
icon: _jsx(FaCopy, {}
|
|
44
|
+
icon: _jsx(FaCopy, {}),
|
|
45
45
|
label: 'Copy as molfile',
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
id: 'png',
|
|
49
|
-
icon: _jsx(FaFileImage, {}
|
|
49
|
+
icon: _jsx(FaFileImage, {}),
|
|
50
50
|
label: 'Copy as PNG',
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
id: 'svg',
|
|
54
|
-
icon: _jsx(FaDownload, {}
|
|
54
|
+
icon: _jsx(FaDownload, {}),
|
|
55
55
|
label: 'Export as SVG',
|
|
56
56
|
},
|
|
57
57
|
];
|
|
58
|
-
export default function MoleculePanelHeader({ currentIndex, molecules, onMoleculeIndexChange = () => null, onOpenMoleculeEditor = () => null, }) {
|
|
58
|
+
export default function MoleculePanelHeader({ currentIndex, molecules, onMoleculeIndexChange = () => null, onOpenMoleculeEditor = () => null, actionsOptions = {}, }) {
|
|
59
59
|
const alert = useAlert();
|
|
60
60
|
const dispatch = useDispatch();
|
|
61
61
|
const modal = useModal();
|
|
@@ -115,13 +115,13 @@ export default function MoleculePanelHeader({ currentIndex, molecules, onMolecul
|
|
|
115
115
|
assignmentData,
|
|
116
116
|
]);
|
|
117
117
|
const openPredictSpectraModal = useCallback(() => {
|
|
118
|
-
modal.show(_jsx(PredictSpectraModal, { molfile: molecules[currentIndex] }
|
|
118
|
+
modal.show(_jsx(PredictSpectraModal, { molfile: molecules[currentIndex] }), {
|
|
119
119
|
position: positions.TOP_CENTER,
|
|
120
120
|
enableResizing: true,
|
|
121
121
|
width: 600,
|
|
122
122
|
});
|
|
123
123
|
}, [modal, molecules, currentIndex]);
|
|
124
|
-
return (_jsxs("div", { css: toolbarStyle, children: [_jsx(MenuButton, { component: _jsx(FaFileExport, {}
|
|
124
|
+
return (_jsxs("div", { css: toolbarStyle, children: [!actionsOptions.hideExport && (_jsx(MenuButton, { component: _jsx(FaFileExport, {}), toolTip: "Export As", items: MOL_EXPORT_MENU, onClick: exportHandler })), !actionsOptions.hidePast && (_jsx(ToolTip, { title: "Paste molfile", popupPlacement: "left", children: _jsx("button", { className: "bar-button", type: "button", onClick: handlePaste, children: _jsx(FaPaste, {}) }) })), !actionsOptions.hideAdd && (_jsx(ToolTip, { title: "Add Molecule", popupPlacement: "left", children: _jsx("button", { className: "bar-button", type: "button", onClick: onOpenMoleculeEditor, "data-test-id": "panel-structures-button-add", children: _jsx(FaPlus, {}) }) })), !actionsOptions.hideDelete && (_jsx(ToolTip, { title: "Delete Molecule", popupPlacement: "left", children: _jsx("button", { className: "bar-button", type: "button", onClick: handleDelete, children: _jsx(FaRegTrashAlt, {}) }) })), !actionsOptions.hidePredict && molecules && molecules.length > 0 && (_jsx(ButtonToolTip, { popupTitle: "Predict Spectra", popupPlacement: "left", onClick: openPredictSpectraModal, children: _jsx(SvgNmrFt, {}) })), _jsxs("p", { children: [molecules &&
|
|
125
125
|
molecules.length > 0 &&
|
|
126
|
-
`${+(currentIndex + 1)} / ${molecules.length}`, ' '] }
|
|
126
|
+
`${+(currentIndex + 1)} / ${molecules.length}`, ' '] })] }));
|
|
127
127
|
}
|
|
@@ -54,6 +54,6 @@ function ColumnHeader({ charLabel, rangeLabel, data, onColumnFilter, }) {
|
|
|
54
54
|
const deleteHandler = useCallback(() => {
|
|
55
55
|
dispatch({ type: DELETE_ANALYZE_SPECTRA_RANGE, colKey: charLabel });
|
|
56
56
|
}, [charLabel, dispatch]);
|
|
57
|
-
return (_jsxs("div", { css: styles, children: [_jsxs("div", { className: "container", children: [data.type === COLUMNS_TYPES.NORMAL && (_jsx("div", { className: "dropDown-container", children: _jsx(DropDownButton, { data: columnsFilters, formatSelectedValue: (
|
|
57
|
+
return (_jsxs("div", { css: styles, children: [_jsxs("div", { className: "container", children: [data.type === COLUMNS_TYPES.NORMAL && (_jsx("div", { className: "dropDown-container", children: _jsx(DropDownButton, { data: columnsFilters, formatSelectedValue: (item) => item.label.substring(0, 3), selectedKey: data.valueKey, onSelect: onColumnFilter }) })), _jsxs("div", { className: "label-container", children: [_jsxs("span", { className: "label", children: [" ", charLabel] }), _jsx("span", { className: "label", children: rangeLabel })] })] }), _jsx(DeleteButton, { onDelete: deleteHandler })] }));
|
|
58
58
|
}
|
|
59
59
|
export default ColumnHeader;
|
|
@@ -33,7 +33,7 @@ function MultipleAnalysisCodeEditor({ data }) {
|
|
|
33
33
|
minHeight: '100px',
|
|
34
34
|
overflow: 'auto',
|
|
35
35
|
maxHeight: '200px',
|
|
36
|
-
} }
|
|
36
|
+
} }), _jsx("p", { style: { marginBottom: '5px' }, children: "Result:" }), _jsx("textarea", { value: result, readOnly: true, style: {
|
|
37
37
|
border: '0.55px solid #f3f3f3',
|
|
38
38
|
fontFamily: '"Fira code", "Fira Mono", monospace',
|
|
39
39
|
fontSize: 12,
|
|
@@ -43,6 +43,6 @@ function MultipleAnalysisCodeEditor({ data }) {
|
|
|
43
43
|
minHeight: '100px',
|
|
44
44
|
overflow: 'auto',
|
|
45
45
|
maxHeight: '200px',
|
|
46
|
-
} }
|
|
46
|
+
} })] }));
|
|
47
47
|
}
|
|
48
48
|
export default memo(MultipleAnalysisCodeEditor);
|
|
@@ -48,21 +48,23 @@ function MultipleSpectraAnalysisPanelInner({ activeTab, spectraAnalysis, }) {
|
|
|
48
48
|
}, []);
|
|
49
49
|
const openAlignSpectra = useCallback(() => {
|
|
50
50
|
dispatch({ type: RESET_SELECTED_TOOL });
|
|
51
|
-
modal.show(_jsx(AlignSpectraModal, { nucleus: activeTab }
|
|
51
|
+
modal.show(_jsx(AlignSpectraModal, { nucleus: activeTab }), {
|
|
52
52
|
isBackgroundBlur: false,
|
|
53
53
|
position: positions.TOP_CENTER,
|
|
54
54
|
width: 500,
|
|
55
55
|
});
|
|
56
56
|
}, [activeTab, modal, dispatch]);
|
|
57
|
-
const copyToClipboardHandler = useCallback(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
57
|
+
const copyToClipboardHandler = useCallback(() => {
|
|
58
|
+
void (async () => {
|
|
59
|
+
const data = getDataAsString(spectraAnalysis, activeTab);
|
|
60
|
+
const success = await copyTextToClipboard(data);
|
|
61
|
+
if (success) {
|
|
62
|
+
alert.success('Data copied to clipboard');
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
alert.error('copy to clipboard failed');
|
|
66
|
+
}
|
|
67
|
+
})();
|
|
66
68
|
}, [activeTab, alert, spectraAnalysis]);
|
|
67
69
|
return (_jsxs("div", { css: [
|
|
68
70
|
tablePanelStyle,
|
|
@@ -74,15 +76,15 @@ function MultipleSpectraAnalysisPanelInner({ activeTab, spectraAnalysis, }) {
|
|
|
74
76
|
`,
|
|
75
77
|
], children: [!isFlipped && (_jsxs(DefaultPanelHeader, { deleteToolTip: "Delete All Peaks", showSettingButton: true, canDelete: false, onSettingClick: settingsPanelHandler, children: [_jsx(Button, { popupTitle: "Copy To Clipboard",
|
|
76
78
|
// style={styles.button}
|
|
77
|
-
onClick: copyToClipboardHandler, children: _jsx(FaFileExport, {}
|
|
79
|
+
onClick: copyToClipboardHandler, children: _jsx(FaFileExport, {}) }), _jsx(Button, { popupTitle: "Spectra calibration",
|
|
78
80
|
// style={styles.button}
|
|
79
|
-
onClick: openAlignSpectra, children: _jsx(SvgNmrOverlay, { style: { fontSize: '18px' } }
|
|
81
|
+
onClick: openAlignSpectra, children: _jsx(SvgNmrOverlay, { style: { fontSize: '18px' } }) }), _jsx(ToggleButton, { popupTitle: "Y Spectra Tracker", popupPlacement: "right", onClick: showTrackerHandler, children: _jsx(IoPulseOutline, {}) })] })), isFlipped && (_jsx(PreferencesHeader, { onSave: saveSettingHandler, onClose: settingsPanelHandler })), _jsx("div", { className: "inner-container", children: !isFlipped ? (_jsx(MultipleSpectraAnalysisTable, { data: data, activeTab: activeTab })) : (_jsx(MultipleSpectraAnalysisPreferences, { data: data, onAfterSave: afterSaveHandler, ref: settingRef })) })] }));
|
|
80
82
|
}
|
|
81
83
|
const MemoizedMultipleSpectraAnalysisPanel = memo(MultipleSpectraAnalysisPanelInner);
|
|
82
84
|
export default function MultipleSpectraAnalysisPanel() {
|
|
83
85
|
const { activeTab, spectraAnalysis, displayerKey } = useChartData();
|
|
84
86
|
if (!activeTab) {
|
|
85
|
-
return _jsx("div", {}
|
|
87
|
+
return _jsx("div", {});
|
|
86
88
|
}
|
|
87
|
-
return (_jsx(MemoizedMultipleSpectraAnalysisPanel, { ...{ activeTab, spectraAnalysis, displayerKey } }
|
|
89
|
+
return (_jsx(MemoizedMultipleSpectraAnalysisPanel, { ...{ activeTab, spectraAnalysis, displayerKey } }));
|
|
88
90
|
}
|
package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js
CHANGED
|
@@ -131,8 +131,8 @@ function MultipleSpectraAnalysisPreferences({ data, onAfterSave }, ref) {
|
|
|
131
131
|
};
|
|
132
132
|
});
|
|
133
133
|
}, []);
|
|
134
|
-
return (_jsxs(FormikForm, { ref: refForm, initialValues: { columns, code: null }, validationSchema: preferncesSchema, onSubmit: submitHandler, children: [columnsKeys && (_jsxs("table", { css: styles, children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "counter", children: "#" }
|
|
135
|
-
return (_jsxs("tr", { children: [_jsx("td", { className: "counter", children: index + 1 }
|
|
136
|
-
}) }
|
|
134
|
+
return (_jsxs(FormikForm, { ref: refForm, initialValues: { columns, code: null }, validationSchema: preferncesSchema, onSubmit: submitHandler, children: [columnsKeys && (_jsxs("table", { css: styles, children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "counter", children: "#" }), _jsx("th", { className: "label", children: "Label" }), _jsx("th", { children: "value" }), _jsx("th", { className: "index", children: "index" })] }) }), _jsx("tbody", { children: columnsKeys.map((key, index) => {
|
|
135
|
+
return (_jsxs("tr", { children: [_jsx("td", { className: "counter", children: index + 1 }), _jsx("td", { className: "label", children: _jsx(FormikInput, { name: `columns.${key}.tempKey`, value: columns[key].tempKey }, key) }), _jsx("td", { children: columns[key].type === COLUMNS_TYPES.FORMULA ? (_jsx(FormikInput, { name: `columns.${key}.formula`, value: columns[key].formula })) : (_jsx("div", { className: "input disbale" })) }), _jsx("td", { className: "index", children: _jsx(FormikInput, { name: `columns.${key}.index`, value: columns[key].index }) }), _jsx("td", { className: "operation-col", children: columnsKeys.length === index + 1 && (_jsx("button", { className: "add", type: "button", onClick: () => addNewColumn(index + 1), children: _jsx(FaPlus, {}) })) })] }, key));
|
|
136
|
+
}) })] })), _jsx(MultipleAnalysisCodeEditor, { data: data })] }));
|
|
137
137
|
}
|
|
138
138
|
export default forwardRef(MultipleSpectraAnalysisPreferences);
|
|
@@ -35,13 +35,13 @@ function MultipleSpectraAnalysisTable({ data, activeTab, }) {
|
|
|
35
35
|
];
|
|
36
36
|
function cellHandler(row, columnKey, valueKey) {
|
|
37
37
|
const value = row.original[columnKey][valueKey];
|
|
38
|
-
const result = value instanceof Error ? (_jsx("span", { style: { color: 'red' }, children: value.message }
|
|
38
|
+
const result = value instanceof Error ? (_jsx("span", { style: { color: 'red' }, children: value.message })) : (format(value));
|
|
39
39
|
return result;
|
|
40
40
|
}
|
|
41
41
|
function headerHandler(columnData, columnKey) {
|
|
42
|
-
return (_jsx(ColumnHeader, { charLabel: columnKey, data: columnData, onColumnFilter: (
|
|
42
|
+
return (_jsx(ColumnHeader, { charLabel: columnKey, data: columnData, onColumnFilter: (item) => columnFilterHandler(columnKey, item.key), rangeLabel: columnData.from && columnData.to
|
|
43
43
|
? `${format(columnData.from)} - ${format(columnData.to)}`
|
|
44
|
-
: '' }
|
|
44
|
+
: '' }));
|
|
45
45
|
}
|
|
46
46
|
if (data.columns) {
|
|
47
47
|
Object.keys(data.columns).forEach((columnKey) => {
|
|
@@ -56,11 +56,11 @@ function MultipleSpectraAnalysisTable({ data, activeTab, }) {
|
|
|
56
56
|
}
|
|
57
57
|
return columns.sort((object1, object2) => object1.index - object2.index);
|
|
58
58
|
}, [columnFilterHandler, data.columns, format]);
|
|
59
|
-
return data.values && data.values.length > 0 ? (_jsxs(Fragment, { children: [_jsx(ReactTable, { data: data.values, columns: tableColumns }
|
|
59
|
+
return data.values && data.values.length > 0 ? (_jsxs(Fragment, { children: [_jsx(ReactTable, { data: data.values, columns: tableColumns }), _jsx("div", { style: {
|
|
60
60
|
width: '100%',
|
|
61
61
|
padding: '10px',
|
|
62
62
|
},
|
|
63
63
|
// eslint-disable-next-line react/no-danger
|
|
64
|
-
dangerouslySetInnerHTML: { __html: codeEvaluation } }
|
|
64
|
+
dangerouslySetInnerHTML: { __html: codeEvaluation } })] })) : (_jsx(NoTableData, {}));
|
|
65
65
|
}
|
|
66
66
|
export default memo(MultipleSpectraAnalysisTable);
|
|
@@ -6,7 +6,7 @@ import { useChartData } from '../context/ChartContext';
|
|
|
6
6
|
import { usePreferences } from '../context/PreferencesContext';
|
|
7
7
|
import useCheckExperimentalFeature from '../hooks/useCheckExperimentalFeature';
|
|
8
8
|
import { DISPLAYER_MODE } from '../reducer/core/Constants';
|
|
9
|
-
import
|
|
9
|
+
import AutomaticAssignment from './AutomaticAssignment/AutomaticAssignment';
|
|
10
10
|
import InformationPanel from './InformationPanel';
|
|
11
11
|
import IntegralPanel from './IntegralsPanel/IntegralPanel';
|
|
12
12
|
import MatrixGenerationPanel from './MatrixGenerationPanel/MatrixGenerationPanel';
|
|
@@ -19,116 +19,131 @@ import SummaryPanel from './SummaryPanel/SummaryPanel';
|
|
|
19
19
|
import ZonesPanel from './ZonesPanel/ZonesPanel';
|
|
20
20
|
import DatabasePanel from './databasePanel/DatabasePanel';
|
|
21
21
|
import FilterPanel from './filtersPanel/FilterPanel';
|
|
22
|
+
import PredictionPane from './predictionPanel/PredictionPanel';
|
|
22
23
|
const accordionItems = [
|
|
23
24
|
{
|
|
24
25
|
title: 'Spectra',
|
|
25
|
-
component: _jsx(SpectrumListPanel, {}
|
|
26
|
-
|
|
27
|
-
hidePreferenceKey: 'hideSpectraPanel',
|
|
26
|
+
component: _jsx(SpectrumListPanel, {}),
|
|
27
|
+
hidePreferenceKey: 'spectraPanel',
|
|
28
28
|
mode: null,
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
title: 'Information',
|
|
32
|
-
component: _jsx(InformationPanel, {}
|
|
33
|
-
openWhen: null,
|
|
32
|
+
component: _jsx(InformationPanel, {}),
|
|
34
33
|
style: { overflow: 'hidden' },
|
|
35
|
-
hidePreferenceKey: '
|
|
34
|
+
hidePreferenceKey: 'informationPanel',
|
|
36
35
|
mode: null,
|
|
37
36
|
},
|
|
38
37
|
{
|
|
39
38
|
title: 'Peaks',
|
|
40
|
-
component: _jsx(PeaksPanel, {}
|
|
41
|
-
|
|
42
|
-
hidePreferenceKey: 'hidePeaksPanel',
|
|
39
|
+
component: _jsx(PeaksPanel, {}),
|
|
40
|
+
hidePreferenceKey: 'peaksPanel',
|
|
43
41
|
mode: null,
|
|
44
42
|
},
|
|
45
43
|
{
|
|
46
44
|
title: 'Filters',
|
|
47
|
-
component: _jsx(FilterPanel, {}
|
|
48
|
-
|
|
49
|
-
hidePreferenceKey: 'hideFiltersPanel',
|
|
45
|
+
component: _jsx(FilterPanel, {}),
|
|
46
|
+
hidePreferenceKey: 'filtersPanel',
|
|
50
47
|
mode: null,
|
|
51
48
|
},
|
|
52
49
|
{
|
|
53
50
|
title: 'Integrals',
|
|
54
|
-
component: _jsx(IntegralPanel, {}
|
|
55
|
-
|
|
56
|
-
hidePreferenceKey: 'hideIntegralsPanel',
|
|
51
|
+
component: _jsx(IntegralPanel, {}),
|
|
52
|
+
hidePreferenceKey: 'integralsPanel',
|
|
57
53
|
mode: null,
|
|
58
54
|
},
|
|
59
55
|
{
|
|
60
56
|
title: 'Ranges',
|
|
61
|
-
component: _jsx(RangesPanel, {}
|
|
62
|
-
|
|
63
|
-
hidePreferenceKey: 'hideRangesPanel',
|
|
57
|
+
component: _jsx(RangesPanel, {}),
|
|
58
|
+
hidePreferenceKey: 'rangesPanel',
|
|
64
59
|
mode: DISPLAYER_MODE.DM_1D,
|
|
65
60
|
},
|
|
66
61
|
{
|
|
67
62
|
title: 'Multiple Spectra Analysis',
|
|
68
|
-
component: _jsx(MultipleSpectraAnalysisPanel, {}
|
|
69
|
-
|
|
70
|
-
hidePreferenceKey: 'hideMultipleSpectraAnalysisPanel',
|
|
63
|
+
component: _jsx(MultipleSpectraAnalysisPanel, {}),
|
|
64
|
+
hidePreferenceKey: 'multipleSpectraAnalysisPanel',
|
|
71
65
|
mode: null,
|
|
72
66
|
},
|
|
73
67
|
{
|
|
74
68
|
title: 'Matrix Generation',
|
|
75
|
-
component: _jsx(MatrixGenerationPanel, {}
|
|
76
|
-
openWhen: [],
|
|
69
|
+
component: _jsx(MatrixGenerationPanel, {}),
|
|
77
70
|
hidePreferenceKey: '',
|
|
78
71
|
mode: null,
|
|
79
72
|
isExperimental: true,
|
|
80
73
|
},
|
|
81
74
|
{
|
|
82
75
|
title: 'Zones',
|
|
83
|
-
component: _jsx(ZonesPanel, {}
|
|
84
|
-
|
|
85
|
-
hidePreferenceKey: 'hideZonesPanel',
|
|
76
|
+
component: _jsx(ZonesPanel, {}),
|
|
77
|
+
hidePreferenceKey: 'zonesPanel',
|
|
86
78
|
mode: DISPLAYER_MODE.DM_2D,
|
|
87
79
|
},
|
|
88
80
|
{
|
|
89
81
|
title: 'Summary',
|
|
90
|
-
component: _jsx(SummaryPanel, {}
|
|
91
|
-
|
|
92
|
-
hidePreferenceKey: 'hideSummaryPanel',
|
|
82
|
+
component: _jsx(SummaryPanel, {}),
|
|
83
|
+
hidePreferenceKey: 'summaryPanel',
|
|
93
84
|
mode: null,
|
|
94
85
|
},
|
|
95
86
|
{
|
|
96
87
|
title: 'Structures',
|
|
97
|
-
component: _jsx(MoleculePanel, {}
|
|
98
|
-
|
|
99
|
-
hidePreferenceKey: 'hideStructuresPanel',
|
|
88
|
+
component: _jsx(MoleculePanel, {}),
|
|
89
|
+
hidePreferenceKey: 'structuresPanel',
|
|
100
90
|
mode: null,
|
|
101
91
|
},
|
|
102
92
|
{
|
|
103
93
|
title: 'Database',
|
|
104
|
-
component: _jsx(DatabasePanel, {}
|
|
105
|
-
|
|
106
|
-
|
|
94
|
+
component: _jsx(DatabasePanel, {}),
|
|
95
|
+
hidePreferenceKey: 'databasePanel',
|
|
96
|
+
mode: null,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
title: 'Automatic Assignment',
|
|
100
|
+
component: _jsx(AutomaticAssignment, {}),
|
|
101
|
+
hidePreferenceKey: '',
|
|
102
|
+
mode: null,
|
|
103
|
+
isExperimental: true,
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
title: 'Prediction',
|
|
107
|
+
component: _jsx(PredictionPane, {}),
|
|
108
|
+
hidePreferenceKey: 'predictionPanel',
|
|
107
109
|
mode: null,
|
|
108
110
|
},
|
|
109
111
|
];
|
|
110
|
-
export const
|
|
112
|
+
export const TOOLS_PANELS_ACCORDION = {
|
|
111
113
|
null: 'Spectra',
|
|
112
114
|
peakPicking: 'Peaks',
|
|
113
115
|
integral: 'Integrals',
|
|
114
116
|
rangesPicking: 'Ranges',
|
|
115
117
|
zone2D: 'Zones',
|
|
118
|
+
multipleSpectraAnalysis: 'Multiple Spectra Analysis',
|
|
116
119
|
};
|
|
117
|
-
function
|
|
120
|
+
function usePanelPreferences() {
|
|
118
121
|
const preferences = usePreferences();
|
|
122
|
+
return useCallback((item) => {
|
|
123
|
+
return lodashGet(preferences.current, `display.panels.${item.hidePreferenceKey}`);
|
|
124
|
+
}, [preferences]);
|
|
125
|
+
}
|
|
126
|
+
function PanelsInner({ displayerMode: displayedMode }) {
|
|
127
|
+
const getPanelPreferences = usePanelPreferences();
|
|
119
128
|
const isExperimental = useCheckExperimentalFeature();
|
|
120
129
|
const check = useCallback((item) => {
|
|
121
|
-
|
|
130
|
+
const panelOptions = getPanelPreferences(item);
|
|
131
|
+
return ((panelOptions?.hidden !== true &&
|
|
132
|
+
panelOptions?.display === true &&
|
|
122
133
|
item.isExperimental === undefined &&
|
|
123
|
-
(item.mode == null || item.mode ===
|
|
134
|
+
(item.mode == null || item.mode === displayedMode)) ||
|
|
124
135
|
(item.isExperimental && isExperimental));
|
|
125
|
-
}, [
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
136
|
+
}, [displayedMode, getPanelPreferences, isExperimental]);
|
|
137
|
+
const isOpened = useCallback((item) => {
|
|
138
|
+
const panelOptions = getPanelPreferences(item);
|
|
139
|
+
return panelOptions?.hidden !== true && panelOptions?.open;
|
|
140
|
+
}, [getPanelPreferences]);
|
|
141
|
+
return (_jsx("div", { style: { width: '100%', height: '100%', flex: '1 1 0%' }, children: _jsx(Accordion, { children: accordionItems.map((item) => {
|
|
142
|
+
return (check(item) && (_jsx(Accordion.Item, { title: item.title, defaultOpened: isOpened(item), children: item.component }, item.title)));
|
|
143
|
+
}) }) }));
|
|
129
144
|
}
|
|
130
145
|
const MemoizedPanels = memo(PanelsInner);
|
|
131
146
|
export default function Panels() {
|
|
132
147
|
const { displayerMode, toolOptions: { selectedTool }, } = useChartData();
|
|
133
|
-
return _jsx(MemoizedPanels, { ...{ displayerMode, selectedTool } }
|
|
148
|
+
return _jsx(MemoizedPanels, { ...{ displayerMode, selectedTool } });
|
|
134
149
|
}
|
|
@@ -79,7 +79,7 @@ function PeaksPanelInner({ peaks, info, xDomain, activeTab, preferences, }) {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
`,
|
|
82
|
-
], children: [!isFlipped && (_jsx(DefaultPanelHeader, { counter: peaks?.values?.length, onDelete: handleDeleteAll, deleteToolTip: "Delete All Peaks", onFilter: handleOnFilter, filterToolTip: filterIsActive ? 'Show all peaks' : 'Hide peaks out of view', filterIsActive: filterIsActive, counterFiltered: filteredPeaks.length, showSettingButton: true, onSettingClick: settingsPanelHandler }
|
|
82
|
+
], children: [!isFlipped && (_jsx(DefaultPanelHeader, { counter: peaks?.values?.length, onDelete: handleDeleteAll, deleteToolTip: "Delete All Peaks", onFilter: handleOnFilter, filterToolTip: filterIsActive ? 'Show all peaks' : 'Hide peaks out of view', filterIsActive: filterIsActive, counterFiltered: filteredPeaks.length, showSettingButton: true, onSettingClick: settingsPanelHandler })), isFlipped && (_jsx(PreferencesHeader, { onSave: saveSettingHandler, onClose: settingsPanelHandler })), _jsx("div", { className: "inner-container", children: !isFlipped ? (_jsx(PeaksTable, { data: filteredPeaks, activeTab: activeTab, preferences: preferences, info: info })) : (_jsx(PeaksPreferences, { ref: settingRef })) })] }));
|
|
83
83
|
}
|
|
84
84
|
const MemoizedPeaksPanel = memo(PeaksPanelInner);
|
|
85
85
|
const emptyData = { peaks: null, info: {} };
|
|
@@ -87,5 +87,5 @@ export default function PeaksPanel() {
|
|
|
87
87
|
const { xDomain, activeTab } = useChartData();
|
|
88
88
|
const { peaks, info } = useSpectrum(emptyData);
|
|
89
89
|
const preferences = usePreferences();
|
|
90
|
-
return (_jsx(MemoizedPeaksPanel, { ...{ peaks, info, xDomain, activeTab, preferences } }
|
|
90
|
+
return (_jsx(MemoizedPeaksPanel, { ...{ peaks, info, xDomain, activeTab, preferences } }));
|
|
91
91
|
}
|