nmrium 1.1.0 → 1.2.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.
Files changed (232) hide show
  1. package/lib/component/1d/ExclusionZoneAnnotation.js +1 -1
  2. package/lib/component/1d/FloatPublicationString.js +2 -2
  3. package/lib/component/1d/FloatingRanges.js +3 -3
  4. package/lib/component/1d/FloatingRanges.js.map +1 -1
  5. package/lib/component/1d/FooterBanner.js +1 -1
  6. package/lib/component/1d/LinesSeries.js +1 -1
  7. package/lib/component/1d/PredictionErrorsNotations.js +2 -2
  8. package/lib/component/1d/inset/DraggableInset.js +2 -2
  9. package/lib/component/1d/multiAnalysis/AnalysisRange.js +1 -1
  10. package/lib/component/1d/multiAnalysis/AnalysisRange.js.map +1 -1
  11. package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.d.ts +1 -1
  12. package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.d.ts.map +1 -1
  13. package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +3 -1
  14. package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js.map +1 -1
  15. package/lib/component/1d/multiplicityTree/MultiplicityTree.js +1 -1
  16. package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
  17. package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
  18. package/lib/component/1d/peaks/Peaks.js +1 -1
  19. package/lib/component/1d/peaks/Peaks.js.map +1 -1
  20. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +3 -3
  21. package/lib/component/1d-2d/tools/BrushXY.js +2 -2
  22. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.js +1 -1
  23. package/lib/component/2d/SignalDeltaLine.js +1 -1
  24. package/lib/component/2d/zones/Signal.d.ts.map +1 -1
  25. package/lib/component/2d/zones/Signal.js +1 -1
  26. package/lib/component/2d/zones/Signal.js.map +1 -1
  27. package/lib/component/2d/zones/SignalsGuideLines.js +2 -2
  28. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
  29. package/lib/component/2d/zones/Zone.d.ts.map +1 -1
  30. package/lib/component/2d/zones/Zone.js +3 -1
  31. package/lib/component/2d/zones/Zone.js.map +1 -1
  32. package/lib/component/2d/zones/ZonesAssignmentsLabels.js +1 -1
  33. package/lib/component/elements/ActionsButtonsPopover.js +4 -4
  34. package/lib/component/elements/Alert.js +2 -2
  35. package/lib/component/elements/AssignmentsCell.js +1 -1
  36. package/lib/component/elements/Button.js +10 -10
  37. package/lib/component/elements/Button.js.map +1 -1
  38. package/lib/component/elements/DraggableDialog.js +3 -3
  39. package/lib/component/elements/EditableColumn.js +3 -3
  40. package/lib/component/elements/EmptyText.js +2 -2
  41. package/lib/component/elements/Footer.js +9 -9
  42. package/lib/component/elements/Footer.js.map +1 -1
  43. package/lib/component/elements/MoleculeSelection.js +19 -19
  44. package/lib/component/elements/MoleculeSelection.js.map +1 -1
  45. package/lib/component/elements/NextPrev.js +15 -15
  46. package/lib/component/elements/NextPrev.js.map +1 -1
  47. package/lib/component/elements/ReactTable/BaseReactTable.js +6 -6
  48. package/lib/component/elements/ReadOnly.js +8 -8
  49. package/lib/component/elements/ReadOnly.js.map +1 -1
  50. package/lib/component/elements/Sections.js +29 -29
  51. package/lib/component/elements/Sections.js.map +1 -1
  52. package/lib/component/elements/Select.js +10 -10
  53. package/lib/component/elements/Select.js.map +1 -1
  54. package/lib/component/elements/StyledDialogBody.js +1 -1
  55. package/lib/component/elements/StyledDialogBody.js.map +1 -1
  56. package/lib/component/elements/Tab/DeleteButton.js +5 -5
  57. package/lib/component/elements/Tab/Tabs.js +5 -5
  58. package/lib/component/elements/dropDownButton/DropDownList.js +6 -6
  59. package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
  60. package/lib/component/elements/export/ExportManager.js +12 -1
  61. package/lib/component/elements/export/ExportManager.js.map +1 -1
  62. package/lib/component/elements/resizer/SVGResizer.js +1 -1
  63. package/lib/component/header/Header.js +1 -1
  64. package/lib/component/hooks/useExport.d.ts.map +1 -1
  65. package/lib/component/hooks/useExport.js +25 -10
  66. package/lib/component/hooks/useExport.js.map +1 -1
  67. package/lib/component/hooks/useFilter.d.ts.map +1 -1
  68. package/lib/component/hooks/useFilter.js +4 -5
  69. package/lib/component/hooks/useFilter.js.map +1 -1
  70. package/lib/component/hooks/useSaveSettings.js +2 -2
  71. package/lib/component/loader/DefaultSpinnerComponent.js +9 -9
  72. package/lib/component/loader/DropZone.js +8 -8
  73. package/lib/component/main/ErrorOverlay.js +4 -4
  74. package/lib/component/main/InnerNMRiumContents.js +3 -3
  75. package/lib/component/modal/AboutPredictionModal.js +2 -2
  76. package/lib/component/modal/AboutSpectrumSimulationModal.js +2 -2
  77. package/lib/component/modal/MultipletAnalysisModal.js +12 -12
  78. package/lib/component/modal/PredictSpectraModal.js +4 -4
  79. package/lib/component/modal/PublicationStringModal.js +2 -2
  80. package/lib/component/modal/aboutUs/AboutUsModal.js +3 -3
  81. package/lib/component/modal/changeSum/ChangeSumModalContents.js +1 -1
  82. package/lib/component/modal/changeSum/SelectMolecule.js +5 -5
  83. package/lib/component/modal/changeSum/SelectMolecule.js.map +1 -1
  84. package/lib/component/modal/setting/GeneralSettings.js +5 -5
  85. package/lib/component/panels/Panels.js +2 -2
  86. package/lib/component/panels/PanelsBar.js +3 -3
  87. package/lib/component/panels/PanelsBar.js.map +1 -1
  88. package/lib/component/panels/RangesPanel/RangesTable.js +6 -6
  89. package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +1 -1
  90. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +9 -9
  91. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +5 -5
  92. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +11 -11
  93. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +7 -7
  94. package/lib/component/panels/SummaryPanel/Overview.js +1 -1
  95. package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
  96. package/lib/component/panels/SummaryPanel/SummaryPanel.js +6 -5
  97. package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
  98. package/lib/component/panels/ZonesPanel/ZonesTable.js +6 -6
  99. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
  100. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +11 -3
  101. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
  102. package/lib/component/panels/filtersPanel/Filters/InnerFilterHeader.js +1 -1
  103. package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js +4 -4
  104. package/lib/component/panels/predictionPanel/PredictionPanel.js +6 -6
  105. package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
  106. package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js +1 -1
  107. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  108. package/lib/component/reducer/actions/FiltersActions.js +54 -28
  109. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  110. package/lib/component/workspaces/assignment.d.ts.map +1 -1
  111. package/lib/component/workspaces/assignment.js +1 -0
  112. package/lib/component/workspaces/assignment.js.map +1 -1
  113. package/lib/component/workspaces/basic.d.ts.map +1 -1
  114. package/lib/component/workspaces/basic.js +1 -0
  115. package/lib/component/workspaces/basic.js.map +1 -1
  116. package/lib/component/workspaces/embedded.d.ts.map +1 -1
  117. package/lib/component/workspaces/embedded.js +1 -0
  118. package/lib/component/workspaces/embedded.js.map +1 -1
  119. package/lib/component/workspaces/exercise.d.ts.map +1 -1
  120. package/lib/component/workspaces/exercise.js +1 -0
  121. package/lib/component/workspaces/exercise.js.map +1 -1
  122. package/lib/component/workspaces/prediction.d.ts.map +1 -1
  123. package/lib/component/workspaces/prediction.js +1 -0
  124. package/lib/component/workspaces/prediction.js.map +1 -1
  125. package/lib/component/workspaces/process1D.d.ts.map +1 -1
  126. package/lib/component/workspaces/process1D.js +1 -0
  127. package/lib/component/workspaces/process1D.js.map +1 -1
  128. package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
  129. package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
  130. package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
  131. package/lib/data/PredictionManager.d.ts.map +1 -1
  132. package/lib/data/PredictionManager.js +7 -21
  133. package/lib/data/PredictionManager.js.map +1 -1
  134. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js +1 -1
  135. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js.map +1 -1
  136. package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +1 -1
  137. package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
  138. package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts.map +1 -1
  139. package/lib/data/utilities/generateColor.d.ts.map +1 -1
  140. package/lib/data/utilities/generateColor.js +1 -1
  141. package/lib/data/utilities/generateColor.js.map +1 -1
  142. package/lib/data/utilities/isNumber.js +1 -1
  143. package/lib/data/utilities/isNumber.js.map +1 -1
  144. package/lib/utils/clipboard/clipboardComponents.js +1 -1
  145. package/lib/versionInfo.js +1 -1
  146. package/package.json +41 -36
  147. package/src/component/1d/ExclusionZoneAnnotation.tsx +1 -1
  148. package/src/component/1d/FloatPublicationString.tsx +2 -2
  149. package/src/component/1d/FloatingRanges.tsx +3 -3
  150. package/src/component/1d/FooterBanner.tsx +1 -1
  151. package/src/component/1d/LinesSeries.tsx +1 -1
  152. package/src/component/1d/PredictionErrorsNotations.tsx +2 -2
  153. package/src/component/1d/inset/DraggableInset.tsx +2 -2
  154. package/src/component/1d/multiAnalysis/AnalysisRange.tsx +1 -1
  155. package/src/component/1d/multiAnalysis/MultiAnalysisRanges.tsx +3 -1
  156. package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +1 -1
  157. package/src/component/1d/peaks/Peaks.tsx +2 -6
  158. package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +3 -3
  159. package/src/component/1d-2d/tools/BrushXY.tsx +2 -2
  160. package/src/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.tsx +1 -1
  161. package/src/component/2d/SignalDeltaLine.tsx +1 -1
  162. package/src/component/2d/zones/Signal.tsx +2 -1
  163. package/src/component/2d/zones/SignalsGuideLines.tsx +2 -2
  164. package/src/component/2d/zones/Zone.tsx +2 -1
  165. package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +1 -1
  166. package/src/component/elements/ActionsButtonsPopover.tsx +4 -4
  167. package/src/component/elements/Alert.tsx +2 -2
  168. package/src/component/elements/AssignmentsCell.tsx +1 -1
  169. package/src/component/elements/Button.tsx +10 -10
  170. package/src/component/elements/DraggableDialog.tsx +3 -3
  171. package/src/component/elements/EditableColumn.tsx +3 -3
  172. package/src/component/elements/EmptyText.tsx +2 -2
  173. package/src/component/elements/Footer.tsx +9 -9
  174. package/src/component/elements/MoleculeSelection.tsx +19 -19
  175. package/src/component/elements/NextPrev.tsx +15 -15
  176. package/src/component/elements/ReactTable/BaseReactTable.tsx +6 -6
  177. package/src/component/elements/ReadOnly.tsx +8 -8
  178. package/src/component/elements/Sections.tsx +29 -29
  179. package/src/component/elements/Select.tsx +10 -10
  180. package/src/component/elements/StyledDialogBody.tsx +1 -1
  181. package/src/component/elements/Tab/DeleteButton.tsx +5 -5
  182. package/src/component/elements/Tab/Tabs.tsx +5 -5
  183. package/src/component/elements/dropDownButton/DropDownList.tsx +6 -6
  184. package/src/component/elements/export/ExportManager.tsx +13 -3
  185. package/src/component/elements/resizer/SVGResizer.tsx +1 -1
  186. package/src/component/header/Header.tsx +1 -1
  187. package/src/component/hooks/useExport.tsx +21 -10
  188. package/src/component/hooks/useFilter.ts +4 -6
  189. package/src/component/hooks/useSaveSettings.tsx +2 -2
  190. package/src/component/loader/DefaultSpinnerComponent.tsx +9 -9
  191. package/src/component/loader/DropZone.tsx +8 -8
  192. package/src/component/main/ErrorOverlay.tsx +4 -4
  193. package/src/component/main/InnerNMRiumContents.tsx +3 -3
  194. package/src/component/modal/AboutPredictionModal.tsx +2 -2
  195. package/src/component/modal/AboutSpectrumSimulationModal.tsx +2 -2
  196. package/src/component/modal/MultipletAnalysisModal.tsx +12 -12
  197. package/src/component/modal/PredictSpectraModal.tsx +4 -4
  198. package/src/component/modal/PublicationStringModal.tsx +2 -2
  199. package/src/component/modal/aboutUs/AboutUsModal.tsx +3 -3
  200. package/src/component/modal/changeSum/ChangeSumModalContents.tsx +1 -1
  201. package/src/component/modal/changeSum/SelectMolecule.tsx +5 -5
  202. package/src/component/modal/setting/GeneralSettings.tsx +5 -5
  203. package/src/component/panels/Panels.tsx +2 -2
  204. package/src/component/panels/PanelsBar.tsx +3 -3
  205. package/src/component/panels/RangesPanel/RangesTable.tsx +6 -6
  206. package/src/component/panels/RangesPanel/TableColumns/ActionsColumn.tsx +1 -1
  207. package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.tsx +9 -9
  208. package/src/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.tsx +5 -5
  209. package/src/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.tsx +11 -11
  210. package/src/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.tsx +7 -7
  211. package/src/component/panels/SummaryPanel/Overview.tsx +1 -1
  212. package/src/component/panels/SummaryPanel/SummaryPanel.tsx +6 -5
  213. package/src/component/panels/ZonesPanel/ZonesTable.tsx +6 -6
  214. package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +12 -3
  215. package/src/component/panels/filtersPanel/Filters/InnerFilterHeader.tsx +1 -1
  216. package/src/component/panels/multipleAnalysisPanel/AlignSpectra.tsx +4 -4
  217. package/src/component/panels/predictionPanel/PredictionPanel.tsx +6 -6
  218. package/src/component/panels/predictionPanel/PredictionSimpleOptions.tsx +1 -1
  219. package/src/component/reducer/actions/FiltersActions.ts +162 -81
  220. package/src/component/workspaces/assignment.ts +1 -0
  221. package/src/component/workspaces/basic.ts +1 -0
  222. package/src/component/workspaces/embedded.ts +1 -0
  223. package/src/component/workspaces/exercise.ts +1 -0
  224. package/src/component/workspaces/prediction.ts +1 -0
  225. package/src/component/workspaces/process1D.ts +1 -0
  226. package/src/component/workspaces/workspaceDefaultProperties.ts +1 -0
  227. package/src/data/PredictionManager.ts +8 -23
  228. package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +1 -1
  229. package/src/data/utilities/generateColor.ts +5 -3
  230. package/src/data/utilities/isNumber.ts +1 -1
  231. package/src/utils/clipboard/clipboardComponents.tsx +1 -1
  232. package/src/versionInfo.ts +1 -1
@@ -26,15 +26,15 @@ const DialogBody = styled(StyledDialogBody)`
26
26
 
27
27
  .warning {
28
28
  color: #c40000;
29
- font-weight: bold;
30
29
  font-size: 13px;
31
- text-align: justify;
30
+ font-weight: bold;
32
31
  margin-top: 30px;
32
+ text-align: justify;
33
33
  }
34
34
 
35
35
  .warning-container {
36
- margin-top: 5px;
37
36
  display: flex;
37
+ margin-top: 5px;
38
38
 
39
39
  input {
40
40
  margin: 5px 5px 5px 0;
@@ -42,8 +42,8 @@ const DialogBody = styled(StyledDialogBody)`
42
42
  }
43
43
 
44
44
  .header {
45
- padding: 0;
46
45
  margin: 0 30%;
46
+ padding: 0;
47
47
  width: 40%;
48
48
  }
49
49
  `;
@@ -16,10 +16,10 @@ import { usePanelPreferences } from '../hooks/usePanelPreferences.js';
16
16
  import useSpectrum from '../hooks/useSpectrum.js';
17
17
 
18
18
  const Body = styled.div`
19
+ border: 1px solid #e9e9e9;
20
+ min-height: 180px;
19
21
  padding: 5px;
20
22
  width: 100%;
21
- min-height: 180px;
22
- border: 1px solid #e9e9e9;
23
23
  `;
24
24
 
25
25
  const labelStyle: LabelStyle = {
@@ -29,8 +29,8 @@ const CustomDialogBody = styled(StyledDialogBody)`
29
29
  }
30
30
 
31
31
  span.title {
32
- font-weight: bold;
33
32
  color: #ea580c;
33
+ font-weight: bold;
34
34
  }
35
35
 
36
36
  span.content {
@@ -54,9 +54,9 @@ const CustomDialogBody = styled(StyledDialogBody)`
54
54
  `;
55
55
 
56
56
  const InfoBlock = styled.div`
57
+ align-items: center;
57
58
  display: flex;
58
59
  flex-direction: column;
59
- align-items: center;
60
60
  `;
61
61
  const Container = styled.div`
62
62
  padding: 20px;
@@ -64,9 +64,9 @@ const Container = styled.div`
64
64
 
65
65
  const Separator = styled.span`
66
66
  border-bottom: 1px solid gray;
67
- width: 15px;
68
67
  height: 1px;
69
68
  margin: 10px 0;
69
+ width: 15px;
70
70
  `;
71
71
 
72
72
  function AboutUsModal() {
@@ -44,9 +44,9 @@ type SaveInput =
44
44
  };
45
45
 
46
46
  const ManualContainer = styled.div`
47
- padding: 30px 5px;
48
47
  display: flex;
49
48
  justify-content: center;
49
+ padding: 30px 5px;
50
50
  `;
51
51
 
52
52
  interface SumOption {
@@ -14,27 +14,27 @@ const Container = styled.div`
14
14
  flex-grow: 1;
15
15
  `;
16
16
  const SelectionContainer = styled.div`
17
- width: 450px;
18
17
  display: block;
19
18
  margin: 0 auto;
19
+ width: 450px;
20
20
  `;
21
21
  const Title = styled.p`
22
22
  padding: 0 10px;
23
- width: 100%;
24
23
  text-align: center;
24
+ width: 100%;
25
25
  `;
26
26
 
27
27
  const SumValue = styled.p`
28
28
  margin-top: 15px;
29
29
  padding: 0 10px;
30
- width: 100%;
31
30
  text-align: center;
31
+ width: 100%;
32
32
  `;
33
33
  const EmptyText = styled.p<{ color: CSSProperties['color'] }>`
34
- width: 100%;
34
+ color: ${({ color }) => color};
35
35
  padding: 20%;
36
36
  text-align: center;
37
- color: ${({ color }) => color};
37
+ width: 100%;
38
38
  `;
39
39
 
40
40
  export default function SelectMolecule<
@@ -46,11 +46,11 @@ import ToolsTabContent from './settings-tabs/ToolsTabContent.js';
46
46
  import { validation } from './settingsValidation.js';
47
47
 
48
48
  export const Section = styled.div`
49
+ border-bottom: 0.55px solid #f9f9f9;
50
+ color: #2ca8ff;
49
51
  display: flex;
50
52
  font-size: 13px;
51
- color: #2ca8ff;
52
53
  margin-bottom: 10px;
53
- border-bottom: 0.55px solid #f9f9f9;
54
54
  padding: 6px 2px;
55
55
  `;
56
56
 
@@ -62,10 +62,10 @@ const StyledTabs = styled(Tabs)`
62
62
  }
63
63
 
64
64
  div[role='tabpanel'] {
65
- width: 100%;
66
- padding: 0.8rem;
67
- overflow: auto;
68
65
  max-height: 100%;
66
+ overflow: auto;
67
+ padding: 0.8rem;
68
+ width: 100%;
69
69
  }
70
70
  `;
71
71
 
@@ -16,9 +16,9 @@ import { useTogglePanel } from './hooks/useTogglePanel.js';
16
16
  import { InformationEditionModal } from './informationPanel/InformationEditionModal.js';
17
17
 
18
18
  const Container = styled.div`
19
- width: 100%;
20
- height: 100%;
21
19
  flex: 1 1 0%;
20
+ height: 100%;
21
+ width: 100%;
22
22
  `;
23
23
  interface PanelStateContext {
24
24
  openSplitPane: () => void;
@@ -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
- width: 100%;
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;
@@ -14,8 +14,8 @@ import type {
14
14
  import useEditRangeModal from '../hooks/useEditRangeModal.js';
15
15
 
16
16
  const ActionsCell = styled.td`
17
- width: 66px;
18
17
  padding: 0 !important;
18
+ width: 66px;
19
19
 
20
20
  button {
21
21
  background-color: transparent;
@@ -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
- width: 100%;
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
- flex: 2;
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
- display: block;
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
- flex: 2;
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
- display: block;
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
- width: 100%;
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
- flex: 2;
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
- display: block;
34
+ padding: 5px;
33
35
  width: 60px;
34
- color: white;
35
- background-color: gray;
36
36
  }
37
37
  `;
38
38
 
@@ -6,10 +6,10 @@ import { ErrorColors, Errors } from './CorrelationTable/Constants.js';
6
6
 
7
7
  const Container = styled.div`
8
8
  display: flex;
9
- width: 100%;
10
9
  font-size: 15px;
11
10
  font-weight: 300;
12
11
  white-space: nowrap;
12
+ width: 100%;
13
13
 
14
14
  span {
15
15
  margin-left: 8px;
@@ -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
- width: 100%;
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';
@@ -28,8 +29,8 @@ export const nonRemovableFilters = new Set<BaseFilterEntry['name']>([
28
29
  ]);
29
30
 
30
31
  const IconButton = styled(Button)`
31
- padding: 2px;
32
32
  font-size: 16px;
33
+ padding: 2px;
33
34
  `;
34
35
 
35
36
  const Filters = {
@@ -176,6 +177,7 @@ function FiltersInner(props: FiltersInnerProps) {
176
177
  const dispatch = useDispatch();
177
178
  const toaster = useToaster();
178
179
  const selectedFilterIndex = useRef<number>();
180
+ const activeSpectrum = useActiveSpectrum();
179
181
 
180
182
  function toggleSection(sectionKey) {
181
183
  openSection(selectedSection === sectionKey ? '' : sectionKey);
@@ -250,8 +252,15 @@ function FiltersInner(props: FiltersInnerProps) {
250
252
 
251
253
  const filtersList = [...filters];
252
254
 
253
- if (newFilter) {
254
- filtersList.push(newFilter);
255
+ if (newFilter && activeSpectrum) {
256
+ const activeFilterIndex = filters.findIndex(
257
+ (filter) => filter.id === activeFilterID,
258
+ );
259
+ if (activeFilterIndex === -1) {
260
+ filtersList.push(newFilter);
261
+ } else {
262
+ filtersList.splice(activeFilterIndex + 1, 0, newFilter);
263
+ }
255
264
  }
256
265
 
257
266
  if (filtersList?.length === 0) {
@@ -6,8 +6,8 @@ export const StickyHeader = styled(Sections.Header)`
6
6
  position: sticky;
7
7
  top: 40px;
8
8
  background-color: white;
9
- z-index: 1;
10
9
  box-shadow: rgb(0 0 0 / 16%) 0 1px 4px;
10
+ z-index: 1;
11
11
  `;
12
12
 
13
13
  export const HeaderContainer = styled.div`
@@ -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
- flex-shrink: 0;
39
- padding: 5px;
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({