nmrium 0.32.0 → 0.33.0-pre.1667632695
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/Chart1D.js +1 -1
- package/lib/component/1d/LinesSeries.js +1 -1
- package/lib/component/1d/SpectraTracker.js +1 -1
- package/lib/component/1d/Viewer1D.js +1 -1
- package/lib/component/1d/XAxis.js +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +2 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +2 -2
- package/lib/component/1d/{Integral.d.ts → integral/Integral.d.ts} +0 -0
- package/lib/component/1d/{Integral.js → integral/Integral.js} +2 -2
- package/lib/component/1d/integral/IntegralIndicator.d.ts +9 -0
- package/lib/component/1d/integral/IntegralIndicator.js +27 -0
- package/lib/component/1d/{IntegralResizable.d.ts → integral/IntegralResizable.d.ts} +0 -0
- package/lib/component/1d/integral/IntegralResizable.js +69 -0
- package/lib/component/1d/{IntegralsSeries.d.ts → integral/IntegralsSeries.d.ts} +0 -0
- package/lib/component/1d/{IntegralsSeries.js → integral/IntegralsSeries.js} +4 -4
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +4 -4
- package/lib/component/1d/multiplicityTree/buildTreeNode.js +3 -3
- package/lib/component/1d/peaks/PeakAnnotation.js +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js +10 -6
- package/lib/component/1d/ranges/Range.js +27 -50
- package/lib/component/1d/tool/PeakPointer.js +1 -1
- package/lib/component/1d/utilities/scale.js +2 -2
- package/lib/component/2d/Contours.js +61 -42
- package/lib/component/2d/FooterBanner.js +2 -2
- package/lib/component/2d/Viewer2D.js +11 -14
- package/lib/component/2d/tools/XYLabelPointer.js +2 -2
- package/lib/component/2d/tools/slicing/VerticalSliceChart.js +1 -1
- package/lib/component/2d/zones/IndicationLines.js +5 -8
- package/lib/component/EventsTrackers/KeysListenerTracker.js +14 -15
- package/lib/component/NMRium.d.ts +1 -1
- package/lib/component/NMRium.js +6 -6
- package/lib/component/assignment/actions/initAssignment.js +17 -17
- package/lib/component/assignment/index.js +2 -2
- package/lib/component/context/PreferencesContext.js +3 -6
- package/lib/component/elements/Button.js +1 -1
- package/lib/component/elements/CheckBoxCell.js +1 -1
- package/lib/component/elements/ContextMenu.js +2 -2
- package/lib/component/elements/EditableColumn.js +3 -5
- package/lib/component/elements/GroupPane.d.ts +12 -0
- package/lib/component/elements/GroupPane.js +14 -0
- package/lib/component/elements/Input.js +7 -4
- package/lib/component/elements/IsotopesViewer.js +1 -1
- package/lib/component/elements/Label.js +1 -2
- package/lib/component/elements/MolecularFormulaInput.js +2 -0
- package/lib/component/elements/NumberInput.js +2 -2
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +1 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts +2 -1
- package/lib/component/elements/ReactTable/ReactTable.js +72 -38
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.d.ts +3 -2
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js +2 -2
- package/lib/component/elements/ReactTable/utility/addCustomColumn.js +3 -3
- package/lib/component/elements/ReactTable/utility/useRowSpan.js +3 -7
- package/lib/component/elements/accordion/Accordion.js +2 -2
- package/lib/component/elements/draggble/useDraggable.js +1 -3
- package/lib/component/elements/dropDownButton/DropDownList.js +1 -2
- package/lib/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib/component/elements/formik/FormikColorPicker.d.ts +0 -1
- package/lib/component/elements/formik/FormikColorPicker.js +5 -8
- package/lib/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib/component/elements/formik/FormikForm.js +2 -2
- package/lib/component/elements/formik/FormikInput.d.ts +0 -1
- package/lib/component/elements/formik/FormikInput.js +12 -20
- package/lib/component/elements/formik/FormikOnChange.d.ts +1 -1
- package/lib/component/elements/formik/FormikOnChange.js +13 -10
- package/lib/component/elements/formik/FormikSelect.js +1 -1
- package/lib/component/elements/formik/FormikSlider.d.ts +2 -4
- package/lib/component/elements/formik/FormikSlider.js +8 -11
- package/lib/component/elements/formik/FormikTextarea.js +1 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js +2 -2
- package/lib/component/elements/popup/Alert/Provider.js +7 -7
- package/lib/component/elements/popup/Alert/index.d.ts +3 -4
- package/lib/component/elements/popup/Alert/index.js +3 -4
- package/lib/component/elements/popup/Modal/ModalContent.js +3 -1
- package/lib/component/elements/popup/Modal/Provider.js +16 -31
- package/lib/component/elements/popup/Modal/index.d.ts +4 -5
- package/lib/component/elements/popup/Modal/index.js +4 -5
- package/lib/component/header/Header.js +1 -1
- package/lib/component/hooks/useCombinedRefs.js +2 -2
- package/lib/component/hooks/useExport.d.ts +1 -1
- package/lib/component/hooks/useExport.js +9 -6
- package/lib/component/hooks/useFormatNumberByNucleus.js +1 -1
- package/lib/component/hooks/usePanelPreferences.js +9 -7
- package/lib/component/loader/DropZone.js +4 -4
- package/lib/component/modal/AlignSpectraModal.js +1 -1
- package/lib/component/modal/ExportAsMatrixModal.js +1 -1
- package/lib/component/modal/LoadJCAMPModal.js +2 -2
- package/lib/component/modal/MultipleSpectraFiltersModal/index.js +1 -1
- package/lib/component/modal/MultipletAnalysisModal.js +3 -3
- package/lib/component/modal/PredictSpectraModal.js +5 -5
- package/lib/component/modal/editRange/EditRangeModal.js +4 -4
- package/lib/component/modal/editRange/forms/components/SignalFormInfo.js +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +2 -2
- package/lib/component/modal/setting/DatabasesTabContent.js +25 -20
- package/lib/component/modal/setting/DisplayTabContent.js +21 -27
- package/lib/component/modal/setting/FormattingTabContent.js +10 -10
- package/lib/component/modal/setting/GeneralSettings.js +11 -14
- package/lib/component/modal/setting/GeneralTabContent.js +3 -1
- package/lib/component/modal/setting/ToolsTabContent.js +18 -19
- package/lib/component/modal/setting/WorkspaceItem.d.ts +2 -1
- package/lib/component/modal/setting/WorkspaceItem.js +36 -48
- package/lib/component/modal/setting/settingsValidation.d.ts +58 -57
- package/lib/component/modal/setting/settingsValidation.js +14 -12
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +8 -7
- package/lib/component/panels/InformationPanel.js +52 -56
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +1 -1
- package/lib/component/panels/MoleculesPanel/Utilities.js +6 -6
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +16 -17
- package/lib/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +1 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.js +1 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +1 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +18 -17
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +2 -2
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.js +2 -2
- package/lib/component/panels/RangesPanel/RangesHeader.js +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.js +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +1 -3
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.js +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +2 -2
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.js +8 -8
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.js +6 -6
- package/lib/component/panels/SpectrumsPanel/SpectrumListPanel.js +3 -3
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +5 -5
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +2 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +2 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +13 -17
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +16 -17
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +20 -21
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +12 -12
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +1 -5
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +105 -94
- package/lib/component/panels/ZonesPanel/ZonesTable.js +8 -8
- package/lib/component/panels/databasePanel/DatabasePanel.js +5 -4
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts +2 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +20 -5
- package/lib/component/panels/extra/preferences/ColumnsHelper.js +5 -2
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts +2 -2
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.js +2 -2
- package/lib/component/panels/filtersPanel/FiltersTable.js +1 -1
- package/lib/component/reducer/IgnoreActions.js +3 -3
- package/lib/component/reducer/Reducer.d.ts +40 -14
- package/lib/component/reducer/Reducer.js +12 -11
- package/lib/component/reducer/actions/CorrelationsActions.js +4 -4
- package/lib/component/reducer/actions/DomainActions.d.ts +2 -2
- package/lib/component/reducer/actions/DomainActions.js +49 -67
- package/lib/component/reducer/actions/FiltersActions.js +3 -3
- package/lib/component/reducer/actions/HistoryActions.js +5 -5
- package/lib/component/reducer/actions/LoadActions.js +12 -0
- package/lib/component/reducer/actions/PreferencesActions.js +18 -37
- package/lib/component/reducer/actions/RangesActions.js +14 -12
- package/lib/component/reducer/actions/SpectrumsActions.js +10 -4
- package/lib/component/reducer/actions/ToolsActions.js +20 -35
- package/lib/component/reducer/actions/ZonesActions.js +2 -2
- package/lib/component/reducer/core/Constants.js +1 -1
- package/lib/component/reducer/helper/GetClosestNumber.js +2 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +11 -10
- package/lib/component/reducer/helper/getSpectrum.js +3 -5
- package/lib/component/reducer/helper/getStrongestPeak.d.ts +1 -1
- package/lib/component/reducer/helper/getStrongestPeak.js +2 -3
- package/lib/component/reducer/preferences/actions/removeWorkspace.js +3 -10
- package/lib/component/reducer/preferences/actions/setPreferences.js +5 -6
- package/lib/component/reducer/preferences/utilities/mapNucleiFormatting.d.ts +1 -4
- package/lib/component/reducer/preferences/utilities/mapNucleiFormatting.js +7 -5
- package/lib/component/tool/BrushX.js +3 -3
- package/lib/component/tool/BrushXY.js +5 -5
- package/lib/component/tool/CrossLinePointer.js +3 -3
- package/lib/component/toolbar/BasicToolBar.js +1 -1
- package/lib/component/utility/Evaluate.js +2 -2
- package/lib/component/utility/FileUtility.d.ts +2 -9
- package/lib/component/utility/FileUtility.js +11 -28
- package/lib/component/utility/GroupByInfoKey.d.ts +1 -1
- package/lib/component/utility/GroupByInfoKey.js +11 -13
- package/lib/component/utility/PathBuilder.js +1 -1
- package/lib/component/utility/PreferencesHelper.js +2 -3
- package/lib/component/utility/{Export.d.ts → export.d.ts} +0 -0
- package/lib/component/utility/{Export.js → export.js} +53 -78
- package/lib/component/utility/formatNumber.d.ts +6 -1
- package/lib/component/utility/formatNumber.js +5 -4
- package/lib/data/Filters.d.ts +16 -17
- package/lib/data/Filters.js +16 -17
- package/lib/data/FiltersManager.js +4 -3
- package/lib/data/PredictionManager.js +8 -10
- package/lib/data/SpectraManager.d.ts +1 -2
- package/lib/data/SpectraManager.js +25 -60
- package/lib/data/data1d/MultipleAnalysis.js +74 -70
- package/lib/data/data1d/Spectrum1D/SumManager.js +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +1 -1
- package/lib/data/data1d/Spectrum1D/index.d.ts +24 -25
- package/lib/data/data1d/Spectrum1D/index.js +24 -25
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +6 -5
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.js +8 -10
- package/lib/data/data1d/Spectrum1D/peaks/lookupPeak.js +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/addRange.js +3 -2
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.js +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +35 -1
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.d.ts +35 -1
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.js +6 -7
- package/lib/data/data1d/database.js +45 -28
- package/lib/data/data1d/filter1d/apodization.js +2 -1
- package/lib/data/data1d/filter1d/fft.js +24 -7
- package/lib/data/data1d/filter1d/phaseCorrection.js +2 -2
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +1 -1
- package/lib/data/data1d/filter1d/zeroFilling.js +1 -1
- package/lib/data/data2d/Processing2D.d.ts +3 -3
- package/lib/data/data2d/Processing2D.js +7 -18
- package/lib/data/data2d/Spectrum2D/contours.d.ts +40 -0
- package/lib/data/data2d/Spectrum2D/contours.js +132 -0
- package/lib/data/data2d/Spectrum2D/index.d.ts +10 -11
- package/lib/data/data2d/Spectrum2D/index.js +10 -11
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +3 -4
- package/lib/data/data2d/Spectrum2D/shift/getShift.js +4 -5
- package/lib/data/data2d/Spectrum2D/zones/detectZones.js +11 -8
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +1 -1
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +1 -2
- package/lib/data/molecules/MoleculeManager.js +1 -1
- package/lib/data/types/common/Source.d.ts +1 -0
- package/lib/data/types/data1d/index.d.ts +12 -13
- package/lib/data/types/data2d/Data2D.d.ts +2 -0
- package/lib/data/types/data2d/Datum2D.d.ts +0 -1
- package/lib/data/types/data2d/index.d.ts +8 -9
- package/lib/data/utilities/RangeUtilities.js +13 -9
- package/lib/data/utilities/ZoneUtilities.js +17 -13
- package/lib/data/utilities/checkModifierKeyActivated.js +1 -2
- package/lib/data/utilities/generateChar.js +8 -6
- package/lib/data/utilities/getAtom.js +1 -1
- package/lib/data/utilities/getAtomsFromMF.js +2 -2
- package/lib/data/utilities/getColor.js +3 -3
- package/lib/data/utilities/getSum.js +6 -3
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/Chart1D.js +1 -1
- package/lib-cjs/component/1d/LinesSeries.js +1 -1
- package/lib-cjs/component/1d/SpectraTracker.js +1 -1
- package/lib-cjs/component/1d/Viewer1D.js +1 -1
- package/lib-cjs/component/1d/XAxis.js +1 -1
- package/lib-cjs/component/1d/database/DatabaseSpectrum.js +2 -1
- package/lib-cjs/component/1d/database/ResurrectedDatabaseRanges.js +2 -2
- package/lib-cjs/component/1d/{Integral.js → integral/Integral.js} +2 -2
- package/lib-cjs/component/1d/integral/IntegralIndicator.js +31 -0
- package/lib-cjs/component/1d/integral/IntegralResizable.js +74 -0
- package/lib-cjs/component/1d/{IntegralsSeries.js → integral/IntegralsSeries.js} +4 -4
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +4 -4
- package/lib-cjs/component/1d/multiplicityTree/buildTreeNode.js +3 -3
- package/lib-cjs/component/1d/peaks/PeakAnnotation.js +1 -1
- package/lib-cjs/component/1d/peaks/usePeakShapesPath.js +10 -6
- package/lib-cjs/component/1d/ranges/Range.js +27 -50
- package/lib-cjs/component/1d/tool/PeakPointer.js +1 -1
- package/lib-cjs/component/1d/utilities/scale.js +2 -2
- package/lib-cjs/component/2d/Contours.js +60 -41
- package/lib-cjs/component/2d/FooterBanner.js +2 -2
- package/lib-cjs/component/2d/Viewer2D.js +11 -14
- package/lib-cjs/component/2d/tools/XYLabelPointer.js +2 -2
- package/lib-cjs/component/2d/tools/slicing/VerticalSliceChart.js +1 -1
- package/lib-cjs/component/2d/zones/IndicationLines.js +5 -8
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +14 -15
- package/lib-cjs/component/NMRium.js +7 -7
- package/lib-cjs/component/assignment/actions/initAssignment.js +17 -17
- package/lib-cjs/component/assignment/index.js +2 -2
- package/lib-cjs/component/context/PreferencesContext.js +3 -6
- package/lib-cjs/component/elements/Button.js +1 -1
- package/lib-cjs/component/elements/CheckBoxCell.js +1 -1
- package/lib-cjs/component/elements/ContextMenu.js +2 -2
- package/lib-cjs/component/elements/EditableColumn.js +3 -5
- package/lib-cjs/component/elements/GroupPane.js +18 -0
- package/lib-cjs/component/elements/Input.js +7 -4
- package/lib-cjs/component/elements/IsotopesViewer.js +1 -1
- package/lib-cjs/component/elements/Label.js +1 -2
- package/lib-cjs/component/elements/MolecularFormulaInput.js +2 -0
- package/lib-cjs/component/elements/NumberInput.js +2 -2
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableRow.js +1 -1
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +71 -37
- package/lib-cjs/component/elements/ReactTable/ReactTableFlexLayout.js +2 -2
- package/lib-cjs/component/elements/ReactTable/utility/addCustomColumn.js +3 -3
- package/lib-cjs/component/elements/ReactTable/utility/useRowSpan.js +3 -7
- package/lib-cjs/component/elements/accordion/Accordion.js +2 -2
- package/lib-cjs/component/elements/draggble/useDraggable.js +1 -3
- package/lib-cjs/component/elements/dropDownButton/DropDownList.js +1 -2
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColorPicker.js +4 -7
- package/lib-cjs/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib-cjs/component/elements/formik/FormikForm.js +2 -2
- package/lib-cjs/component/elements/formik/FormikInput.js +12 -20
- package/lib-cjs/component/elements/formik/FormikOnChange.js +13 -10
- package/lib-cjs/component/elements/formik/FormikSelect.js +1 -1
- package/lib-cjs/component/elements/formik/FormikSlider.js +7 -10
- package/lib-cjs/component/elements/formik/FormikTextarea.js +1 -1
- package/lib-cjs/component/elements/linearAxis/LinearVerticalAxis.js +2 -2
- package/lib-cjs/component/elements/popup/Alert/Provider.js +8 -8
- package/lib-cjs/component/elements/popup/Alert/index.js +5 -5
- package/lib-cjs/component/elements/popup/Modal/ModalContent.js +3 -1
- package/lib-cjs/component/elements/popup/Modal/Provider.js +16 -31
- package/lib-cjs/component/elements/popup/Modal/index.js +7 -7
- package/lib-cjs/component/header/Header.js +1 -1
- package/lib-cjs/component/hooks/useCombinedRefs.js +2 -2
- package/lib-cjs/component/hooks/useExport.js +14 -11
- package/lib-cjs/component/hooks/useFormatNumberByNucleus.js +1 -1
- package/lib-cjs/component/hooks/usePanelPreferences.js +9 -7
- package/lib-cjs/component/loader/DropZone.js +4 -4
- package/lib-cjs/component/modal/AlignSpectraModal.js +1 -1
- package/lib-cjs/component/modal/ExportAsMatrixModal.js +2 -2
- package/lib-cjs/component/modal/LoadJCAMPModal.js +2 -2
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/index.js +1 -1
- package/lib-cjs/component/modal/MultipletAnalysisModal.js +3 -3
- package/lib-cjs/component/modal/PredictSpectraModal.js +5 -5
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +4 -4
- package/lib-cjs/component/modal/editRange/forms/components/SignalFormInfo.js +1 -1
- package/lib-cjs/component/modal/editRange/forms/validation/EditRangeValidation.js +2 -2
- package/lib-cjs/component/modal/setting/DatabasesTabContent.js +25 -20
- package/lib-cjs/component/modal/setting/DisplayTabContent.js +21 -27
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +10 -10
- package/lib-cjs/component/modal/setting/GeneralSettings.js +11 -14
- package/lib-cjs/component/modal/setting/GeneralTabContent.js +3 -1
- package/lib-cjs/component/modal/setting/ToolsTabContent.js +18 -19
- package/lib-cjs/component/modal/setting/WorkspaceItem.js +37 -49
- package/lib-cjs/component/modal/setting/settingsValidation.js +14 -12
- package/lib-cjs/component/panels/AutomaticAssignment/useAutoAssignments.js +8 -7
- package/lib-cjs/component/panels/InformationPanel.js +51 -55
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +1 -1
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +4 -4
- package/lib-cjs/component/panels/MoleculesPanel/Utilities.js +6 -6
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +16 -17
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +1 -1
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.js +1 -1
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +18 -17
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +2 -2
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +1 -1
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/RangesTable.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +1 -3
- package/lib-cjs/component/panels/RangesPanel/TableColumns/CouplingColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/hooks/useEditRangeModal.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/hooks/useMapRanges.js +8 -8
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListItem.js +6 -6
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListPanel.js +3 -3
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +6 -6
- package/lib-cjs/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +2 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +2 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +13 -17
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +16 -17
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +20 -21
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +12 -12
- package/lib-cjs/component/panels/SummaryPanel/SetShiftTolerancesModal.js +1 -5
- package/lib-cjs/component/panels/SummaryPanel/utilities/Utilities.js +105 -94
- package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +8 -8
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +5 -4
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +20 -5
- package/lib-cjs/component/panels/extra/preferences/ColumnsHelper.js +5 -2
- package/lib-cjs/component/panels/extra/utilities/MultiplicityUtilities.js +2 -2
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +1 -1
- package/lib-cjs/component/reducer/IgnoreActions.js +3 -3
- package/lib-cjs/component/reducer/Reducer.js +11 -10
- package/lib-cjs/component/reducer/actions/CorrelationsActions.js +4 -4
- package/lib-cjs/component/reducer/actions/DomainActions.js +49 -67
- package/lib-cjs/component/reducer/actions/FiltersActions.js +3 -3
- package/lib-cjs/component/reducer/actions/HistoryActions.js +5 -5
- package/lib-cjs/component/reducer/actions/LoadActions.js +12 -0
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +18 -37
- package/lib-cjs/component/reducer/actions/RangesActions.js +14 -12
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +9 -3
- package/lib-cjs/component/reducer/actions/ToolsActions.js +20 -35
- package/lib-cjs/component/reducer/actions/ZonesActions.js +2 -2
- package/lib-cjs/component/reducer/core/Constants.js +1 -1
- package/lib-cjs/component/reducer/helper/GetClosestNumber.js +2 -1
- package/lib-cjs/component/reducer/helper/Zoom1DManager.js +11 -10
- package/lib-cjs/component/reducer/helper/getSpectrum.js +3 -5
- package/lib-cjs/component/reducer/helper/getStrongestPeak.js +2 -3
- package/lib-cjs/component/reducer/preferences/actions/removeWorkspace.js +3 -10
- package/lib-cjs/component/reducer/preferences/actions/setPreferences.js +5 -9
- package/lib-cjs/component/reducer/preferences/utilities/mapNucleiFormatting.js +7 -5
- package/lib-cjs/component/tool/BrushX.js +3 -3
- package/lib-cjs/component/tool/BrushXY.js +5 -5
- package/lib-cjs/component/tool/CrossLinePointer.js +3 -3
- package/lib-cjs/component/toolbar/BasicToolBar.js +1 -1
- package/lib-cjs/component/utility/Evaluate.js +2 -2
- package/lib-cjs/component/utility/FileUtility.js +11 -29
- package/lib-cjs/component/utility/GroupByInfoKey.js +11 -13
- package/lib-cjs/component/utility/PathBuilder.js +1 -1
- package/lib-cjs/component/utility/PreferencesHelper.js +2 -3
- package/lib-cjs/component/utility/{Export.js → export.js} +77 -79
- package/lib-cjs/component/utility/formatNumber.js +5 -4
- package/lib-cjs/data/Filters.js +17 -33
- package/lib-cjs/data/FiltersManager.js +4 -3
- package/lib-cjs/data/PredictionManager.js +8 -10
- package/lib-cjs/data/SpectraManager.js +26 -62
- package/lib-cjs/data/data1d/MultipleAnalysis.js +74 -70
- package/lib-cjs/data/data1d/Spectrum1D/SumManager.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/generateJGraphData.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/index.js +25 -25
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +6 -5
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateRelatives.js +8 -10
- package/lib-cjs/data/data1d/Spectrum1D/peaks/lookupPeak.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/peaks/optimizePeaks.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/addRange.js +3 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRange.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/mapRanges.js +6 -7
- package/lib-cjs/data/data1d/database.js +45 -28
- package/lib-cjs/data/data1d/filter1d/apodization.js +2 -1
- package/lib-cjs/data/data1d/filter1d/fft.js +23 -6
- package/lib-cjs/data/data1d/filter1d/phaseCorrection.js +2 -2
- package/lib-cjs/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +1 -1
- package/lib-cjs/data/data1d/filter1d/zeroFilling.js +1 -1
- package/lib-cjs/data/data2d/Processing2D.js +7 -18
- package/lib-cjs/data/data2d/Spectrum2D/contours.js +138 -0
- package/lib-cjs/data/data2d/Spectrum2D/index.js +11 -11
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +3 -4
- package/lib-cjs/data/data2d/Spectrum2D/shift/getShift.js +4 -5
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZones.js +11 -8
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZonesManual.js +1 -1
- package/lib-cjs/data/data2d/Spectrum2D/zones/getDetectionZones.js +1 -2
- package/lib-cjs/data/molecules/MoleculeManager.js +1 -1
- package/lib-cjs/data/utilities/RangeUtilities.js +13 -9
- package/lib-cjs/data/utilities/ZoneUtilities.js +17 -13
- package/lib-cjs/data/utilities/checkModifierKeyActivated.js +1 -2
- package/lib-cjs/data/utilities/generateChar.js +8 -6
- package/lib-cjs/data/utilities/getAtom.js +1 -1
- package/lib-cjs/data/utilities/getAtomsFromMF.js +2 -2
- package/lib-cjs/data/utilities/getColor.js +3 -3
- package/lib-cjs/data/utilities/getSum.js +6 -3
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +30 -26
- package/lib/component/1d/IntegralResizable.js +0 -72
- package/lib/component/elements/popup/helpers.d.ts +0 -1
- package/lib/component/elements/popup/helpers.js +0 -9
- package/lib/component/panels/RangesPanel/TableColumns/format.d.ts +0 -1
- package/lib/component/panels/RangesPanel/TableColumns/format.js +0 -8
- package/lib/data/data1d/Data1DManager.d.ts +0 -3
- package/lib/data/data1d/Data1DManager.js +0 -98
- package/lib/data/data2d/Data2DManager.d.ts +0 -3
- package/lib/data/data2d/Data2DManager.js +0 -34
- package/lib/data/types/data2d/Contour.d.ts +0 -4
- package/lib/data/types/data2d/Contour.js +0 -1
- package/lib/data/types/data2d/Contours.d.ts +0 -2
- package/lib/data/types/data2d/Contours.js +0 -1
- package/lib-cjs/component/1d/IntegralResizable.js +0 -77
- package/lib-cjs/component/elements/popup/helpers.js +0 -13
- package/lib-cjs/component/panels/RangesPanel/TableColumns/format.js +0 -14
- package/lib-cjs/data/data1d/Data1DManager.js +0 -104
- package/lib-cjs/data/data2d/Data2DManager.js +0 -40
- package/lib-cjs/data/types/data2d/Contour.js +0 -2
- package/lib-cjs/data/types/data2d/Contours.js +0 -2
|
@@ -22,18 +22,17 @@ function AdditionalColumnHeader({ spectraData, correlationsData, correlation, on
|
|
|
22
22
|
if (correlation.pseudo === true) {
|
|
23
23
|
return [];
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
return correlation.link.flatMap((link) => {
|
|
26
|
+
const ids = [];
|
|
27
27
|
if (link.pseudo === false) {
|
|
28
|
-
ids.push(link.signal.id);
|
|
29
|
-
ids.push((0, Concatenation_1.buildID)(link.signal.id, 'Crosshair_X'));
|
|
28
|
+
ids.push(link.signal.id, (0, Concatenation_1.buildID)(link.signal.id, 'Crosshair_X'));
|
|
30
29
|
const _id = (0, FindUtilities_1.findRangeOrZoneID)(spectraData, link.experimentID, link.signal.id, true);
|
|
31
30
|
if (_id) {
|
|
32
31
|
ids.push(_id);
|
|
33
32
|
}
|
|
34
33
|
}
|
|
34
|
+
return ids;
|
|
35
35
|
});
|
|
36
|
-
return ids;
|
|
37
36
|
}, [correlation, spectraData]);
|
|
38
37
|
const highlightAdditionalColumn = (0, highlight_1.useHighlight)(highlightIDsAdditionalColumn);
|
|
39
38
|
const mouseEnterHandler = (0, react_1.useCallback)((event) => {
|
|
@@ -46,26 +45,26 @@ function AdditionalColumnHeader({ spectraData, correlationsData, correlation, on
|
|
|
46
45
|
}, [highlightAdditionalColumn]);
|
|
47
46
|
const isInView = (0, useInView_1.default)({ correlation });
|
|
48
47
|
const tableHeaderProps = (0, react_1.useMemo)(() => {
|
|
48
|
+
const title = [
|
|
49
|
+
...new Set(correlation.link
|
|
50
|
+
.map((link) => {
|
|
51
|
+
if (link.pseudo === false) {
|
|
52
|
+
return link.experimentType.toUpperCase();
|
|
53
|
+
}
|
|
54
|
+
return undefined;
|
|
55
|
+
})
|
|
56
|
+
.sort()),
|
|
57
|
+
].join('/');
|
|
49
58
|
return {
|
|
50
59
|
style: {
|
|
51
|
-
|
|
60
|
+
color: (0, Utilities_1.getLabelColor)(correlationsData, correlation) || undefined,
|
|
52
61
|
backgroundColor: highlightAdditionalColumn.isActive
|
|
53
62
|
? '#ff6f0057'
|
|
54
63
|
: isInView
|
|
55
64
|
? '#f5f5dc'
|
|
56
65
|
: 'inherit',
|
|
57
66
|
},
|
|
58
|
-
title: correlation.pseudo === false &&
|
|
59
|
-
correlation.link
|
|
60
|
-
.reduce((arr, link) => {
|
|
61
|
-
if (link.pseudo === false &&
|
|
62
|
-
!arr.includes(link.experimentType.toUpperCase())) {
|
|
63
|
-
arr.push(link.experimentType.toUpperCase());
|
|
64
|
-
}
|
|
65
|
-
return arr;
|
|
66
|
-
}, [])
|
|
67
|
-
.sort()
|
|
68
|
-
.join('/'),
|
|
67
|
+
title: correlation.pseudo === false && title,
|
|
69
68
|
onMouseEnter: mouseEnterHandler,
|
|
70
69
|
onMouseLeave: mouseLeaveHandler,
|
|
71
70
|
};
|
|
@@ -23,18 +23,17 @@ function CorrelationTableRow({ additionalColumnData, correlations, correlation,
|
|
|
23
23
|
if (correlation.pseudo === true) {
|
|
24
24
|
return [];
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
return correlation.link.flatMap((link) => {
|
|
27
|
+
const ids = [];
|
|
28
28
|
if (link.pseudo === false) {
|
|
29
|
-
ids.push(link.signal.id);
|
|
30
|
-
ids.push((0, Concatenation_1.buildID)(link.signal.id, 'Crosshair_Y'));
|
|
29
|
+
ids.push(link.signal.id, (0, Concatenation_1.buildID)(link.signal.id, 'Crosshair_Y'));
|
|
31
30
|
const _id = (0, FindUtilities_1.findRangeOrZoneID)(spectraData, link.experimentID, link.signal.id, true);
|
|
32
31
|
if (_id) {
|
|
33
32
|
ids.push(_id);
|
|
34
33
|
}
|
|
35
34
|
}
|
|
35
|
+
return ids;
|
|
36
36
|
});
|
|
37
|
-
return ids;
|
|
38
37
|
}, [correlation, spectraData]);
|
|
39
38
|
const highlightRow = (0, highlight_1.useHighlight)(highlightIDsRow);
|
|
40
39
|
const onSaveEquivalencesHandler = (0, react_1.useCallback)((e) => {
|
|
@@ -50,8 +49,8 @@ function CorrelationTableRow({ additionalColumnData, correlations, correlation,
|
|
|
50
49
|
const additionalColumnFields = (0, react_1.useMemo)(() => {
|
|
51
50
|
return additionalColumnData.map((_correlation) => {
|
|
52
51
|
const commonLinks = [];
|
|
53
|
-
correlation.link
|
|
54
|
-
_correlation.link
|
|
52
|
+
for (const link of correlation.link) {
|
|
53
|
+
for (const _link of _correlation.link) {
|
|
55
54
|
if (link.axis !== _link.axis &&
|
|
56
55
|
link.experimentID === _link.experimentID &&
|
|
57
56
|
link.signal.id === _link.signal.id &&
|
|
@@ -67,8 +66,8 @@ function CorrelationTableRow({ additionalColumnData, correlations, correlation,
|
|
|
67
66
|
id: `${_link.id}_${link.id}`,
|
|
68
67
|
}));
|
|
69
68
|
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
72
71
|
return ((0, jsx_runtime_1.jsx)(AdditionalColumnField_1.default, { rowCorrelation: correlation, columnCorrelation: _correlation, commonLinks: commonLinks, correlations: correlations, spectraData: spectraData, onEdit: onEditCorrelationTableCellHandler }, `addColData_${correlation.id}_${_correlation.id}`));
|
|
73
72
|
});
|
|
74
73
|
}, [
|
|
@@ -95,6 +94,16 @@ function CorrelationTableRow({ additionalColumnData, correlations, correlation,
|
|
|
95
94
|
}, [highlightRow]);
|
|
96
95
|
const isInView = (0, useInView_1.default)({ correlation });
|
|
97
96
|
const tableDataProps = (0, react_1.useMemo)(() => {
|
|
97
|
+
const title = [
|
|
98
|
+
...new Set(correlation.link
|
|
99
|
+
.map((link) => {
|
|
100
|
+
if (link.pseudo === false) {
|
|
101
|
+
return link.experimentType.toUpperCase();
|
|
102
|
+
}
|
|
103
|
+
return undefined;
|
|
104
|
+
})
|
|
105
|
+
.sort()),
|
|
106
|
+
].join('/');
|
|
98
107
|
return {
|
|
99
108
|
style: {
|
|
100
109
|
...styleRow,
|
|
@@ -104,17 +113,7 @@ function CorrelationTableRow({ additionalColumnData, correlations, correlation,
|
|
|
104
113
|
? '#f5f5dc'
|
|
105
114
|
: 'inherit',
|
|
106
115
|
},
|
|
107
|
-
title: correlation.pseudo === false &&
|
|
108
|
-
correlation.link
|
|
109
|
-
.reduce((arr, link) => {
|
|
110
|
-
if (link.pseudo === false &&
|
|
111
|
-
!arr.includes(link.experimentType.toUpperCase())) {
|
|
112
|
-
arr.push(link.experimentType.toUpperCase());
|
|
113
|
-
}
|
|
114
|
-
return arr;
|
|
115
|
-
}, [])
|
|
116
|
-
.sort()
|
|
117
|
-
.join('/'),
|
|
116
|
+
title: correlation.pseudo === false && title,
|
|
118
117
|
onMouseEnter: mouseEnterHandler,
|
|
119
118
|
onMouseLeave: mouseLeaveHandler,
|
|
120
119
|
};
|
|
@@ -176,7 +175,7 @@ function CorrelationTableRow({ additionalColumnData, correlations, correlation,
|
|
|
176
175
|
contextRef.current.handleContextMenu(e);
|
|
177
176
|
}, [contextRef]);
|
|
178
177
|
const { title, ...otherTableDataProps } = tableDataProps;
|
|
179
|
-
const t =
|
|
178
|
+
const t = title || '';
|
|
180
179
|
return ((0, jsx_runtime_1.jsxs)("tr", { style: styleRow, children: [(0, jsx_runtime_1.jsxs)("td", { title: t, ...{
|
|
181
180
|
...otherTableDataProps,
|
|
182
181
|
style: { ...tableDataProps.style, styleLabel },
|
|
@@ -40,24 +40,24 @@ const moveLinkStyles = (0, react_1.css) `
|
|
|
40
40
|
background-color: gray;
|
|
41
41
|
}
|
|
42
42
|
`;
|
|
43
|
+
function getCorrelationLabel(correlation) {
|
|
44
|
+
const delta = (0, nmr_correlation_1.getCorrelationDelta)(correlation);
|
|
45
|
+
return `${delta ? delta.toFixed(2) : '?'}`;
|
|
46
|
+
}
|
|
43
47
|
function MoveLink({ correlationDim1, correlationDim2, link, correlations, onEdit, }) {
|
|
44
48
|
const [selectedCorrelationIdDim1, setSelectedCorrelationIdDim1] = (0, react_2.useState)(correlationDim1.id);
|
|
45
49
|
const [selectedCorrelationIdDim2, setSelectedCorrelationIdDim2] = (0, react_2.useState)(correlationDim2?.id || undefined);
|
|
46
|
-
function getCorrelationLabel(correlation) {
|
|
47
|
-
const delta = (0, nmr_correlation_1.getCorrelationDelta)(correlation);
|
|
48
|
-
return `${delta ? delta.toFixed(2) : '?'}`;
|
|
49
|
-
}
|
|
50
50
|
const getSelection = (0, react_2.useCallback)((correlation, dim) => {
|
|
51
|
-
const selectionData =
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
const selectionData = [];
|
|
52
|
+
for (const correlation of correlations) {
|
|
53
|
+
if (correlation.pseudo === false &&
|
|
54
|
+
correlation.atomType === link.atomType[dim]) {
|
|
55
|
+
selectionData.push({
|
|
56
|
+
value: correlation.id,
|
|
57
|
+
label: `${correlation.label.origin}: ${getCorrelationLabel(correlation)}`,
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
|
-
|
|
60
|
-
}, []);
|
|
60
|
+
}
|
|
61
61
|
selectionData.push({
|
|
62
62
|
key: 'new',
|
|
63
63
|
value: 'new',
|
|
@@ -80,11 +80,7 @@ function SetShiftToleranceModal({ onClose, onSave, previousTolerance, }) {
|
|
|
80
80
|
(0, react_2.useEffect)(() => {
|
|
81
81
|
if (previousTolerance) {
|
|
82
82
|
setTolerance(previousTolerance);
|
|
83
|
-
|
|
84
|
-
Object.keys(previousTolerance).forEach((atomType) => {
|
|
85
|
-
_isValid[atomType] = true;
|
|
86
|
-
});
|
|
87
|
-
setIsValid(_isValid);
|
|
83
|
+
setIsValid(Object.fromEntries(Object.keys(previousTolerance).map((atomType) => [atomType, true])));
|
|
88
84
|
}
|
|
89
85
|
else {
|
|
90
86
|
setTolerance(undefined);
|
|
@@ -59,26 +59,36 @@ function findSignalMatch2D(spectrum, link, factor, xDomain0, xDomain1, yDomain0,
|
|
|
59
59
|
exports.findSignalMatch2D = findSignalMatch2D;
|
|
60
60
|
function getAbbreviation(link) {
|
|
61
61
|
let abbreviation = 'X';
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
62
|
+
switch (link.experimentType) {
|
|
63
|
+
case 'hsqc':
|
|
64
|
+
case 'hmqc': {
|
|
65
|
+
abbreviation =
|
|
66
|
+
!link.signal || link.signal.sign === 0
|
|
67
|
+
? 'S'
|
|
68
|
+
: `S${link.signal.sign === 1 ? '+' : '-'}`;
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
case 'hmbc':
|
|
72
|
+
case 'cosy':
|
|
73
|
+
case 'tocsy': {
|
|
74
|
+
abbreviation = 'M';
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
case 'noesy':
|
|
78
|
+
case 'roesy': {
|
|
79
|
+
abbreviation = 'NOE';
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
case 'inadequate': {
|
|
83
|
+
abbreviation = 'I';
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
case 'adequate': {
|
|
87
|
+
abbreviation = 'A';
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
// TODO: handle default?
|
|
91
|
+
// No default
|
|
82
92
|
}
|
|
83
93
|
const pathLength = link.signal.j?.pathLength;
|
|
84
94
|
if (pathLength) {
|
|
@@ -137,89 +147,90 @@ function getEditedCorrelations({ correlationDim1, correlationDim2, selectedCorre
|
|
|
137
147
|
const linkDim = (0, nmr_correlation_1.getLinkDim)(link);
|
|
138
148
|
const editedCorrelations = [];
|
|
139
149
|
const buildCorrelationDataOptions = {};
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
150
|
+
switch (action) {
|
|
151
|
+
case 'move': {
|
|
152
|
+
if (linkDim === 1) {
|
|
153
|
+
// modify current cell correlation
|
|
154
|
+
const _correlationDim1 = cloneCorrelationAndEditLink(correlationDim1, link, 'x', 'remove');
|
|
155
|
+
// modify selected correlation
|
|
156
|
+
let newCorrelationDim1;
|
|
157
|
+
if (selectedCorrelationDim1) {
|
|
158
|
+
newCorrelationDim1 = cloneCorrelationAndEditLink(hasChangedDim1 ? selectedCorrelationDim1 : _correlationDim1, link, 'x', 'add');
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
newCorrelationDim1 = (0, nmr_correlation_1.buildCorrelation)({
|
|
162
|
+
atomType: correlationDim1.atomType,
|
|
163
|
+
link: [buildNewLink1D(link)],
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
editedCorrelations.push(_correlationDim1, newCorrelationDim1);
|
|
167
|
+
buildCorrelationDataOptions.skipDataUpdate = true;
|
|
148
168
|
}
|
|
149
|
-
else {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
169
|
+
else if (linkDim === 2) {
|
|
170
|
+
// modify current cell correlations
|
|
171
|
+
const _correlationDim1 = cloneCorrelationAndEditLink(correlationDim1, link, 'x', 'remove');
|
|
172
|
+
editedCorrelations.push(_correlationDim1);
|
|
173
|
+
const _correlationDim2 = cloneCorrelationAndEditLink(correlationDim2, link, 'y', 'remove');
|
|
174
|
+
editedCorrelations.push(_correlationDim2);
|
|
175
|
+
// modify selected correlations
|
|
176
|
+
if (selectedCorrelationDim1 && selectedCorrelationDim2) {
|
|
177
|
+
editedCorrelations.push(cloneCorrelationAndEditLink(hasChangedDim1 ? selectedCorrelationDim1 : _correlationDim1, link, 'x', 'add'), cloneCorrelationAndEditLink(hasChangedDim2 ? selectedCorrelationDim2 : _correlationDim2, link, 'y', 'add'));
|
|
178
|
+
}
|
|
179
|
+
else if (selectedCorrelationDim1 &&
|
|
180
|
+
selectedCorrelationIdDim2 === 'new') {
|
|
181
|
+
editedCorrelations.push(cloneCorrelationAndEditLink(hasChangedDim1 ? selectedCorrelationDim1 : _correlationDim1, link, 'x', 'add'), (0, nmr_correlation_1.buildCorrelation)({
|
|
182
|
+
atomType: correlationDim2.atomType,
|
|
183
|
+
link: [buildNewLink2D(link, 'y')],
|
|
184
|
+
}));
|
|
185
|
+
}
|
|
186
|
+
else if (selectedCorrelationIdDim1 === 'new' &&
|
|
187
|
+
selectedCorrelationDim2) {
|
|
188
|
+
editedCorrelations.push((0, nmr_correlation_1.buildCorrelation)({
|
|
189
|
+
atomType: correlationDim1.atomType,
|
|
190
|
+
link: [buildNewLink2D(link, 'x')],
|
|
191
|
+
}), cloneCorrelationAndEditLink(hasChangedDim2 ? selectedCorrelationDim2 : _correlationDim2, link, 'y', 'add'));
|
|
192
|
+
}
|
|
193
|
+
else if (selectedCorrelationIdDim1 === 'new' &&
|
|
194
|
+
selectedCorrelationIdDim2 === 'new') {
|
|
195
|
+
editedCorrelations.push((0, nmr_correlation_1.buildCorrelation)({
|
|
196
|
+
atomType: correlationDim1.atomType,
|
|
197
|
+
link: [buildNewLink2D(link, 'x')],
|
|
198
|
+
}), (0, nmr_correlation_1.buildCorrelation)({
|
|
199
|
+
atomType: correlationDim2.atomType,
|
|
200
|
+
link: [buildNewLink2D(link, 'y')],
|
|
201
|
+
}));
|
|
202
|
+
}
|
|
203
|
+
buildCorrelationDataOptions.skipDataUpdate = true;
|
|
154
204
|
}
|
|
155
|
-
|
|
156
|
-
buildCorrelationDataOptions.skipDataUpdate = true;
|
|
205
|
+
break;
|
|
157
206
|
}
|
|
158
|
-
|
|
159
|
-
// modify current cell correlations
|
|
207
|
+
case 'remove': {
|
|
160
208
|
const _correlationDim1 = cloneCorrelationAndEditLink(correlationDim1, link, 'x', 'remove');
|
|
161
209
|
editedCorrelations.push(_correlationDim1);
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
if (selectedCorrelationDim1 && selectedCorrelationDim2) {
|
|
166
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(hasChangedDim1 ? selectedCorrelationDim1 : _correlationDim1, link, 'x', 'add'));
|
|
167
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(hasChangedDim2 ? selectedCorrelationDim2 : _correlationDim2, link, 'y', 'add'));
|
|
210
|
+
if ((0, nmr_correlation_1.getLinkDim)(link) === 2) {
|
|
211
|
+
const _correlationDim2 = cloneCorrelationAndEditLink(correlationDim2, link, 'y', 'remove');
|
|
212
|
+
editedCorrelations.push(_correlationDim2);
|
|
168
213
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
case 'unmove': {
|
|
217
|
+
if (linkDim === 1) {
|
|
218
|
+
if (selectedCorrelationDim1) {
|
|
219
|
+
editedCorrelations.push(cloneCorrelationAndEditLink(selectedCorrelationDim1, link, 'x', 'unmove'));
|
|
220
|
+
}
|
|
176
221
|
}
|
|
177
|
-
else if (
|
|
222
|
+
else if (linkDim === 2 &&
|
|
223
|
+
selectedCorrelationDim1 &&
|
|
178
224
|
selectedCorrelationDim2) {
|
|
179
|
-
editedCorrelations.push((
|
|
180
|
-
atomType: correlationDim1.atomType,
|
|
181
|
-
link: [buildNewLink2D(link, 'x')],
|
|
182
|
-
}));
|
|
183
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(hasChangedDim2 ? selectedCorrelationDim2 : _correlationDim2, link, 'y', 'add'));
|
|
184
|
-
}
|
|
185
|
-
else if (selectedCorrelationIdDim1 === 'new' &&
|
|
186
|
-
selectedCorrelationIdDim2 === 'new') {
|
|
187
|
-
editedCorrelations.push((0, nmr_correlation_1.buildCorrelation)({
|
|
188
|
-
atomType: correlationDim1.atomType,
|
|
189
|
-
link: [buildNewLink2D(link, 'x')],
|
|
190
|
-
}));
|
|
191
|
-
editedCorrelations.push((0, nmr_correlation_1.buildCorrelation)({
|
|
192
|
-
atomType: correlationDim2.atomType,
|
|
193
|
-
link: [buildNewLink2D(link, 'y')],
|
|
194
|
-
}));
|
|
225
|
+
editedCorrelations.push(cloneCorrelationAndEditLink(selectedCorrelationDim1, link, 'x', 'unmove'), cloneCorrelationAndEditLink(selectedCorrelationDim2, link, 'y', 'unmove'));
|
|
195
226
|
}
|
|
196
|
-
|
|
227
|
+
break;
|
|
197
228
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
editedCorrelations.push(_correlationDim1);
|
|
202
|
-
if ((0, nmr_correlation_1.getLinkDim)(link) === 2) {
|
|
203
|
-
const _correlationDim2 = cloneCorrelationAndEditLink(correlationDim2, link, 'y', 'remove');
|
|
204
|
-
editedCorrelations.push(_correlationDim2);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
else if (action === 'unmove') {
|
|
208
|
-
if (linkDim === 1) {
|
|
209
|
-
if (selectedCorrelationDim1) {
|
|
210
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(selectedCorrelationDim1, link, 'x', 'unmove'));
|
|
211
|
-
}
|
|
229
|
+
case 'setPathLength': {
|
|
230
|
+
editedCorrelations.push(cloneCorrelationAndSetPathLength(correlationDim1, link, 'x'), cloneCorrelationAndSetPathLength(correlationDim2, link, 'y'));
|
|
231
|
+
break;
|
|
212
232
|
}
|
|
213
|
-
|
|
214
|
-
if (selectedCorrelationDim1 && selectedCorrelationDim2) {
|
|
215
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(selectedCorrelationDim1, link, 'x', 'unmove'));
|
|
216
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(selectedCorrelationDim2, link, 'y', 'unmove'));
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
else if (action === 'setPathLength') {
|
|
221
|
-
editedCorrelations.push(cloneCorrelationAndSetPathLength(correlationDim1, link, 'x'));
|
|
222
|
-
editedCorrelations.push(cloneCorrelationAndSetPathLength(correlationDim2, link, 'y'));
|
|
233
|
+
// No default
|
|
223
234
|
}
|
|
224
235
|
return { editedCorrelations, buildCorrelationDataOptions };
|
|
225
236
|
}
|
|
@@ -262,13 +273,13 @@ function convertValuesString(valuesString, key) {
|
|
|
262
273
|
.join(',');
|
|
263
274
|
valuesString = valuesString.replaceAll('sp', '');
|
|
264
275
|
let values = [];
|
|
265
|
-
const regex = /^(
|
|
276
|
+
const regex = /^(?:\d,{0,1})+$/g;
|
|
266
277
|
if (regex.test(valuesString)) {
|
|
267
278
|
// allow digits followed by optional comma only
|
|
268
279
|
values = valuesString
|
|
269
280
|
.split(',')
|
|
270
281
|
.filter((char) => char.length > 0)
|
|
271
|
-
.map(
|
|
282
|
+
.map(Number);
|
|
272
283
|
}
|
|
273
284
|
// allow key specific values only
|
|
274
285
|
// protonsCount: [0, 1, 2, 3, ...], hybridization: [1, 2, 3]
|
|
@@ -67,10 +67,10 @@ function ZonesTable({ tableData, onUnlink, context, nuclei, experiment, }) {
|
|
|
67
67
|
}
|
|
68
68
|
}, [contextRef]);
|
|
69
69
|
const data = (0, react_2.useMemo)(() => {
|
|
70
|
-
const
|
|
71
|
-
tableData.
|
|
70
|
+
const data = [];
|
|
71
|
+
for (const [i, zone] of tableData.entries()) {
|
|
72
72
|
if (zone.signals.length === 1) {
|
|
73
|
-
|
|
73
|
+
data.push({
|
|
74
74
|
...zone,
|
|
75
75
|
tableMetaInfo: {
|
|
76
76
|
...zone.tableMetaInfo,
|
|
@@ -84,7 +84,7 @@ function ZonesTable({ tableData, onUnlink, context, nuclei, experiment, }) {
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
else if (zone.signals.length > 1) {
|
|
87
|
-
zone.signals.
|
|
87
|
+
for (const [j, signal] of zone.signals.entries()) {
|
|
88
88
|
let hide = false;
|
|
89
89
|
let rowSpan = null;
|
|
90
90
|
if (j < zone.signals.length - 1) {
|
|
@@ -98,7 +98,7 @@ function ZonesTable({ tableData, onUnlink, context, nuclei, experiment, }) {
|
|
|
98
98
|
else {
|
|
99
99
|
hide = true;
|
|
100
100
|
}
|
|
101
|
-
|
|
101
|
+
data.push({
|
|
102
102
|
...zone,
|
|
103
103
|
tableMetaInfo: {
|
|
104
104
|
...zone.tableMetaInfo,
|
|
@@ -111,10 +111,10 @@ function ZonesTable({ tableData, onUnlink, context, nuclei, experiment, }) {
|
|
|
111
111
|
experiment,
|
|
112
112
|
},
|
|
113
113
|
});
|
|
114
|
-
}
|
|
114
|
+
}
|
|
115
115
|
}
|
|
116
|
-
}
|
|
117
|
-
return
|
|
116
|
+
}
|
|
117
|
+
return data;
|
|
118
118
|
}, [experiment, nuclei, tableData]);
|
|
119
119
|
const { items: sortedData, isSortedDesc, onSort } = (0, useTableSortBy_1.default)(data);
|
|
120
120
|
const { deltaPPM: deltaX } = (0, usePanelPreferences_1.usePanelPreferences)('zones', nuclei[0]);
|
|
@@ -148,7 +148,8 @@ function DatabasePanelInner({ nucleus, selectedTool, databases, defaultDatabase,
|
|
|
148
148
|
baseURL: url,
|
|
149
149
|
})));
|
|
150
150
|
}
|
|
151
|
-
catch (
|
|
151
|
+
catch (error) {
|
|
152
|
+
reportError(error);
|
|
152
153
|
alert.error(`Failed to load ${url}`);
|
|
153
154
|
}
|
|
154
155
|
finally {
|
|
@@ -197,7 +198,7 @@ function DatabasePanelInner({ nucleus, selectedTool, databases, defaultDatabase,
|
|
|
197
198
|
payload: { file: result, ranges, jcampURL },
|
|
198
199
|
});
|
|
199
200
|
}
|
|
200
|
-
catch
|
|
201
|
+
catch {
|
|
201
202
|
alert.error(`Failed to load Jcamp`);
|
|
202
203
|
}
|
|
203
204
|
finally {
|
|
@@ -255,7 +256,7 @@ function DatabasePanelInner({ nucleus, selectedTool, databases, defaultDatabase,
|
|
|
255
256
|
fontSize: '14px',
|
|
256
257
|
} })) : ((0, jsx_runtime_1.jsx)(bs_1.BsHexagonFill, { style: {
|
|
257
258
|
fontSize: '14px',
|
|
258
|
-
} })) })] })), isFlipped && ((0, jsx_runtime_1.jsx)(PreferencesHeader_1.default, { onSave: saveSettingHandler, onClose: settingsPanelHandler })), (0, jsx_runtime_1.jsx)("div", { className: "inner-container", children: !isFlipped ? (tableData && tableData.length > 0 ? ((0, jsx_runtime_1.jsx)(DatabaseTable_1.default, { data: tableData, onAdd: resurrectHandler })) : ((0, jsx_runtime_1.jsx)(NoTableData_1.default, { text: databases && databases?.length > 0
|
|
259
|
+
} })) })] })), isFlipped && ((0, jsx_runtime_1.jsx)(PreferencesHeader_1.default, { onSave: saveSettingHandler, onClose: settingsPanelHandler })), (0, jsx_runtime_1.jsx)("div", { className: "inner-container", children: !isFlipped ? (tableData && tableData.length > 0 ? ((0, jsx_runtime_1.jsx)(DatabaseTable_1.default, { data: tableData, totalCount: result.data.length, onAdd: resurrectHandler })) : ((0, jsx_runtime_1.jsx)(NoTableData_1.default, { text: databases && databases?.length > 0
|
|
259
260
|
? 'Please select a database'
|
|
260
261
|
: 'Please add databases URL in the general preferences' }))) : ((0, jsx_runtime_1.jsx)(DatabasePreferences_1.default, { ref: settingRef })) })] }));
|
|
261
262
|
}
|
|
@@ -276,7 +277,7 @@ function mapSolventsToSelect(solvents) {
|
|
|
276
277
|
label: key,
|
|
277
278
|
value: key,
|
|
278
279
|
};
|
|
279
|
-
}
|
|
280
|
+
});
|
|
280
281
|
result.unshift({ label: 'All', value: '-1' });
|
|
281
282
|
return result;
|
|
282
283
|
}
|
|
@@ -40,7 +40,9 @@ const databaseTableColumns = (databasePreferences) => [
|
|
|
40
40
|
Header: 'From - To',
|
|
41
41
|
accessor: (row) => {
|
|
42
42
|
const rangeFormat = databasePreferences.range.format;
|
|
43
|
-
return
|
|
43
|
+
return row?.from && row?.to
|
|
44
|
+
? `${(0, formatNumber_1.formatNumber)(row.from, rangeFormat)} - ${(0, formatNumber_1.formatNumber)(row.to, rangeFormat)}`
|
|
45
|
+
: '';
|
|
44
46
|
},
|
|
45
47
|
enableRowSpan: true,
|
|
46
48
|
},
|
|
@@ -48,7 +50,18 @@ const databaseTableColumns = (databasePreferences) => [
|
|
|
48
50
|
showWhen: 'delta.show',
|
|
49
51
|
index: 3,
|
|
50
52
|
Header: 'δ (ppm)',
|
|
51
|
-
|
|
53
|
+
style: overFlowStyle,
|
|
54
|
+
accessor: (row) => {
|
|
55
|
+
if (typeof row.delta === 'string' && !row?.delta) {
|
|
56
|
+
return row.delta
|
|
57
|
+
.split(',')
|
|
58
|
+
.map((value) => (0, formatNumber_1.formatNumber)(value, databasePreferences.delta.format))
|
|
59
|
+
.join(',');
|
|
60
|
+
}
|
|
61
|
+
return row?.delta
|
|
62
|
+
? (0, formatNumber_1.formatNumber)(row.delta, databasePreferences.delta.format)
|
|
63
|
+
: '';
|
|
64
|
+
},
|
|
52
65
|
},
|
|
53
66
|
{
|
|
54
67
|
showWhen: 'showAssignment',
|
|
@@ -66,7 +79,9 @@ const databaseTableColumns = (databasePreferences) => [
|
|
|
66
79
|
showWhen: 'coupling.show',
|
|
67
80
|
index: 6,
|
|
68
81
|
Header: 'J (Hz)',
|
|
69
|
-
accessor: (row) =>
|
|
82
|
+
accessor: (row) => row?.coupling
|
|
83
|
+
? (0, formatNumber_1.formatNumber)(row.coupling, databasePreferences.coupling.format)
|
|
84
|
+
: '',
|
|
70
85
|
style: {
|
|
71
86
|
width: '60px',
|
|
72
87
|
minWidth: '60px',
|
|
@@ -108,7 +123,7 @@ const databaseTableColumns = (databasePreferences) => [
|
|
|
108
123
|
},
|
|
109
124
|
},
|
|
110
125
|
];
|
|
111
|
-
function DatabaseTable({ data, onAdd }) {
|
|
126
|
+
function DatabaseTable({ data, onAdd, totalCount }) {
|
|
112
127
|
const databasePreferences = (0, usePanelPreferences_1.usePanelPreferences)('database');
|
|
113
128
|
const initialColumns = (0, react_1.useMemo)(() => [
|
|
114
129
|
{
|
|
@@ -133,6 +148,6 @@ function DatabaseTable({ data, onAdd }) {
|
|
|
133
148
|
}
|
|
134
149
|
return columns.sort((object1, object2) => object1.index - object2.index);
|
|
135
150
|
}, [databasePreferences, initialColumns]);
|
|
136
|
-
return ((0, jsx_runtime_1.jsx)(ReactTable_1.default, { data: data, columns: tableColumns, highlightedSource: highlight_1.HighlightEventSource.DATABASE, groupKey: "index", approxItemHeight:
|
|
151
|
+
return ((0, jsx_runtime_1.jsx)(ReactTable_1.default, { data: data, columns: tableColumns, highlightedSource: highlight_1.HighlightEventSource.DATABASE, groupKey: "index", approxItemHeight: 23.5, enableVirtualScroll: true, totalCount: totalCount }));
|
|
137
152
|
}
|
|
138
153
|
exports.default = (0, react_1.memo)(DatabaseTable);
|
|
@@ -35,10 +35,13 @@ class ColumnsHelper {
|
|
|
35
35
|
: this.defaultPreference[formatKey];
|
|
36
36
|
const { formatPrefix = '', formatSuffix = '', showPrefixSuffixCallback = () => true, } = options;
|
|
37
37
|
if (showPrefixSuffixCallback(row)) {
|
|
38
|
-
return (0, formatNumber_1.formatNumber)(row.original[columnKey], format,
|
|
38
|
+
return (0, formatNumber_1.formatNumber)(row.original[columnKey], format, {
|
|
39
|
+
prefix: formatPrefix,
|
|
40
|
+
suffix: formatSuffix,
|
|
41
|
+
});
|
|
39
42
|
}
|
|
40
43
|
else {
|
|
41
|
-
return (0, formatNumber_1.formatNumber)(row.original[columnKey], format
|
|
44
|
+
return (0, formatNumber_1.formatNumber)(row.original[columnKey], format);
|
|
42
45
|
}
|
|
43
46
|
});
|
|
44
47
|
}
|
|
@@ -23,9 +23,9 @@ function checkMultiplicity(multiplicity, rejected = []) {
|
|
|
23
23
|
if (multiplicity === undefined || multiplicity.length === 0) {
|
|
24
24
|
return false;
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return multiplicity
|
|
27
27
|
.split('')
|
|
28
|
-
.
|
|
28
|
+
.every((_multiplet) => checkMultiplet(_multiplet, rejected));
|
|
29
29
|
}
|
|
30
30
|
exports.checkMultiplicity = checkMultiplicity;
|
|
31
31
|
function translateMultiplet(multiplet) {
|
|
@@ -95,7 +95,7 @@ function FiltersTableInner({ filters, spectraCounter, selectedTool, activeFilter
|
|
|
95
95
|
}, [activeFilterID, selectedTool]);
|
|
96
96
|
const filtersTableRow = (0, react_1.useMemo)(() => {
|
|
97
97
|
return filters?.map((d, index) => {
|
|
98
|
-
return ((0, jsx_runtime_1.jsxs)(TableRow_1.default, { className: getStyle(d, index), children: [(0, jsx_runtime_1.jsx)(TableCell_1.default, { align: "center", size: 2, onClick: () => filterSnapShotHandler(d.id), children: d.label }), (0, jsx_runtime_1.jsx)(TableCell_1.default, { align: "left", size: 3, children: (0, jsx_runtime_1.jsx)("div", { onClick: (e) => e.stopPropagation(), children: (0, jsx_runtime_1.jsx)(react_inspector_1.ObjectInspector, { data: d.error
|
|
98
|
+
return ((0, jsx_runtime_1.jsxs)(TableRow_1.default, { className: getStyle(d, index), children: [(0, jsx_runtime_1.jsx)(TableCell_1.default, { align: "center", size: 2, onClick: () => filterSnapShotHandler(d.id), children: d.label }), (0, jsx_runtime_1.jsx)(TableCell_1.default, { align: "left", size: 3, children: (0, jsx_runtime_1.jsx)("div", { onClick: (e) => e.stopPropagation(), children: (0, jsx_runtime_1.jsx)(react_inspector_1.ObjectInspector, { data: d.error || d.value }) }) }), (0, jsx_runtime_1.jsxs)(TableCell_1.default, { align: "center", vAlign: "center", size: 1, children: [(0, jsx_runtime_1.jsx)(CheckBox_1.default, { checked: d.flag, onChange: (event) => handelFilterCheck(d.id, event.target.checked) }), d.isDeleteAllow && ((0, jsx_runtime_1.jsx)("button", { className: "btn", type: "button", onClick: () => handelDeleteFilter(d), children: (0, jsx_runtime_1.jsx)(fa_1.FaRegTrashAlt, {}) }))] })] }, d.id));
|
|
99
99
|
});
|
|
100
100
|
}, [
|
|
101
101
|
filterSnapShotHandler,
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
const types = __importStar(require("./types/Types"));
|
|
27
|
-
const ignoreActions = [
|
|
27
|
+
const ignoreActions = new Set([
|
|
28
28
|
types.APPLY_KEY_PREFERENCES,
|
|
29
29
|
types.BRUSH_END,
|
|
30
30
|
types.RESET_DOMAIN,
|
|
@@ -59,9 +59,9 @@ const ignoreActions = [
|
|
|
59
59
|
types.SHOW_MULTIPLICTY_TREES,
|
|
60
60
|
types.SHOW_RANGES_INTEGRALS,
|
|
61
61
|
types.CHANGE_FLOAT_MOLECULE_POSITION,
|
|
62
|
-
];
|
|
62
|
+
]);
|
|
63
63
|
function checkActionType(type) {
|
|
64
|
-
if (!ignoreActions.
|
|
64
|
+
if (!ignoreActions.has(type))
|
|
65
65
|
return true;
|
|
66
66
|
return false;
|
|
67
67
|
}
|