nmrium 0.27.0 → 0.30.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 +12 -2
- package/lib/component/1d/ApodizationLine.d.ts +3 -0
- package/lib/component/1d/ApodizationLine.js +47 -0
- package/lib/component/1d/Chart1D.js +4 -2
- package/lib/component/1d/ExclusionZoneAnnotation.d.ts +1 -1
- package/lib/component/1d/ExclusionZoneAnnotation.js +14 -7
- package/lib/component/1d/ExclusionZonesAnnotations.js +1 -1
- package/lib/component/1d/IntegralResizable.js +5 -4
- package/lib/component/1d/IntegralsSeries.js +2 -6
- package/lib/component/1d/LinesSeries.js +6 -6
- package/lib/component/1d/SpectraTracker.js +2 -2
- package/lib/component/1d/Viewer1D.js +8 -13
- package/lib/component/1d/database/DatabaseElements.js +2 -2
- package/lib/component/1d/database/DatabaseSpectrum.js +33 -28
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +11 -9
- package/lib/component/1d/multiAnalysis/AnalysisRange.js +16 -14
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +3 -4
- package/lib/component/1d/{PeakAnnotation.d.ts → peaks/PeakAnnotation.d.ts} +1 -2
- package/lib/component/1d/{PeakAnnotation.js → peaks/PeakAnnotation.js} +10 -11
- package/lib/component/1d/{PeakAnnotations.d.ts → peaks/PeakAnnotations.d.ts} +0 -0
- package/lib/component/1d/peaks/PeakAnnotations.js +26 -0
- package/lib/component/1d/peaks/PeaksShapes.d.ts +3 -0
- package/lib/component/1d/peaks/PeaksShapes.js +35 -0
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts +13 -0
- package/lib/component/1d/peaks/usePeakShapesPath.js +45 -0
- package/lib/component/1d/ranges/Range.d.ts +1 -2
- package/lib/component/1d/ranges/Range.js +7 -8
- package/lib/component/1d/ranges/Ranges.js +3 -4
- package/lib/component/1d/tool/BaseLineZones.js +3 -6
- package/lib/component/1d/tool/VerticalIndicator.js +1 -1
- package/lib/component/2d/Contours.js +9 -13
- package/lib/component/2d/FooterBanner.js +2 -2
- package/lib/component/2d/SignalDeltaLine.js +1 -1
- package/lib/component/2d/Viewer2D.js +3 -3
- package/lib/component/2d/YAxis.js +2 -2
- package/lib/component/2d/zones/IndicationLines.js +2 -3
- package/lib/component/2d/zones/Signal.d.ts +3 -2
- package/lib/component/2d/zones/Signal.js +3 -3
- package/lib/component/2d/zones/Zone.d.ts +1 -1
- package/lib/component/2d/zones/Zone.js +4 -4
- package/lib/component/EventsTrackers/KeysListenerTracker.js +132 -75
- package/lib/component/NMRium.d.ts +14 -49
- package/lib/component/NMRium.js +14 -6
- package/lib/component/SplitPaneWrapper.js +2 -2
- package/lib/component/assignment/AssignmentsContext.d.ts +1 -1
- package/lib/component/context/GlobalContext.d.ts +1 -1
- package/lib/component/context/GlobalContext.js +3 -3
- package/lib/component/context/PreferencesContext.d.ts +3 -45
- package/lib/component/elements/ActiveButton.d.ts +17 -0
- package/lib/component/elements/ActiveButton.js +28 -0
- package/lib/component/elements/Button.d.ts +6 -6
- package/lib/component/elements/Button.js +6 -6
- package/lib/component/elements/ButtonToolTip.js +1 -1
- package/lib/component/elements/CheckBox.d.ts +2 -6
- package/lib/component/elements/CheckBox.js +4 -6
- package/lib/component/elements/CheckBoxCell.d.ts +3 -0
- package/lib/component/elements/CheckBoxCell.js +8 -0
- package/lib/component/elements/Input.d.ts +5 -4
- package/lib/component/elements/Input.js +1 -1
- package/lib/component/elements/Label.d.ts +8 -6
- package/lib/component/elements/Label.js +3 -3
- package/lib/component/elements/Logo.js +1 -1
- package/lib/component/elements/MoleculeSelection.d.ts +2 -2
- package/lib/component/elements/MoleculeSelection.js +1 -1
- package/lib/component/elements/NextPrev.js +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +2 -2
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +3 -2
- package/lib/component/elements/ReactTable/ReactTable.d.ts +2 -2
- package/lib/component/elements/Select.d.ts +7 -11
- package/lib/component/elements/Select.js +6 -8
- package/lib/component/elements/Tab/Tab.js +1 -1
- package/lib/component/elements/Tab/Tabs.js +2 -1
- package/lib/component/elements/Table/Table.d.ts +1 -2
- package/lib/component/elements/Table/Table.js +2 -2
- package/lib/component/elements/ToggleButton.d.ts +1 -2
- package/lib/component/elements/ToggleButton.js +5 -4
- package/lib/component/elements/accordion/Accordion.js +2 -6
- package/lib/component/elements/accordion/AccordionItem.js +2 -2
- package/lib/component/elements/formik/FormikCheckBox.d.ts +2 -1
- package/lib/component/elements/formik/FormikCheckBox.js +4 -2
- package/lib/component/elements/formik/FormikNumberInput.d.ts +1 -1
- package/lib/component/elements/formik/FormikOnChange.d.ts +3 -2
- package/lib/component/elements/formik/FormikOnChange.js +11 -5
- package/lib/component/elements/formik/Input.js +1 -1
- 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/resizer/DivResizer.js +3 -3
- package/lib/component/elements/resizer/Resizer.d.ts +1 -0
- package/lib/component/elements/resizer/SVGResizer.js +3 -3
- package/lib/component/elements/toggle/ToggleButtonGroup.js +2 -2
- package/lib/component/header/ApodizationOptionsPanel.d.ts +2 -0
- package/lib/component/header/ApodizationOptionsPanel.js +81 -0
- package/lib/component/header/AutoPeakPickingOptionPanel.d.ts +2 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.js +40 -36
- package/lib/component/header/BaseLineCorrectionPanel.d.ts +1 -2
- package/lib/component/header/BaseLineCorrectionPanel.js +89 -53
- package/lib/component/header/Header.js +7 -4
- package/lib/component/header/HeaderContainer.d.ts +7 -0
- package/lib/component/header/HeaderContainer.js +10 -0
- package/lib/component/header/ManualPhaseCorrectionPanel.js +27 -29
- package/lib/component/header/RangesPickingOptionPanel.js +19 -21
- package/lib/component/header/ZeroFillingOptionsPanel.js +49 -46
- package/lib/component/header/Zones2DOptionPanel.js +11 -13
- package/lib/component/highlight/index.d.ts +27 -10
- package/lib/component/highlight/index.js +19 -17
- package/lib/component/hooks/useActiveSpectrumStyleOptions.js +2 -2
- package/lib/component/hooks/useCheckToolsVisibility.d.ts +11 -1
- package/lib/component/hooks/useCheckToolsVisibility.js +32 -1
- package/lib/component/hooks/useExport.js +2 -2
- package/lib/component/hooks/useFilter.d.ts +1 -0
- package/lib/component/hooks/useFilter.js +7 -0
- package/lib/component/hooks/useFormatNumberByNucleus.js +3 -4
- package/lib/component/hooks/useToolsFunctions.js +1 -1
- package/lib/component/loader/DropZone.js +9 -3
- package/lib/component/loader/NoData.d.ts +3 -2
- package/lib/component/loader/NoData.js +31 -30
- package/lib/component/modal/AlignSpectraModal.js +1 -2
- package/lib/component/modal/EditPeakShapeModal.d.ts +9 -0
- package/lib/component/modal/EditPeakShapeModal.js +85 -0
- package/lib/component/modal/MoleculeStructureEditorModal.d.ts +3 -3
- package/lib/component/modal/MoleculeStructureEditorModal.js +4 -5
- package/lib/component/modal/MultipleSpectraFiltersModal/index.js +1 -2
- package/lib/component/modal/PredictSpectraModal.js +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.js +9 -11
- package/lib/component/modal/changeSum/SelectMolecule.js +1 -1
- package/lib/component/modal/editRange/EditRangeModal.d.ts +3 -3
- package/lib/component/modal/editRange/EditRangeModal.js +51 -56
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +9 -22
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +15 -58
- package/lib/component/modal/editRange/forms/components/SignalFormInfo.d.ts +2 -0
- package/lib/component/modal/editRange/forms/components/SignalFormInfo.js +34 -0
- package/lib/component/modal/editRange/forms/components/SignalFormTab.d.ts +1 -1
- package/lib/component/modal/editRange/forms/components/SignalFormTab.js +11 -14
- package/lib/component/modal/editRange/forms/components/SignalsForm.d.ts +2 -1
- package/lib/component/modal/editRange/forms/components/SignalsForm.js +18 -29
- package/lib/component/modal/editZone/SignalsForm.js +1 -1
- package/lib/component/modal/setting/DatabasesTabContent.d.ts +2 -1
- package/lib/component/modal/setting/DatabasesTabContent.js +29 -31
- package/lib/component/modal/setting/DisplayTabContent.d.ts +1 -5
- package/lib/component/modal/setting/DisplayTabContent.js +6 -15
- package/lib/component/modal/setting/FormattingTabContent.js +2 -2
- package/lib/component/modal/setting/GeneralSettings.js +19 -12
- package/lib/component/modal/setting/GeneralTabContent.d.ts +3 -0
- package/lib/component/modal/setting/{ControllersTabContent.js → GeneralTabContent.js} +3 -3
- package/lib/component/modal/setting/ToolsTabContent.d.ts +3 -0
- package/lib/component/modal/setting/ToolsTabContent.js +100 -0
- package/lib/component/modal/setting/WorkspaceItem.d.ts +2 -2
- package/lib/component/modal/setting/WorkspaceItem.js +2 -2
- package/lib/component/modal/setting/settingsValidation.d.ts +150 -42
- package/lib/component/modal/setting/settingsValidation.js +6 -4
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +13 -15
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.d.ts +3 -3
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.js +3 -3
- package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts +5 -4
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +17 -21
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +4 -2
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +6 -6
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +1 -2
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts +5 -3
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +13 -5
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.js +2 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +1 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +2 -2
- package/lib/component/panels/Panels.js +10 -7
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +47 -22
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +17 -0
- package/lib/component/panels/PeaksPanel/PeaksTable.js +44 -13
- package/lib/component/panels/RangesPanel/RangesHeader.js +13 -4
- package/lib/component/panels/RangesPanel/RangesPanel.js +19 -19
- package/lib/component/panels/RangesPanel/RangesTableRow.js +4 -4
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +3 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts +3 -3
- package/lib/component/panels/RangesPanel/TableColumns/format.d.ts +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.d.ts +4 -4
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +48 -30
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.js +3 -3
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.js +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +3 -3
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +5 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +7 -7
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +1 -2
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +7 -10
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +6 -8
- package/lib/component/panels/SummaryPanel/utilities/{IsInView.d.ts → useInView.d.ts} +2 -2
- package/lib/component/panels/SummaryPanel/utilities/{IsInView.js → useInView.js} +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +2 -2
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +13 -13
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts +4 -0
- package/lib/component/panels/databasePanel/DatabasePanel.js +80 -34
- package/lib/component/panels/databasePanel/DatabasePreferences.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.d.ts +7 -0
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js +8 -0
- package/lib/component/panels/databasePanel/DatabaseTable.js +17 -12
- package/lib/component/panels/extra/preferences/ColumnsHelper.js +2 -4
- package/lib/component/panels/filtersPanel/FilterPanel.js +1 -1
- package/lib/component/panels/filtersPanel/FiltersTable.js +2 -2
- package/lib/component/panels/header/DefaultPanelHeader.js +3 -14
- package/lib/component/panels/header/SpectraAutomaticPickingButton.js +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptions.d.ts +2 -1
- package/lib/component/panels/predictionPanel/PredictionOptions.js +2 -2
- package/lib/component/panels/predictionPanel/PredictionPanel.js +15 -3
- package/lib/component/reducer/IgnoreActions.js +4 -0
- package/lib/component/reducer/Reducer.d.ts +45 -72
- package/lib/component/reducer/Reducer.js +38 -13
- package/lib/component/reducer/actions/DatabaseActions.d.ts +3 -2
- package/lib/component/reducer/actions/DatabaseActions.js +21 -3
- package/lib/component/reducer/actions/DomainActions.js +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +14 -7
- package/lib/component/reducer/actions/FiltersActions.js +192 -32
- package/lib/component/reducer/actions/IntegralsActions.js +2 -2
- package/lib/component/reducer/actions/MoleculeActions.js +27 -14
- package/lib/component/reducer/actions/PeaksActions.d.ts +4 -1
- package/lib/component/reducer/actions/PeaksActions.js +38 -5
- package/lib/component/reducer/actions/PreferencesActions.js +32 -20
- package/lib/component/reducer/actions/RangesActions.d.ts +2 -2
- package/lib/component/reducer/actions/RangesActions.js +45 -11
- package/lib/component/reducer/actions/SpectrumsActions.js +7 -10
- package/lib/component/reducer/actions/ToolsActions.js +34 -84
- package/lib/component/reducer/helper/getSpectrum.d.ts +5 -0
- package/lib/component/reducer/helper/getSpectrum.js +14 -0
- package/lib/component/reducer/helper/getStrongestPeak.d.ts +7 -0
- package/lib/component/reducer/helper/getStrongestPeak.js +14 -0
- package/lib/component/reducer/preferences/actions/addWorkspace.js +4 -4
- package/lib/component/reducer/preferences/actions/initPreferences.js +5 -5
- package/lib/component/reducer/preferences/actions/removeWorkspace.js +1 -1
- package/lib/component/reducer/preferences/actions/setPanelsPreferences.js +1 -1
- package/lib/component/reducer/preferences/actions/setPreferences.js +13 -16
- package/lib/component/reducer/preferences/actions/setWorkspace.js +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +7 -4
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +46 -67
- package/lib/component/reducer/preferences/preferencesReducer.js +1 -4
- package/lib/component/reducer/preferences/{utilites → utilities}/checkKeysExists.d.ts +0 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/checkKeysExists.js +0 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/filterObject.d.ts +0 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/filterObject.js +0 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/flatObject.d.ts +0 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/flatObject.js +0 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/getActiveWorkspace.d.ts +2 -1
- package/lib/component/reducer/preferences/{utilites → utilities}/getActiveWorkspace.js +0 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/getPreferencesByWorkspace.d.ts +2 -1
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js +6 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/mapNucleiFormatting.d.ts +0 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/mapNucleiFormatting.js +0 -0
- package/lib/component/reducer/types/Types.d.ts +10 -1
- package/lib/component/reducer/types/Types.js +10 -1
- package/lib/component/tool/BrushX.js +2 -2
- package/lib/component/tool/BrushXY.js +5 -4
- package/lib/component/tool/CrossLinePointer.js +6 -5
- package/lib/component/tool/FloatMoleculeStructures/DraggableStructure.d.ts +2 -2
- package/lib/component/tool/FloatMoleculeStructures/DraggableStructure.js +12 -3
- package/lib/component/tool/FloatMoleculeStructures/index.d.ts +3 -2
- package/lib/component/tool/FloatMoleculeStructures/index.js +13 -6
- package/lib/component/toolbar/BasicToolBar.js +3 -9
- package/lib/component/toolbar/FunctionToolBar.js +11 -27
- package/lib/component/toolbar/ToolTypes.d.ts +7 -1
- package/lib/component/toolbar/ToolTypes.js +122 -12
- package/lib/component/utility/Evaluate.js +1 -0
- package/lib/component/utility/Export.d.ts +7 -1
- package/lib/component/utility/Export.js +3 -3
- package/lib/component/utility/formatNumber.d.ts +1 -1
- package/lib/component/utility/formatNumber.js +4 -2
- package/lib/component/utility/isGoogleDocument.d.ts +1 -0
- package/lib/component/utility/isGoogleDocument.js +3 -0
- package/lib/component/utility/nmredataToNmrium.js +1 -2
- package/lib/component/utility/nmriumToNmredata.d.ts +2 -2
- package/lib/component/utility/nmriumToNmredata.js +2 -2
- package/lib/component/utility/util/nmredata/addSource.js +2 -2
- package/lib/component/utility/util/nmredata/addZones.js +3 -3
- package/lib/component/workspaces/Workspace.d.ts +22 -10
- package/lib/component/workspaces/basic.d.ts +2 -2
- package/lib/component/workspaces/basic.js +19 -32
- package/lib/component/workspaces/embedded.d.ts +2 -2
- package/lib/component/workspaces/embedded.js +21 -13
- package/lib/component/workspaces/exercise.d.ts +2 -2
- package/lib/component/workspaces/exercise.js +5 -36
- package/lib/component/workspaces/index.d.ts +5 -5
- package/lib/component/workspaces/prediction.d.ts +2 -2
- package/lib/component/workspaces/prediction.js +21 -17
- package/lib/component/workspaces/process1D.d.ts +2 -2
- package/lib/component/workspaces/process1D.js +21 -26
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts +2 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js +70 -0
- package/lib/constants.js +1 -1
- package/lib/data/Filters.d.ts +2 -2
- package/lib/data/Filters.js +2 -2
- package/lib/data/FiltersManager.js +4 -4
- package/lib/data/PredictionManager.d.ts +0 -1
- package/lib/data/PredictionManager.js +22 -24
- package/lib/data/SpectraManager.d.ts +5 -12
- package/lib/data/SpectraManager.js +14 -29
- package/lib/data/constants/SignalsKinds.d.ts +0 -1
- package/lib/data/constants/SignalsKinds.js +0 -8
- package/lib/data/data1d/Data1DManager.js +13 -6
- package/lib/data/data1d/MultipleAnalysis.js +1 -0
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts +5 -5
- package/lib/data/data1d/Spectrum1D/SumManager.js +18 -12
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.js +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +10 -12
- package/lib/data/data1d/Spectrum1D/getReferenceShift.js +1 -1
- package/lib/data/data1d/Spectrum1D/index.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/index.js +2 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +14 -15
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.js +5 -7
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +5 -3
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.js +15 -16
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts +8 -0
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +24 -0
- package/lib/data/data1d/Spectrum1D/ranges/addRange.d.ts +36 -2
- package/lib/data/data1d/Spectrum1D/ranges/addRange.js +39 -16
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +1 -0
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.js +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/detectSignal.js +3 -3
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.js +4 -4
- package/lib/data/data1d/database.d.ts +5 -3
- package/lib/data/data1d/database.js +48 -7
- package/lib/data/data1d/filter1d/apodization.d.ts +25 -0
- package/lib/data/data1d/filter1d/apodization.js +63 -0
- package/lib/data/data1d/filter1d/autoPhaseCorrection.js +1 -1
- package/lib/data/data1d/filter1d/baselineCorrection.d.ts +24 -7
- package/lib/data/data1d/filter1d/baselineCorrection.js +10 -17
- package/lib/data/data1d/filter1d/zeroFillingAndApodization.d.ts +9 -0
- package/lib/data/data1d/filter1d/zeroFillingAndApodization.js +24 -0
- package/lib/data/data2d/Processing2D.d.ts +3 -3
- package/lib/data/data2d/Processing2D.js +4 -3
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +17 -13
- package/lib/data/data2d/Spectrum2D/zones/detectZones.js +3 -3
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +3 -3
- package/lib/data/migration/MigrationManager.d.ts +1 -1
- package/lib/data/migration/MigrationManager.js +3 -1
- package/lib/data/migration/migrateToVersion3.d.ts +1 -0
- package/lib/data/migration/migrateToVersion3.js +55 -0
- package/lib/data/molecules/Molecule.d.ts +15 -7
- package/lib/data/molecules/Molecule.js +5 -6
- package/lib/data/molecules/MoleculeManager.d.ts +4 -4
- package/lib/data/molecules/MoleculeManager.js +5 -5
- package/lib/data/types/data1d/SumOptions.d.ts +1 -1
- package/lib/data/utilities/FindUtilities.js +1 -3
- package/lib/data/utilities/RangeUtilities.js +5 -6
- package/lib/data/utilities/ZoneUtilities.js +1 -1
- package/lib/data/utilities/generateNumbersPowerOfX.d.ts +0 -1
- package/lib/data/utilities/generateNumbersPowerOfX.js +0 -1
- package/lib/data/utilities/getSum.js +1 -3
- package/lib/data/utilities/isInRange.d.ts +7 -0
- package/lib/data/utilities/isInRange.js +4 -0
- package/lib/data/utilities/isMolFileEmpty.d.ts +1 -0
- package/lib/data/utilities/isMolFileEmpty.js +6 -0
- package/lib/types/NMRiumDataReturn.d.ts +15 -0
- package/lib/types/NMRiumDataReturn.js +1 -0
- package/lib/types/NMRiumGeneralPreferences.d.ts +8 -0
- package/lib/types/NMRiumGeneralPreferences.js +1 -0
- package/lib/types/NMRiumPanelPreferences.d.ts +16 -0
- package/lib/types/NMRiumPanelPreferences.js +1 -0
- package/lib/types/NMRiumToolBarPreferences.d.ts +21 -0
- package/lib/types/NMRiumToolBarPreferences.js +1 -0
- package/lib/types/PanelPreferencesType.d.ts +1 -7
- package/lib/types/Preferences.d.ts +5 -0
- package/lib/types/Preferences.js +1 -0
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/ApodizationLine.js +75 -0
- package/lib-cjs/component/1d/Chart1D.js +4 -2
- package/lib-cjs/component/1d/ExclusionZoneAnnotation.js +15 -8
- package/lib-cjs/component/1d/ExclusionZonesAnnotations.js +1 -1
- package/lib-cjs/component/1d/IntegralResizable.js +4 -3
- package/lib-cjs/component/1d/IntegralsSeries.js +2 -6
- package/lib-cjs/component/1d/LinesSeries.js +5 -5
- package/lib-cjs/component/1d/SpectraTracker.js +2 -2
- package/lib-cjs/component/1d/Viewer1D.js +8 -13
- package/lib-cjs/component/1d/database/DatabaseElements.js +1 -1
- package/lib-cjs/component/1d/database/DatabaseSpectrum.js +34 -26
- package/lib-cjs/component/1d/database/ResurrectedDatabaseRanges.js +10 -8
- package/lib-cjs/component/1d/multiAnalysis/AnalysisRange.js +15 -13
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +1 -2
- package/lib-cjs/component/1d/{PeakAnnotation.js → peaks/PeakAnnotation.js} +10 -11
- package/lib-cjs/component/1d/peaks/PeakAnnotations.js +31 -0
- package/lib-cjs/component/1d/peaks/PeaksShapes.js +40 -0
- package/lib-cjs/component/1d/peaks/usePeakShapesPath.js +49 -0
- package/lib-cjs/component/1d/ranges/Range.js +6 -7
- package/lib-cjs/component/1d/ranges/Ranges.js +3 -4
- package/lib-cjs/component/1d/tool/BaseLineZones.js +3 -6
- package/lib-cjs/component/1d/tool/VerticalIndicator.js +1 -1
- package/lib-cjs/component/2d/Contours.js +9 -13
- package/lib-cjs/component/2d/FooterBanner.js +2 -2
- package/lib-cjs/component/2d/SignalDeltaLine.js +1 -1
- package/lib-cjs/component/2d/Viewer2D.js +3 -3
- package/lib-cjs/component/2d/YAxis.js +1 -1
- package/lib-cjs/component/2d/zones/IndicationLines.js +2 -3
- package/lib-cjs/component/2d/zones/Signal.js +3 -3
- package/lib-cjs/component/2d/zones/Zone.js +3 -3
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +130 -73
- package/lib-cjs/component/NMRium.js +13 -5
- package/lib-cjs/component/SplitPaneWrapper.js +2 -2
- package/lib-cjs/component/context/GlobalContext.js +4 -4
- package/lib-cjs/component/elements/ActiveButton.js +33 -0
- package/lib-cjs/component/elements/Button.js +6 -6
- package/lib-cjs/component/elements/ButtonToolTip.js +1 -1
- package/lib-cjs/component/elements/CheckBox.js +3 -5
- package/lib-cjs/component/elements/CheckBoxCell.js +15 -0
- package/lib-cjs/component/elements/Input.js +1 -1
- package/lib-cjs/component/elements/Label.js +3 -3
- package/lib-cjs/component/elements/Logo.js +1 -1
- package/lib-cjs/component/elements/MoleculeSelection.js +1 -1
- package/lib-cjs/component/elements/NextPrev.js +1 -1
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableRow.js +2 -1
- package/lib-cjs/component/elements/Select.js +6 -8
- package/lib-cjs/component/elements/Tab/Tab.js +1 -1
- package/lib-cjs/component/elements/Tab/Tabs.js +2 -1
- package/lib-cjs/component/elements/Table/Table.js +2 -2
- package/lib-cjs/component/elements/ToggleButton.js +5 -4
- package/lib-cjs/component/elements/accordion/Accordion.js +2 -6
- package/lib-cjs/component/elements/accordion/AccordionItem.js +2 -2
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +4 -2
- package/lib-cjs/component/elements/formik/FormikOnChange.js +10 -4
- package/lib-cjs/component/elements/formik/Input.js +1 -1
- 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/resizer/DivResizer.js +3 -3
- package/lib-cjs/component/elements/resizer/SVGResizer.js +2 -2
- package/lib-cjs/component/elements/toggle/ToggleButtonGroup.js +2 -2
- package/lib-cjs/component/header/ApodizationOptionsPanel.js +110 -0
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +39 -35
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +87 -50
- package/lib-cjs/component/header/Header.js +7 -4
- package/lib-cjs/component/header/HeaderContainer.js +14 -0
- package/lib-cjs/component/header/ManualPhaseCorrectionPanel.js +26 -28
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +19 -21
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +70 -44
- package/lib-cjs/component/header/Zones2DOptionPanel.js +11 -13
- package/lib-cjs/component/highlight/index.js +20 -18
- package/lib-cjs/component/hooks/useActiveSpectrumStyleOptions.js +2 -2
- package/lib-cjs/component/hooks/useCheckToolsVisibility.js +32 -1
- package/lib-cjs/component/hooks/useExport.js +2 -2
- package/lib-cjs/component/hooks/useFilter.js +14 -0
- package/lib-cjs/component/hooks/useFormatNumberByNucleus.js +2 -3
- package/lib-cjs/component/hooks/useToolsFunctions.js +1 -1
- package/lib-cjs/component/loader/DropZone.js +9 -3
- package/lib-cjs/component/loader/NoData.js +31 -30
- package/lib-cjs/component/modal/AlignSpectraModal.js +1 -2
- package/lib-cjs/component/modal/EditPeakShapeModal.js +113 -0
- package/lib-cjs/component/modal/MoleculeStructureEditorModal.js +4 -5
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/index.js +1 -2
- package/lib-cjs/component/modal/PredictSpectraModal.js +1 -1
- package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +9 -11
- package/lib-cjs/component/modal/changeSum/SelectMolecule.js +1 -1
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +49 -54
- package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +9 -22
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +14 -57
- package/lib-cjs/component/modal/editRange/forms/components/SignalFormInfo.js +38 -0
- package/lib-cjs/component/modal/editRange/forms/components/SignalFormTab.js +13 -16
- package/lib-cjs/component/modal/editRange/forms/components/SignalsForm.js +18 -29
- package/lib-cjs/component/modal/editZone/SignalsForm.js +1 -1
- package/lib-cjs/component/modal/setting/DatabasesTabContent.js +32 -34
- package/lib-cjs/component/modal/setting/DisplayTabContent.js +6 -15
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +2 -2
- package/lib-cjs/component/modal/setting/GeneralSettings.js +19 -12
- package/lib-cjs/component/modal/setting/{ControllersTabContent.js → GeneralTabContent.js} +3 -3
- package/lib-cjs/component/modal/setting/ToolsTabContent.js +105 -0
- package/lib-cjs/component/modal/setting/WorkspaceItem.js +2 -2
- package/lib-cjs/component/modal/setting/settingsValidation.js +6 -4
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +12 -14
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +1 -1
- package/lib-cjs/component/panels/MoleculesPanel/MoleculeHeader.js +3 -3
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +16 -20
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +6 -6
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +12 -4
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +1 -1
- package/lib-cjs/component/panels/Panels.js +10 -7
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +45 -20
- package/lib-cjs/component/panels/PeaksPanel/PeaksPreferences.js +17 -0
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +42 -11
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +11 -2
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +18 -18
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +3 -3
- package/lib-cjs/component/panels/RangesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -1
- package/lib-cjs/component/panels/RangesPanel/hooks/useEditRangeModal.js +47 -29
- package/lib-cjs/component/panels/RangesPanel/hooks/useMapRanges.js +3 -6
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListItem.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +5 -2
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +7 -7
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +1 -2
- package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +7 -10
- package/lib-cjs/component/panels/SummaryPanel/utilities/Utilities.js +6 -8
- package/lib-cjs/component/panels/SummaryPanel/utilities/{IsInView.js → useInView.js} +2 -2
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +12 -12
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +78 -32
- package/lib-cjs/component/panels/databasePanel/DatabasePreferences.js +1 -1
- package/lib-cjs/component/panels/databasePanel/DatabaseStructureSearchModal.js +15 -0
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +16 -11
- package/lib-cjs/component/panels/extra/preferences/ColumnsHelper.js +2 -4
- package/lib-cjs/component/panels/filtersPanel/FilterPanel.js +1 -1
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +2 -2
- package/lib-cjs/component/panels/header/DefaultPanelHeader.js +3 -14
- package/lib-cjs/component/panels/header/SpectraAutomaticPickingButton.js +1 -1
- package/lib-cjs/component/panels/predictionPanel/PredictionOptions.js +2 -2
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +15 -3
- package/lib-cjs/component/reducer/IgnoreActions.js +4 -0
- package/lib-cjs/component/reducer/Reducer.js +38 -16
- package/lib-cjs/component/reducer/actions/DatabaseActions.js +22 -3
- package/lib-cjs/component/reducer/actions/DomainActions.js +1 -1
- package/lib-cjs/component/reducer/actions/FiltersActions.js +198 -32
- package/lib-cjs/component/reducer/actions/IntegralsActions.js +2 -2
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +27 -14
- package/lib-cjs/component/reducer/actions/PeaksActions.js +40 -4
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +30 -18
- package/lib-cjs/component/reducer/actions/RangesActions.js +46 -12
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +5 -8
- package/lib-cjs/component/reducer/actions/ToolsActions.js +31 -104
- package/lib-cjs/component/reducer/helper/getSpectrum.js +18 -0
- package/lib-cjs/component/reducer/helper/getStrongestPeak.js +18 -0
- package/lib-cjs/component/reducer/preferences/actions/addWorkspace.js +4 -7
- package/lib-cjs/component/reducer/preferences/actions/initPreferences.js +5 -5
- package/lib-cjs/component/reducer/preferences/actions/removeWorkspace.js +1 -1
- package/lib-cjs/component/reducer/preferences/actions/setPanelsPreferences.js +1 -1
- package/lib-cjs/component/reducer/preferences/actions/setPreferences.js +16 -16
- package/lib-cjs/component/reducer/preferences/actions/setWorkspace.js +1 -1
- package/lib-cjs/component/reducer/preferences/panelsPreferencesDefaultValues.js +7 -4
- package/lib-cjs/component/reducer/preferences/preferencesReducer.js +1 -4
- package/lib-cjs/component/reducer/preferences/{utilites → utilities}/checkKeysExists.js +0 -0
- package/lib-cjs/component/reducer/preferences/{utilites → utilities}/filterObject.js +0 -0
- package/lib-cjs/component/reducer/preferences/{utilites → utilities}/flatObject.js +0 -0
- package/lib-cjs/component/reducer/preferences/{utilites → utilities}/getActiveWorkspace.js +0 -0
- package/lib-cjs/component/reducer/preferences/{utilites → utilities}/getPreferencesByWorkspace.js +3 -1
- package/lib-cjs/component/reducer/preferences/{utilites → utilities}/mapNucleiFormatting.js +0 -0
- package/lib-cjs/component/reducer/types/Types.js +13 -4
- package/lib-cjs/component/tool/BrushX.js +2 -2
- package/lib-cjs/component/tool/BrushXY.js +5 -4
- package/lib-cjs/component/tool/CrossLinePointer.js +6 -5
- package/lib-cjs/component/tool/FloatMoleculeStructures/DraggableStructure.js +11 -2
- package/lib-cjs/component/tool/FloatMoleculeStructures/index.js +13 -6
- package/lib-cjs/component/toolbar/BasicToolBar.js +3 -9
- package/lib-cjs/component/toolbar/FunctionToolBar.js +10 -26
- package/lib-cjs/component/toolbar/ToolTypes.js +122 -12
- package/lib-cjs/component/utility/Evaluate.js +1 -0
- package/lib-cjs/component/utility/Export.js +4 -3
- package/lib-cjs/component/utility/formatNumber.js +3 -1
- package/lib-cjs/component/utility/isGoogleDocument.js +7 -0
- package/lib-cjs/component/utility/nmredataToNmrium.js +1 -2
- package/lib-cjs/component/utility/util/nmredata/addSource.js +2 -2
- package/lib-cjs/component/utility/util/nmredata/addZones.js +3 -6
- package/lib-cjs/component/workspaces/basic.js +19 -32
- package/lib-cjs/component/workspaces/embedded.js +21 -13
- package/lib-cjs/component/workspaces/exercise.js +5 -36
- package/lib-cjs/component/workspaces/prediction.js +21 -17
- package/lib-cjs/component/workspaces/process1D.js +21 -26
- package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +73 -0
- package/lib-cjs/constants.js +1 -1
- package/lib-cjs/data/Filters.js +3 -3
- package/lib-cjs/data/FiltersManager.js +4 -7
- package/lib-cjs/data/PredictionManager.js +22 -24
- package/lib-cjs/data/SpectraManager.js +14 -29
- package/lib-cjs/data/constants/SignalsKinds.js +0 -8
- package/lib-cjs/data/data1d/Data1DManager.js +13 -6
- package/lib-cjs/data/data1d/MultipleAnalysis.js +1 -0
- package/lib-cjs/data/data1d/Spectrum1D/SumManager.js +18 -12
- package/lib-cjs/data/data1d/Spectrum1D/convertDataToFloat64Array.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/generateJGraphData.js +10 -15
- package/lib-cjs/data/data1d/Spectrum1D/getReferenceShift.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/index.js +3 -1
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +14 -15
- package/lib-cjs/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateRelatives.js +5 -7
- package/lib-cjs/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +5 -3
- package/lib-cjs/data/data1d/Spectrum1D/peaks/mapPeaks.js +15 -19
- package/lib-cjs/data/data1d/Spectrum1D/peaks/optimizePeaks.js +28 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/addRange.js +41 -17
- package/lib-cjs/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +1 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRange.js +2 -5
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectSignal.js +3 -3
- package/lib-cjs/data/data1d/Spectrum1D/ranges/mapRanges.js +4 -7
- package/lib-cjs/data/data1d/database.js +49 -8
- package/lib-cjs/data/data1d/filter1d/apodization.js +70 -0
- package/lib-cjs/data/data1d/filter1d/autoPhaseCorrection.js +1 -1
- package/lib-cjs/data/data1d/filter1d/baselineCorrection.js +11 -18
- package/lib-cjs/data/data1d/filter1d/zeroFillingAndApodization.js +30 -0
- package/lib-cjs/data/data2d/Processing2D.js +4 -3
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +17 -16
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZones.js +3 -6
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZonesManual.js +3 -6
- package/lib-cjs/data/migration/MigrationManager.js +3 -1
- package/lib-cjs/data/migration/migrateToVersion3.js +58 -0
- package/lib-cjs/data/molecules/Molecule.js +5 -6
- package/lib-cjs/data/molecules/MoleculeManager.js +5 -5
- package/lib-cjs/data/utilities/FindUtilities.js +1 -3
- package/lib-cjs/data/utilities/RangeUtilities.js +8 -6
- package/lib-cjs/data/utilities/ZoneUtilities.js +1 -1
- package/lib-cjs/data/utilities/generateNumbersPowerOfX.js +0 -1
- package/lib-cjs/data/utilities/getSum.js +1 -3
- package/lib-cjs/data/utilities/isInRange.js +7 -0
- package/lib-cjs/data/utilities/isMolFileEmpty.js +10 -0
- package/lib-cjs/types/NMRiumDataReturn.js +2 -0
- package/lib-cjs/types/NMRiumGeneralPreferences.js +2 -0
- package/lib-cjs/types/NMRiumPanelPreferences.js +2 -0
- package/lib-cjs/types/NMRiumToolBarPreferences.js +2 -0
- package/lib-cjs/types/Preferences.js +2 -0
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +48 -46
- package/lib/component/1d/PeakAnnotations.js +0 -43
- package/lib/component/1d/multiplicityTree/TempMultiplicityTree.d.ts +0 -2
- package/lib/component/1d/multiplicityTree/TempMultiplicityTree.js +0 -14
- package/lib/component/modal/setting/ControllersTabContent.d.ts +0 -3
- package/lib/component/panels/databasePanel/useDatabases.d.ts +0 -5
- package/lib/component/panels/databasePanel/useDatabases.js +0 -10
- package/lib/component/reducer/preferences/actions/resetPreferences.d.ts +0 -3
- package/lib/component/reducer/preferences/actions/resetPreferences.js +0 -14
- package/lib/component/reducer/preferences/utilites/getPreferencesByWorkspace.js +0 -4
- package/lib/data/data1d/filter1d/lineBroadening.d.ts +0 -14
- package/lib/data/data1d/filter1d/lineBroadening.js +0 -57
- package/lib/data/utilities/generateID.d.ts +0 -1
- package/lib/data/utilities/generateID.js +0 -9
- package/lib-cjs/component/1d/PeakAnnotations.js +0 -48
- package/lib-cjs/component/1d/multiplicityTree/TempMultiplicityTree.js +0 -20
- package/lib-cjs/component/panels/databasePanel/useDatabases.js +0 -14
- package/lib-cjs/component/reducer/preferences/actions/resetPreferences.js +0 -18
- package/lib-cjs/data/data1d/filter1d/lineBroadening.js +0 -63
- package/lib-cjs/data/utilities/generateID.js +0 -12
|
@@ -4,10 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const get_1 = __importDefault(require("lodash/get"));
|
|
8
7
|
const react_1 = require("react");
|
|
8
|
+
const CheckBoxCell_1 = require("../../elements/CheckBoxCell");
|
|
9
9
|
const ReactTable_1 = __importDefault(require("../../elements/ReactTable/ReactTable"));
|
|
10
|
-
const FormikCheckBox_1 = __importDefault(require("../../elements/formik/FormikCheckBox"));
|
|
11
10
|
const LIST = [
|
|
12
11
|
{
|
|
13
12
|
label: 'Spectra selection panel',
|
|
@@ -30,7 +29,7 @@ const LIST = [
|
|
|
30
29
|
name: 'panels.rangesPanel',
|
|
31
30
|
},
|
|
32
31
|
{
|
|
33
|
-
label: 'Chemical
|
|
32
|
+
label: 'Chemical structures panel',
|
|
34
33
|
name: 'panels.structuresPanel',
|
|
35
34
|
},
|
|
36
35
|
{
|
|
@@ -67,12 +66,7 @@ const LIST = [
|
|
|
67
66
|
hideOpenOption: true,
|
|
68
67
|
},
|
|
69
68
|
];
|
|
70
|
-
function
|
|
71
|
-
return ((0, jsx_runtime_1.jsx)(FormikCheckBox_1.default, { style: {
|
|
72
|
-
container: { display: 'block', margin: '0 auto', width: 'fit-content' },
|
|
73
|
-
}, className: "checkbox-element", name: props.name }, props.name));
|
|
74
|
-
}
|
|
75
|
-
function DisplayTabContent({ preferences }) {
|
|
69
|
+
function DisplayTabContent() {
|
|
76
70
|
const COLUMNS = (0, react_1.useMemo)(() => [
|
|
77
71
|
{
|
|
78
72
|
index: 1,
|
|
@@ -88,17 +82,14 @@ function DisplayTabContent({ preferences }) {
|
|
|
88
82
|
{
|
|
89
83
|
index: 2,
|
|
90
84
|
Header: 'Active',
|
|
91
|
-
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)(CheckBoxCell, { name: `display.${row.original.name}.display
|
|
85
|
+
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)(CheckBoxCell_1.CheckBoxCell, { name: `display.${row.original.name}.display`, defaultValue: false })),
|
|
92
86
|
},
|
|
93
87
|
{
|
|
94
88
|
index: 3,
|
|
95
89
|
Header: 'Open on load',
|
|
96
|
-
Cell: ({ row }) => !row.original.hideOpenOption ? ((0, jsx_runtime_1.jsx)(CheckBoxCell, { name: `display.${row.original.name}.open
|
|
90
|
+
Cell: ({ row }) => !row.original.hideOpenOption ? ((0, jsx_runtime_1.jsx)(CheckBoxCell_1.CheckBoxCell, { name: `display.${row.original.name}.open`, defaultValue: false })) : ((0, jsx_runtime_1.jsx)("div", {})),
|
|
97
91
|
},
|
|
98
92
|
], []);
|
|
99
|
-
|
|
100
|
-
return LIST.filter((item) => (0, get_1.default)(preferences, `${item.name}.hidden`) !== true);
|
|
101
|
-
}, [preferences]);
|
|
102
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: { width: '100%', overflow: 'hidden' }, children: (0, jsx_runtime_1.jsx)(ReactTable_1.default, { columns: COLUMNS, data: data }) }));
|
|
93
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: { width: '100%', overflow: 'hidden' }, children: (0, jsx_runtime_1.jsx)(ReactTable_1.default, { columns: COLUMNS, data: LIST }) }));
|
|
103
94
|
}
|
|
104
95
|
exports.default = DisplayTabContent;
|
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
7
7
|
/** @jsxImportSource @emotion/react */
|
|
8
8
|
const react_1 = require("@emotion/react");
|
|
9
|
+
const uuid_1 = require("@lukeed/uuid");
|
|
9
10
|
const formik_1 = require("formik");
|
|
10
11
|
const get_1 = __importDefault(require("lodash/get"));
|
|
11
12
|
const react_2 = require("react");
|
|
12
13
|
const fa_1 = require("react-icons/fa");
|
|
13
|
-
const generateID_1 = __importDefault(require("../../../data/utilities/generateID"));
|
|
14
14
|
const Button_1 = __importDefault(require("../../elements/Button"));
|
|
15
15
|
const FormikInput_1 = __importDefault(require("../../elements/formik/FormikInput"));
|
|
16
16
|
const styles = (0, react_1.css) `
|
|
@@ -68,7 +68,7 @@ function FormattingTabContent() {
|
|
|
68
68
|
ppm: '0.00',
|
|
69
69
|
hz: '0.00',
|
|
70
70
|
};
|
|
71
|
-
const key = (0,
|
|
71
|
+
const key = (0, uuid_1.v4)();
|
|
72
72
|
const newNuclei = { ...nuclei, [key]: newFormat };
|
|
73
73
|
setFieldValue('formatting.nuclei', newNuclei);
|
|
74
74
|
}, [nuclei, setFieldValue]);
|
|
@@ -32,17 +32,20 @@ const react_1 = require("@emotion/react");
|
|
|
32
32
|
const react_2 = require("react");
|
|
33
33
|
const PreferencesContext_1 = require("../../context/PreferencesContext");
|
|
34
34
|
const ActionButtons_1 = __importDefault(require("../../elements/ActionButtons"));
|
|
35
|
+
const Button_1 = __importDefault(require("../../elements/Button"));
|
|
35
36
|
const CloseButton_1 = __importDefault(require("../../elements/CloseButton"));
|
|
36
37
|
const Tab_1 = __importDefault(require("../../elements/Tab/Tab"));
|
|
37
38
|
const Tabs_1 = __importStar(require("../../elements/Tab/Tabs"));
|
|
38
39
|
const DropDownButton_1 = __importDefault(require("../../elements/dropDownButton/DropDownButton"));
|
|
39
40
|
const FormikForm_1 = __importDefault(require("../../elements/formik/FormikForm"));
|
|
40
41
|
const Alert_1 = require("../../elements/popup/Alert");
|
|
42
|
+
const getPreferencesByWorkspace_1 = require("../../reducer/preferences/utilities/getPreferencesByWorkspace");
|
|
41
43
|
const ModalStyle_1 = require("../ModalStyle");
|
|
42
|
-
const ControllersTabContent_1 = __importDefault(require("./ControllersTabContent"));
|
|
43
44
|
const DatabasesTabContent_1 = __importDefault(require("./DatabasesTabContent"));
|
|
44
45
|
const DisplayTabContent_1 = __importDefault(require("./DisplayTabContent"));
|
|
45
46
|
const FormattingTabContent_1 = __importDefault(require("./FormattingTabContent"));
|
|
47
|
+
const GeneralTabContent_1 = __importDefault(require("./GeneralTabContent"));
|
|
48
|
+
const ToolsTabContent_1 = __importDefault(require("./ToolsTabContent"));
|
|
46
49
|
const WorkspaceItem_1 = __importDefault(require("./WorkspaceItem"));
|
|
47
50
|
const settingsValidation_1 = require("./settingsValidation");
|
|
48
51
|
const styles = (0, react_1.css) `
|
|
@@ -119,8 +122,8 @@ const styles = (0, react_1.css) `
|
|
|
119
122
|
}
|
|
120
123
|
`;
|
|
121
124
|
function GeneralSettings({ onClose }) {
|
|
122
|
-
const [activeTab, setActiveTab] = (0, react_2.useState)('
|
|
123
|
-
const { dispatch, ...preferences } = (0, PreferencesContext_1.usePreferences)();
|
|
125
|
+
const [activeTab, setActiveTab] = (0, react_2.useState)('general');
|
|
126
|
+
const { dispatch, current: currentWorkspace, ...preferences } = (0, PreferencesContext_1.usePreferences)();
|
|
124
127
|
const alert = (0, Alert_1.useAlert)();
|
|
125
128
|
const refForm = (0, react_2.useRef)();
|
|
126
129
|
const workspaces = (0, PreferencesContext_1.useWorkspacesList)();
|
|
@@ -132,19 +135,21 @@ function GeneralSettings({ onClose }) {
|
|
|
132
135
|
},
|
|
133
136
|
]);
|
|
134
137
|
}, [workspaces]);
|
|
135
|
-
const handleSave = (
|
|
138
|
+
const handleSave = () => {
|
|
136
139
|
refForm.current.submitForm();
|
|
137
|
-
}
|
|
138
|
-
const handleReset = (
|
|
139
|
-
|
|
140
|
-
|
|
140
|
+
};
|
|
141
|
+
const handleReset = () => {
|
|
142
|
+
const workSpaceDisplayPreferences = (0, getPreferencesByWorkspace_1.getPreferencesByWorkspace)(preferences.workspace.current);
|
|
143
|
+
refForm.current.setValues(workSpaceDisplayPreferences);
|
|
144
|
+
};
|
|
145
|
+
const handleClose = () => {
|
|
141
146
|
onClose?.();
|
|
142
|
-
}
|
|
143
|
-
const submitHandler = (
|
|
147
|
+
};
|
|
148
|
+
const submitHandler = (values) => {
|
|
144
149
|
dispatch({ type: 'SET_PREFERENCES', payload: values });
|
|
145
150
|
alert.success('Settings saved successfully');
|
|
146
151
|
onClose?.();
|
|
147
|
-
}
|
|
152
|
+
};
|
|
148
153
|
const tabChangeHandler = (0, react_2.useCallback)((tab) => {
|
|
149
154
|
setActiveTab(tab.tabid);
|
|
150
155
|
}, []);
|
|
@@ -176,6 +181,8 @@ function GeneralSettings({ onClose }) {
|
|
|
176
181
|
const renderItem = (0, react_2.useCallback)((item) => {
|
|
177
182
|
return ((0, jsx_runtime_1.jsx)(WorkspaceItem_1.default, { item: item, onSave: addWorkSpaceHandler, onDelete: deleteWorkSpaceHandler }));
|
|
178
183
|
}, [addWorkSpaceHandler, deleteWorkSpaceHandler]);
|
|
179
|
-
return ((0, jsx_runtime_1.jsxs)("div", { css: [ModalStyle_1.ModalStyles, styles], children: [(0, jsx_runtime_1.jsxs)("div", { className: "header handle", children: [(0, jsx_runtime_1.jsx)("span", { children: "General Settings" }), (0, jsx_runtime_1.jsx)(CloseButton_1.default, { onClick: onClose, className: "close-bt" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "workspace-container", children: [(0, jsx_runtime_1.jsx)("span", { className: "label", children: "Workspace : " }), (0, jsx_runtime_1.jsx)(DropDownButton_1.default, { data: workspacesList, renderItem: renderItem, selectedKey: preferences?.workspace.current, onSelect: ChangeWorkspaceHandler })
|
|
184
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: [ModalStyle_1.ModalStyles, styles], children: [(0, jsx_runtime_1.jsxs)("div", { className: "header handle", children: [(0, jsx_runtime_1.jsx)("span", { children: "General Settings" }), (0, jsx_runtime_1.jsx)(CloseButton_1.default, { onClick: onClose, className: "close-bt" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "workspace-container", children: [(0, jsx_runtime_1.jsx)("span", { className: "label", children: "Workspace : " }), (0, jsx_runtime_1.jsx)(DropDownButton_1.default, { data: workspacesList, renderItem: renderItem, selectedKey: preferences?.workspace.current, onSelect: ChangeWorkspaceHandler }), (0, jsx_runtime_1.jsx)(Button_1.default.Danger, { fill: "outline", size: "xSmall", onClick: handleReset, style: {
|
|
185
|
+
marginLeft: '10px',
|
|
186
|
+
}, children: "Reset workspace settings" })] }), (0, jsx_runtime_1.jsx)("div", { className: "main-content", children: (0, jsx_runtime_1.jsx)(FormikForm_1.default, { ref: refForm, initialValues: currentWorkspace, validationSchema: settingsValidation_1.validation, onSubmit: submitHandler, children: (0, jsx_runtime_1.jsxs)(Tabs_1.default, { position: Tabs_1.PositionsEnum.LEFT, activeTab: activeTab, onClick: tabChangeHandler, children: [(0, jsx_runtime_1.jsx)(Tab_1.default, { tablabel: "General", tabid: "general", children: (0, jsx_runtime_1.jsx)("div", { className: "inner-content", children: (0, jsx_runtime_1.jsx)(GeneralTabContent_1.default, {}) }) }), (0, jsx_runtime_1.jsx)(Tab_1.default, { tablabel: "Formatting", tabid: "formatting", children: (0, jsx_runtime_1.jsx)("div", { className: "inner-content", children: (0, jsx_runtime_1.jsx)(FormattingTabContent_1.default, {}) }) }), (0, jsx_runtime_1.jsx)(Tab_1.default, { tablabel: "Panels", tabid: "display", children: (0, jsx_runtime_1.jsx)("div", { className: "inner-content", children: (0, jsx_runtime_1.jsx)(DisplayTabContent_1.default, {}) }) }), (0, jsx_runtime_1.jsx)(Tab_1.default, { tablabel: "Tools", tabid: "tools", children: (0, jsx_runtime_1.jsx)("div", { className: "inner-content", children: (0, jsx_runtime_1.jsx)(ToolsTabContent_1.default, {}) }) }), (0, jsx_runtime_1.jsx)(Tab_1.default, { tablabel: "Databases", tabid: "databases", children: (0, jsx_runtime_1.jsx)("div", { className: "inner-content", children: (0, jsx_runtime_1.jsx)(DatabasesTabContent_1.default, { currentWorkspace: preferences.workspace.current }) }) })] }) }, JSON.stringify(currentWorkspace)) }), (0, jsx_runtime_1.jsx)("div", { className: "footer-container", children: (0, jsx_runtime_1.jsx)(ActionButtons_1.default, { style: { flexDirection: 'row-reverse', margin: 0 }, onDone: handleSave, doneLabel: "Save", onCancel: handleClose }) })] }));
|
|
180
187
|
}
|
|
181
188
|
exports.default = GeneralSettings;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const Label_1 = __importDefault(require("../../elements/Label"));
|
|
8
8
|
const FormikInput_1 = __importDefault(require("../../elements/formik/FormikInput"));
|
|
9
|
-
function
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("p", { className: "section-header", children: "Spectra" }), (0, jsx_runtime_1.jsx)(Label_1.default, { title: "Transparency of Dimmed Spectra [ 0 - 1 ]", children: (0, jsx_runtime_1.jsx)(FormikInput_1.default, { name: "
|
|
9
|
+
function GeneralTabContent() {
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("p", { className: "section-header", children: "Spectra" }), (0, jsx_runtime_1.jsx)(Label_1.default, { title: "Transparency of Dimmed Spectra [ 0 - 1 ]", children: (0, jsx_runtime_1.jsx)(FormikInput_1.default, { name: "general.dimmedSpectraTransparency", checkValue: (value) => value >= 0 && value <= 1, type: "number" }) })] }));
|
|
11
11
|
}
|
|
12
|
-
exports.default =
|
|
12
|
+
exports.default = GeneralTabContent;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const CheckBoxCell_1 = require("../../elements/CheckBoxCell");
|
|
9
|
+
const ReactTable_1 = __importDefault(require("../../elements/ReactTable/ReactTable"));
|
|
10
|
+
const LIST = [
|
|
11
|
+
{
|
|
12
|
+
label: 'Zoom in',
|
|
13
|
+
name: 'toolBarButtons.zoom',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
label: 'Zoom out',
|
|
17
|
+
name: 'toolBarButtons.zoomOut',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: 'Import',
|
|
21
|
+
name: 'toolBarButtons.import',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: 'Export As',
|
|
25
|
+
name: 'toolBarButtons.exportAs',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
label: 'Stack Alignments',
|
|
29
|
+
name: 'toolBarButtons.spectraStackAlignments',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label: 'Center Alignments',
|
|
33
|
+
name: 'toolBarButtons.spectraCenterAlignments',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
label: 'Real/Imaginary ',
|
|
37
|
+
name: 'toolBarButtons.realImaginary',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: 'Peak picking',
|
|
41
|
+
name: 'toolBarButtons.peakPicking',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: 'Integral',
|
|
45
|
+
name: 'toolBarButtons.integral',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: 'Zone Picking',
|
|
49
|
+
name: 'toolBarButtons.zonePicking',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: 'Range picking',
|
|
53
|
+
name: 'toolBarButtons.rangePicking',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: 'Slicing',
|
|
57
|
+
name: 'toolBarButtons.slicing',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: 'Zero filling',
|
|
61
|
+
name: 'toolBarButtons.zeroFilling',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: 'Fourier transform',
|
|
65
|
+
name: 'toolBarButtons.fastFourierTransform',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: 'Phase correction',
|
|
69
|
+
name: 'toolBarButtons.phaseCorrection',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: 'Baseline correction',
|
|
73
|
+
name: 'toolBarButtons.baselineCorrection',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: 'Exclusion zones',
|
|
77
|
+
name: 'toolBarButtons.exclusionZones',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
label: 'Multiple spectra analysis',
|
|
81
|
+
name: 'toolBarButtons.multipleSpectraAnalysis',
|
|
82
|
+
},
|
|
83
|
+
];
|
|
84
|
+
function ToolsTabContent() {
|
|
85
|
+
const COLUMNS = (0, react_1.useMemo)(() => [
|
|
86
|
+
{
|
|
87
|
+
index: 1,
|
|
88
|
+
Header: '#',
|
|
89
|
+
Cell: ({ row }) => row.index + 1,
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
index: 1,
|
|
93
|
+
Header: 'Tool',
|
|
94
|
+
accessor: 'label',
|
|
95
|
+
style: { width: '60%' },
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
index: 2,
|
|
99
|
+
Header: 'Active',
|
|
100
|
+
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)(CheckBoxCell_1.CheckBoxCell, { name: `display.${row.original.name}`, defaultValue: false })),
|
|
101
|
+
},
|
|
102
|
+
], []);
|
|
103
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: { width: '100%', overflow: 'hidden' }, children: (0, jsx_runtime_1.jsx)(ReactTable_1.default, { columns: COLUMNS, data: LIST }) }));
|
|
104
|
+
}
|
|
105
|
+
exports.default = ToolsTabContent;
|
|
@@ -45,7 +45,7 @@ const styles = (0, react_1.css) `
|
|
|
45
45
|
padding: 5px;
|
|
46
46
|
}
|
|
47
47
|
`;
|
|
48
|
-
|
|
48
|
+
function WorkspaceItem({ item, onSave, onDelete }) {
|
|
49
49
|
const [name, setName] = (0, react_2.useState)('');
|
|
50
50
|
const addWorkspaceHandler = (0, react_2.useCallback)((e) => {
|
|
51
51
|
e.stopPropagation();
|
|
@@ -60,5 +60,5 @@ const WorkspaceItem = ({ item, onSave, onDelete }) => {
|
|
|
60
60
|
setName(e.target.value);
|
|
61
61
|
}, []);
|
|
62
62
|
return ((0, jsx_runtime_1.jsx)("div", { css: styles, children: item.key === 'new' ? ((0, jsx_runtime_1.jsxs)("div", { className: "new-container", children: [(0, jsx_runtime_1.jsx)("input", { value: name, placeholder: "Custom workspace", onClick: (e) => e.stopPropagation(), onChange: onTextChange }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "save-button", onClick: addWorkspaceHandler, disabled: !name, children: "save" })] })) : ((0, jsx_runtime_1.jsxs)("div", { className: "container", children: [(0, jsx_runtime_1.jsx)("span", { children: item.label }), !workspaces_1.default[item.key] && ((0, jsx_runtime_1.jsx)("button", { type: "button", className: "delete-button", onClick: deleteWorkspaceHandler, children: "Delete" }))] })) }));
|
|
63
|
-
}
|
|
63
|
+
}
|
|
64
64
|
exports.default = WorkspaceItem;
|
|
@@ -62,10 +62,12 @@ const formattingValidation = (obj) => Yup.object().shape({
|
|
|
62
62
|
return new Yup.ValidationError(errors);
|
|
63
63
|
}),
|
|
64
64
|
});
|
|
65
|
-
const databasesValidation = Yup.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
const databasesValidation = Yup.object().shape({
|
|
66
|
+
data: Yup.array().of(Yup.object().shape({
|
|
67
|
+
label: Yup.string().trim().required('Label is a required field'),
|
|
68
|
+
url: Yup.string().trim().url().required('URL is a required field'),
|
|
69
|
+
})),
|
|
70
|
+
});
|
|
69
71
|
exports.validation = Yup.lazy((obj) => Yup.object().shape({
|
|
70
72
|
formatting: formattingValidation(obj),
|
|
71
73
|
databases: databasesValidation,
|
|
@@ -99,20 +99,18 @@ function IntegralPanelInner({ integrals, info, activeTab, xDomain, }) {
|
|
|
99
99
|
}
|
|
100
100
|
return [];
|
|
101
101
|
}, [filterIsActive, info.dimension, integrals, xDomain]);
|
|
102
|
-
return ((0, jsx_runtime_1.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
? `Change Integrals Sum (${Number(currentSum).toFixed(2)})`
|
|
115
|
-
: 'Change Integrals Sum', popupPlacement: "right", children: (0, jsx_runtime_1.jsx)("button", { className: "sum-button", type: "button", onClick: showChangeIntegralSumModal, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrSum, {}) }) }), (0, jsx_runtime_1.jsx)(ToggleButton_1.default, { className: "fix-integral-toggle-btn", popupTitle: "fix integral values", popupPlacement: "right", onClick: toggleConstantSumHandler, children: (0, jsx_runtime_1.jsx)(im_1.ImLink, {}) })] })), isFlipped && ((0, jsx_runtime_1.jsx)(PreferencesHeader_1.default, { onSave: saveSettingHandler, onClose: settingsPanelHandler })), (0, jsx_runtime_1.jsx)("div", { className: "inner-container", children: !isFlipped ? ((0, jsx_runtime_1.jsx)(IntegralTable_1.default, { data: filteredData, activeTab: activeTab })) : ((0, jsx_runtime_1.jsx)(IntegralsPreferences_1.default, { ref: settingRef })) })] }) }));
|
|
102
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: [
|
|
103
|
+
BasicPanelStyle_1.tablePanelStyle,
|
|
104
|
+
style,
|
|
105
|
+
isFlipped &&
|
|
106
|
+
(0, react_1.css) `
|
|
107
|
+
th {
|
|
108
|
+
position: relative;
|
|
109
|
+
}
|
|
110
|
+
`,
|
|
111
|
+
], children: [!isFlipped && ((0, jsx_runtime_1.jsxs)(DefaultPanelHeader_1.default, { counter: integrals?.values?.length, onDelete: handleDeleteAll, deleteToolTip: "Delete All Integrals", onFilter: handleOnFilter, filterToolTip: filterIsActive ? 'Show all integrals' : 'Hide integrals out of view', filterIsActive: filterIsActive, counterFiltered: filteredData.length, showSettingButton: true, onSettingClick: settingsPanelHandler, children: [(0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: currentSum
|
|
112
|
+
? `Change Integrals Sum (${Number(currentSum).toFixed(2)})`
|
|
113
|
+
: 'Change Integrals Sum', popupPlacement: "right", children: (0, jsx_runtime_1.jsx)("button", { className: "sum-button", type: "button", onClick: showChangeIntegralSumModal, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrSum, {}) }) }), (0, jsx_runtime_1.jsx)(ToggleButton_1.default, { className: "fix-integral-toggle-btn", popupTitle: "fix integral values", popupPlacement: "right", onClick: toggleConstantSumHandler, children: (0, jsx_runtime_1.jsx)(im_1.ImLink, {}) })] })), isFlipped && ((0, jsx_runtime_1.jsx)(PreferencesHeader_1.default, { onSave: saveSettingHandler, onClose: settingsPanelHandler })), (0, jsx_runtime_1.jsx)("div", { className: "inner-container", children: !isFlipped ? ((0, jsx_runtime_1.jsx)(IntegralTable_1.default, { data: filteredData, activeTab: activeTab })) : ((0, jsx_runtime_1.jsx)(IntegralsPreferences_1.default, { ref: settingRef })) })] }));
|
|
116
114
|
}
|
|
117
115
|
const MemoizedIntegralPanel = (0, react_2.memo)(IntegralPanelInner);
|
|
118
116
|
const emptyData = { integrals: {}, info: {} };
|
|
@@ -64,7 +64,7 @@ function IntegralTable({ activeTab, data }) {
|
|
|
64
64
|
sortType: 'basic',
|
|
65
65
|
resizable: true,
|
|
66
66
|
accessor: (row) => row.kind,
|
|
67
|
-
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)(Select_1.default, { onChange: (value) => changeIntegralDataHandler(value, row),
|
|
67
|
+
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)(Select_1.default, { onChange: (value) => changeIntegralDataHandler(value, row), items: SignalsKinds_1.SignalKinds, style: selectStyle, defaultValue: row.original.kind })),
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
index: 7,
|
|
@@ -35,10 +35,10 @@ function MoleculeHeader(props) {
|
|
|
35
35
|
const number = (0, MoleculeManager_1.extractNumber)(value);
|
|
36
36
|
return value && !reservedNumbers.includes(Number(number));
|
|
37
37
|
}, [molecules]);
|
|
38
|
-
const saveLabelHandler = (0, react_1.useCallback)((
|
|
38
|
+
const saveLabelHandler = (0, react_1.useCallback)((id, event) => {
|
|
39
39
|
const label = event.target.value;
|
|
40
|
-
dispatch({ type: Types_1.CHANGE_MOLECULE_LABEL, payload: { label,
|
|
40
|
+
dispatch({ type: Types_1.CHANGE_MOLECULE_LABEL, payload: { label, id } });
|
|
41
41
|
}, [dispatch]);
|
|
42
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: styles.toolbar, children: [(0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex' }, children: [(0, jsx_runtime_1.jsx)("span", { children: "Label" }), (0, jsx_runtime_1.jsx)(EditableColumn_1.default, { value: currentMolecule.label, style: styles.labelInput, validate: validateLabel, onSave: (event) => saveLabelHandler(currentMolecule.
|
|
42
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: styles.toolbar, children: [(0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex' }, children: [(0, jsx_runtime_1.jsx)("span", { children: "Label" }), (0, jsx_runtime_1.jsx)(EditableColumn_1.default, { value: currentMolecule.label, style: styles.labelInput, validate: validateLabel, onSave: (event) => saveLabelHandler(currentMolecule.id, event) })] }), (0, jsx_runtime_1.jsxs)("span", { children: [(0, jsx_runtime_1.jsx)(react_mf_1.MF, { mf: currentMolecule.mf }), " - ", currentMolecule.mw?.toFixed(2)] })] }));
|
|
43
43
|
}
|
|
44
44
|
exports.default = MoleculeHeader;
|
|
@@ -22,8 +22,6 @@ const useAtomAssignment_1 = __importDefault(require("./useAtomAssignment"));
|
|
|
22
22
|
const styles = {
|
|
23
23
|
panel: (0, react_1.css)({
|
|
24
24
|
display: 'flex',
|
|
25
|
-
overflow: 'auto',
|
|
26
|
-
flexGrow: 1,
|
|
27
25
|
width: '100%',
|
|
28
26
|
height: '100%',
|
|
29
27
|
flexDirection: 'column',
|
|
@@ -32,29 +30,25 @@ const styles = {
|
|
|
32
30
|
display: 'flex',
|
|
33
31
|
flex: '1',
|
|
34
32
|
flexDirection: 'column',
|
|
35
|
-
overflow: 'auto',
|
|
36
33
|
}),
|
|
37
34
|
molecule: (0, react_1.css)({
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
flex: 1,
|
|
36
|
+
minHeight: '100px',
|
|
40
37
|
}),
|
|
41
38
|
slider: (0, react_1.css)({
|
|
42
39
|
display: 'flex',
|
|
43
40
|
flexDirection: 'column',
|
|
44
41
|
justifyContent: 'center',
|
|
45
42
|
alignItems: 'center',
|
|
46
|
-
|
|
47
|
-
minHeight: 0,
|
|
43
|
+
flex: 1,
|
|
48
44
|
}),
|
|
49
45
|
items: (0, react_1.css)({
|
|
50
46
|
display: 'flex',
|
|
51
47
|
flexDirection: 'column',
|
|
52
|
-
flex: '1 1 0%',
|
|
53
48
|
height: '100%',
|
|
54
|
-
minHeight: 0,
|
|
55
49
|
}),
|
|
56
50
|
};
|
|
57
|
-
function MoleculePanelInner({ zones, ranges, molecules: moleculesProp, activeTab, displayerMode, onMoleculeChange, actionsOptions, children, }) {
|
|
51
|
+
function MoleculePanelInner({ zones, ranges, molecules: moleculesProp, floatingMolecules, activeTab, displayerMode, onMoleculeChange, actionsOptions, children, emptyTextStyle, }) {
|
|
58
52
|
const [currentIndex, setCurrentIndex] = (0, react_2.useState)(0);
|
|
59
53
|
const [molecules, setMolecules] = (0, react_2.useState)([]);
|
|
60
54
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
@@ -74,42 +68,44 @@ function MoleculePanelInner({ zones, ranges, molecules: moleculesProp, activeTab
|
|
|
74
68
|
onMoleculeChange?.(molecules[currentIndex] || null);
|
|
75
69
|
}, [currentIndex, molecules, onMoleculeChange]);
|
|
76
70
|
const handleReplaceMolecule = (0, react_2.useCallback)((molecule, molfile) => {
|
|
77
|
-
const {
|
|
71
|
+
const { id, label } = molecule;
|
|
78
72
|
dispatch({
|
|
79
73
|
type: Types_1.SET_MOLECULE,
|
|
80
|
-
payload: { molfile,
|
|
74
|
+
payload: { molfile, id, label },
|
|
81
75
|
});
|
|
82
76
|
}, [dispatch]);
|
|
83
77
|
const moleculeIndexHandler = (0, react_2.useCallback)((index) => {
|
|
84
78
|
setCurrentIndex(index);
|
|
85
79
|
}, []);
|
|
86
|
-
return ((0, jsx_runtime_1.jsxs)("div", { css: styles.panel, children: [(0, jsx_runtime_1.jsx)(MoleculePanelHeader_1.default, { currentIndex: currentIndex, molecules: molecules, onOpenMoleculeEditor: () => openMoleculeEditor(), onMoleculeIndexChange: moleculeIndexHandler, actionsOptions: actionsOptions }), (0, jsx_runtime_1.jsxs)("div", { css: styles.innerPanel, children: [(0, jsx_runtime_1.jsx)("div", { css: styles.molecule, children: (0, jsx_runtime_1.jsx)(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
80
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: styles.panel, children: [(0, jsx_runtime_1.jsx)(MoleculePanelHeader_1.default, { currentIndex: currentIndex, floatingMolecules: floatingMolecules, molecules: molecules, onOpenMoleculeEditor: () => openMoleculeEditor(), onMoleculeIndexChange: moleculeIndexHandler, actionsOptions: actionsOptions }), (0, jsx_runtime_1.jsxs)("div", { css: styles.innerPanel, children: [(0, jsx_runtime_1.jsx)("div", { css: styles.molecule, children: (0, jsx_runtime_1.jsx)(react_d3_utils_1.ResponsiveChart, { children: ({ height, width }) => {
|
|
81
|
+
return ((0, jsx_runtime_1.jsx)(NextPrev_1.default, { onChange: (slideIndex) => setCurrentIndex(slideIndex), defaultIndex: currentIndex, children: molecules && molecules.length > 0 ? (molecules.map((mol, index) => ((0, jsx_runtime_1.jsxs)("div", { css: styles.items, children: [(0, jsx_runtime_1.jsx)(MoleculeHeader_1.default, { currentMolecule: mol, molecules: molecules }), (0, jsx_runtime_1.jsx)("div", { css: styles.slider, className: "mol-svg-container", onDoubleClick: () => openMoleculeEditor(mol), style: {
|
|
82
|
+
backgroundColor: (index + 1) % 2 !== 0 ? '#fafafa' : 'white',
|
|
83
|
+
}, children: (0, jsx_runtime_1.jsx)(react_ocl_nmr_1.default, { OCL: full_1.default, id: `molSVG${index}`, width: width, height: height - 60, molfile: mol.molfile || '', setMolfile: (molfile) => handleReplaceMolecule(mol, molfile), setSelectedAtom: handleOnClickAtom, atomHighlightColor: currentDiaIDsToHighlight &&
|
|
90
84
|
currentDiaIDsToHighlight.length > 0
|
|
91
85
|
? 'red'
|
|
92
86
|
: '#FFD700', atomHighlightOpacity: 0.35, highlights: currentDiaIDsToHighlight &&
|
|
93
87
|
currentDiaIDsToHighlight.length > 0
|
|
94
88
|
? currentDiaIDsToHighlight
|
|
95
|
-
: assignedDiaIDsMerged, setHoverAtom: handleOnAtomHover }));
|
|
96
|
-
|
|
89
|
+
: assignedDiaIDsMerged, setHoverAtom: handleOnAtomHover }) })] }, mol.id)))) : ((0, jsx_runtime_1.jsx)("div", { css: styles.slider, style: { height: '100%' }, onClick: () => openMoleculeEditor(), children: (0, jsx_runtime_1.jsx)("span", { style: emptyTextStyle, children: "Click to draw molecule" }) })) }));
|
|
90
|
+
} }) }), children] })] }));
|
|
97
91
|
}
|
|
98
92
|
const MemoizedMoleculePanel = (0, react_2.memo)(MoleculePanelInner);
|
|
99
93
|
const emptyData = { ranges: {}, zones: {} };
|
|
100
|
-
function MoleculePanel({ onMoleculeChange, children, actionsOptions, }) {
|
|
101
|
-
const { molecules, displayerMode, activeTab } = (0, ChartContext_1.useChartData)();
|
|
94
|
+
function MoleculePanel({ onMoleculeChange, children, actionsOptions, emptyTextStyle, }) {
|
|
95
|
+
const { molecules, view: { floatingMolecules }, displayerMode, activeTab, } = (0, ChartContext_1.useChartData)();
|
|
102
96
|
const data = (0, useSpectrum_1.default)(emptyData);
|
|
103
97
|
const ranges = data?.ranges || {};
|
|
104
98
|
const zones = data?.zones || {};
|
|
105
99
|
return ((0, jsx_runtime_1.jsx)(MemoizedMoleculePanel, { ...{
|
|
106
100
|
molecules,
|
|
101
|
+
floatingMolecules,
|
|
107
102
|
displayerMode,
|
|
108
103
|
activeTab,
|
|
109
104
|
ranges,
|
|
110
105
|
zones,
|
|
111
106
|
onMoleculeChange,
|
|
112
107
|
actionsOptions,
|
|
108
|
+
emptyTextStyle,
|
|
113
109
|
}, children: children }));
|
|
114
110
|
}
|
|
115
111
|
exports.default = MoleculePanel;
|
|
@@ -13,9 +13,9 @@ const io5_1 = require("react-icons/io5");
|
|
|
13
13
|
const AssignmentsContext_1 = require("../../assignment/AssignmentsContext");
|
|
14
14
|
const DispatchContext_1 = require("../../context/DispatchContext");
|
|
15
15
|
const GlobalContext_1 = require("../../context/GlobalContext");
|
|
16
|
+
const ActiveButton_1 = __importDefault(require("../../elements/ActiveButton"));
|
|
16
17
|
const ButtonToolTip_1 = __importDefault(require("../../elements/ButtonToolTip"));
|
|
17
18
|
const MenuButton_1 = __importDefault(require("../../elements/MenuButton"));
|
|
18
|
-
const ToggleButton_1 = __importDefault(require("../../elements/ToggleButton"));
|
|
19
19
|
const ToolTip_1 = __importDefault(require("../../elements/ToolTip/ToolTip"));
|
|
20
20
|
const Alert_1 = require("../../elements/popup/Alert");
|
|
21
21
|
const Modal_1 = require("../../elements/popup/Modal");
|
|
@@ -63,7 +63,7 @@ const MOL_EXPORT_MENU = [
|
|
|
63
63
|
label: 'Export as SVG',
|
|
64
64
|
},
|
|
65
65
|
];
|
|
66
|
-
function MoleculePanelHeader({ currentIndex, molecules, onMoleculeIndexChange = () => null, onOpenMoleculeEditor = () => null, actionsOptions = {}, }) {
|
|
66
|
+
function MoleculePanelHeader({ currentIndex, molecules, floatingMolecules, onMoleculeIndexChange = () => null, onOpenMoleculeEditor = () => null, actionsOptions = {}, }) {
|
|
67
67
|
const { rootRef } = (0, GlobalContext_1.useGlobal)();
|
|
68
68
|
const alert = (0, Alert_1.useAlert)();
|
|
69
69
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
@@ -113,11 +113,11 @@ function MoleculePanelHeader({ currentIndex, molecules, onMoleculeIndexChange =
|
|
|
113
113
|
});
|
|
114
114
|
}, [dispatch]);
|
|
115
115
|
const handleDelete = (0, react_2.useCallback)(() => {
|
|
116
|
-
if (molecules[currentIndex]?.
|
|
116
|
+
if (molecules[currentIndex]?.id) {
|
|
117
117
|
onMoleculeIndexChange(0);
|
|
118
118
|
dispatch({
|
|
119
119
|
type: Types_1.DELETE_MOLECULE,
|
|
120
|
-
payload: {
|
|
120
|
+
payload: { id: molecules[currentIndex].id, assignmentData },
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
}, [
|
|
@@ -137,10 +137,10 @@ function MoleculePanelHeader({ currentIndex, molecules, onMoleculeIndexChange =
|
|
|
137
137
|
const floatMoleculeHandler = (0, react_2.useCallback)(() => {
|
|
138
138
|
dispatch({
|
|
139
139
|
type: Types_1.FLOAT_MOLECULE_OVER_SPECTRUM,
|
|
140
|
-
payload: {
|
|
140
|
+
payload: { id: molecules[currentIndex].id },
|
|
141
141
|
});
|
|
142
142
|
}, [currentIndex, dispatch, molecules]);
|
|
143
|
-
return ((0, jsx_runtime_1.jsxs)("div", { css: toolbarStyle, children: [!actionsOptions.hideExport && ((0, jsx_runtime_1.jsx)(MenuButton_1.default, { component: (0, jsx_runtime_1.jsx)(fa_1.FaFileExport, {}), toolTip: "Export As", items: MOL_EXPORT_MENU, onClick: exportHandler })), !actionsOptions.hidePast && ((0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: "Paste molfile", popupPlacement: "left", children: (0, jsx_runtime_1.jsx)("button", { className: "bar-button", type: "button", onClick: handlePaste, children: (0, jsx_runtime_1.jsx)(fa_1.FaPaste, {}) }) })), !actionsOptions.hideAdd && ((0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: "Add Molecule", popupPlacement: "left", children: (0, jsx_runtime_1.jsx)("button", { className: "bar-button", type: "button", onClick: onOpenMoleculeEditor,
|
|
143
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: toolbarStyle, children: [!actionsOptions.hideExport && ((0, jsx_runtime_1.jsx)(MenuButton_1.default, { component: (0, jsx_runtime_1.jsx)(fa_1.FaFileExport, {}), toolTip: "Export As", items: MOL_EXPORT_MENU, onClick: exportHandler })), !actionsOptions.hidePast && ((0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: "Paste molfile", popupPlacement: "left", children: (0, jsx_runtime_1.jsx)("button", { className: "bar-button", type: "button", onClick: handlePaste, children: (0, jsx_runtime_1.jsx)(fa_1.FaPaste, {}) }) })), !actionsOptions.hideAdd && ((0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: "Add Molecule", popupPlacement: "left", children: (0, jsx_runtime_1.jsx)("button", { className: "bar-button", type: "button", onClick: onOpenMoleculeEditor, children: (0, jsx_runtime_1.jsx)(fa_1.FaPlus, {}) }) })), !actionsOptions.hideDelete && ((0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: "Delete Molecule", popupPlacement: "left", children: (0, jsx_runtime_1.jsx)("button", { className: "bar-button", type: "button", onClick: handleDelete, children: (0, jsx_runtime_1.jsx)(fa_1.FaRegTrashAlt, {}) }) })), !actionsOptions.hidePredict && molecules && molecules.length > 0 && ((0, jsx_runtime_1.jsx)(ButtonToolTip_1.default, { popupTitle: "Predict Spectra", popupPlacement: "left", onClick: openPredictSpectraModal, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrFt, {}) })), molecules?.[currentIndex] && ((0, jsx_runtime_1.jsx)(ActiveButton_1.default, { value: floatingMolecules.find(({ id }) => id === molecules[currentIndex].id)?.visible || false, popupTitle: "Float Molecule", popupPlacement: "left", onClick: floatMoleculeHandler, children: (0, jsx_runtime_1.jsx)(io5_1.IoOpenOutline, {}) }, molecules[currentIndex].id)), (0, jsx_runtime_1.jsxs)("p", { children: [molecules &&
|
|
144
144
|
molecules.length > 0 &&
|
|
145
145
|
`${+(currentIndex + 1)} / ${molecules.length}`, ' '] })] }));
|
|
146
146
|
}
|
|
@@ -29,7 +29,10 @@ function useAtomAssignment({ displayerMode, activeTab: nucleus, zones, ranges, }
|
|
|
29
29
|
if (onAtomHoverAction === 'show') {
|
|
30
30
|
highlightData.dispatch({
|
|
31
31
|
type: 'SHOW',
|
|
32
|
-
payload: {
|
|
32
|
+
payload: {
|
|
33
|
+
convertedHighlights: onAtomHoverHighlights,
|
|
34
|
+
sourceData: { type: highlight_1.HighlightEventSource.ATOM },
|
|
35
|
+
},
|
|
33
36
|
});
|
|
34
37
|
}
|
|
35
38
|
else if (onAtomHoverAction === 'hide') {
|
|
@@ -56,7 +59,10 @@ function useAtomAssignment({ displayerMode, activeTab: nucleus, zones, ranges, }
|
|
|
56
59
|
return [];
|
|
57
60
|
}, [displayerMode, ranges, zones]);
|
|
58
61
|
const assignedDiaIDs = (0, react_1.useMemo)(() => {
|
|
59
|
-
const assignedDiaID = {
|
|
62
|
+
const assignedDiaID = {
|
|
63
|
+
x: [],
|
|
64
|
+
y: [],
|
|
65
|
+
};
|
|
60
66
|
const assignment = assignments.data.assignments;
|
|
61
67
|
for (let id in assignment) {
|
|
62
68
|
if (assignment[id].x) {
|
|
@@ -79,7 +85,9 @@ function useAtomAssignment({ displayerMode, activeTab: nucleus, zones, ranges, }
|
|
|
79
85
|
const { datum } = (0, Utilities_1.findDatumAndSignalIndex)(data, highlightID);
|
|
80
86
|
const type = highlightData.highlight.sourceData?.type;
|
|
81
87
|
if (datum &&
|
|
82
|
-
(type === highlight_1.
|
|
88
|
+
(type === highlight_1.HighlightEventSource.ZONE ||
|
|
89
|
+
type === highlight_1.HighlightEventSource.RANGE ||
|
|
90
|
+
type === highlight_1.HighlightEventSource.ATOM)) {
|
|
83
91
|
// we are on range/zone level only, so add the belonging signal IDs to highlight too
|
|
84
92
|
highlights = highlights.concat(datum.signals
|
|
85
93
|
.map((signal) => (0, filterForIDsWithAssignment_1.filterForIDsWithAssignment)(assignments, [signal.id]).length > 0
|
|
@@ -153,7 +161,7 @@ function useAtomAssignment({ displayerMode, activeTab: nucleus, zones, ranges, }
|
|
|
153
161
|
nbAtoms,
|
|
154
162
|
zoneData: datum,
|
|
155
163
|
diaIDs: _diaID,
|
|
156
|
-
axis
|
|
164
|
+
axis,
|
|
157
165
|
signalIndex,
|
|
158
166
|
},
|
|
159
167
|
});
|