nmrium 1.1.0 → 1.2.1
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/ExclusionZoneAnnotation.js +1 -1
- package/lib/component/1d/FloatPublicationString.js +2 -2
- package/lib/component/1d/FloatingRanges.js +3 -3
- package/lib/component/1d/FloatingRanges.js.map +1 -1
- package/lib/component/1d/FooterBanner.js +1 -1
- package/lib/component/1d/LinesSeries.js +1 -1
- package/lib/component/1d/PredictionErrorsNotations.js +2 -2
- package/lib/component/1d/inset/DraggableInset.js +2 -2
- package/lib/component/1d/multiAnalysis/AnalysisRange.js +1 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.js.map +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.d.ts +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.d.ts.map +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +3 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
- package/lib/component/1d/peaks/Peaks.js +1 -1
- package/lib/component/1d/peaks/Peaks.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +3 -3
- package/lib/component/1d-2d/tools/BrushXY.js +2 -2
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.js +1 -1
- package/lib/component/2d/SignalDeltaLine.js +1 -1
- package/lib/component/2d/zones/Signal.d.ts.map +1 -1
- package/lib/component/2d/zones/Signal.js +1 -1
- package/lib/component/2d/zones/Signal.js.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +2 -2
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/Zone.d.ts.map +1 -1
- package/lib/component/2d/zones/Zone.js +3 -1
- package/lib/component/2d/zones/Zone.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js +4 -4
- package/lib/component/elements/Alert.js +2 -2
- package/lib/component/elements/AssignmentsCell.js +1 -1
- package/lib/component/elements/Button.js +10 -10
- package/lib/component/elements/Button.js.map +1 -1
- package/lib/component/elements/DraggableDialog.js +3 -3
- package/lib/component/elements/EditableColumn.js +3 -3
- package/lib/component/elements/EmptyText.js +2 -2
- package/lib/component/elements/Footer.js +9 -9
- package/lib/component/elements/Footer.js.map +1 -1
- package/lib/component/elements/MoleculeSelection.js +19 -19
- package/lib/component/elements/MoleculeSelection.js.map +1 -1
- package/lib/component/elements/NextPrev.js +15 -15
- package/lib/component/elements/NextPrev.js.map +1 -1
- package/lib/component/elements/ReactTable/BaseReactTable.js +6 -6
- package/lib/component/elements/ReadOnly.js +8 -8
- package/lib/component/elements/ReadOnly.js.map +1 -1
- package/lib/component/elements/Sections.js +29 -29
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/Select.js +10 -10
- package/lib/component/elements/Select.js.map +1 -1
- package/lib/component/elements/StyledDialogBody.js +1 -1
- package/lib/component/elements/StyledDialogBody.js.map +1 -1
- package/lib/component/elements/Tab/DeleteButton.js +5 -5
- package/lib/component/elements/Tab/Tabs.js +5 -5
- package/lib/component/elements/dropDownButton/DropDownList.js +6 -6
- package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
- package/lib/component/elements/export/ExportManager.js +12 -1
- package/lib/component/elements/export/ExportManager.js.map +1 -1
- package/lib/component/elements/resizer/SVGResizer.js +1 -1
- package/lib/component/header/Header.js +1 -1
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +25 -10
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/useFilter.d.ts.map +1 -1
- package/lib/component/hooks/useFilter.js +4 -5
- package/lib/component/hooks/useFilter.js.map +1 -1
- package/lib/component/hooks/useSaveSettings.js +2 -2
- package/lib/component/loader/DefaultSpinnerComponent.js +9 -9
- package/lib/component/loader/DropZone.js +8 -8
- package/lib/component/main/ErrorOverlay.js +4 -4
- package/lib/component/main/InnerNMRiumContents.js +3 -3
- package/lib/component/main/NMRiumViewer.d.ts.map +1 -1
- package/lib/component/main/NMRiumViewer.js +13 -2
- package/lib/component/main/NMRiumViewer.js.map +1 -1
- package/lib/component/modal/AboutPredictionModal.js +2 -2
- package/lib/component/modal/AboutSpectrumSimulationModal.js +2 -2
- package/lib/component/modal/MultipletAnalysisModal.js +12 -12
- package/lib/component/modal/PredictSpectraModal.js +4 -4
- package/lib/component/modal/PublicationStringModal.js +2 -2
- package/lib/component/modal/aboutUs/AboutUsModal.js +3 -3
- package/lib/component/modal/changeSum/ChangeSumModalContents.js +1 -1
- package/lib/component/modal/changeSum/SelectMolecule.js +5 -5
- package/lib/component/modal/changeSum/SelectMolecule.js.map +1 -1
- package/lib/component/modal/setting/GeneralSettings.js +5 -5
- package/lib/component/panels/Panels.js +2 -2
- package/lib/component/panels/PanelsBar.js +3 -3
- package/lib/component/panels/PanelsBar.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.js +6 -6
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +9 -9
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +5 -5
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +11 -11
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +7 -7
- package/lib/component/panels/SummaryPanel/Overview.js +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +6 -5
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTable.js +6 -6
- package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.js +1 -1
- package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +32 -5
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/InnerFilterHeader.js +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/multipleAnalysisPanel/AlignSpectra.js +4 -4
- package/lib/component/panels/predictionPanel/PredictionPanel.js +6 -6
- package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +69 -38
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +2 -2
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/workspaces/assignment.d.ts.map +1 -1
- package/lib/component/workspaces/assignment.js +1 -0
- package/lib/component/workspaces/assignment.js.map +1 -1
- package/lib/component/workspaces/basic.d.ts.map +1 -1
- package/lib/component/workspaces/basic.js +1 -0
- package/lib/component/workspaces/basic.js.map +1 -1
- package/lib/component/workspaces/embedded.d.ts.map +1 -1
- package/lib/component/workspaces/embedded.js +1 -0
- package/lib/component/workspaces/embedded.js.map +1 -1
- package/lib/component/workspaces/exercise.d.ts.map +1 -1
- package/lib/component/workspaces/exercise.js +1 -0
- package/lib/component/workspaces/exercise.js.map +1 -1
- package/lib/component/workspaces/prediction.d.ts.map +1 -1
- package/lib/component/workspaces/prediction.js +1 -0
- package/lib/component/workspaces/prediction.js.map +1 -1
- package/lib/component/workspaces/process1D.d.ts.map +1 -1
- package/lib/component/workspaces/process1D.js +1 -0
- package/lib/component/workspaces/process1D.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/data/PredictionManager.d.ts.map +1 -1
- package/lib/data/PredictionManager.js +7 -21
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/SpectraManager.js +1 -1
- package/lib/data/SpectraManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +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/utilities/generateColor.d.ts.map +1 -1
- package/lib/data/utilities/generateColor.js +1 -1
- package/lib/data/utilities/generateColor.js.map +1 -1
- package/lib/data/utilities/isNumber.js +1 -1
- package/lib/data/utilities/isNumber.js.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.js +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +41 -36
- package/src/component/1d/ExclusionZoneAnnotation.tsx +1 -1
- package/src/component/1d/FloatPublicationString.tsx +2 -2
- package/src/component/1d/FloatingRanges.tsx +3 -3
- package/src/component/1d/FooterBanner.tsx +1 -1
- package/src/component/1d/LinesSeries.tsx +1 -1
- package/src/component/1d/PredictionErrorsNotations.tsx +2 -2
- package/src/component/1d/inset/DraggableInset.tsx +2 -2
- package/src/component/1d/multiAnalysis/AnalysisRange.tsx +1 -1
- package/src/component/1d/multiAnalysis/MultiAnalysisRanges.tsx +3 -1
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +1 -1
- package/src/component/1d/peaks/Peaks.tsx +2 -6
- package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +3 -3
- package/src/component/1d-2d/tools/BrushXY.tsx +2 -2
- package/src/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.tsx +1 -1
- package/src/component/2d/SignalDeltaLine.tsx +1 -1
- package/src/component/2d/zones/Signal.tsx +2 -1
- package/src/component/2d/zones/SignalsGuideLines.tsx +2 -2
- package/src/component/2d/zones/Zone.tsx +2 -1
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +1 -1
- package/src/component/elements/ActionsButtonsPopover.tsx +4 -4
- package/src/component/elements/Alert.tsx +2 -2
- package/src/component/elements/AssignmentsCell.tsx +1 -1
- package/src/component/elements/Button.tsx +10 -10
- package/src/component/elements/DraggableDialog.tsx +3 -3
- package/src/component/elements/EditableColumn.tsx +3 -3
- package/src/component/elements/EmptyText.tsx +2 -2
- package/src/component/elements/Footer.tsx +9 -9
- package/src/component/elements/MoleculeSelection.tsx +19 -19
- package/src/component/elements/NextPrev.tsx +15 -15
- package/src/component/elements/ReactTable/BaseReactTable.tsx +6 -6
- package/src/component/elements/ReadOnly.tsx +8 -8
- package/src/component/elements/Sections.tsx +29 -29
- package/src/component/elements/Select.tsx +10 -10
- package/src/component/elements/StyledDialogBody.tsx +1 -1
- package/src/component/elements/Tab/DeleteButton.tsx +5 -5
- package/src/component/elements/Tab/Tabs.tsx +5 -5
- package/src/component/elements/dropDownButton/DropDownList.tsx +6 -6
- package/src/component/elements/export/ExportManager.tsx +13 -3
- package/src/component/elements/resizer/SVGResizer.tsx +1 -1
- package/src/component/header/Header.tsx +1 -1
- package/src/component/hooks/useExport.tsx +21 -10
- package/src/component/hooks/useFilter.ts +4 -6
- package/src/component/hooks/useSaveSettings.tsx +2 -2
- package/src/component/loader/DefaultSpinnerComponent.tsx +9 -9
- package/src/component/loader/DropZone.tsx +8 -8
- package/src/component/main/ErrorOverlay.tsx +4 -4
- package/src/component/main/InnerNMRiumContents.tsx +3 -3
- package/src/component/main/NMRiumViewer.tsx +16 -2
- package/src/component/modal/AboutPredictionModal.tsx +2 -2
- package/src/component/modal/AboutSpectrumSimulationModal.tsx +2 -2
- package/src/component/modal/MultipletAnalysisModal.tsx +12 -12
- package/src/component/modal/PredictSpectraModal.tsx +4 -4
- package/src/component/modal/PublicationStringModal.tsx +2 -2
- package/src/component/modal/aboutUs/AboutUsModal.tsx +3 -3
- package/src/component/modal/changeSum/ChangeSumModalContents.tsx +1 -1
- package/src/component/modal/changeSum/SelectMolecule.tsx +5 -5
- package/src/component/modal/setting/GeneralSettings.tsx +5 -5
- package/src/component/panels/Panels.tsx +2 -2
- package/src/component/panels/PanelsBar.tsx +3 -3
- package/src/component/panels/RangesPanel/RangesTable.tsx +6 -6
- package/src/component/panels/RangesPanel/TableColumns/ActionsColumn.tsx +1 -1
- package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.tsx +9 -9
- package/src/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.tsx +5 -5
- package/src/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.tsx +11 -11
- package/src/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.tsx +7 -7
- package/src/component/panels/SummaryPanel/Overview.tsx +1 -1
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +6 -5
- package/src/component/panels/ZonesPanel/ZonesTable.tsx +6 -6
- package/src/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.tsx +1 -0
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +37 -5
- package/src/component/panels/filtersPanel/Filters/InnerFilterHeader.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +1 -0
- package/src/component/panels/multipleAnalysisPanel/AlignSpectra.tsx +4 -4
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +6 -6
- package/src/component/panels/predictionPanel/PredictionSimpleOptions.tsx +1 -1
- package/src/component/reducer/actions/FiltersActions.ts +197 -91
- package/src/component/reducer/actions/ToolsActions.ts +5 -4
- package/src/component/workspaces/assignment.ts +1 -0
- package/src/component/workspaces/basic.ts +1 -0
- package/src/component/workspaces/embedded.ts +1 -0
- package/src/component/workspaces/exercise.ts +1 -0
- package/src/component/workspaces/prediction.ts +1 -0
- package/src/component/workspaces/process1D.ts +1 -0
- package/src/component/workspaces/workspaceDefaultProperties.ts +1 -0
- package/src/data/PredictionManager.ts +8 -23
- package/src/data/SpectraManager.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +1 -1
- package/src/data/utilities/generateColor.ts +5 -3
- package/src/data/utilities/isNumber.ts +1 -1
- package/src/utils/clipboard/clipboardComponents.tsx +1 -1
- package/src/versionInfo.ts +1 -1
|
@@ -13,12 +13,12 @@ import { useGetPanelOptions } from './hooks/useGetPanelOptions.js';
|
|
|
13
13
|
import { useTogglePanel } from './hooks/useTogglePanel.js';
|
|
14
14
|
|
|
15
15
|
const PanelsBarContainer = styled(ButtonGroup)`
|
|
16
|
+
background-color: ${Colors.WHITE};
|
|
17
|
+
border-left: 1px solid ${Colors.LIGHT_GRAY4};
|
|
16
18
|
flex-wrap: nowrap;
|
|
17
|
-
height: 100%;
|
|
18
19
|
gap: 4px;
|
|
20
|
+
height: 100%;
|
|
19
21
|
padding: 4px;
|
|
20
|
-
border-left: 1px solid ${Colors.LIGHT_GRAY4};
|
|
21
|
-
background-color: ${Colors.WHITE};
|
|
22
22
|
`;
|
|
23
23
|
|
|
24
24
|
function useHiddenItemsMenu(
|
|
@@ -15,10 +15,10 @@ import RangesTableRow from './RangesTableRow.js';
|
|
|
15
15
|
import useMapRanges from './hooks/useMapRanges.js';
|
|
16
16
|
|
|
17
17
|
const Table = styled.table`
|
|
18
|
-
border-spacing: 0;
|
|
19
18
|
border: 1px solid #dedede;
|
|
20
|
-
|
|
19
|
+
border-spacing: 0;
|
|
21
20
|
font-size: 12px;
|
|
21
|
+
width: 100%;
|
|
22
22
|
|
|
23
23
|
.react-contextmenu-wrapper {
|
|
24
24
|
display: contents;
|
|
@@ -33,12 +33,12 @@ const Table = styled.table`
|
|
|
33
33
|
|
|
34
34
|
th,
|
|
35
35
|
td {
|
|
36
|
-
white-space: nowrap;
|
|
37
|
-
text-align: center;
|
|
38
|
-
margin: 0;
|
|
39
|
-
padding: 0.1rem 0.4rem;
|
|
40
36
|
border-bottom: 1px solid #dedede;
|
|
41
37
|
border-right: 1px solid #dedede;
|
|
38
|
+
margin: 0;
|
|
39
|
+
padding: 0.1rem 0.4rem;
|
|
40
|
+
text-align: center;
|
|
41
|
+
white-space: nowrap;
|
|
42
42
|
|
|
43
43
|
:last-child {
|
|
44
44
|
border-right: 0;
|
|
@@ -8,32 +8,32 @@ import AdditionalColumnHeader from './AdditionalColumnHeader.js';
|
|
|
8
8
|
import CorrelationTableRow from './CorrelationTableRow.js';
|
|
9
9
|
|
|
10
10
|
const Container = styled.div`
|
|
11
|
-
overflow: auto;
|
|
12
|
-
height: 100%;
|
|
13
11
|
display: block;
|
|
12
|
+
height: 100%;
|
|
13
|
+
overflow: auto;
|
|
14
14
|
|
|
15
15
|
table {
|
|
16
|
-
border-spacing: 0;
|
|
17
16
|
border: 1px solid #dedede;
|
|
18
|
-
|
|
17
|
+
border-spacing: 0;
|
|
19
18
|
font-size: 12px;
|
|
20
19
|
height: 100%;
|
|
20
|
+
width: 100%;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
th {
|
|
24
24
|
position: sticky;
|
|
25
|
-
background-color: white;
|
|
26
25
|
top: 0;
|
|
26
|
+
background-color: white;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
th,
|
|
30
30
|
td {
|
|
31
|
-
white-space: nowrap;
|
|
32
|
-
text-align: center;
|
|
33
|
-
margin: 0;
|
|
34
|
-
padding: 0.4rem;
|
|
35
31
|
border-bottom: 1px solid #dedede;
|
|
36
32
|
border-right: 1px solid #dedede;
|
|
33
|
+
margin: 0;
|
|
34
|
+
padding: 0.4rem;
|
|
35
|
+
text-align: center;
|
|
36
|
+
white-space: nowrap;
|
|
37
37
|
|
|
38
38
|
:last-child {
|
|
39
39
|
border-right: 0;
|
|
@@ -11,17 +11,17 @@ const Container = styled.div`
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
button {
|
|
14
|
-
|
|
15
|
-
padding: 5px;
|
|
14
|
+
background-color: gray;
|
|
16
15
|
border: 1px solid gray;
|
|
17
16
|
border-radius: 5px;
|
|
17
|
+
color: white;
|
|
18
|
+
display: block;
|
|
19
|
+
flex: 2;
|
|
18
20
|
height: 30px;
|
|
19
21
|
margin: 0 auto;
|
|
20
22
|
margin-top: 15px;
|
|
21
|
-
|
|
23
|
+
padding: 5px;
|
|
22
24
|
width: 90px;
|
|
23
|
-
color: white;
|
|
24
|
-
background-color: gray;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
button:focus {
|
|
@@ -9,38 +9,38 @@ import Input from '../../../../elements/Input.js';
|
|
|
9
9
|
import Label from '../../../../elements/Label.js';
|
|
10
10
|
|
|
11
11
|
const Container = styled.div`
|
|
12
|
-
width: 100%;
|
|
13
12
|
height: 100%;
|
|
14
13
|
margin-top: 10px;
|
|
15
14
|
text-align: center;
|
|
15
|
+
width: 100%;
|
|
16
16
|
|
|
17
17
|
button {
|
|
18
|
-
|
|
19
|
-
padding: 5px;
|
|
18
|
+
background-color: gray;
|
|
20
19
|
border: 1px solid gray;
|
|
21
20
|
border-radius: 5px;
|
|
21
|
+
color: white;
|
|
22
|
+
display: block;
|
|
23
|
+
flex: 2;
|
|
22
24
|
height: 30px;
|
|
23
25
|
margin: 0 auto;
|
|
24
26
|
margin-top: 15px;
|
|
25
|
-
|
|
27
|
+
padding: 5px;
|
|
26
28
|
width: 60px;
|
|
27
|
-
color: white;
|
|
28
|
-
background-color: gray;
|
|
29
29
|
}
|
|
30
30
|
`;
|
|
31
31
|
|
|
32
32
|
const InputContainer = styled.div`
|
|
33
|
-
|
|
34
|
-
margin-top: 5px;
|
|
35
|
-
text-align: center;
|
|
33
|
+
align-items: center;
|
|
36
34
|
display: flex;
|
|
37
35
|
flex-direction: column;
|
|
38
|
-
align-items: center;
|
|
39
36
|
justify-content: center;
|
|
37
|
+
margin-top: 5px;
|
|
38
|
+
text-align: center;
|
|
39
|
+
width: 100%;
|
|
40
40
|
`;
|
|
41
41
|
const WarningText = styled.span`
|
|
42
|
-
margin-top: 5px;
|
|
43
42
|
color: red;
|
|
43
|
+
margin-top: 5px;
|
|
44
44
|
`;
|
|
45
45
|
|
|
46
46
|
interface InputProps {
|
|
@@ -6,10 +6,10 @@ import { useCallback, useState } from 'react';
|
|
|
6
6
|
import Select from '../../../../elements/Select.js';
|
|
7
7
|
|
|
8
8
|
const Container = styled.div`
|
|
9
|
-
width: 100%;
|
|
10
9
|
height: 100%;
|
|
11
10
|
margin-top: 10px;
|
|
12
11
|
text-align: center;
|
|
12
|
+
width: 100%;
|
|
13
13
|
|
|
14
14
|
p {
|
|
15
15
|
font-size: 14px;
|
|
@@ -17,22 +17,22 @@ const Container = styled.div`
|
|
|
17
17
|
|
|
18
18
|
.selection-container {
|
|
19
19
|
margin-top: 10px;
|
|
20
|
-
width: 100%;
|
|
21
20
|
text-align: center;
|
|
21
|
+
width: 100%;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
button {
|
|
25
|
-
|
|
26
|
-
padding: 5px;
|
|
25
|
+
background-color: gray;
|
|
27
26
|
border: 1px solid gray;
|
|
28
27
|
border-radius: 5px;
|
|
28
|
+
color: white;
|
|
29
|
+
display: block;
|
|
30
|
+
flex: 2;
|
|
29
31
|
height: 30px;
|
|
30
32
|
margin: 0 auto;
|
|
31
33
|
margin-top: 15px;
|
|
32
|
-
|
|
34
|
+
padding: 5px;
|
|
33
35
|
width: 60px;
|
|
34
|
-
color: white;
|
|
35
|
-
background-color: gray;
|
|
36
36
|
}
|
|
37
37
|
`;
|
|
38
38
|
|
|
@@ -52,8 +52,8 @@ export type OnEditCorrelationCallback = (
|
|
|
52
52
|
const Container = styled.div`
|
|
53
53
|
display: flex;
|
|
54
54
|
flex-direction: column;
|
|
55
|
-
text-align: center;
|
|
56
55
|
height: 100%;
|
|
56
|
+
text-align: center;
|
|
57
57
|
width: 100%;
|
|
58
58
|
`;
|
|
59
59
|
|
|
@@ -63,19 +63,19 @@ const InnerHeader = styled.div`
|
|
|
63
63
|
justify-content: center;
|
|
64
64
|
`;
|
|
65
65
|
const OverviewContainer = styled.div`
|
|
66
|
-
width: 100%;
|
|
67
|
-
display: flex;
|
|
68
66
|
align-items: center;
|
|
67
|
+
display: flex;
|
|
69
68
|
margin-left: 10px;
|
|
69
|
+
width: 100%;
|
|
70
70
|
`;
|
|
71
71
|
|
|
72
72
|
const SelectionContainer = styled.div`
|
|
73
|
-
width: 100%;
|
|
74
|
-
display: flex;
|
|
75
73
|
align-items: center;
|
|
74
|
+
display: flex;
|
|
76
75
|
justify-content: flex-end;
|
|
77
76
|
margin-right: 2px;
|
|
78
77
|
white-space: nowrap;
|
|
78
|
+
width: 100%;
|
|
79
79
|
`;
|
|
80
80
|
|
|
81
81
|
const SelectionLabel = styled.label`
|
|
@@ -274,6 +274,7 @@ function SummaryPanel() {
|
|
|
274
274
|
(correlation) =>
|
|
275
275
|
correlation.atomType === _selectedAdditionalColumnsAtomType,
|
|
276
276
|
)
|
|
277
|
+
// eslint-disable-next-line unicorn/no-array-reverse
|
|
277
278
|
.reverse()
|
|
278
279
|
: [],
|
|
279
280
|
);
|
|
@@ -18,10 +18,10 @@ import ZonesTableRow from './ZonesTableRow.js';
|
|
|
18
18
|
import { useMapZones } from './hooks/useMapZones.js';
|
|
19
19
|
|
|
20
20
|
const Table = styled.table`
|
|
21
|
-
border-spacing: 0;
|
|
22
21
|
border: 1px solid #dedede;
|
|
23
|
-
|
|
22
|
+
border-spacing: 0;
|
|
24
23
|
font-size: 12px;
|
|
24
|
+
width: 100%;
|
|
25
25
|
|
|
26
26
|
.react-contextmenu-wrapper {
|
|
27
27
|
display: contents;
|
|
@@ -35,12 +35,12 @@ const Table = styled.table`
|
|
|
35
35
|
|
|
36
36
|
th,
|
|
37
37
|
td {
|
|
38
|
-
white-space: nowrap;
|
|
39
|
-
text-align: center;
|
|
40
|
-
margin: 0;
|
|
41
|
-
padding: 0.1rem 0.4rem;
|
|
42
38
|
border-bottom: 1px solid #dedede;
|
|
43
39
|
border-right: 1px solid #dedede;
|
|
40
|
+
margin: 0;
|
|
41
|
+
padding: 0.1rem 0.4rem;
|
|
42
|
+
text-align: center;
|
|
43
|
+
white-space: nowrap;
|
|
44
44
|
|
|
45
45
|
:last-child {
|
|
46
46
|
border-right: 0;
|
|
@@ -16,6 +16,7 @@ import type { AlertButton } from '../../../elements/Alert.js';
|
|
|
16
16
|
import { useAlert } from '../../../elements/Alert.js';
|
|
17
17
|
import { EmptyText } from '../../../elements/EmptyText.js';
|
|
18
18
|
import { Sections } from '../../../elements/Sections.js';
|
|
19
|
+
import { useActiveSpectrum } from '../../../hooks/useActiveSpectrum.ts';
|
|
19
20
|
import useSpectraByActiveNucleus from '../../../hooks/useSpectraPerNucleus.js';
|
|
20
21
|
import useSpectrum from '../../../hooks/useSpectrum.js';
|
|
21
22
|
import { getDefaultFilterOptions } from '../../../utility/getDefaultFilterOptions.js';
|
|
@@ -26,10 +27,19 @@ export const nonRemovableFilters = new Set<BaseFilterEntry['name']>([
|
|
|
26
27
|
'digitalFilter',
|
|
27
28
|
'digitalFilter2D',
|
|
28
29
|
]);
|
|
30
|
+
const readOnlyFilters = new Set<BaseFilterEntry['name']>([
|
|
31
|
+
'digitalFilter',
|
|
32
|
+
'shiftX',
|
|
33
|
+
'exclusionZones',
|
|
34
|
+
'fft',
|
|
35
|
+
'digitalFilter2D',
|
|
36
|
+
'fftDimension1',
|
|
37
|
+
'fftDimension2',
|
|
38
|
+
]);
|
|
29
39
|
|
|
30
40
|
const IconButton = styled(Button)`
|
|
31
|
-
padding: 2px;
|
|
32
41
|
font-size: 16px;
|
|
42
|
+
padding: 2px;
|
|
33
43
|
`;
|
|
34
44
|
|
|
35
45
|
const Filters = {
|
|
@@ -120,9 +130,14 @@ function FilterElements(props: FilterElementsProps) {
|
|
|
120
130
|
});
|
|
121
131
|
}
|
|
122
132
|
|
|
133
|
+
const isEditable =
|
|
134
|
+
!hideFilterRestoreButton &&
|
|
135
|
+
activeFilterID !== id &&
|
|
136
|
+
!readOnlyFilters.has(name);
|
|
137
|
+
|
|
123
138
|
return (
|
|
124
139
|
<>
|
|
125
|
-
{
|
|
140
|
+
{isEditable && (
|
|
126
141
|
<IconButton
|
|
127
142
|
intent="success"
|
|
128
143
|
tooltipProps={{
|
|
@@ -176,6 +191,7 @@ function FiltersInner(props: FiltersInnerProps) {
|
|
|
176
191
|
const dispatch = useDispatch();
|
|
177
192
|
const toaster = useToaster();
|
|
178
193
|
const selectedFilterIndex = useRef<number>();
|
|
194
|
+
const activeSpectrum = useActiveSpectrum();
|
|
179
195
|
|
|
180
196
|
function toggleSection(sectionKey) {
|
|
181
197
|
openSection(selectedSection === sectionKey ? '' : sectionKey);
|
|
@@ -242,16 +258,32 @@ function FiltersInner(props: FiltersInnerProps) {
|
|
|
242
258
|
return null;
|
|
243
259
|
});
|
|
244
260
|
}
|
|
261
|
+
}, [filters, selectedTool]);
|
|
245
262
|
|
|
263
|
+
useEffect(() => {
|
|
246
264
|
if (Filters?.[selectedTool]) {
|
|
247
265
|
openSection(selectedTool);
|
|
266
|
+
return;
|
|
248
267
|
}
|
|
249
|
-
|
|
268
|
+
|
|
269
|
+
const filter = filters.find((filter) => filter.id === activeFilterID);
|
|
270
|
+
|
|
271
|
+
if (filter) {
|
|
272
|
+
openSection(filter.name);
|
|
273
|
+
}
|
|
274
|
+
}, [activeFilterID, filters, selectedTool]);
|
|
250
275
|
|
|
251
276
|
const filtersList = [...filters];
|
|
252
277
|
|
|
253
|
-
if (newFilter) {
|
|
254
|
-
|
|
278
|
+
if (newFilter && activeSpectrum) {
|
|
279
|
+
const activeFilterIndex = filters.findIndex(
|
|
280
|
+
(filter) => filter.id === activeFilterID,
|
|
281
|
+
);
|
|
282
|
+
if (activeFilterIndex === -1) {
|
|
283
|
+
filtersList.push(newFilter);
|
|
284
|
+
} else {
|
|
285
|
+
filtersList.splice(activeFilterIndex + 1, 0, newFilter);
|
|
286
|
+
}
|
|
255
287
|
}
|
|
256
288
|
|
|
257
289
|
if (filtersList?.length === 0) {
|
|
@@ -86,11 +86,11 @@ function getList(nucleus) {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
const Container = styled.div`
|
|
89
|
-
max-height: 100%;
|
|
90
|
-
padding: 10px 0 5px 20px;
|
|
91
89
|
display: flex;
|
|
92
|
-
flex-direction: column;
|
|
93
90
|
flex: 1;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
max-height: 100%;
|
|
93
|
+
padding: 10px 0 5px 20px;
|
|
94
94
|
|
|
95
95
|
.body {
|
|
96
96
|
overflow: auto;
|
|
@@ -98,9 +98,9 @@ const Container = styled.div`
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.header {
|
|
101
|
-
padding: 5px 0;
|
|
102
101
|
font-size: 15px;
|
|
103
102
|
font-weight: bold;
|
|
103
|
+
padding: 5px 0;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.footer {
|
|
@@ -30,19 +30,19 @@ const Container = styled.div`
|
|
|
30
30
|
`;
|
|
31
31
|
|
|
32
32
|
const Overflow = styled.div<{ height: number }>`
|
|
33
|
-
overflow: hidden auto;
|
|
34
33
|
height: ${({ height }) => height}px;
|
|
34
|
+
overflow: hidden auto;
|
|
35
35
|
`;
|
|
36
36
|
|
|
37
37
|
const StickyFooter = styled.div`
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
position: absolute;
|
|
39
|
+
right: 10px;
|
|
40
|
+
bottom: 0;
|
|
40
41
|
display: flex;
|
|
42
|
+
flex-shrink: 0;
|
|
41
43
|
justify-content: flex-end;
|
|
44
|
+
padding: 5px;
|
|
42
45
|
z-index: 2;
|
|
43
|
-
position: absolute;
|
|
44
|
-
bottom: 0;
|
|
45
|
-
right: 10px;
|
|
46
46
|
`;
|
|
47
47
|
|
|
48
48
|
export default function PredictionPanel() {
|
|
@@ -21,9 +21,9 @@ import { useWatchForm } from '../../useWatchForm.js';
|
|
|
21
21
|
|
|
22
22
|
const Container = styled.div`
|
|
23
23
|
display: flex;
|
|
24
|
-
justify-content: flex-end;
|
|
25
24
|
flex: 1;
|
|
26
25
|
height: 100%;
|
|
26
|
+
justify-content: flex-end;
|
|
27
27
|
`;
|
|
28
28
|
|
|
29
29
|
const predictionFormValidation = Yup.object().shape({
|