nmrium 0.60.1-pre.1741337420 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/ApodizationLine.d.ts.map +1 -1
- package/lib/component/1d/ApodizationLine.js +3 -1
- package/lib/component/1d/ApodizationLine.js.map +1 -1
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +5 -8
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/SVGContent1D.js +1 -1
- package/lib/component/1d/SVGContent1D.js.map +1 -1
- package/lib/component/1d/inset/InsetProvider.d.ts +0 -1
- package/lib/component/1d/inset/InsetProvider.d.ts.map +1 -1
- package/lib/component/1d/inset/InsetProvider.js +0 -3
- package/lib/component/1d/inset/InsetProvider.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.d.ts.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js +11 -3
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js.map +1 -1
- package/lib/component/1d/matrix/Boxplot.d.ts +0 -5
- package/lib/component/1d/matrix/Boxplot.d.ts.map +1 -1
- package/lib/component/1d/matrix/Boxplot.js +1 -1
- package/lib/component/1d/matrix/Boxplot.js.map +1 -1
- package/lib/component/1d/matrix/Stocsy.d.ts +0 -4
- package/lib/component/1d/matrix/Stocsy.d.ts.map +1 -1
- package/lib/component/1d/matrix/Stocsy.js +2 -2
- package/lib/component/1d/matrix/Stocsy.js.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +45 -30
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts +2 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.d.ts +1 -9
- package/lib/component/1d/peaks/PeakAnnotations.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.js +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts +1 -2
- package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts +0 -1
- package/lib/component/1d/ranges/Range.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.js +11 -15
- package/lib/component/1d/ranges/Range.js.map +1 -1
- package/lib/component/1d/ranges/Ranges.d.ts.map +1 -1
- package/lib/component/1d/ranges/Ranges.js +4 -5
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d/tool/BaseLine.d.ts.map +1 -1
- package/lib/component/1d/tool/BaseLine.js +5 -3
- package/lib/component/1d/tool/BaseLine.js.map +1 -1
- package/lib/component/1d/tool/PivotIndicator1D.js +5 -3
- package/lib/component/1d/tool/PivotIndicator1D.js.map +1 -1
- package/lib/component/1d/utilities/scale.d.ts +1 -7
- package/lib/component/1d/utilities/scale.d.ts.map +1 -1
- package/lib/component/1d/utilities/scale.js +2 -39
- package/lib/component/1d/utilities/scale.js.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.d.ts +6 -8
- package/lib/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.js.map +1 -1
- package/lib/component/2d/SVGContent2D.d.ts +0 -1
- package/lib/component/2d/SVGContent2D.d.ts.map +1 -1
- package/lib/component/2d/SVGContent2D.js +0 -5
- package/lib/component/2d/SVGContent2D.js.map +1 -1
- package/lib/component/2d/tools/PivotIndicator.d.ts.map +1 -1
- package/lib/component/2d/tools/PivotIndicator.js +9 -7
- package/lib/component/2d/tools/PivotIndicator.js.map +1 -1
- package/lib/component/2d/utilities/scale.d.ts +1 -19
- package/lib/component/2d/utilities/scale.d.ts.map +1 -1
- package/lib/component/2d/utilities/scale.js +1 -19
- package/lib/component/2d/utilities/scale.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts +0 -6
- package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +1 -2
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.d.ts +0 -1
- package/lib/component/EventsTrackers/MouseTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js.map +1 -1
- package/lib/component/assignment/AssignmentsContext.d.ts +3 -4
- package/lib/component/assignment/AssignmentsContext.d.ts.map +1 -1
- package/lib/component/assignment/AssignmentsContext.js +0 -1
- package/lib/component/assignment/AssignmentsContext.js.map +1 -1
- package/lib/component/context/ChartContext.d.ts +0 -1
- package/lib/component/context/ChartContext.d.ts.map +1 -1
- package/lib/component/context/ChartContext.js +1 -1
- package/lib/component/context/ChartContext.js.map +1 -1
- package/lib/component/context/DispatchContext.d.ts +2 -2
- package/lib/component/context/DispatchContext.d.ts.map +1 -1
- package/lib/component/context/DispatchContext.js +1 -1
- package/lib/component/context/DispatchContext.js.map +1 -1
- package/lib/component/context/GlobalContext.d.ts +0 -5
- package/lib/component/context/GlobalContext.d.ts.map +1 -1
- package/lib/component/context/GlobalContext.js +1 -1
- package/lib/component/context/GlobalContext.js.map +1 -1
- package/lib/component/context/KeyModifierContext.d.ts +0 -2
- package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
- package/lib/component/context/KeyModifierContext.js +2 -2
- package/lib/component/context/KeyModifierContext.js.map +1 -1
- package/lib/component/context/LoggerContext.d.ts +0 -6
- package/lib/component/context/LoggerContext.d.ts.map +1 -1
- package/lib/component/context/LoggerContext.js +1 -1
- package/lib/component/context/LoggerContext.js.map +1 -1
- package/lib/component/context/PreferencesContext.d.ts +2 -2
- package/lib/component/context/PreferencesContext.d.ts.map +1 -1
- package/lib/component/context/PreferencesContext.js +1 -1
- package/lib/component/context/PreferencesContext.js.map +1 -1
- package/lib/component/context/ScaleContext.d.ts +0 -1
- package/lib/component/context/ScaleContext.d.ts.map +1 -1
- package/lib/component/context/ScaleContext.js +1 -1
- package/lib/component/context/ScaleContext.js.map +1 -1
- package/lib/component/elements/Button.d.ts +2 -2
- package/lib/component/elements/Button.d.ts.map +1 -1
- package/lib/component/elements/Button.js.map +1 -1
- package/lib/component/elements/ContextMenuBluePrint.d.ts +2 -2
- package/lib/component/elements/ContextMenuBluePrint.d.ts.map +1 -1
- package/lib/component/elements/DialogManager.d.ts.map +1 -1
- package/lib/component/elements/FormatField.d.ts +0 -2
- package/lib/component/elements/FormatField.d.ts.map +1 -1
- package/lib/component/elements/FormatField.js +1 -1
- package/lib/component/elements/FormatField.js.map +1 -1
- package/lib/component/elements/Input.d.ts +1 -1
- package/lib/component/elements/Input.d.ts.map +1 -1
- package/lib/component/elements/Input2Controller.d.ts +1 -1
- package/lib/component/elements/Input2Controller.d.ts.map +1 -1
- package/lib/component/elements/Label.d.ts +0 -1
- package/lib/component/elements/Label.d.ts.map +1 -1
- package/lib/component/elements/Label.js +1 -1
- package/lib/component/elements/Label.js.map +1 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts +1 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts.map +1 -1
- package/lib/component/elements/Sections.d.ts +3 -9
- package/lib/component/elements/Sections.d.ts.map +1 -1
- package/lib/component/elements/Sections.js +26 -18
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/Select.d.ts +1 -1
- package/lib/component/elements/Select.d.ts.map +1 -1
- package/lib/component/elements/Select2.d.ts +0 -1
- package/lib/component/elements/Select2.d.ts.map +1 -1
- package/lib/component/elements/Select2.js +1 -1
- package/lib/component/elements/Select2.js.map +1 -1
- package/lib/component/elements/Tab/Tab.d.ts +3 -2
- package/lib/component/elements/Tab/Tab.d.ts.map +1 -1
- package/lib/component/elements/Tab/Tabs.d.ts +1 -1
- package/lib/component/elements/Tab/Tabs.d.ts.map +1 -1
- package/lib/component/elements/Tab/Tabs.js +1 -1
- package/lib/component/elements/Tab/Tabs.js.map +1 -1
- package/lib/component/elements/export/ExportContent.d.ts +0 -4
- package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
- package/lib/component/elements/export/ExportContent.js +1 -1
- package/lib/component/elements/export/ExportContent.js.map +1 -1
- package/lib/component/elements/export/ExportManager.d.ts +2 -2
- package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
- package/lib/component/elements/export/ExportManager.js +29 -33
- package/lib/component/elements/export/ExportManager.js.map +1 -1
- package/lib/component/elements/export/ExportSettingsProvider.d.ts +1 -1
- package/lib/component/elements/export/ExportSettingsProvider.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts +0 -28
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.js +2 -2
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.js.map +1 -1
- package/lib/component/elements/export/utilities/getExportOptions.d.ts +1 -4
- package/lib/component/elements/export/utilities/getExportOptions.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/getExportOptions.js +2 -10
- package/lib/component/elements/export/utilities/getExportOptions.js.map +1 -1
- package/lib/component/elements/print/PrintContent.d.ts +0 -1
- package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
- package/lib/component/elements/print/PrintContent.js +1 -1
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/elements/print/PrintProvider.d.ts +1 -1
- package/lib/component/elements/print/PrintProvider.d.ts.map +1 -1
- package/lib/component/elements/print/pageSize.d.ts +2 -1
- package/lib/component/elements/print/pageSize.d.ts.map +1 -1
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +49 -19
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/useFormatNumberByNucleus.d.ts +2 -1
- package/lib/component/hooks/useFormatNumberByNucleus.d.ts.map +1 -1
- package/lib/component/hooks/useIndicatorLineColor.d.ts +2 -0
- package/lib/component/hooks/useIndicatorLineColor.d.ts.map +1 -0
- package/lib/component/hooks/useIndicatorLineColor.js +6 -0
- package/lib/component/hooks/useIndicatorLineColor.js.map +1 -0
- package/lib/component/hooks/usePanelPreferences.d.ts +1 -1
- package/lib/component/hooks/usePanelPreferences.d.ts.map +1 -1
- package/lib/component/hooks/usePanelPreferences.js.map +1 -1
- package/lib/component/hooks/useTableSortBy.d.ts +0 -5
- package/lib/component/hooks/useTableSortBy.d.ts.map +1 -1
- package/lib/component/hooks/useTableSortBy.js +1 -1
- package/lib/component/hooks/useTableSortBy.js.map +1 -1
- package/lib/component/hooks/useToolsFunctions.d.ts.map +1 -1
- package/lib/component/hooks/useToolsFunctions.js +10 -10
- package/lib/component/hooks/useToolsFunctions.js.map +1 -1
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRium.js +2 -2
- package/lib/component/main/NMRium.js.map +1 -1
- package/lib/component/modal/ExportAsJcampModal.js +2 -2
- package/lib/component/modal/PredictSpectraModal.d.ts +2 -2
- package/lib/component/modal/PredictSpectraModal.d.ts.map +1 -1
- package/lib/component/modal/PredictSpectraModal.js +1 -2
- package/lib/component/modal/PredictSpectraModal.js.map +1 -1
- package/lib/component/modal/PublicationStringModal.d.ts +10 -0
- package/lib/component/modal/PublicationStringModal.d.ts.map +1 -0
- package/lib/component/modal/PublicationStringModal.js +88 -0
- package/lib/component/modal/PublicationStringModal.js.map +1 -0
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts +2 -1
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.d.ts.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +26 -53
- package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +1 -4
- package/lib/component/modal/editRange/forms/components/DeltaInput.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js +1 -2
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js +3 -4
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js +2 -2
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +17 -5
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js.map +1 -1
- package/lib/component/modal/editRange/utils/couplingsToMultiplicity.d.ts +3 -0
- package/lib/component/modal/editRange/utils/couplingsToMultiplicity.d.ts.map +1 -0
- package/lib/component/modal/editRange/utils/couplingsToMultiplicity.js +4 -0
- package/lib/component/modal/editRange/utils/couplingsToMultiplicity.js.map +1 -0
- package/lib/component/modal/editRange/utils/mapCouplings.d.ts +3 -0
- package/lib/component/modal/editRange/utils/mapCouplings.d.ts.map +1 -0
- package/lib/component/modal/editRange/utils/mapCouplings.js +7 -0
- package/lib/component/modal/editRange/utils/mapCouplings.js.map +1 -0
- package/lib/component/modal/editRange/utils/mapSignals.d.ts +25 -0
- package/lib/component/modal/editRange/utils/mapSignals.d.ts.map +1 -0
- package/lib/component/modal/editRange/utils/mapSignals.js +18 -0
- package/lib/component/modal/editRange/utils/mapSignals.js.map +1 -0
- package/lib/component/modal/setting/GeneralSettings.d.ts +2 -0
- package/lib/component/modal/setting/GeneralSettings.d.ts.map +1 -1
- package/lib/component/modal/setting/GeneralSettings.js +7 -0
- package/lib/component/modal/setting/GeneralSettings.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +2 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts +0 -6
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +5 -9
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +2 -2
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +2 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js +2 -2
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +18 -6
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/Panels.d.ts.map +1 -1
- package/lib/component/panels/Panels.js +2 -2
- package/lib/component/panels/Panels.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts +0 -1
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js +9 -21
- package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +9 -9
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts +0 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +4 -4
- package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTabs.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTabs.js +7 -20
- package/lib/component/panels/SpectraPanel/SpectraTabs.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.d.ts +2 -4
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.js +6 -12
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts +2 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js +1 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts +2 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +1 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts +5 -8
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js +14 -83
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.d.ts +1 -6
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.js +1 -23
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.js.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +1 -3
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts +1 -8
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +0 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js.map +1 -1
- package/lib/component/panels/accordionItems.d.ts +3 -1
- package/lib/component/panels/accordionItems.d.ts.map +1 -1
- package/lib/component/panels/accordionItems.js +34 -39
- package/lib/component/panels/accordionItems.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts +0 -6
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +22 -19
- package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts +0 -5
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts +0 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts.map +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.js +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts +2 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts +0 -10
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts +0 -13
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js +16 -6
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js +0 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +3 -5
- package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts +2 -7
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +1 -1
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts +1 -7
- package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js +1 -1
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +15 -0
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts +2 -8
- package/lib/component/reducer/actions/LoadActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadActions.js +2 -1
- package/lib/component/reducer/actions/LoadActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +6 -0
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +5 -0
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +0 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectraAsObject.d.ts +0 -1
- package/lib/component/reducer/helper/getActiveSpectraAsObject.d.ts.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectraAsObject.js +0 -3
- package/lib/component/reducer/helper/getActiveSpectraAsObject.js.map +1 -1
- package/lib/component/reducer/helper/getRange.d.ts +1 -1
- package/lib/component/reducer/helper/getRange.d.ts.map +1 -1
- package/lib/component/reducer/helper/getRange.js +3 -12
- package/lib/component/reducer/helper/getRange.js.map +1 -1
- package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.d.ts +1 -2
- package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.d.ts.map +1 -1
- package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.js +0 -5
- package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.js.map +1 -1
- package/lib/component/reducer/preferences/actions/analyzeSpectra.js +2 -2
- package/lib/component/reducer/preferences/actions/analyzeSpectra.js.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +1 -2
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.js +1 -11
- package/lib/component/reducer/preferences/actions/matrixGeneration.js.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -5
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js +0 -30
- package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
- package/lib/component/utility/Events.d.ts +1 -1
- package/lib/component/utility/Events.d.ts.map +1 -1
- package/lib/component/utility/GroupByInfoKey.d.ts.map +1 -1
- package/lib/component/utility/LocalStorage.d.ts +0 -1
- package/lib/component/utility/LocalStorage.d.ts.map +1 -1
- package/lib/component/utility/LocalStorage.js +0 -3
- package/lib/component/utility/LocalStorage.js.map +1 -1
- package/lib/component/utility/export.d.ts +4 -7
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js +26 -41
- package/lib/component/utility/export.js.map +1 -1
- package/lib/component/utility/formatNumber.d.ts +1 -2
- package/lib/component/utility/formatNumber.d.ts.map +1 -1
- package/lib/component/utility/formatNumber.js +1 -6
- package/lib/component/utility/formatNumber.js.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/constants.d.ts +0 -4
- package/lib/constants.d.ts.map +1 -1
- package/lib/constants.js +0 -22
- package/lib/constants.js.map +1 -1
- package/lib/data/PredictionManager.d.ts +3 -2
- package/lib/data/PredictionManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.d.ts +1 -1
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/constants/DefaultPathLengths.d.ts +1 -1
- package/lib/data/constants/DefaultPathLengths.d.ts.map +1 -1
- package/lib/data/constants/Multiplets.d.ts +2 -1
- package/lib/data/constants/Multiplets.d.ts.map +1 -1
- package/lib/data/constants/References.d.ts +2 -2
- package/lib/data/constants/References.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts +0 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.js +0 -22
- package/lib/data/data1d/Spectrum1D/get1DColor.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/getReferenceShift.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/index.d.ts +2 -3
- package/lib/data/data1d/Spectrum1D/index.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/index.js +2 -3
- package/lib/data/data1d/Spectrum1D/index.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +3 -5
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts.map +1 -1
- package/lib/data/data1d/database.d.ts +3 -3
- package/lib/data/data1d/database.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +3 -15
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +1 -7
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data1d/spectrumSimulation.d.ts +2 -1
- package/lib/data/data1d/spectrumSimulation.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts +1 -2
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/index.d.ts +0 -1
- package/lib/data/data2d/Spectrum2D/index.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/index.js +0 -1
- package/lib/data/data2d/Spectrum2D/index.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts +2 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +0 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts.map +1 -1
- package/lib/data/matrixGeneration.d.ts +1 -1
- package/lib/data/matrixGeneration.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +0 -1
- package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.js +1 -1
- package/lib/data/molecules/MoleculeManager.js.map +1 -1
- package/lib/data/parseMeta/index.d.ts +1 -2
- package/lib/data/parseMeta/index.d.ts.map +1 -1
- package/lib/data/parseMeta/index.js +1 -1
- package/lib/data/parseMeta/index.js.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts +1 -8
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.js +1 -7
- package/lib/data/parseMeta/linkMetaWithSpectra.js.map +1 -1
- package/lib/data/utilities/RangeUtilities.d.ts +0 -6
- package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
- package/lib/data/utilities/RangeUtilities.js +1 -34
- package/lib/data/utilities/RangeUtilities.js.map +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts +0 -5
- package/lib/data/utilities/ZoneUtilities.d.ts.map +1 -1
- package/lib/data/utilities/ZoneUtilities.js +3 -11
- package/lib/data/utilities/ZoneUtilities.js.map +1 -1
- package/lib/utils/clipboard/clipboard.d.ts +2 -1
- package/lib/utils/clipboard/clipboard.d.ts.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.d.ts +2 -15
- package/lib/utils/clipboard/clipboardComponents.d.ts.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.js +1 -1
- package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
- package/lib/utils/clipboard/clipboardHooks.d.ts +1 -7
- package/lib/utils/clipboard/clipboardHooks.d.ts.map +1 -1
- package/lib/utils/clipboard/clipboardHooks.js +1 -39
- package/lib/utils/clipboard/clipboardHooks.js.map +1 -1
- package/lib/versionInfo.d.ts.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/lib/versionInfo.js.map +1 -1
- package/package.json +29 -37
- package/src/component/1d/ApodizationLine.tsx +3 -2
- package/src/component/1d/BrushTracker1D.tsx +5 -9
- package/src/component/1d/SVGContent1D.tsx +1 -1
- package/src/component/1d/inset/InsetProvider.tsx +0 -6
- package/src/component/1d/jCouplingGraph/JGraphVerticalAxis.tsx +41 -12
- package/src/component/1d/matrix/Boxplot.tsx +1 -1
- package/src/component/1d/matrix/Stocsy.tsx +2 -2
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +112 -96
- package/src/component/1d/multiplicityTree/generateTreeNodes.ts +1 -1
- package/src/component/1d/peaks/PeakAnnotations.tsx +1 -1
- package/src/component/1d/peaks/Peaks.tsx +2 -2
- package/src/component/1d/ranges/Range.tsx +26 -29
- package/src/component/1d/ranges/Ranges.tsx +1 -6
- package/src/component/1d/tool/BaseLine.tsx +6 -3
- package/src/component/1d/tool/PivotIndicator1D.tsx +6 -3
- package/src/component/1d/utilities/scale.ts +1 -51
- package/src/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.ts +11 -1
- package/src/component/2d/SVGContent2D.tsx +0 -6
- package/src/component/2d/tools/PivotIndicator.tsx +16 -7
- package/src/component/2d/utilities/scale.ts +0 -37
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +1 -1
- package/src/component/EventsTrackers/BrushTracker.tsx +2 -2
- package/src/component/EventsTrackers/MouseTracker.tsx +1 -1
- package/src/component/assignment/AssignmentsContext.ts +2 -5
- package/src/component/context/ChartContext.tsx +1 -1
- package/src/component/context/DispatchContext.tsx +2 -2
- package/src/component/context/GlobalContext.tsx +1 -1
- package/src/component/context/KeyModifierContext.tsx +2 -2
- package/src/component/context/LoggerContext.tsx +1 -1
- package/src/component/context/PreferencesContext.tsx +2 -2
- package/src/component/context/ScaleContext.tsx +1 -1
- package/src/component/elements/Button.tsx +3 -4
- package/src/component/elements/ContextMenuBluePrint.tsx +2 -2
- package/src/component/elements/FormatField.tsx +1 -1
- package/src/component/elements/Input.tsx +1 -1
- package/src/component/elements/Input2Controller.tsx +1 -1
- package/src/component/elements/Label.tsx +3 -2
- package/src/component/elements/ReactTable/ReactTable.tsx +1 -1
- package/src/component/elements/Sections.tsx +35 -24
- package/src/component/elements/Select.tsx +1 -1
- package/src/component/elements/Select2.tsx +1 -1
- package/src/component/elements/Tab/Tab.tsx +2 -2
- package/src/component/elements/Tab/Tabs.tsx +1 -1
- package/src/component/elements/export/ExportContent.tsx +1 -1
- package/src/component/elements/export/ExportManager.tsx +40 -45
- package/src/component/elements/export/ExportSettingsProvider.tsx +1 -1
- package/src/component/elements/export/utilities/exportOptionValidationSchema.ts +2 -2
- package/src/component/elements/export/utilities/getExportOptions.ts +2 -10
- package/src/component/elements/print/PrintContent.tsx +1 -1
- package/src/component/elements/print/PrintProvider.tsx +1 -1
- package/src/component/elements/print/pageSize.ts +1 -1
- package/src/component/hooks/useExport.tsx +43 -18
- package/src/component/hooks/useFormatNumberByNucleus.ts +1 -1
- package/src/component/hooks/useIndicatorLineColor.ts +6 -0
- package/src/component/hooks/usePanelPreferences.ts +15 -16
- package/src/component/hooks/useTableSortBy.tsx +1 -1
- package/src/component/hooks/useToolsFunctions.ts +11 -9
- package/src/component/main/NMRium.tsx +2 -6
- package/src/component/modal/ExportAsJcampModal.tsx +2 -2
- package/src/component/modal/PredictSpectraModal.tsx +1 -3
- package/src/component/modal/PublicationStringModal.tsx +168 -0
- package/src/component/modal/changeSum/ChangeSumModal.tsx +1 -1
- package/src/component/modal/editRange/EditRangeModal.tsx +31 -75
- package/src/component/modal/editRange/forms/components/DeltaInput.tsx +1 -6
- package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +1 -2
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +6 -5
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +2 -1
- package/src/component/modal/editRange/forms/validation/EditRangeValidation.ts +23 -3
- package/src/component/modal/editRange/utils/couplingsToMultiplicity.ts +5 -0
- package/src/component/modal/editRange/utils/mapCouplings.ts +11 -0
- package/src/component/modal/editRange/utils/mapSignals.ts +27 -0
- package/src/component/modal/setting/GeneralSettings.tsx +8 -0
- package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +2 -4
- package/src/component/modal/setting/settings-tabs/ExportTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/GeneralTabContent.tsx +11 -14
- package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +2 -5
- package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +2 -4
- package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +10 -2
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +22 -6
- package/src/component/panels/Panels.tsx +5 -3
- package/src/component/panels/RangesPanel/RangesHeader.tsx +10 -27
- package/src/component/panels/RangesPanel/RangesPanel.tsx +0 -1
- package/src/component/panels/RangesPanel/hooks/useEditRangeModal.tsx +8 -9
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +4 -6
- package/src/component/panels/SpectraPanel/SpectraTabs.tsx +4 -30
- package/src/component/panels/SpectraPanel/base/ColorIndicator.tsx +7 -23
- package/src/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.tsx +1 -3
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +1 -3
- package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +49 -110
- package/src/component/panels/SummaryPanel/CorrelationTable/Constants.ts +1 -24
- package/src/component/panels/SummaryPanel/utilities/Utilities.ts +0 -2
- package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.tsx +1 -1
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.tsx +2 -2
- package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +0 -5
- package/src/component/panels/accordionItems.tsx +47 -40
- package/src/component/panels/databasePanel/DatabasePanel.tsx +28 -23
- package/src/component/panels/databasePanel/DatabaseTable.tsx +1 -1
- package/src/component/panels/extra/utilities/settingImperativeHandle.ts +1 -1
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +5 -1
- package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +3 -3
- package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +17 -6
- package/src/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.tsx +0 -1
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +3 -8
- package/src/component/reducer/Reducer.ts +2 -9
- package/src/component/reducer/actions/DomainActions.ts +1 -2
- package/src/component/reducer/actions/FiltersActions.ts +16 -2
- package/src/component/reducer/actions/LoadActions.ts +2 -1
- package/src/component/reducer/actions/RangesActions.ts +6 -0
- package/src/component/reducer/actions/SpectraActions.ts +5 -0
- package/src/component/reducer/helper/ZoomHistoryManager.ts +1 -1
- package/src/component/reducer/helper/getActiveSpectraAsObject.ts +0 -7
- package/src/component/reducer/helper/getRange.ts +3 -11
- package/src/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.ts +0 -15
- package/src/component/reducer/preferences/actions/analyzeSpectra.ts +2 -2
- package/src/component/reducer/preferences/actions/matrixGeneration.ts +0 -18
- package/src/component/reducer/preferences/preferencesReducer.ts +2 -36
- package/src/component/utility/Events.tsx +1 -1
- package/src/component/utility/LocalStorage.ts +0 -4
- package/src/component/utility/export.ts +31 -47
- package/src/component/utility/formatNumber.ts +1 -7
- package/src/component/workspaces/workspaceDefaultProperties.ts +1 -0
- package/src/constants.ts +0 -23
- package/src/data/PredictionManager.ts +2 -2
- package/src/data/SpectraManager.ts +1 -1
- package/src/data/constants/DefaultPathLengths.ts +1 -1
- package/src/data/constants/Multiplets.ts +1 -1
- package/src/data/constants/References.ts +2 -2
- package/src/data/data1d/Spectrum1D/get1DColor.ts +0 -23
- package/src/data/data1d/Spectrum1D/getReferenceShift.ts +2 -1
- package/src/data/data1d/Spectrum1D/index.ts +1 -6
- package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/changeRangeSignal.ts +3 -5
- package/src/data/data1d/database.ts +3 -3
- package/src/data/data1d/multipleSpectraAnalysis.ts +2 -28
- package/src/data/data1d/spectrumSimulation.ts +1 -1
- package/src/data/data2d/Spectrum2D/contours.ts +1 -2
- package/src/data/data2d/Spectrum2D/index.ts +0 -1
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +1 -1
- package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +1 -1
- package/src/data/matrixGeneration.ts +1 -1
- package/src/data/molecules/MoleculeManager.ts +1 -1
- package/src/data/parseMeta/index.ts +1 -11
- package/src/data/parseMeta/linkMetaWithSpectra.ts +1 -13
- package/src/data/utilities/RangeUtilities.ts +1 -45
- package/src/data/utilities/ZoneUtilities.ts +3 -18
- package/src/utils/clipboard/clipboard.ts +1 -1
- package/src/utils/clipboard/clipboardComponents.tsx +3 -3
- package/src/utils/clipboard/clipboardHooks.ts +2 -58
- package/src/versionInfo.ts +1 -1
- package/lib/component/1d/YAxis.d.ts +0 -7
- package/lib/component/1d/YAxis.d.ts.map +0 -1
- package/lib/component/1d/YAxis.js +0 -25
- package/lib/component/1d/YAxis.js.map +0 -1
- package/lib/component/1d/ranges/AssignmentActionsButtons.d.ts +0 -12
- package/lib/component/1d/ranges/AssignmentActionsButtons.d.ts.map +0 -1
- package/lib/component/1d/ranges/AssignmentActionsButtons.js +0 -12
- package/lib/component/1d/ranges/AssignmentActionsButtons.js.map +0 -1
- package/lib/component/1d/utilities/getDecimalsCount.d.ts +0 -2
- package/lib/component/1d/utilities/getDecimalsCount.d.ts.map +0 -1
- package/lib/component/1d/utilities/getDecimalsCount.js +0 -7
- package/lib/component/1d/utilities/getDecimalsCount.js.map +0 -1
- package/lib/component/1d-2d/tools/BrushX.d.ts +0 -2
- package/lib/component/1d-2d/tools/BrushX.d.ts.map +0 -1
- package/lib/component/1d-2d/tools/BrushX.js +0 -36
- package/lib/component/1d-2d/tools/BrushX.js.map +0 -1
- package/lib/component/context/PrepareExportContext.d.ts +0 -22
- package/lib/component/context/PrepareExportContext.d.ts.map +0 -1
- package/lib/component/context/PrepareExportContext.js +0 -125
- package/lib/component/context/PrepareExportContext.js.map +0 -1
- package/lib/component/elements/ActiveButton.d.ts +0 -18
- package/lib/component/elements/ActiveButton.d.ts.map +0 -1
- package/lib/component/elements/ActiveButton.js +0 -34
- package/lib/component/elements/ActiveButton.js.map +0 -1
- package/lib/component/elements/AxisGroup.d.ts +0 -5
- package/lib/component/elements/AxisGroup.d.ts.map +0 -1
- package/lib/component/elements/AxisGroup.js +0 -14
- package/lib/component/elements/AxisGroup.js.map +0 -1
- package/lib/component/elements/ButtonToolTip.d.ts +0 -10
- package/lib/component/elements/ButtonToolTip.d.ts.map +0 -1
- package/lib/component/elements/ButtonToolTip.js +0 -7
- package/lib/component/elements/ButtonToolTip.js.map +0 -1
- package/lib/component/elements/CheckBox.d.ts +0 -7
- package/lib/component/elements/CheckBox.d.ts.map +0 -1
- package/lib/component/elements/CheckBox.js +0 -11
- package/lib/component/elements/CheckBox.js.map +0 -1
- package/lib/component/elements/ColorInput.d.ts +0 -10
- package/lib/component/elements/ColorInput.d.ts.map +0 -1
- package/lib/component/elements/ColorInput.js +0 -82
- package/lib/component/elements/ColorInput.js.map +0 -1
- package/lib/component/elements/MenuButton.d.ts +0 -32
- package/lib/component/elements/MenuButton.d.ts.map +0 -1
- package/lib/component/elements/MenuButton.js +0 -76
- package/lib/component/elements/MenuButton.js.map +0 -1
- package/lib/component/elements/Message.d.ts +0 -17
- package/lib/component/elements/Message.d.ts.map +0 -1
- package/lib/component/elements/Message.js +0 -35
- package/lib/component/elements/Message.js.map +0 -1
- package/lib/component/elements/NumberInput.d.ts +0 -14
- package/lib/component/elements/NumberInput.d.ts.map +0 -1
- package/lib/component/elements/NumberInput.js +0 -21
- package/lib/component/elements/NumberInput.js.map +0 -1
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.d.ts +0 -10
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js +0 -29
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js.map +0 -1
- package/lib/component/elements/ReactTable/Style.d.ts +0 -3
- package/lib/component/elements/ReactTable/Style.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/Style.js +0 -11
- package/lib/component/elements/ReactTable/Style.js.map +0 -1
- package/lib/component/elements/ResizableSVG.d.ts +0 -25
- package/lib/component/elements/ResizableSVG.d.ts.map +0 -1
- package/lib/component/elements/ResizableSVG.js +0 -84
- package/lib/component/elements/ResizableSVG.js.map +0 -1
- package/lib/component/elements/Table/Table.d.ts +0 -10
- package/lib/component/elements/Table/Table.d.ts.map +0 -1
- package/lib/component/elements/Table/Table.js +0 -14
- package/lib/component/elements/Table/Table.js.map +0 -1
- package/lib/component/elements/Table/TableBody.d.ts +0 -10
- package/lib/component/elements/Table/TableBody.d.ts.map +0 -1
- package/lib/component/elements/Table/TableBody.js +0 -20
- package/lib/component/elements/Table/TableBody.js.map +0 -1
- package/lib/component/elements/Table/TableCell.d.ts +0 -14
- package/lib/component/elements/Table/TableCell.d.ts.map +0 -1
- package/lib/component/elements/Table/TableCell.js +0 -27
- package/lib/component/elements/Table/TableCell.js.map +0 -1
- package/lib/component/elements/Table/TableHead.d.ts +0 -10
- package/lib/component/elements/Table/TableHead.d.ts.map +0 -1
- package/lib/component/elements/Table/TableHead.js +0 -17
- package/lib/component/elements/Table/TableHead.js.map +0 -1
- package/lib/component/elements/Table/TableRow.d.ts +0 -11
- package/lib/component/elements/Table/TableRow.d.ts.map +0 -1
- package/lib/component/elements/Table/TableRow.js +0 -12
- package/lib/component/elements/Table/TableRow.js.map +0 -1
- package/lib/component/elements/ToggleButton.d.ts +0 -15
- package/lib/component/elements/ToggleButton.d.ts.map +0 -1
- package/lib/component/elements/ToggleButton.js +0 -30
- package/lib/component/elements/ToggleButton.js.map +0 -1
- package/lib/component/elements/ToolTip/ToolTip.d.ts +0 -16
- package/lib/component/elements/ToolTip/ToolTip.d.ts.map +0 -1
- package/lib/component/elements/ToolTip/ToolTip.js +0 -102
- package/lib/component/elements/ToolTip/ToolTip.js.map +0 -1
- package/lib/component/elements/accordion/Accordion.d.ts +0 -8
- package/lib/component/elements/accordion/Accordion.d.ts.map +0 -1
- package/lib/component/elements/accordion/Accordion.js +0 -67
- package/lib/component/elements/accordion/Accordion.js.map +0 -1
- package/lib/component/elements/accordion/AccordionItem.d.ts +0 -16
- package/lib/component/elements/accordion/AccordionItem.d.ts.map +0 -1
- package/lib/component/elements/accordion/AccordionItem.js +0 -79
- package/lib/component/elements/accordion/AccordionItem.js.map +0 -1
- package/lib/component/elements/draggable/SVGDraggable.d.ts +0 -18
- package/lib/component/elements/draggable/SVGDraggable.d.ts.map +0 -1
- package/lib/component/elements/draggable/SVGDraggable.js +0 -30
- package/lib/component/elements/draggable/SVGDraggable.js.map +0 -1
- package/lib/component/elements/export/utilities/convertPixelsBasedOnDPI.d.ts +0 -2
- package/lib/component/elements/export/utilities/convertPixelsBasedOnDPI.d.ts.map +0 -1
- package/lib/component/elements/export/utilities/convertPixelsBasedOnDPI.js +0 -5
- package/lib/component/elements/export/utilities/convertPixelsBasedOnDPI.js.map +0 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.d.ts +0 -21
- package/lib/component/elements/linearAxis/LinearVerticalAxis.d.ts.map +0 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js +0 -16
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js.map +0 -1
- package/lib/component/modal/CopyClipboardModal.d.ts +0 -9
- package/lib/component/modal/CopyClipboardModal.d.ts.map +0 -1
- package/lib/component/modal/CopyClipboardModal.js +0 -23
- package/lib/component/modal/CopyClipboardModal.js.map +0 -1
- package/lib/component/panels/extra/preferences/ColumnsHelper.d.ts +0 -13
- package/lib/component/panels/extra/preferences/ColumnsHelper.d.ts.map +0 -1
- package/lib/component/panels/extra/preferences/ColumnsHelper.js +0 -43
- package/lib/component/panels/extra/preferences/ColumnsHelper.js.map +0 -1
- package/lib/component/panels/extra/utilities/UseToggleStatus.d.ts +0 -8
- package/lib/component/panels/extra/utilities/UseToggleStatus.d.ts.map +0 -1
- package/lib/component/panels/extra/utilities/UseToggleStatus.js +0 -33
- package/lib/component/panels/extra/utilities/UseToggleStatus.js.map +0 -1
- package/lib/component/reducer/actions/HistoryActions.d.ts +0 -5
- package/lib/component/reducer/actions/HistoryActions.d.ts.map +0 -1
- package/lib/component/reducer/actions/HistoryActions.js +0 -41
- package/lib/component/reducer/actions/HistoryActions.js.map +0 -1
- package/lib/component/reducer/helper/GetClosestNumber.d.ts +0 -3
- package/lib/component/reducer/helper/GetClosestNumber.d.ts.map +0 -1
- package/lib/component/reducer/helper/GetClosestNumber.js +0 -9
- package/lib/component/reducer/helper/GetClosestNumber.js.map +0 -1
- package/lib/component/reducer/preferences/utilities/checkKeysExists.d.ts +0 -2
- package/lib/component/reducer/preferences/utilities/checkKeysExists.d.ts.map +0 -1
- package/lib/component/reducer/preferences/utilities/checkKeysExists.js +0 -15
- package/lib/component/reducer/preferences/utilities/checkKeysExists.js.map +0 -1
- package/lib/component/reducer/preferences/utilities/filterObject.d.ts +0 -2
- package/lib/component/reducer/preferences/utilities/filterObject.d.ts.map +0 -1
- package/lib/component/reducer/preferences/utilities/filterObject.js +0 -8
- package/lib/component/reducer/preferences/utilities/filterObject.js.map +0 -1
- package/lib/component/reducer/preferences/utilities/flatObject.d.ts +0 -2
- package/lib/component/reducer/preferences/utilities/flatObject.d.ts.map +0 -1
- package/lib/component/reducer/preferences/utilities/flatObject.js +0 -10
- package/lib/component/reducer/preferences/utilities/flatObject.js.map +0 -1
- package/lib/component/utility/FileUtility.d.ts +0 -9
- package/lib/component/utility/FileUtility.d.ts.map +0 -1
- package/lib/component/utility/FileUtility.js +0 -19
- package/lib/component/utility/FileUtility.js.map +0 -1
- package/lib/component/utility/PreferencesHelper.d.ts +0 -3
- package/lib/component/utility/PreferencesHelper.d.ts.map +0 -1
- package/lib/component/utility/PreferencesHelper.js +0 -10
- package/lib/component/utility/PreferencesHelper.js.map +0 -1
- package/lib/component/utility/jpathToArray.d.ts +0 -2
- package/lib/component/utility/jpathToArray.d.ts.map +0 -1
- package/lib/component/utility/jpathToArray.js +0 -24
- package/lib/component/utility/jpathToArray.js.map +0 -1
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.d.ts +0 -6
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.d.ts.map +0 -1
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.js +0 -5
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.js.map +0 -1
- package/lib/data/data1d/Spectrum1D/is1DFilter.d.ts +0 -5
- package/lib/data/data1d/Spectrum1D/is1DFilter.d.ts.map +0 -1
- package/lib/data/data1d/Spectrum1D/is1DFilter.js +0 -4
- package/lib/data/data1d/Spectrum1D/is1DFilter.js.map +0 -1
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.d.ts +0 -3
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.d.ts.map +0 -1
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.js +0 -6
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.d.ts +0 -2
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.js +0 -10
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.d.ts +0 -7
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.js +0 -10
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/getShift.d.ts +0 -7
- package/lib/data/data2d/Spectrum2D/getShift.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/getShift.js +0 -16
- package/lib/data/data2d/Spectrum2D/getShift.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/is2DFilter.d.ts +0 -5
- package/lib/data/data2d/Spectrum2D/is2DFilter.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/is2DFilter.js +0 -4
- package/lib/data/data2d/Spectrum2D/is2DFilter.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.d.ts +0 -5
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.js +0 -16
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/zones/updateZones.d.ts +0 -3
- package/lib/data/data2d/Spectrum2D/zones/updateZones.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/zones/updateZones.js +0 -8
- package/lib/data/data2d/Spectrum2D/zones/updateZones.js.map +0 -1
- package/lib/data/defaults/13c.d.ts +0 -5
- package/lib/data/defaults/13c.d.ts.map +0 -1
- package/lib/data/defaults/13c.js +0 -4
- package/lib/data/defaults/13c.js.map +0 -1
- package/lib/data/defaults/1h.d.ts +0 -5
- package/lib/data/defaults/1h.d.ts.map +0 -1
- package/lib/data/defaults/1h.js +0 -4
- package/lib/data/defaults/1h.js.map +0 -1
- package/lib/data/defaults/default.d.ts +0 -2
- package/lib/data/defaults/default.d.ts.map +0 -1
- package/lib/data/defaults/default.js +0 -17
- package/lib/data/defaults/default.js.map +0 -1
- package/lib/data/getDefaultMatrixFilters.d.ts +0 -17
- package/lib/data/getDefaultMatrixFilters.d.ts.map +0 -1
- package/lib/data/getDefaultMatrixFilters.js +0 -21
- package/lib/data/getDefaultMatrixFilters.js.map +0 -1
- package/lib/data/types/common/DeepPartial.d.ts +0 -4
- package/lib/data/types/common/DeepPartial.d.ts.map +0 -1
- package/lib/data/types/common/DeepPartial.js +0 -2
- package/lib/data/types/common/DeepPartial.js.map +0 -1
- package/lib/data/types/common/File.d.ts +0 -6
- package/lib/data/types/common/File.d.ts.map +0 -1
- package/lib/data/types/common/File.js +0 -2
- package/lib/data/types/common/File.js.map +0 -1
- package/lib/data/types/common/Info.d.ts +0 -12
- package/lib/data/types/common/Info.d.ts.map +0 -1
- package/lib/data/types/common/Info.js +0 -2
- package/lib/data/types/common/Info.js.map +0 -1
- package/lib/data/types/common/MapOptions.d.ts +0 -6
- package/lib/data/types/common/MapOptions.d.ts.map +0 -1
- package/lib/data/types/common/MapOptions.js +0 -2
- package/lib/data/types/common/MapOptions.js.map +0 -1
- package/lib/data/types/data1d/ComplexData1D.d.ts +0 -3
- package/lib/data/types/data1d/ComplexData1D.d.ts.map +0 -1
- package/lib/data/types/data1d/ComplexData1D.js +0 -2
- package/lib/data/types/data1d/ComplexData1D.js.map +0 -1
- package/lib/data/types/data2d/ContourOptions.d.ts +0 -11
- package/lib/data/types/data2d/ContourOptions.d.ts.map +0 -1
- package/lib/data/types/data2d/ContourOptions.js +0 -2
- package/lib/data/types/data2d/ContourOptions.js.map +0 -1
- package/lib/data/types/data2d/index.d.ts +0 -2
- package/lib/data/types/data2d/index.d.ts.map +0 -1
- package/lib/data/types/data2d/index.js +0 -2
- package/lib/data/types/data2d/index.js.map +0 -1
- package/lib/data/utilities/getSum.d.ts +0 -9
- package/lib/data/utilities/getSum.d.ts.map +0 -1
- package/lib/data/utilities/getSum.js +0 -16
- package/lib/data/utilities/getSum.js.map +0 -1
- package/lib/types/NMRiumDataReturn.d.ts +0 -15
- package/lib/types/NMRiumDataReturn.d.ts.map +0 -1
- package/lib/types/NMRiumDataReturn.js +0 -2
- package/lib/types/NMRiumDataReturn.js.map +0 -1
- package/src/component/1d/YAxis.tsx +0 -57
- package/src/component/1d/ranges/AssignmentActionsButtons.tsx +0 -62
- package/src/component/1d/utilities/getDecimalsCount.ts +0 -9
- package/src/component/1d-2d/tools/BrushX.tsx +0 -69
- package/src/component/context/PrepareExportContext.tsx +0 -185
- package/src/component/elements/ActiveButton.tsx +0 -72
- package/src/component/elements/AxisGroup.tsx +0 -14
- package/src/component/elements/ButtonToolTip.tsx +0 -35
- package/src/component/elements/CheckBox.tsx +0 -43
- package/src/component/elements/ColorInput.tsx +0 -117
- package/src/component/elements/MenuButton.tsx +0 -162
- package/src/component/elements/Message.tsx +0 -63
- package/src/component/elements/NumberInput.tsx +0 -67
- package/src/component/elements/ReactTable/ReactTableFlexLayout.tsx +0 -90
- package/src/component/elements/ReactTable/Style.ts +0 -12
- package/src/component/elements/ResizableSVG.tsx +0 -234
- package/src/component/elements/Table/Table.tsx +0 -26
- package/src/component/elements/Table/TableBody.tsx +0 -35
- package/src/component/elements/Table/TableCell.tsx +0 -55
- package/src/component/elements/Table/TableHead.tsx +0 -29
- package/src/component/elements/Table/TableRow.tsx +0 -34
- package/src/component/elements/ToggleButton.tsx +0 -67
- package/src/component/elements/ToolTip/ToolTip.tsx +0 -161
- package/src/component/elements/accordion/Accordion.tsx +0 -100
- package/src/component/elements/accordion/AccordionItem.tsx +0 -134
- package/src/component/elements/draggable/SVGDraggable.tsx +0 -67
- package/src/component/elements/export/utilities/convertPixelsBasedOnDPI.ts +0 -9
- package/src/component/elements/linearAxis/LinearVerticalAxis.tsx +0 -77
- package/src/component/modal/CopyClipboardModal.tsx +0 -47
- package/src/component/panels/extra/preferences/ColumnsHelper.ts +0 -68
- package/src/component/panels/extra/utilities/UseToggleStatus.ts +0 -41
- package/src/component/reducer/actions/HistoryActions.ts +0 -48
- package/src/component/reducer/helper/GetClosestNumber.ts +0 -9
- package/src/component/reducer/preferences/utilities/checkKeysExists.ts +0 -18
- package/src/component/reducer/preferences/utilities/filterObject.ts +0 -7
- package/src/component/reducer/preferences/utilities/flatObject.ts +0 -9
- package/src/component/utility/FileUtility.ts +0 -22
- package/src/component/utility/PreferencesHelper.ts +0 -13
- package/src/component/utility/jpathToArray.ts +0 -21
- package/src/data/data1d/Spectrum1D/cloneDatum1D.ts +0 -4
- package/src/data/data1d/Spectrum1D/is1DFilter.ts +0 -8
- package/src/data/data1d/Spectrum1D/ranges/checkRangeKind.ts +0 -8
- package/src/data/data2d/Spectrum2D/cloneDatum2D.ts +0 -9
- package/src/data/data2d/Spectrum2D/get2DSpectrumErrorValue.ts +0 -17
- package/src/data/data2d/Spectrum2D/getShift.ts +0 -23
- package/src/data/data2d/Spectrum2D/is2DFilter.ts +0 -8
- package/src/data/data2d/Spectrum2D/zones/isZoneExists.ts +0 -27
- package/src/data/data2d/Spectrum2D/zones/updateZones.ts +0 -9
- package/src/data/defaults/13c.ts +0 -3
- package/src/data/defaults/1h.ts +0 -3
- package/src/data/defaults/default.ts +0 -19
- package/src/data/getDefaultMatrixFilters.ts +0 -38
- package/src/data/types/common/DeepPartial.ts +0 -3
- package/src/data/types/common/File.ts +0 -5
- package/src/data/types/common/Info.ts +0 -11
- package/src/data/types/common/MapOptions.ts +0 -6
- package/src/data/types/data1d/ComplexData1D.ts +0 -4
- package/src/data/types/data2d/ContourOptions.ts +0 -10
- package/src/data/types/data2d/index.ts +0 -1
- package/src/data/utilities/getSum.ts +0 -19
- package/src/types/NMRiumDataReturn.ts +0 -16
|
@@ -2,9 +2,9 @@ import { Button, DialogFooter } from '@blueprintjs/core';
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
4
4
|
import type { Spectrum1D } from 'nmr-load-save';
|
|
5
|
+
import { splitPatterns } from 'nmr-processing';
|
|
5
6
|
import type { Jcoupling, Range, Signal1D } from 'nmr-processing';
|
|
6
|
-
import {
|
|
7
|
-
import { useCallback, useEffect, useRef } from 'react';
|
|
7
|
+
import { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
8
8
|
import { FormProvider, useForm } from 'react-hook-form';
|
|
9
9
|
import { FaSearchPlus } from 'react-icons/fa';
|
|
10
10
|
|
|
@@ -16,11 +16,11 @@ import { StyledDialogBody } from '../../elements/StyledDialogBody.js';
|
|
|
16
16
|
import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
17
17
|
import useSpectrum from '../../hooks/useSpectrum.js';
|
|
18
18
|
import useEditRangeModal from '../../panels/RangesPanel/hooks/useEditRangeModal.js';
|
|
19
|
-
import { hasCouplingConstant } from '../../panels/extra/utilities/MultiplicityUtilities.js';
|
|
20
19
|
import { formatNumber } from '../../utility/formatNumber.js';
|
|
21
20
|
|
|
22
21
|
import SignalsContent from './forms/components/SignalsContent.js';
|
|
23
22
|
import editRangeFormValidation from './forms/validation/EditRangeValidation.js';
|
|
23
|
+
import { mapSignals } from './utils/mapSignals.js';
|
|
24
24
|
|
|
25
25
|
const DialogBody = styled(StyledDialogBody)`
|
|
26
26
|
.tabs .tab-list {
|
|
@@ -38,11 +38,6 @@ interface InnerEditRangeModalProps extends EditRangeModalProps {
|
|
|
38
38
|
onZoom: (value: any) => void;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
// interface Coupling {
|
|
42
|
-
// multiplicity: any;
|
|
43
|
-
// coupling: string | number;
|
|
44
|
-
// }
|
|
45
|
-
|
|
46
41
|
export function EditRangeModal(props: DialogProps<string>) {
|
|
47
42
|
const { reset, saveEditRange, zoomRange } = useEditRangeModal();
|
|
48
43
|
const { dialogData: rangeID, onCloseDialog } = props;
|
|
@@ -89,50 +84,19 @@ function InnerEditRangeModal(props: InnerEditRangeModalProps) {
|
|
|
89
84
|
onRest(originalRangeRef.current);
|
|
90
85
|
}
|
|
91
86
|
|
|
92
|
-
const getCouplings = useCallback(
|
|
93
|
-
(couplings) =>
|
|
94
|
-
couplings
|
|
95
|
-
.filter((coupling) => coupling.coupling !== '')
|
|
96
|
-
.map((coupling) => {
|
|
97
|
-
return {
|
|
98
|
-
...coupling,
|
|
99
|
-
multiplicity: translateMultiplet(coupling.multiplicity),
|
|
100
|
-
};
|
|
101
|
-
}),
|
|
102
|
-
[],
|
|
103
|
-
);
|
|
104
|
-
|
|
105
|
-
const getSignals = useCallback(
|
|
106
|
-
(signals) => {
|
|
107
|
-
return signals.map((signal) => {
|
|
108
|
-
return {
|
|
109
|
-
id: crypto.randomUUID(),
|
|
110
|
-
...signal,
|
|
111
|
-
multiplicity: signal.js
|
|
112
|
-
.map((_coupling) => translateMultiplet(_coupling.multiplicity))
|
|
113
|
-
.join(''),
|
|
114
|
-
js: getCouplings(signal?.js || []),
|
|
115
|
-
};
|
|
116
|
-
});
|
|
117
|
-
},
|
|
118
|
-
[getCouplings],
|
|
119
|
-
);
|
|
120
|
-
|
|
121
87
|
const handleSave = useCallback(
|
|
122
88
|
(formValues) => {
|
|
123
89
|
void (async () => {
|
|
124
90
|
const _range = { ...range };
|
|
125
|
-
_range.signals =
|
|
91
|
+
_range.signals = mapSignals(formValues.signals);
|
|
126
92
|
await onSave(_range);
|
|
127
93
|
})();
|
|
128
94
|
},
|
|
129
|
-
[
|
|
95
|
+
[onSave, range],
|
|
130
96
|
);
|
|
131
97
|
|
|
132
98
|
const methods = useForm({
|
|
133
|
-
defaultValues:
|
|
134
|
-
couplingFormat: rangesPreferences.coupling.format,
|
|
135
|
-
}),
|
|
99
|
+
defaultValues: range,
|
|
136
100
|
resolver: yupResolver(editRangeFormValidation) as any,
|
|
137
101
|
});
|
|
138
102
|
|
|
@@ -140,9 +104,7 @@ function InnerEditRangeModal(props: InnerEditRangeModalProps) {
|
|
|
140
104
|
|
|
141
105
|
useEffect(() => {
|
|
142
106
|
isDirtyRef.current = false;
|
|
143
|
-
methods.reset(
|
|
144
|
-
mapData(range, { couplingFormat: rangesPreferences.coupling.format }),
|
|
145
|
-
);
|
|
107
|
+
methods.reset(range);
|
|
146
108
|
}, [methods, range, rangesPreferences.coupling.format]);
|
|
147
109
|
|
|
148
110
|
useEffect(() => {
|
|
@@ -150,18 +112,19 @@ function InnerEditRangeModal(props: InnerEditRangeModalProps) {
|
|
|
150
112
|
const isValid = await editRangeFormValidation.isValid(values);
|
|
151
113
|
if (!isValid) return;
|
|
152
114
|
if (isDirtyRef.current) {
|
|
153
|
-
const signals =
|
|
115
|
+
const { signals: baseSignals, ...otherSignalsProps } = values;
|
|
116
|
+
const signals = mapSignals(baseSignals as Signal1D[]);
|
|
154
117
|
|
|
155
118
|
dispatch({
|
|
156
119
|
type: 'UPDATE_RANGE',
|
|
157
|
-
payload: { range: { ...
|
|
120
|
+
payload: { range: { ...otherSignalsProps, signals } as Range },
|
|
158
121
|
});
|
|
159
122
|
}
|
|
160
123
|
|
|
161
124
|
isDirtyRef.current = true;
|
|
162
125
|
});
|
|
163
126
|
return () => unsubscribe();
|
|
164
|
-
}, [dispatch,
|
|
127
|
+
}, [dispatch, methods, methods.watch]);
|
|
165
128
|
|
|
166
129
|
if (!rangesPreferences || !range) {
|
|
167
130
|
return;
|
|
@@ -217,45 +180,38 @@ function useRange(rangeId: string) {
|
|
|
217
180
|
ranges: { values: [] },
|
|
218
181
|
}) as Spectrum1D;
|
|
219
182
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
interface MapDataOptions {
|
|
227
|
-
couplingFormat: string;
|
|
183
|
+
return useMemo(() => {
|
|
184
|
+
const index = ranges.values.findIndex(
|
|
185
|
+
(rangeRecord) => rangeRecord.id === rangeId,
|
|
186
|
+
);
|
|
187
|
+
return structuredClone(appendCouplings(ranges.values[index]));
|
|
188
|
+
}, [rangeId, ranges.values]);
|
|
228
189
|
}
|
|
229
190
|
|
|
230
|
-
function
|
|
231
|
-
const { couplingFormat } = options;
|
|
232
|
-
|
|
191
|
+
function appendCouplings(range: Range) {
|
|
233
192
|
const signals: Signal1D[] = [];
|
|
234
193
|
|
|
235
194
|
for (const signal of range?.signals || []) {
|
|
236
|
-
|
|
237
|
-
const couplings: Array<
|
|
238
|
-
Partial<Pick<Jcoupling, 'coupling' | 'multiplicity'>>
|
|
239
|
-
> = [];
|
|
195
|
+
const js: Jcoupling[] = [];
|
|
240
196
|
|
|
241
|
-
if (
|
|
197
|
+
if (
|
|
198
|
+
!signal.multiplicity ||
|
|
199
|
+
(signal.multiplicity.length === 1 &&
|
|
200
|
+
!['s', 'm'].includes(signal.multiplicity))
|
|
201
|
+
) {
|
|
242
202
|
signals.push(signal);
|
|
243
203
|
continue;
|
|
244
204
|
}
|
|
245
205
|
|
|
246
206
|
for (const multiplicity of splitPatterns(signal.multiplicity)) {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
js.coupling = coupling;
|
|
252
|
-
counterJ++;
|
|
253
|
-
}
|
|
254
|
-
js.multiplicity = translateMultiplet(js.multiplicity || multiplicity);
|
|
255
|
-
couplings.push(js);
|
|
207
|
+
js.push({
|
|
208
|
+
multiplicity: multiplicity.value,
|
|
209
|
+
coupling: '',
|
|
210
|
+
} as unknown as Jcoupling);
|
|
256
211
|
}
|
|
257
212
|
|
|
258
|
-
signals.push({ ...signal, js
|
|
213
|
+
signals.push({ ...signal, js });
|
|
259
214
|
}
|
|
260
|
-
|
|
215
|
+
|
|
216
|
+
return { ...range, signals };
|
|
261
217
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { translateMultiplet } from 'nmr-processing';
|
|
2
1
|
import { useFormContext, useWatch } from 'react-hook-form';
|
|
3
2
|
|
|
4
3
|
import { NumberInput2Controller } from '../../../../elements/NumberInput2Controller.js';
|
|
@@ -71,11 +70,7 @@ export function DeltaInput({ signal, index }: DeltaInputProps) {
|
|
|
71
70
|
setFocusSource('delta');
|
|
72
71
|
}}
|
|
73
72
|
/>
|
|
74
|
-
<span>
|
|
75
|
-
{signal.js
|
|
76
|
-
.map((_coupling) => translateMultiplet(_coupling.multiplicity))
|
|
77
|
-
.join('')}
|
|
78
|
-
</span>
|
|
73
|
+
<span>{signal.js.map(({ multiplicity }) => multiplicity).join('')}</span>
|
|
79
74
|
</div>
|
|
80
75
|
);
|
|
81
76
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Button } from '@blueprintjs/core';
|
|
2
2
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
3
|
-
import { translateMultiplet } from 'nmr-processing';
|
|
4
3
|
import type { CSSProperties } from 'react';
|
|
5
4
|
import { useEffect } from 'react';
|
|
6
5
|
import { useForm, useFormContext, useWatch } from 'react-hook-form';
|
|
@@ -52,7 +51,7 @@ export function NewSignalTab(props: NewSignalTabProps) {
|
|
|
52
51
|
multiplicity: 'm',
|
|
53
52
|
kind: 'signal',
|
|
54
53
|
delta: val.delta,
|
|
55
|
-
js: [{ multiplicity:
|
|
54
|
+
js: [{ multiplicity: 'm', coupling: '' }],
|
|
56
55
|
};
|
|
57
56
|
const _signals = signals.slice().concat(newSignal);
|
|
58
57
|
|
package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Button, Callout, Classes } from '@blueprintjs/core';
|
|
2
2
|
import dlv from 'dlv';
|
|
3
3
|
import type { Jcoupling, Peak1D } from 'nmr-processing';
|
|
4
|
-
import { translateMultiplet } from 'nmr-processing';
|
|
5
4
|
import type { CSSProperties } from 'react';
|
|
6
5
|
import { useCallback, useMemo, useRef } from 'react';
|
|
7
6
|
import { useFormContext, useWatch } from 'react-hook-form';
|
|
@@ -113,7 +112,7 @@ export function SignalJCouplingsTable(props: SignalJCouplingsTableProps) {
|
|
|
113
112
|
const addHandler = useCallback(
|
|
114
113
|
(data: Peak1D[]) => {
|
|
115
114
|
const coupling = {
|
|
116
|
-
multiplicity:
|
|
115
|
+
multiplicity: 'm',
|
|
117
116
|
coupling: '',
|
|
118
117
|
};
|
|
119
118
|
setValue(`signals[${signalIndex}].js`, [...data, coupling]);
|
|
@@ -154,14 +153,16 @@ export function SignalJCouplingsTable(props: SignalJCouplingsTableProps) {
|
|
|
154
153
|
control={control}
|
|
155
154
|
name={getJCouplingKey(signalIndex, row.index, 'multiplicity')}
|
|
156
155
|
items={multiplets}
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
itemTextKey="label"
|
|
157
|
+
itemValueKey="value"
|
|
158
|
+
onItemSelect={({ value }) => {
|
|
159
159
|
const name = getJCouplingKey(
|
|
160
160
|
signalIndex,
|
|
161
161
|
row.index,
|
|
162
162
|
'coupling',
|
|
163
163
|
);
|
|
164
|
-
|
|
164
|
+
|
|
165
|
+
if (!hasCouplingConstant(value)) {
|
|
165
166
|
setValue(name, '');
|
|
166
167
|
} else {
|
|
167
168
|
requestAnimationFrame(() => {
|
|
@@ -135,7 +135,7 @@ export function SignalPeaksTable(props: SignalPeaksTableProps) {
|
|
|
135
135
|
(delta, index: number) => {
|
|
136
136
|
const xIndex = xFindClosestIndex(xArray, delta, { sorted: false });
|
|
137
137
|
|
|
138
|
-
setValue(`signals
|
|
138
|
+
setValue(`signals.${signalIndex}.peaks.${index}.y`, re[xIndex]);
|
|
139
139
|
},
|
|
140
140
|
[re, setValue, signalIndex, xArray],
|
|
141
141
|
);
|
|
@@ -162,6 +162,7 @@ export function SignalPeaksTable(props: SignalPeaksTableProps) {
|
|
|
162
162
|
style={{ backgroundColor: 'transparent' }}
|
|
163
163
|
fill
|
|
164
164
|
buttonPosition="none"
|
|
165
|
+
debounceTime={250}
|
|
165
166
|
/>
|
|
166
167
|
);
|
|
167
168
|
},
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable no-invalid-this */
|
|
1
2
|
import * as Yup from 'yup';
|
|
2
3
|
|
|
3
4
|
import { hasCouplingConstant } from '../../../../panels/extra/utilities/MultiplicityUtilities.js';
|
|
@@ -14,10 +15,8 @@ const editRangeFormValidation = Yup.object().shape({
|
|
|
14
15
|
'checkValue',
|
|
15
16
|
'',
|
|
16
17
|
function testCoupling(value) {
|
|
17
|
-
// eslint-disable-next-line no-invalid-this
|
|
18
18
|
const { path, createError } = this;
|
|
19
19
|
const hasCoupling = hasCouplingConstant(
|
|
20
|
-
// eslint-disable-next-line no-invalid-this
|
|
21
20
|
this.parent.multiplicity,
|
|
22
21
|
);
|
|
23
22
|
|
|
@@ -33,7 +32,28 @@ const editRangeFormValidation = Yup.object().shape({
|
|
|
33
32
|
),
|
|
34
33
|
}),
|
|
35
34
|
)
|
|
36
|
-
.min(1, 'There must be at least one coupling in a signal')
|
|
35
|
+
.min(1, 'There must be at least one coupling in a signal')
|
|
36
|
+
.test(
|
|
37
|
+
'checkMultiplicity',
|
|
38
|
+
'Massive multiplicity requires exactly one coupling',
|
|
39
|
+
function test(js) {
|
|
40
|
+
const multiplicity: string = this.parent.multiplicity;
|
|
41
|
+
|
|
42
|
+
if (multiplicity.includes('m') && js && js?.length > 1) {
|
|
43
|
+
return this.createError({
|
|
44
|
+
message: 'Massive multiplicity requires exactly one coupling',
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (multiplicity.includes('s') && js && js?.length > 1) {
|
|
49
|
+
return this.createError({
|
|
50
|
+
message: 'Singlet multiplicity requires exactly one coupling',
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return true;
|
|
55
|
+
},
|
|
56
|
+
),
|
|
37
57
|
}),
|
|
38
58
|
),
|
|
39
59
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Jcoupling } from 'nmr-processing';
|
|
2
|
+
|
|
3
|
+
import { hasCouplingConstant } from '../../../panels/extra/utilities/MultiplicityUtilities.js';
|
|
4
|
+
|
|
5
|
+
export function mapCouplings(couplings: Jcoupling[]) {
|
|
6
|
+
return couplings
|
|
7
|
+
.filter(
|
|
8
|
+
({ multiplicity }) => multiplicity && hasCouplingConstant(multiplicity),
|
|
9
|
+
)
|
|
10
|
+
.map((multiplicity) => multiplicity);
|
|
11
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Signal1D } from 'nmr-processing';
|
|
2
|
+
|
|
3
|
+
import { couplingsToMultiplicity } from './couplingsToMultiplicity.js';
|
|
4
|
+
import { mapCouplings } from './mapCouplings.js';
|
|
5
|
+
|
|
6
|
+
export function mapSignals(signals?: Signal1D[]) {
|
|
7
|
+
if (!Array.isArray(signals)) return [];
|
|
8
|
+
|
|
9
|
+
return signals.map((signal) => {
|
|
10
|
+
const {
|
|
11
|
+
id,
|
|
12
|
+
js: couplings = [],
|
|
13
|
+
multiplicity,
|
|
14
|
+
peaks,
|
|
15
|
+
...otherSignalProps
|
|
16
|
+
} = signal;
|
|
17
|
+
const js = mapCouplings(couplings);
|
|
18
|
+
|
|
19
|
+
return {
|
|
20
|
+
id: id || crypto.randomUUID(),
|
|
21
|
+
js,
|
|
22
|
+
...otherSignalProps,
|
|
23
|
+
multiplicity: couplingsToMultiplicity(couplings),
|
|
24
|
+
peaks: peaks?.map((peak) => ({ ...peak })) || [],
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
}
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
import { useToaster } from '../../context/ToasterContext.js';
|
|
22
22
|
import ActionButtons from '../../elements/ActionButtons.js';
|
|
23
23
|
import Label from '../../elements/Label.js';
|
|
24
|
+
import type { LabelStyle } from '../../elements/Label.js';
|
|
24
25
|
import { StyledDialogBody } from '../../elements/StyledDialogBody.js';
|
|
25
26
|
import type { DropDownListItem } from '../../elements/dropDownButton/DropDownButton.js';
|
|
26
27
|
import DropDownButton from '../../elements/dropDownButton/DropDownButton.js';
|
|
@@ -68,6 +69,13 @@ const StyledTabs = styled(Tabs)`
|
|
|
68
69
|
}
|
|
69
70
|
`;
|
|
70
71
|
|
|
72
|
+
export const settingLabelStyle: LabelStyle = {
|
|
73
|
+
container: {
|
|
74
|
+
padding: '5px',
|
|
75
|
+
borderBottom: '1px solid #f7f7f7',
|
|
76
|
+
justifyContent: 'space-between',
|
|
77
|
+
},
|
|
78
|
+
};
|
|
71
79
|
const StyledButton = styled(Button, {
|
|
72
80
|
shouldForwardProp(propName) {
|
|
73
81
|
return propName !== 'marginHorizontal';
|
|
@@ -9,6 +9,7 @@ import ReactTable from '../../../elements/ReactTable/ReactTable.js';
|
|
|
9
9
|
import type { CustomColumn } from '../../../elements/ReactTable/utility/addCustomColumn.js';
|
|
10
10
|
import { Select2 } from '../../../elements/Select2.js';
|
|
11
11
|
import type { WorkspaceWithSource } from '../../../reducer/preferences/preferencesReducer.js';
|
|
12
|
+
import { settingLabelStyle } from '../GeneralSettings.js';
|
|
12
13
|
|
|
13
14
|
const basePath = 'display.panels';
|
|
14
15
|
interface ListItem {
|
|
@@ -188,10 +189,7 @@ function DisplayTabContent() {
|
|
|
188
189
|
|
|
189
190
|
return (
|
|
190
191
|
<div style={{ width: '100%', overflow: 'hidden' }}>
|
|
191
|
-
<Label
|
|
192
|
-
title="Hide panels bar "
|
|
193
|
-
style={{ wrapper: { padding: '10px 0' } }}
|
|
194
|
-
>
|
|
192
|
+
<Label title="Hide panels bar " style={settingLabelStyle}>
|
|
195
193
|
<Checkbox
|
|
196
194
|
style={{ margin: 0 }}
|
|
197
195
|
{...register('display.general.hidePanelsBar')}
|
|
@@ -70,7 +70,7 @@ interface ExportOptionsProps {
|
|
|
70
70
|
exportAs: keyof ExportPreferences;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
function ExportOptions(props: ExportOptionsProps) {
|
|
74
74
|
const { exportAs } = props;
|
|
75
75
|
const path: `export.${keyof ExportPreferences}` = `export.${exportAs}`;
|
|
76
76
|
const {
|
|
@@ -3,17 +3,11 @@ import { Controller, useFormContext } from 'react-hook-form';
|
|
|
3
3
|
|
|
4
4
|
import { LOGGER_LEVELS } from '../../../context/LoggerContext.js';
|
|
5
5
|
import { GroupPane } from '../../../elements/GroupPane.js';
|
|
6
|
-
import type { LabelStyle } from '../../../elements/Label.js';
|
|
7
6
|
import Label from '../../../elements/Label.js';
|
|
8
7
|
import { NumberInput2Controller } from '../../../elements/NumberInput2Controller.js';
|
|
9
8
|
import { Select2 } from '../../../elements/Select2.js';
|
|
10
9
|
import type { WorkspaceWithSource } from '../../../reducer/preferences/preferencesReducer.js';
|
|
11
|
-
|
|
12
|
-
const labelStyle: LabelStyle = {
|
|
13
|
-
label: { flex: 6 },
|
|
14
|
-
wrapper: { flex: 6 },
|
|
15
|
-
container: { paddingBottom: '5px' },
|
|
16
|
-
};
|
|
10
|
+
import { settingLabelStyle } from '../GeneralSettings.js';
|
|
17
11
|
|
|
18
12
|
interface SelectItem {
|
|
19
13
|
label: string;
|
|
@@ -50,7 +44,10 @@ function GeneralTabContent() {
|
|
|
50
44
|
return (
|
|
51
45
|
<>
|
|
52
46
|
<GroupPane text="General">
|
|
53
|
-
<Label
|
|
47
|
+
<Label
|
|
48
|
+
title="Opacity of dimmed spectra [0 - 1]"
|
|
49
|
+
style={settingLabelStyle}
|
|
50
|
+
>
|
|
54
51
|
<NumberInput2Controller
|
|
55
52
|
control={control}
|
|
56
53
|
name="general.dimmedSpectraOpacity"
|
|
@@ -60,12 +57,12 @@ function GeneralTabContent() {
|
|
|
60
57
|
style={{ width: 60 }}
|
|
61
58
|
/>
|
|
62
59
|
</Label>
|
|
63
|
-
<Label title="Invert actions" style={
|
|
60
|
+
<Label title="Invert actions" style={settingLabelStyle}>
|
|
64
61
|
<Checkbox style={{ margin: 0 }} {...register(`general.invert`)} />
|
|
65
62
|
</Label>
|
|
66
63
|
</GroupPane>
|
|
67
64
|
<GroupPane text="Experimental features">
|
|
68
|
-
<Label title="Enable experimental features" style={
|
|
65
|
+
<Label title="Enable experimental features" style={settingLabelStyle}>
|
|
69
66
|
<Checkbox
|
|
70
67
|
style={{ margin: 0 }}
|
|
71
68
|
{...register(`display.general.experimentalFeatures.display`)}
|
|
@@ -73,7 +70,7 @@ function GeneralTabContent() {
|
|
|
73
70
|
</Label>
|
|
74
71
|
</GroupPane>
|
|
75
72
|
<GroupPane text="Rendering">
|
|
76
|
-
<Label title="Spectra rendering" style={
|
|
73
|
+
<Label title="Spectra rendering" style={settingLabelStyle}>
|
|
77
74
|
<Controller
|
|
78
75
|
control={control}
|
|
79
76
|
name="general.spectraRendering"
|
|
@@ -94,7 +91,7 @@ function GeneralTabContent() {
|
|
|
94
91
|
</Label>
|
|
95
92
|
</GroupPane>
|
|
96
93
|
<GroupPane text="Logging settings">
|
|
97
|
-
<Label title="Level" style={
|
|
94
|
+
<Label title="Level" style={settingLabelStyle}>
|
|
98
95
|
<Controller
|
|
99
96
|
control={control}
|
|
100
97
|
name="general.loggingLevel"
|
|
@@ -113,7 +110,7 @@ function GeneralTabContent() {
|
|
|
113
110
|
}}
|
|
114
111
|
/>
|
|
115
112
|
</Label>
|
|
116
|
-
<Label title="Popup logging level" style={
|
|
113
|
+
<Label title="Popup logging level" style={settingLabelStyle}>
|
|
117
114
|
<Controller
|
|
118
115
|
control={control}
|
|
119
116
|
name="general.popupLoggingLevel"
|
|
@@ -133,7 +130,7 @@ function GeneralTabContent() {
|
|
|
133
130
|
</Label>
|
|
134
131
|
</GroupPane>
|
|
135
132
|
<GroupPane text="Peaks label">
|
|
136
|
-
<Label title="Margin top" style={
|
|
133
|
+
<Label title="Margin top" style={settingLabelStyle}>
|
|
137
134
|
<NumberInput2Controller
|
|
138
135
|
control={control}
|
|
139
136
|
name="peaksLabel.marginTop"
|
|
@@ -14,7 +14,7 @@ import ReactTable from '../../../elements/ReactTable/ReactTable.js';
|
|
|
14
14
|
import type { WorkspaceWithSource } from '../../../reducer/preferences/preferencesReducer.js';
|
|
15
15
|
import { convertPathArrayToString } from '../../../utility/convertPathArrayToString.js';
|
|
16
16
|
import { getSpectraObjectPaths } from '../../../utility/getSpectraObjectPaths.js';
|
|
17
|
-
import { Section } from '../GeneralSettings.js';
|
|
17
|
+
import { Section, settingLabelStyle } from '../GeneralSettings.js';
|
|
18
18
|
|
|
19
19
|
function getKeyPath<T extends keyof InfoBlockField>(
|
|
20
20
|
index: number,
|
|
@@ -159,10 +159,7 @@ function InfoBlockTabContent() {
|
|
|
159
159
|
|
|
160
160
|
return (
|
|
161
161
|
<div>
|
|
162
|
-
<Label
|
|
163
|
-
title="Display spectrum info block"
|
|
164
|
-
style={{ wrapper: { padding: '10px 0' } }}
|
|
165
|
-
>
|
|
162
|
+
<Label title="Display spectrum info block" style={settingLabelStyle}>
|
|
166
163
|
<Checkbox style={{ margin: 0 }} {...register('infoBlock.visible')} />
|
|
167
164
|
</Label>
|
|
168
165
|
|
|
@@ -11,6 +11,7 @@ import Label from '../../../elements/Label.js';
|
|
|
11
11
|
import ReactTable from '../../../elements/ReactTable/ReactTable.js';
|
|
12
12
|
import type { CustomColumn } from '../../../elements/ReactTable/utility/addCustomColumn.js';
|
|
13
13
|
import type { WorkspaceWithSource } from '../../../reducer/preferences/preferencesReducer.js';
|
|
14
|
+
import { settingLabelStyle } from '../GeneralSettings.js';
|
|
14
15
|
|
|
15
16
|
function OnLoadProcessingTabContent() {
|
|
16
17
|
const { register, watch } = useFormContext<WorkspacePreferences>();
|
|
@@ -19,10 +20,7 @@ function OnLoadProcessingTabContent() {
|
|
|
19
20
|
watch('display.general.experimentalFeatures.display') || false;
|
|
20
21
|
return (
|
|
21
22
|
<div>
|
|
22
|
-
<Label
|
|
23
|
-
title="Enable auto processing on load"
|
|
24
|
-
style={{ wrapper: { padding: '10px 0' } }}
|
|
25
|
-
>
|
|
23
|
+
<Label title="Enable auto processing on load" style={settingLabelStyle}>
|
|
26
24
|
<Checkbox
|
|
27
25
|
style={{ margin: 0 }}
|
|
28
26
|
{...register('onLoadProcessing.autoProcessing')}
|
|
@@ -16,7 +16,7 @@ import ReactTable from '../../../elements/ReactTable/ReactTable.js';
|
|
|
16
16
|
import type { WorkspaceWithSource } from '../../../reducer/preferences/preferencesReducer.js';
|
|
17
17
|
import { convertPathArrayToString } from '../../../utility/convertPathArrayToString.js';
|
|
18
18
|
import { getSpectraObjectPaths } from '../../../utility/getSpectraObjectPaths.js';
|
|
19
|
-
import { Section } from '../GeneralSettings.js';
|
|
19
|
+
import { Section, settingLabelStyle } from '../GeneralSettings.js';
|
|
20
20
|
|
|
21
21
|
const colorInputStyle: CSSProperties = {
|
|
22
22
|
minWidth: '80px',
|
|
@@ -81,7 +81,7 @@ function SpectraColorsTabContent() {
|
|
|
81
81
|
|
|
82
82
|
return (
|
|
83
83
|
<div>
|
|
84
|
-
<Label title="
|
|
84
|
+
<Label title="Assignment highlight color " style={settingLabelStyle}>
|
|
85
85
|
<div style={colorInputStyle}>
|
|
86
86
|
<ColorPickerDropdownController
|
|
87
87
|
control={control}
|
|
@@ -89,6 +89,14 @@ function SpectraColorsTabContent() {
|
|
|
89
89
|
/>
|
|
90
90
|
</div>
|
|
91
91
|
</Label>
|
|
92
|
+
<Label title="Indicator line color " style={settingLabelStyle}>
|
|
93
|
+
<div style={colorInputStyle}>
|
|
94
|
+
<ColorPickerDropdownController
|
|
95
|
+
control={control}
|
|
96
|
+
name="spectraColors.indicatorLineColor"
|
|
97
|
+
/>
|
|
98
|
+
</div>
|
|
99
|
+
</Label>
|
|
92
100
|
|
|
93
101
|
<SpectraColorsFields
|
|
94
102
|
groupLabel="One dimension"
|
|
@@ -27,7 +27,11 @@ import type { ToolbarPopoverMenuItem } from '../../elements/ToolbarPopoverItem.j
|
|
|
27
27
|
import { ToolbarPopoverItem } from '../../elements/ToolbarPopoverItem.js';
|
|
28
28
|
import AboutPredictionModal from '../../modal/AboutPredictionModal.js';
|
|
29
29
|
import PredictSpectraModal from '../../modal/PredictSpectraModal.js';
|
|
30
|
-
import {
|
|
30
|
+
import {
|
|
31
|
+
browserNotSupportedErrorToast,
|
|
32
|
+
copyPNGToClipboard,
|
|
33
|
+
exportAsSVG,
|
|
34
|
+
} from '../../utility/export.js';
|
|
31
35
|
|
|
32
36
|
const styles: Record<'atomLabel', CSSProperties> = {
|
|
33
37
|
atomLabel: {
|
|
@@ -96,6 +100,7 @@ export default function MoleculePanelHeader({
|
|
|
96
100
|
const { rootRef } = useGlobal();
|
|
97
101
|
const toaster = useToaster();
|
|
98
102
|
const dispatch = useDispatch();
|
|
103
|
+
|
|
99
104
|
const moleculeKey = molecules?.[currentIndex]?.id;
|
|
100
105
|
const saveAsSVGHandler = useCallback(() => {
|
|
101
106
|
if (!rootRef) return;
|
|
@@ -107,11 +112,22 @@ export default function MoleculePanelHeader({
|
|
|
107
112
|
|
|
108
113
|
const saveAsPNGHandler = useCallback(async () => {
|
|
109
114
|
if (!rootRef) return;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
+
|
|
116
|
+
try {
|
|
117
|
+
await copyPNGToClipboard(`molSVG${currentIndex}`, {
|
|
118
|
+
rootElement: rootRef,
|
|
119
|
+
});
|
|
120
|
+
toaster.show({
|
|
121
|
+
message: 'MOL copied as PNG to clipboard',
|
|
122
|
+
intent: 'success',
|
|
123
|
+
});
|
|
124
|
+
} catch (error: unknown) {
|
|
125
|
+
if (error instanceof Error) {
|
|
126
|
+
toaster.show({ intent: 'danger', message: error.message });
|
|
127
|
+
} else {
|
|
128
|
+
toaster.show(browserNotSupportedErrorToast);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
115
131
|
}, [rootRef, currentIndex, toaster]);
|
|
116
132
|
|
|
117
133
|
const {
|
|
@@ -84,10 +84,12 @@ function PanelsInner() {
|
|
|
84
84
|
const { title, component, id } = item;
|
|
85
85
|
return (
|
|
86
86
|
<Accordion.Item
|
|
87
|
+
unmountChildren
|
|
88
|
+
id={id}
|
|
87
89
|
key={title}
|
|
88
90
|
title={title}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
defaultOpen={isOpened(item) || panelOpenState[id]}
|
|
92
|
+
renderToolbar={() => (
|
|
91
93
|
<RightButtons
|
|
92
94
|
id={id}
|
|
93
95
|
onEdit={(event) => {
|
|
@@ -95,7 +97,7 @@ function PanelsInner() {
|
|
|
95
97
|
openDialog('informationModal');
|
|
96
98
|
}}
|
|
97
99
|
/>
|
|
98
|
-
}
|
|
100
|
+
)}
|
|
99
101
|
>
|
|
100
102
|
{component}
|
|
101
103
|
</Accordion.Item>
|