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,16 +4,16 @@ 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 uuid_1 = require("@lukeed/uuid");
|
|
7
8
|
const nmr_correlation_1 = require("nmr-correlation");
|
|
8
9
|
const react_1 = require("react");
|
|
9
10
|
const Concatenation_1 = require("../../../../data/utilities/Concatenation");
|
|
10
11
|
const FindUtilities_1 = require("../../../../data/utilities/FindUtilities");
|
|
11
|
-
const generateID_1 = __importDefault(require("../../../../data/utilities/generateID"));
|
|
12
12
|
const ContextMenu_1 = __importDefault(require("../../../elements/ContextMenu"));
|
|
13
13
|
const Modal_1 = require("../../../elements/popup/Modal");
|
|
14
14
|
const highlight_1 = require("../../../highlight");
|
|
15
|
-
const IsInView_1 = __importDefault(require("../utilities/IsInView"));
|
|
16
15
|
const Utilities_1 = require("../utilities/Utilities");
|
|
16
|
+
const useInView_1 = __importDefault(require("../utilities/useInView"));
|
|
17
17
|
const EditLinkModal_1 = __importDefault(require("./editLink/EditLinkModal"));
|
|
18
18
|
function AdditionalColumnField({ rowCorrelation, columnCorrelation, commonLinks, correlations, spectraData, onEdit, }) {
|
|
19
19
|
const contextRef = (0, react_1.useRef)();
|
|
@@ -54,11 +54,11 @@ function AdditionalColumnField({ rowCorrelation, columnCorrelation, commonLinks,
|
|
|
54
54
|
if (action === 'add') {
|
|
55
55
|
const commonPseudoLink = (0, nmr_correlation_1.buildLink)({
|
|
56
56
|
experimentType: 'hsqc',
|
|
57
|
-
experimentID: (0,
|
|
57
|
+
experimentID: (0, uuid_1.v4)(),
|
|
58
58
|
atomType: [columnCorrelation.atomType, rowCorrelation.atomType],
|
|
59
|
-
id: (0,
|
|
59
|
+
id: (0, uuid_1.v4)(),
|
|
60
60
|
pseudo: true,
|
|
61
|
-
signal: { id: (0,
|
|
61
|
+
signal: { id: (0, uuid_1.v4)(), sign: 0 }, // pseudo signal
|
|
62
62
|
});
|
|
63
63
|
_correlationDim1 = (0, Utilities_1.cloneCorrelationAndEditLink)(columnCorrelation, commonPseudoLink, 'x', 'add');
|
|
64
64
|
_correlationDim2 = (0, Utilities_1.cloneCorrelationAndEditLink)(rowCorrelation, commonPseudoLink, 'y', 'add');
|
|
@@ -141,8 +141,8 @@ function AdditionalColumnField({ rowCorrelation, columnCorrelation, commonLinks,
|
|
|
141
141
|
return arr;
|
|
142
142
|
}, [])
|
|
143
143
|
.join('/'), [commonLinks]);
|
|
144
|
-
const isInViewRow = (0,
|
|
145
|
-
const isInViewColumn = (0,
|
|
144
|
+
const isInViewRow = (0, useInView_1.default)({ correlation: rowCorrelation });
|
|
145
|
+
const isInViewColumn = (0, useInView_1.default)({ correlation: columnCorrelation });
|
|
146
146
|
return ((0, jsx_runtime_1.jsxs)("td", { onContextMenu: (e) => {
|
|
147
147
|
if (contextMenu.length > 0) {
|
|
148
148
|
contextMenuHandler(e);
|
|
@@ -12,8 +12,8 @@ const FindUtilities_1 = require("../../../../data/utilities/FindUtilities");
|
|
|
12
12
|
const ContextMenu_1 = __importDefault(require("../../../elements/ContextMenu"));
|
|
13
13
|
const Modal_1 = require("../../../elements/popup/Modal");
|
|
14
14
|
const highlight_1 = require("../../../highlight");
|
|
15
|
-
const IsInView_1 = __importDefault(require("../utilities/IsInView"));
|
|
16
15
|
const Utilities_1 = require("../utilities/Utilities");
|
|
16
|
+
const useInView_1 = __importDefault(require("../utilities/useInView"));
|
|
17
17
|
const EditLinkModal_1 = __importDefault(require("./editLink/EditLinkModal"));
|
|
18
18
|
function AdditionalColumnHeader({ spectraData, correlationsData, correlation, onEdit, }) {
|
|
19
19
|
const contextRef = (0, react_1.useRef)();
|
|
@@ -44,7 +44,7 @@ function AdditionalColumnHeader({ spectraData, correlationsData, correlation, on
|
|
|
44
44
|
event.currentTarget.blur();
|
|
45
45
|
highlightAdditionalColumn.hide();
|
|
46
46
|
}, [highlightAdditionalColumn]);
|
|
47
|
-
const isInView = (0,
|
|
47
|
+
const isInView = (0, useInView_1.default)({ correlation });
|
|
48
48
|
const tableHeaderProps = (0, react_1.useMemo)(() => {
|
|
49
49
|
return {
|
|
50
50
|
style: {
|
|
@@ -12,8 +12,8 @@ const ContextMenu_1 = __importDefault(require("../../../elements/ContextMenu"));
|
|
|
12
12
|
const EditableColumn_1 = __importDefault(require("../../../elements/EditableColumn"));
|
|
13
13
|
const Modal_1 = require("../../../elements/popup/Modal");
|
|
14
14
|
const highlight_1 = require("../../../highlight");
|
|
15
|
-
const IsInView_1 = __importDefault(require("../utilities/IsInView"));
|
|
16
15
|
const Utilities_1 = require("../utilities/Utilities");
|
|
16
|
+
const useInView_1 = __importDefault(require("../utilities/useInView"));
|
|
17
17
|
const AdditionalColumnField_1 = __importDefault(require("./AdditionalColumnField"));
|
|
18
18
|
const EditLinkModal_1 = __importDefault(require("./editLink/EditLinkModal"));
|
|
19
19
|
function CorrelationTableRow({ additionalColumnData, correlations, correlation, styleRow, styleLabel, onSaveEditEquivalences, onSaveEditNumericValues, onEditCorrelationTableCellHandler, spectraData, }) {
|
|
@@ -93,7 +93,7 @@ function CorrelationTableRow({ additionalColumnData, correlations, correlation,
|
|
|
93
93
|
event.currentTarget.blur();
|
|
94
94
|
highlightRow.hide();
|
|
95
95
|
}, [highlightRow]);
|
|
96
|
-
const isInView = (0,
|
|
96
|
+
const isInView = (0, useInView_1.default)({ correlation });
|
|
97
97
|
const tableDataProps = (0, react_1.useMemo)(() => {
|
|
98
98
|
return {
|
|
99
99
|
style: {
|
|
@@ -52,7 +52,6 @@ function MoveLink({ correlationDim1, correlationDim2, link, correlations, onEdit
|
|
|
52
52
|
if (_correlation.pseudo === false &&
|
|
53
53
|
_correlation.atomType === link.atomType[dim]) {
|
|
54
54
|
arr.push({
|
|
55
|
-
key: _correlation.id,
|
|
56
55
|
value: _correlation.id,
|
|
57
56
|
label: `${_correlation.label.origin}: ${getCorrelationLabel(_correlation)}`,
|
|
58
57
|
});
|
|
@@ -73,7 +72,7 @@ function MoveLink({ correlationDim1, correlationDim2, link, correlations, onEdit
|
|
|
73
72
|
else {
|
|
74
73
|
setSelectedCorrelationIdDim2(selection);
|
|
75
74
|
}
|
|
76
|
-
},
|
|
75
|
+
}, items: selectionData, defaultValue: correlation.id, style: {
|
|
77
76
|
width: 110,
|
|
78
77
|
height: 25,
|
|
79
78
|
margin: 0,
|
|
@@ -117,14 +117,12 @@ function SummaryPanel() {
|
|
|
117
117
|
if ((0, Utilities_1.findSignalMatch2D)(spectrum, firstLink2D, factor, xDomain0, xDomain1, yDomain0, yDomain1)) {
|
|
118
118
|
return true;
|
|
119
119
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
return true;
|
|
127
|
-
}
|
|
120
|
+
// try to find a link which contains the belonging 2D signal in the spectra in view
|
|
121
|
+
else if (correlation.link.some((link) => {
|
|
122
|
+
const spectrum = (0, FindUtilities_1.findSpectrum)(spectraData, link.experimentID, true);
|
|
123
|
+
return (0, Utilities_1.findSignalMatch2D)(spectrum, link, factor, xDomain0, xDomain1, yDomain0, yDomain1);
|
|
124
|
+
})) {
|
|
125
|
+
return true;
|
|
128
126
|
}
|
|
129
127
|
}
|
|
130
128
|
// do not show correlation
|
|
@@ -175,7 +173,6 @@ function SummaryPanel() {
|
|
|
175
173
|
: []);
|
|
176
174
|
return columnTypes.map((columnType) => {
|
|
177
175
|
return {
|
|
178
|
-
key: columnType,
|
|
179
176
|
label: columnType,
|
|
180
177
|
value: columnType,
|
|
181
178
|
};
|
|
@@ -323,7 +320,7 @@ function SummaryPanel() {
|
|
|
323
320
|
else {
|
|
324
321
|
setShowProtonsAsRows(false);
|
|
325
322
|
}
|
|
326
|
-
},
|
|
323
|
+
}, items: additionalColumnTypes, defaultValue: selectedAdditionalColumnsAtomType, style: {
|
|
327
324
|
fontSize: '12px',
|
|
328
325
|
width: '70px',
|
|
329
326
|
height: '18px',
|
|
@@ -330,14 +330,12 @@ function isInView(spectraData, activeTab, activeSpectrum, xDomain, yDomain, disp
|
|
|
330
330
|
if (findSignalMatch2D(spectrum, firstLink2D, factor, xDomain0, xDomain1, yDomain0, yDomain1)) {
|
|
331
331
|
return true;
|
|
332
332
|
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
return true;
|
|
340
|
-
}
|
|
333
|
+
// try to find a link which contains the belonging 2D signal in the spectra in view
|
|
334
|
+
else if (correlation.link.some((link) => {
|
|
335
|
+
const spectrum = (0, FindUtilities_1.findSpectrum)(spectraData, link.experimentID, true);
|
|
336
|
+
return findSignalMatch2D(spectrum, link, factor, xDomain0, xDomain1, yDomain0, yDomain1);
|
|
337
|
+
})) {
|
|
338
|
+
return true;
|
|
341
339
|
}
|
|
342
340
|
}
|
|
343
341
|
// do not show correlation
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const react_1 = require("react");
|
|
4
4
|
const ChartContext_1 = require("../../../context/ChartContext");
|
|
5
5
|
const Utilities_1 = require("./Utilities");
|
|
6
|
-
function
|
|
6
|
+
function useInView({ correlation }) {
|
|
7
7
|
const { data: spectraData, xDomain, yDomain, displayerMode, activeTab, activeSpectrum, } = (0, ChartContext_1.useChartData)();
|
|
8
8
|
return (0, react_1.useMemo)(() => (0, Utilities_1.isInView)(spectraData, activeTab, activeSpectrum, xDomain, yDomain, displayerMode, correlation), [
|
|
9
9
|
activeSpectrum,
|
|
@@ -15,4 +15,4 @@ function IsInView({ correlation }) {
|
|
|
15
15
|
yDomain,
|
|
16
16
|
]);
|
|
17
17
|
}
|
|
18
|
-
exports.default =
|
|
18
|
+
exports.default = useInView;
|
|
@@ -69,7 +69,7 @@ function ActionsColumn({ rowData, rowSpanTags }) {
|
|
|
69
69
|
const openEditZoneHandler = (0, react_1.useCallback)(() => {
|
|
70
70
|
dispatch({
|
|
71
71
|
type: Types_1.SET_SELECTED_TOOL,
|
|
72
|
-
payload: { selectedTool: ToolTypes_1.options.editRange.id
|
|
72
|
+
payload: { selectedTool: ToolTypes_1.options.editRange.id },
|
|
73
73
|
});
|
|
74
74
|
modal.show((0, jsx_runtime_1.jsx)(EditZoneModal_1.default, { onCloseEditZoneModal: () => modal.close(), onSaveEditZoneModal: saveEditZoneHandler, onZoomEditZoneModal: () => zoomZoneHandler(), rowData: rowData }), {
|
|
75
75
|
position: Modal_1.positions.MIDDLE_RIGHT,
|
|
@@ -79,6 +79,6 @@ function ActionsColumn({ rowData, rowSpanTags }) {
|
|
|
79
79
|
}, [dispatch, modal, rowData, saveEditZoneHandler, zoomZoneHandler]);
|
|
80
80
|
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("td", { children: (0, jsx_runtime_1.jsx)(Select_1.default, { onChange: (value) => {
|
|
81
81
|
changeSignalKindHandler(value);
|
|
82
|
-
},
|
|
82
|
+
}, items: SignalsKinds_1.SignalKinds, defaultValue: rowData.tableMetaInfo.signal.kind, style: selectBoxStyle }) }), (0, jsx_runtime_1.jsxs)("td", { ...rowSpanTags, children: [(0, jsx_runtime_1.jsx)("button", { type: "button", className: "delete-button", onClick: deleteZoneHandler, children: (0, jsx_runtime_1.jsx)(fa_1.FaRegTrashAlt, {}) }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "zoom-button", onClick: zoomZoneHandler, children: (0, jsx_runtime_1.jsx)(fa_1.FaSearchPlus, { title: "Zoom to zone in spectrum" }) }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "edit-button", onClick: openEditZoneHandler, children: (0, jsx_runtime_1.jsx)(fa_1.FaEdit, { color: "blue" }) })] })] }));
|
|
83
83
|
}
|
|
84
84
|
exports.default = ActionsColumn;
|
|
@@ -130,18 +130,18 @@ function ZonesPanelInner({ zones, activeTab, xDomain, yDomain, experiment }) {
|
|
|
130
130
|
const visibilityHandler = (0, react_2.useCallback)((key) => {
|
|
131
131
|
Events_1.default.emit('onZonesVisibilityChange', { key });
|
|
132
132
|
}, []);
|
|
133
|
-
return ((0, jsx_runtime_1.
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
133
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: [
|
|
134
|
+
BasicPanelStyle_1.tablePanelStyle,
|
|
135
|
+
style,
|
|
136
|
+
isFlipped &&
|
|
137
|
+
(0, react_1.css) `
|
|
138
|
+
th {
|
|
139
|
+
position: relative;
|
|
140
|
+
}
|
|
141
|
+
`,
|
|
142
|
+
], children: [!isFlipped && ((0, jsx_runtime_1.jsxs)(DefaultPanelHeader_1.default, { counter: zones.values ? zones.values.length : 0, onDelete: handleDeleteAll, deleteToolTip: "Delete All Zones", onFilter: handleOnFilter, filterToolTip: filterIsActive ? 'Show all zones' : 'Hide zones out of view', filterIsActive: filterIsActive, counterFiltered: tableData?.length, showSettingButton: true, onSettingClick: settingsPanelHandler, children: [(0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: `Remove all Assignments`, popupPlacement: "right", children: (0, jsx_runtime_1.jsx)("button", { className: "remove-assignments-btn", type: "button", onClick: handleOnRemoveAssignments, disabled: !zones.values || zones.values.length === 0, children: (0, jsx_runtime_1.jsx)(fa_1.FaUnlink, {}) }) }), (0, jsx_runtime_1.jsx)(ToggleButton_1.default, { popupTitle: "show/hide zones", popupPlacement: "right", defaultValue: true, onClick: () => visibilityHandler('zones'), children: (0, jsx_runtime_1.jsx)("span", { style: { fontSize: '12px', pointerEvents: 'none' }, children: "z" }) }), (0, jsx_runtime_1.jsx)(ToggleButton_1.default, { popupTitle: "show/hide signals", popupPlacement: "right", defaultValue: true, onClick: () => visibilityHandler('signals'), children: (0, jsx_runtime_1.jsx)("span", { style: { fontSize: '12px', pointerEvents: 'none' }, children: "s" }) }), (0, jsx_runtime_1.jsx)(ToggleButton_1.default, { popupTitle: "show/hide peaks", popupPlacement: "right", defaultValue: true, onClick: () => visibilityHandler('peaks'), children: (0, jsx_runtime_1.jsx)("span", { style: { fontSize: '12px', pointerEvents: 'none' }, children: "p" }) })] })), 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)("div", { className: "table-container", children: tableData && tableData.length > 0 ? ((0, jsx_runtime_1.jsx)(ZonesTable_1.default, { tableData: tableData, onUnlink: unlinkZoneHandler, nuclei: activeTab && activeTab.split(',').length === 2
|
|
143
|
+
? activeTab.split(',')
|
|
144
|
+
: ['?', '?'], experiment: experiment })) : ((0, jsx_runtime_1.jsx)(NoTableData_1.default, {})) })) : ((0, jsx_runtime_1.jsx)(ZonesPreferences_1.default, { ref: settingRef })) })] }));
|
|
145
145
|
}
|
|
146
146
|
const MemoizedZonesPanel = (0, react_2.memo)(ZonesPanelInner);
|
|
147
147
|
const emptyData = { zones: {}, info: {} };
|
|
@@ -6,16 +6,21 @@ 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 analysis_ui_components_1 = require("analysis-ui-components");
|
|
9
10
|
const react_2 = require("react");
|
|
11
|
+
const bs_1 = require("react-icons/bs");
|
|
10
12
|
const fa_1 = require("react-icons/fa");
|
|
11
13
|
const io5_1 = require("react-icons/io5");
|
|
12
14
|
const database_1 = require("../../../data/data1d/database");
|
|
13
15
|
const ChartContext_1 = require("../../context/ChartContext");
|
|
14
16
|
const DispatchContext_1 = require("../../context/DispatchContext");
|
|
17
|
+
const PreferencesContext_1 = require("../../context/PreferencesContext");
|
|
18
|
+
const Button_1 = __importDefault(require("../../elements/Button"));
|
|
15
19
|
const Input_1 = __importDefault(require("../../elements/Input"));
|
|
16
20
|
const Select_1 = __importDefault(require("../../elements/Select"));
|
|
17
21
|
const ToggleButton_1 = __importDefault(require("../../elements/ToggleButton"));
|
|
18
22
|
const Alert_1 = require("../../elements/popup/Alert");
|
|
23
|
+
const Modal_1 = require("../../elements/popup/Modal");
|
|
19
24
|
const useFormatNumberByNucleus_1 = require("../../hooks/useFormatNumberByNucleus");
|
|
20
25
|
const useToolsFunctions_1 = __importDefault(require("../../hooks/useToolsFunctions"));
|
|
21
26
|
const Types_1 = require("../../reducer/types/Types");
|
|
@@ -27,8 +32,8 @@ const NoTableData_1 = __importDefault(require("../extra/placeholder/NoTableData"
|
|
|
27
32
|
const DefaultPanelHeader_1 = __importDefault(require("../header/DefaultPanelHeader"));
|
|
28
33
|
const PreferencesHeader_1 = __importDefault(require("../header/PreferencesHeader"));
|
|
29
34
|
const DatabasePreferences_1 = __importDefault(require("./DatabasePreferences"));
|
|
35
|
+
const DatabaseStructureSearchModal_1 = require("./DatabaseStructureSearchModal");
|
|
30
36
|
const DatabaseTable_1 = __importDefault(require("./DatabaseTable"));
|
|
31
|
-
const useDatabases_1 = require("./useDatabases");
|
|
32
37
|
const style = (0, react_1.css) `
|
|
33
38
|
.header {
|
|
34
39
|
height: 30px;
|
|
@@ -46,24 +51,27 @@ const style = (0, react_1.css) `
|
|
|
46
51
|
}
|
|
47
52
|
`;
|
|
48
53
|
const emptyKeywords = {
|
|
49
|
-
solvent: '',
|
|
54
|
+
solvent: '-1',
|
|
50
55
|
searchKeywords: '',
|
|
51
56
|
};
|
|
52
|
-
function DatabasePanelInner({ nucleus, selectedTool }) {
|
|
57
|
+
function DatabasePanelInner({ nucleus, selectedTool, databases, defaultDatabase, }) {
|
|
53
58
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
54
59
|
const alert = (0, Alert_1.useAlert)();
|
|
60
|
+
const modal = (0, Modal_1.useModal)();
|
|
61
|
+
const { item } = (0, analysis_ui_components_1.useAccordionContext)('Databases');
|
|
55
62
|
const { handleChangeOption } = (0, useToolsFunctions_1.default)();
|
|
56
63
|
const format = (0, useFormatNumberByNucleus_1.useFormatNumberByNucleus)(nucleus);
|
|
57
|
-
const databases = (0, useDatabases_1.useDatabases)();
|
|
58
64
|
const [isFlipped, setFlipStatus] = (0, react_2.useState)(false);
|
|
59
65
|
const settingRef = (0, react_2.useRef)();
|
|
60
66
|
const [keywords, setKeywords] = (0, react_2.useState)(emptyKeywords);
|
|
61
67
|
const databaseInstance = (0, react_2.useRef)(null);
|
|
68
|
+
const databaseDataRef = (0, react_2.useRef)([]);
|
|
62
69
|
const [result, setResult] = (0, react_2.useState)({
|
|
63
70
|
data: [],
|
|
64
71
|
databases: [],
|
|
65
72
|
solvents: [],
|
|
66
73
|
});
|
|
74
|
+
const [idCode, setIdCode] = (0, react_2.useState)();
|
|
67
75
|
const settingsPanelHandler = (0, react_2.useCallback)(() => {
|
|
68
76
|
setFlipStatus(!isFlipped);
|
|
69
77
|
}, [isFlipped]);
|
|
@@ -85,9 +93,10 @@ function DatabasePanelInner({ nucleus, selectedTool }) {
|
|
|
85
93
|
}, []);
|
|
86
94
|
(0, react_2.useEffect)(() => {
|
|
87
95
|
const { solvent, searchKeywords } = keywords;
|
|
88
|
-
setTimeout(() => {
|
|
96
|
+
setTimeout(async () => {
|
|
89
97
|
if (databaseInstance.current) {
|
|
90
|
-
|
|
98
|
+
const hideLoading = await alert.showLoading(`Preparing of the Result`);
|
|
99
|
+
if (solvent === '-1' && !searchKeywords) {
|
|
91
100
|
const data = databaseInstance.current.data;
|
|
92
101
|
const solvents = mapSolventsToSelect(databaseInstance.current.getSolvents());
|
|
93
102
|
setResult((prevResult) => ({ ...prevResult, data, solvents }));
|
|
@@ -100,9 +109,10 @@ function DatabasePanelInner({ nucleus, selectedTool }) {
|
|
|
100
109
|
const data = databaseInstance.current.search(values.join(' '));
|
|
101
110
|
setResult((prevResult) => ({ ...prevResult, data }));
|
|
102
111
|
}
|
|
112
|
+
hideLoading();
|
|
103
113
|
}
|
|
104
|
-
});
|
|
105
|
-
}, [keywords]);
|
|
114
|
+
}, 0);
|
|
115
|
+
}, [alert, keywords]);
|
|
106
116
|
(0, react_2.useEffect)(() => {
|
|
107
117
|
function handle(event) {
|
|
108
118
|
if (selectedTool === ToolTypes_1.options.databaseRangesSelection.id) {
|
|
@@ -124,14 +134,14 @@ function DatabasePanelInner({ nucleus, selectedTool }) {
|
|
|
124
134
|
Events_1.default.off('brushEnd', handle);
|
|
125
135
|
};
|
|
126
136
|
}, [format, selectedTool]);
|
|
127
|
-
const handleChangeDatabase = (0, react_2.useCallback)((
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
137
|
+
const handleChangeDatabase = (0, react_2.useCallback)((databaseKey) => {
|
|
138
|
+
const database = databases.find((item) => item.key === databaseKey);
|
|
139
|
+
setTimeout(async () => {
|
|
140
|
+
if (database?.url) {
|
|
141
|
+
const { url, label } = database;
|
|
132
142
|
const hideLoading = await alert.showLoading(`load ${label} database`);
|
|
133
143
|
try {
|
|
134
|
-
|
|
144
|
+
databaseDataRef.current = await fetch(url)
|
|
135
145
|
.then((response) => response.json())
|
|
136
146
|
.then((databaseRecords) => databaseRecords.map((record) => ({
|
|
137
147
|
...record,
|
|
@@ -146,24 +156,46 @@ function DatabasePanelInner({ nucleus, selectedTool }) {
|
|
|
146
156
|
}
|
|
147
157
|
}
|
|
148
158
|
else {
|
|
149
|
-
|
|
159
|
+
databaseDataRef.current = database
|
|
160
|
+
?.value;
|
|
150
161
|
}
|
|
151
|
-
|
|
162
|
+
const hideLoading = await alert.showLoading(`Loading the database`);
|
|
163
|
+
databaseInstance.current = (0, database_1.initiateDatabase)(databaseDataRef.current, nucleus);
|
|
152
164
|
setKeywords({ ...emptyKeywords });
|
|
153
|
-
|
|
165
|
+
hideLoading();
|
|
166
|
+
}, 0);
|
|
154
167
|
}, [alert, databases, nucleus]);
|
|
168
|
+
(0, react_2.useEffect)(() => {
|
|
169
|
+
setTimeout(async () => {
|
|
170
|
+
if (databaseInstance.current) {
|
|
171
|
+
const hideLoading = await alert.showLoading(`Loading the database`);
|
|
172
|
+
databaseInstance.current = (0, database_1.initiateDatabase)(databaseDataRef.current, nucleus);
|
|
173
|
+
hideLoading();
|
|
174
|
+
setKeywords({ ...emptyKeywords });
|
|
175
|
+
}
|
|
176
|
+
}, 0);
|
|
177
|
+
}, [alert, nucleus]);
|
|
178
|
+
(0, react_2.useEffect)(() => {
|
|
179
|
+
if (item?.isOpen && defaultDatabase && !databaseInstance.current) {
|
|
180
|
+
handleChangeDatabase(defaultDatabase);
|
|
181
|
+
}
|
|
182
|
+
}, [databases, defaultDatabase, handleChangeDatabase, item?.isOpen, nucleus]);
|
|
155
183
|
const tableData = (0, react_2.useMemo)(() => {
|
|
156
184
|
return (0, database_1.prepareData)(result.data);
|
|
157
185
|
}, [result.data]);
|
|
158
186
|
const resurrectHandler = (0, react_2.useCallback)((row) => {
|
|
159
187
|
const { index, baseURL, jcampURL: jcampRelativeURL } = row.original;
|
|
188
|
+
const { ranges, solvent, names = [] } = result.data[index];
|
|
160
189
|
if (jcampRelativeURL) {
|
|
161
|
-
|
|
190
|
+
setTimeout(async () => {
|
|
162
191
|
const hideLoading = await alert.showLoading(`load jcamp in progress...`);
|
|
163
192
|
try {
|
|
164
193
|
const jcampURL = new URL(jcampRelativeURL, baseURL);
|
|
165
194
|
const result = await (0, FileUtility_1.loadFile)(jcampURL);
|
|
166
|
-
dispatch({
|
|
195
|
+
dispatch({
|
|
196
|
+
type: Types_1.RESURRECTING_SPECTRUM_FROM_JCAMP,
|
|
197
|
+
payload: { file: result, ranges, jcampURL },
|
|
198
|
+
});
|
|
167
199
|
}
|
|
168
200
|
catch (e) {
|
|
169
201
|
alert.error(`Failed to load Jcamp`);
|
|
@@ -171,10 +203,9 @@ function DatabasePanelInner({ nucleus, selectedTool }) {
|
|
|
171
203
|
finally {
|
|
172
204
|
hideLoading();
|
|
173
205
|
}
|
|
174
|
-
})
|
|
206
|
+
}, 0);
|
|
175
207
|
}
|
|
176
208
|
else {
|
|
177
|
-
const { ranges, solvent, names = [] } = result.data[index];
|
|
178
209
|
dispatch({
|
|
179
210
|
type: Types_1.RESURRECTING_SPECTRUM_FROM_RANGES,
|
|
180
211
|
payload: { ranges, info: { solvent, nucleus, name: names[0] } },
|
|
@@ -188,6 +219,22 @@ function DatabasePanelInner({ nucleus, selectedTool }) {
|
|
|
188
219
|
const tool = !flag ? ToolTypes_1.options.zoom.id : ToolTypes_1.options.databaseRangesSelection.id;
|
|
189
220
|
handleChangeOption(tool);
|
|
190
221
|
}, [handleChangeOption]);
|
|
222
|
+
const searchByStructureHandler = (idCodeValue) => {
|
|
223
|
+
setTimeout(async () => {
|
|
224
|
+
const hideLoading = await alert.showLoading(`Searching in progress...`);
|
|
225
|
+
const data = databaseInstance.current?.searchByStructure(idCodeValue) || [];
|
|
226
|
+
setResult((prevResult) => ({ ...prevResult, data }));
|
|
227
|
+
setIdCode(idCodeValue);
|
|
228
|
+
hideLoading();
|
|
229
|
+
}, 0);
|
|
230
|
+
};
|
|
231
|
+
const openSearchByStructure = () => {
|
|
232
|
+
modal.show((0, jsx_runtime_1.jsx)(DatabaseStructureSearchModal_1.DatabaseStructureSearchModal, { onChange: searchByStructureHandler, idCode: idCode }), {
|
|
233
|
+
position: Modal_1.positions.MIDDLE,
|
|
234
|
+
transition: Modal_1.transitions.SCALE,
|
|
235
|
+
isBackgroundBlur: false,
|
|
236
|
+
});
|
|
237
|
+
};
|
|
191
238
|
return ((0, jsx_runtime_1.jsxs)("div", { css: [
|
|
192
239
|
BasicPanelStyle_1.tablePanelStyle,
|
|
193
240
|
style,
|
|
@@ -204,33 +251,32 @@ function DatabasePanelInner({ nucleus, selectedTool }) {
|
|
|
204
251
|
pointerEvents: 'none',
|
|
205
252
|
fontSize: '12px',
|
|
206
253
|
transform: 'rotate(90deg)',
|
|
207
|
-
} }) }, `${selectedTool}`), (0, jsx_runtime_1.jsx)(Select_1.default, { style: { flex: 2 },
|
|
254
|
+
} }) }, `${selectedTool}`), (0, jsx_runtime_1.jsx)(Select_1.default, { style: { flex: 2 }, items: databases, itemTextField: "label", itemValueField: "key", onChange: handleChangeDatabase, placeholder: "Select database", defaultValue: defaultDatabase }), (0, jsx_runtime_1.jsx)(Select_1.default, { style: { flex: 1 }, items: result.solvents, placeholder: "Solvent", onChange: handleSearch, value: keywords.solvent }), (0, jsx_runtime_1.jsx)(Input_1.default, { value: keywords.searchKeywords, renderIcon: () => (0, jsx_runtime_1.jsx)(io5_1.IoSearchOutline, {}), style: { inputWrapper: { flex: 3 } }, className: "search-input", type: "text", debounceTime: 250, placeholder: "Search for parameter...", onChange: handleSearch, onClear: clearHandler, canClear: true }), (0, jsx_runtime_1.jsx)(Button_1.default.Done, { fill: "clear", onClick: openSearchByStructure, style: { marginLeft: '5px' }, children: !idCode ? ((0, jsx_runtime_1.jsx)(bs_1.BsHexagon, { style: {
|
|
255
|
+
fontSize: '14px',
|
|
256
|
+
} })) : ((0, jsx_runtime_1.jsx)(bs_1.BsHexagonFill, { style: {
|
|
257
|
+
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
|
|
208
259
|
? 'Please select a database'
|
|
209
260
|
: 'Please add databases URL in the general preferences' }))) : ((0, jsx_runtime_1.jsx)(DatabasePreferences_1.default, { ref: settingRef })) })] }));
|
|
210
261
|
}
|
|
211
262
|
const MemoizedDatabasePanel = (0, react_2.memo)(DatabasePanelInner);
|
|
212
263
|
function PeaksPanel() {
|
|
213
264
|
const { activeTab, toolOptions: { selectedTool }, } = (0, ChartContext_1.useChartData)();
|
|
265
|
+
const { current } = (0, PreferencesContext_1.usePreferences)();
|
|
266
|
+
const { data, defaultDatabase } = current.databases;
|
|
267
|
+
const databases = database_1.DATA_BASES.concat(data.filter((datum) => datum.enabled));
|
|
214
268
|
if (!activeTab)
|
|
215
269
|
return (0, jsx_runtime_1.jsx)("div", {});
|
|
216
|
-
return ((0, jsx_runtime_1.jsx)(MemoizedDatabasePanel, { nucleus: activeTab, selectedTool: selectedTool }));
|
|
270
|
+
return ((0, jsx_runtime_1.jsx)(MemoizedDatabasePanel, { nucleus: activeTab, selectedTool: selectedTool, databases: databases, defaultDatabase: defaultDatabase }));
|
|
217
271
|
}
|
|
218
272
|
exports.default = PeaksPanel;
|
|
219
273
|
function mapSolventsToSelect(solvents) {
|
|
220
274
|
const result = solvents.map((key) => {
|
|
221
275
|
return {
|
|
222
|
-
key,
|
|
223
276
|
label: key,
|
|
224
277
|
value: key,
|
|
225
278
|
};
|
|
226
279
|
}, []);
|
|
227
|
-
result.unshift({
|
|
280
|
+
result.unshift({ label: 'All', value: '-1' });
|
|
228
281
|
return result;
|
|
229
282
|
}
|
|
230
|
-
function mapDatabasesToSelect(databases) {
|
|
231
|
-
return databases.map(({ label }, index) => ({
|
|
232
|
-
key: index,
|
|
233
|
-
value: index,
|
|
234
|
-
label,
|
|
235
|
-
}));
|
|
236
|
-
}
|
|
@@ -35,6 +35,6 @@ function DatabasePreferences(props, ref) {
|
|
|
35
35
|
formRef.current.submitForm();
|
|
36
36
|
},
|
|
37
37
|
}));
|
|
38
|
-
return ((0, jsx_runtime_1.jsx)(PreferencesContainer_1.PreferencesContainer, { children: (0, jsx_runtime_1.jsxs)(FormikForm_1.default, { onSubmit: saveHandler, ref: formRef, children: [(0, jsx_runtime_1.jsxs)(PreferencesGroup_1.PreferencesGroup, { children: [(0, jsx_runtime_1.jsx)(FormikColumnFormatField_1.default, { label: "Preview jcamp", checkControllerName: "previewJcamp", hideFormatField: true }), (0, jsx_runtime_1.jsx)(FormikColorInput_1.default, { name: "color" }), (0, jsx_runtime_1.jsx)(Label_1.default, { title: "Margin bottom (px) :", style: { label: { padding: 0, flex: 4 }, wrapper: { flex: 8 } }, children: (0, jsx_runtime_1.jsx)(FormikInput_1.default, { name: "marginBottom", type: "number" }) })] }), (0, jsx_runtime_1.jsxs)(PreferencesGroup_1.PreferencesGroup, { header: "Table Preferences", children: [(0, jsx_runtime_1.jsx)(FormikColumnFormatField_1.default, { label: "Structure", checkControllerName: "showSmiles", hideFormatField: true }), (0, jsx_runtime_1.jsx)(FormikColumnFormatField_1.default, { label: "Solvent", checkControllerName: "showSolvent", hideFormatField: true }), (0, jsx_runtime_1.jsx)(FormikColumnFormatField_1.default, { label: "Names", checkControllerName: "showNames", hideFormatField: true }), (0, jsx_runtime_1.jsx)(FormikColumnFormatField_1.default, { label: "Range", checkControllerName: "
|
|
38
|
+
return ((0, jsx_runtime_1.jsx)(PreferencesContainer_1.PreferencesContainer, { children: (0, jsx_runtime_1.jsxs)(FormikForm_1.default, { onSubmit: saveHandler, ref: formRef, children: [(0, jsx_runtime_1.jsxs)(PreferencesGroup_1.PreferencesGroup, { children: [(0, jsx_runtime_1.jsx)(FormikColumnFormatField_1.default, { label: "Preview jcamp", checkControllerName: "previewJcamp", hideFormatField: true }), (0, jsx_runtime_1.jsx)(FormikColorInput_1.default, { name: "color" }), (0, jsx_runtime_1.jsx)(Label_1.default, { title: "Margin bottom (px) :", style: { label: { padding: 0, flex: 4 }, wrapper: { flex: 8 } }, children: (0, jsx_runtime_1.jsx)(FormikInput_1.default, { name: "marginBottom", type: "number" }) })] }), (0, jsx_runtime_1.jsxs)(PreferencesGroup_1.PreferencesGroup, { header: "Table Preferences", children: [(0, jsx_runtime_1.jsx)(FormikColumnFormatField_1.default, { label: "Structure", checkControllerName: "showSmiles", hideFormatField: true }), (0, jsx_runtime_1.jsx)(FormikColumnFormatField_1.default, { label: "Solvent", checkControllerName: "showSolvent", hideFormatField: true }), (0, jsx_runtime_1.jsx)(FormikColumnFormatField_1.default, { label: "Names", checkControllerName: "showNames", hideFormatField: true }), (0, jsx_runtime_1.jsx)(FormikColumnFormatField_1.default, { label: "Range", checkControllerName: "range.show", formatControllerName: "range.format" }), (0, jsx_runtime_1.jsx)(FormikColumnFormatField_1.default, { label: "\u03B4 (ppm)", checkControllerName: "delta.show", formatControllerName: "delta.format" }), (0, jsx_runtime_1.jsx)(FormikColumnFormatField_1.default, { label: "Assignment", checkControllerName: "showAssignment", hideFormatField: true }), (0, jsx_runtime_1.jsx)(FormikColumnFormatField_1.default, { label: "J (Hz)", checkControllerName: "coupling.show", formatControllerName: "coupling.format" }), (0, jsx_runtime_1.jsx)(FormikColumnFormatField_1.default, { label: "Multiplicity", checkControllerName: "showMultiplicity", hideFormatField: true })] })] }) }));
|
|
39
39
|
}
|
|
40
40
|
exports.default = (0, react_1.forwardRef)(DatabasePreferences);
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
exports.DatabaseStructureSearchModal = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
8
|
+
/** @jsxImportSource @emotion/react */
|
|
9
|
+
const full_1 = require("react-ocl/full");
|
|
10
|
+
const CloseButton_1 = __importDefault(require("../../elements/CloseButton"));
|
|
11
|
+
const ModalStyle_1 = require("../../modal/ModalStyle");
|
|
12
|
+
function DatabaseStructureSearchModal({ onChange, idCode, onClose, }) {
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: ModalStyle_1.ModalStyles, children: [(0, jsx_runtime_1.jsxs)("div", { className: "header handle", children: [(0, jsx_runtime_1.jsx)("span", { children: "Search by structure" }), (0, jsx_runtime_1.jsx)(CloseButton_1.default, { onClick: onClose, className: "close-bt" })] }), (0, jsx_runtime_1.jsx)("div", { className: "main-content", children: (0, jsx_runtime_1.jsx)(full_1.StructureEditor, { initialIDCode: idCode, svgMenu: true, fragment: true, onChange: (mplFile, molecule, idCode) => onChange(idCode) }) })] }));
|
|
14
|
+
}
|
|
15
|
+
exports.DatabaseStructureSearchModal = DatabaseStructureSearchModal;
|
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
7
7
|
/** @jsxImportSource @emotion/react */
|
|
8
|
+
const get_1 = __importDefault(require("lodash/get"));
|
|
8
9
|
const react_1 = require("react");
|
|
9
10
|
const react_d3_utils_1 = require("react-d3-utils");
|
|
10
11
|
const fa_1 = require("react-icons/fa");
|
|
@@ -13,12 +14,13 @@ const ReactTable_1 = __importDefault(require("../../elements/ReactTable/ReactTab
|
|
|
13
14
|
const addCustomColumn_1 = __importDefault(require("../../elements/ReactTable/utility/addCustomColumn"));
|
|
14
15
|
const highlight_1 = require("../../highlight");
|
|
15
16
|
const usePanelPreferences_1 = require("../../hooks/usePanelPreferences");
|
|
17
|
+
const formatNumber_1 = require("../../utility/formatNumber");
|
|
16
18
|
const overFlowStyle = {
|
|
17
19
|
overflow: 'hidden',
|
|
18
20
|
whiteSpace: 'nowrap',
|
|
19
21
|
textOverflow: 'ellipsis',
|
|
20
22
|
};
|
|
21
|
-
const
|
|
23
|
+
const databaseTableColumns = (databasePreferences) => [
|
|
22
24
|
{
|
|
23
25
|
showWhen: 'showNames',
|
|
24
26
|
index: 1,
|
|
@@ -33,17 +35,20 @@ const COLUMNS = [
|
|
|
33
35
|
},
|
|
34
36
|
},
|
|
35
37
|
{
|
|
36
|
-
showWhen: '
|
|
38
|
+
showWhen: 'range.show',
|
|
37
39
|
index: 2,
|
|
38
40
|
Header: 'From - To',
|
|
39
|
-
accessor: (row) =>
|
|
41
|
+
accessor: (row) => {
|
|
42
|
+
const rangeFormat = databasePreferences.range.format;
|
|
43
|
+
return `${(0, formatNumber_1.formatNumber)(row.from, rangeFormat)} - ${(0, formatNumber_1.formatNumber)(row.to, rangeFormat)}`;
|
|
44
|
+
},
|
|
40
45
|
enableRowSpan: true,
|
|
41
46
|
},
|
|
42
47
|
{
|
|
43
|
-
showWhen: '
|
|
48
|
+
showWhen: 'delta.show',
|
|
44
49
|
index: 3,
|
|
45
50
|
Header: 'δ (ppm)',
|
|
46
|
-
accessor:
|
|
51
|
+
accessor: (row) => `${(0, formatNumber_1.formatNumber)(row.delta, databasePreferences.delta.format)}`,
|
|
47
52
|
},
|
|
48
53
|
{
|
|
49
54
|
showWhen: 'showAssignment',
|
|
@@ -58,10 +63,10 @@ const COLUMNS = [
|
|
|
58
63
|
accessor: 'multiplicity',
|
|
59
64
|
},
|
|
60
65
|
{
|
|
61
|
-
showWhen: '
|
|
66
|
+
showWhen: 'coupling.show',
|
|
62
67
|
index: 6,
|
|
63
68
|
Header: 'J (Hz)',
|
|
64
|
-
accessor:
|
|
69
|
+
accessor: (row) => `${(0, formatNumber_1.formatNumber)(row.coupling, databasePreferences.coupling.format)}`,
|
|
65
70
|
style: {
|
|
66
71
|
width: '60px',
|
|
67
72
|
minWidth: '60px',
|
|
@@ -86,7 +91,7 @@ const COLUMNS = [
|
|
|
86
91
|
accessor: 'index',
|
|
87
92
|
style: { height: 0 },
|
|
88
93
|
enableRowSpan: true,
|
|
89
|
-
Cell
|
|
94
|
+
Cell({ row }) {
|
|
90
95
|
const { idCode, coordinates } = row.original?.ocl || {};
|
|
91
96
|
const smiles = row.original?.smiles;
|
|
92
97
|
return ((0, jsx_runtime_1.jsx)(react_d3_utils_1.ResponsiveChart, { children: ({ width, height }) => {
|
|
@@ -120,14 +125,14 @@ function DatabaseTable({ data, onAdd }) {
|
|
|
120
125
|
], [onAdd]);
|
|
121
126
|
const tableColumns = (0, react_1.useMemo)(() => {
|
|
122
127
|
let columns = [...initialColumns];
|
|
123
|
-
for (const col of
|
|
128
|
+
for (const col of databaseTableColumns(databasePreferences)) {
|
|
124
129
|
const { showWhen, ...colParams } = col;
|
|
125
|
-
if (databasePreferences
|
|
130
|
+
if ((0, get_1.default)(databasePreferences, showWhen, false)) {
|
|
126
131
|
(0, addCustomColumn_1.default)(columns, colParams);
|
|
127
132
|
}
|
|
128
133
|
}
|
|
129
134
|
return columns.sort((object1, object2) => object1.index - object2.index);
|
|
130
135
|
}, [databasePreferences, initialColumns]);
|
|
131
|
-
return ((0, jsx_runtime_1.jsx)(ReactTable_1.default, { data: data, columns: tableColumns, highlightedSource: highlight_1.
|
|
136
|
+
return ((0, jsx_runtime_1.jsx)(ReactTable_1.default, { data: data, columns: tableColumns, highlightedSource: highlight_1.HighlightEventSource.DATABASE, groupKey: "index", approxItemHeight: 24, enableVirtualScroll: true }));
|
|
132
137
|
}
|
|
133
138
|
exports.default = (0, react_1.memo)(DatabaseTable);
|
|
@@ -12,11 +12,9 @@ class ColumnsHelper {
|
|
|
12
12
|
this.defaultPreference = defaultPreference;
|
|
13
13
|
}
|
|
14
14
|
checkPreferences(preferencesToCheck, key) {
|
|
15
|
-
const val = preferencesToCheck === undefined ||
|
|
15
|
+
const val = !!(preferencesToCheck === undefined ||
|
|
16
16
|
Object.keys(preferencesToCheck).length === 0 ||
|
|
17
|
-
(preferencesToCheck && preferencesToCheck[key] === true)
|
|
18
|
-
? true
|
|
19
|
-
: false;
|
|
17
|
+
(preferencesToCheck && preferencesToCheck[key] === true));
|
|
20
18
|
return val;
|
|
21
19
|
}
|
|
22
20
|
setCustomColumn(array, index, columnLabel, cellHandler) {
|