nmrium 2.2.0 → 2.4.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 (414) hide show
  1. package/lib/component/1d/PredictionErrorsNotations.js +3 -3
  2. package/lib/component/1d/PredictionErrorsNotations.js.map +1 -1
  3. package/lib/component/1d/peaks/PeakEditionManager.d.ts +1 -1
  4. package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
  5. package/lib/component/1d/peaks/Peaks.js +2 -1
  6. package/lib/component/1d/peaks/Peaks.js.map +1 -1
  7. package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
  8. package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
  9. package/lib/component/1d/ranges/AssignmentLabel.js +1 -1
  10. package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
  11. package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.d.ts +9 -0
  12. package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.d.ts.map +1 -0
  13. package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.js +138 -0
  14. package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.js.map +1 -0
  15. package/lib/component/1d/ranges/FloatingRanges.d.ts.map +1 -0
  16. package/lib/component/1d/ranges/FloatingRanges.js +362 -0
  17. package/lib/component/1d/ranges/FloatingRanges.js.map +1 -0
  18. package/lib/component/1d/ranges/Ranges.js +2 -2
  19. package/lib/component/1d/ranges/Ranges.js.map +1 -1
  20. package/lib/component/1d-2d/FieldEdition.d.ts +2 -2
  21. package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
  22. package/lib/component/1d-2d/FieldEdition.js +2 -2
  23. package/lib/component/1d-2d/FieldEdition.js.map +1 -1
  24. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +7 -7
  25. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
  26. package/lib/component/1d-2d/tools/BrushXY.js +6 -6
  27. package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
  28. package/lib/component/2d/1d-tracer/Left1DChart.d.ts.map +1 -1
  29. package/lib/component/2d/1d-tracer/Left1DChart.js +6 -2
  30. package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
  31. package/lib/component/2d/1d-tracer/Ranges1D.d.ts +9 -0
  32. package/lib/component/2d/1d-tracer/Ranges1D.d.ts.map +1 -0
  33. package/lib/component/2d/1d-tracer/Ranges1D.js +76 -0
  34. package/lib/component/2d/1d-tracer/Ranges1D.js.map +1 -0
  35. package/lib/component/2d/1d-tracer/Signals1D.d.ts +11 -0
  36. package/lib/component/2d/1d-tracer/Signals1D.d.ts.map +1 -0
  37. package/lib/component/2d/1d-tracer/Signals1D.js +90 -0
  38. package/lib/component/2d/1d-tracer/Signals1D.js.map +1 -0
  39. package/lib/component/2d/1d-tracer/Top1DChart.d.ts.map +1 -1
  40. package/lib/component/2d/1d-tracer/Top1DChart.js +6 -2
  41. package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
  42. package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
  43. package/lib/component/2d/ft/FTContainer.js.map +1 -1
  44. package/lib/component/2d/zones/SignalsGuideLines.js +1 -1
  45. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
  46. package/lib/component/2d/zones/ZonesAssignmentsLabels.js +1 -1
  47. package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
  48. package/lib/component/AnchorSVG.d.ts +37 -0
  49. package/lib/component/AnchorSVG.d.ts.map +1 -0
  50. package/lib/component/AnchorSVG.js +137 -0
  51. package/lib/component/AnchorSVG.js.map +1 -0
  52. package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
  53. package/lib/component/EventsTrackers/BrushTracker.js +4 -0
  54. package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
  55. package/lib/component/SVGTable.d.ts +5 -3
  56. package/lib/component/SVGTable.d.ts.map +1 -1
  57. package/lib/component/SVGTable.js +16 -16
  58. package/lib/component/SVGTable.js.map +1 -1
  59. package/lib/component/context/KeyModifierContext.d.ts +1 -0
  60. package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
  61. package/lib/component/context/KeyModifierContext.js +4 -0
  62. package/lib/component/context/KeyModifierContext.js.map +1 -1
  63. package/lib/component/context/LoggerContext.d.ts.map +1 -1
  64. package/lib/component/context/LoggerContext.js.map +1 -1
  65. package/lib/component/context/SortSpectraContext.d.ts.map +1 -1
  66. package/lib/component/context/SortSpectraContext.js.map +1 -1
  67. package/lib/component/elements/ActionsButtonsPopover.d.ts +2 -2
  68. package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
  69. package/lib/component/elements/ActionsButtonsPopover.js +6 -9
  70. package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
  71. package/lib/component/elements/Button.d.ts.map +1 -1
  72. package/lib/component/elements/Button.js.map +1 -1
  73. package/lib/component/elements/DraggableDialog.d.ts.map +1 -1
  74. package/lib/component/elements/DraggableDialog.js +1 -2
  75. package/lib/component/elements/DraggableDialog.js.map +1 -1
  76. package/lib/component/elements/Sections.d.ts +3 -3
  77. package/lib/component/elements/Sections.d.ts.map +1 -1
  78. package/lib/component/elements/Sections.js +1 -1
  79. package/lib/component/elements/Sections.js.map +1 -1
  80. package/lib/component/elements/TabTitle.d.ts.map +1 -1
  81. package/lib/component/elements/TabTitle.js +2 -2
  82. package/lib/component/elements/TabTitle.js.map +1 -1
  83. package/lib/component/elements/ToolbarPopoverItem.d.ts +1 -0
  84. package/lib/component/elements/ToolbarPopoverItem.d.ts.map +1 -1
  85. package/lib/component/elements/ToolbarPopoverItem.js +10 -3
  86. package/lib/component/elements/ToolbarPopoverItem.js.map +1 -1
  87. package/lib/component/elements/dropDownButton/DropDownButton.d.ts.map +1 -1
  88. package/lib/component/elements/dropDownButton/DropDownButton.js +2 -2
  89. package/lib/component/elements/dropDownButton/DropDownButton.js.map +1 -1
  90. package/lib/component/elements/export/ExportOptionsModal.d.ts +1 -1
  91. package/lib/component/elements/export/ExportOptionsModal.d.ts.map +1 -1
  92. package/lib/component/elements/export/ExportOptionsModal.js +28 -110
  93. package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
  94. package/lib/component/elements/export/units.d.ts +0 -28
  95. package/lib/component/elements/export/units.d.ts.map +1 -1
  96. package/lib/component/elements/export/units.js +0 -5
  97. package/lib/component/elements/export/units.js.map +1 -1
  98. package/lib/component/elements/export/utilities/getExportOptions.d.ts.map +1 -1
  99. package/lib/component/elements/export/utilities/getExportOptions.js.map +1 -1
  100. package/lib/component/elements/print/pageSize.d.ts +1 -1
  101. package/lib/component/elements/print/pageSize.d.ts.map +1 -1
  102. package/lib/component/header/Header.d.ts.map +1 -1
  103. package/lib/component/header/Header.js +2 -4
  104. package/lib/component/header/Header.js.map +1 -1
  105. package/lib/component/hooks/useExport.d.ts.map +1 -1
  106. package/lib/component/hooks/useExport.js.map +1 -1
  107. package/lib/component/hooks/usePanelPreferences.d.ts +3 -3
  108. package/lib/component/hooks/usePanelPreferences.d.ts.map +1 -1
  109. package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
  110. package/lib/component/hooks/useSaveSettings.js +3 -6
  111. package/lib/component/hooks/useSaveSettings.js.map +1 -1
  112. package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
  113. package/lib/component/hooks/useTextMetrics.js +1 -0
  114. package/lib/component/hooks/useTextMetrics.js.map +1 -1
  115. package/lib/component/main/NMRiumViewer.js +1 -1
  116. package/lib/component/main/NMRiumViewer.js.map +1 -1
  117. package/lib/component/modal/EditPeakShapeModal.js +2 -2
  118. package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
  119. package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
  120. package/lib/component/modal/PublicationStringModal.js +2 -6
  121. package/lib/component/modal/PublicationStringModal.js.map +1 -1
  122. package/lib/component/modal/SaveAsModal.d.ts +2 -2
  123. package/lib/component/modal/SaveAsModal.d.ts.map +1 -1
  124. package/lib/component/modal/SaveAsModal.js +40 -35
  125. package/lib/component/modal/SaveAsModal.js.map +1 -1
  126. package/lib/component/modal/aboutUs/AboutUsModal.d.ts.map +1 -1
  127. package/lib/component/modal/aboutUs/AboutUsModal.js +2 -4
  128. package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
  129. package/lib/component/modal/editRange/EditRangeModal.js +4 -3
  130. package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
  131. package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
  132. package/lib/component/modal/editRange/forms/components/NewSignalTab.js +39 -37
  133. package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
  134. package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +29 -29
  135. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js +3 -3
  136. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js.map +1 -1
  137. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +29 -29
  138. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js +2 -2
  139. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js.map +1 -1
  140. package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts.map +1 -1
  141. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js +9 -12
  142. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js.map +1 -1
  143. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +29 -29
  144. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js +2 -2
  145. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map +1 -1
  146. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +24 -24
  147. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +29 -29
  148. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js +2 -2
  149. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map +1 -1
  150. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +4 -4
  151. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +29 -29
  152. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js +2 -2
  153. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js.map +1 -1
  154. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +24 -24
  155. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +24 -24
  156. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +24 -24
  157. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +14 -14
  158. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +2 -2
  159. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
  160. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +24 -24
  161. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +24 -24
  162. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +24 -24
  163. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +24 -24
  164. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +24 -24
  165. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +24 -24
  166. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +24 -24
  167. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts.map +1 -1
  168. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js +3 -2
  169. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js.map +1 -1
  170. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +24 -24
  171. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -1
  172. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +3 -2
  173. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js.map +1 -1
  174. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +24 -24
  175. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
  176. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +30 -3
  177. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
  178. package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts.map +1 -1
  179. package/lib/component/panels/PeaksPanel/PeaksPanel.js +1 -9
  180. package/lib/component/panels/PeaksPanel/PeaksPanel.js.map +1 -1
  181. package/lib/component/panels/PeaksPanel/PeaksPreferences.js +18 -18
  182. package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
  183. package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
  184. package/lib/component/panels/PeaksPanel/PeaksTable.js +17 -17
  185. package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
  186. package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
  187. package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
  188. package/lib/component/panels/RangesPanel/RangesPreferences.js +22 -22
  189. package/lib/component/panels/RangesPanel/RangesPreferences.js.map +1 -1
  190. package/lib/component/panels/RangesPanel/RangesTable.d.ts +2 -2
  191. package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
  192. package/lib/component/panels/RangesPanel/RangesTable.js +5 -4
  193. package/lib/component/panels/RangesPanel/RangesTable.js.map +1 -1
  194. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +2 -2
  195. package/lib/component/panels/RangesPanel/RangesTableRow.js +2 -2
  196. package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
  197. package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
  198. package/lib/component/panels/SpectraPanel/SpectraTable.js +5 -1
  199. package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
  200. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts.map +1 -1
  201. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js +7 -4
  202. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
  203. package/lib/component/panels/SpectraPanel/base/SpectrumName.d.ts.map +1 -1
  204. package/lib/component/panels/SpectraPanel/base/SpectrumName.js +5 -1
  205. package/lib/component/panels/SpectraPanel/base/SpectrumName.js.map +1 -1
  206. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts.map +1 -1
  207. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js +2 -2
  208. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
  209. package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
  210. package/lib/component/panels/SummaryPanel/SummaryPanel.js +7 -0
  211. package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
  212. package/lib/component/panels/filtersPanel/FilterPanel.d.ts.map +1 -1
  213. package/lib/component/panels/filtersPanel/FilterPanel.js +5 -2
  214. package/lib/component/panels/filtersPanel/FilterPanel.js.map +1 -1
  215. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +1 -1
  216. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
  217. package/lib/component/panels/filtersPanel/processings_sections_panel.d.ts +2 -0
  218. package/lib/component/panels/filtersPanel/processings_sections_panel.d.ts.map +1 -0
  219. package/lib/component/panels/filtersPanel/processings_sections_panel.js +144 -0
  220. package/lib/component/panels/filtersPanel/processings_sections_panel.js.map +1 -0
  221. package/lib/component/panels/hooks/useMoleculeAnnotationCore.d.ts +3 -2
  222. package/lib/component/panels/hooks/useMoleculeAnnotationCore.d.ts.map +1 -1
  223. package/lib/component/panels/hooks/useMoleculeAnnotationCore.js +14 -8
  224. package/lib/component/panels/hooks/useMoleculeAnnotationCore.js.map +1 -1
  225. package/lib/component/panels/informationPanel/MixedValuesBadge.d.ts.map +1 -1
  226. package/lib/component/panels/informationPanel/MixedValuesBadge.js +2 -2
  227. package/lib/component/panels/informationPanel/MixedValuesBadge.js.map +1 -1
  228. package/lib/component/panels/informationPanel/SpectraPicker.d.ts.map +1 -1
  229. package/lib/component/panels/informationPanel/SpectraPicker.js +2 -2
  230. package/lib/component/panels/informationPanel/SpectraPicker.js.map +1 -1
  231. package/lib/component/reducer/Reducer.d.ts.map +1 -1
  232. package/lib/component/reducer/Reducer.js +2 -0
  233. package/lib/component/reducer/Reducer.js.map +1 -1
  234. package/lib/component/reducer/actions/CorrelationsActions.js +1 -1
  235. package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
  236. package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
  237. package/lib/component/reducer/actions/DomainActions.js.map +1 -1
  238. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  239. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  240. package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
  241. package/lib/component/reducer/actions/LoadAction.js.map +1 -1
  242. package/lib/component/reducer/actions/MoleculeActions.d.ts +9 -0
  243. package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
  244. package/lib/component/reducer/actions/RangesActions.d.ts +11 -2
  245. package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
  246. package/lib/component/reducer/actions/RangesActions.js +23 -5
  247. package/lib/component/reducer/actions/RangesActions.js.map +1 -1
  248. package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
  249. package/lib/component/reducer/actions/ToolsActions.js +5 -17
  250. package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
  251. package/lib/component/reducer/helper/getTraceSpectrumID.d.ts +5 -0
  252. package/lib/component/reducer/helper/getTraceSpectrumID.d.ts.map +1 -0
  253. package/lib/component/reducer/helper/getTraceSpectrumID.js +14 -0
  254. package/lib/component/reducer/helper/getTraceSpectrumID.js.map +1 -0
  255. package/lib/component/reducer/helper/setRangesViewProperty.d.ts.map +1 -1
  256. package/lib/component/reducer/helper/setRangesViewProperty.js.map +1 -1
  257. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
  258. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +35 -26
  259. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
  260. package/lib/component/reducer/preferences/preferencesReducer.d.ts +2 -2
  261. package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
  262. package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts +2 -2
  263. package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +2 -2
  264. package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts.map +1 -1
  265. package/lib/component/toolbar/ToolTypes.d.ts +2 -2
  266. package/lib/component/toolbar/nmr_toolbar.d.ts.map +1 -1
  267. package/lib/component/toolbar/nmr_toolbar.js +3 -1
  268. package/lib/component/toolbar/nmr_toolbar.js.map +1 -1
  269. package/lib/component/utility/CoreSlot.d.ts +27 -0
  270. package/lib/component/utility/CoreSlot.d.ts.map +1 -0
  271. package/lib/component/utility/CoreSlot.js +56 -0
  272. package/lib/component/utility/CoreSlot.js.map +1 -0
  273. package/lib/component/utility/export.d.ts.map +1 -1
  274. package/lib/component/utility/export.js +1 -0
  275. package/lib/component/utility/export.js.map +1 -1
  276. package/lib/data/PredictionManager.js.map +1 -1
  277. package/lib/data/constants/signalsKinds.d.ts +1 -2
  278. package/lib/data/constants/signalsKinds.d.ts.map +1 -1
  279. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts.map +1 -1
  280. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +1 -0
  281. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js.map +1 -1
  282. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts.map +1 -1
  283. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +35 -30
  284. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js.map +1 -1
  285. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.d.ts.map +1 -1
  286. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js +1 -0
  287. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js.map +1 -1
  288. package/lib/data/data1d/multipleSpectraAnalysis.d.ts +2 -2
  289. package/lib/data/matrixGeneration.d.ts.map +1 -1
  290. package/lib/data/matrixGeneration.js.map +1 -1
  291. package/lib/versionInfo.js +1 -1
  292. package/package.json +37 -37
  293. package/src/component/1d/PredictionErrorsNotations.tsx +5 -4
  294. package/src/component/1d/peaks/Peaks.tsx +5 -2
  295. package/src/component/1d/peaks/usePeakShapesPath.ts +0 -1
  296. package/src/component/1d/ranges/AssignmentLabel.tsx +1 -1
  297. package/src/component/1d/ranges/FloatingRangeTablePreferencesModal.tsx +238 -0
  298. package/src/component/1d/ranges/FloatingRanges.tsx +529 -0
  299. package/src/component/1d/ranges/Ranges.tsx +2 -2
  300. package/src/component/1d-2d/FieldEdition.tsx +4 -4
  301. package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +8 -8
  302. package/src/component/1d-2d/tools/BrushXY.tsx +8 -8
  303. package/src/component/2d/1d-tracer/Left1DChart.tsx +24 -1
  304. package/src/component/2d/1d-tracer/Ranges1D.tsx +134 -0
  305. package/src/component/2d/1d-tracer/Signals1D.tsx +145 -0
  306. package/src/component/2d/1d-tracer/Top1DChart.tsx +29 -2
  307. package/src/component/2d/ft/FTContainer.tsx +1 -0
  308. package/src/component/2d/zones/SignalsGuideLines.tsx +1 -1
  309. package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +1 -1
  310. package/src/component/AnchorSVG.tsx +370 -0
  311. package/src/component/EventsTrackers/BrushTracker.tsx +7 -2
  312. package/src/component/SVGTable.tsx +35 -33
  313. package/src/component/context/KeyModifierContext.tsx +6 -2
  314. package/src/component/context/LoggerContext.tsx +1 -7
  315. package/src/component/context/SortSpectraContext.tsx +1 -3
  316. package/src/component/elements/ActionsButtonsPopover.tsx +12 -14
  317. package/src/component/elements/Button.tsx +1 -6
  318. package/src/component/elements/DraggableDialog.tsx +1 -2
  319. package/src/component/elements/Sections.tsx +9 -7
  320. package/src/component/elements/TabTitle.tsx +7 -5
  321. package/src/component/elements/ToolbarPopoverItem.tsx +13 -2
  322. package/src/component/elements/dropDownButton/DropDownButton.tsx +7 -5
  323. package/src/component/elements/export/ExportOptionsModal.tsx +51 -280
  324. package/src/component/elements/export/units.ts +0 -6
  325. package/src/component/elements/export/utilities/getExportOptions.ts +1 -0
  326. package/src/component/elements/print/pageSize.ts +1 -1
  327. package/src/component/header/Header.tsx +2 -4
  328. package/src/component/hooks/useExport.tsx +1 -3
  329. package/src/component/hooks/usePanelPreferences.ts +4 -4
  330. package/src/component/hooks/useSaveSettings.tsx +4 -15
  331. package/src/component/hooks/useTextMetrics.ts +1 -0
  332. package/src/component/main/NMRiumViewer.tsx +1 -1
  333. package/src/component/modal/EditPeakShapeModal.tsx +2 -2
  334. package/src/component/modal/PublicationStringModal.tsx +5 -11
  335. package/src/component/modal/SaveAsModal.tsx +80 -82
  336. package/src/component/modal/aboutUs/AboutUsModal.tsx +5 -4
  337. package/src/component/modal/editRange/EditRangeModal.tsx +6 -4
  338. package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +58 -58
  339. package/src/component/modal/setting/WorkspaceItem.tsx +2 -2
  340. package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +3 -3
  341. package/src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx +2 -2
  342. package/src/component/modal/setting/tanstack_general_settings/general_settings.tsx +23 -29
  343. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +2 -2
  344. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx +2 -2
  345. package/src/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.tsx +2 -2
  346. package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +2 -2
  347. package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.tsx +3 -2
  348. package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +3 -2
  349. package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +41 -8
  350. package/src/component/panels/PeaksPanel/PeaksPanel.tsx +1 -8
  351. package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +18 -18
  352. package/src/component/panels/PeaksPanel/PeaksTable.tsx +19 -17
  353. package/src/component/panels/RangesPanel/RangesHeader.tsx +1 -2
  354. package/src/component/panels/RangesPanel/RangesPanel.tsx +2 -2
  355. package/src/component/panels/RangesPanel/RangesPreferences.tsx +22 -22
  356. package/src/component/panels/RangesPanel/RangesTable.tsx +19 -17
  357. package/src/component/panels/RangesPanel/RangesTableRow.tsx +25 -25
  358. package/src/component/panels/SpectraPanel/SpectraTable.tsx +12 -1
  359. package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +22 -4
  360. package/src/component/panels/SpectraPanel/base/SpectrumName.tsx +15 -6
  361. package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +3 -2
  362. package/src/component/panels/SummaryPanel/SummaryPanel.tsx +14 -16
  363. package/src/component/panels/filtersPanel/FilterPanel.tsx +10 -0
  364. package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +1 -0
  365. package/src/component/panels/filtersPanel/processings_sections_panel.tsx +324 -0
  366. package/src/component/panels/hooks/useMoleculeAnnotationCore.ts +17 -9
  367. package/src/component/panels/informationPanel/MixedValuesBadge.tsx +3 -2
  368. package/src/component/panels/informationPanel/SpectraPicker.tsx +12 -4
  369. package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +2 -2
  370. package/src/component/reducer/Reducer.ts +2 -0
  371. package/src/component/reducer/actions/CorrelationsActions.ts +1 -1
  372. package/src/component/reducer/actions/DomainActions.ts +1 -4
  373. package/src/component/reducer/actions/FiltersActions.ts +1 -2
  374. package/src/component/reducer/actions/LoadAction.ts +1 -3
  375. package/src/component/reducer/actions/RangesActions.ts +39 -5
  376. package/src/component/reducer/actions/ToolsActions.ts +5 -21
  377. package/src/component/reducer/helper/getTraceSpectrumID.tsx +25 -0
  378. package/src/component/reducer/helper/setRangesViewProperty.ts +1 -2
  379. package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +32 -19
  380. package/src/component/reducer/preferences/preferencesReducer.ts +2 -2
  381. package/src/component/reducer/preferences/utilities/initWorkspace.ts +2 -2
  382. package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +2 -2
  383. package/src/component/toolbar/ToolTypes.ts +2 -2
  384. package/src/component/toolbar/nmr_toolbar.tsx +3 -2
  385. package/src/component/utility/CoreSlot.tsx +126 -0
  386. package/src/component/utility/export.ts +1 -0
  387. package/src/data/PredictionManager.ts +4 -6
  388. package/src/data/constants/signalsKinds.ts +1 -1
  389. package/src/data/data1d/Spectrum1D/peaks/autoPeakPicking.ts +1 -0
  390. package/src/data/data1d/Spectrum1D/peaks/optimizePeaks.ts +35 -30
  391. package/src/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.ts +1 -0
  392. package/src/data/data1d/multipleSpectraAnalysis.ts +2 -2
  393. package/src/data/matrixGeneration.ts +1 -5
  394. package/src/versionInfo.ts +1 -1
  395. package/lib/component/1d/FloatingRanges.d.ts.map +0 -1
  396. package/lib/component/1d/FloatingRanges.js +0 -263
  397. package/lib/component/1d/FloatingRanges.js.map +0 -1
  398. package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts +0 -17
  399. package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts.map +0 -1
  400. package/lib/component/elements/export/utilities/exportOptionValidationSchema.js +0 -79
  401. package/lib/component/elements/export/utilities/exportOptionValidationSchema.js.map +0 -1
  402. package/lib/component/elements/export/utilities/getModes.d.ts +0 -4
  403. package/lib/component/elements/export/utilities/getModes.d.ts.map +0 -1
  404. package/lib/component/elements/export/utilities/getModes.js +0 -11
  405. package/lib/component/elements/export/utilities/getModes.js.map +0 -1
  406. package/lib/component/utility/renderCoreSlot.d.ts +0 -11
  407. package/lib/component/utility/renderCoreSlot.d.ts.map +0 -1
  408. package/lib/component/utility/renderCoreSlot.js +0 -13
  409. package/lib/component/utility/renderCoreSlot.js.map +0 -1
  410. package/src/component/1d/FloatingRanges.tsx +0 -378
  411. package/src/component/elements/export/utilities/exportOptionValidationSchema.ts +0 -106
  412. package/src/component/elements/export/utilities/getModes.ts +0 -14
  413. package/src/component/utility/renderCoreSlot.tsx +0 -21
  414. /package/lib/component/1d/{FloatingRanges.d.ts → ranges/FloatingRanges.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  import styled from '@emotion/styled';
2
2
  import type { Info1D } from '@zakodium/nmr-types';
3
- import type { WorkSpacePanelPreferences } from '@zakodium/nmrium-core';
3
+ import type { WorkspacePanelPreferences } from '@zakodium/nmrium-core';
4
4
  import { FaLink } from 'react-icons/fa';
5
5
 
6
6
  import { withDialog } from '../../elements/DialogManager.js';
@@ -61,7 +61,7 @@ const Table = styled.table`
61
61
  `;
62
62
 
63
63
  interface RangesTableProps extends TableContextMenuProps {
64
- preferences: WorkSpacePanelPreferences['ranges'];
64
+ preferences: WorkspacePanelPreferences['ranges'];
65
65
  tableData: RangesTableDataRow[];
66
66
  activeTab: string;
67
67
  info: Info1D;
@@ -79,6 +79,8 @@ export default function RangesTable(props: RangesTableProps) {
79
79
  info,
80
80
  } = props;
81
81
 
82
+ const { tablePreferences } = preferences;
83
+
82
84
  const element = extractChemicalElement(activeTab);
83
85
  const { items: sortedData, isSortedDesc, onSort } = useTableSortBy(tableData);
84
86
  const data = useMapRanges(sortedData);
@@ -92,9 +94,9 @@ export default function RangesTable(props: RangesTableProps) {
92
94
  }
93
95
 
94
96
  const showActions =
95
- preferences.showDeleteAction ||
96
- preferences.showEditAction ||
97
- preferences.showZoomAction;
97
+ tablePreferences.showDeleteAction ||
98
+ tablePreferences.showEditAction ||
99
+ tablePreferences.showZoomAction;
98
100
 
99
101
  return (
100
102
  <>
@@ -102,43 +104,43 @@ export default function RangesTable(props: RangesTableProps) {
102
104
  <Table>
103
105
  <thead>
104
106
  <tr>
105
- {preferences.showSerialNumber && <th>#</th>}
106
- {preferences.showAssignmentLabel && (
107
+ {tablePreferences.showSerialNumber && <th>#</th>}
108
+ {tablePreferences.showAssignmentLabel && (
107
109
  <th title="Assignment">Assignment</th>
108
110
  )}
109
- {preferences.from.show && (
111
+ {tablePreferences.from.show && (
110
112
  <th id="from" {...onSort}>
111
113
  From
112
114
  {isSortedDesc('from').content}
113
115
  </th>
114
116
  )}
115
- {preferences.to.show && (
117
+ {tablePreferences.to.show && (
116
118
  <th id="to" {...onSort}>
117
119
  To {isSortedDesc('to').content}
118
120
  </th>
119
121
  )}
120
- {preferences.deltaPPM.show && (
122
+ {tablePreferences.deltaPPM.show && (
121
123
  <th id="from" {...onSort}>
122
124
  δ (ppm) {isSortedDesc('from').content}
123
125
  </th>
124
126
  )}
125
- {preferences.deltaHz.show && <th>δ (Hz) </th>}
127
+ {tablePreferences.deltaHz.show && <th>δ (Hz) </th>}
126
128
 
127
- {preferences.relative.show && (
129
+ {tablePreferences.relative.show && (
128
130
  <th id="integration" {...onSort}>
129
131
  Rel. {element} {isSortedDesc('integration').content}
130
132
  </th>
131
133
  )}
132
- {preferences.absolute.show && <th>Absolute</th>}
133
- {preferences.showMultiplicity && <th>Mult.</th>}
134
- {preferences.coupling.show && <th>J (Hz)</th>}
134
+ {tablePreferences.absolute.show && <th>Absolute</th>}
135
+ {tablePreferences.showMultiplicity && <th>Mult.</th>}
136
+ {tablePreferences.coupling.show && <th>J (Hz)</th>}
135
137
 
136
- {preferences.showAssignment && (
138
+ {tablePreferences.showAssignment && (
137
139
  <th title="Assign multiplets">
138
140
  <FaLink style={{ fontSize: 10, margin: 'auto' }} />
139
141
  </th>
140
142
  )}
141
- {preferences.showKind && <th>Kind</th>}
143
+ {tablePreferences.showKind && <th>Kind</th>}
142
144
  {showActions && <th>{''}</th>}
143
145
  </tr>
144
146
  </thead>
@@ -1,5 +1,5 @@
1
1
  import type { Info1D } from '@zakodium/nmr-types';
2
- import type { WorkSpacePanelPreferences } from '@zakodium/nmrium-core';
2
+ import type { WorkspacePanelPreferences } from '@zakodium/nmrium-core';
3
3
  import type { CSSProperties, MouseEvent } from 'react';
4
4
  import { useCallback, useMemo } from 'react';
5
5
 
@@ -35,7 +35,7 @@ const ConstantlyHighlightedRowStyle = {
35
35
 
36
36
  interface RangesTableRowProps extends TableContextMenuProps {
37
37
  rowData: RangeData;
38
- preferences: WorkSpacePanelPreferences['ranges'];
38
+ preferences: WorkspacePanelPreferences['ranges'];
39
39
  info: Info1D;
40
40
  }
41
41
 
@@ -67,7 +67,7 @@ export default function RangesTableRow(props: RangesTableRowProps) {
67
67
  rowData,
68
68
  onContextMenuSelect,
69
69
  contextMenu = [],
70
- preferences,
70
+ preferences: { tablePreferences },
71
71
  info,
72
72
  } = props;
73
73
  const dispatch = useDispatch();
@@ -181,12 +181,12 @@ export default function RangesTableRow(props: RangesTableRowProps) {
181
181
  as="tr"
182
182
  style={trStyle}
183
183
  >
184
- {preferences.showSerialNumber && (
184
+ {tablePreferences.showSerialNumber && (
185
185
  <td {...rowSpanTags} {...onHoverRange}>
186
186
  {rowData.tableMetaInfo.rowIndex + 1}
187
187
  </td>
188
188
  )}
189
- {preferences.showAssignmentLabel && (
189
+ {tablePreferences.showAssignmentLabel && (
190
190
  <SignalAssignmentColumn
191
191
  row={rowData}
192
192
  highlight={highlightSignal}
@@ -194,72 +194,72 @@ export default function RangesTableRow(props: RangesTableRowProps) {
194
194
  />
195
195
  )}
196
196
 
197
- {preferences.from.show && (
197
+ {tablePreferences.from.show && (
198
198
  <RangeColumn
199
199
  value={rowData.from}
200
200
  rowSpanTags={rowSpanTags}
201
201
  onHover={onHoverRange}
202
- format={preferences.from.format}
202
+ format={tablePreferences.from.format}
203
203
  />
204
204
  )}
205
- {preferences.to.show && (
205
+ {tablePreferences.to.show && (
206
206
  <RangeColumn
207
207
  value={rowData.to}
208
208
  rowSpanTags={rowSpanTags}
209
209
  onHover={onHoverRange}
210
- format={preferences.to.format}
210
+ format={tablePreferences.to.format}
211
211
  />
212
212
  )}
213
213
 
214
- {preferences.deltaPPM.show && (
214
+ {tablePreferences.deltaPPM.show && (
215
215
  <SignalDeltaColumn
216
216
  row={rowData}
217
217
  rowSpanTags={rowSpanTags}
218
218
  onHover={onHoverSignal}
219
- format={preferences.deltaPPM.format}
219
+ format={tablePreferences.deltaPPM.format}
220
220
  />
221
221
  )}
222
- {preferences.deltaHz.show && (
222
+ {tablePreferences.deltaHz.show && (
223
223
  <SignalDeltaHzColumn
224
224
  row={rowData}
225
225
  rowSpanTags={rowSpanTags}
226
226
  onHover={onHoverSignal}
227
- format={preferences.deltaHz.format}
227
+ format={tablePreferences.deltaHz.format}
228
228
  info={info}
229
229
  />
230
230
  )}
231
231
 
232
- {preferences.relative.show && (
232
+ {tablePreferences.relative.show && (
233
233
  <RelativeColumn
234
234
  row={rowData}
235
235
  rowSpanTags={rowSpanTags}
236
236
  onHover={onHoverRange}
237
- format={preferences.relative.format}
237
+ format={tablePreferences.relative.format}
238
238
  />
239
239
  )}
240
240
 
241
- {preferences.absolute.show && (
241
+ {tablePreferences.absolute.show && (
242
242
  <AbsoluteColumn
243
243
  row={rowData}
244
244
  rowSpanTags={rowSpanTags}
245
245
  onHover={onHoverRange}
246
- format={preferences.absolute.format}
246
+ format={tablePreferences.absolute.format}
247
247
  />
248
248
  )}
249
- {preferences.showMultiplicity && (
249
+ {tablePreferences.showMultiplicity && (
250
250
  <td {...onHoverSignal}>
251
251
  {rowData.tableMetaInfo.signal?.multiplicity ?? 'm'}
252
252
  </td>
253
253
  )}
254
254
 
255
- {preferences.coupling.show && (
255
+ {tablePreferences.coupling.show && (
256
256
  <CouplingColumn
257
257
  row={rowData}
258
258
  onHover={onHoverSignal}
259
- format={preferences.coupling.format}
259
+ format={tablePreferences.coupling.format}
260
260
  />
261
261
  )}
262
- {preferences.showAssignment && (
262
+ {tablePreferences.showAssignment && (
263
263
  <SignalAssignmentsColumn
264
264
  row={rowData}
265
265
  assignment={assignmentSignal}
@@ -274,10 +274,10 @@ export default function RangesTableRow(props: RangesTableRowProps) {
274
274
  onHoverSignal={onHoverSignal}
275
275
  onHoverRange={onHoverRange}
276
276
  rowSpanTags={rowSpanTags}
277
- showKind={preferences.showKind}
278
- showDeleteAction={preferences.showDeleteAction}
279
- showEditAction={preferences.showEditAction}
280
- showZoomAction={preferences.showZoomAction}
277
+ showKind={tablePreferences.showKind}
278
+ showDeleteAction={tablePreferences.showDeleteAction}
279
+ showEditAction={tablePreferences.showEditAction}
280
+ showZoomAction={tablePreferences.showZoomAction}
281
281
  />
282
282
  </ContextMenu>
283
283
  );
@@ -1,3 +1,4 @@
1
+ import { Tooltip } from '@blueprintjs/core';
1
2
  import type {
2
3
  ActiveSpectrum,
3
4
  JpathTableColumn,
@@ -328,7 +329,17 @@ export function SpectraTable(props: SpectraTableProps) {
328
329
 
329
330
  const cell: Column<Spectrum> = {
330
331
  Header: () => <ColumnHeader label={col.label} col={col} />,
331
- accessor: (row) => getValueByPath(row, jpath, format),
332
+ Cell: ({ row }: CellProps<Spectrum>) => {
333
+ const val = getValueByPath(row.original, jpath, format);
334
+ return (
335
+ <Tooltip
336
+ content={val}
337
+ renderTarget={({ isOpen, ...targetProps }) => (
338
+ <div {...targetProps}>{val}</div>
339
+ )}
340
+ />
341
+ );
342
+ },
332
343
  ...(cellRender && { Cell: cellRender }),
333
344
  id: `${index}`,
334
345
  style,
@@ -1,3 +1,4 @@
1
+ import { Tooltip } from '@blueprintjs/core';
1
2
  import type { Spectrum } from '@zakodium/nmrium-core';
2
3
  import dlv from 'dlv';
3
4
 
@@ -6,6 +7,17 @@ interface RenderAsHTMLProps {
6
7
  jpath: string | string[];
7
8
  }
8
9
 
10
+ interface HTMLContentProps extends React.HTMLAttributes<HTMLDivElement> {
11
+ html: string;
12
+ }
13
+
14
+ function HTMLContent({ html }: HTMLContentProps) {
15
+ return (
16
+ // eslint-disable-next-line react/no-danger
17
+ <div dangerouslySetInnerHTML={{ __html: html }} />
18
+ );
19
+ }
20
+
9
21
  export function RenderAsHTML(props: RenderAsHTMLProps) {
10
22
  const { data, jpath } = props;
11
23
 
@@ -15,11 +27,17 @@ export function RenderAsHTML(props: RenderAsHTMLProps) {
15
27
  return value;
16
28
  }
17
29
 
30
+ const formattedHTML = formatValueAsHTML(value);
31
+
18
32
  return (
19
- <div
20
- // eslint-disable-next-line react/no-danger
21
- dangerouslySetInnerHTML={{
22
- __html: formatValueAsHTML(value),
33
+ <Tooltip
34
+ content={<HTMLContent html={formattedHTML} />}
35
+ renderTarget={({ isOpen, ...targetProps }) => {
36
+ return (
37
+ <div {...targetProps}>
38
+ <HTMLContent html={formattedHTML} />
39
+ </div>
40
+ );
23
41
  }}
24
42
  />
25
43
  );
@@ -1,3 +1,4 @@
1
+ import { Tooltip } from '@blueprintjs/core';
1
2
  import type { Spectrum } from '@zakodium/nmrium-core';
2
3
  import { SvgNmr2D, SvgNmrFid, SvgNmrFt } from 'cheminfo-font';
3
4
  import type { CSSProperties } from 'react';
@@ -24,13 +25,21 @@ const styles: Record<'info' | 'icon', CSSProperties> = {
24
25
  };
25
26
 
26
27
  export function SpectrumName(props: SpectrumNameProps) {
28
+ const name = props.data.info.name;
27
29
  return (
28
- <div style={styles.info}>
29
- <div style={styles.icon}>
30
- <SpectraIcon {...props} />
31
- </div>
32
- <span>{props.data.info.name}</span>
33
- </div>
30
+ <Tooltip
31
+ content={name}
32
+ renderTarget={({ isOpen, ...targetProps }) => {
33
+ return (
34
+ <div style={styles.info} {...targetProps}>
35
+ <div style={styles.icon}>
36
+ <SpectraIcon {...props} />
37
+ </div>
38
+ <span>{props.data.info.name}</span>
39
+ </div>
40
+ );
41
+ }}
42
+ />
34
43
  );
35
44
  }
36
45
 
@@ -1,4 +1,4 @@
1
- import { Popover } from '@blueprintjs/core';
1
+ import { PopoverNext } from '@blueprintjs/core';
2
2
  import styled from '@emotion/styled';
3
3
  import type { Display1D, Display2D } from '@zakodium/nmrium-core';
4
4
 
@@ -42,7 +42,8 @@ export function SpectrumSetting({
42
42
  }
43
43
 
44
44
  return (
45
- <Popover
45
+ <PopoverNext
46
+ lazy
46
47
  interactionKind="click"
47
48
  placement="left-start"
48
49
  canEscapeKeyClose
@@ -10,6 +10,7 @@ import { getLinkDelta, getLinkDim } from 'nmr-correlation';
10
10
  import { memo, useCallback, useMemo, useState } from 'react';
11
11
  import { FaFlask, FaSlidersH } from 'react-icons/fa';
12
12
 
13
+ import { isSpectrum2D } from '../../../data/data2d/Spectrum2D/isSpectrum2D.ts';
13
14
  import {
14
15
  findRange,
15
16
  findSignal1D,
@@ -36,11 +37,7 @@ import {
36
37
  } from './utilities/Utilities.js';
37
38
 
38
39
  type EditCorrelationAction =
39
- | 'add'
40
- | 'move'
41
- | 'remove'
42
- | 'unmove'
43
- | 'setPathLength';
40
+ 'add' | 'move' | 'remove' | 'unmove' | 'setPathLength';
44
41
 
45
42
  export type OnEditCorrelationCallback = (
46
43
  editedCorrelations: Correlation[],
@@ -152,11 +149,10 @@ function SummaryPanel() {
152
149
  // try to find a link which contains the belonging 2D signal in the spectra in view
153
150
  if (
154
151
  correlation.link.some((link: Link) => {
155
- const spectrum = findSpectrum(
156
- spectraData,
157
- link.experimentID,
158
- true,
159
- ) as Spectrum2D;
152
+ const spectrum = findSpectrum(spectraData, link.experimentID, true);
153
+
154
+ if (!isSpectrum2D(spectrum)) return false;
155
+
160
156
  return findSignalMatch1D(
161
157
  spectrum,
162
158
  link,
@@ -182,8 +178,11 @@ function SummaryPanel() {
182
178
  spectraData,
183
179
  firstLink2D.experimentID,
184
180
  true,
185
- ) as Spectrum2D;
181
+ );
186
182
  // correlation is represented by a 2D signal
183
+
184
+ if (!isSpectrum2D(spectrum)) return false;
185
+
187
186
  if (
188
187
  findSignalMatch2D(
189
188
  spectrum,
@@ -200,11 +199,10 @@ function SummaryPanel() {
200
199
  // try to find a link which contains the belonging 2D signal in the spectra in view
201
200
  else if (
202
201
  correlation.link.some((link: any) => {
203
- const spectrum = findSpectrum(
204
- spectraData,
205
- link.experimentID,
206
- true,
207
- ) as Spectrum2D;
202
+ const spectrum = findSpectrum(spectraData, link.experimentID, true);
203
+
204
+ if (!isSpectrum2D(spectrum)) return false;
205
+
208
206
  return findSignalMatch2D(
209
207
  spectrum,
210
208
  link,
@@ -2,17 +2,20 @@ import { useDispatch } from '../../context/DispatchContext.js';
2
2
  import { useToaster } from '../../context/ToasterContext.js';
3
3
  import type { AlertButton } from '../../elements/Alert.js';
4
4
  import { useAlert } from '../../elements/Alert.js';
5
+ import useCheckExperimentalFeature from '../../hooks/useCheckExperimentalFeature.ts';
5
6
  import useSpectrum from '../../hooks/useSpectrum.js';
6
7
  import { TablePanel } from '../extra/BasicPanelStyle.js';
7
8
  import DefaultPanelHeader from '../header/DefaultPanelHeader.js';
8
9
 
9
10
  import { FiltersSectionsPanel } from './Filters/FiltersSectionsPanel.js';
11
+ import { ProcessingsSectionsPanel } from './processings_sections_panel.tsx';
10
12
 
11
13
  export default function FiltersPanel() {
12
14
  const dispatch = useDispatch();
13
15
  const toaster = useToaster();
14
16
  const { showAlert } = useAlert();
15
17
  const { filters } = useSpectrum({ filters: [] });
18
+ const isExperimental = useCheckExperimentalFeature();
16
19
 
17
20
  function handleDeleteFilter() {
18
21
  const buttons: AlertButton[] = [
@@ -46,6 +49,13 @@ export default function FiltersPanel() {
46
49
  />
47
50
  <div className="inner-container">
48
51
  <FiltersSectionsPanel />
52
+
53
+ {isExperimental && (
54
+ <>
55
+ <hr />
56
+ <ProcessingsSectionsPanel />
57
+ </>
58
+ )}
49
59
  </div>
50
60
  </TablePanel>
51
61
  );
@@ -330,6 +330,7 @@ function OptionsSection(options: OptionsSectionProps) {
330
330
 
331
331
  return (
332
332
  <Sections.Item
333
+ id={algorithm}
333
334
  title={algorithmTitle}
334
335
  arrowProps={{ hide: true }}
335
336
  isOpen={isApplyChecked}