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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableSortBy.js","sourceRoot":"","sources":["../../../src/component/hooks/useTableSortBy.tsx"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEvD,
|
|
1
|
+
{"version":3,"file":"useTableSortBy.js","sourceRoot":"","sources":["../../../src/component/hooks/useTableSortBy.tsx"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEvD,IAAK,QAIJ;AAJD,WAAK,QAAQ;IACX,6BAAiB,CAAA;IACjB,+BAAmB,CAAA;IACnB,iCAAqB,CAAA;AACvB,CAAC,EAJI,QAAQ,KAAR,QAAQ,QAIZ;AAOD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IACzD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAoB,MAAM,CAAC,CAAC;IACxE,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE;QAC/B,MAAM,aAAa,GAAG,KAAK,CAAC,KAAK,EAAE,C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AAC;oBAE/B,MAAM;YACV,CAAC;QACH,CAAC;QACD,aAAa,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;IACpC,CAAC,EACD,CAAC,UAAU,CAAC,CACb,CAAC;IAEF,MAAM,YAAY,GAAG,WAAW,CAC9B,CAAC,UAAU,EAA6C,EAAE;QACxD,MAAM,cAAc,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;QAEpD,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,GAAG,KAAK,UAAU,EAAE,CAAC;YACjD,OAAO,cAAc,CAAC;QACxB,CAAC;QACD,QAAQ,UAAU,CAAC,SAAS,EAAE,CAAC;YAC7B,KAAK,QAAQ,CAAC,UAAU;gBACtB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;YAEvC,KAAK,QAAQ,CAAC,SAAS;gBACrB,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;YAExC;gBACE,OAAO,cAAc,CAAC;QAC1B,CAAC;IACH,CAAC,EACD,CAAC,UAAU,CAAC,CACb,CAAC;IAEF,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,CAAC;AAChF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToolsFunctions.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useToolsFunctions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useToolsFunctions.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useToolsFunctions.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,iBAAiB;;;;;;;EA0GxC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import lodashDebounce from 'lodash/debounce.js';
|
|
2
2
|
import lodashMap from 'lodash/map.js';
|
|
3
3
|
import { useCallback, useRef, useState } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { useAccordionControls } from 'react-science/ui';
|
|
5
5
|
import { useChartData } from '../context/ChartContext.js';
|
|
6
6
|
import { useDispatch } from '../context/DispatchContext.js';
|
|
7
7
|
import { usePreferences } from '../context/PreferencesContext.js';
|
|
8
8
|
import { useToaster } from '../context/ToasterContext.js';
|
|
9
|
-
import {
|
|
9
|
+
import { toolPanelLookup } from '../panels/accordionItems.js';
|
|
10
10
|
import { options } from '../toolbar/ToolTypes.js';
|
|
11
11
|
export default function useToolsFunctions() {
|
|
12
12
|
const dispatch = useDispatch();
|
|
13
13
|
const toaster = useToaster();
|
|
14
|
-
const { open:
|
|
14
|
+
const { open: openAccordionPanel } = useAccordionControls();
|
|
15
15
|
const [isRealSpectrumShown, setIsRealSpectrumShown] = useState(false);
|
|
16
16
|
const debounceClickEventsRef = useRef({ clicks: [] });
|
|
17
17
|
const { current: { general: { invert }, }, } = usePreferences();
|
|
@@ -32,18 +32,18 @@ export default function useToolsFunctions() {
|
|
|
32
32
|
message: `Press ${!invert ? 'Shift +' : ''} Left Mouse button to select zone`,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
const panelKey = options[selectedTool]
|
|
36
|
+
.isFilter
|
|
37
|
+
? 'processingsPanel'
|
|
38
|
+
: toolPanelLookup?.[selectedTool];
|
|
39
|
+
if (panelKey) {
|
|
40
|
+
openAccordionPanel(panelKey);
|
|
41
41
|
}
|
|
42
42
|
dispatch({
|
|
43
43
|
type: 'SET_SELECTED_TOOL',
|
|
44
44
|
payload: { selectedTool: selectedTool || options.zoom.id },
|
|
45
45
|
});
|
|
46
|
-
}, [dispatch, invert,
|
|
46
|
+
}, [dispatch, invert, openAccordionPanel, previousSelectedTool, toaster]);
|
|
47
47
|
const handleFullZoomOut = useCallback(() => {
|
|
48
48
|
if (debounceClickEventsRef.current.clicks.length === 0) {
|
|
49
49
|
dispatch({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToolsFunctions.js","sourceRoot":"","sources":["../../../src/component/hooks/useToolsFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,SAAS,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"useToolsFunctions.js","sourceRoot":"","sources":["../../../src/component/hooks/useToolsFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,SAAS,MAAM,eAAe,CAAC;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,MAAM,CAAC,OAAO,UAAU,iBAAiB;IACvC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAE7B,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,GAAG,oBAAoB,EAAE,CAAC;IAC5D,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEtE,MAAM,sBAAsB,GAAG,MAAM,CAAoB,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;IACzE,M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":3,"file":"NMRium.d.ts","sourceRoot":"","sources":["../../../src/component/main/NMRium.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,IAAI,iBAAiB,EAC1C,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AAM5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE9E,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,+BAA+B,CAAC,SAAS,CAAC,CAAC;IACrD,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,YAAY,CAAC;CACjC;AAqBD,eAAO,MAAM,MAAM,2IAAmB,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, memo } from 'react';
|
|
3
3
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
4
|
-
import {
|
|
4
|
+
import { RootLayout } from 'react-science/ui';
|
|
5
5
|
import ErrorOverlay from './ErrorOverlay.js';
|
|
6
6
|
import { InnerNMRium } from './InnerNMRium.js';
|
|
7
7
|
const NMRiumBase = forwardRef(function NMRium(props, ref) {
|
|
8
8
|
const { noErrorBoundary = false, onError, ...otherProps } = props;
|
|
9
9
|
const innerNmrium = _jsx(InnerNMRium, { ...otherProps, apiRef: ref });
|
|
10
10
|
const children = noErrorBoundary ? (innerNmrium) : (_jsx(ErrorBoundary, { FallbackComponent: ErrorOverlay, onError: onError, children: innerNmrium }));
|
|
11
|
-
return
|
|
11
|
+
return _jsx(RootLayout, { style: { width: '100%' }, children: children });
|
|
12
12
|
});
|
|
13
13
|
export const NMRium = memo(NMRiumBase);
|
|
14
14
|
//# sourceMappingURL=NMRium.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NMRium.js","sourceRoot":"","sources":["../../../src/component/main/NMRium.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"NMRium.js","sourceRoot":"","sources":["../../../src/component/main/NMRium.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAmB/C,MAAM,UAAU,GAAG,UAAU,CAA4B,SAAS,MAAM,CACtE,KAAkB,EAClB,GAAG;IAEH,MAAM,EAAE,eAAe,GAAG,KAAK,EAAE,OAAO,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAElE,MAAM,WAAW,GAAG,KAAC,WAAW,OAAK,UAAU,EAAE,MAAM,EAAE,GAAG,GAAI,CAAC;IAEjE,MAAM,QAAQ,GAAG,eAAe,CAAC,CAAC,CAAC,CACjC,WAAW,CACZ,CAAC,CAAC,CAAC,CACF,KAAC,aAAa,IAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,YAC7D,WAAW,GACE,CACjB,CAAC;IAEF,OAAO,KAAC,UAAU,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,YAAG,QAAQ,GAAc,CAAC;AACvE,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -86,8 +86,8 @@ function InnerExportAsJcampModal(props) {
|
|
|
86
86
|
hideLoading();
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function handleChangeExportDataType(
|
|
90
|
-
exportDataAsRef.current =
|
|
89
|
+
function handleChangeExportDataType(item) {
|
|
90
|
+
exportDataAsRef.current = item.value;
|
|
91
91
|
}
|
|
92
92
|
return (_jsxs(Dialog, { isOpen: true, style: { width: 400 }, onClose: closeDialog, title: "Export as JCAMP", children: [_jsx(StyledDialogBody, { padding: "1.5em 3em", children: _jsx(Label, { title: "Data", style: labelStyle, children: _jsx(Select2, { defaultSelectedItem: exportDataTypes[0], onItemSelect: handleChangeExportDataType, items: exportDataTypes }) }) }), _jsx(DialogFooter, { children: _jsx(ActionButtons, { style: { flexDirection: 'row-reverse', margin: 0 }, onDone: submitHandler, doneLabel: "export", onCancel: () => {
|
|
93
93
|
closeDialog?.();
|
|
@@ -3,6 +3,6 @@ interface PredictSpectraModalProps {
|
|
|
3
3
|
onClose?: (element?: string) => void;
|
|
4
4
|
molecule: StateMoleculeExtended;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export default function PredictSpectraModal({ onClose, molecule, }: PredictSpectraModalProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
8
|
//# sourceMappingURL=PredictSpectraModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PredictSpectraModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/PredictSpectraModal.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAwC9E,UAAU,wBAAwB;IAChC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,qBAAqB,CAAC;CACjC;AAED,
|
|
1
|
+
{"version":3,"file":"PredictSpectraModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/PredictSpectraModal.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAwC9E,UAAU,wBAAwB;IAChC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,qBAAqB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,OAAoB,EACpB,QAAQ,GACT,EAAE,wBAAwB,2CA4H1B"}
|
|
@@ -41,7 +41,7 @@ const DialogBody = styled(StyledDialogBody) `
|
|
|
41
41
|
width: 40%;
|
|
42
42
|
}
|
|
43
43
|
`;
|
|
44
|
-
export function PredictSpectraModal({ onClose = () => null, molecule, }) {
|
|
44
|
+
export default function PredictSpectraModal({ onClose = () => null, molecule, }) {
|
|
45
45
|
const [isOpenDialog, openDialog, closeDialog] = useOnOff(false);
|
|
46
46
|
const refForm = useRef(null);
|
|
47
47
|
const dispatch = useDispatch();
|
|
@@ -110,5 +110,4 @@ export function PredictSpectraModal({ onClose = () => null, molecule, }) {
|
|
|
110
110
|
closeDialog();
|
|
111
111
|
}, style: { width: 600, maxWidth: 1000 }, title: "Prediction of NMR spectrum", children: [_jsxs(DialogBody, { children: [_jsx(PredictionPreferences, { onSave: submitHandler, options: initValues, ref: refForm }), _jsx("p", { className: "warning", children: "In order to predict spectra we are calling an external service and the chemical structure will leave your browser! You should never predict spectra for confidential molecules." }), _jsx("div", { className: "warning-container", children: _jsx(Checkbox, { onChange: (value) => setApproved(value.target.checked), checked: isApproved, label: "I confirm that the chemical structure is not confidential." }) })] }), _jsx(DialogFooter, { className: "footer-container", children: _jsx(Button.Done, { onClick: handleSave, disabled: !isApproved, children: "Predict spectrum" }) })] })] }));
|
|
112
112
|
}
|
|
113
|
-
export default PredictSpectraModal;
|
|
114
113
|
//# sourceMappingURL=PredictSpectraModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PredictSpectraModal.js","sourceRoot":"","sources":["../../../src/component/modal/PredictSpectraModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EACL,2BAA2B,EAC3B,cAAc,GACf,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,qBAAqB,MAAM,qDAAqD,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B1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,MAAC,MAAM,IACL,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,GAAG,EAAE;oBACZ,OAAO,EAAE,CAAC;oBACV,WAAW,EAAE,CAAC;gBAChB,CAAC,EACD,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,EACrC,KAAK,EAAC,4BAA4B,aAElC,MAAC,UAAU,eACT,KAAC,qBAAqB,IACpB,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,EACnB,GAAG,EAAE,OAAO,GACZ,EACF,YAAG,SAAS,EAAC,SAAS,gMAIlB,EACJ,cAAK,SAAS,EAAC,mBAAmB,YAChC,KAAC,QAAQ,IACP,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EACtD,OAAO,EAAE,UAAU,EACnB,KAAK,EAAC,4DAA4D,GAClE,GACE,IACK,EACb,KAAC,YAAY,IAAC,SAAS,EAAC,kBAAkB,YACxC,KAAC,MAAM,CAAC,IAAI,IAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,UAAU,iCAEzC,GACD,IACR,IACR,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface InnerPublicationStringModalProps {
|
|
2
|
+
onClose: () => void;
|
|
3
|
+
onCopyClick: (text: string) => void;
|
|
4
|
+
}
|
|
5
|
+
interface PublicationStringModalProps extends InnerPublicationStringModalProps {
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function PublicationStringModal(props: PublicationStringModalProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=PublicationStringModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicationStringModal.d.ts","sourceRoot":"","sources":["../../../src/component/modal/PublicationStringModal.tsx"],"names":[],"mappings":"AAiEA,UAAU,gCAAgC;IACxC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED,UAAU,2BAA4B,SAAQ,gCAAgC;IAC5E,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,uDAMxE"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/* eslint-disable react/no-danger */
|
|
3
|
+
import { Button, Dialog, DialogFooter } from '@blueprintjs/core';
|
|
4
|
+
import styled from '@emotion/styled';
|
|
5
|
+
import { rangesToACS } from 'nmr-processing';
|
|
6
|
+
import { useState } from 'react';
|
|
7
|
+
import { FaCopy } from 'react-icons/fa';
|
|
8
|
+
import { isSpectrum1D } from '../../data/data1d/Spectrum1D/isSpectrum1D.js';
|
|
9
|
+
import { useChartData } from '../context/ChartContext.js';
|
|
10
|
+
import { EmptyText } from '../elements/EmptyText.js';
|
|
11
|
+
import Label from '../elements/Label.js';
|
|
12
|
+
import { Select2 } from '../elements/Select2.js';
|
|
13
|
+
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
14
|
+
import { usePanelPreferences } from '../hooks/usePanelPreferences.js';
|
|
15
|
+
import useSpectrum from '../hooks/useSpectrum.js';
|
|
16
|
+
const Body = styled.div `
|
|
17
|
+
padding: 5px;
|
|
18
|
+
width: 100%;
|
|
19
|
+
min-height: 180px;
|
|
20
|
+
border: 1px solid #e9e9e9;
|
|
21
|
+
`;
|
|
22
|
+
const labelStyle = {
|
|
23
|
+
label: {
|
|
24
|
+
color: '#232323',
|
|
25
|
+
width: '100px',
|
|
26
|
+
},
|
|
27
|
+
wrapper: {
|
|
28
|
+
display: 'flex',
|
|
29
|
+
justifyContent: 'flex-start',
|
|
30
|
+
},
|
|
31
|
+
container: { padding: '5px 0' },
|
|
32
|
+
};
|
|
33
|
+
const exportOptions = [
|
|
34
|
+
{
|
|
35
|
+
label: 'Export all',
|
|
36
|
+
value: 'all',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: 'Export only signals',
|
|
40
|
+
value: 'signal',
|
|
41
|
+
},
|
|
42
|
+
];
|
|
43
|
+
const exportFormats = [
|
|
44
|
+
{
|
|
45
|
+
label: 'Intensity, Multiplicity, Couplings, Assignment',
|
|
46
|
+
value: 'IMJA',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: 'Intensity, Multiplicity, Couplings',
|
|
50
|
+
value: 'IMJ',
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
export function PublicationStringModal(props) {
|
|
54
|
+
const { isOpen, ...otherProps } = props;
|
|
55
|
+
if (!isOpen)
|
|
56
|
+
return;
|
|
57
|
+
return _jsx(InnerPublicationStringModal, { ...otherProps });
|
|
58
|
+
}
|
|
59
|
+
function InnerPublicationStringModal(props) {
|
|
60
|
+
const { onClose, onCopyClick } = props;
|
|
61
|
+
const { view: { spectra: { activeTab }, }, } = useChartData();
|
|
62
|
+
const { deltaPPM, coupling } = usePanelPreferences('ranges', activeTab);
|
|
63
|
+
const spectrum = useSpectrum();
|
|
64
|
+
const [exportType, setExportType] = useState('signal');
|
|
65
|
+
const [exportFormat, setExportFormat] = useState('IMJA');
|
|
66
|
+
if (!spectrum || !isSpectrum1D(spectrum))
|
|
67
|
+
return null;
|
|
68
|
+
function handleChangeExportOptions(item) {
|
|
69
|
+
setExportType(item.value);
|
|
70
|
+
}
|
|
71
|
+
function handleChangeExportFormat(item) {
|
|
72
|
+
setExportFormat(item.value);
|
|
73
|
+
}
|
|
74
|
+
const { info, ranges: { values }, } = spectrum;
|
|
75
|
+
const { originFrequency: observedFrequency, nucleus } = info;
|
|
76
|
+
const ranges = exportType === 'all'
|
|
77
|
+
? values
|
|
78
|
+
: values.filter((range) => range.signals?.some((signal) => signal.kind === 'signal'));
|
|
79
|
+
const value = rangesToACS(ranges, {
|
|
80
|
+
nucleus,
|
|
81
|
+
deltaFormat: deltaPPM.format,
|
|
82
|
+
couplingFormat: coupling.format,
|
|
83
|
+
observedFrequency,
|
|
84
|
+
format: exportFormat,
|
|
85
|
+
});
|
|
86
|
+
return (_jsxs(Dialog, { isOpen: true, title: "Publication string", onClose: onClose, style: { minWidth: 600 }, children: [_jsxs(StyledDialogBody, { children: [_jsx(Label, { title: "Export filter", style: labelStyle, children: _jsx(Select2, { defaultSelectedItem: exportOptions[1], onItemSelect: handleChangeExportOptions, items: exportOptions }) }), _jsx(Label, { title: "Export format", style: labelStyle, children: _jsx(Select2, { defaultSelectedItem: exportFormats[0], onItemSelect: handleChangeExportFormat, items: exportFormats }) }), _jsx(Body, { children: !value ? (_jsx(EmptyText, { text: "No publication string" })) : (_jsx("div", { dangerouslySetInnerHTML: { __html: value } })) })] }), _jsx(DialogFooter, { children: _jsx(Button, { onClick: () => onCopyClick(value), intent: "success", icon: _jsx(FaCopy, {}) }) })] }));
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=PublicationStringModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PublicationStringModal.js","sourceRoot":"","sources":["../../../src/component/modal/PublicationStringModal.tsx"],"names":[],"mappings":";AAAA,oCAAoC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,M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M,IACL,MAAM,QACN,KAAK,EAAC,oBAAoB,EAC1B,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,aAExB,MAAC,gBAAgB,eACf,KAAC,KAAK,IAAC,KAAK,EAAC,eAAe,EAAC,KAAK,EAAE,UAAU,YAC5C,KAAC,OAAO,IACN,mBAAmB,EAAE,aAAa,CAAC,CAAC,CAAC,EACrC,YAAY,EAAE,yBAAyB,EACvC,KAAK,EAAE,aAAa,GACpB,GACI,EACR,KAAC,KAAK,IAAC,KAAK,EAAC,eAAe,EAAC,KAAK,EAAE,UAAU,YAC5C,KAAC,OAAO,IACN,mBAAmB,EAAE,aAAa,CAAC,CAAC,CAAC,EACrC,YAAY,EAAE,wBAAwB,EACtC,KAAK,EAAE,aAAa,GACpB,GACI,EAER,KAAC,IAAI,cACF,CAAC,KAAK,CAAC,CAAC,CAAC,CACR,KAAC,SAAS,IAAC,IAAI,EAAC,uBAAuB,GAAG,CAC3C,CAAC,CAAC,CAAC,CACF,cAAK,uBAAuB,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAI,CACpD,GACI,IACU,EACnB,KAAC,YAAY,cACX,KAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,EACjC,MAAM,EAAC,SAAS,EAChB,IAAI,EAAE,KAAC,MAAM,KAAG,GAChB,GACW,IACR,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { ChangeSumModalContentsProps } from './ChangeSumModalContents.js';
|
|
2
|
-
|
|
2
|
+
interface ChangeSumModalProps extends Omit<ChangeSumModalContentsProps, 'onClose'> {
|
|
3
3
|
currentSum: number | null;
|
|
4
4
|
sumType: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export default function ChangeSumModal(props: ChangeSumModalProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
8
9
|
//# sourceMappingURL=ChangeSumModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSumModal.d.ts","sourceRoot":"","sources":["../../../../src/component/modal/changeSum/ChangeSumModal.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAG/E,
|
|
1
|
+
{"version":3,"file":"ChangeSumModal.d.ts","sourceRoot":"","sources":["../../../../src/component/modal/changeSum/ChangeSumModal.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAG/E,UAAU,mBACR,SAAQ,IAAI,CAAC,2BAA2B,EAAE,SAAS,CAAC;IACpD,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAiChE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditRangeModal.d.ts","sourceRoot":"","sources":["../../../../src/component/modal/editRange/EditRangeModal.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"EditRangeModal.d.ts","sourceRoot":"","sources":["../../../../src/component/modal/editRange/EditRangeModal.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AA4BnE,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,2CAkBxD"}
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Button, DialogFooter } from '@blueprintjs/core';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
5
|
-
import { splitPatterns
|
|
6
|
-
import { useCallback, useEffect, useRef } from 'react';
|
|
5
|
+
import { splitPatterns } from 'nmr-processing';
|
|
6
|
+
import { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
7
7
|
import { FormProvider, useForm } from 'react-hook-form';
|
|
8
8
|
import { FaSearchPlus } from 'react-icons/fa';
|
|
9
9
|
import { useChartData } from '../../context/ChartContext.js';
|
|
@@ -13,19 +13,15 @@ import { StyledDialogBody } from '../../elements/StyledDialogBody.js';
|
|
|
13
13
|
import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
14
14
|
import useSpectrum from '../../hooks/useSpectrum.js';
|
|
15
15
|
import useEditRangeModal from '../../panels/RangesPanel/hooks/useEditRangeModal.js';
|
|
16
|
-
import { hasCouplingConstant } from '../../panels/extra/utilities/MultiplicityUtilities.js';
|
|
17
16
|
import { formatNumber } from '../../utility/formatNumber.js';
|
|
18
17
|
import SignalsContent from './forms/components/SignalsContent.js';
|
|
19
18
|
import editRangeFormValidation from './forms/validation/EditRangeValidation.js';
|
|
19
|
+
import { mapSignals } from './utils/mapSignals.js';
|
|
20
20
|
const DialogBody = styled(StyledDialogBody) `
|
|
21
21
|
.tabs .tab-list {
|
|
22
22
|
overflow-x: auto;
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
|
-
// interface Coupling {
|
|
26
|
-
// multiplicity: any;
|
|
27
|
-
// coupling: string | number;
|
|
28
|
-
// }
|
|
29
25
|
export function EditRangeModal(props) {
|
|
30
26
|
const { reset, saveEditRange, zoomRange } = useEditRangeModal();
|
|
31
27
|
const { dialogData: rangeID, onCloseDialog } = props;
|
|
@@ -56,43 +52,21 @@ function InnerEditRangeModal(props) {
|
|
|
56
52
|
});
|
|
57
53
|
onRest(originalRangeRef.current);
|
|
58
54
|
}
|
|
59
|
-
const getCouplings = useCallback((couplings) => couplings
|
|
60
|
-
.filter((coupling) => coupling.coupling !== '')
|
|
61
|
-
.map((coupling) => {
|
|
62
|
-
return {
|
|
63
|
-
...coupling,
|
|
64
|
-
multiplicity: translateMultiplet(coupling.multiplicity),
|
|
65
|
-
};
|
|
66
|
-
}), []);
|
|
67
|
-
const getSignals = useCallback((signals) => {
|
|
68
|
-
return signals.map((signal) => {
|
|
69
|
-
return {
|
|
70
|
-
id: crypto.randomUUID(),
|
|
71
|
-
...signal,
|
|
72
|
-
multiplicity: signal.js
|
|
73
|
-
.map((_coupling) => translateMultiplet(_coupling.multiplicity))
|
|
74
|
-
.join(''),
|
|
75
|
-
js: getCouplings(signal?.js || []),
|
|
76
|
-
};
|
|
77
|
-
});
|
|
78
|
-
}, [getCouplings]);
|
|
79
55
|
const handleSave = useCallback((formValues) => {
|
|
80
56
|
void (async () => {
|
|
81
57
|
const _range = { ...range };
|
|
82
|
-
_range.signals =
|
|
58
|
+
_range.signals = mapSignals(formValues.signals);
|
|
83
59
|
await onSave(_range);
|
|
84
60
|
})();
|
|
85
|
-
}, [
|
|
61
|
+
}, [onSave, range]);
|
|
86
62
|
const methods = useForm({
|
|
87
|
-
defaultValues:
|
|
88
|
-
couplingFormat: rangesPreferences.coupling.format,
|
|
89
|
-
}),
|
|
63
|
+
defaultValues: range,
|
|
90
64
|
resolver: yupResolver(editRangeFormValidation),
|
|
91
65
|
});
|
|
92
66
|
const isDirtyRef = useRef(true);
|
|
93
67
|
useEffect(() => {
|
|
94
68
|
isDirtyRef.current = false;
|
|
95
|
-
methods.reset(
|
|
69
|
+
methods.reset(range);
|
|
96
70
|
}, [methods, range, rangesPreferences.coupling.format]);
|
|
97
71
|
useEffect(() => {
|
|
98
72
|
const { unsubscribe } = methods.watch(async (values) => {
|
|
@@ -100,16 +74,17 @@ function InnerEditRangeModal(props) {
|
|
|
100
74
|
if (!isValid)
|
|
101
75
|
return;
|
|
102
76
|
if (isDirtyRef.current) {
|
|
103
|
-
const signals =
|
|
77
|
+
const { signals: baseSignals, ...otherSignalsProps } = values;
|
|
78
|
+
const signals = mapSignals(baseSignals);
|
|
104
79
|
dispatch({
|
|
105
80
|
type: 'UPDATE_RANGE',
|
|
106
|
-
payload: { range: { ...
|
|
81
|
+
payload: { range: { ...otherSignalsProps, signals } },
|
|
107
82
|
});
|
|
108
83
|
}
|
|
109
84
|
isDirtyRef.current = true;
|
|
110
85
|
});
|
|
111
86
|
return () => unsubscribe();
|
|
112
|
-
}, [dispatch,
|
|
87
|
+
}, [dispatch, methods, methods.watch]);
|
|
113
88
|
if (!rangesPreferences || !range) {
|
|
114
89
|
return;
|
|
115
90
|
}
|
|
@@ -120,31 +95,29 @@ function useRange(rangeId) {
|
|
|
120
95
|
const { ranges } = useSpectrum({
|
|
121
96
|
ranges: { values: [] },
|
|
122
97
|
});
|
|
123
|
-
|
|
124
|
-
|
|
98
|
+
return useMemo(() => {
|
|
99
|
+
const index = ranges.values.findIndex((rangeRecord) => rangeRecord.id === rangeId);
|
|
100
|
+
return structuredClone(appendCouplings(ranges.values[index]));
|
|
101
|
+
}, [rangeId, ranges.values]);
|
|
125
102
|
}
|
|
126
|
-
function
|
|
127
|
-
const { couplingFormat } = options;
|
|
103
|
+
function appendCouplings(range) {
|
|
128
104
|
const signals = [];
|
|
129
105
|
for (const signal of range?.signals || []) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
106
|
+
const js = [];
|
|
107
|
+
if (!signal.multiplicity ||
|
|
108
|
+
(signal.multiplicity.length === 1 &&
|
|
109
|
+
!['s', 'm'].includes(signal.multiplicity))) {
|
|
133
110
|
signals.push(signal);
|
|
134
111
|
continue;
|
|
135
112
|
}
|
|
136
113
|
for (const multiplicity of splitPatterns(signal.multiplicity)) {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
counterJ++;
|
|
142
|
-
}
|
|
143
|
-
js.multiplicity = translateMultiplet(js.multiplicity || multiplicity);
|
|
144
|
-
couplings.push(js);
|
|
114
|
+
js.push({
|
|
115
|
+
multiplicity: multiplicity.value,
|
|
116
|
+
coupling: '',
|
|
117
|
+
});
|
|
145
118
|
}
|
|
146
|
-
signals.push({ ...signal, js
|
|
119
|
+
signals.push({ ...signal, js });
|
|
147
120
|
}
|
|
148
|
-
return { ...range,
|
|
121
|
+
return { ...range, signals };
|
|
149
122
|
}
|
|
150
123
|
//# sourceMappingURL=EditRangeModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditRangeModal.js","sourceRoot":"","sources":["../../../../src/component/modal/editRange/EditRangeModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"EditRangeModal.js","sourceRoot":"","sources":["../../../../src/component/modal/editRange/EditRangeModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,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AC,YAAY,CAAC,MAAM,KAAK,CAAC;gBAC/B,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,EAC5C,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACrB,SAAS;QACX,CAAC;QAED,KAAK,MAAM,YAAY,IAAI,aAAa,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC;YAC9D,EAAE,CAAC,IAAI,CAAC;gBACN,YAAY,EAAE,YAAY,CAAC,KAAK;gBAChC,QAAQ,EAAE,EAAE;aACW,CAAC,CAAC;QAC7B,CAAC;QAED,OAAO,CAAC,IAAI,CAAC,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;IAClC,CAAC;IAED,OAAO,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,CAAC;AAC/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeltaInput.d.ts","sourceRoot":"","sources":["../../../../../../src/component/modal/editRange/forms/components/DeltaInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeltaInput.d.ts","sourceRoot":"","sources":["../../../../../../src/component/modal/editRange/forms/components/DeltaInput.tsx"],"names":[],"mappings":"AAOA,UAAU,eAAe;IACvB,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAMD,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,eAAe,2CA2D5D"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { translateMultiplet } from 'nmr-processing';
|
|
3
2
|
import { useFormContext, useWatch } from 'react-hook-form';
|
|
4
3
|
import { NumberInput2Controller } from '../../../../elements/NumberInput2Controller.js';
|
|
5
4
|
import { useEvent } from '../../../../utility/Events.js';
|
|
@@ -38,8 +37,6 @@ export function DeltaInput({ signal, index }) {
|
|
|
38
37
|
paddingLeft: 0,
|
|
39
38
|
}, fill: true, noShadowBox: true, buttonPosition: "none", debounceTime: 250, onClick: () => {
|
|
40
39
|
setFocusSource('delta');
|
|
41
|
-
} }), _jsx("span", { children: signal.js
|
|
42
|
-
.map((_coupling) => translateMultiplet(_coupling.multiplicity))
|
|
43
|
-
.join('') })] }));
|
|
40
|
+
} }), _jsx("span", { children: signal.js.map(({ multiplicity }) => multiplicity).join('') })] }));
|
|
44
41
|
}
|
|
45
42
|
//# sourceMappingURL=DeltaInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeltaInput.js","sourceRoot":"","sources":["../../../../../../src/component/modal/editRange/forms/components/DeltaInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DeltaInput.js","sourceRoot":"","sources":["../../../../../../src/component/modal/editRange/forms/components/DeltaInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAOzD,SAAS,QAAQ,CAAC,MAAM,EAAE,CAAC;IACzB,OAAO,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,EAAE,MAAM,EAAE,KAAK,EAAmB;IAC3D,MAAM,EACJ,OAAO,EACP,SAAS,EAAE,EAAE,MAAM,EAAE,EACrB,QAAQ,GACT,GAAG,cAAc,EAAE,CAAC;IACrB,MAAM,UAAU,GAAG,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC3C,MAAM,EAAE,WAAW,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ACrB,YAAY,EAAE,GAAG,EACjB,OAAO,EAAE,GAAG,EAAE;oBACZ,cAAc,CAAC,OAAO,CAAC,CAAC;gBAC1B,CAAC,GACD,EACF,yBAAO,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,GAAQ,IACrE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewSignalTab.d.ts","sourceRoot":"","sources":["../../../../../../src/component/modal/editRange/forms/components/NewSignalTab.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NewSignalTab.d.ts","sourceRoot":"","sources":["../../../../../../src/component/modal/editRange/forms/components/NewSignalTab.tsx"],"names":[],"mappings":"AAgCA,UAAU,iBAAiB;IACzB,KAAK,EAAE,GAAG,CAAC;CACZ;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAsFpD"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from '@blueprintjs/core';
|
|
3
3
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
4
|
-
import { translateMultiplet } from 'nmr-processing';
|
|
5
4
|
import { useEffect } from 'react';
|
|
6
5
|
import { useForm, useFormContext, useWatch } from 'react-hook-form';
|
|
7
6
|
import * as Yup from 'yup';
|
|
@@ -36,7 +35,7 @@ export function NewSignalTab(props) {
|
|
|
36
35
|
multiplicity: 'm',
|
|
37
36
|
kind: 'signal',
|
|
38
37
|
delta: val.delta,
|
|
39
|
-
js: [{ multiplicity:
|
|
38
|
+
js: [{ multiplicity: 'm', coupling: '' }],
|
|
40
39
|
};
|
|
41
40
|
const _signals = signals.slice().concat(newSignal);
|
|
42
41
|
setValue('signals', _signals);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewSignalTab.js","sourceRoot":"","sources":["../../../../../../src/component/modal/editRange/forms/components/NewSignalTab.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"NewSignalTab.js","sourceRoot":"","sources":["../../../../../../src/component/modal/editRange/forms/components/NewSignalTab.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,MAAM,MAAM,GAGR;IACF,SAAS,EAAE;QACT,OAAO,EAAE,QAAQ;KAClB;IACD,cAAc,EAAE;QACd,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,OAAO;QAChB,MAAM,EAAE,MAAM;KACf;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,QAAQ;QACjB,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,OAAO;KACnB;CACF,CAAC;AAMF,MAAM,UAAU,YAAY,CAAC,KAAwB;IACnD,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IACxB,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,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,CAAC;AAED,SAAS,yBAAyB,CAAC,KAAK;IACtC,OAAO,GAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC;QACxB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE;aAChB,IAAI,CAAC,YAAY,EAAE,EAAE,EAAE,SAAS,kBAAkB,CAAC,KAAK;YACvD,2CAA2C;YAC3C,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;YACnC,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,IAAI,KAAK,CAAC,EAAE,EAAE,CAAC;gBACtD,OAAO,IAAI,CAAC;YACd,CAAC;YAED,MAAM,YAAY,GAAG,IACnB,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAC7B,uBAAuB,CAAC;YACxB,OAAO,WAAW,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC;QACtD,CAAC,CAAC;aACD,QAAQ,EAAE;KACd,CAAC,CAAC;AACL,CAAC"}
|
package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignalJCouplingsTable.d.ts","sourceRoot":"","sources":["../../../../../../../src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignalJCouplingsTable.d.ts","sourceRoot":"","sources":["../../../../../../../src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx"],"names":[],"mappings":"AAkCA,UAAU,0BAA0B;IAClC,KAAK,EAAE,MAAM,CAAC;CACf;AAcD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,2CA2NtE"}
|