nmrium 0.33.0 → 0.34.0-pre.1683183916
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/ApodizationLine.d.ts +2 -2
- package/lib/component/1d/ApodizationLine.js +6 -4
- package/lib/component/1d/Chart1D.js +6 -3
- package/lib/component/1d/ExclusionZoneAnnotation.d.ts +2 -1
- package/lib/component/1d/ExclusionZoneAnnotation.js +7 -3
- package/lib/component/1d/ExclusionZonesAnnotations.js +22 -7
- package/lib/component/1d/FooterBanner.js +24 -11
- package/lib/component/1d/Line.js +4 -10
- package/lib/component/1d/LinesSeries.js +6 -7
- package/lib/component/1d/SpectraLegends.d.ts +3 -0
- package/lib/component/1d/SpectraLegends.js +60 -0
- package/lib/component/1d/Viewer1D.js +43 -13
- package/lib/component/1d/XAxis.js +5 -5
- package/lib/component/1d/YAxis.js +3 -7
- package/lib/component/1d/database/DatabaseSpectrum.js +11 -10
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +5 -3
- package/lib/component/1d/integral/IntegralIndicator.js +1 -7
- package/lib/component/1d/integral/IntegralResizable.js +6 -2
- package/lib/component/1d/integral/IntegralsSeries.js +2 -2
- package/lib/component/1d/jCouplingGraph/JGraph.js +6 -9
- package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts +1 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.d.ts +2 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.js +17 -17
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +10 -14
- package/lib/component/1d/multiplicityTree/LevelNode.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts +5 -6
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +143 -158
- package/lib/component/1d/multiplicityTree/StringNode.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/buildTreeNode.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/buildTreeNode.js +3 -3
- package/lib/component/1d/peaks/PeakAnnotation.js +4 -7
- package/lib/component/1d/peaks/PeakAnnotations.js +18 -10
- package/lib/component/1d/peaks/PeaksShapes.js +8 -7
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts +5 -5
- package/lib/component/1d/peaks/usePeakShapesPath.js +10 -6
- package/lib/component/1d/ranges/AssignmentActionsButtons.d.ts +11 -0
- package/lib/component/1d/ranges/AssignmentActionsButtons.js +11 -0
- package/lib/component/1d/ranges/Range.d.ts +3 -10
- package/lib/component/1d/ranges/Range.js +30 -41
- package/lib/component/1d/ranges/Ranges.d.ts +1 -1
- package/lib/component/1d/ranges/Ranges.js +8 -6
- package/lib/component/1d/tool/BaseLineZones.js +3 -2
- package/lib/component/1d/tool/PeakPointer.js +8 -14
- package/lib/component/1d/tool/XLabelPointer.js +1 -1
- package/lib/component/1d/utilities/scale.js +2 -2
- package/lib/component/1d-2d/components/FloatMoleculeStructures/ActionsButton.js +7 -0
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts +14 -0
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +77 -0
- package/lib/component/{tool → 1d-2d/components}/FloatMoleculeStructures/index.d.ts +4 -5
- package/lib/component/{tool → 1d-2d/components}/FloatMoleculeStructures/index.js +14 -12
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts +3 -0
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js +35 -0
- package/lib/component/{tool → 1d-2d/tools}/BrushX.js +6 -6
- package/lib/component/{tool → 1d-2d/tools}/BrushXY.js +9 -8
- package/lib/component/{tool → 1d-2d/tools}/CrossLinePointer.js +8 -7
- package/lib/component/2d/{tools/slicing → 1d-tracer}/HorizontalSliceChart.d.ts +2 -1
- package/lib/component/2d/{tools/slicing → 1d-tracer}/HorizontalSliceChart.js +17 -8
- package/lib/component/2d/{Left1DChart.d.ts → 1d-tracer/Left1DChart.d.ts} +3 -3
- package/lib/component/2d/{Left1DChart.js → 1d-tracer/Left1DChart.js} +7 -7
- package/lib/component/2d/{Top1DChart.d.ts → 1d-tracer/Top1DChart.d.ts} +2 -2
- package/lib/component/2d/{Top1DChart.js → 1d-tracer/Top1DChart.js} +4 -4
- package/lib/component/2d/{tools/slicing → 1d-tracer}/VerticalSliceChart.d.ts +2 -1
- package/lib/component/2d/{tools/slicing → 1d-tracer}/VerticalSliceChart.js +18 -9
- package/lib/component/2d/Chart2D.d.ts +2 -2
- package/lib/component/2d/Chart2D.js +8 -7
- package/lib/component/2d/FooterBanner.js +26 -17
- package/lib/component/2d/{tools/slicing/SlicingView.js → SlicingView.js} +8 -8
- package/lib/component/2d/Viewer2D.js +15 -24
- package/lib/component/2d/XAxis.d.ts +0 -1
- package/lib/component/2d/XAxis.js +12 -19
- package/lib/component/2d/YAxis.js +8 -11
- package/lib/component/2d/fid/FidCanvas.d.ts +2 -0
- package/lib/component/2d/fid/FidCanvas.js +109 -0
- package/lib/component/2d/fid/FidContainer.d.ts +2 -0
- package/lib/component/2d/fid/FidContainer.js +32 -0
- package/lib/component/2d/ft/Contours.js +81 -0
- package/lib/component/2d/ft/FTContainer.d.ts +7 -0
- package/lib/component/2d/ft/FTContainer.js +13 -0
- package/lib/component/2d/tools/XYLabelPointer.js +18 -7
- package/lib/component/2d/utilities/scale.d.ts +1 -1
- package/lib/component/2d/utilities/scale.js +5 -2
- package/lib/component/2d/zones/IndicationLines.js +5 -8
- package/lib/component/2d/zones/Signal.d.ts +1 -1
- package/lib/component/2d/zones/Signal.js +1 -2
- package/lib/component/2d/zones/SignalCrosshair.d.ts +1 -1
- package/lib/component/2d/zones/SignalCrosshair.js +0 -1
- package/lib/component/2d/zones/Zone.d.ts +2 -2
- package/lib/component/2d/zones/Zone.js +9 -7
- package/lib/component/EventsTrackers/KeysListenerTracker.js +65 -55
- package/lib/component/EventsTrackers/MouseTracker.js +2 -2
- package/lib/component/NMRium.d.ts +13 -20
- package/lib/component/NMRium.js +76 -55
- package/lib/component/SplitPaneWrapper.js +12 -4
- package/lib/component/assignment/AssignmentsContext.d.ts +4 -4
- package/lib/component/assignment/AssignmentsReducer.d.ts +8 -9
- package/lib/component/assignment/actions/initAssignment.js +17 -17
- package/lib/component/assignment/actions/removeAssignment.js +2 -2
- package/lib/component/assignment/actions/toggleAssignment.js +1 -1
- package/lib/component/assignment/index.js +2 -2
- package/lib/component/context/LoggerContext.d.ts +19 -0
- package/lib/component/context/LoggerContext.js +42 -0
- package/lib/component/context/PreferencesContext.d.ts +85 -18
- package/lib/component/context/PreferencesContext.js +15 -15
- package/lib/component/context/ScaleContext.d.ts +1 -1
- package/lib/component/elements/ActiveButton.js +12 -6
- package/lib/component/elements/Button.d.ts +15 -5
- package/lib/component/elements/Button.js +101 -30
- package/lib/component/elements/ButtonToolTip.js +1 -1
- package/lib/component/elements/CheckBoxCell.js +1 -1
- package/lib/component/elements/ColorInput.js +43 -45
- package/lib/component/elements/ColumnWrapper.d.ts +6 -0
- package/lib/component/elements/ColumnWrapper.js +8 -0
- package/lib/component/elements/ContextMenu.js +5 -5
- package/lib/component/elements/EditableColumn.js +3 -5
- package/lib/component/elements/GroupPane.d.ts +13 -0
- package/lib/component/elements/GroupPane.js +14 -0
- package/lib/component/elements/Header.d.ts +11 -0
- package/lib/component/elements/Header.js +17 -0
- package/lib/component/elements/Input.d.ts +3 -1
- package/lib/component/elements/Input.js +49 -50
- package/lib/component/elements/InputRange.d.ts +1 -0
- package/lib/component/elements/InputRange.js +3 -3
- package/lib/component/elements/IsotopesViewer.js +4 -1
- package/lib/component/elements/Label.d.ts +3 -1
- package/lib/component/elements/Label.js +8 -6
- package/lib/component/elements/MenuButton.js +4 -4
- package/lib/component/elements/Message.d.ts +16 -0
- package/lib/component/elements/Message.js +35 -0
- package/lib/component/elements/MolecularFormulaInput.js +3 -2
- package/lib/component/elements/MoleculeSelection.js +9 -7
- package/lib/component/elements/NextPrev.js +6 -2
- package/lib/component/elements/NumberInput.d.ts +4 -12
- package/lib/component/elements/NumberInput.js +10 -40
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts +2 -0
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.js +11 -0
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.d.ts +7 -5
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js +24 -4
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +6 -6
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +36 -48
- package/lib/component/elements/ReactTable/ReactTable.d.ts +42 -15
- package/lib/component/elements/ReactTable/ReactTable.js +170 -80
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.d.ts +7 -4
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js +19 -9
- package/lib/component/elements/ReactTable/Style.d.ts +1 -1
- package/lib/component/elements/ReactTable/Style.js +0 -8
- package/lib/component/elements/ReactTable/utility/ReactTableContext.d.ts +3 -3
- package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts +4 -17
- package/lib/component/elements/ReactTable/utility/addCustomColumn.js +4 -5
- package/lib/component/elements/ReactTable/utility/useRowSpan.d.ts +6 -1
- package/lib/component/elements/ReactTable/utility/useRowSpan.js +3 -7
- package/lib/component/elements/SVGGroup.d.ts +8 -0
- package/lib/component/elements/SVGGroup.js +31 -0
- package/lib/component/elements/SaveButton.js +1 -0
- package/lib/component/elements/Select.d.ts +1 -0
- package/lib/component/elements/Select.js +27 -24
- package/lib/component/elements/Tab/DeleteButton.d.ts +3 -2
- package/lib/component/elements/Tab/DeleteButton.js +7 -7
- package/lib/component/elements/Tab/Tab.d.ts +14 -21
- package/lib/component/elements/Tab/Tab.js +15 -18
- package/lib/component/elements/Tab/Tabs.d.ts +2 -4
- package/lib/component/elements/Tab/Tabs.js +11 -9
- package/lib/component/elements/ToolbarMenu.js +5 -5
- package/lib/component/elements/accordion/Accordion.js +2 -2
- package/lib/component/elements/accordion/AccordionItem.js +0 -1
- package/lib/component/elements/{draggble → draggable}/SVGDraggable.d.ts +2 -2
- package/lib/component/elements/{draggble → draggable}/useDraggable.d.ts +1 -1
- package/lib/component/elements/{draggble → draggable}/useDraggable.js +1 -3
- package/lib/component/elements/dropDownButton/DropDownButton.d.ts +10 -6
- package/lib/component/elements/dropDownButton/DropDownButton.js +13 -7
- package/lib/component/elements/dropDownButton/DropDownList.d.ts +5 -2
- package/lib/component/elements/dropDownButton/DropDownList.js +21 -9
- package/lib/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib/component/elements/formik/FormikColorPicker.js +2 -2
- package/lib/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib/component/elements/formik/FormikInput.d.ts +5 -1
- package/lib/component/elements/formik/FormikInput.js +18 -5
- package/lib/component/elements/formik/FormikNumberInput.d.ts +1 -1
- package/lib/component/elements/formik/FormikNumberInput.js +13 -3
- package/lib/component/elements/formik/FormikOnChange.d.ts +2 -0
- package/lib/component/elements/formik/FormikOnChange.js +12 -9
- package/lib/component/elements/formik/FormikSelect.d.ts +1 -0
- package/lib/component/elements/formik/FormikSelect.js +7 -3
- package/lib/component/elements/formik/FormikTextarea.js +1 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.d.ts +1 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js +2 -2
- package/lib/component/elements/popup/Alert/ProgressIndicator.js +5 -2
- package/lib/component/elements/popup/Alert/Provider.js +36 -27
- 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/ConfirmDialog.d.ts +15 -8
- package/lib/component/elements/popup/Modal/ConfirmDialog.js +19 -26
- package/lib/component/elements/popup/Modal/ModalContent.js +3 -1
- package/lib/component/elements/popup/Modal/Provider.js +64 -68
- package/lib/component/elements/popup/Modal/index.d.ts +4 -5
- package/lib/component/elements/popup/Modal/index.js +4 -5
- package/lib/component/elements/popup/Transition.d.ts +1 -1
- package/lib/component/elements/resizer/Resizer.d.ts +2 -2
- package/lib/component/elements/resizer/SVGResizer.js +1 -3
- package/lib/component/elements/resizer/useResizer.d.ts +1 -1
- package/lib/component/elements/resizer/useResizer.js +1 -1
- package/lib/component/elements/toggle/ToggleButton.js +1 -1
- package/lib/component/header/ApodizationOptionsPanel.js +18 -37
- package/lib/component/header/AutoPeakPickingOptionPanel.js +14 -23
- package/lib/component/header/BaseLineCorrectionPanel.js +17 -50
- package/lib/component/header/Header.d.ts +3 -2
- package/lib/component/header/Header.js +76 -41
- package/lib/component/header/HeaderContainer.js +0 -2
- package/lib/component/header/LogsHistory.d.ts +2 -0
- package/lib/component/header/LogsHistory.js +106 -0
- package/lib/component/header/PhaseCorrectionPanel.d.ts +2 -0
- package/lib/component/header/{ManualPhaseCorrectionPanel.js → PhaseCorrectionPanel.js} +27 -25
- package/lib/component/header/RangesPickingOptionPanel.js +18 -41
- package/lib/component/header/ZeroFillingOptionsPanel.d.ts +1 -2
- package/lib/component/header/ZeroFillingOptionsPanel.js +45 -36
- package/lib/component/header/Zones2DOptionPanel.js +17 -29
- package/lib/component/highlight/index.d.ts +7 -5
- package/lib/component/highlight/index.js +5 -0
- package/lib/component/hooks/useActiveSpectra.d.ts +1 -0
- package/lib/component/hooks/useActiveSpectra.js +6 -0
- package/lib/component/hooks/useActiveSpectrum.d.ts +1 -0
- package/lib/component/hooks/useActiveSpectrum.js +6 -0
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.d.ts +3 -0
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.js +17 -0
- package/lib/component/hooks/useActiveSpectrumStyleOptions.js +5 -4
- package/lib/component/hooks/useCheckExperimentalFeature.js +1 -6
- package/lib/component/hooks/useCheckToolsVisibility.d.ts +2 -3
- package/lib/component/hooks/useCheckToolsVisibility.js +27 -9
- package/lib/component/hooks/useCombinedRefs.js +2 -2
- package/lib/component/hooks/useDatumWithSpectraStatistics.d.ts +2 -3
- package/lib/component/hooks/useDatumWithSpectraStatistics.js +1 -1
- package/lib/component/hooks/useExport.d.ts +1 -1
- package/lib/component/hooks/useExport.js +31 -25
- package/lib/component/hooks/useFilter.d.ts +1 -1
- package/lib/component/hooks/useFormatNumberByNucleus.d.ts +1 -1
- package/lib/component/hooks/useFormatNumberByNucleus.js +6 -4
- package/lib/component/hooks/useIntegralPath.js +4 -2
- package/lib/component/hooks/usePanelPreferences.d.ts +5 -4
- package/lib/component/hooks/usePanelPreferences.js +45 -13
- package/lib/component/hooks/useSaveSettings.d.ts +6 -0
- package/lib/component/hooks/useSaveSettings.js +74 -0
- package/lib/component/hooks/useSpectraPerNucleus.d.ts +2 -3
- package/lib/component/hooks/useSpectrum.d.ts +2 -3
- package/lib/component/hooks/useSpectrum.js +2 -2
- package/lib/component/hooks/useToolsFunctions.js +3 -2
- package/lib/component/hooks/useVerticalAlign.d.ts +1 -0
- package/lib/component/hooks/useVerticalAlign.js +6 -0
- package/lib/component/hooks/useXYReduce.d.ts +1 -1
- package/lib/component/loader/DefaultSpinnerComponent.js +3 -4
- package/lib/component/loader/DropZone.js +61 -17
- package/lib/component/loader/NoData.js +1 -1
- package/lib/component/modal/AboutUsModal.d.ts +1 -4
- package/lib/component/modal/AboutUsModal.js +41 -35
- package/lib/component/modal/AlignSpectraModal.js +4 -4
- package/lib/component/modal/CopyClipboardModal.js +5 -4
- package/lib/component/modal/EditPeakShapeModal.d.ts +2 -2
- package/lib/component/modal/EditPeakShapeModal.js +3 -3
- package/lib/component/modal/ExportAsJcampModal.d.ts +8 -0
- package/lib/component/modal/ExportAsJcampModal.js +62 -0
- package/lib/component/modal/ImportPublicationStringModal.js +3 -3
- package/lib/component/modal/LoadJCAMPModal.d.ts +1 -2
- package/lib/component/modal/LoadJCAMPModal.js +31 -20
- package/lib/component/modal/ModalStyle.d.ts +1 -1
- package/lib/component/modal/ModalStyle.js +0 -13
- package/lib/component/modal/MultipletAnalysisModal.d.ts +2 -2
- package/lib/component/modal/MultipletAnalysisModal.js +12 -6
- package/lib/component/modal/PredictSpectraModal.js +14 -12
- package/lib/component/modal/SaveAsModal.js +17 -15
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts +2 -2
- package/lib/component/modal/changeSum/ChangeSumModal.js +7 -3
- package/lib/component/modal/changeSum/SelectMolecule.js +5 -5
- package/lib/component/modal/editRange/EditRangeModal.js +11 -9
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +11 -12
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +2 -2
- package/lib/component/modal/editRange/forms/components/SignalFormInfo.js +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsForm.d.ts +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.d.ts +11 -263
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +21 -25
- package/lib/component/modal/editZone/EditPathLengthFormik.js +12 -17
- package/lib/component/modal/editZone/EditZoneModal.js +8 -5
- package/lib/component/modal/editZone/SignalsForm.js +1 -11
- package/lib/component/modal/editZone/validation/EditZoneValidation.d.ts +13 -533
- package/lib/component/modal/editZone/validation/EditZoneValidation.js +12 -15
- package/lib/component/modal/metaImportation/MetaImportationModal.d.ts +6 -0
- package/lib/component/modal/metaImportation/MetaImportationModal.js +189 -0
- package/lib/component/modal/metaImportation/index.d.ts +2 -0
- package/lib/component/modal/metaImportation/index.js +17 -0
- package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.d.ts +1 -0
- package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.js +9 -0
- package/lib/component/modal/setting/GeneralSettings.d.ts +4 -4
- package/lib/component/modal/setting/GeneralSettings.js +139 -53
- package/lib/component/modal/setting/WorkspaceItem.d.ts +6 -4
- package/lib/component/modal/setting/WorkspaceItem.js +88 -51
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts +9 -0
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +77 -0
- package/lib/component/modal/setting/{DisplayTabContent.js → settings-tabs/DisplayTabContent.js} +29 -31
- package/lib/component/modal/setting/settings-tabs/FormattingTabContent.js +80 -0
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +40 -0
- package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.d.ts +3 -0
- package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.js +85 -0
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.d.ts +3 -0
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +92 -0
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts +3 -0
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +39 -0
- package/lib/component/modal/setting/{ToolsTabContent.js → settings-tabs/ToolsTabContent.js} +25 -22
- package/lib/component/modal/setting/settingsValidation.d.ts +1 -164
- package/lib/component/modal/setting/settingsValidation.js +30 -21
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +14 -2
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +3 -5
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.d.ts +2 -2
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +14 -17
- package/lib/component/panels/InformationPanel.js +84 -59
- package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +3 -3
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +13 -11
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +17 -17
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.d.ts +1 -0
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +47 -0
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.d.ts +1 -0
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js +104 -0
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts +5 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +93 -25
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +5 -5
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +3 -3
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +59 -26
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +2 -3
- package/lib/component/panels/MoleculesPanel/Utilities.js +6 -6
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +16 -18
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +19 -25
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.d.ts +5 -4
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +60 -29
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisCell.d.ts +8 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisCell.js +18 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.d.ts +13 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.js +53 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.d.ts +2 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +55 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.d.ts +3 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.js +81 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/{MultipleAnalysisCodeEditor.js → preferences/MultipleAnalysisCodeEditor.js} +2 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/index.d.ts +9 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/index.js +106 -0
- package/lib/component/panels/PanelNoData.d.ts +6 -0
- package/lib/component/panels/PanelNoData.js +24 -0
- package/lib/component/panels/Panels.js +5 -6
- package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts +5 -0
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +18 -19
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +5 -11
- package/lib/component/panels/PeaksPanel/PeaksTable.js +31 -10
- package/lib/component/panels/RangesPanel/RangesHeader.js +6 -6
- package/lib/component/panels/RangesPanel/RangesPanel.js +12 -7
- package/lib/component/panels/RangesPanel/RangesPreferences.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.js +7 -10
- package/lib/component/panels/RangesPanel/RangesTable.d.ts +4 -5
- package/lib/component/panels/RangesPanel/RangesTable.js +17 -22
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +24 -4
- package/lib/component/panels/RangesPanel/RangesTableRow.js +15 -11
- package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.d.ts +3 -14
- package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts +5 -17
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +4 -4
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.d.ts +3 -14
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.js +4 -4
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.d.ts +7 -11
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +38 -37
- package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.d.ts +5 -14
- package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.js +3 -4
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.d.ts +2 -6
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js +8 -11
- package/lib/component/panels/RangesPanel/TableColumns/RemoveAssignmentsButton.d.ts +4 -0
- package/lib/component/panels/RangesPanel/TableColumns/RemoveAssignmentsButton.js +8 -0
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts +4 -9
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +16 -25
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.d.ts +2 -9
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +6 -7
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.d.ts +4 -9
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +5 -5
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +2 -2
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts +1 -1
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.js +8 -8
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.d.ts +2 -4
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +55 -39
- package/lib/component/panels/SpectrumsPanel/SpectraPreferences.d.ts +3 -0
- package/lib/component/panels/SpectrumsPanel/SpectraPreferences.js +72 -0
- package/lib/component/panels/SpectrumsPanel/SpectraTable.d.ts +13 -0
- package/lib/component/panels/SpectrumsPanel/SpectraTable.js +228 -0
- package/lib/component/panels/SpectrumsPanel/SpectrumListPanel.js +14 -7
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.d.ts +1 -12
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +34 -100
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.d.ts +5 -21
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.js +14 -8
- package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.d.ts +8 -16
- package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +63 -39
- package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.d.ts +10 -0
- package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +58 -0
- package/lib/component/panels/SpectrumsPanel/base/SpectrumName.d.ts +7 -0
- package/lib/component/panels/SpectrumsPanel/base/SpectrumName.js +37 -0
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +3 -3
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +4 -3
- package/lib/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +14 -20
- package/lib/component/panels/SpectrumsPanel/base/setting/processSnapPlot.d.ts +2 -3
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +17 -18
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +16 -17
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +15 -10
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +20 -21
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +4 -5
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +17 -19
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +0 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +12 -13
- package/lib/component/panels/SummaryPanel/Overview.js +2 -1
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +21 -21
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +17 -21
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +0 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +4 -5
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +105 -94
- package/lib/component/panels/SummaryPanel/utilities/useInView.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +2 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js +7 -10
- package/lib/component/panels/ZonesPanel/ZonesTable.d.ts +1 -2
- package/lib/component/panels/ZonesPanel/ZonesTable.js +31 -34
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +3 -3
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +5 -4
- package/lib/component/panels/databasePanel/DatabasePanel.js +90 -16
- package/lib/component/panels/databasePanel/DatabasePreferences.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.js +4 -7
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts +3 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +36 -13
- package/lib/component/panels/extra/BasicPanelStyle.d.ts +1 -1
- package/lib/component/panels/extra/preferences/NucleusGroup.d.ts +14 -0
- package/lib/component/panels/extra/preferences/NucleusGroup.js +19 -0
- package/lib/component/panels/extra/preferences/NucleusPreferences.d.ts +4 -6
- package/lib/component/panels/extra/preferences/NucleusPreferences.js +5 -19
- package/lib/component/panels/extra/preferences/PreferencesContainer.d.ts +3 -2
- package/lib/component/panels/extra/preferences/PreferencesContainer.js +3 -3
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts +2 -2
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.js +5 -3
- package/lib/component/panels/filtersPanel/FilterPanel.d.ts +1 -5
- package/lib/component/panels/filtersPanel/FilterPanel.js +27 -60
- package/lib/component/panels/filtersPanel/FiltersTable.js +82 -45
- package/lib/component/panels/header/DefaultPanelHeader.d.ts +3 -1
- package/lib/component/panels/header/DefaultPanelHeader.js +6 -5
- package/lib/component/panels/header/PreferencesHeader.js +3 -2
- package/lib/component/panels/header/SpectraAutomaticPickingButton.js +3 -3
- package/lib/component/panels/predictionPanel/PredictionOptions.js +4 -4
- package/lib/component/panels/predictionPanel/PredictionPanel.js +1 -1
- package/lib/component/reducer/IgnoreActions.js +4 -8
- package/lib/component/reducer/Reducer.d.ts +32 -815
- package/lib/component/reducer/Reducer.js +45 -87
- package/lib/component/reducer/actions/AssignmentsActions.js +2 -4
- package/lib/component/reducer/actions/CorrelationsActions.js +4 -4
- package/lib/component/reducer/actions/DatabaseActions.js +10 -11
- package/lib/component/reducer/actions/DomainActions.d.ts +7 -8
- package/lib/component/reducer/actions/DomainActions.js +83 -78
- package/lib/component/reducer/actions/FiltersActions.d.ts +16 -20
- package/lib/component/reducer/actions/FiltersActions.js +414 -298
- package/lib/component/reducer/actions/HistoryActions.js +5 -5
- package/lib/component/reducer/actions/IntegralsActions.js +3 -2
- package/lib/component/reducer/actions/LoadActions.d.ts +10 -5
- package/lib/component/reducer/actions/LoadActions.js +92 -63
- package/lib/component/reducer/actions/MoleculeActions.d.ts +2 -1
- package/lib/component/reducer/actions/MoleculeActions.js +42 -25
- package/lib/component/reducer/actions/PeaksActions.d.ts +3 -3
- package/lib/component/reducer/actions/PeaksActions.js +24 -9
- package/lib/component/reducer/actions/PreferencesActions.d.ts +1 -2
- package/lib/component/reducer/actions/PreferencesActions.js +18 -39
- package/lib/component/reducer/actions/RangesActions.d.ts +1 -1
- package/lib/component/reducer/actions/RangesActions.js +29 -22
- package/lib/component/reducer/actions/SpectraAnalysisAction.d.ts +2 -6
- package/lib/component/reducer/actions/SpectraAnalysisAction.js +20 -31
- package/lib/component/reducer/actions/SpectrumsActions.d.ts +11 -3
- package/lib/component/reducer/actions/SpectrumsActions.js +239 -72
- package/lib/component/reducer/actions/ToolsActions.d.ts +7 -2
- package/lib/component/reducer/actions/ToolsActions.js +146 -101
- package/lib/component/reducer/actions/ZonesActions.d.ts +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +17 -11
- package/lib/component/reducer/core/Constants.d.ts +0 -1
- package/lib/component/reducer/core/Constants.js +0 -1
- package/lib/component/reducer/helper/GetClosestNumber.js +2 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +12 -10
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +6 -3
- package/lib/component/reducer/helper/getActiveSpectra.d.ts +3 -0
- package/lib/component/reducer/helper/getActiveSpectra.js +4 -0
- package/lib/component/reducer/helper/getActiveSpectraAsObject.d.ts +4 -0
- package/lib/component/reducer/helper/getActiveSpectraAsObject.js +14 -0
- package/lib/component/reducer/helper/getActiveSpectrum.js +5 -1
- package/lib/component/reducer/helper/getRange.d.ts +1 -0
- package/lib/component/reducer/helper/getRange.js +8 -5
- package/lib/component/reducer/helper/getSpectrum.js +5 -6
- package/lib/component/reducer/helper/getStrongestPeak.d.ts +1 -1
- package/lib/component/reducer/helper/getStrongestPeak.js +4 -4
- package/lib/component/reducer/helper/getVerticalAlign.d.ts +3 -0
- package/lib/component/reducer/helper/getVerticalAlign.js +4 -0
- package/lib/component/reducer/preferences/actions/addWorkspace.js +11 -7
- package/lib/component/reducer/preferences/actions/analyzeSpectra.d.ts +6 -0
- package/lib/component/reducer/preferences/actions/analyzeSpectra.js +48 -0
- package/lib/component/reducer/preferences/actions/applyGeneralPreferences.d.ts +3 -0
- package/lib/component/reducer/preferences/actions/applyGeneralPreferences.js +4 -0
- package/lib/component/reducer/preferences/actions/initPreferences.js +49 -48
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +6 -0
- package/lib/component/reducer/preferences/actions/matrixGeneration.js +42 -0
- package/lib/component/reducer/preferences/actions/removeWorkspace.js +5 -12
- package/lib/component/reducer/preferences/actions/setActiveWorkspace.d.ts +3 -0
- package/lib/component/reducer/preferences/actions/setActiveWorkspace.js +10 -0
- package/lib/component/reducer/preferences/actions/setPanelsPreferences.js +11 -6
- package/lib/component/reducer/preferences/actions/setPreferences.js +19 -22
- package/lib/component/reducer/preferences/actions/setVerticalSplitterPosition.d.ts +3 -0
- package/lib/component/reducer/preferences/actions/setVerticalSplitterPosition.js +6 -0
- package/lib/component/reducer/preferences/actions/setWorkspace.d.ts +2 -2
- package/lib/component/reducer/preferences/actions/setWorkspace.js +14 -4
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts +3 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +61 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +77 -258
- package/lib/component/reducer/preferences/preferencesReducer.js +54 -3
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts +3 -2
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js +2 -3
- package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts +5 -0
- package/lib/component/reducer/preferences/utilities/initWorkspace.js +5 -0
- package/lib/component/reducer/preferences/utilities/isReadOnlyWorkspace.d.ts +3 -0
- package/lib/component/reducer/preferences/utilities/isReadOnlyWorkspace.js +3 -0
- package/lib/component/reducer/preferences/utilities/mapNucleiFormatting.d.ts +1 -4
- package/lib/component/reducer/preferences/utilities/mapNucleiFormatting.js +7 -5
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +8 -0
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.js +18 -0
- package/lib/component/reducer/scaleReducer.d.ts +3 -1
- package/lib/component/reducer/scaleReducer.js +8 -0
- package/lib/component/reducer/types/Types.d.ts +10 -18
- package/lib/component/reducer/types/Types.js +9 -17
- package/lib/component/toolbar/BasicToolBar.js +30 -30
- package/lib/component/toolbar/FunctionToolBar.js +6 -18
- package/lib/component/toolbar/ToolBar.js +2 -2
- package/lib/component/toolbar/ToolTypes.d.ts +14 -4
- package/lib/component/toolbar/ToolTypes.js +172 -30
- package/lib/component/utility/Evaluate.js +2 -2
- package/lib/component/utility/FileUtility.d.ts +2 -28
- package/lib/component/utility/FileUtility.js +5 -59
- 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/convertPathArrayToString.d.ts +1 -0
- package/lib/component/utility/convertPathArrayToString.js +3 -0
- package/lib/component/utility/export.d.ts +1 -1
- package/lib/component/utility/export.js +48 -32
- package/lib/component/utility/formatNumber.d.ts +1 -1
- package/lib/component/utility/formatNumber.js +6 -4
- package/lib/component/utility/getSpectraByNucleus.d.ts +2 -3
- package/lib/component/utility/getSpectraObjectPaths.d.ts +5 -0
- package/lib/component/utility/getSpectraObjectPaths.js +22 -0
- package/lib/component/utility/jpathToArray.d.ts +1 -0
- package/lib/component/utility/jpathToArray.js +23 -0
- package/lib/component/utility/parseColor.d.ts +4 -0
- package/lib/component/utility/parseColor.js +15 -0
- package/lib/component/workspaces/Workspace.d.ts +90 -7
- package/lib/component/workspaces/assignment.d.ts +2 -0
- package/lib/component/workspaces/assignment.js +33 -0
- package/lib/component/workspaces/basic.js +5 -3
- package/lib/component/workspaces/embedded.js +3 -2
- package/lib/component/workspaces/exercise.js +1 -1
- package/lib/component/workspaces/index.d.ts +1 -0
- package/lib/component/workspaces/index.js +9 -1
- package/lib/component/workspaces/prediction.js +2 -1
- package/lib/component/workspaces/process1D.js +5 -2
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts +2 -2
- package/lib/component/workspaces/workspaceDefaultProperties.js +106 -2
- package/lib/data/Filters.d.ts +12 -17
- package/lib/data/Filters.js +12 -17
- package/lib/data/FiltersManager.d.ts +25 -12
- package/lib/data/FiltersManager.js +65 -30
- package/lib/data/PredictionManager.d.ts +2 -3
- package/lib/data/PredictionManager.js +20 -19
- package/lib/data/SpectraManager.d.ts +26 -7
- package/lib/data/SpectraManager.js +85 -57
- package/lib/data/constants/Multiplets.js +1 -0
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts +2 -3
- package/lib/data/data1d/Spectrum1D/SumManager.js +1 -1
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.d.ts +5 -0
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.js +4 -0
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +1 -1
- package/lib/data/data1d/Spectrum1D/generateSpectrumFromPublicationString.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts +3 -0
- package/lib/data/data1d/Spectrum1D/get1DColor.js +14 -0
- package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/get1DDataXY.js +1 -1
- package/lib/data/data1d/Spectrum1D/getShiftX.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/getShiftX.js +6 -0
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.js +2 -2
- package/lib/data/data1d/Spectrum1D/index.d.ts +23 -25
- package/lib/data/data1d/Spectrum1D/index.js +23 -25
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts +7 -2
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +48 -58
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +12 -11
- package/lib/data/data1d/Spectrum1D/integrals/checkIntegralKind.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts +14 -3
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.js +5 -2
- package/lib/data/data1d/Spectrum1D/integrals/mapIntegrals.d.ts +12 -0
- package/lib/data/data1d/Spectrum1D/integrals/mapIntegrals.js +36 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegrals.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegrals.js +6 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.js +2 -2
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.js +9 -11
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts +2 -3
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +5 -6
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts +3 -3
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.js +2 -2
- package/lib/data/data1d/Spectrum1D/peaks/lookupPeak.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/lookupPeak.js +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.d.ts +3 -2
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.js +26 -9
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts +3 -3
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +9 -7
- package/lib/data/data1d/Spectrum1D/peaks/updatePeaks.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/peaks/updatePeaks.js +7 -0
- package/lib/data/data1d/Spectrum1D/ranges/addRange.d.ts +8 -9
- package/lib/data/data1d/Spectrum1D/ranges/addRange.js +20 -9
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +4 -13
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.js +27 -7
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts +3 -3
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +9 -9
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +6 -5
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.d.ts +3 -2
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.js +4 -4
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts +10 -9
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js +6 -6
- package/lib/data/data1d/Spectrum1D/ranges/detectSignal.d.ts +10 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignal.js +20 -5
- package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.js +3 -4
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +37 -3
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.js +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.d.ts +37 -2
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.js +56 -21
- package/lib/data/data1d/Spectrum1D/ranges/updateRanges.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/ranges/updateRanges.js +9 -0
- package/lib/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.js +2 -2
- package/lib/data/data1d/database.d.ts +18 -3
- package/lib/data/data1d/database.js +50 -31
- package/lib/data/data1d/filter1d/apodization.d.ts +11 -9
- package/lib/data/data1d/filter1d/apodization.js +26 -8
- package/lib/data/data1d/filter1d/baselineCorrection.d.ts +8 -6
- package/lib/data/data1d/filter1d/baselineCorrection.js +4 -0
- package/lib/data/data1d/filter1d/digitalFilter.d.ts +12 -5
- package/lib/data/data1d/filter1d/digitalFilter.js +22 -14
- package/lib/data/data1d/filter1d/equallySpaced.d.ts +5 -5
- package/lib/data/data1d/filter1d/equallySpaced.js +10 -10
- package/lib/data/data1d/filter1d/exclusionZones.d.ts +7 -5
- package/lib/data/data1d/filter1d/exclusionZones.js +13 -9
- package/lib/data/data1d/filter1d/fft.d.ts +9 -4
- package/lib/data/data1d/filter1d/fft.js +41 -26
- package/lib/data/data1d/filter1d/phaseCorrection.d.ts +14 -4
- package/lib/data/data1d/filter1d/phaseCorrection.js +46 -18
- package/lib/data/data1d/filter1d/shiftX.d.ts +11 -5
- package/lib/data/data1d/filter1d/shiftX.js +12 -5
- package/lib/data/data1d/filter1d/signalProcessing.d.ts +26 -0
- package/lib/data/data1d/filter1d/signalProcessing.js +65 -0
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.d.ts +2 -2
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +6 -6
- package/lib/data/data1d/filter1d/zeroFilling.d.ts +14 -6
- package/lib/data/data1d/filter1d/zeroFilling.js +31 -22
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +68 -0
- package/lib/data/data1d/multipleSpectraAnalysis.js +211 -0
- package/lib/data/data2d/Processing2D.d.ts +3 -3
- package/lib/data/data2d/Processing2D.js +7 -18
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.d.ts +1 -0
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.js +9 -0
- package/lib/data/data2d/Spectrum2D/contours.d.ts +3 -3
- package/lib/data/data2d/Spectrum2D/contours.js +6 -5
- package/lib/data/data2d/Spectrum2D/get2DColor.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/get2DColor.js +17 -0
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.d.ts +6 -0
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.js +9 -0
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +2 -2
- package/lib/data/data2d/Spectrum2D/getMissingProjection.js +12 -12
- package/lib/data/data2d/Spectrum2D/getShift.d.ts +6 -0
- package/lib/data/data2d/Spectrum2D/getShift.js +15 -0
- package/lib/data/data2d/Spectrum2D/getSlice.d.ts +4 -4
- package/lib/data/data2d/Spectrum2D/getSlice.js +17 -14
- package/lib/data/data2d/Spectrum2D/index.d.ts +9 -11
- package/lib/data/data2d/Spectrum2D/index.js +9 -11
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts +2 -2
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +19 -31
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +2 -3
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts +2 -2
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js +4 -4
- package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.js +2 -44
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts +31 -2
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +2 -29
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +2 -2
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +7 -7
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts +43 -0
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.js +14 -0
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.d.ts +3 -0
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.js +15 -0
- package/lib/data/data2d/Spectrum2D/zones/mapZones.d.ts +33 -0
- package/lib/data/data2d/Spectrum2D/zones/mapZones.js +63 -0
- package/lib/data/data2d/Spectrum2D/zones/updateZones.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/zones/updateZones.js +7 -0
- package/lib/data/data2d/filter2d/shiftX.d.ts +8 -4
- package/lib/data/data2d/filter2d/shiftX.js +12 -5
- package/lib/data/data2d/filter2d/shiftY.d.ts +7 -3
- package/lib/data/data2d/filter2d/shiftY.js +11 -4
- package/lib/data/getDefaultMatrixFilters.d.ts +16 -0
- package/lib/data/getDefaultMatrixFilters.js +20 -0
- package/lib/data/matrixGeneration.d.ts +41 -0
- package/lib/data/matrixGeneration.js +120 -0
- package/lib/data/molecules/Molecule.d.ts +21 -12
- package/lib/data/molecules/Molecule.js +6 -0
- package/lib/data/molecules/MoleculeManager.d.ts +1 -1
- package/lib/data/molecules/MoleculeManager.js +3 -3
- package/lib/data/parseMeta/index.d.ts +5 -0
- package/lib/data/parseMeta/index.js +4 -0
- package/lib/data/parseMeta/isMetaFile.d.ts +2 -0
- package/lib/data/parseMeta/isMetaFile.js +7 -0
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts +29 -0
- package/lib/data/parseMeta/linkMetaWithSpectra.js +87 -0
- package/lib/data/parseMeta/mapErrors.d.ts +2 -0
- package/lib/data/parseMeta/mapErrors.js +7 -0
- package/lib/data/parseMeta/parseMetaFile.d.ts +3 -0
- package/lib/data/parseMeta/parseMetaFile.js +12 -0
- package/lib/data/parseMeta/prepareKey.d.ts +1 -0
- package/lib/data/parseMeta/prepareKey.js +6 -0
- package/lib/data/types/{data1d/Info1D.d.ts → common/Info.d.ts} +4 -4
- package/lib/data/types/common/MapOptions.d.ts +5 -0
- package/lib/data/types/common/Nucleus.d.ts +2 -0
- package/lib/data/types/data1d/ComplexData1D.d.ts +2 -0
- package/lib/data/types/data1d/MatrixOptions.d.ts +28 -0
- package/lib/data/types/data1d/RangeDetectionResult.d.ts +1 -1
- package/lib/data/types/data1d/index.d.ts +1 -13
- package/lib/data/types/data2d/index.d.ts +1 -9
- package/lib/data/types/view-state/PeaksViewState.d.ts +17 -0
- package/lib/data/utilities/FindUtilities.d.ts +7 -9
- package/lib/data/utilities/RangeUtilities.d.ts +7 -2
- package/lib/data/utilities/RangeUtilities.js +22 -25
- package/lib/data/utilities/ZoneUtilities.d.ts +1 -1
- package/lib/data/utilities/ZoneUtilities.js +23 -19
- package/lib/data/utilities/calculateSanPlot.d.ts +2 -3
- package/lib/data/utilities/calculateSanPlot.js +0 -1
- package/lib/data/utilities/checkModifierKeyActivated.js +0 -4
- package/lib/data/utilities/convertSpectraListToObject.d.ts +2 -0
- package/lib/data/utilities/convertSpectraListToObject.js +6 -0
- package/lib/data/utilities/generateChar.js +8 -6
- package/lib/data/utilities/generateColor.d.ts +5 -0
- package/lib/data/utilities/{getColor.js → generateColor.js} +6 -6
- package/lib/data/utilities/getAtom.js +1 -1
- package/lib/data/utilities/getAtomsFromMF.js +2 -2
- package/lib/data/utilities/getSum.js +6 -3
- package/lib/types/NMRiumDataReturn.d.ts +11 -10
- package/lib/types/NMRiumGeneralPreferences.d.ts +0 -2
- package/lib/types/NMRiumPanelPreferences.d.ts +2 -1
- package/lib/types/NMRiumToolBarPreferences.d.ts +2 -1
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/ApodizationLine.js +7 -5
- package/lib-cjs/component/1d/Chart1D.js +5 -2
- package/lib-cjs/component/1d/ExclusionZoneAnnotation.js +30 -3
- package/lib-cjs/component/1d/ExclusionZonesAnnotations.js +22 -7
- package/lib-cjs/component/1d/FooterBanner.js +24 -11
- package/lib-cjs/component/1d/Line.js +4 -10
- package/lib-cjs/component/1d/LinesSeries.js +6 -7
- package/lib-cjs/component/1d/SpectraLegends.js +65 -0
- package/lib-cjs/component/1d/Viewer1D.js +43 -13
- package/lib-cjs/component/1d/XAxis.js +5 -5
- package/lib-cjs/component/1d/YAxis.js +3 -7
- package/lib-cjs/component/1d/database/DatabaseSpectrum.js +11 -10
- package/lib-cjs/component/1d/database/ResurrectedDatabaseRanges.js +5 -3
- package/lib-cjs/component/1d/integral/IntegralIndicator.js +1 -7
- package/lib-cjs/component/1d/integral/IntegralResizable.js +6 -2
- package/lib-cjs/component/1d/integral/IntegralsSeries.js +3 -3
- package/lib-cjs/component/1d/jCouplingGraph/JGraph.js +5 -8
- package/lib-cjs/component/1d/multiAnalysis/AnalysisRange.js +16 -16
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +9 -13
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +145 -158
- package/lib-cjs/component/1d/multiplicityTree/buildTreeNode.js +3 -3
- package/lib-cjs/component/1d/peaks/PeakAnnotation.js +4 -7
- package/lib-cjs/component/1d/peaks/PeakAnnotations.js +19 -11
- package/lib-cjs/component/1d/peaks/PeaksShapes.js +9 -8
- package/lib-cjs/component/1d/peaks/usePeakShapesPath.js +10 -6
- package/lib-cjs/component/1d/ranges/AssignmentActionsButtons.js +18 -0
- package/lib-cjs/component/1d/ranges/Range.js +29 -40
- package/lib-cjs/component/1d/ranges/Ranges.js +8 -6
- package/lib-cjs/component/1d/tool/BaseLineZones.js +3 -2
- package/lib-cjs/component/1d/tool/PeakPointer.js +9 -15
- package/lib-cjs/component/1d/tool/XLabelPointer.js +2 -2
- package/lib-cjs/component/1d/utilities/scale.js +2 -2
- package/lib-cjs/component/1d-2d/components/FloatMoleculeStructures/ActionsButton.js +13 -0
- package/lib-cjs/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +84 -0
- package/lib-cjs/component/{tool → 1d-2d/components}/FloatMoleculeStructures/index.js +13 -11
- package/lib-cjs/component/1d-2d/components/SpectrumInfoBlock.js +40 -0
- package/lib-cjs/component/{tool → 1d-2d/tools}/BrushX.js +6 -6
- package/lib-cjs/component/{tool → 1d-2d/tools}/BrushXY.js +9 -8
- package/lib-cjs/component/{tool → 1d-2d/tools}/CrossLinePointer.js +8 -7
- package/lib-cjs/component/2d/{tools/slicing → 1d-tracer}/HorizontalSliceChart.js +17 -8
- package/lib-cjs/component/2d/{Left1DChart.js → 1d-tracer/Left1DChart.js} +7 -7
- package/lib-cjs/component/2d/{Top1DChart.js → 1d-tracer/Top1DChart.js} +4 -4
- package/lib-cjs/component/2d/{tools/slicing → 1d-tracer}/VerticalSliceChart.js +18 -9
- package/lib-cjs/component/2d/Chart2D.js +8 -7
- package/lib-cjs/component/2d/FooterBanner.js +27 -18
- package/lib-cjs/component/2d/{tools/slicing/SlicingView.js → SlicingView.js} +9 -9
- package/lib-cjs/component/2d/Viewer2D.js +15 -24
- package/lib-cjs/component/2d/XAxis.js +15 -19
- package/lib-cjs/component/2d/YAxis.js +11 -11
- package/lib-cjs/component/2d/fid/FidCanvas.js +116 -0
- package/lib-cjs/component/2d/fid/FidContainer.js +39 -0
- package/lib-cjs/component/2d/{Contours.js → ft/Contours.js} +29 -31
- package/lib-cjs/component/2d/ft/FTContainer.js +20 -0
- package/lib-cjs/component/2d/tools/XYLabelPointer.js +22 -8
- package/lib-cjs/component/2d/utilities/scale.js +5 -2
- package/lib-cjs/component/2d/zones/IndicationLines.js +5 -8
- package/lib-cjs/component/2d/zones/Signal.js +1 -2
- package/lib-cjs/component/2d/zones/SignalCrosshair.js +0 -1
- package/lib-cjs/component/2d/zones/Zone.js +9 -7
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +64 -54
- package/lib-cjs/component/EventsTrackers/MouseTracker.js +2 -2
- package/lib-cjs/component/NMRium.js +79 -56
- package/lib-cjs/component/SplitPaneWrapper.js +12 -4
- package/lib-cjs/component/assignment/actions/initAssignment.js +17 -17
- package/lib-cjs/component/assignment/actions/removeAssignment.js +2 -2
- package/lib-cjs/component/assignment/actions/toggleAssignment.js +1 -1
- package/lib-cjs/component/assignment/index.js +2 -2
- package/lib-cjs/component/context/LoggerContext.js +47 -0
- package/lib-cjs/component/context/PreferencesContext.js +14 -17
- package/lib-cjs/component/elements/ActiveButton.js +12 -6
- package/lib-cjs/component/elements/Button.js +100 -29
- package/lib-cjs/component/elements/ButtonToolTip.js +1 -1
- package/lib-cjs/component/elements/CheckBoxCell.js +1 -1
- package/lib-cjs/component/elements/ColorInput.js +43 -45
- package/lib-cjs/component/elements/ColumnWrapper.js +12 -0
- package/lib-cjs/component/elements/ContextMenu.js +5 -5
- package/lib-cjs/component/elements/EditableColumn.js +3 -5
- package/lib-cjs/component/elements/GroupPane.js +18 -0
- package/lib-cjs/component/elements/Header.js +21 -0
- package/lib-cjs/component/elements/Input.js +48 -49
- package/lib-cjs/component/elements/InputRange.js +2 -2
- package/lib-cjs/component/elements/IsotopesViewer.js +4 -1
- package/lib-cjs/component/elements/Label.js +11 -6
- package/lib-cjs/component/elements/MenuButton.js +4 -4
- package/lib-cjs/component/elements/Message.js +38 -0
- package/lib-cjs/component/elements/MolecularFormulaInput.js +3 -2
- package/lib-cjs/component/elements/MoleculeSelection.js +9 -7
- package/lib-cjs/component/elements/NextPrev.js +6 -2
- package/lib-cjs/component/elements/NumberInput.js +8 -38
- package/lib-cjs/component/elements/ReactTable/Elements/EmptyDataRow.js +15 -0
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableHeader.js +24 -4
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableRow.js +35 -47
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +166 -76
- package/lib-cjs/component/elements/ReactTable/ReactTableFlexLayout.js +18 -8
- package/lib-cjs/component/elements/ReactTable/Style.js +0 -8
- package/lib-cjs/component/elements/ReactTable/utility/addCustomColumn.js +4 -5
- package/lib-cjs/component/elements/ReactTable/utility/useRowSpan.js +3 -7
- package/lib-cjs/component/elements/SVGGroup.js +35 -0
- package/lib-cjs/component/elements/SaveButton.js +1 -0
- package/lib-cjs/component/elements/Select.js +27 -24
- package/lib-cjs/component/elements/Tab/DeleteButton.js +7 -7
- package/lib-cjs/component/elements/Tab/Tab.js +14 -19
- package/lib-cjs/component/elements/Tab/Tabs.js +13 -8
- package/lib-cjs/component/elements/ToolbarMenu.js +6 -6
- package/lib-cjs/component/elements/accordion/Accordion.js +2 -2
- package/lib-cjs/component/elements/accordion/AccordionItem.js +0 -1
- package/lib-cjs/component/elements/{draggble → draggable}/useDraggable.js +1 -3
- package/lib-cjs/component/elements/dropDownButton/DropDownButton.js +13 -7
- package/lib-cjs/component/elements/dropDownButton/DropDownList.js +21 -9
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColorPicker.js +3 -3
- package/lib-cjs/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib-cjs/component/elements/formik/FormikInput.js +18 -5
- package/lib-cjs/component/elements/formik/FormikNumberInput.js +13 -3
- package/lib-cjs/component/elements/formik/FormikOnChange.js +15 -9
- package/lib-cjs/component/elements/formik/FormikSelect.js +7 -3
- 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/ProgressIndicator.js +5 -2
- package/lib-cjs/component/elements/popup/Alert/Provider.js +37 -28
- package/lib-cjs/component/elements/popup/Alert/index.js +5 -5
- package/lib-cjs/component/elements/popup/Modal/ConfirmDialog.js +19 -26
- package/lib-cjs/component/elements/popup/Modal/ModalContent.js +3 -1
- package/lib-cjs/component/elements/popup/Modal/Provider.js +64 -68
- package/lib-cjs/component/elements/popup/Modal/index.js +7 -7
- package/lib-cjs/component/elements/resizer/SVGResizer.js +1 -3
- package/lib-cjs/component/elements/resizer/useResizer.js +1 -1
- package/lib-cjs/component/elements/toggle/ToggleButton.js +2 -2
- package/lib-cjs/component/header/ApodizationOptionsPanel.js +15 -34
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +35 -21
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +14 -47
- package/lib-cjs/component/header/Header.js +79 -43
- package/lib-cjs/component/header/HeaderContainer.js +0 -2
- package/lib-cjs/component/header/LogsHistory.js +113 -0
- package/lib-cjs/component/header/{ManualPhaseCorrectionPanel.js → PhaseCorrectionPanel.js} +28 -26
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +39 -39
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +43 -33
- package/lib-cjs/component/header/Zones2DOptionPanel.js +38 -27
- package/lib-cjs/component/highlight/index.js +5 -0
- package/lib-cjs/component/hooks/useActiveSpectra.js +10 -0
- package/lib-cjs/component/hooks/useActiveSpectrum.js +10 -0
- package/lib-cjs/component/hooks/useActiveSpectrumPeaksViewState.js +21 -0
- package/lib-cjs/component/hooks/useActiveSpectrumStyleOptions.js +5 -4
- package/lib-cjs/component/hooks/useCheckExperimentalFeature.js +1 -9
- package/lib-cjs/component/hooks/useCheckToolsVisibility.js +27 -9
- package/lib-cjs/component/hooks/useCombinedRefs.js +2 -2
- package/lib-cjs/component/hooks/useDatumWithSpectraStatistics.js +2 -2
- package/lib-cjs/component/hooks/useExport.js +31 -25
- package/lib-cjs/component/hooks/useFormatNumberByNucleus.js +6 -4
- package/lib-cjs/component/hooks/useIntegralPath.js +6 -4
- package/lib-cjs/component/hooks/usePanelPreferences.js +44 -12
- package/lib-cjs/component/hooks/useSaveSettings.js +104 -0
- package/lib-cjs/component/hooks/useSpectrum.js +3 -3
- package/lib-cjs/component/hooks/useToolsFunctions.js +4 -3
- package/lib-cjs/component/hooks/useVerticalAlign.js +10 -0
- package/lib-cjs/component/loader/DefaultSpinnerComponent.js +3 -4
- package/lib-cjs/component/loader/DropZone.js +61 -17
- package/lib-cjs/component/loader/NoData.js +1 -1
- package/lib-cjs/component/modal/AboutUsModal.js +41 -35
- package/lib-cjs/component/modal/AlignSpectraModal.js +3 -3
- package/lib-cjs/component/modal/CopyClipboardModal.js +5 -4
- package/lib-cjs/component/modal/EditPeakShapeModal.js +2 -2
- package/lib-cjs/component/modal/ExportAsJcampModal.js +67 -0
- package/lib-cjs/component/modal/ImportPublicationStringModal.js +3 -3
- package/lib-cjs/component/modal/LoadJCAMPModal.js +30 -19
- package/lib-cjs/component/modal/ModalStyle.js +0 -13
- package/lib-cjs/component/modal/MultipletAnalysisModal.js +12 -6
- package/lib-cjs/component/modal/PredictSpectraModal.js +13 -11
- package/lib-cjs/component/modal/SaveAsModal.js +15 -13
- package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +7 -3
- package/lib-cjs/component/modal/changeSum/SelectMolecule.js +5 -5
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +9 -7
- package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +9 -10
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +2 -2
- package/lib-cjs/component/modal/editRange/forms/components/SignalFormInfo.js +1 -1
- package/lib-cjs/component/modal/editRange/forms/validation/EditRangeValidation.js +21 -25
- package/lib-cjs/component/modal/editZone/EditPathLengthFormik.js +12 -17
- package/lib-cjs/component/modal/editZone/EditZoneModal.js +6 -3
- package/lib-cjs/component/modal/editZone/SignalsForm.js +1 -11
- package/lib-cjs/component/modal/editZone/validation/EditZoneValidation.js +12 -15
- package/lib-cjs/component/modal/metaImportation/MetaImportationModal.js +217 -0
- package/lib-cjs/component/modal/metaImportation/index.js +25 -0
- package/lib-cjs/component/modal/metaImportation/utils/mapColumnToSelectItems.js +13 -0
- package/lib-cjs/component/modal/setting/GeneralSettings.js +137 -51
- package/lib-cjs/component/modal/setting/WorkspaceItem.js +89 -52
- package/lib-cjs/component/modal/setting/settings-tabs/DatabasesTabContent.js +82 -0
- package/lib-cjs/component/modal/setting/{DisplayTabContent.js → settings-tabs/DisplayTabContent.js} +29 -31
- package/lib-cjs/component/modal/setting/settings-tabs/FormattingTabContent.js +85 -0
- package/lib-cjs/component/modal/setting/settings-tabs/GeneralTabContent.js +45 -0
- package/lib-cjs/component/modal/setting/settings-tabs/ImportationFiltersTabContent.js +90 -0
- package/lib-cjs/component/modal/setting/settings-tabs/InfoBlockTabContent.js +97 -0
- package/lib-cjs/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +44 -0
- package/lib-cjs/component/modal/setting/{ToolsTabContent.js → settings-tabs/ToolsTabContent.js} +25 -22
- package/lib-cjs/component/modal/setting/settingsValidation.js +30 -44
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignment.js +14 -2
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +3 -5
- package/lib-cjs/component/panels/AutomaticAssignment/useAutoAssignments.js +13 -16
- package/lib-cjs/component/panels/InformationPanel.js +82 -57
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +3 -3
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +13 -11
- package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +17 -17
- package/lib-cjs/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +54 -0
- package/lib-cjs/component/panels/MatrixGenerationPanel/FiltersOptions.js +111 -0
- package/lib-cjs/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +113 -21
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +5 -5
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +58 -25
- package/lib-cjs/component/panels/MoleculesPanel/Utilities.js +6 -6
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +16 -18
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +17 -23
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +58 -27
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisCell.js +20 -0
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.js +58 -0
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +62 -0
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.js +86 -0
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/{MultipleAnalysisCodeEditor.js → preferences/MultipleAnalysisCodeEditor.js} +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/index.js +134 -0
- package/lib-cjs/component/panels/PanelNoData.js +28 -0
- package/lib-cjs/component/panels/Panels.js +7 -8
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +16 -17
- package/lib-cjs/component/panels/PeaksPanel/PeaksPreferences.js +3 -9
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +31 -10
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +5 -5
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +12 -7
- package/lib-cjs/component/panels/RangesPanel/RangesPreferences.js +6 -9
- package/lib-cjs/component/panels/RangesPanel/RangesTable.js +17 -22
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +15 -10
- package/lib-cjs/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/TableColumns/ActionsColumn.js +4 -4
- package/lib-cjs/component/panels/RangesPanel/TableColumns/CouplingColumn.js +4 -4
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +37 -39
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeColumn.js +3 -4
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RelativeColumn.js +8 -11
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RemoveAssignmentsButton.js +12 -0
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +15 -24
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +6 -7
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +5 -5
- 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/SpectraPanelHeader.js +53 -37
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPreferences.js +77 -0
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraTable.js +235 -0
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListPanel.js +12 -5
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +39 -105
- package/lib-cjs/component/panels/SpectrumsPanel/base/ColorIndicator.js +14 -8
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +62 -38
- package/lib-cjs/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +65 -0
- package/lib-cjs/component/panels/SpectrumsPanel/base/SpectrumName.js +41 -0
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +3 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +14 -20
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +17 -18
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +16 -17
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +15 -10
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +20 -21
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +4 -5
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +17 -19
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +0 -2
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +12 -13
- package/lib-cjs/component/panels/SummaryPanel/Overview.js +2 -1
- package/lib-cjs/component/panels/SummaryPanel/SetMolecularFormulaModal.js +21 -21
- package/lib-cjs/component/panels/SummaryPanel/SetShiftTolerancesModal.js +17 -21
- package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +0 -1
- package/lib-cjs/component/panels/SummaryPanel/utilities/Utilities.js +105 -94
- package/lib-cjs/component/panels/SummaryPanel/utilities/useInView.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +2 -1
- package/lib-cjs/component/panels/ZonesPanel/ZonesPreferences.js +6 -9
- package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +30 -33
- package/lib-cjs/component/panels/ZonesPanel/ZonesTableRow.js +5 -4
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +91 -17
- package/lib-cjs/component/panels/databasePanel/DatabasePreferences.js +3 -6
- package/lib-cjs/component/panels/databasePanel/DatabaseStructureSearchModal.js +1 -1
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +34 -11
- package/lib-cjs/component/panels/extra/preferences/NucleusGroup.js +26 -0
- package/lib-cjs/component/panels/extra/preferences/NucleusPreferences.js +4 -18
- package/lib-cjs/component/panels/extra/preferences/PreferencesContainer.js +3 -3
- package/lib-cjs/component/panels/extra/utilities/MultiplicityUtilities.js +5 -3
- package/lib-cjs/component/panels/filtersPanel/FilterPanel.js +28 -61
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +81 -44
- package/lib-cjs/component/panels/header/DefaultPanelHeader.js +6 -5
- package/lib-cjs/component/panels/header/PreferencesHeader.js +3 -2
- package/lib-cjs/component/panels/header/SpectraAutomaticPickingButton.js +3 -3
- package/lib-cjs/component/panels/predictionPanel/PredictionOptions.js +3 -3
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +2 -2
- package/lib-cjs/component/reducer/IgnoreActions.js +4 -8
- package/lib-cjs/component/reducer/Reducer.js +46 -88
- package/lib-cjs/component/reducer/actions/AssignmentsActions.js +2 -4
- package/lib-cjs/component/reducer/actions/CorrelationsActions.js +4 -4
- package/lib-cjs/component/reducer/actions/DatabaseActions.js +9 -10
- package/lib-cjs/component/reducer/actions/DomainActions.js +83 -78
- package/lib-cjs/component/reducer/actions/FiltersActions.js +414 -298
- package/lib-cjs/component/reducer/actions/HistoryActions.js +5 -5
- package/lib-cjs/component/reducer/actions/IntegralsActions.js +3 -2
- package/lib-cjs/component/reducer/actions/LoadActions.js +95 -64
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +44 -26
- package/lib-cjs/component/reducer/actions/PeaksActions.js +25 -10
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +17 -38
- package/lib-cjs/component/reducer/actions/RangesActions.js +28 -21
- package/lib-cjs/component/reducer/actions/SpectraAnalysisAction.js +21 -62
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +239 -69
- package/lib-cjs/component/reducer/actions/ToolsActions.js +146 -100
- package/lib-cjs/component/reducer/actions/ZonesActions.js +16 -10
- package/lib-cjs/component/reducer/core/Constants.js +1 -2
- package/lib-cjs/component/reducer/helper/GetClosestNumber.js +2 -1
- package/lib-cjs/component/reducer/helper/Zoom1DManager.js +12 -10
- package/lib-cjs/component/reducer/helper/ZoomHistoryManager.js +6 -3
- package/lib-cjs/component/reducer/helper/getActiveSpectra.js +8 -0
- package/lib-cjs/component/reducer/helper/getActiveSpectraAsObject.js +19 -0
- package/lib-cjs/component/reducer/helper/getActiveSpectrum.js +5 -1
- package/lib-cjs/component/reducer/helper/getRange.js +10 -5
- package/lib-cjs/component/reducer/helper/getSpectrum.js +5 -6
- package/lib-cjs/component/reducer/helper/getStrongestPeak.js +4 -4
- package/lib-cjs/component/reducer/helper/getVerticalAlign.js +8 -0
- package/lib-cjs/component/reducer/preferences/actions/addWorkspace.js +14 -7
- package/lib-cjs/component/reducer/preferences/actions/analyzeSpectra.js +78 -0
- package/lib-cjs/component/reducer/preferences/actions/applyGeneralPreferences.js +8 -0
- package/lib-cjs/component/reducer/preferences/actions/initPreferences.js +48 -50
- package/lib-cjs/component/reducer/preferences/actions/matrixGeneration.js +47 -0
- package/lib-cjs/component/reducer/preferences/actions/removeWorkspace.js +5 -12
- package/lib-cjs/component/reducer/preferences/actions/setActiveWorkspace.js +14 -0
- package/lib-cjs/component/reducer/preferences/actions/setPanelsPreferences.js +11 -6
- package/lib-cjs/component/reducer/preferences/actions/setPreferences.js +19 -22
- package/lib-cjs/component/reducer/preferences/actions/setVerticalSplitterPosition.js +10 -0
- package/lib-cjs/component/reducer/preferences/actions/setWorkspace.js +14 -4
- package/lib-cjs/component/reducer/preferences/panelsPreferencesDefaultValues.js +63 -1
- package/lib-cjs/component/reducer/preferences/preferencesReducer.js +54 -3
- package/lib-cjs/component/reducer/preferences/utilities/getPreferencesByWorkspace.js +2 -3
- package/lib-cjs/component/reducer/preferences/utilities/initWorkspace.js +12 -0
- package/lib-cjs/component/reducer/preferences/utilities/isReadOnlyWorkspace.js +7 -0
- package/lib-cjs/component/reducer/preferences/utilities/mapNucleiFormatting.js +7 -5
- package/lib-cjs/component/reducer/preferences/utilities/mapWorkspaces.js +25 -0
- package/lib-cjs/component/reducer/scaleReducer.js +8 -0
- package/lib-cjs/component/reducer/types/Types.js +12 -20
- package/lib-cjs/component/toolbar/BasicToolBar.js +29 -29
- package/lib-cjs/component/toolbar/FunctionToolBar.js +6 -41
- package/lib-cjs/component/toolbar/ToolBar.js +2 -2
- package/lib-cjs/component/toolbar/ToolTypes.js +172 -30
- package/lib-cjs/component/utility/Evaluate.js +2 -2
- package/lib-cjs/component/utility/FileUtility.js +5 -63
- 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/convertPathArrayToString.js +7 -0
- package/lib-cjs/component/utility/export.js +48 -55
- package/lib-cjs/component/utility/formatNumber.js +6 -4
- package/lib-cjs/component/utility/getSpectraObjectPaths.js +26 -0
- package/lib-cjs/component/utility/jpathToArray.js +27 -0
- package/lib-cjs/component/utility/parseColor.js +19 -0
- package/lib-cjs/component/workspaces/assignment.js +36 -0
- package/lib-cjs/component/workspaces/basic.js +5 -3
- package/lib-cjs/component/workspaces/embedded.js +3 -2
- package/lib-cjs/component/workspaces/exercise.js +1 -1
- package/lib-cjs/component/workspaces/index.js +9 -1
- package/lib-cjs/component/workspaces/prediction.js +2 -1
- package/lib-cjs/component/workspaces/process1D.js +5 -2
- package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +129 -2
- package/lib-cjs/data/Filters.js +13 -33
- package/lib-cjs/data/FiltersManager.js +66 -30
- package/lib-cjs/data/PredictionManager.js +21 -20
- package/lib-cjs/data/SpectraManager.js +86 -59
- package/lib-cjs/data/constants/Multiplets.js +1 -0
- package/lib-cjs/data/data1d/Spectrum1D/SumManager.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/cloneDatum1D.js +8 -0
- package/lib-cjs/data/data1d/Spectrum1D/generateJGraphData.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/get1DColor.js +18 -0
- package/lib-cjs/data/data1d/Spectrum1D/get1DDataXY.js +3 -3
- package/lib-cjs/data/data1d/Spectrum1D/{shift/getShiftX.js → getShiftX.js} +5 -5
- package/lib-cjs/data/data1d/Spectrum1D/getSpectrumErrorValue.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/index.js +25 -27
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +48 -61
- package/lib-cjs/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +12 -11
- package/lib-cjs/data/data1d/Spectrum1D/integrals/initiateIntegrals.js +5 -2
- package/lib-cjs/data/data1d/Spectrum1D/integrals/mapIntegrals.js +40 -0
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateIntegrals.js +10 -0
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateRelatives.js +9 -11
- package/lib-cjs/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +5 -6
- package/lib-cjs/data/data1d/Spectrum1D/peaks/initiatePeaks.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/peaks/lookupPeak.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/peaks/mapPeaks.js +26 -9
- package/lib-cjs/data/data1d/Spectrum1D/peaks/optimizePeaks.js +9 -7
- package/lib-cjs/data/data1d/Spectrum1D/peaks/updatePeaks.js +11 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/addRange.js +20 -9
- package/lib-cjs/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +4 -13
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRange.js +30 -7
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +9 -9
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +6 -5
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRange.js +4 -4
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRanges.js +6 -6
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectSignal.js +20 -5
- package/lib-cjs/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.js +3 -4
- package/lib-cjs/data/data1d/Spectrum1D/ranges/initiateRanges.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/mapRanges.js +56 -21
- package/lib-cjs/data/data1d/Spectrum1D/ranges/updateRanges.js +13 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.js +2 -2
- package/lib-cjs/data/data1d/database.js +50 -31
- package/lib-cjs/data/data1d/filter1d/apodization.js +27 -9
- package/lib-cjs/data/data1d/filter1d/baselineCorrection.js +5 -1
- package/lib-cjs/data/data1d/filter1d/digitalFilter.js +23 -15
- package/lib-cjs/data/data1d/filter1d/equallySpaced.js +10 -10
- package/lib-cjs/data/data1d/filter1d/exclusionZones.js +14 -10
- package/lib-cjs/data/data1d/filter1d/fft.js +41 -26
- package/lib-cjs/data/data1d/filter1d/phaseCorrection.js +46 -18
- package/lib-cjs/data/data1d/filter1d/shiftX.js +13 -6
- package/lib-cjs/data/data1d/filter1d/signalProcessing.js +95 -0
- package/lib-cjs/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +6 -6
- package/lib-cjs/data/data1d/filter1d/zeroFilling.js +32 -23
- package/lib-cjs/data/data1d/multipleSpectraAnalysis.js +226 -0
- package/lib-cjs/data/data2d/Processing2D.js +7 -18
- package/lib-cjs/data/data2d/Spectrum2D/cloneDatum2D.js +13 -0
- package/lib-cjs/data/data2d/Spectrum2D/contours.js +6 -5
- package/lib-cjs/data/data2d/Spectrum2D/get2DColor.js +21 -0
- package/lib-cjs/data/data2d/Spectrum2D/get2DSpectrumErrorValue.js +13 -0
- package/lib-cjs/data/data2d/Spectrum2D/getMissingProjection.js +12 -12
- package/lib-cjs/data/data2d/Spectrum2D/{shift/getShift.js → getShift.js} +8 -9
- package/lib-cjs/data/data2d/Spectrum2D/getSlice.js +17 -14
- package/lib-cjs/data/data2d/Spectrum2D/index.js +11 -13
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +19 -31
- package/lib-cjs/data/data2d/Spectrum2D/zones/changeZoneSignal.js +4 -4
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZones.js +2 -44
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZonesManual.js +2 -29
- package/lib-cjs/data/data2d/Spectrum2D/zones/getDetectionZones.js +7 -7
- package/lib-cjs/data/data2d/Spectrum2D/zones/initiateZones.js +21 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/isZoneExists.js +19 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/mapZones.js +67 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/updateZones.js +11 -0
- package/lib-cjs/data/data2d/filter2d/shiftX.js +13 -6
- package/lib-cjs/data/data2d/filter2d/shiftY.js +12 -5
- package/lib-cjs/data/getDefaultMatrixFilters.js +27 -0
- package/lib-cjs/data/matrixGeneration.js +128 -0
- package/lib-cjs/data/molecules/Molecule.js +7 -1
- package/lib-cjs/data/molecules/MoleculeManager.js +3 -3
- package/lib-cjs/data/parseMeta/index.js +14 -0
- package/lib-cjs/data/parseMeta/isMetaFile.js +11 -0
- package/lib-cjs/data/parseMeta/linkMetaWithSpectra.js +96 -0
- package/lib-cjs/data/parseMeta/mapErrors.js +11 -0
- package/lib-cjs/data/parseMeta/parseMetaFile.js +16 -0
- package/lib-cjs/data/parseMeta/prepareKey.js +10 -0
- package/lib-cjs/data/utilities/RangeUtilities.js +22 -25
- package/lib-cjs/data/utilities/ZoneUtilities.js +23 -19
- package/lib-cjs/data/utilities/calculateSanPlot.js +0 -1
- package/lib-cjs/data/utilities/checkModifierKeyActivated.js +0 -4
- package/lib-cjs/data/utilities/convertSpectraListToObject.js +10 -0
- package/lib-cjs/data/utilities/generateChar.js +8 -6
- package/lib-cjs/data/utilities/{getColor.js → generateColor.js} +9 -9
- package/lib-cjs/data/utilities/getAtom.js +1 -1
- package/lib-cjs/data/utilities/getAtomsFromMF.js +2 -2
- package/lib-cjs/data/utilities/getSum.js +6 -3
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +62 -47
- package/lib/component/1d/SpectraTracker.d.ts +0 -3
- package/lib/component/1d/SpectraTracker.js +0 -66
- package/lib/component/1d/utilities/getVerticalShift.d.ts +0 -5
- package/lib/component/1d/utilities/getVerticalShift.js +0 -9
- package/lib/component/2d/Contours.js +0 -83
- package/lib/component/elements/ReactTable/ReactTableExpandable.d.ts +0 -11
- package/lib/component/elements/ReactTable/ReactTableExpandable.js +0 -27
- package/lib/component/elements/formik/FormikForm.d.ts +0 -10
- package/lib/component/elements/formik/FormikForm.js +0 -8
- package/lib/component/elements/popup/helpers.d.ts +0 -1
- package/lib/component/elements/popup/helpers.js +0 -9
- package/lib/component/header/ManualPhaseCorrectionPanel.d.ts +0 -2
- package/lib/component/modal/ExportAsMatrixModal.d.ts +0 -5
- package/lib/component/modal/ExportAsMatrixModal.js +0 -36
- package/lib/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.d.ts +0 -7
- package/lib/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.js +0 -15
- package/lib/component/modal/MultipleSpectraFiltersModal/FromToFilter.d.ts +0 -7
- package/lib/component/modal/MultipleSpectraFiltersModal/FromToFilter.js +0 -11
- package/lib/component/modal/MultipleSpectraFiltersModal/index.d.ts +0 -6
- package/lib/component/modal/MultipleSpectraFiltersModal/index.js +0 -119
- package/lib/component/modal/setting/DatabasesTabContent.d.ts +0 -7
- package/lib/component/modal/setting/DatabasesTabContent.js +0 -73
- package/lib/component/modal/setting/FormattingTabContent.js +0 -76
- package/lib/component/modal/setting/GeneralTabContent.js +0 -7
- package/lib/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.d.ts +0 -11
- package/lib/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +0 -59
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.d.ts +0 -6
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +0 -138
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.d.ts +0 -13
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.js +0 -67
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.d.ts +0 -18
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +0 -16
- package/lib/component/reducer/helper/getActiveSpectrumOrFail.d.ts +0 -3
- package/lib/component/reducer/helper/getActiveSpectrumOrFail.js +0 -6
- package/lib/component/tool/FloatMoleculeStructures/ActionsButton.js +0 -7
- package/lib/component/tool/FloatMoleculeStructures/DraggableStructure.d.ts +0 -20
- package/lib/component/tool/FloatMoleculeStructures/DraggableStructure.js +0 -59
- package/lib/data/data1d/MultipleAnalysis.d.ts +0 -53
- package/lib/data/data1d/MultipleAnalysis.js +0 -209
- package/lib/data/data1d/Spectrum1D/shift/getShiftX.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/shift/getShiftX.js +0 -6
- package/lib/data/data1d/Spectrum1D/shift/internal/updateIntegralXShift.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/shift/internal/updateIntegralXShift.js +0 -7
- package/lib/data/data1d/Spectrum1D/shift/internal/updatePeaksXShift.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/shift/internal/updatePeaksXShift.js +0 -12
- package/lib/data/data1d/Spectrum1D/shift/internal/updateRangesXShift.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/shift/internal/updateRangesXShift.js +0 -12
- package/lib/data/data1d/Spectrum1D/shift/updateXShift.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/shift/updateXShift.js +0 -10
- package/lib/data/data1d/Spectrum1D/toJSON.d.ts +0 -28
- package/lib/data/data1d/Spectrum1D/toJSON.js +0 -28
- package/lib/data/data1d/filter1d/autoPhaseCorrection.d.ts +0 -13
- package/lib/data/data1d/filter1d/autoPhaseCorrection.js +0 -40
- package/lib/data/data1d/filter1d/centerMean.d.ts +0 -13
- package/lib/data/data1d/filter1d/centerMean.js +0 -37
- package/lib/data/data1d/filter1d/fromTo.d.ts +0 -13
- package/lib/data/data1d/filter1d/fromTo.js +0 -31
- package/lib/data/data1d/filter1d/pareto.d.ts +0 -13
- package/lib/data/data1d/filter1d/pareto.js +0 -29
- package/lib/data/data1d/filter1d/standardDeviation.d.ts +0 -13
- package/lib/data/data1d/filter1d/standardDeviation.js +0 -37
- package/lib/data/data1d/filter1d/zeroFillingAndApodization.d.ts +0 -9
- package/lib/data/data1d/filter1d/zeroFillingAndApodization.js +0 -24
- package/lib/data/data2d/Spectrum2D/shift/getShift.d.ts +0 -5
- package/lib/data/data2d/Spectrum2D/shift/getShift.js +0 -16
- package/lib/data/data2d/Spectrum2D/shift/updateShift.d.ts +0 -2
- package/lib/data/data2d/Spectrum2D/shift/updateShift.js +0 -18
- package/lib/data/data2d/Spectrum2D/toJSON.d.ts +0 -24
- package/lib/data/data2d/Spectrum2D/toJSON.js +0 -26
- package/lib/data/types/common/Source.d.ts +0 -6
- package/lib/data/types/data1d/Data1D.d.ts +0 -5
- package/lib/data/types/data1d/Datum1D.d.ts +0 -22
- package/lib/data/types/data1d/Display1D.d.ts +0 -7
- package/lib/data/types/data1d/Integral.d.ts +0 -10
- package/lib/data/types/data1d/Integrals.d.ts +0 -6
- package/lib/data/types/data1d/Integrals.js +0 -1
- package/lib/data/types/data1d/Peak.d.ts +0 -5
- package/lib/data/types/data1d/Peak.js +0 -1
- package/lib/data/types/data1d/Peaks.d.ts +0 -5
- package/lib/data/types/data1d/Peaks.js +0 -1
- package/lib/data/types/data1d/Range.d.ts +0 -11
- package/lib/data/types/data1d/Range.js +0 -1
- package/lib/data/types/data1d/Ranges.d.ts +0 -6
- package/lib/data/types/data1d/Ranges.js +0 -1
- package/lib/data/types/data1d/Signal1D.d.ts +0 -5
- package/lib/data/types/data1d/Signal1D.js +0 -1
- package/lib/data/types/data1d/SumOptions.d.ts +0 -7
- package/lib/data/types/data1d/SumOptions.js +0 -1
- package/lib/data/types/data2d/Data2D.d.ts +0 -9
- package/lib/data/types/data2d/Data2D.js +0 -1
- package/lib/data/types/data2d/Datum2D.d.ts +0 -18
- package/lib/data/types/data2d/Datum2D.js +0 -1
- package/lib/data/types/data2d/Display2D.d.ts +0 -10
- package/lib/data/types/data2d/Display2D.js +0 -1
- package/lib/data/types/data2d/Info2D.d.ts +0 -8
- package/lib/data/types/data2d/Info2D.js +0 -1
- package/lib/data/types/data2d/Signal2D.d.ts +0 -7
- package/lib/data/types/data2d/Signal2D.js +0 -1
- package/lib/data/types/data2d/Signal2DAxisData.d.ts +0 -4
- package/lib/data/types/data2d/Signal2DAxisData.js +0 -1
- package/lib/data/types/data2d/Zone.d.ts +0 -9
- package/lib/data/types/data2d/Zone.js +0 -1
- package/lib/data/types/data2d/Zone2DAxisData.d.ts +0 -6
- package/lib/data/types/data2d/Zone2DAxisData.js +0 -1
- package/lib/data/types/data2d/Zones.d.ts +0 -7
- package/lib/data/types/data2d/Zones.js +0 -1
- package/lib/data/utilities/getColor.d.ts +0 -9
- package/lib/types/Preferences.d.ts +0 -5
- package/lib/types/Preferences.js +0 -1
- package/lib-cjs/component/1d/SpectraTracker.js +0 -71
- package/lib-cjs/component/1d/utilities/getVerticalShift.js +0 -12
- package/lib-cjs/component/elements/ReactTable/ReactTableExpandable.js +0 -32
- package/lib-cjs/component/elements/formik/FormikForm.js +0 -10
- package/lib-cjs/component/elements/popup/helpers.js +0 -13
- package/lib-cjs/component/modal/ExportAsMatrixModal.js +0 -41
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.js +0 -20
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/FromToFilter.js +0 -16
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/index.js +0 -147
- package/lib-cjs/component/modal/setting/DatabasesTabContent.js +0 -78
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +0 -81
- package/lib-cjs/component/modal/setting/GeneralTabContent.js +0 -12
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +0 -64
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +0 -166
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListItem.js +0 -72
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +0 -19
- package/lib-cjs/component/reducer/helper/getActiveSpectrumOrFail.js +0 -10
- package/lib-cjs/component/tool/FloatMoleculeStructures/ActionsButton.js +0 -13
- package/lib-cjs/component/tool/FloatMoleculeStructures/DraggableStructure.js +0 -66
- package/lib-cjs/data/data1d/MultipleAnalysis.js +0 -223
- package/lib-cjs/data/data1d/Spectrum1D/shift/internal/updateIntegralXShift.js +0 -11
- package/lib-cjs/data/data1d/Spectrum1D/shift/internal/updatePeaksXShift.js +0 -16
- package/lib-cjs/data/data1d/Spectrum1D/shift/internal/updateRangesXShift.js +0 -16
- package/lib-cjs/data/data1d/Spectrum1D/shift/updateXShift.js +0 -14
- package/lib-cjs/data/data1d/Spectrum1D/toJSON.js +0 -32
- package/lib-cjs/data/data1d/filter1d/autoPhaseCorrection.js +0 -46
- package/lib-cjs/data/data1d/filter1d/centerMean.js +0 -43
- package/lib-cjs/data/data1d/filter1d/fromTo.js +0 -37
- package/lib-cjs/data/data1d/filter1d/pareto.js +0 -35
- package/lib-cjs/data/data1d/filter1d/standardDeviation.js +0 -43
- package/lib-cjs/data/data1d/filter1d/zeroFillingAndApodization.js +0 -30
- package/lib-cjs/data/data2d/Spectrum2D/shift/updateShift.js +0 -22
- package/lib-cjs/data/data2d/Spectrum2D/toJSON.js +0 -30
- package/lib-cjs/data/types/data1d/Integrals.js +0 -2
- package/lib-cjs/data/types/data1d/Peak.js +0 -2
- package/lib-cjs/data/types/data1d/Peaks.js +0 -2
- package/lib-cjs/data/types/data1d/Range.js +0 -2
- package/lib-cjs/data/types/data1d/Ranges.js +0 -2
- package/lib-cjs/data/types/data1d/Signal1D.js +0 -2
- package/lib-cjs/data/types/data1d/SumOptions.js +0 -2
- package/lib-cjs/data/types/data2d/Data2D.js +0 -2
- package/lib-cjs/data/types/data2d/Datum2D.js +0 -2
- package/lib-cjs/data/types/data2d/Display2D.js +0 -2
- package/lib-cjs/data/types/data2d/Info2D.js +0 -2
- package/lib-cjs/data/types/data2d/Signal2D.js +0 -2
- package/lib-cjs/data/types/data2d/Signal2DAxisData.js +0 -2
- package/lib-cjs/data/types/data2d/Zone.js +0 -2
- package/lib-cjs/data/types/data2d/Zone2DAxisData.js +0 -2
- package/lib-cjs/data/types/data2d/Zones.js +0 -2
- package/lib-cjs/types/Preferences.js +0 -2
- /package/lib/component/{tool → 1d-2d/components}/FloatMoleculeStructures/ActionsButton.d.ts +0 -0
- /package/lib/component/{tool → 1d-2d/tools}/BrushX.d.ts +0 -0
- /package/lib/component/{tool → 1d-2d/tools}/BrushXY.d.ts +0 -0
- /package/lib/component/{tool → 1d-2d/tools}/CrossLinePointer.d.ts +0 -0
- /package/lib/component/2d/{tools/slicing/SlicingView.d.ts → SlicingView.d.ts} +0 -0
- /package/lib/component/2d/{Contours.d.ts → ft/Contours.d.ts} +0 -0
- /package/lib/component/2d/{tools/slicing → utilities}/SliceScale.d.ts +0 -0
- /package/lib/component/2d/{tools/slicing → utilities}/SliceScale.js +0 -0
- /package/lib/component/elements/{draggble → draggable}/SVGDraggable.js +0 -0
- /package/lib/component/modal/setting/{DisplayTabContent.d.ts → settings-tabs/DisplayTabContent.d.ts} +0 -0
- /package/lib/component/modal/setting/{FormattingTabContent.d.ts → settings-tabs/FormattingTabContent.d.ts} +0 -0
- /package/lib/component/modal/setting/{GeneralTabContent.d.ts → settings-tabs/GeneralTabContent.d.ts} +0 -0
- /package/lib/component/modal/setting/{ToolsTabContent.d.ts → settings-tabs/ToolsTabContent.d.ts} +0 -0
- /package/lib/component/panels/MultipleSpectraAnalysisPanel/{MultipleAnalysisCodeEditor.d.ts → preferences/MultipleAnalysisCodeEditor.d.ts} +0 -0
- /package/lib/data/types/common/{Source.js → Info.js} +0 -0
- /package/lib/data/types/{data1d/Data1D.js → common/MapOptions.js} +0 -0
- /package/lib/data/types/{data1d/Datum1D.js → common/Nucleus.js} +0 -0
- /package/lib/data/types/data1d/{Display1D.js → ComplexData1D.js} +0 -0
- /package/lib/data/types/data1d/{Info1D.js → MatrixOptions.js} +0 -0
- /package/lib/data/types/{data1d/Integral.js → view-state/PeaksViewState.js} +0 -0
- /package/lib-cjs/component/2d/{tools/slicing → utilities}/SliceScale.js +0 -0
- /package/lib-cjs/component/elements/{draggble → draggable}/SVGDraggable.js +0 -0
- /package/lib-cjs/data/types/common/{Source.js → Info.js} +0 -0
- /package/lib-cjs/data/types/{data1d/Data1D.js → common/MapOptions.js} +0 -0
- /package/lib-cjs/data/types/{data1d/Datum1D.js → common/Nucleus.js} +0 -0
- /package/lib-cjs/data/types/data1d/{Display1D.js → ComplexData1D.js} +0 -0
- /package/lib-cjs/data/types/data1d/{Info1D.js → MatrixOptions.js} +0 -0
- /package/lib-cjs/data/types/{data1d/Integral.js → view-state/PeaksViewState.js} +0 -0
|
@@ -27,6 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
+
const formik_1 = require("formik");
|
|
30
31
|
const react_1 = require("react");
|
|
31
32
|
const Yup = __importStar(require("yup"));
|
|
32
33
|
const Filters = __importStar(require("../../data/Filters"));
|
|
@@ -35,28 +36,19 @@ const ActionButtons_1 = __importDefault(require("../elements/ActionButtons"));
|
|
|
35
36
|
const Label_1 = __importDefault(require("../elements/Label"));
|
|
36
37
|
const Select_1 = __importDefault(require("../elements/Select"));
|
|
37
38
|
const FormikCheckBox_1 = __importDefault(require("../elements/formik/FormikCheckBox"));
|
|
38
|
-
const FormikForm_1 = __importDefault(require("../elements/formik/FormikForm"));
|
|
39
39
|
const FormikInput_1 = __importDefault(require("../elements/formik/FormikInput"));
|
|
40
40
|
const FormikOnChange_1 = __importDefault(require("../elements/formik/FormikOnChange"));
|
|
41
41
|
const useFilter_1 = require("../hooks/useFilter");
|
|
42
42
|
const Types_1 = require("../reducer/types/Types");
|
|
43
|
-
const
|
|
43
|
+
const Header_1 = require("./Header");
|
|
44
44
|
const HeaderContainer_1 = require("./HeaderContainer");
|
|
45
|
-
const labelStyle = {
|
|
46
|
-
label: {
|
|
47
|
-
fontWeight: 'normal',
|
|
48
|
-
fontSize: '12px',
|
|
49
|
-
},
|
|
50
|
-
wrapper: {
|
|
51
|
-
paddingRight: '5px',
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
45
|
const getAlgorithmsList = () => {
|
|
55
46
|
return ['airPLS', 'Polynomial'].map((val) => ({
|
|
56
47
|
label: val,
|
|
57
48
|
value: val.toLowerCase(),
|
|
58
49
|
}));
|
|
59
50
|
};
|
|
51
|
+
const inputStyle = { input: { width: '50px' } };
|
|
60
52
|
const formData = (algorithm, filterValues) => {
|
|
61
53
|
switch (algorithm) {
|
|
62
54
|
case 'airpls': {
|
|
@@ -67,6 +59,7 @@ const formData = (algorithm, filterValues) => {
|
|
|
67
59
|
return {
|
|
68
60
|
validation,
|
|
69
61
|
values: {
|
|
62
|
+
algorithm,
|
|
70
63
|
livePreview: true,
|
|
71
64
|
maxIterations: 100,
|
|
72
65
|
tolerance: 0.001,
|
|
@@ -82,6 +75,7 @@ const formData = (algorithm, filterValues) => {
|
|
|
82
75
|
return {
|
|
83
76
|
validation,
|
|
84
77
|
values: {
|
|
78
|
+
algorithm,
|
|
85
79
|
livePreview: true,
|
|
86
80
|
degree: 3,
|
|
87
81
|
...(filterValues?.algorithm === 'polynomial' ? filterValues : {}),
|
|
@@ -97,31 +91,15 @@ const formData = (algorithm, filterValues) => {
|
|
|
97
91
|
};
|
|
98
92
|
function BaseLineCorrectionInnerPanel(props) {
|
|
99
93
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
100
|
-
const formRef = (0, react_1.useRef)();
|
|
101
|
-
const
|
|
94
|
+
const formRef = (0, react_1.useRef)(null);
|
|
95
|
+
const { algorithm: baseAlgorithm = 'polynomial' } = props?.filter?.value || {};
|
|
96
|
+
const [algorithm, setAlgorithm] = (0, react_1.useState)(baseAlgorithm);
|
|
102
97
|
const handleApplyFilter = (values, triggerSource = 'apply') => {
|
|
103
|
-
let options = {};
|
|
104
|
-
switch (algorithm) {
|
|
105
|
-
case 'airpls':
|
|
106
|
-
options = {
|
|
107
|
-
algorithm,
|
|
108
|
-
...values,
|
|
109
|
-
};
|
|
110
|
-
break;
|
|
111
|
-
case 'polynomial':
|
|
112
|
-
options = {
|
|
113
|
-
algorithm,
|
|
114
|
-
...values,
|
|
115
|
-
};
|
|
116
|
-
break;
|
|
117
|
-
default:
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
98
|
dispatch({
|
|
121
99
|
type: triggerSource === 'onChange'
|
|
122
100
|
? Types_1.CALCULATE_BASE_LINE_CORRECTION_FILTER
|
|
123
101
|
: Types_1.APPLY_BASE_LINE_CORRECTION_FILTER,
|
|
124
|
-
options,
|
|
102
|
+
options: values,
|
|
125
103
|
});
|
|
126
104
|
};
|
|
127
105
|
const handleCancelFilter = () => {
|
|
@@ -129,23 +107,12 @@ function BaseLineCorrectionInnerPanel(props) {
|
|
|
129
107
|
type: Types_1.RESET_SELECTED_TOOL,
|
|
130
108
|
});
|
|
131
109
|
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
setAlgorithm(algorithm);
|
|
136
|
-
}
|
|
137
|
-
}, [props?.filter]);
|
|
138
|
-
const disableLivePreviewHandler = (event) => {
|
|
139
|
-
//disable filter Live preview
|
|
140
|
-
if (!event.target.checked) {
|
|
141
|
-
dispatch({
|
|
142
|
-
type: Types_1.DISABLE_FILTER_LIVE_PREVIEW,
|
|
143
|
-
payload: { selectedTool: ToolTypes_1.options.baselineCorrection.id },
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
};
|
|
110
|
+
function handleChangeAlgorithm(selectedAlgorithm) {
|
|
111
|
+
setAlgorithm(selectedAlgorithm);
|
|
112
|
+
}
|
|
147
113
|
const form = formData(algorithm, props?.filter?.value || {});
|
|
148
|
-
return ((0, jsx_runtime_1.jsxs)(HeaderContainer_1.HeaderContainer, { children: [(0, jsx_runtime_1.jsx)(Label_1.default, { title: "Algorithm: ", style:
|
|
114
|
+
return ((0, jsx_runtime_1.jsxs)(HeaderContainer_1.HeaderContainer, { children: [(0, jsx_runtime_1.jsx)(Label_1.default, { title: "Algorithm: ", style: Header_1.headerLabelStyle, children: (0, jsx_runtime_1.jsx)(Select_1.default, { items: getAlgorithmsList(), value: algorithm, onChange: handleChangeAlgorithm }) }), (0, jsx_runtime_1.jsx)(formik_1.Formik, { innerRef: formRef, onSubmit: (values) => handleApplyFilter(values), initialValues: form.values, validationSchema: form.validation, enableReinitialize: true, children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [algorithm && algorithm === 'airpls' && ((0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex' }, children: [(0, jsx_runtime_1.jsx)(Label_1.default, { title: "maxIterations:", style: Header_1.headerLabelStyle, children: (0, jsx_runtime_1.jsx)(FormikInput_1.default, { type: "number", name: "maxIterations", debounceTime: 250, style: inputStyle }) }), (0, jsx_runtime_1.jsx)(Label_1.default, { title: "tolerance:", style: Header_1.headerLabelStyle, children: (0, jsx_runtime_1.jsx)(FormikInput_1.default, { type: "number", name: "tolerance", debounceTime: 250, style: inputStyle }) })] })), algorithm &&
|
|
115
|
+
['autoPolynomial', 'polynomial'].includes(algorithm) && ((0, jsx_runtime_1.jsx)(Label_1.default, { title: "degree [ 1 - 6 ]:", shortTitle: "degree :", style: Header_1.headerLabelStyle, children: (0, jsx_runtime_1.jsx)(FormikInput_1.default, { type: "number", name: "degree", min: 1, max: 6, style: inputStyle, debounceTime: 250 }) })), (0, jsx_runtime_1.jsx)(Label_1.default, { title: "live preview ", htmlFor: "livePreview", style: Header_1.headerLabelStyle, children: (0, jsx_runtime_1.jsx)(FormikCheckBox_1.default, { name: "livePreview" }) }), (0, jsx_runtime_1.jsx)(FormikOnChange_1.default, { onChange: (values) => handleApplyFilter(values, 'onChange'), enableOnload: true })] }) }), (0, jsx_runtime_1.jsx)(ActionButtons_1.default, { onDone: () => formRef.current?.submitForm(), onCancel: handleCancelFilter })] }));
|
|
149
116
|
}
|
|
150
117
|
const MemoizedBaseLineCorrectionPanel = (0, react_1.memo)(BaseLineCorrectionInnerPanel);
|
|
151
118
|
function BaseLineCorrectionPanel() {
|
|
@@ -3,40 +3,82 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
const react_1 = require("react");
|
|
6
|
+
exports.headerLabelStyle = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
8
|
+
/** @jsxImportSource @emotion/react */
|
|
9
|
+
const react_1 = require("@emotion/react");
|
|
10
|
+
const react_2 = require("react");
|
|
10
11
|
const fa_1 = require("react-icons/fa");
|
|
12
|
+
const ui_1 = require("react-science/ui");
|
|
11
13
|
const constants_1 = require("../../constants");
|
|
12
14
|
const ChartContext_1 = require("../context/ChartContext");
|
|
13
15
|
const PreferencesContext_1 = require("../context/PreferencesContext");
|
|
16
|
+
const Button_1 = __importDefault(require("../elements/Button"));
|
|
17
|
+
const Header_1 = require("../elements/Header");
|
|
14
18
|
const DropDownButton_1 = __importDefault(require("../elements/dropDownButton/DropDownButton"));
|
|
15
|
-
const
|
|
19
|
+
const useSaveSettings_1 = require("../hooks/useSaveSettings");
|
|
16
20
|
const AboutUsModal_1 = __importDefault(require("../modal/AboutUsModal"));
|
|
17
21
|
const GeneralSettings_1 = __importDefault(require("../modal/setting/GeneralSettings"));
|
|
22
|
+
const WorkspaceItem_1 = __importDefault(require("../modal/setting/WorkspaceItem"));
|
|
18
23
|
const ToolTypes_1 = require("../toolbar/ToolTypes");
|
|
19
24
|
const ApodizationOptionsPanel_1 = __importDefault(require("./ApodizationOptionsPanel"));
|
|
20
25
|
const AutoPeakPickingOptionPanel_1 = __importDefault(require("./AutoPeakPickingOptionPanel"));
|
|
21
26
|
const BaseLineCorrectionPanel_1 = __importDefault(require("./BaseLineCorrectionPanel"));
|
|
22
|
-
const
|
|
27
|
+
const HeaderContainer_1 = require("./HeaderContainer");
|
|
28
|
+
const LogsHistory_1 = require("./LogsHistory");
|
|
29
|
+
const PhaseCorrectionPanel_1 = __importDefault(require("./PhaseCorrectionPanel"));
|
|
23
30
|
const RangesPickingOptionPanel_1 = __importDefault(require("./RangesPickingOptionPanel"));
|
|
24
31
|
const ZeroFillingOptionsPanel_1 = __importDefault(require("./ZeroFillingOptionsPanel"));
|
|
25
32
|
const Zones2DOptionPanel_1 = __importDefault(require("./Zones2DOptionPanel"));
|
|
33
|
+
exports.headerLabelStyle = {
|
|
34
|
+
label: {
|
|
35
|
+
fontWeight: 'normal',
|
|
36
|
+
fontSize: '12px',
|
|
37
|
+
},
|
|
38
|
+
wrapper: {
|
|
39
|
+
paddingRight: '5px',
|
|
40
|
+
height: '100%',
|
|
41
|
+
display: 'flex',
|
|
42
|
+
alignItems: 'center',
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const styles = (0, react_1.css) `
|
|
46
|
+
container-type: inline-size;
|
|
47
|
+
z-index: 1;
|
|
48
|
+
|
|
49
|
+
@container (max-width:1200px) {
|
|
50
|
+
.small-label {
|
|
51
|
+
display: block;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.large-label {
|
|
55
|
+
display: none !important;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@container (min-width:1200px) {
|
|
60
|
+
.small-label {
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.large-label {
|
|
65
|
+
display: block;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
`;
|
|
26
69
|
function HeaderInner(props) {
|
|
27
|
-
const { isFullscreen, onMaximize = () => null, selectedOptionPanel } = props;
|
|
28
|
-
const modal = (0, Modal_1.useModal)();
|
|
70
|
+
const { isFullscreen, onMaximize = () => null, selectedOptionPanel, height, } = props;
|
|
29
71
|
const { current: { display: { general }, }, workspace, dispatch, } = (0, PreferencesContext_1.usePreferences)();
|
|
30
72
|
const workspacesList = (0, PreferencesContext_1.useWorkspacesList)();
|
|
31
73
|
const hideGeneralSettings = !!(general?.hideGeneralSettings && workspace.base);
|
|
32
|
-
const selectedPanel = (0,
|
|
74
|
+
const selectedPanel = (0, react_2.useMemo)(() => {
|
|
33
75
|
switch (selectedOptionPanel) {
|
|
34
76
|
case ToolTypes_1.options.apodization.id:
|
|
35
77
|
return (0, jsx_runtime_1.jsx)(ApodizationOptionsPanel_1.default, {});
|
|
36
78
|
case ToolTypes_1.options.zeroFilling.id:
|
|
37
79
|
return (0, jsx_runtime_1.jsx)(ZeroFillingOptionsPanel_1.default, {});
|
|
38
80
|
case ToolTypes_1.options.phaseCorrection.id:
|
|
39
|
-
return (0, jsx_runtime_1.jsx)(
|
|
81
|
+
return (0, jsx_runtime_1.jsx)(PhaseCorrectionPanel_1.default, {});
|
|
40
82
|
case ToolTypes_1.options.peakPicking.id:
|
|
41
83
|
return (0, jsx_runtime_1.jsx)(AutoPeakPickingOptionPanel_1.default, {});
|
|
42
84
|
case ToolTypes_1.options.rangePicking.id:
|
|
@@ -49,51 +91,45 @@ function HeaderInner(props) {
|
|
|
49
91
|
break;
|
|
50
92
|
}
|
|
51
93
|
}, [selectedOptionPanel]);
|
|
52
|
-
const
|
|
53
|
-
modal.show((0, jsx_runtime_1.jsx)(GeneralSettings_1.default, {}), {
|
|
54
|
-
position: Modal_1.positions.TOP_CENTER,
|
|
55
|
-
enableResizing: true,
|
|
56
|
-
width: 600,
|
|
57
|
-
height: 400,
|
|
58
|
-
});
|
|
59
|
-
}, [modal]);
|
|
60
|
-
const openAboutUs = (0, react_1.useCallback)(() => {
|
|
61
|
-
modal.show((0, jsx_runtime_1.jsx)(AboutUsModal_1.default, {}), {
|
|
62
|
-
isBackgroundBlur: false,
|
|
63
|
-
position: Modal_1.positions.MIDDLE,
|
|
64
|
-
width: 500,
|
|
65
|
-
height: 480,
|
|
66
|
-
});
|
|
67
|
-
}, [modal]);
|
|
68
|
-
const changeWorkspaceHandler = (0, react_1.useCallback)((option) => {
|
|
94
|
+
const changeWorkspaceHandler = (0, react_2.useCallback)((option) => {
|
|
69
95
|
dispatch({
|
|
70
|
-
type: '
|
|
96
|
+
type: 'SET_ACTIVE_WORKSPACE',
|
|
71
97
|
payload: {
|
|
72
98
|
workspace: option.key,
|
|
73
99
|
},
|
|
74
100
|
});
|
|
75
101
|
}, [dispatch]);
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
102
|
+
function renderItem(item) {
|
|
103
|
+
return (0, jsx_runtime_1.jsx)(WorkspaceItem_1.default, { item: item });
|
|
104
|
+
}
|
|
105
|
+
return ((0, jsx_runtime_1.jsx)("div", { css: styles, children: (0, jsx_runtime_1.jsxs)(Header_1.Header, { style: { leftStyle: { flex: 1 } }, children: [(0, jsx_runtime_1.jsxs)(HeaderContainer_1.HeaderContainer, { style: {
|
|
106
|
+
alignItems: 'center',
|
|
107
|
+
}, children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(ui_1.Toolbar, { orientation: "horizontal", children: (0, jsx_runtime_1.jsx)(AboutUsModal_1.default, {}) }) }), (0, jsx_runtime_1.jsx)("div", { className: "toolOptionsPanel", style: { flex: 1 }, children: selectedPanel })] }), (0, jsx_runtime_1.jsxs)(HeaderContainer_1.HeaderContainer, { style: {
|
|
108
|
+
alignItems: 'center',
|
|
109
|
+
}, children: [!hideGeneralSettings && ((0, jsx_runtime_1.jsx)(DropDownButton_1.default, { data: workspacesList, selectedKey: workspace.current, onSelect: changeWorkspaceHandler, renderItem: renderItem })), (0, jsx_runtime_1.jsx)(SaveButton, {}), (0, jsx_runtime_1.jsx)(LogsHistory_1.LogsHistory, {}), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)(ui_1.Toolbar, { orientation: "horizontal", children: [(0, jsx_runtime_1.jsx)(ui_1.Toolbar.Item, { id: "user-manual", title: "User manual", onClick: () => window.open(constants_1.docsBaseUrl, '_blank'), children: (0, jsx_runtime_1.jsx)(fa_1.FaQuestionCircle, {}) }), !hideGeneralSettings && ((0, jsx_runtime_1.jsx)(GeneralSettings_1.default, { height: height / 2 })), !isFullscreen && ((0, jsx_runtime_1.jsx)(ui_1.Toolbar.Item, { id: "full-screen", onClick: onMaximize, title: "Full Screen", className: "windowButton", children: (0, jsx_runtime_1.jsx)(fa_1.FaRegWindowMaximize, {}) }))] }) })] })] }) }));
|
|
110
|
+
}
|
|
111
|
+
function SaveButton() {
|
|
112
|
+
const { workspace, workspaces, originalWorkspaces } = (0, PreferencesContext_1.usePreferences)();
|
|
113
|
+
const { saveSettings, SaveSettingsModal } = (0, useSaveSettings_1.useSaveSettings)();
|
|
114
|
+
const isWorkspaceHasSettingNotSaved = JSON.stringify(workspaces[workspace.current]) !==
|
|
115
|
+
JSON.stringify(originalWorkspaces[workspace.current]);
|
|
116
|
+
function handleSave() {
|
|
117
|
+
saveSettings();
|
|
118
|
+
}
|
|
119
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Button_1.default.Done, { wrapperClassName: "small-width-none", onClick: handleSave, fill: "clear", style: { fontSize: '1.4em', marginLeft: '5px' }, ...(!isWorkspaceHasSettingNotSaved && {
|
|
120
|
+
color: { base: 'gray', hover: 'gray' },
|
|
121
|
+
backgroundColor: { base: 'gray', hover: 'lightgray' },
|
|
122
|
+
disabled: true,
|
|
123
|
+
}), toolTip: "Save workspace locally in the browser", children: (0, jsx_runtime_1.jsx)(fa_1.FaRegSave, {}) }), (0, jsx_runtime_1.jsx)(SaveSettingsModal, {})] }));
|
|
89
124
|
}
|
|
90
|
-
const MemoizedHeader = (0,
|
|
125
|
+
const MemoizedHeader = (0, react_2.memo)(HeaderInner);
|
|
91
126
|
function HeaderWrapper({ isFullscreen, onMaximize }) {
|
|
92
|
-
const { toolOptions: { selectedOptionPanel }, } = (0, ChartContext_1.useChartData)();
|
|
127
|
+
const { toolOptions: { selectedOptionPanel }, height, } = (0, ChartContext_1.useChartData)();
|
|
93
128
|
return ((0, jsx_runtime_1.jsx)(MemoizedHeader, { ...{
|
|
94
129
|
selectedOptionPanel,
|
|
95
130
|
isFullscreen,
|
|
96
131
|
onMaximize,
|
|
132
|
+
height,
|
|
97
133
|
} }));
|
|
98
134
|
}
|
|
99
135
|
exports.default = HeaderWrapper;
|
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.HeaderContainer = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const containerStyle = {
|
|
6
|
-
padding: '5px',
|
|
7
|
-
height: '100%',
|
|
8
6
|
display: 'flex',
|
|
9
7
|
};
|
|
10
8
|
function HeaderContainer(props) {
|
|
@@ -0,0 +1,113 @@
|
|
|
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.LogsHistory = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const fa_1 = require("react-icons/fa");
|
|
10
|
+
const io5_1 = require("react-icons/io5");
|
|
11
|
+
const react_inspector_1 = require("react-inspector");
|
|
12
|
+
const ui_1 = require("react-science/ui");
|
|
13
|
+
const LoggerContext_1 = require("../context/LoggerContext");
|
|
14
|
+
const Button_1 = __importDefault(require("../elements/Button"));
|
|
15
|
+
const ColumnWrapper_1 = require("../elements/ColumnWrapper");
|
|
16
|
+
const ReactTable_1 = __importDefault(require("../elements/ReactTable/ReactTable"));
|
|
17
|
+
const logsDataFormat = new Intl.DateTimeFormat('default', {
|
|
18
|
+
hour: 'numeric',
|
|
19
|
+
minute: 'numeric',
|
|
20
|
+
second: 'numeric',
|
|
21
|
+
});
|
|
22
|
+
function handleRowStyle(data) {
|
|
23
|
+
const level = (data?.original).level;
|
|
24
|
+
let backgroundColor = 'lightgreen';
|
|
25
|
+
if (level > 40) {
|
|
26
|
+
backgroundColor = 'pink';
|
|
27
|
+
}
|
|
28
|
+
else if (level === 40) {
|
|
29
|
+
backgroundColor = 'lightyellow';
|
|
30
|
+
}
|
|
31
|
+
return { base: { backgroundColor } };
|
|
32
|
+
}
|
|
33
|
+
function getMaxLevelLogs(logs, lastReadLogId) {
|
|
34
|
+
const logsCounts = {};
|
|
35
|
+
for (const log of logs) {
|
|
36
|
+
if (log.id > lastReadLogId) {
|
|
37
|
+
logsCounts[log.level] = ++logsCounts[log.level] || 1;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
let maxLevel = 0;
|
|
41
|
+
for (const levelKey in logsCounts) {
|
|
42
|
+
const level = Number(levelKey);
|
|
43
|
+
if (level > maxLevel) {
|
|
44
|
+
maxLevel = level;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
let backgroundColor = '#2dd36f';
|
|
48
|
+
if (maxLevel > 40) {
|
|
49
|
+
backgroundColor = '#ff0000';
|
|
50
|
+
}
|
|
51
|
+
else if (maxLevel === 40) {
|
|
52
|
+
backgroundColor = '#ffc409';
|
|
53
|
+
}
|
|
54
|
+
return { backgroundColor, count: logsCounts[maxLevel] };
|
|
55
|
+
}
|
|
56
|
+
function LogsHistory() {
|
|
57
|
+
const { logsHistory, logger, markAsRead, lastReadLogId } = (0, LoggerContext_1.useLogger)();
|
|
58
|
+
const [isOpenDialog, openDialog, closeDialog] = (0, ui_1.useOnOff)(false);
|
|
59
|
+
const { count, backgroundColor } = getMaxLevelLogs(logsHistory, lastReadLogId);
|
|
60
|
+
const COLUMNS = (0, react_1.useMemo)(() => [
|
|
61
|
+
{
|
|
62
|
+
Header: '#',
|
|
63
|
+
accessor: (_, index) => index + 1,
|
|
64
|
+
Cell: ({ row }) => ((0, jsx_runtime_1.jsxs)("span", { children: [row.original.id > lastReadLogId && ((0, jsx_runtime_1.jsx)("div", { style: {
|
|
65
|
+
width: '5px',
|
|
66
|
+
height: '5px',
|
|
67
|
+
borderRadius: '50%',
|
|
68
|
+
backgroundColor: '#ffc409',
|
|
69
|
+
display: 'inline-block',
|
|
70
|
+
margin: '0 3px',
|
|
71
|
+
} })), row.index + 1] })),
|
|
72
|
+
style: { width: '40px' },
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
Header: 'Time',
|
|
76
|
+
accessor: (row) => logsDataFormat.format(row.time),
|
|
77
|
+
style: { width: '100px' },
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
Header: 'Label',
|
|
81
|
+
accessor: 'levelLabel',
|
|
82
|
+
style: { width: '60px' },
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
Header: 'Message',
|
|
86
|
+
accessor: 'message',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
Header: 'Error',
|
|
90
|
+
Cell: ({ row }) => {
|
|
91
|
+
const { error } = row.original;
|
|
92
|
+
return ((0, jsx_runtime_1.jsx)(ColumnWrapper_1.ColumnWrapper, { children: (0, jsx_runtime_1.jsx)(react_inspector_1.ObjectInspector, { data: error || {} }) }));
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
], [lastReadLogId]);
|
|
96
|
+
const sortedLogs = logsHistory.slice().sort((a, b) => b.time - a.time);
|
|
97
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Button_1.default.BarButton, { onClick: () => {
|
|
98
|
+
openDialog();
|
|
99
|
+
}, children: (0, jsx_runtime_1.jsxs)("div", { style: { position: 'relative' }, children: [(0, jsx_runtime_1.jsx)(io5_1.IoBugOutline, { fontSize: "1.4em" }), count && ((0, jsx_runtime_1.jsx)("span", { style: {
|
|
100
|
+
position: 'absolute',
|
|
101
|
+
top: '-0.4em',
|
|
102
|
+
left: '-0.4em',
|
|
103
|
+
backgroundColor,
|
|
104
|
+
borderRadius: '50%',
|
|
105
|
+
minWidth: '14px',
|
|
106
|
+
fontSize: '0.75em',
|
|
107
|
+
color: 'white',
|
|
108
|
+
}, children: count }))] }) }), (0, jsx_runtime_1.jsxs)(ui_1.Modal, { hasCloseButton: true, isOpen: isOpenDialog, onRequestClose: () => {
|
|
109
|
+
markAsRead();
|
|
110
|
+
closeDialog();
|
|
111
|
+
}, children: [(0, jsx_runtime_1.jsx)(ui_1.Modal.Header, { children: "Logs History " }), (0, jsx_runtime_1.jsx)(ui_1.Modal.Body, { children: (0, jsx_runtime_1.jsx)("div", { style: { width: '50vw', height: '50vh', padding: '0.5em' }, children: (0, jsx_runtime_1.jsx)(ReactTable_1.default, { columns: COLUMNS, data: sortedLogs, emptyDataRowText: "No Logs", rowStyle: handleRowStyle }) }) }), (0, jsx_runtime_1.jsx)(ui_1.Modal.Footer, { children: (0, jsx_runtime_1.jsx)(Button_1.default.Danger, { onClick: () => logger.clear(), fill: "outline", children: (0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex', alignItems: 'center' }, children: [(0, jsx_runtime_1.jsx)(fa_1.FaRegTrashAlt, {}), (0, jsx_runtime_1.jsx)("span", { style: { paddingLeft: '5px' }, children: "Clear Logs" })] }) }) })] })] }));
|
|
112
|
+
}
|
|
113
|
+
exports.LogsHistory = LogsHistory;
|
|
@@ -39,6 +39,7 @@ const Select_1 = __importDefault(require("../elements/Select"));
|
|
|
39
39
|
const useFilter_1 = require("../hooks/useFilter");
|
|
40
40
|
const useSpectrum_1 = __importDefault(require("../hooks/useSpectrum"));
|
|
41
41
|
const Types_1 = require("../reducer/types/Types");
|
|
42
|
+
const Header_1 = require("./Header");
|
|
42
43
|
const HeaderContainer_1 = require("./HeaderContainer");
|
|
43
44
|
const selectStyle = {
|
|
44
45
|
marginLeft: '5px',
|
|
@@ -47,8 +48,8 @@ const selectStyle = {
|
|
|
47
48
|
height: '20px',
|
|
48
49
|
};
|
|
49
50
|
const inputStyle = {
|
|
50
|
-
|
|
51
|
-
width: '
|
|
51
|
+
inputWrapper: {
|
|
52
|
+
width: '70px',
|
|
52
53
|
},
|
|
53
54
|
};
|
|
54
55
|
const phaseCorrectionTypes = {
|
|
@@ -71,7 +72,7 @@ const algorithms = [
|
|
|
71
72
|
},
|
|
72
73
|
];
|
|
73
74
|
const emptyData = { datum: {}, filter: null };
|
|
74
|
-
function
|
|
75
|
+
function PhaseCorrectionPanel() {
|
|
75
76
|
const { toolOptions: { data: { pivot }, }, } = (0, ChartContext_1.useChartData)();
|
|
76
77
|
const { data } = (0, useSpectrum_1.default)(emptyData);
|
|
77
78
|
const filter = (0, useFilter_1.useFilter)(Filters.phaseCorrection.id);
|
|
@@ -82,17 +83,21 @@ function ManualPhaseCorrectionPanel() {
|
|
|
82
83
|
const ph1Ref = (0, react_1.useRef)();
|
|
83
84
|
const [phaseCorrectionType, setPhaseCorrectionType] = (0, react_1.useState)(phaseCorrectionTypes.manual);
|
|
84
85
|
(0, react_1.useEffect)(() => {
|
|
85
|
-
if (filter) {
|
|
86
|
+
if (filter && phaseCorrectionType === phaseCorrectionTypes.manual) {
|
|
86
87
|
valueRef.current = filter.value;
|
|
87
88
|
setValue(filter.value);
|
|
88
|
-
ph0Ref.current.setValue(filter.value.ph0);
|
|
89
|
-
ph1Ref.current.setValue(filter.value.ph1);
|
|
90
89
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
if (ph0Ref.current && ph1Ref.current) {
|
|
91
|
+
if (filter) {
|
|
92
|
+
ph0Ref.current.setValue(filter.value.ph0);
|
|
93
|
+
ph1Ref.current.setValue(filter.value.ph1);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
ph0Ref.current.setValue(valueRef.current.ph0);
|
|
97
|
+
ph1Ref.current.setValue(valueRef.current.ph1);
|
|
98
|
+
}
|
|
94
99
|
}
|
|
95
|
-
}, [filter]);
|
|
100
|
+
}, [filter, phaseCorrectionType]);
|
|
96
101
|
const handleApplyFilter = (0, react_1.useCallback)(() => {
|
|
97
102
|
switch (phaseCorrectionType) {
|
|
98
103
|
case phaseCorrectionTypes.automatic: {
|
|
@@ -122,13 +127,19 @@ function ManualPhaseCorrectionPanel() {
|
|
|
122
127
|
if (filedName === 'ph1' && data.re) {
|
|
123
128
|
const diff0 = newValues.ph0 - valueRef.current.ph0;
|
|
124
129
|
const diff1 = newValues.ph1 - valueRef.current.ph1;
|
|
125
|
-
newValues.ph0 +=
|
|
130
|
+
newValues.ph0 +=
|
|
131
|
+
diff0 - (diff1 * (data.re.length - pivot?.index)) / data.re.length;
|
|
126
132
|
}
|
|
127
133
|
dispatch({
|
|
128
134
|
type: Types_1.CALCULATE_MANUAL_PHASE_CORRECTION_FILTER,
|
|
129
135
|
value: newValues,
|
|
130
136
|
});
|
|
131
137
|
}, [data.re, dispatch, pivot?.index]);
|
|
138
|
+
const updateInputRangeInitialValue = (0, react_1.useCallback)((value) => {
|
|
139
|
+
// update InputRange initial value
|
|
140
|
+
ph0Ref.current.setValue(value.ph0);
|
|
141
|
+
ph1Ref.current.setValue(value.ph1);
|
|
142
|
+
}, []);
|
|
132
143
|
const handleInput = (0, react_1.useCallback)((e) => {
|
|
133
144
|
const { name, value } = e.target;
|
|
134
145
|
if (e.target) {
|
|
@@ -136,27 +147,18 @@ function ManualPhaseCorrectionPanel() {
|
|
|
136
147
|
if (String(value).trim() !== '-') {
|
|
137
148
|
calcPhaseCorrectionHandler(newValue, name);
|
|
138
149
|
}
|
|
139
|
-
|
|
140
|
-
switch (name) {
|
|
141
|
-
case 'ph0':
|
|
142
|
-
ph0Ref.current.setValue(newValue.ph0);
|
|
143
|
-
break;
|
|
144
|
-
case 'ph1':
|
|
145
|
-
ph1Ref.current.setValue(newValue.ph1);
|
|
146
|
-
break;
|
|
147
|
-
default:
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
+
updateInputRangeInitialValue(newValue);
|
|
150
151
|
valueRef.current = newValue;
|
|
151
152
|
setValue(valueRef.current);
|
|
152
153
|
}
|
|
153
|
-
}, [calcPhaseCorrectionHandler]);
|
|
154
|
+
}, [calcPhaseCorrectionHandler, updateInputRangeInitialValue]);
|
|
154
155
|
const handleRangeChange = (0, react_1.useCallback)((e) => {
|
|
155
156
|
const newValue = { ...valueRef.current, [e.name]: e.value };
|
|
156
157
|
calcPhaseCorrectionHandler(newValue, e.name);
|
|
158
|
+
updateInputRangeInitialValue(newValue);
|
|
157
159
|
valueRef.current = newValue;
|
|
158
160
|
setValue(valueRef.current);
|
|
159
|
-
}, [calcPhaseCorrectionHandler]);
|
|
161
|
+
}, [calcPhaseCorrectionHandler, updateInputRangeInitialValue]);
|
|
160
162
|
const handleCancelFilter = (0, react_1.useCallback)(() => {
|
|
161
163
|
dispatch({
|
|
162
164
|
type: Types_1.RESET_SELECTED_TOOL,
|
|
@@ -165,6 +167,6 @@ function ManualPhaseCorrectionPanel() {
|
|
|
165
167
|
const onChangeHandler = (0, react_1.useCallback)((val) => {
|
|
166
168
|
setPhaseCorrectionType(val);
|
|
167
169
|
}, []);
|
|
168
|
-
return ((0, jsx_runtime_1.jsxs)(HeaderContainer_1.HeaderContainer, { children: [(0, jsx_runtime_1.jsx)(Select_1.default, { onChange: onChangeHandler, items: algorithms, defaultValue: phaseCorrectionTypes.manual, style: selectStyle }), phaseCorrectionType === phaseCorrectionTypes.manual && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Label_1.default, { title: "PH0 :", style:
|
|
170
|
+
return ((0, jsx_runtime_1.jsxs)(HeaderContainer_1.HeaderContainer, { children: [(0, jsx_runtime_1.jsx)(Select_1.default, { onChange: onChangeHandler, items: algorithms, defaultValue: phaseCorrectionTypes.manual, style: selectStyle }), phaseCorrectionType === phaseCorrectionTypes.manual && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Label_1.default, { title: "PH0 :", style: Header_1.headerLabelStyle, children: (0, jsx_runtime_1.jsx)(Input_1.default, { name: "ph0", style: inputStyle, onChange: handleInput, value: value.ph0, type: "number", debounceTime: 250 }) }), (0, jsx_runtime_1.jsx)(Label_1.default, { title: "PH1 :", style: Header_1.headerLabelStyle, children: (0, jsx_runtime_1.jsx)(Input_1.default, { name: "ph1", style: inputStyle, onChange: handleInput, value: value.ph1, type: "number", debounceTime: 250 }) }), (0, jsx_runtime_1.jsx)(InputRange_1.default, { ref: ph0Ref, name: "ph0", label: "Change PH0 (click and drag)", shortLabel: "Ph0", style: { width: '20%' }, onChange: handleRangeChange }), (0, jsx_runtime_1.jsx)(InputRange_1.default, { ref: ph1Ref, name: "ph1", label: "Change PH1 (click and drag)", shortLabel: "Ph1", style: { width: '20%' }, onChange: handleRangeChange })] })), (0, jsx_runtime_1.jsx)(ActionButtons_1.default, { onDone: handleApplyFilter, onCancel: handleCancelFilter })] }));
|
|
169
171
|
}
|
|
170
|
-
exports.default =
|
|
172
|
+
exports.default = PhaseCorrectionPanel;
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
5
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
29
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
+
const formik_1 = require("formik");
|
|
7
31
|
const react_1 = require("react");
|
|
32
|
+
const Yup = __importStar(require("yup"));
|
|
8
33
|
const DispatchContext_1 = require("../context/DispatchContext");
|
|
9
34
|
const Button_1 = __importDefault(require("../elements/Button"));
|
|
10
|
-
const CheckBox_1 = __importDefault(require("../elements/CheckBox"));
|
|
11
35
|
const Label_1 = __importDefault(require("../elements/Label"));
|
|
12
|
-
const
|
|
36
|
+
const FormikCheckBox_1 = __importDefault(require("../elements/formik/FormikCheckBox"));
|
|
37
|
+
const FormikNumberInput_1 = __importDefault(require("../elements/formik/FormikNumberInput"));
|
|
13
38
|
const Types_1 = require("../reducer/types/Types");
|
|
39
|
+
const Header_1 = require("./Header");
|
|
14
40
|
const HeaderContainer_1 = require("./HeaderContainer");
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
label: {
|
|
22
|
-
fontWeight: 'normal',
|
|
23
|
-
fontSize: '12px',
|
|
24
|
-
},
|
|
25
|
-
wrapper: {
|
|
26
|
-
paddingRight: '5px',
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
const inputStyle = {
|
|
30
|
-
input: {
|
|
31
|
-
height: '100%',
|
|
32
|
-
width: '50px',
|
|
33
|
-
borderRadius: '5px',
|
|
34
|
-
border: '0.55px solid #c7c7c7',
|
|
35
|
-
margin: '0px',
|
|
36
|
-
},
|
|
37
|
-
inputContainer: {
|
|
38
|
-
flex: 2,
|
|
39
|
-
},
|
|
41
|
+
const validationSchema = Yup.object().shape({
|
|
42
|
+
minMaxRatio: Yup.number().min(0).required(),
|
|
43
|
+
});
|
|
44
|
+
const initialValues = {
|
|
45
|
+
minMaxRatio: 0.05,
|
|
46
|
+
lookNegative: false,
|
|
40
47
|
};
|
|
41
48
|
function RangesPickingOptionPanel() {
|
|
42
49
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
43
|
-
const
|
|
44
|
-
const minMaxRatioRef = (0, react_1.useRef)();
|
|
45
|
-
const handleApplyFilter = (0, react_1.useCallback)(() => {
|
|
50
|
+
const handleRangesPicking = (0, react_1.useCallback)((values) => {
|
|
46
51
|
dispatch({
|
|
47
52
|
type: Types_1.AUTO_RANGES_DETECTION,
|
|
48
|
-
|
|
49
|
-
peakPicking: {
|
|
50
|
-
minMaxRatio: Number(minMaxRatioRef.current.value) || 0.05,
|
|
51
|
-
lookNegative: lookNegativeRef.current.checked,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
53
|
+
payload: values,
|
|
54
54
|
});
|
|
55
55
|
}, [dispatch]);
|
|
56
|
-
return ((0, jsx_runtime_1.
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
return ((0, jsx_runtime_1.jsx)(HeaderContainer_1.HeaderContainer, { children: (0, jsx_runtime_1.jsx)(formik_1.Formik, { onSubmit: handleRangesPicking, initialValues: initialValues, validationSchema: validationSchema, children: ({ handleSubmit, isValid }) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Label_1.default, { title: "Detect negative:", htmlFor: "lookNegative", style: Header_1.headerLabelStyle, children: (0, jsx_runtime_1.jsx)(FormikCheckBox_1.default, { name: "lookNegative" }) }), (0, jsx_runtime_1.jsx)(Label_1.default, { title: "Min Max Ratio:", style: Header_1.headerLabelStyle, children: (0, jsx_runtime_1.jsx)(FormikNumberInput_1.default, { name: "minMaxRatio", style: {
|
|
57
|
+
width: '70px',
|
|
58
|
+
}, step: "0.01", min: 0 }) }), (0, jsx_runtime_1.jsx)(Button_1.default.Done, { onClick: () => handleSubmit(), style: { margin: '0 10px' }, disabled: !isValid, children: "Auto ranges picking" })] })) }) }));
|
|
59
59
|
}
|
|
60
60
|
exports.default = RangesPickingOptionPanel;
|