nmrium 0.22.0 → 0.24.1
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 -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.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.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/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 +52 -14
- 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.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.js +51 -32
- 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.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/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 -8
- package/lib/component/reducer/actions/MoleculeActions.js +5 -1
- package/lib/component/reducer/preferencesReducer.d.ts +183 -36
- package/lib/component/reducer/preferencesReducer.js +196 -85
- 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 -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/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 -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 +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 +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 +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 +51 -13
- 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 +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 +51 -32
- 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 +118 -0
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +41 -0
- 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 -9
- 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 +195 -83
- 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/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 -45
- package/lib-cjs/component/workspaces/exercise1D.js +0 -48
|
@@ -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);
|
|
@@ -19,88 +19,95 @@ 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
|
-
hidePreferenceKey: '
|
|
26
|
+
component: _jsx(SpectrumListPanel, {}),
|
|
27
|
+
hidePreferenceKey: 'spectraPanel',
|
|
27
28
|
mode: null,
|
|
28
29
|
},
|
|
29
30
|
{
|
|
30
31
|
title: 'Information',
|
|
31
|
-
component: _jsx(InformationPanel, {}
|
|
32
|
+
component: _jsx(InformationPanel, {}),
|
|
32
33
|
style: { overflow: 'hidden' },
|
|
33
|
-
hidePreferenceKey: '
|
|
34
|
+
hidePreferenceKey: 'informationPanel',
|
|
34
35
|
mode: null,
|
|
35
36
|
},
|
|
36
37
|
{
|
|
37
38
|
title: 'Peaks',
|
|
38
|
-
component: _jsx(PeaksPanel, {}
|
|
39
|
-
hidePreferenceKey: '
|
|
39
|
+
component: _jsx(PeaksPanel, {}),
|
|
40
|
+
hidePreferenceKey: 'peaksPanel',
|
|
40
41
|
mode: null,
|
|
41
42
|
},
|
|
42
43
|
{
|
|
43
44
|
title: 'Filters',
|
|
44
|
-
component: _jsx(FilterPanel, {}
|
|
45
|
-
hidePreferenceKey: '
|
|
45
|
+
component: _jsx(FilterPanel, {}),
|
|
46
|
+
hidePreferenceKey: 'filtersPanel',
|
|
46
47
|
mode: null,
|
|
47
48
|
},
|
|
48
49
|
{
|
|
49
50
|
title: 'Integrals',
|
|
50
|
-
component: _jsx(IntegralPanel, {}
|
|
51
|
-
hidePreferenceKey: '
|
|
51
|
+
component: _jsx(IntegralPanel, {}),
|
|
52
|
+
hidePreferenceKey: 'integralsPanel',
|
|
52
53
|
mode: null,
|
|
53
54
|
},
|
|
54
55
|
{
|
|
55
56
|
title: 'Ranges',
|
|
56
|
-
component: _jsx(RangesPanel, {}
|
|
57
|
-
hidePreferenceKey: '
|
|
57
|
+
component: _jsx(RangesPanel, {}),
|
|
58
|
+
hidePreferenceKey: 'rangesPanel',
|
|
58
59
|
mode: DISPLAYER_MODE.DM_1D,
|
|
59
60
|
},
|
|
60
61
|
{
|
|
61
62
|
title: 'Multiple Spectra Analysis',
|
|
62
|
-
component: _jsx(MultipleSpectraAnalysisPanel, {}
|
|
63
|
-
hidePreferenceKey: '
|
|
63
|
+
component: _jsx(MultipleSpectraAnalysisPanel, {}),
|
|
64
|
+
hidePreferenceKey: 'multipleSpectraAnalysisPanel',
|
|
64
65
|
mode: null,
|
|
65
66
|
},
|
|
66
67
|
{
|
|
67
68
|
title: 'Matrix Generation',
|
|
68
|
-
component: _jsx(MatrixGenerationPanel, {}
|
|
69
|
+
component: _jsx(MatrixGenerationPanel, {}),
|
|
69
70
|
hidePreferenceKey: '',
|
|
70
71
|
mode: null,
|
|
71
72
|
isExperimental: true,
|
|
72
73
|
},
|
|
73
74
|
{
|
|
74
75
|
title: 'Zones',
|
|
75
|
-
component: _jsx(ZonesPanel, {}
|
|
76
|
-
hidePreferenceKey: '
|
|
76
|
+
component: _jsx(ZonesPanel, {}),
|
|
77
|
+
hidePreferenceKey: 'zonesPanel',
|
|
77
78
|
mode: DISPLAYER_MODE.DM_2D,
|
|
78
79
|
},
|
|
79
80
|
{
|
|
80
81
|
title: 'Summary',
|
|
81
|
-
component: _jsx(SummaryPanel, {}
|
|
82
|
-
hidePreferenceKey: '
|
|
82
|
+
component: _jsx(SummaryPanel, {}),
|
|
83
|
+
hidePreferenceKey: 'summaryPanel',
|
|
83
84
|
mode: null,
|
|
84
85
|
},
|
|
85
86
|
{
|
|
86
87
|
title: 'Structures',
|
|
87
|
-
component: _jsx(MoleculePanel, {}
|
|
88
|
-
hidePreferenceKey: '
|
|
88
|
+
component: _jsx(MoleculePanel, {}),
|
|
89
|
+
hidePreferenceKey: 'structuresPanel',
|
|
89
90
|
mode: null,
|
|
90
91
|
},
|
|
91
92
|
{
|
|
92
93
|
title: 'Database',
|
|
93
|
-
component: _jsx(DatabasePanel, {}
|
|
94
|
-
hidePreferenceKey: '
|
|
94
|
+
component: _jsx(DatabasePanel, {}),
|
|
95
|
+
hidePreferenceKey: 'databasePanel',
|
|
95
96
|
mode: null,
|
|
96
97
|
},
|
|
97
98
|
{
|
|
98
99
|
title: 'Automatic Assignment',
|
|
99
|
-
component: _jsx(AutomaticAssignment, {}
|
|
100
|
+
component: _jsx(AutomaticAssignment, {}),
|
|
100
101
|
hidePreferenceKey: '',
|
|
101
102
|
mode: null,
|
|
102
103
|
isExperimental: true,
|
|
103
104
|
},
|
|
105
|
+
{
|
|
106
|
+
title: 'Prediction',
|
|
107
|
+
component: _jsx(PredictionPane, {}),
|
|
108
|
+
hidePreferenceKey: 'predictionPanel',
|
|
109
|
+
mode: null,
|
|
110
|
+
},
|
|
104
111
|
];
|
|
105
112
|
export const TOOLS_PANELS_ACCORDION = {
|
|
106
113
|
null: 'Spectra',
|
|
@@ -110,21 +117,33 @@ export const TOOLS_PANELS_ACCORDION = {
|
|
|
110
117
|
zone2D: 'Zones',
|
|
111
118
|
multipleSpectraAnalysis: 'Multiple Spectra Analysis',
|
|
112
119
|
};
|
|
113
|
-
function
|
|
120
|
+
function usePanelPreferences() {
|
|
114
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();
|
|
115
128
|
const isExperimental = useCheckExperimentalFeature();
|
|
116
129
|
const check = useCallback((item) => {
|
|
117
|
-
|
|
130
|
+
const panelOptions = getPanelPreferences(item);
|
|
131
|
+
return ((panelOptions?.hidden !== true &&
|
|
132
|
+
panelOptions?.display === true &&
|
|
118
133
|
item.isExperimental === undefined &&
|
|
119
|
-
(item.mode == null || item.mode ===
|
|
134
|
+
(item.mode == null || item.mode === displayedMode)) ||
|
|
120
135
|
(item.isExperimental && isExperimental));
|
|
121
|
-
}, [
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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
|
+
}) }) }));
|
|
125
144
|
}
|
|
126
145
|
const MemoizedPanels = memo(PanelsInner);
|
|
127
146
|
export default function Panels() {
|
|
128
147
|
const { displayerMode, toolOptions: { selectedTool }, } = useChartData();
|
|
129
|
-
return _jsx(MemoizedPanels, { ...{ displayerMode, selectedTool } }
|
|
148
|
+
return _jsx(MemoizedPanels, { ...{ displayerMode, selectedTool } });
|
|
130
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
|
}
|
|
@@ -6,7 +6,6 @@ import FormikColumnFormatField from '../../elements/formik/FormikColumnFormatFie
|
|
|
6
6
|
import FormikForm from '../../elements/formik/FormikForm';
|
|
7
7
|
import { useAlert } from '../../elements/popup/Alert';
|
|
8
8
|
import useNucleus from '../../hooks/useNucleus';
|
|
9
|
-
import { SET_PANELS_PREFERENCES } from '../../reducer/preferencesReducer';
|
|
10
9
|
import { getValue as getValueByKeyPath } from '../../utility/LocalStorage';
|
|
11
10
|
import { peaksDefaultValues } from '../extra/preferences/defaultValues';
|
|
12
11
|
const styles = {
|
|
@@ -90,7 +89,7 @@ function PeaksPreferencesInner({ nucleus, preferences, innerRef, }) {
|
|
|
90
89
|
acc[nucleusLabel] = peaksDefaultValues;
|
|
91
90
|
return acc;
|
|
92
91
|
}, {});
|
|
93
|
-
const peaksPreferences = getValueByKeyPath(preferences, `formatting.panels.peaks`);
|
|
92
|
+
const peaksPreferences = getValueByKeyPath(preferences.current, `formatting.panels.peaks`);
|
|
94
93
|
formRef.current.setValues(peaksPreferences ? peaksPreferences : defaultValues);
|
|
95
94
|
}
|
|
96
95
|
}, [nucleus, preferences]);
|
|
@@ -99,7 +98,7 @@ function PeaksPreferencesInner({ nucleus, preferences, innerRef, }) {
|
|
|
99
98
|
}, [updateValues]);
|
|
100
99
|
const saveHandler = useCallback((values) => {
|
|
101
100
|
preferences.dispatch({
|
|
102
|
-
type: SET_PANELS_PREFERENCES,
|
|
101
|
+
type: 'SET_PANELS_PREFERENCES',
|
|
103
102
|
payload: { key: 'peaks', value: values },
|
|
104
103
|
});
|
|
105
104
|
alert.success('Peaks preferences saved successfully');
|
|
@@ -109,13 +108,13 @@ function PeaksPreferencesInner({ nucleus, preferences, innerRef, }) {
|
|
|
109
108
|
formRef.current.submitForm();
|
|
110
109
|
},
|
|
111
110
|
}), []);
|
|
112
|
-
return (_jsx("div", { style: styles.container, children: _jsx(FormikForm, { onSubmit: saveHandler, ref: formRef, children: nucleus?.map((nucleusLabel) => (_jsxs("div", { style: styles.groupContainer, children: [_jsx(IsotopesViewer, { style: styles.header, value: nucleusLabel }
|
|
111
|
+
return (_jsx("div", { style: styles.container, children: _jsx(FormikForm, { onSubmit: saveHandler, ref: formRef, children: nucleus?.map((nucleusLabel) => (_jsxs("div", { style: styles.groupContainer, children: [_jsx(IsotopesViewer, { style: styles.header, value: nucleusLabel }), formatFields.map((field) => (_jsx(FormikColumnFormatField, { label: field.label, checkControllerName: `${nucleusLabel}.${field.checkController}`, formatControllerName: `${nucleusLabel}.${field.formatController}`, hideFormat: field.formatController === 'deltaPPMFormat' }, field.id)))] }, nucleusLabel))) }) }));
|
|
113
112
|
}
|
|
114
113
|
const MemoizedPeaksPreferences = memo(PeaksPreferencesInner);
|
|
115
114
|
// TODO: remove this hacky use of ref.
|
|
116
115
|
function PeaksPreferences(props, ref) {
|
|
117
116
|
const nucleus = useNucleus();
|
|
118
117
|
const preferences = usePreferences();
|
|
119
|
-
return (_jsx(MemoizedPeaksPreferences, { innerRef: ref, ...{ nucleus, preferences } }
|
|
118
|
+
return (_jsx(MemoizedPeaksPreferences, { innerRef: ref, ...{ nucleus, preferences } }));
|
|
120
119
|
}
|
|
121
120
|
export default forwardRef(PeaksPreferences);
|
|
@@ -22,7 +22,7 @@ function PeaksTable({ activeTab, preferences, data, info }) {
|
|
|
22
22
|
data: { id: params.id, xIndex: params.xIndex },
|
|
23
23
|
});
|
|
24
24
|
}, [dispatch]);
|
|
25
|
-
const peaksPreferences = useMemo(() => getValue(preferences, `formatting.panels.peaks.[${activeTab}]`, peaksDefaultValues), [activeTab, preferences]);
|
|
25
|
+
const peaksPreferences = useMemo(() => getValue(preferences.current, `formatting.panels.peaks.[${activeTab}]`, peaksDefaultValues), [activeTab, preferences]);
|
|
26
26
|
const saveDeltaPPMRefsHandler = useCallback((event, row) => {
|
|
27
27
|
const shiftValue = parseFloat(event.target.value) - parseFloat(row.value);
|
|
28
28
|
dispatch({ type: SHIFT_SPECTRUM, shiftValue });
|
|
@@ -46,7 +46,7 @@ function PeaksTable({ activeTab, preferences, data, info }) {
|
|
|
46
46
|
index: 3,
|
|
47
47
|
Header: 'δ (ppm)',
|
|
48
48
|
accessor: (row) => format(row.value),
|
|
49
|
-
Cell: ({ row }) => (_jsx(EditableColumn, { value: format(row.original.value), onSave: (event) => saveDeltaPPMRefsHandler(event, row.original), type: "number" }
|
|
49
|
+
Cell: ({ row }) => (_jsx(EditableColumn, { value: format(row.original.value), onSave: (event) => saveDeltaPPMRefsHandler(event, row.original), type: "number" })),
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
showWhen: 'showDeltaHz',
|
|
@@ -78,7 +78,7 @@ function PeaksTable({ activeTab, preferences, data, info }) {
|
|
|
78
78
|
minWidth: '24px',
|
|
79
79
|
},
|
|
80
80
|
id: 'delete-button',
|
|
81
|
-
Cell: ({ row }) => (_jsx("button", { type: "button", className: "delete-button", onClick: (e) => deletePeakHandler(e, row), children: _jsx(FaRegTrashAlt, {}
|
|
81
|
+
Cell: ({ row }) => (_jsx("button", { type: "button", className: "delete-button", onClick: (e) => deletePeakHandler(e, row), children: _jsx(FaRegTrashAlt, {}) })),
|
|
82
82
|
},
|
|
83
83
|
], [deletePeakHandler]);
|
|
84
84
|
const tableColumns = useMemo(() => {
|
|
@@ -91,6 +91,6 @@ function PeaksTable({ activeTab, preferences, data, info }) {
|
|
|
91
91
|
}
|
|
92
92
|
return columns.sort((object1, object2) => object1.index - object2.index);
|
|
93
93
|
}, [COLUMNS, initialColumns, peaksPreferences]);
|
|
94
|
-
return data && data.length > 0 ? (_jsx(ReactTable, { data: data, columns: tableColumns, approxItemHeight: 20, enableVirtualScroll: true }
|
|
94
|
+
return data && data.length > 0 ? (_jsx(ReactTable, { data: data, columns: tableColumns, approxItemHeight: 20, enableVirtualScroll: true })) : (_jsx(NoTableData, {}));
|
|
95
95
|
}
|
|
96
96
|
export default memo(PeaksTable);
|
|
@@ -52,7 +52,7 @@ function RangesHeader({ ranges, info, onUnlink, onFilterActivated, onSettingClic
|
|
|
52
52
|
const showChangeRangesSumModal = useCallback(() => {
|
|
53
53
|
modal.show(_jsx(ChangeSumModal, { onClose: () => modal.close(), onSave: changeRangesSumHandler, header: currentSum
|
|
54
54
|
? `Set new Ranges Sum (Current: ${Number(currentSum).toFixed(2)})`
|
|
55
|
-
: 'Set new Ranges Sum', sumOptions: ranges?.options }
|
|
55
|
+
: 'Set new Ranges Sum', sumOptions: ranges?.options }));
|
|
56
56
|
}, [changeRangesSumHandler, currentSum, modal, ranges?.options]);
|
|
57
57
|
const removeAssignments = useCallback(() => {
|
|
58
58
|
onUnlink();
|
|
@@ -89,18 +89,20 @@ function RangesHeader({ ranges, info, onUnlink, onFilterActivated, onSettingClic
|
|
|
89
89
|
const handleShowJGraph = useCallback(() => {
|
|
90
90
|
dispatch({ type: SHOW_J_GRAPH });
|
|
91
91
|
}, [dispatch]);
|
|
92
|
-
const saveToClipboardHandler = useCallback(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
92
|
+
const saveToClipboardHandler = useCallback((value) => {
|
|
93
|
+
void (async () => {
|
|
94
|
+
const success = await copyHTMLToClipboard(value);
|
|
95
|
+
if (success) {
|
|
96
|
+
alert.success('Data copied to clipboard');
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
alert.error('copy to clipboard failed');
|
|
100
|
+
}
|
|
101
|
+
})();
|
|
100
102
|
}, [alert]);
|
|
101
103
|
const saveAsHTMLHandler = useCallback(() => {
|
|
102
104
|
const { originFrequency: observedFrequency, nucleus } = info;
|
|
103
|
-
const format = lodashGet(preferences, `formatting.nucleusByKey[${nucleus.toLowerCase()}]`);
|
|
105
|
+
const format = lodashGet(preferences.current, `formatting.nucleusByKey[${nucleus.toLowerCase()}]`);
|
|
104
106
|
const nbDecimalDelta = getNumberOfDecimals(format.ppm);
|
|
105
107
|
const nbDecimalJ = getNumberOfDecimals(format.hz);
|
|
106
108
|
const result = rangesToACS(ranges.values, {
|
|
@@ -109,7 +111,7 @@ function RangesHeader({ ranges, info, onUnlink, onFilterActivated, onSettingClic
|
|
|
109
111
|
nbDecimalJ,
|
|
110
112
|
observedFrequency, //400
|
|
111
113
|
});
|
|
112
|
-
modal.show(_jsx(CopyClipboardModal, { text: result, onCopyClick: saveToClipboardHandler, onClose: () => modal.close() }
|
|
114
|
+
modal.show(_jsx(CopyClipboardModal, { text: result, onCopyClick: saveToClipboardHandler, onClose: () => modal.close() }), {});
|
|
113
115
|
}, [info, modal, preferences, ranges.values, saveToClipboardHandler]);
|
|
114
116
|
const changeSumConstantFlagHandler = useCallback((flag) => {
|
|
115
117
|
dispatch({
|
|
@@ -117,10 +119,10 @@ function RangesHeader({ ranges, info, onUnlink, onFilterActivated, onSettingClic
|
|
|
117
119
|
payload: flag,
|
|
118
120
|
});
|
|
119
121
|
}, [dispatch]);
|
|
120
|
-
return (_jsx("div", { css: style, children: _jsxs(DefaultPanelHeader, { counter: ranges?.values?.length, onDelete: handleDeleteAll, deleteToolTip: "Delete All Ranges", onFilter: onFilterActivated, filterToolTip: isFilterActive ? 'Show all ranges' : 'Hide ranges out of view', filterIsActive: isFilterActive, counterFiltered: filterCounter, showSettingButton: true, onSettingClick: onSettingClick, children: [_jsx(Button, { popupTitle: "Preview publication string", popupPlacement: "right", onClick: saveAsHTMLHandler, className: "btn preview-publication-icon", children: _jsx(FaFileExport, {}
|
|
122
|
+
return (_jsx("div", { css: style, children: _jsxs(DefaultPanelHeader, { counter: ranges?.values?.length, onDelete: handleDeleteAll, deleteToolTip: "Delete All Ranges", onFilter: onFilterActivated, filterToolTip: isFilterActive ? 'Show all ranges' : 'Hide ranges out of view', filterIsActive: isFilterActive, counterFiltered: filterCounter, showSettingButton: true, onSettingClick: onSettingClick, children: [_jsx(Button, { popupTitle: "Preview publication string", popupPlacement: "right", onClick: saveAsHTMLHandler, className: "btn preview-publication-icon", children: _jsx(FaFileExport, {}) }), _jsx(Button, { popupTitle: currentSum
|
|
121
123
|
? `Change Ranges Sum (${Number(currentSum).toFixed(2)})`
|
|
122
|
-
: 'Change Ranges Sum', popupPlacement: "right", onClick: showChangeRangesSumModal, className: "btn icon", children: _jsx(SvgNmrSum, {}
|
|
124
|
+
: 'Change Ranges Sum', popupPlacement: "right", onClick: showChangeRangesSumModal, className: "btn icon", children: _jsx(SvgNmrSum, {}) }), _jsx(Button, { popupTitle: "Remove all Assignments", popupPlacement: "right", onClick: handleOnRemoveAssignments, disabled: !ranges || !ranges.values || ranges.values.length === 0, className: "btn icon", children: _jsx(FaUnlink, {}) }), _jsx(ToggleButton, { popupTitle: showMultiplicityTrees
|
|
123
125
|
? 'Hide Multiplicity Trees in Spectrum'
|
|
124
|
-
: 'Show Multiplicity Trees in Spectrum', popupPlacement: "right", onClick: handleSetShowMultiplicityTrees, disabled: !ranges || !ranges.values || ranges.values.length === 0, children: _jsx(FaSitemap, { style: { pointerEvents: 'none', fontSize: '12px' } }
|
|
126
|
+
: 'Show Multiplicity Trees in Spectrum', popupPlacement: "right", onClick: handleSetShowMultiplicityTrees, disabled: !ranges || !ranges.values || ranges.values.length === 0, children: _jsx(FaSitemap, { style: { pointerEvents: 'none', fontSize: '12px' } }) }), _jsx(ToggleButton, { popupTitle: showJGraph ? 'Hide J Graph' : 'Show J Graph', popupPlacement: "right", onClick: handleShowJGraph, disabled: !ranges || !ranges.values || ranges.values.length === 0, children: _jsx(FaChartBar, { style: { pointerEvents: 'none', fontSize: '12px' } }) }), _jsx(ToggleButton, { popupTitle: showRangesIntegrals ? 'Hide integrals' : 'Show integrals', popupPlacement: "right", onClick: handleShowIntegrals, defaultValue: showRangesIntegrals, disabled: !ranges || !ranges.values || ranges.values.length === 0, children: _jsx(SvgNmrIntegrate, { style: { pointerEvents: 'none', fontSize: '12px' } }) }), _jsx(ToggleButton, { className: "icon", popupTitle: "fix integral values", popupPlacement: "right", onClick: changeSumConstantFlagHandler, children: _jsx(ImLink, {}) })] }) }));
|
|
125
127
|
}
|
|
126
128
|
export default RangesHeader;
|
|
@@ -85,8 +85,7 @@ function RangesTablePanelInner({ ranges, data, info, xDomain, preferences, activ
|
|
|
85
85
|
}
|
|
86
86
|
}, [data, alert]);
|
|
87
87
|
const rangesPreferences = useMemo(() => {
|
|
88
|
-
const _preferences = lodashGet(preferences, `formatting.panels.ranges.[${activeTab}]`) ||
|
|
89
|
-
getRangeDefaultValues(activeTab);
|
|
88
|
+
const _preferences = lodashGet(preferences.current, `formatting.panels.ranges.[${activeTab}]`) || getRangeDefaultValues(activeTab);
|
|
90
89
|
return _preferences;
|
|
91
90
|
}, [activeTab, preferences]);
|
|
92
91
|
const contextMenu = useMemo(() => [
|
|
@@ -122,7 +121,7 @@ function RangesTablePanelInner({ ranges, data, info, xDomain, preferences, activ
|
|
|
122
121
|
showMultiplicityTrees,
|
|
123
122
|
showJGraph,
|
|
124
123
|
isFilterActive,
|
|
125
|
-
}, onUnlink: unlinkRangeHandler, onFilterActivated: filterHandler, onSettingClick: settingsPanelHandler, filterCounter: rangesData.length }
|
|
124
|
+
}, onUnlink: unlinkRangeHandler, onFilterActivated: filterHandler, onSettingClick: settingsPanelHandler, filterCounter: rangesData.length })), isFlipped && (_jsx(PreferencesHeader, { onSave: saveSettingHandler, onClose: settingsPanelHandler })), _jsx("div", { className: "inner-container", children: !isFlipped ? (_jsx("div", { className: "table-container", children: rangesData && rangesData.length > 0 ? (_jsx(RangesTable, { activeTab: activeTab, tableData: rangesData, onUnlink: unlinkRangeHandler, context: contextMenu, preferences: rangesPreferences })) : (_jsx(NoTableData, {})) })) : (_jsx(RangesPreferences, { ref: settingRef })) })] }) }));
|
|
126
125
|
}
|
|
127
126
|
const MemoizedRangesTablePanel = memo(RangesTablePanelInner);
|
|
128
127
|
const emptyData = { ranges: {}, data: {}, info: {} };
|
|
@@ -143,5 +142,5 @@ export default function RangesTablePanel() {
|
|
|
143
142
|
xDomain,
|
|
144
143
|
activeTab,
|
|
145
144
|
molecules,
|
|
146
|
-
} }
|
|
145
|
+
} }));
|
|
147
146
|
}
|
|
@@ -8,7 +8,6 @@ import FormikForm from '../../elements/formik/FormikForm';
|
|
|
8
8
|
import FormikInput from '../../elements/formik/FormikInput';
|
|
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 { getRangeDefaultValues } from '../extra/preferences/defaultValues';
|
|
14
13
|
const styles = {
|
|
@@ -78,7 +77,7 @@ function RangesPreferencesInner({ nucleus, preferences, innerRef, }) {
|
|
|
78
77
|
acc[nucleusLabel] = getRangeDefaultValues(nucleusLabel);
|
|
79
78
|
return acc;
|
|
80
79
|
}, {});
|
|
81
|
-
const rangesPreferences = getValueByKeyPath(preferences, `formatting.panels.ranges`);
|
|
80
|
+
const rangesPreferences = getValueByKeyPath(preferences.current, `formatting.panels.ranges`);
|
|
82
81
|
formRef.current.setValues(rangesPreferences ? rangesPreferences : defaultValues);
|
|
83
82
|
}
|
|
84
83
|
}, [nucleus, preferences]);
|
|
@@ -87,7 +86,7 @@ function RangesPreferencesInner({ nucleus, preferences, innerRef, }) {
|
|
|
87
86
|
}, [updateValues]);
|
|
88
87
|
const saveHandler = useCallback((values) => {
|
|
89
88
|
preferences.dispatch({
|
|
90
|
-
type: SET_PANELS_PREFERENCES,
|
|
89
|
+
type: 'SET_PANELS_PREFERENCES',
|
|
91
90
|
payload: { key: 'ranges', value: values },
|
|
92
91
|
});
|
|
93
92
|
alert.success('ranges preferences saved successfully');
|
|
@@ -97,7 +96,7 @@ function RangesPreferencesInner({ nucleus, preferences, innerRef, }) {
|
|
|
97
96
|
formRef.current.submitForm();
|
|
98
97
|
},
|
|
99
98
|
}), []);
|
|
100
|
-
return (_jsx("div", { style: styles.container, children: _jsx(FormikForm, { onSubmit: saveHandler, ref: formRef, children: nucleus?.map((nucleusLabel) => (_jsxs("div", { style: styles.groupContainer, children: [_jsx(IsotopesViewer, { style: styles.header, value: nucleusLabel }
|
|
99
|
+
return (_jsx("div", { style: styles.container, children: _jsx(FormikForm, { onSubmit: saveHandler, ref: formRef, children: nucleus?.map((nucleusLabel) => (_jsxs("div", { style: styles.groupContainer, children: [_jsx(IsotopesViewer, { style: styles.header, value: nucleusLabel }), formatFields.map((field) => (_jsx(FormikColumnFormatField, { label: field.label, checkControllerName: `${nucleusLabel}.${field.checkController}`, formatControllerName: `${nucleusLabel}.${field.formatController}` }, field.id))), _jsx(Label, { title: "J Graph tolerance (Hz) :", style: { label: styles.inputLabel, wrapper: styles.inputWrapper }, children: _jsx(FormikInput, { name: `${nucleusLabel}.jGraphTolerance`, type: "number" }) })] }, nucleusLabel))) }) }));
|
|
101
100
|
}
|
|
102
101
|
const MemoizedRangesPreferences = memo(RangesPreferencesInner);
|
|
103
102
|
// TODO: remove this hacky use of ref.
|
|
@@ -107,6 +106,6 @@ function RangesPreferences(prop, ref) {
|
|
|
107
106
|
return (_jsx(MemoizedRangesPreferences, { innerRef: ref, ...{
|
|
108
107
|
preferences,
|
|
109
108
|
nucleus,
|
|
110
|
-
} }
|
|
109
|
+
} }));
|
|
111
110
|
}
|
|
112
111
|
export default forwardRef(RangesPreferences);
|
|
@@ -8,7 +8,7 @@ import checkModifierKeyActivated from '../../../data/utilities/checkModifierKeyA
|
|
|
8
8
|
import ContextMenu from '../../elements/ContextMenu';
|
|
9
9
|
import useTableSortBy from '../../hooks/useTableSortBy';
|
|
10
10
|
import RangesTableRow from './RangesTableRow';
|
|
11
|
-
import useMapRanges from './useMapRanges';
|
|
11
|
+
import useMapRanges from './hooks/useMapRanges';
|
|
12
12
|
const tableStyle = css `
|
|
13
13
|
border-spacing: 0;
|
|
14
14
|
border: 1px solid #dedede;
|
|
@@ -62,8 +62,8 @@ function RangesTable({ tableData, onUnlink, context, activeTab, preferences }) {
|
|
|
62
62
|
contextRef.current.handleContextMenu(e, rowData);
|
|
63
63
|
}
|
|
64
64
|
}, [contextRef]);
|
|
65
|
-
return (_jsxs(Fragment, { children: [_jsxs("table", { css: tableStyle, children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "#" }
|
|
65
|
+
return (_jsxs(Fragment, { children: [_jsxs("table", { css: tableStyle, children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "#" }), isVisible('showFrom') ? (_jsxs("th", { id: "from", ...onSort, children: ["From", isSortedDesc('from').content] })) : null, isVisible('showTo') ? (_jsxs("th", { id: "to", ...onSort, children: ["To ", isSortedDesc('to').content] })) : null, _jsx("th", { children: "\u03B4 (ppm) " }), isVisible('showRelative') ? (_jsxs("th", { id: "integration", ...onSort, children: ["Rel. ", element, " ", isSortedDesc('integration').content] })) : null, isVisible('showAbsolute') ? _jsx("th", { children: "Absolute" }) : null, _jsx("th", { children: "Mult." }), _jsx("th", { children: "J (Hz)" }), _jsx("th", { children: _jsx(FaLink, { style: { fontSize: 10 } }) }), _jsx("th", { children: "\u03A3" }), _jsx("th", { children: "Kind" }), _jsx("th", { children: '' })] }) }), _jsx("tbody", { children: data?.map((range) => {
|
|
66
66
|
return (_jsx(RangesTableRow, { rowData: range, onUnlink: onUnlink, onContextMenu: (e, rowData) => contextMenuHandler(e, rowData), preferences: preferences }, range.rowKey));
|
|
67
|
-
}) }
|
|
67
|
+
}) })] }), _jsx(ContextMenu, { ref: contextRef, context: context })] }));
|
|
68
68
|
}
|
|
69
69
|
export default RangesTable;
|
|
@@ -109,6 +109,6 @@ function RangesTableRow({ rowData, onUnlink, onContextMenu, preferences, }) {
|
|
|
109
109
|
? ConstantlyHighlightedRowStyle
|
|
110
110
|
: null;
|
|
111
111
|
}, [assignmentRange.isActive, highlightRange.isActive, rowData]);
|
|
112
|
-
return (_jsxs("tr", { onContextMenu: (e) => onContextMenu(e, rowData), css: trCss, children: [_jsx("td", { ...rowSpanTags, ...onHoverRange, children: rowData.tableMetaInfo.rowIndex + 1 }
|
|
112
|
+
return (_jsxs("tr", { onContextMenu: (e) => onContextMenu(e, rowData), css: trCss, children: [_jsx("td", { ...rowSpanTags, ...onHoverRange, children: rowData.tableMetaInfo.rowIndex + 1 }), isColumnVisible(preferences, 'showFrom') && (_jsx(RangeColumn, { value: rowData.from, rowSpanTags: rowSpanTags, onHoverRange: onHoverRange, format: getFormat('showFrom', undefined) })), isColumnVisible(preferences, 'showTo') && (_jsx(RangeColumn, { value: rowData.to, rowSpanTags: rowSpanTags, onHoverRange: onHoverRange, format: getFormat('toFormat', undefined) })), _jsx(SignalDeltaColumn, { rowData: rowData, onHoverSignal: onHoverSignal, preferences: preferences }), isColumnVisible(preferences, 'showRelative') && (_jsx(RelativeColumn, { rowData: rowData, rowSpanTags: rowSpanTags, onHoverRange: onHoverRange, format: getFormat('relativeFormat', undefined) })), isColumnVisible(preferences, 'showAbsolute') && (_jsx(AbsoluteColumn, { value: rowData.absolute, rowSpanTags: rowSpanTags, onHoverRange: onHoverRange, format: getFormat('absoluteFormat', undefined) })), _jsx("td", { ...onHoverSignal, children: lodashGet(rowData, 'tableMetaInfo.signal.multiplicity', '') }), _jsx(CouplingColumn, { rowData: rowData, onHoverSignal: onHoverSignal }), _jsx(SignalAssignmentsColumn, { rowData: rowData, assignment: assignmentSignal, highlight: highlightSignal, onHover: onHoverSignal, unlinkVisibility: unlinkSignalButtonVisibility, onUnlinkVisibilityChange: (flag) => showUnlinkSignalButton(flag), onLink: linkHandler, onUnlink: unlinkHandler }), _jsx(RangeAssignmentsColumn, { rowData: rowData, assignment: assignmentRange, highlight: highlightRangeAssignmentsColumn, onHover: onHoverRangeAssignmentsColumn, unlinkVisibility: unlinkRangeButtonVisibility, onUnlinkVisibilityChange: (flag) => showUnlinkRangeButton(flag), onLink: linkHandler, onUnlink: unlinkHandler, rowSpanTags: rowSpanTags, highlightData: highlightData }), _jsx(ActionsColumn, { rowData: rowData, onHoverSignal: onHoverSignal, onHoverRange: onHoverRange, rowSpanTags: rowSpanTags })] }));
|
|
113
113
|
}
|
|
114
114
|
export default RangesTableRow;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import FormatNumber from '../../../utility/FormatNumber';
|
|
3
3
|
function AbsoluteColumn({ rowSpanTags, value, onHoverRange, format, }) {
|
|
4
|
-
return (_jsx("td", { ...rowSpanTags, ...onHoverRange, children: FormatNumber(value, format) }
|
|
4
|
+
return (_jsx("td", { ...rowSpanTags, ...onHoverRange, children: FormatNumber(value, format) }));
|
|
5
5
|
}
|
|
6
6
|
export default AbsoluteColumn;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
+
import { RangeData } from '../hooks/useMapRanges';
|
|
2
3
|
interface ActionsColumnProps {
|
|
3
|
-
rowData:
|
|
4
|
-
id: number;
|
|
5
|
-
from: number;
|
|
6
|
-
to: number;
|
|
7
|
-
tableMetaInfo: any;
|
|
8
|
-
};
|
|
4
|
+
rowData: RangeData;
|
|
9
5
|
rowSpanTags: {
|
|
10
6
|
rowSpan: any;
|
|
11
7
|
style: CSSProperties;
|