nmrium 2.5.0 → 2.6.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 (799) hide show
  1. package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
  2. package/lib/component/1d/BrushTracker1D.js +158 -173
  3. package/lib/component/1d/BrushTracker1D.js.map +1 -1
  4. package/lib/component/1d/FloatPublicationString.js +6 -6
  5. package/lib/component/1d/FloatPublicationString.js.map +1 -1
  6. package/lib/component/1d/PredictionErrorsNotations.js +1 -1
  7. package/lib/component/1d/PredictionErrorsNotations.js.map +1 -1
  8. package/lib/component/1d/SimilarityTree.js +2 -2
  9. package/lib/component/1d/SimilarityTree.js.map +1 -1
  10. package/lib/component/1d/baseline/BaselinePreview.d.ts.map +1 -1
  11. package/lib/component/1d/baseline/BaselinePreview.js +47 -22
  12. package/lib/component/1d/baseline/BaselinePreview.js.map +1 -1
  13. package/lib/component/1d/baseline/getMedianY.d.ts +5 -1
  14. package/lib/component/1d/baseline/getMedianY.d.ts.map +1 -1
  15. package/lib/component/1d/baseline/getMedianY.js +19 -5
  16. package/lib/component/1d/baseline/getMedianY.js.map +1 -1
  17. package/lib/component/1d/inset/DraggableInset.js +1 -1
  18. package/lib/component/1d/inset/DraggableInset.js.map +1 -1
  19. package/lib/component/1d/matrix/useMatrix.d.ts.map +1 -1
  20. package/lib/component/1d/matrix/useMatrix.js +2 -2
  21. package/lib/component/1d/matrix/useMatrix.js.map +1 -1
  22. package/lib/component/1d/multiplicityTree/MultiplicityTree.js +3 -3
  23. package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
  24. package/lib/component/1d/peaks/PeakAnnotations.js +1 -1
  25. package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
  26. package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
  27. package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
  28. package/lib/component/1d/ranges/FloatingRanges.d.ts.map +1 -1
  29. package/lib/component/1d/ranges/FloatingRanges.js +2 -3
  30. package/lib/component/1d/ranges/FloatingRanges.js.map +1 -1
  31. package/lib/component/1d/ranges/Range.d.ts.map +1 -1
  32. package/lib/component/1d/ranges/Range.js +3 -2
  33. package/lib/component/1d/ranges/Range.js.map +1 -1
  34. package/lib/component/1d/ranges/Ranges.js +1 -1
  35. package/lib/component/1d/ranges/Ranges.js.map +1 -1
  36. package/lib/component/1d-2d/FieldEdition.d.ts +1 -1
  37. package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
  38. package/lib/component/1d-2d/FieldEdition.js +35 -31
  39. package/lib/component/1d-2d/FieldEdition.js.map +1 -1
  40. package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js +1 -1
  41. package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js.map +1 -1
  42. package/lib/component/1d-2d/components/Signals1D.d.ts.map +1 -1
  43. package/lib/component/1d-2d/components/Signals1D.js +10 -8
  44. package/lib/component/1d-2d/components/Signals1D.js.map +1 -1
  45. package/lib/component/1d-2d/components/axis_unit_picker.d.ts.map +1 -1
  46. package/lib/component/1d-2d/components/axis_unit_picker.js +1 -1
  47. package/lib/component/1d-2d/components/axis_unit_picker.js.map +1 -1
  48. package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
  49. package/lib/component/1d-2d/tools/BrushXY.js +40 -28
  50. package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
  51. package/lib/component/1d-2d/tools/CrossLinePointer.d.ts.map +1 -1
  52. package/lib/component/1d-2d/tools/CrossLinePointer.js +27 -22
  53. package/lib/component/1d-2d/tools/CrossLinePointer.js.map +1 -1
  54. package/lib/component/1d-2d/tools/DistanceLine.d.ts +29 -0
  55. package/lib/component/1d-2d/tools/DistanceLine.d.ts.map +1 -0
  56. package/lib/component/1d-2d/tools/DistanceLine.js +132 -0
  57. package/lib/component/1d-2d/tools/DistanceLine.js.map +1 -0
  58. package/lib/component/2d/1d-tracer/Left1DChart.js +3 -2
  59. package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
  60. package/lib/component/2d/1d-tracer/Top1DChart.js +3 -2
  61. package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
  62. package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
  63. package/lib/component/2d/BrushTracker2D.js +20 -10
  64. package/lib/component/2d/BrushTracker2D.js.map +1 -1
  65. package/lib/component/2d/FooterBanner.d.ts.map +1 -1
  66. package/lib/component/2d/FooterBanner.js +2 -2
  67. package/lib/component/2d/FooterBanner.js.map +1 -1
  68. package/lib/component/2d/IndirectAxis2D.js +1 -1
  69. package/lib/component/2d/IndirectAxis2D.js.map +1 -1
  70. package/lib/component/2d/SignalDeltaLine.js +1 -1
  71. package/lib/component/2d/SignalDeltaLine.js.map +1 -1
  72. package/lib/component/2d/Viewer2D.d.ts.map +1 -1
  73. package/lib/component/2d/Viewer2D.js +2 -1
  74. package/lib/component/2d/Viewer2D.js.map +1 -1
  75. package/lib/component/2d/fid/FidCanvas.js +2 -2
  76. package/lib/component/2d/fid/FidCanvas.js.map +1 -1
  77. package/lib/component/2d/fid/FidContainer.js +3 -3
  78. package/lib/component/2d/fid/FidContainer.js.map +1 -1
  79. package/lib/component/2d/ft/Contours.d.ts.map +1 -1
  80. package/lib/component/2d/ft/Contours.js +37 -1
  81. package/lib/component/2d/ft/Contours.js.map +1 -1
  82. package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
  83. package/lib/component/2d/ft/FTContainer.js +2 -3
  84. package/lib/component/2d/ft/FTContainer.js.map +1 -1
  85. package/lib/component/2d/useTracesSpectra.d.ts.map +1 -1
  86. package/lib/component/2d/useTracesSpectra.js +5 -3
  87. package/lib/component/2d/useTracesSpectra.js.map +1 -1
  88. package/lib/component/2d/utilities/extractSpectrumSignals.d.ts +2 -1
  89. package/lib/component/2d/utilities/extractSpectrumSignals.d.ts.map +1 -1
  90. package/lib/component/2d/utilities/extractSpectrumSignals.js +26 -25
  91. package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -1
  92. package/lib/component/2d/utilities/scale.d.ts.map +1 -1
  93. package/lib/component/2d/utilities/scale.js +1 -1
  94. package/lib/component/2d/utilities/scale.js.map +1 -1
  95. package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -1
  96. package/lib/component/2d/zones/SignalsGuideLines.js +15 -18
  97. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
  98. package/lib/component/AnchorSVG.d.ts +1 -1
  99. package/lib/component/AnchorSVG.d.ts.map +1 -1
  100. package/lib/component/AnchorSVG.js +3 -2
  101. package/lib/component/AnchorSVG.js.map +1 -1
  102. package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
  103. package/lib/component/EventsTrackers/BrushTracker.js +1 -1
  104. package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
  105. package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
  106. package/lib/component/EventsTrackers/KeysListenerTracker.js +5 -1
  107. package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
  108. package/lib/component/assignment/utilities/getAssignments.js +1 -1
  109. package/lib/component/assignment/utilities/getAssignments.js.map +1 -1
  110. package/lib/component/context/DispatchContext.d.ts +2 -1
  111. package/lib/component/context/DispatchContext.d.ts.map +1 -1
  112. package/lib/component/context/DispatchContext.js.map +1 -1
  113. package/lib/component/context/FilterSyncOptionsContext.d.ts.map +1 -1
  114. package/lib/component/context/FilterSyncOptionsContext.js +13 -13
  115. package/lib/component/context/FilterSyncOptionsContext.js.map +1 -1
  116. package/lib/component/context/KeyModifierContext.d.ts +4 -12
  117. package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
  118. package/lib/component/context/KeyModifierContext.js +17 -35
  119. package/lib/component/context/KeyModifierContext.js.map +1 -1
  120. package/lib/component/context/processings_mutations_context.api.d.ts +14 -0
  121. package/lib/component/context/processings_mutations_context.api.d.ts.map +1 -0
  122. package/lib/component/context/processings_mutations_context.api.js +275 -0
  123. package/lib/component/context/processings_mutations_context.api.js.map +1 -0
  124. package/lib/component/context/processings_mutations_context.d.ts +5 -0
  125. package/lib/component/context/processings_mutations_context.d.ts.map +1 -0
  126. package/lib/component/context/processings_mutations_context.js +16 -0
  127. package/lib/component/context/processings_mutations_context.js.map +1 -0
  128. package/lib/component/elements/NumberInput2Controller.d.ts +1 -0
  129. package/lib/component/elements/NumberInput2Controller.d.ts.map +1 -1
  130. package/lib/component/elements/NumberInput2Controller.js +14 -3
  131. package/lib/component/elements/NumberInput2Controller.js.map +1 -1
  132. package/lib/component/elements/Sections.d.ts.map +1 -1
  133. package/lib/component/elements/Sections.js +1 -1
  134. package/lib/component/elements/Sections.js.map +1 -1
  135. package/lib/component/elements/TableHeaderLabel.d.ts +9 -0
  136. package/lib/component/elements/TableHeaderLabel.d.ts.map +1 -0
  137. package/lib/component/elements/TableHeaderLabel.js +30 -0
  138. package/lib/component/elements/TableHeaderLabel.js.map +1 -0
  139. package/lib/component/elements/print/PrintContent.d.ts +1 -0
  140. package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
  141. package/lib/component/elements/print/PrintContent.js +77 -72
  142. package/lib/component/elements/print/PrintContent.js.map +1 -1
  143. package/lib/component/header/AutoPeakPickingOptionPanel.d.ts.map +1 -1
  144. package/lib/component/header/AutoPeakPickingOptionPanel.js +4 -4
  145. package/lib/component/header/AutoPeakPickingOptionPanel.js.map +1 -1
  146. package/lib/component/header/Header.d.ts.map +1 -1
  147. package/lib/component/header/Header.js +59 -5
  148. package/lib/component/header/Header.js.map +1 -1
  149. package/lib/component/header/RangesPickingOptionPanel.js +2 -2
  150. package/lib/component/header/RangesPickingOptionPanel.js.map +1 -1
  151. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.d.ts.map +1 -1
  152. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js +1 -1
  153. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js.map +1 -1
  154. package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.d.ts.map +1 -1
  155. package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.js +1 -1
  156. package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.js.map +1 -1
  157. package/lib/component/highlight/index.d.ts.map +1 -1
  158. package/lib/component/highlight/index.js +10 -36
  159. package/lib/component/highlight/index.js.map +1 -1
  160. package/lib/component/hooks/use2DReducer.d.ts.map +1 -1
  161. package/lib/component/hooks/use2DReducer.js +2 -2
  162. package/lib/component/hooks/use2DReducer.js.map +1 -1
  163. package/lib/component/hooks/useCheckPointsNumberInWindowArea.d.ts.map +1 -1
  164. package/lib/component/hooks/useCheckPointsNumberInWindowArea.js +3 -1
  165. package/lib/component/hooks/useCheckPointsNumberInWindowArea.js.map +1 -1
  166. package/lib/component/hooks/useCheckToolsVisibility.d.ts.map +1 -1
  167. package/lib/component/hooks/useCheckToolsVisibility.js +6 -1
  168. package/lib/component/hooks/useCheckToolsVisibility.js.map +1 -1
  169. package/lib/component/hooks/useSpectraBottomMargin.js +1 -1
  170. package/lib/component/hooks/useSpectraBottomMargin.js.map +1 -1
  171. package/lib/component/hooks/useSpectrum.d.ts +4 -0
  172. package/lib/component/hooks/useSpectrum.d.ts.map +1 -1
  173. package/lib/component/hooks/useSpectrum.js +9 -1
  174. package/lib/component/hooks/useSpectrum.js.map +1 -1
  175. package/lib/component/hooks/useTextMetrics.d.ts +2 -4
  176. package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
  177. package/lib/component/hooks/useTextMetrics.js +3 -2
  178. package/lib/component/hooks/useTextMetrics.js.map +1 -1
  179. package/lib/component/hooks/use_axis_unit.d.ts +3 -3
  180. package/lib/component/hooks/use_axis_unit.d.ts.map +1 -1
  181. package/lib/component/hooks/use_axis_unit.js +2 -8
  182. package/lib/component/hooks/use_axis_unit.js.map +1 -1
  183. package/lib/component/hooks/use_publication_strings.d.ts.map +1 -1
  184. package/lib/component/hooks/use_publication_strings.js +2 -3
  185. package/lib/component/hooks/use_publication_strings.js.map +1 -1
  186. package/lib/component/hooks/use_view_spectra.d.ts +6 -0
  187. package/lib/component/hooks/use_view_spectra.d.ts.map +1 -0
  188. package/lib/component/hooks/use_view_spectra.js +13 -0
  189. package/lib/component/hooks/use_view_spectra.js.map +1 -0
  190. package/lib/component/hooks/use_visible_spectra_1d.d.ts.map +1 -1
  191. package/lib/component/hooks/use_visible_spectra_1d.js +4 -2
  192. package/lib/component/hooks/use_visible_spectra_1d.js.map +1 -1
  193. package/lib/component/main/InnerNMRium.d.ts.map +1 -1
  194. package/lib/component/main/InnerNMRium.js +6 -5
  195. package/lib/component/main/InnerNMRium.js.map +1 -1
  196. package/lib/component/main/NMRium.d.ts +2 -2
  197. package/lib/component/main/NMRium.d.ts.map +1 -1
  198. package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
  199. package/lib/component/main/NMRiumStateProvider.js +2 -1
  200. package/lib/component/main/NMRiumStateProvider.js.map +1 -1
  201. package/lib/component/main/types.d.ts +1 -1
  202. package/lib/component/main/types.d.ts.map +1 -1
  203. package/lib/component/modal/EditPeakShapeModal.d.ts.map +1 -1
  204. package/lib/component/modal/EditPeakShapeModal.js +102 -60
  205. package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
  206. package/lib/component/modal/LoadJCAMPModal.d.ts.map +1 -1
  207. package/lib/component/modal/LoadJCAMPModal.js +22 -21
  208. package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
  209. package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
  210. package/lib/component/modal/PublicationStringModal.js +3 -3
  211. package/lib/component/modal/PublicationStringModal.js.map +1 -1
  212. package/lib/component/modal/aboutUs/AboutUsModal.js +1 -1
  213. package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
  214. package/lib/component/modal/editRange/EditRangeModal.js +1 -1
  215. package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts +1 -3
  216. package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts.map +1 -1
  217. package/lib/component/modal/editRange/forms/components/DeltaInput.js +12 -20
  218. package/lib/component/modal/editRange/forms/components/DeltaInput.js.map +1 -1
  219. package/lib/component/modal/editRange/forms/components/DeltaLabel.d.ts +6 -0
  220. package/lib/component/modal/editRange/forms/components/DeltaLabel.d.ts.map +1 -0
  221. package/lib/component/modal/editRange/forms/components/DeltaLabel.js +12 -0
  222. package/lib/component/modal/editRange/forms/components/DeltaLabel.js.map +1 -0
  223. package/lib/component/modal/editRange/forms/components/SignalTab.d.ts.map +1 -1
  224. package/lib/component/modal/editRange/forms/components/SignalTab.js +2 -16
  225. package/lib/component/modal/editRange/forms/components/SignalTab.js.map +1 -1
  226. package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts.map +1 -1
  227. package/lib/component/modal/editRange/forms/components/SignalsContent.js +32 -7
  228. package/lib/component/modal/editRange/forms/components/SignalsContent.js.map +1 -1
  229. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js +1 -1
  230. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
  231. package/lib/component/modal/editRange/forms/validation/EditRangeValidation.d.ts.map +1 -1
  232. package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +18 -3
  233. package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js.map +1 -1
  234. package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
  235. package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +93 -85
  236. package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts.map +1 -1
  237. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js +2 -1
  238. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js.map +1 -1
  239. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +93 -85
  240. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts.map +1 -1
  241. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +93 -85
  242. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -1
  243. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +49 -42
  244. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
  245. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +49 -42
  246. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -1
  247. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +8 -7
  248. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts.map +1 -1
  249. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +49 -42
  250. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -1
  251. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +49 -42
  252. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts.map +1 -1
  253. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +49 -42
  254. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -1
  255. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js +2 -3
  256. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js.map +1 -1
  257. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +49 -42
  258. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -1
  259. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +4 -2
  260. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -1
  261. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +5 -4
  262. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
  263. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +49 -42
  264. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -1
  265. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +2 -3
  266. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js.map +1 -1
  267. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +49 -42
  268. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -1
  269. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +49 -42
  270. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -1
  271. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +49 -42
  272. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -1
  273. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +49 -42
  274. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -1
  275. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +49 -42
  276. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -1
  277. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js +3 -4
  278. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js.map +1 -1
  279. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +49 -42
  280. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts.map +1 -1
  281. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +49 -42
  282. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -1
  283. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +49 -42
  284. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -1
  285. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js +1 -1
  286. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js.map +1 -1
  287. package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts +3 -4
  288. package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts.map +1 -1
  289. package/lib/component/modal/setting/tanstack_general_settings/ui/table.js.map +1 -1
  290. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +28 -28
  291. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +24 -24
  292. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -1
  293. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +4 -3
  294. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -1
  295. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +6 -6
  296. package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts +1 -1
  297. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts +4 -4
  298. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts.map +1 -1
  299. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js +3 -2
  300. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js.map +1 -1
  301. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts +1 -0
  302. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts.map +1 -1
  303. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js +1 -0
  304. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js.map +1 -1
  305. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +44 -43
  306. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -1
  307. package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +1 -1
  308. package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js.map +1 -1
  309. package/lib/component/panels/AutomaticAssignment/useAutoAssignments.d.ts.map +1 -1
  310. package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +25 -9
  311. package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js.map +1 -1
  312. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js +1 -1
  313. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js.map +1 -1
  314. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.d.ts.map +1 -1
  315. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +1 -2
  316. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
  317. package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.d.ts.map +1 -1
  318. package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js +1 -1
  319. package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js.map +1 -1
  320. package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts.map +1 -1
  321. package/lib/component/panels/PeaksPanel/PeaksPreferences.js +15 -3
  322. package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
  323. package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
  324. package/lib/component/panels/PeaksPanel/PeaksTable.js +49 -27
  325. package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
  326. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
  327. package/lib/component/panels/RangesPanel/RangesTableRow.js +3 -0
  328. package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
  329. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -1
  330. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js.map +1 -1
  331. package/lib/component/panels/SpectraPanel/SpectraPanelHeader.d.ts.map +1 -1
  332. package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js +8 -15
  333. package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js.map +1 -1
  334. package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
  335. package/lib/component/panels/SpectraPanel/SpectraTable.js +1 -1
  336. package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
  337. package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.d.ts.map +1 -1
  338. package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.js +6 -3
  339. package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.js.map +1 -1
  340. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts +8 -6
  341. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts.map +1 -1
  342. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +12 -12
  343. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js.map +1 -1
  344. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts +2 -2
  345. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts.map +1 -1
  346. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +14 -13
  347. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js.map +1 -1
  348. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts +1 -1
  349. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts.map +1 -1
  350. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +2 -2
  351. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts.map +1 -1
  352. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +18 -15
  353. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js.map +1 -1
  354. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.d.ts +2 -2
  355. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.d.ts.map +1 -1
  356. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +7 -5
  357. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js.map +1 -1
  358. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts +2 -2
  359. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts.map +1 -1
  360. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +4 -4
  361. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js.map +1 -1
  362. package/lib/component/panels/SummaryPanel/Overview.d.ts +3 -7
  363. package/lib/component/panels/SummaryPanel/Overview.d.ts.map +1 -1
  364. package/lib/component/panels/SummaryPanel/Overview.js +2 -5
  365. package/lib/component/panels/SummaryPanel/Overview.js.map +1 -1
  366. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
  367. package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts +2 -2
  368. package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
  369. package/lib/component/panels/SummaryPanel/SummaryPanel.js +17 -18
  370. package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
  371. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +7 -7
  372. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
  373. package/lib/component/panels/SummaryPanel/utilities/Utilities.js +34 -31
  374. package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
  375. package/lib/component/panels/SummaryPanel/utilities/useInView.d.ts +1 -1
  376. package/lib/component/panels/SummaryPanel/utilities/useInView.d.ts.map +1 -1
  377. package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
  378. package/lib/component/panels/databasePanel/DatabasePanel.js +122 -101
  379. package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
  380. package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts +3 -0
  381. package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts.map +1 -1
  382. package/lib/component/panels/databasePanel/DatabaseSearchOptions.js +14 -16
  383. package/lib/component/panels/databasePanel/DatabaseSearchOptions.js.map +1 -1
  384. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.d.ts.map +1 -1
  385. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js +3 -3
  386. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js.map +1 -1
  387. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
  388. package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.d.ts.map +1 -1
  389. package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.js +2 -2
  390. package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.js.map +1 -1
  391. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +10 -26
  392. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
  393. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js +3 -4
  394. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js.map +1 -1
  395. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts +4 -19
  396. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
  397. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +4 -7
  398. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
  399. package/lib/component/panels/filtersPanel/processings/operator_edit_banner.d.ts +11 -0
  400. package/lib/component/panels/filtersPanel/processings/operator_edit_banner.d.ts.map +1 -0
  401. package/lib/component/panels/filtersPanel/processings/operator_edit_banner.js +34 -0
  402. package/lib/component/panels/filtersPanel/processings/operator_edit_banner.js.map +1 -0
  403. package/lib/component/panels/filtersPanel/processings/processing_item.d.ts +16 -0
  404. package/lib/component/panels/filtersPanel/processings/processing_item.d.ts.map +1 -0
  405. package/lib/component/panels/filtersPanel/processings/processing_item.js +88 -0
  406. package/lib/component/panels/filtersPanel/processings/processing_item.js.map +1 -0
  407. package/lib/component/panels/filtersPanel/processings/processing_item_extra.d.ts +12 -0
  408. package/lib/component/panels/filtersPanel/processings/processing_item_extra.d.ts.map +1 -0
  409. package/lib/component/panels/filtersPanel/processings/processing_item_extra.js +17 -0
  410. package/lib/component/panels/filtersPanel/processings/processing_item_extra.js.map +1 -0
  411. package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts +11 -0
  412. package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts.map +1 -0
  413. package/lib/component/panels/filtersPanel/processings/use_live_edit.js +31 -0
  414. package/lib/component/panels/filtersPanel/processings/use_live_edit.js.map +1 -0
  415. package/lib/component/panels/filtersPanel/processings/use_live_operation.d.ts +3 -0
  416. package/lib/component/panels/filtersPanel/processings/use_live_operation.d.ts.map +1 -0
  417. package/lib/component/panels/filtersPanel/processings/use_live_operation.js +15 -0
  418. package/lib/component/panels/filtersPanel/processings/use_live_operation.js.map +1 -0
  419. package/lib/component/panels/filtersPanel/processings_sections_panel.d.ts.map +1 -1
  420. package/lib/component/panels/filtersPanel/processings_sections_panel.js +35 -104
  421. package/lib/component/panels/filtersPanel/processings_sections_panel.js.map +1 -1
  422. package/lib/component/reducer/Reducer.d.ts +18 -2
  423. package/lib/component/reducer/Reducer.d.ts.map +1 -1
  424. package/lib/component/reducer/Reducer.js +26 -7
  425. package/lib/component/reducer/Reducer.js.map +1 -1
  426. package/lib/component/reducer/actions/AssignmentsActions.d.ts.map +1 -1
  427. package/lib/component/reducer/actions/AssignmentsActions.js +1 -2
  428. package/lib/component/reducer/actions/AssignmentsActions.js.map +1 -1
  429. package/lib/component/reducer/actions/CorrelationsActions.d.ts +4 -4
  430. package/lib/component/reducer/actions/CorrelationsActions.d.ts.map +1 -1
  431. package/lib/component/reducer/actions/CorrelationsActions.js +10 -11
  432. package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
  433. package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
  434. package/lib/component/reducer/actions/DatabaseActions.js +25 -9
  435. package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
  436. package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
  437. package/lib/component/reducer/actions/DomainActions.js +25 -15
  438. package/lib/component/reducer/actions/DomainActions.js.map +1 -1
  439. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  440. package/lib/component/reducer/actions/FiltersActions.js +36 -59
  441. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  442. package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
  443. package/lib/component/reducer/actions/InsetActions.js +1 -1
  444. package/lib/component/reducer/actions/InsetActions.js.map +1 -1
  445. package/lib/component/reducer/actions/IntegralsActions.d.ts.map +1 -1
  446. package/lib/component/reducer/actions/IntegralsActions.js +2 -1
  447. package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
  448. package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
  449. package/lib/component/reducer/actions/LoadAction.js +3 -3
  450. package/lib/component/reducer/actions/LoadAction.js.map +1 -1
  451. package/lib/component/reducer/actions/MoleculeActions.d.ts +2 -6
  452. package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
  453. package/lib/component/reducer/actions/MoleculeActions.js +1 -2
  454. package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
  455. package/lib/component/reducer/actions/PeaksActions.d.ts +5 -2
  456. package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
  457. package/lib/component/reducer/actions/PeaksActions.js +18 -3
  458. package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
  459. package/lib/component/reducer/actions/PreferencesActions.d.ts.map +1 -1
  460. package/lib/component/reducer/actions/PreferencesActions.js +5 -3
  461. package/lib/component/reducer/actions/PreferencesActions.js.map +1 -1
  462. package/lib/component/reducer/actions/RangesActions.d.ts +12 -3
  463. package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
  464. package/lib/component/reducer/actions/RangesActions.js +45 -13
  465. package/lib/component/reducer/actions/RangesActions.js.map +1 -1
  466. package/lib/component/reducer/actions/SpectraActions.d.ts +2 -8
  467. package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
  468. package/lib/component/reducer/actions/SpectraActions.js +6 -11
  469. package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
  470. package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
  471. package/lib/component/reducer/actions/ToolsActions.js +3 -8
  472. package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
  473. package/lib/component/reducer/actions/ZonesActions.d.ts +9 -2
  474. package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
  475. package/lib/component/reducer/actions/ZonesActions.js +27 -12
  476. package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
  477. package/lib/component/reducer/actions/processings_actions.d.ts +30 -0
  478. package/lib/component/reducer/actions/processings_actions.d.ts.map +1 -0
  479. package/lib/component/reducer/actions/processings_actions.js +50 -0
  480. package/lib/component/reducer/actions/processings_actions.js.map +1 -0
  481. package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +1 -0
  482. package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
  483. package/lib/component/reducer/helper/ZoomHistoryManager.js +10 -0
  484. package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
  485. package/lib/component/reducer/preferences/actions/initPreferences.d.ts.map +1 -1
  486. package/lib/component/reducer/preferences/actions/initPreferences.js +4 -1
  487. package/lib/component/reducer/preferences/actions/initPreferences.js.map +1 -1
  488. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
  489. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +2 -0
  490. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
  491. package/lib/component/reducer/preferences/preferencesReducer.d.ts +2 -2
  492. package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
  493. package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
  494. package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +2 -4
  495. package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts.map +1 -1
  496. package/lib/component/reducer/preferences/utilities/mapWorkspaces.js +2 -9
  497. package/lib/component/reducer/preferences/utilities/mapWorkspaces.js.map +1 -1
  498. package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
  499. package/lib/component/toolbar/ToolTypes.js +15 -0
  500. package/lib/component/toolbar/ToolTypes.js.map +1 -1
  501. package/lib/component/toolbar/nmr_toolbar.d.ts.map +1 -1
  502. package/lib/component/toolbar/nmr_toolbar.js +49 -22
  503. package/lib/component/toolbar/nmr_toolbar.js.map +1 -1
  504. package/lib/component/utility/core_slots/core_operator_expanded.d.ts +10 -0
  505. package/lib/component/utility/core_slots/core_operator_expanded.d.ts.map +1 -0
  506. package/lib/component/utility/{CoreSlot.js → core_slots/core_operator_expanded.js} +2 -21
  507. package/lib/component/utility/core_slots/core_operator_expanded.js.map +1 -0
  508. package/lib/component/utility/core_slots/core_operator_name.d.ts +9 -0
  509. package/lib/component/utility/core_slots/core_operator_name.d.ts.map +1 -0
  510. package/lib/component/utility/core_slots/core_operator_name.js +10 -0
  511. package/lib/component/utility/core_slots/core_operator_name.js.map +1 -0
  512. package/lib/component/utility/core_slots/core_operator_panel_tool.d.ts +9 -0
  513. package/lib/component/utility/core_slots/core_operator_panel_tool.d.ts.map +1 -0
  514. package/lib/component/utility/core_slots/core_operator_panel_tool.js +15 -0
  515. package/lib/component/utility/core_slots/core_operator_panel_tool.js.map +1 -0
  516. package/lib/component/utility/core_slots/core_operator_tool.d.ts +9 -0
  517. package/lib/component/utility/core_slots/core_operator_tool.d.ts.map +1 -0
  518. package/lib/component/utility/core_slots/core_operator_tool.js +15 -0
  519. package/lib/component/utility/core_slots/core_operator_tool.js.map +1 -0
  520. package/lib/component/utility/core_slots/core_operator_topbar.d.ts +8 -0
  521. package/lib/component/utility/core_slots/core_operator_topbar.d.ts.map +1 -0
  522. package/lib/component/utility/core_slots/core_operator_topbar.js +36 -0
  523. package/lib/component/utility/core_slots/core_operator_topbar.js.map +1 -0
  524. package/lib/component/utility/core_slots/core_slot.d.ts +17 -0
  525. package/lib/component/utility/core_slots/core_slot.d.ts.map +1 -0
  526. package/lib/component/utility/core_slots/core_slot.js +14 -0
  527. package/lib/component/utility/core_slots/core_slot.js.map +1 -0
  528. package/lib/component/utility/formatNumber.d.ts +2 -0
  529. package/lib/component/utility/formatNumber.d.ts.map +1 -1
  530. package/lib/component/utility/formatNumber.js +9 -2
  531. package/lib/component/utility/formatNumber.js.map +1 -1
  532. package/lib/component/utility/toolbar_item_error.d.ts +3 -0
  533. package/lib/component/utility/toolbar_item_error.d.ts.map +1 -0
  534. package/lib/component/utility/toolbar_item_error.js +14 -0
  535. package/lib/component/utility/toolbar_item_error.js.map +1 -0
  536. package/lib/component/workspaces/assignment.d.ts.map +1 -1
  537. package/lib/component/workspaces/assignment.js +1 -0
  538. package/lib/component/workspaces/assignment.js.map +1 -1
  539. package/lib/component/workspaces/basic.d.ts.map +1 -1
  540. package/lib/component/workspaces/basic.js +1 -0
  541. package/lib/component/workspaces/basic.js.map +1 -1
  542. package/lib/component/workspaces/exercise.d.ts.map +1 -1
  543. package/lib/component/workspaces/exercise.js +1 -0
  544. package/lib/component/workspaces/exercise.js.map +1 -1
  545. package/lib/component/workspaces/prediction.d.ts.map +1 -1
  546. package/lib/component/workspaces/prediction.js +1 -0
  547. package/lib/component/workspaces/prediction.js.map +1 -1
  548. package/lib/component/workspaces/process1D.d.ts.map +1 -1
  549. package/lib/component/workspaces/process1D.js +1 -0
  550. package/lib/component/workspaces/process1D.js.map +1 -1
  551. package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
  552. package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
  553. package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
  554. package/lib/data/SpectraManager.d.ts.map +1 -1
  555. package/lib/data/SpectraManager.js +2 -3
  556. package/lib/data/SpectraManager.js.map +1 -1
  557. package/lib/data/data1d/Spectrum1D/SumManager.d.ts.map +1 -1
  558. package/lib/data/data1d/Spectrum1D/SumManager.js +2 -1
  559. package/lib/data/data1d/Spectrum1D/SumManager.js.map +1 -1
  560. package/lib/data/data1d/Spectrum1D/index.d.ts +0 -1
  561. package/lib/data/data1d/Spectrum1D/index.d.ts.map +1 -1
  562. package/lib/data/data1d/Spectrum1D/index.js +0 -1
  563. package/lib/data/data1d/Spectrum1D/index.js.map +1 -1
  564. package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
  565. package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +5 -2
  566. package/lib/data/data1d/Spectrum1D/initiateDatum1D.js.map +1 -1
  567. package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.d.ts +7 -0
  568. package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.d.ts.map +1 -0
  569. package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.js +14 -0
  570. package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.js.map +1 -0
  571. package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
  572. package/lib/data/data1d/multipleSpectraAnalysis.js +2 -2
  573. package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
  574. package/lib/data/data2d/Spectrum2D/contours.d.ts +1 -2
  575. package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
  576. package/lib/data/data2d/Spectrum2D/contours.js +2 -2
  577. package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
  578. package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +1 -1
  579. package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts.map +1 -1
  580. package/lib/data/data2d/Spectrum2D/getSlice.d.ts.map +1 -1
  581. package/lib/data/data2d/Spectrum2D/getSlice.js +3 -3
  582. package/lib/data/data2d/Spectrum2D/getSlice.js.map +1 -1
  583. package/lib/data/data2d/Spectrum2D/index.d.ts +0 -1
  584. package/lib/data/data2d/Spectrum2D/index.d.ts.map +1 -1
  585. package/lib/data/data2d/Spectrum2D/index.js +0 -1
  586. package/lib/data/data2d/Spectrum2D/index.js.map +1 -1
  587. package/lib/data/get_view_spectra.d.ts +11 -0
  588. package/lib/data/get_view_spectra.d.ts.map +1 -0
  589. package/lib/data/get_view_spectra.js +10 -0
  590. package/lib/data/get_view_spectra.js.map +1 -0
  591. package/lib/data/utilities/FindUtilities.d.ts.map +1 -1
  592. package/lib/data/utilities/FindUtilities.js +1 -2
  593. package/lib/data/utilities/FindUtilities.js.map +1 -1
  594. package/lib/data/utilities/RangeUtilities.d.ts +1 -1
  595. package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
  596. package/lib/data/utilities/RangeUtilities.js +3 -1
  597. package/lib/data/utilities/RangeUtilities.js.map +1 -1
  598. package/lib/data/utilities/getPeakAbsoluteArea.d.ts +3 -0
  599. package/lib/data/utilities/getPeakAbsoluteArea.d.ts.map +1 -0
  600. package/lib/data/utilities/getPeakAbsoluteArea.js +6 -0
  601. package/lib/data/utilities/getPeakAbsoluteArea.js.map +1 -0
  602. package/lib/versionInfo.js +1 -1
  603. package/package.json +39 -42
  604. package/src/component/1d/BrushTracker1D.tsx +170 -185
  605. package/src/component/1d/FloatPublicationString.tsx +6 -6
  606. package/src/component/1d/PredictionErrorsNotations.tsx +1 -1
  607. package/src/component/1d/SimilarityTree.tsx +2 -2
  608. package/src/component/1d/baseline/BaselinePreview.tsx +43 -13
  609. package/src/component/1d/baseline/getMedianY.ts +23 -5
  610. package/src/component/1d/inset/DraggableInset.tsx +1 -1
  611. package/src/component/1d/matrix/useMatrix.ts +2 -2
  612. package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +4 -3
  613. package/src/component/1d/peaks/PeakAnnotations.tsx +1 -1
  614. package/src/component/1d/ranges/AssignmentLabel.tsx +1 -0
  615. package/src/component/1d/ranges/FloatingRanges.tsx +3 -4
  616. package/src/component/1d/ranges/Range.tsx +3 -5
  617. package/src/component/1d/ranges/Ranges.tsx +1 -1
  618. package/src/component/1d-2d/FieldEdition.tsx +56 -63
  619. package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +1 -1
  620. package/src/component/1d-2d/components/Signals1D.tsx +12 -8
  621. package/src/component/1d-2d/components/axis_unit_picker.tsx +1 -1
  622. package/src/component/1d-2d/tools/BrushXY.tsx +45 -28
  623. package/src/component/1d-2d/tools/CrossLinePointer.tsx +34 -22
  624. package/src/component/1d-2d/tools/DistanceLine.tsx +253 -0
  625. package/src/component/2d/1d-tracer/Left1DChart.tsx +3 -3
  626. package/src/component/2d/1d-tracer/Top1DChart.tsx +4 -4
  627. package/src/component/2d/BrushTracker2D.tsx +25 -13
  628. package/src/component/2d/FooterBanner.tsx +2 -5
  629. package/src/component/2d/IndirectAxis2D.tsx +1 -1
  630. package/src/component/2d/SignalDeltaLine.tsx +1 -1
  631. package/src/component/2d/Viewer2D.tsx +2 -0
  632. package/src/component/2d/fid/FidCanvas.tsx +2 -2
  633. package/src/component/2d/fid/FidContainer.tsx +4 -4
  634. package/src/component/2d/ft/Contours.tsx +93 -24
  635. package/src/component/2d/ft/FTContainer.tsx +3 -4
  636. package/src/component/2d/useTracesSpectra.ts +5 -3
  637. package/src/component/2d/utilities/extractSpectrumSignals.ts +34 -26
  638. package/src/component/2d/utilities/scale.ts +1 -1
  639. package/src/component/2d/zones/SignalsGuideLines.tsx +18 -25
  640. package/src/component/AnchorSVG.tsx +7 -7
  641. package/src/component/EventsTrackers/BrushTracker.tsx +1 -1
  642. package/src/component/EventsTrackers/KeysListenerTracker.tsx +6 -1
  643. package/src/component/assignment/utilities/getAssignments.ts +1 -1
  644. package/src/component/context/DispatchContext.tsx +3 -1
  645. package/src/component/context/FilterSyncOptionsContext.tsx +15 -15
  646. package/src/component/context/KeyModifierContext.tsx +36 -45
  647. package/src/component/context/processings_mutations_context.api.ts +371 -0
  648. package/src/component/context/processings_mutations_context.tsx +28 -0
  649. package/src/component/elements/NumberInput2Controller.tsx +20 -1
  650. package/src/component/elements/Sections.tsx +1 -1
  651. package/src/component/elements/TableHeaderLabel.tsx +50 -0
  652. package/src/component/elements/print/PrintContent.tsx +130 -122
  653. package/src/component/header/AutoPeakPickingOptionPanel.tsx +10 -4
  654. package/src/component/header/Header.tsx +99 -8
  655. package/src/component/header/RangesPickingOptionPanel.tsx +2 -2
  656. package/src/component/header/SimpleBaseLineCorrectionOptionsPanel.tsx +1 -3
  657. package/src/component/header/base/BaseSimpleZeroFillingOptionsPanel.tsx +7 -4
  658. package/src/component/highlight/index.tsx +11 -37
  659. package/src/component/hooks/use2DReducer.tsx +2 -2
  660. package/src/component/hooks/useCheckPointsNumberInWindowArea.ts +4 -2
  661. package/src/component/hooks/useCheckToolsVisibility.ts +11 -1
  662. package/src/component/hooks/useSpectraBottomMargin.ts +1 -1
  663. package/src/component/hooks/useSpectrum.ts +12 -1
  664. package/src/component/hooks/useTextMetrics.ts +10 -9
  665. package/src/component/hooks/use_axis_unit.ts +2 -8
  666. package/src/component/hooks/use_publication_strings.ts +2 -4
  667. package/src/component/hooks/use_view_spectra.ts +16 -0
  668. package/src/component/hooks/use_visible_spectra_1d.ts +5 -2
  669. package/src/component/main/InnerNMRium.tsx +50 -47
  670. package/src/component/main/NMRium.tsx +2 -2
  671. package/src/component/main/NMRiumStateProvider.tsx +4 -1
  672. package/src/component/main/types.ts +1 -1
  673. package/src/component/modal/EditPeakShapeModal.tsx +179 -118
  674. package/src/component/modal/LoadJCAMPModal.tsx +58 -57
  675. package/src/component/modal/PublicationStringModal.tsx +2 -3
  676. package/src/component/modal/aboutUs/AboutUsModal.tsx +1 -1
  677. package/src/component/modal/editRange/EditRangeModal.tsx +1 -1
  678. package/src/component/modal/editRange/forms/components/DeltaInput.tsx +17 -31
  679. package/src/component/modal/editRange/forms/components/DeltaLabel.tsx +19 -0
  680. package/src/component/modal/editRange/forms/components/SignalTab.tsx +5 -21
  681. package/src/component/modal/editRange/forms/components/SignalsContent.tsx +40 -6
  682. package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +1 -1
  683. package/src/component/modal/editRange/forms/validation/EditRangeValidation.ts +75 -52
  684. package/src/component/modal/metaImportation/MetaImportationModal.tsx +3 -3
  685. package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +2 -1
  686. package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +2 -3
  687. package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +10 -5
  688. package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +2 -3
  689. package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +8 -4
  690. package/src/component/modal/setting/tanstack_general_settings/tabs/tools_tab.tsx +3 -0
  691. package/src/component/modal/setting/tanstack_general_settings/ui/table.tsx +3 -4
  692. package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +4 -3
  693. package/src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts +3 -2
  694. package/src/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.ts +1 -0
  695. package/src/component/panels/AutomaticAssignment/AutomaticAssignment.tsx +1 -1
  696. package/src/component/panels/AutomaticAssignment/useAutoAssignments.ts +29 -12
  697. package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.tsx +1 -1
  698. package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +1 -2
  699. package/src/component/panels/MoleculesPanel/utilities/getAssignIds.ts +1 -2
  700. package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +15 -3
  701. package/src/component/panels/PeaksPanel/PeaksTable.tsx +92 -29
  702. package/src/component/panels/RangesPanel/RangesTableRow.tsx +4 -0
  703. package/src/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.tsx +1 -1
  704. package/src/component/panels/SpectraPanel/SpectraPanelHeader.tsx +10 -18
  705. package/src/component/panels/SpectraPanel/SpectraTable.tsx +1 -1
  706. package/src/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.tsx +6 -3
  707. package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.tsx +45 -44
  708. package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.tsx +23 -21
  709. package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.tsx +1 -1
  710. package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.tsx +33 -28
  711. package/src/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.tsx +14 -11
  712. package/src/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.tsx +12 -10
  713. package/src/component/panels/SummaryPanel/Overview.tsx +4 -12
  714. package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +2 -2
  715. package/src/component/panels/SummaryPanel/SummaryPanel.tsx +32 -33
  716. package/src/component/panels/SummaryPanel/utilities/Utilities.ts +60 -58
  717. package/src/component/panels/SummaryPanel/utilities/useInView.ts +1 -1
  718. package/src/component/panels/databasePanel/DatabasePanel.tsx +173 -121
  719. package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +41 -16
  720. package/src/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.tsx +3 -8
  721. package/src/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.tsx +2 -4
  722. package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +6 -8
  723. package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +9 -13
  724. package/src/component/panels/filtersPanel/processings/operator_edit_banner.tsx +73 -0
  725. package/src/component/panels/filtersPanel/processings/processing_item.tsx +211 -0
  726. package/src/component/panels/filtersPanel/processings/processing_item_extra.tsx +63 -0
  727. package/src/component/panels/filtersPanel/processings/use_live_edit.ts +47 -0
  728. package/src/component/panels/filtersPanel/processings/use_live_operation.ts +22 -0
  729. package/src/component/panels/filtersPanel/processings_sections_panel.tsx +87 -254
  730. package/src/component/reducer/Reducer.ts +50 -9
  731. package/src/component/reducer/actions/AssignmentsActions.ts +1 -2
  732. package/src/component/reducer/actions/CorrelationsActions.ts +21 -19
  733. package/src/component/reducer/actions/DatabaseActions.ts +29 -15
  734. package/src/component/reducer/actions/DomainActions.ts +35 -24
  735. package/src/component/reducer/actions/FiltersActions.ts +56 -77
  736. package/src/component/reducer/actions/InsetActions.ts +1 -1
  737. package/src/component/reducer/actions/IntegralsActions.ts +1 -1
  738. package/src/component/reducer/actions/LoadAction.ts +8 -5
  739. package/src/component/reducer/actions/MoleculeActions.ts +1 -2
  740. package/src/component/reducer/actions/PeaksActions.ts +29 -2
  741. package/src/component/reducer/actions/PreferencesActions.ts +7 -4
  742. package/src/component/reducer/actions/RangesActions.ts +72 -17
  743. package/src/component/reducer/actions/SpectraActions.ts +8 -25
  744. package/src/component/reducer/actions/ToolsActions.ts +4 -10
  745. package/src/component/reducer/actions/ZonesActions.ts +44 -14
  746. package/src/component/reducer/actions/processings_actions.ts +130 -0
  747. package/src/component/reducer/helper/ZoomHistoryManager.ts +17 -0
  748. package/src/component/reducer/preferences/actions/initPreferences.ts +4 -1
  749. package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +2 -0
  750. package/src/component/reducer/preferences/preferencesReducer.ts +3 -3
  751. package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +9 -21
  752. package/src/component/toolbar/ToolTypes.ts +15 -0
  753. package/src/component/toolbar/nmr_toolbar.tsx +44 -4
  754. package/src/component/utility/{CoreSlot.tsx → core_slots/core_operator_expanded.tsx} +5 -57
  755. package/src/component/utility/core_slots/core_operator_name.tsx +21 -0
  756. package/src/component/utility/core_slots/core_operator_panel_tool.tsx +41 -0
  757. package/src/component/utility/core_slots/core_operator_tool.tsx +41 -0
  758. package/src/component/utility/core_slots/core_operator_topbar.tsx +65 -0
  759. package/src/component/utility/core_slots/core_slot.tsx +39 -0
  760. package/src/component/utility/formatNumber.ts +24 -2
  761. package/src/component/utility/toolbar_item_error.tsx +29 -0
  762. package/src/component/workspaces/assignment.ts +1 -0
  763. package/src/component/workspaces/basic.ts +1 -0
  764. package/src/component/workspaces/exercise.ts +1 -0
  765. package/src/component/workspaces/prediction.ts +1 -0
  766. package/src/component/workspaces/process1D.ts +1 -0
  767. package/src/component/workspaces/workspaceDefaultProperties.ts +1 -0
  768. package/src/data/SpectraManager.ts +2 -3
  769. package/src/data/data1d/Spectrum1D/SumManager.ts +1 -1
  770. package/src/data/data1d/Spectrum1D/index.ts +0 -1
  771. package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +4 -2
  772. package/src/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.ts +26 -0
  773. package/src/data/data1d/multipleSpectraAnalysis.ts +2 -1
  774. package/src/data/data2d/Spectrum2D/contours.ts +3 -5
  775. package/src/data/data2d/Spectrum2D/getSlice.ts +3 -4
  776. package/src/data/data2d/Spectrum2D/index.ts +0 -1
  777. package/src/data/get_view_spectra.ts +21 -0
  778. package/src/data/utilities/FindUtilities.ts +1 -3
  779. package/src/data/utilities/RangeUtilities.ts +5 -2
  780. package/src/data/utilities/getPeakAbsoluteArea.ts +7 -0
  781. package/src/versionInfo.ts +1 -1
  782. package/lib/component/panels/hooks/use_processings_mutation.d.ts +0 -10
  783. package/lib/component/panels/hooks/use_processings_mutation.d.ts.map +0 -1
  784. package/lib/component/panels/hooks/use_processings_mutation.js +0 -130
  785. package/lib/component/panels/hooks/use_processings_mutation.js.map +0 -1
  786. package/lib/component/utility/CoreSlot.d.ts +0 -27
  787. package/lib/component/utility/CoreSlot.d.ts.map +0 -1
  788. package/lib/component/utility/CoreSlot.js.map +0 -1
  789. package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts +0 -5
  790. package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts.map +0 -1
  791. package/lib/data/data1d/Spectrum1D/isSpectrum1D.js +0 -10
  792. package/lib/data/data1d/Spectrum1D/isSpectrum1D.js.map +0 -1
  793. package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +0 -14
  794. package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts.map +0 -1
  795. package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +0 -22
  796. package/lib/data/data2d/Spectrum2D/isSpectrum2D.js.map +0 -1
  797. package/src/component/panels/hooks/use_processings_mutation.ts +0 -171
  798. package/src/data/data1d/Spectrum1D/isSpectrum1D.ts +0 -19
  799. package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +0 -36
@@ -1,90 +1,59 @@
1
- import { Classes, Switch } from '@blueprintjs/core';
2
- import styled from '@emotion/styled';
3
1
  import type {
4
2
  ProcessingOperatorId,
5
3
  SpectrumProcessingOperation,
6
- } from '@zakodium/nmrium-core';
7
- import { cast } from '@zakodium/utils';
8
- import type { Filter1D, Filter2D } from 'nmr-processing';
9
- import type { Dispatch, SetStateAction } from 'react';
10
- import { useMemo, useState } from 'react';
11
- import { ObjectInspector } from 'react-inspector';
12
- import { Button } from 'react-science/ui';
4
+ } from '@zakodium/nmr-types';
5
+ import type { ProcessingOperatorUI } from '@zakodium/nmrium-core';
6
+ import { useMemo } from 'react';
7
+ import { FaRegTrashAlt } from 'react-icons/fa';
8
+ import { PanelHeader, Toolbar } from 'react-science/ui';
13
9
 
14
10
  import { useChartData } from '../../context/ChartContext.tsx';
15
11
  import { useCore } from '../../context/CoreContext.tsx';
12
+ import { useDispatch } from '../../context/DispatchContext.tsx';
13
+ import { useProcessingsMutations } from '../../context/processings_mutations_context.tsx';
16
14
  import type { AlertButton } from '../../elements/Alert.tsx';
17
15
  import { useAlert } from '../../elements/Alert.tsx';
18
16
  import { EmptyText } from '../../elements/EmptyText.tsx';
19
17
  import { Sections } from '../../elements/Sections.tsx';
20
- import useSpectrum from '../../hooks/useSpectrum.ts';
21
- import type { Tool } from '../../toolbar/ToolTypes.ts';
22
- import {
23
- CoreOperatorExpanded,
24
- CoreOperatorName,
25
- } from '../../utility/CoreSlot.tsx';
26
- import DefaultPanelHeader from '../header/DefaultPanelHeader.tsx';
27
- import type { ProcessingsMutations } from '../hooks/use_processings_mutation.ts';
28
- import { useProcessingsMutations } from '../hooks/use_processings_mutation.ts';
18
+ import { useStableSpectrum } from '../../hooks/useSpectrum.ts';
19
+ import { CoreOperatorPanelTool } from '../../utility/core_slots/core_operator_panel_tool.tsx';
29
20
 
30
- const mapToolsToProcessing: Partial<Record<Tool, ProcessingOperatorId>> = {
31
- apodization: '@zakodium/nmrium-core-plugins#apodization1D',
32
- zeroFilling: '@zakodium/nmrium-core-plugins#zeroFilling1D',
33
- fft: '@zakodium/nmrium-core-plugins#fft1D',
34
- phaseCorrection: '@zakodium/nmrium-core-plugins#phaseCorrection1D',
35
- };
36
-
37
- type FilterName = Filter1D['name'] | Filter2D['name'];
38
- const mapFiltersToProcessings: Partial<
39
- Record<FilterName, ProcessingOperatorId>
40
- > = {
41
- apodization: '@zakodium/nmrium-core-plugins#apodization1D',
42
- digitalFilter: '@zakodium/nmrium-core-plugins#digitalFilter1D',
43
- fft: '@zakodium/nmrium-core-plugins#fft1D',
44
- phaseCorrection: '@zakodium/nmrium-core-plugins#phaseCorrection1D',
45
- shiftX: '@zakodium/nmrium-core-plugins#shiftX1D',
46
- zeroFilling: '@zakodium/nmrium-core-plugins#zeroFilling1D',
47
- };
48
-
49
- const unremoveableProcessings = new Set<ProcessingOperatorId>([
50
- '@zakodium/nmrium-core-plugins#digitalFilter1D',
51
- '@zakodium/nmrium-core-plugins#digitalFilter2D',
52
- ]);
21
+ import { ProcessingItem } from './processings/processing_item.tsx';
53
22
 
54
23
  export function ProcessingsSectionsPanel() {
55
- const core = useCore();
56
24
  const { showAlert } = useAlert();
57
- const spectrum = useSpectrum();
58
- const { toolOptions } = useChartData();
25
+ const spectrum = useStableSpectrum();
26
+ const {
27
+ processingOperators: { selected },
28
+ } = useChartData();
29
+ const dispatch = useDispatch();
59
30
  const processingsMutations = useProcessingsMutations();
60
31
 
61
- cast<FilterName>(toolOptions.data.activeFilterID);
62
- const selectedToolProcessing = mapToolsToProcessing[toolOptions.selectedTool];
63
- const activeProcessing =
64
- mapFiltersToProcessings[toolOptions.data.activeFilterID];
65
- const [openedOperation, setOpenedOperation] = useState<string>();
66
-
67
32
  const processings = spectrum?.processings ?? [];
68
33
 
69
- const selectedProcessing = useMemo<{
70
- operatorId?: ProcessingOperatorId;
71
- operationId?: string;
72
- }>(() => {
73
- if (selectedToolProcessing) return { operatorId: selectedToolProcessing };
74
- if (
75
- activeProcessing &&
76
- spectrum?.processings?.some((p) => p.operatorId === activeProcessing)
77
- ) {
78
- return { operatorId: activeProcessing };
34
+ const processingsStatus = useMemo(() => {
35
+ const processings: Array<{
36
+ operation: SpectrumProcessingOperation<unknown, unknown>;
37
+ isOpen: boolean;
38
+ isAfterOpen: boolean;
39
+ }> = [];
40
+ let isAfterOpen = false;
41
+
42
+ for (const operation of spectrum?.processings ?? []) {
43
+ const isOpen = selected === operation.operatorId;
44
+
45
+ processings.push({ isOpen, isAfterOpen, operation });
46
+
47
+ if (isOpen) {
48
+ isAfterOpen = true;
49
+ }
79
50
  }
80
51
 
81
- return { operationId: openedOperation };
82
- }, [
83
- activeProcessing,
84
- openedOperation,
85
- selectedToolProcessing,
86
- spectrum?.processings,
87
- ]);
52
+ return processings;
53
+ }, [selected, spectrum?.processings]);
54
+
55
+ const core = useCore();
56
+ const operatorsUI = useMemo(() => core.slotOperators(), [core]);
88
57
 
89
58
  function handleDeleteFilter() {
90
59
  const buttons: AlertButton[] = [
@@ -103,205 +72,69 @@ export function ProcessingsSectionsPanel() {
103
72
  });
104
73
  }
105
74
 
106
- function toggleSection(operationId: string) {
107
- setOpenedOperation(
108
- openedOperation === operationId ? undefined : operationId,
109
- );
110
- }
111
-
112
- function onReorder(sourceIndex: number, targetIndex: number) {
113
- void processingsMutations.reorder(sourceIndex, targetIndex);
75
+ function selectProcessingOperator(
76
+ operatorUI: ProcessingOperatorUI<ProcessingOperatorId> | undefined,
77
+ operation: SpectrumProcessingOperation<unknown, unknown>,
78
+ ) {
79
+ if (operatorUI) {
80
+ void processingsMutations.triggerOperation(operation);
81
+ } else {
82
+ dispatch({
83
+ type: 'SELECT_PROCESSING_OPERATOR',
84
+ payload: { operatorUI: undefined },
85
+ });
86
+ }
114
87
  }
115
88
 
116
89
  if (!spectrum) return null;
117
90
 
118
91
  return (
119
92
  <>
120
- <DefaultPanelHeader
121
- deleteTooltip="Delete all filters"
122
- onDelete={handleDeleteFilter}
123
- total={processings?.length}
124
- hideCounter
125
- />
126
-
127
- {processings.length === 0 && <EmptyText text="No Processings" />}
128
- {processings.length > 0 && (
93
+ <PanelHeader>
94
+ <Toolbar overflow="collapse">
95
+ <Toolbar.Item
96
+ id="delete-button"
97
+ onClick={handleDeleteFilter}
98
+ tooltip="Delete all filters"
99
+ icon={<FaRegTrashAlt />}
100
+ intent="danger"
101
+ disabled={!processings?.length}
102
+ />
103
+ {operatorsUI.map((operatorUI) => (
104
+ <CoreOperatorPanelTool
105
+ key={operatorUI.id}
106
+ operator={operatorUI}
107
+ activeOperatorId={selected}
108
+ spectrum={spectrum}
109
+ onTriggerOperation={(operation) =>
110
+ void processingsMutations.triggerOperation(operation)
111
+ }
112
+ />
113
+ ))}
114
+ </Toolbar>
115
+ </PanelHeader>
116
+
117
+ {processingsStatus.length === 0 && <EmptyText text="No Processings" />}
118
+ {processingsStatus.length > 0 && (
129
119
  <Sections isOverflow renderActiveSectionContentOnly>
130
- {processings?.map((operation, index) => {
131
- const operatorUI = core.slotOperator(operation.operatorId);
132
- const isOpen =
133
- selectedProcessing.operatorId === operation.operatorId ||
134
- selectedProcessing.operationId === operation.uid;
135
- const isEditable = operatorUI?.isEditable;
136
-
137
- return (
138
- <Sections.Item
120
+ {processingsStatus.map(
121
+ ({ operation, isOpen, isAfterOpen }, index) => (
122
+ <ProcessingItem
139
123
  key={operation.uid}
140
- id={operation.uid}
141
- title={
142
- <CoreOperatorName
143
- id={operation.operatorId}
144
- fallback={operation.operatorId.split('#', 2).at(-1)}
145
- />
146
- }
124
+ operation={operation}
125
+ operationIndex={index}
147
126
  isOpen={isOpen}
148
- index={index}
149
- serial={index + 1}
150
- sticky
151
- onReorder={onReorder}
152
- onClick={() => toggleSection(operation.uid)}
153
- rightElement={
154
- <ProcessingItemExtra
155
- isOpen={isOpen}
156
- isEditable={isEditable}
157
- setOpenedOperation={setOpenedOperation}
158
- processingsMutations={processingsMutations}
159
- operation={operation}
160
- />
127
+ isAfterOpen={isAfterOpen}
128
+ selectProcessingOperator={(operatorUI) =>
129
+ selectProcessingOperator(operatorUI, operation)
161
130
  }
162
- >
163
- <Sections.Body style={{ paddingBottom: '120px' }}>
164
- <CoreOperatorExpanded
165
- id={operation.operatorId}
166
- fallback={<OperationFallback operation={operation} />}
167
- operation={operation}
168
- core={core}
169
- onChange={(operation) => {
170
- void processingsMutations.apply(
171
- // onChange generally change settings
172
- // so options should be re-computed
173
- { ...operation, options: undefined },
174
- index,
175
- );
176
- setOpenedOperation(undefined);
177
- }}
178
- >
179
- {(children) => (
180
- <LiveEditBanner>
181
- <Switch
182
- label="Live preview"
183
- innerLabelChecked="On"
184
- innerLabel="Off"
185
- checked
186
- />
187
- <Switch
188
- label="Processed"
189
- innerLabelChecked="On"
190
- innerLabel="Off"
191
- checked
192
- />
193
- <Spacer />
194
- {children}
195
- <Button
196
- variant="minimal"
197
- intent="danger"
198
- onClick={() => setOpenedOperation(undefined)}
199
- size="small"
200
- >
201
- Cancel
202
- </Button>
203
- </LiveEditBanner>
204
- )}
205
- </CoreOperatorExpanded>
206
- </Sections.Body>
207
- </Sections.Item>
208
- );
209
- })}
131
+ processingsMutations={processingsMutations}
132
+ spectrum={spectrum}
133
+ />
134
+ ),
135
+ )}
210
136
  </Sections>
211
137
  )}
212
138
  </>
213
139
  );
214
140
  }
215
-
216
- interface ProcessingItemExtraProps {
217
- operation: SpectrumProcessingOperation<unknown, unknown>;
218
- isOpen: boolean;
219
- isEditable: boolean | undefined;
220
- setOpenedOperation: Dispatch<SetStateAction<string | undefined>>;
221
- processingsMutations: ProcessingsMutations;
222
- }
223
-
224
- function ProcessingItemExtra(props: ProcessingItemExtraProps) {
225
- const {
226
- operation,
227
- isOpen,
228
- isEditable,
229
- setOpenedOperation,
230
- processingsMutations,
231
- } = props;
232
-
233
- return (
234
- <CompactControls>
235
- {isEditable && (
236
- <Button
237
- tooltipProps={{ content: 'Edit filter' }}
238
- intent="success"
239
- variant="minimal"
240
- onClick={() => setOpenedOperation(operation.uid)}
241
- icon="annotation"
242
- disabled={isOpen}
243
- />
244
- )}
245
-
246
- <Button
247
- tooltipProps={{ content: 'Delete filter' }}
248
- intent="danger"
249
- variant="minimal"
250
- onClick={() => processingsMutations.remove(operation.uid)}
251
- disabled={unremoveableProcessings.has(operation.operatorId)}
252
- icon="trash"
253
- />
254
-
255
- <Switch
256
- checked={operation.enabled ?? false}
257
- innerLabelChecked="On"
258
- innerLabel="Off"
259
- onChange={() => processingsMutations.switchEnabled(operation.uid)}
260
- />
261
- </CompactControls>
262
- );
263
- }
264
-
265
- interface OperationFallbackProps {
266
- operation: SpectrumProcessingOperation<unknown, unknown>;
267
- }
268
-
269
- function OperationFallback(props: OperationFallbackProps) {
270
- const { operation } = props;
271
- const { settings, options } = operation;
272
-
273
- if (settings === null) {
274
- return <EmptyText text=" No options available" />;
275
- }
276
-
277
- return <ObjectInspector data={{ settings, options }} />;
278
- }
279
-
280
- const CompactControls = styled.div`
281
- display: flex;
282
- align-items: center;
283
-
284
- .${Classes.CONTROL} {
285
- margin-bottom: 0;
286
- }
287
- `;
288
-
289
- const LiveEditBanner = styled.div`
290
- background-color: white;
291
- box-shadow: rgb(0 0 0 / 16%) 0 1px 4px;
292
- margin-left: -10px;
293
- margin-right: -10px;
294
- transform: translateY(-10px);
295
- padding: 5px;
296
- display: flex;
297
- align-items: center;
298
- gap: 5px;
299
-
300
- .${Classes.CONTROL} {
301
- margin-bottom: 0;
302
- }
303
- `;
304
-
305
- const Spacer = styled.span`
306
- flex: 1;
307
- `;
@@ -1,11 +1,15 @@
1
- import type { BaselineCorrectionZone } from '@zakodium/nmr-types';
1
+ import type {
2
+ BaselineCorrectionZone,
3
+ ProcessingOperatorId,
4
+ SpectrumProcessingOperation,
5
+ } from '@zakodium/nmr-types';
2
6
  import type { Spectrum, ViewState } from '@zakodium/nmrium-core';
3
7
  import type { Source } from 'file-collection';
4
8
  import { FileCollection } from 'file-collection';
5
9
  import type { Draft } from 'immer';
6
10
  import { original, produce } from 'immer';
7
- import type { CorrelationData } from 'nmr-correlation';
8
- import { buildCorrelationData } from 'nmr-correlation';
11
+ import type { CorrelationData } from 'nmr-processing';
12
+ import { correlationApi } from 'nmr-processing';
9
13
  import type { Reducer } from 'react';
10
14
 
11
15
  import type { StateMoleculeExtended } from '../../data/molecules/Molecule.js';
@@ -31,6 +35,7 @@ import * as RangesActions from './actions/RangesActions.js';
31
35
  import * as SpectraActions from './actions/SpectraActions.js';
32
36
  import * as ToolsActions from './actions/ToolsActions.js';
33
37
  import * as ZonesActions from './actions/ZonesActions.js';
38
+ import * as ProcessingsActions from './actions/processings_actions.js';
34
39
  import {
35
40
  handleSetAxisUnit1DHorizontalAction,
36
41
  handleSetAxisUnit2DDirectAction,
@@ -122,6 +127,7 @@ export const getInitialState = (): State => ({
122
127
  sources: {},
123
128
  aggregator: new FileCollection(),
124
129
  data: [],
130
+ spectrumLiveProcessed: undefined,
125
131
  tempData: null,
126
132
  xDomain: [],
127
133
  yDomain: [],
@@ -155,11 +161,18 @@ export const getInitialState = (): State => ({
155
161
  isLoading: false,
156
162
  keysPreferences: {},
157
163
  displayerMode: '1D',
158
- correlations: {},
164
+ correlations: correlationApi.buildCorrelationData([], {
165
+ tolerance: DefaultTolerance,
166
+ }),
159
167
  displayerKey: '',
160
168
  zoom: {
161
169
  history: {},
162
170
  },
171
+ processingOperators: {
172
+ selected: undefined,
173
+ liveOperation: undefined,
174
+ liveEdit: undefined,
175
+ },
163
176
  toolOptions: {
164
177
  selectedTool: 'zoom',
165
178
  selectedOptionPanel: null,
@@ -217,11 +230,22 @@ export interface State {
217
230
  * spectra list (1d and 2d)
218
231
  */
219
232
  data: Spectrum[];
233
+
234
+ /**
235
+ * Snapshot of the active spectrum.
236
+ * It is preprocessed to minimize the processings to run in live update mode.
237
+ *
238
+ * Related to processings
239
+ */
240
+ spectrumLiveProcessed: Spectrum | undefined;
241
+
220
242
  /**
221
243
  * snapshot of the spectra data once phase correction activated
222
244
  *
245
+ * Related to filters
223
246
  */
224
247
  tempData: any;
248
+
225
249
  /**
226
250
  * X axis domain
227
251
  * value change when zooming in/out
@@ -333,6 +357,12 @@ export interface State {
333
357
  history: ZoomHistory;
334
358
  };
335
359
 
360
+ processingOperators: {
361
+ selected: ProcessingOperatorId | undefined;
362
+ liveEdit: { checked: boolean; shouldProcessNext: boolean } | undefined;
363
+ liveOperation: SpectrumProcessingOperation<unknown, unknown> | undefined;
364
+ };
365
+
336
366
  /**
337
367
  * Basic options for the tools
338
368
  */
@@ -396,13 +426,9 @@ export interface State {
396
426
 
397
427
  export function initState(state: State): State {
398
428
  const displayerKey = crypto.randomUUID();
399
- const correlations = buildCorrelationData([], {
400
- tolerance: DefaultTolerance,
401
- });
402
429
 
403
430
  return {
404
431
  ...state,
405
- correlations,
406
432
  displayerKey,
407
433
  history: {},
408
434
  };
@@ -437,6 +463,8 @@ function innerSpectrumReducer(draft: Draft<State>, action: Action) {
437
463
  return PeaksActions.handleTogglePeaksViewProperty(draft, action);
438
464
  case 'TOGGLE_PEAKS_DISPLAYING_MODE':
439
465
  return PeaksActions.handleChangePeaksDisplayingMode(draft);
466
+ case 'CHANGE_PEAK_RELATIVE':
467
+ return PeaksActions.handleChangeRangeRelativeValue(draft, action);
440
468
  case 'ADD_INTEGRAL':
441
469
  return IntegralsActions.handleAddIntegral(draft, action);
442
470
  case 'DELETE_INTEGRAL':
@@ -648,8 +676,19 @@ function innerSpectrumReducer(draft: Draft<State>, action: Action) {
648
676
  return ToolsActions.setSpectraSameTopHandler(draft);
649
677
  case 'RESET_SPECTRA_SCALE':
650
678
  return ToolsActions.resetSpectraScale(draft);
679
+
651
680
  case 'SET_SPECTRUM':
652
- return SpectraActions.setSpectrum(draft, action);
681
+ return ProcessingsActions.setSpectrum(draft, action);
682
+ case 'SET_SPECTRUM_LIVE_PROCESSED':
683
+ return ProcessingsActions.setSpectrumLiveProcessed(draft, action);
684
+ case 'SELECT_PROCESSING_OPERATOR':
685
+ return ProcessingsActions.selectProcessingOperator(draft, action);
686
+ case 'SET_LIVE_OPERATION':
687
+ return ProcessingsActions.setLiveOperation(draft, action);
688
+ case 'SET_LIVE_EDIT_CHECKED':
689
+ return ProcessingsActions.setLiveEditChecked(draft, action);
690
+ case 'SET_LIVE_EDIT_SHOULD_PROCESS_NEXT':
691
+ return ProcessingsActions.setLiveEditShouldProcessNext(draft, action);
653
692
 
654
693
  case 'CHANGE_SPECTRUM_DISPLAY_VIEW_MODE':
655
694
  return ToolsActions.handleChangeSpectrumDisplayMode(draft);
@@ -784,6 +823,8 @@ function innerSpectrumReducer(draft: Draft<State>, action: Action) {
784
823
  draft,
785
824
  action,
786
825
  );
826
+ case 'ALIGN_2D_SPECTRUM':
827
+ return ZonesActions.handleAlign2DSpectrum(draft, action);
787
828
 
788
829
  case 'RESURRECTING_SPECTRUM_FROM_SIGNALS_OR_RANGES':
789
830
  return DatabaseActions.handleResurrectSpectrumFromRangesOrSignals(
@@ -1,9 +1,8 @@
1
1
  import type { Range, Zone } from '@zakodium/nmr-types';
2
+ import { isSpectrum1D, isSpectrum2D } from '@zakodium/nmrium-core';
2
3
  import type { Draft } from 'immer';
3
4
  import type { SpectraData1D, SpectraData2D } from 'nmr-processing';
4
5
 
5
- import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
6
- import { isSpectrum2D } from '../../../data/data2d/Spectrum2D/index.js';
7
6
  import type { State } from '../Reducer.js';
8
7
  import { getSpectrum } from '../helper/getSpectrum.js';
9
8
  import type { ActionType } from '../types/ActionType.js';
@@ -1,17 +1,15 @@
1
+ import { isSpectrum1D, isSpectrum2D } from '@zakodium/nmrium-core';
1
2
  import type { Draft } from 'immer';
2
3
  import { original } from 'immer';
3
4
  import lodashCloneDeep from 'lodash/cloneDeep.js';
4
5
  import type {
5
6
  Correlation,
6
- Options as CorrelationOptions,
7
- Spectrum,
8
- Tolerance,
9
- Values as CorrelationValues,
10
- } from 'nmr-correlation';
11
- import { buildCorrelationData, setCorrelation } from 'nmr-correlation';
7
+ CorrelationBuildOptions,
8
+ CorrelationTolerance,
9
+ CorrelationValues,
10
+ } from 'nmr-processing';
11
+ import { correlationApi } from 'nmr-processing';
12
12
 
13
- import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
14
- import { isSpectrum2D } from '../../../data/data2d/Spectrum2D/index.js';
15
13
  import {
16
14
  findRange,
17
15
  findSignal1D,
@@ -28,21 +26,21 @@ import { deleteSignal2D } from './ZonesActions.js';
28
26
  type SetMFAction = ActionType<'SET_CORRELATIONS_MF', { mf: string }>;
29
27
  type SetToleranceAction = ActionType<
30
28
  'SET_CORRELATIONS_TOLERANCE',
31
- { tolerance: Tolerance }
29
+ { tolerance: CorrelationTolerance }
32
30
  >;
33
31
  type SetCorrelationAction = ActionType<
34
32
  'SET_CORRELATION',
35
33
  {
36
34
  id: string;
37
35
  correlation: Correlation;
38
- options?: CorrelationOptions;
36
+ options?: CorrelationBuildOptions;
39
37
  }
40
38
  >;
41
39
  type SetCorrelationsAction = ActionType<
42
40
  'SET_CORRELATIONS',
43
41
  {
44
42
  correlations: CorrelationValues;
45
- options: CorrelationOptions;
43
+ options: CorrelationBuildOptions;
46
44
  }
47
45
  >;
48
46
  type DeleteCorrelationAction = ActionType<
@@ -59,9 +57,9 @@ export type CorrelationsActions =
59
57
 
60
58
  function handleUpdateCorrelations(draft: Draft<State>) {
61
59
  const { data: spectra, correlations } = original(draft);
62
- draft.correlations = buildCorrelationData(spectra as Spectrum, {
63
- ...correlations.options,
64
- values: lodashCloneDeep(correlations.values),
60
+ draft.correlations = correlationApi.buildCorrelationData(spectra, {
61
+ ...correlations?.options,
62
+ values: lodashCloneDeep(correlations?.values),
65
63
  });
66
64
  }
67
65
 
@@ -72,7 +70,7 @@ function handleSetMF(draft: Draft<State>, action: SetMFAction) {
72
70
  const { mf } = action.payload;
73
71
  // update of correlation data is needed only if the following is true
74
72
  if (correlations.options.mf === '' || correlations.options.mf !== mf) {
75
- draft.correlations = buildCorrelationData(spectra, {
73
+ draft.correlations = correlationApi.buildCorrelationData(spectra, {
76
74
  ...correlations.options,
77
75
  mf,
78
76
  values: lodashCloneDeep(correlations.values),
@@ -85,7 +83,7 @@ function handleSetTolerance(draft: Draft<State>, action: SetToleranceAction) {
85
83
  const state = original(draft);
86
84
  const { data: spectra, correlations } = state;
87
85
  const { tolerance } = action.payload;
88
- draft.correlations = buildCorrelationData(spectra, {
86
+ draft.correlations = correlationApi.buildCorrelationData(spectra, {
89
87
  ...correlations.options,
90
88
  tolerance,
91
89
  values: lodashCloneDeep(correlations.values),
@@ -100,7 +98,11 @@ function handleSetCorrelation(
100
98
  const state = original(draft);
101
99
  const { correlations } = state;
102
100
  const { id, correlation, options } = action.payload;
103
- draft.correlations = setCorrelation(correlations, id, correlation);
101
+ draft.correlations = correlationApi.setCorrelation(
102
+ correlations,
103
+ id,
104
+ correlation,
105
+ );
104
106
  if (options) {
105
107
  draft.correlations = {
106
108
  ...draft.correlations,
@@ -119,7 +121,7 @@ function handleSetCorrelations(
119
121
  const state = original(draft);
120
122
  let correlationsData = lodashCloneDeep(state.correlations);
121
123
  for (const correlation of correlations) {
122
- correlationsData = setCorrelation(
124
+ correlationsData = correlationApi.setCorrelation(
123
125
  correlationsData,
124
126
  correlation.id,
125
127
  correlation,
@@ -142,7 +144,7 @@ function handleDeleteCorrelation(
142
144
  ) {
143
145
  const { correlation } = action.payload;
144
146
  // delete all signals linked to the correlation
145
- for (const link of correlation.links) {
147
+ for (const link of correlation.link) {
146
148
  const spectrum = findSpectrum(draft.data, link.experimentID, false);
147
149
  if (isSpectrum1D(spectrum)) {
148
150
  const range = findRange(spectrum, link.signal.id);