nmrium 2.5.0 → 2.7.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 (932) hide show
  1. package/lib/component/1d/ApodizationLine.js +2 -2
  2. package/lib/component/1d/ApodizationLine.js.map +1 -1
  3. package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
  4. package/lib/component/1d/BrushTracker1D.js +158 -173
  5. package/lib/component/1d/BrushTracker1D.js.map +1 -1
  6. package/lib/component/1d/FloatPublicationString.js +6 -6
  7. package/lib/component/1d/FloatPublicationString.js.map +1 -1
  8. package/lib/component/1d/Line.js +2 -2
  9. package/lib/component/1d/Line.js.map +1 -1
  10. package/lib/component/1d/PredictionErrorsNotations.js +1 -1
  11. package/lib/component/1d/PredictionErrorsNotations.js.map +1 -1
  12. package/lib/component/1d/SVGContent1D.d.ts.map +1 -1
  13. package/lib/component/1d/SVGContent1D.js +4 -1
  14. package/lib/component/1d/SVGContent1D.js.map +1 -1
  15. package/lib/component/1d/SimilarityTree.js +2 -2
  16. package/lib/component/1d/SimilarityTree.js.map +1 -1
  17. package/lib/component/1d/baseline/BaselinePreview.d.ts.map +1 -1
  18. package/lib/component/1d/baseline/BaselinePreview.js +49 -24
  19. package/lib/component/1d/baseline/BaselinePreview.js.map +1 -1
  20. package/lib/component/1d/baseline/getMedianY.d.ts +5 -1
  21. package/lib/component/1d/baseline/getMedianY.d.ts.map +1 -1
  22. package/lib/component/1d/baseline/getMedianY.js +19 -5
  23. package/lib/component/1d/baseline/getMedianY.js.map +1 -1
  24. package/lib/component/1d/database/DatabaseSpectrum.js +2 -2
  25. package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
  26. package/lib/component/1d/database/ResurrectedDatabaseRanges.js +2 -2
  27. package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
  28. package/lib/component/1d/inset/DraggableInset.js +1 -1
  29. package/lib/component/1d/inset/DraggableInset.js.map +1 -1
  30. package/lib/component/1d/matrix/Boxplot.js +5 -5
  31. package/lib/component/1d/matrix/Boxplot.js.map +1 -1
  32. package/lib/component/1d/matrix/Stocsy.js +2 -2
  33. package/lib/component/1d/matrix/Stocsy.js.map +1 -1
  34. package/lib/component/1d/matrix/useMatrix.d.ts.map +1 -1
  35. package/lib/component/1d/matrix/useMatrix.js +2 -2
  36. package/lib/component/1d/matrix/useMatrix.js.map +1 -1
  37. package/lib/component/1d/multiplicityTree/MultiplicityTree.js +3 -3
  38. package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
  39. package/lib/component/1d/peaks/PeakAnnotations.js +1 -1
  40. package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
  41. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.d.ts.map +1 -1
  42. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +12 -3
  43. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
  44. package/lib/component/1d/peaks/usePeakShapesPath.js +2 -2
  45. package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
  46. package/lib/component/1d/plugin_svg_chart.d.ts +2 -0
  47. package/lib/component/1d/plugin_svg_chart.d.ts.map +1 -0
  48. package/lib/component/1d/plugin_svg_chart.js +43 -0
  49. package/lib/component/1d/plugin_svg_chart.js.map +1 -0
  50. package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
  51. package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
  52. package/lib/component/1d/ranges/FloatingRanges.d.ts.map +1 -1
  53. package/lib/component/1d/ranges/FloatingRanges.js +2 -3
  54. package/lib/component/1d/ranges/FloatingRanges.js.map +1 -1
  55. package/lib/component/1d/ranges/Range.d.ts.map +1 -1
  56. package/lib/component/1d/ranges/Range.js +3 -2
  57. package/lib/component/1d/ranges/Range.js.map +1 -1
  58. package/lib/component/1d/ranges/Ranges.js +1 -1
  59. package/lib/component/1d/ranges/Ranges.js.map +1 -1
  60. package/lib/component/1d-2d/FieldEdition.d.ts +1 -1
  61. package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
  62. package/lib/component/1d-2d/FieldEdition.js +35 -31
  63. package/lib/component/1d-2d/FieldEdition.js.map +1 -1
  64. package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js +1 -1
  65. package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js.map +1 -1
  66. package/lib/component/1d-2d/components/RangeIndicator.d.ts.map +1 -1
  67. package/lib/component/1d-2d/components/RangeIndicator.js +1 -7
  68. package/lib/component/1d-2d/components/RangeIndicator.js.map +1 -1
  69. package/lib/component/1d-2d/components/Signals1D.d.ts.map +1 -1
  70. package/lib/component/1d-2d/components/Signals1D.js +10 -8
  71. package/lib/component/1d-2d/components/Signals1D.js.map +1 -1
  72. package/lib/component/1d-2d/components/axis_unit_picker.d.ts.map +1 -1
  73. package/lib/component/1d-2d/components/axis_unit_picker.js +1 -1
  74. package/lib/component/1d-2d/components/axis_unit_picker.js.map +1 -1
  75. package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
  76. package/lib/component/1d-2d/tools/BrushXY.js +40 -28
  77. package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
  78. package/lib/component/1d-2d/tools/CrossLinePointer.d.ts.map +1 -1
  79. package/lib/component/1d-2d/tools/CrossLinePointer.js +27 -22
  80. package/lib/component/1d-2d/tools/CrossLinePointer.js.map +1 -1
  81. package/lib/component/1d-2d/tools/DistanceLine.d.ts +29 -0
  82. package/lib/component/1d-2d/tools/DistanceLine.d.ts.map +1 -0
  83. package/lib/component/1d-2d/tools/DistanceLine.js +132 -0
  84. package/lib/component/1d-2d/tools/DistanceLine.js.map +1 -0
  85. package/lib/component/2d/1d-tracer/HorizontalSliceChart.js +2 -2
  86. package/lib/component/2d/1d-tracer/HorizontalSliceChart.js.map +1 -1
  87. package/lib/component/2d/1d-tracer/Left1DChart.js +5 -4
  88. package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
  89. package/lib/component/2d/1d-tracer/Top1DChart.js +5 -4
  90. package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
  91. package/lib/component/2d/1d-tracer/VerticalSliceChart.js +2 -2
  92. package/lib/component/2d/1d-tracer/VerticalSliceChart.js.map +1 -1
  93. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.js +3 -3
  94. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.js.map +1 -1
  95. package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
  96. package/lib/component/2d/BrushTracker2D.js +20 -10
  97. package/lib/component/2d/BrushTracker2D.js.map +1 -1
  98. package/lib/component/2d/FooterBanner.d.ts.map +1 -1
  99. package/lib/component/2d/FooterBanner.js +2 -2
  100. package/lib/component/2d/FooterBanner.js.map +1 -1
  101. package/lib/component/2d/IndirectAxis2D.js +1 -1
  102. package/lib/component/2d/IndirectAxis2D.js.map +1 -1
  103. package/lib/component/2d/SignalDeltaLine.js +1 -1
  104. package/lib/component/2d/SignalDeltaLine.js.map +1 -1
  105. package/lib/component/2d/Viewer2D.d.ts.map +1 -1
  106. package/lib/component/2d/Viewer2D.js +2 -1
  107. package/lib/component/2d/Viewer2D.js.map +1 -1
  108. package/lib/component/2d/fid/FidCanvas.js +2 -2
  109. package/lib/component/2d/fid/FidCanvas.js.map +1 -1
  110. package/lib/component/2d/fid/FidContainer.js +3 -3
  111. package/lib/component/2d/fid/FidContainer.js.map +1 -1
  112. package/lib/component/2d/ft/Contours.d.ts.map +1 -1
  113. package/lib/component/2d/ft/Contours.js +39 -3
  114. package/lib/component/2d/ft/Contours.js.map +1 -1
  115. package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
  116. package/lib/component/2d/ft/FTContainer.js +2 -3
  117. package/lib/component/2d/ft/FTContainer.js.map +1 -1
  118. package/lib/component/2d/useTracesSpectra.d.ts.map +1 -1
  119. package/lib/component/2d/useTracesSpectra.js +5 -3
  120. package/lib/component/2d/useTracesSpectra.js.map +1 -1
  121. package/lib/component/2d/utilities/extractSpectrumSignals.d.ts +2 -1
  122. package/lib/component/2d/utilities/extractSpectrumSignals.d.ts.map +1 -1
  123. package/lib/component/2d/utilities/extractSpectrumSignals.js +26 -25
  124. package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -1
  125. package/lib/component/2d/utilities/scale.d.ts.map +1 -1
  126. package/lib/component/2d/utilities/scale.js +1 -1
  127. package/lib/component/2d/utilities/scale.js.map +1 -1
  128. package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -1
  129. package/lib/component/2d/zones/SignalsGuideLines.js +15 -18
  130. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
  131. package/lib/component/AnchorSVG.d.ts +1 -1
  132. package/lib/component/AnchorSVG.d.ts.map +1 -1
  133. package/lib/component/AnchorSVG.js +3 -2
  134. package/lib/component/AnchorSVG.js.map +1 -1
  135. package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
  136. package/lib/component/EventsTrackers/BrushTracker.js +1 -1
  137. package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
  138. package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
  139. package/lib/component/EventsTrackers/KeysListenerTracker.js +5 -1
  140. package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
  141. package/lib/component/assignment/utilities/getAssignments.js +1 -1
  142. package/lib/component/assignment/utilities/getAssignments.js.map +1 -1
  143. package/lib/component/context/DispatchContext.d.ts +2 -1
  144. package/lib/component/context/DispatchContext.d.ts.map +1 -1
  145. package/lib/component/context/DispatchContext.js.map +1 -1
  146. package/lib/component/context/FilterSyncOptionsContext.d.ts.map +1 -1
  147. package/lib/component/context/FilterSyncOptionsContext.js +13 -13
  148. package/lib/component/context/FilterSyncOptionsContext.js.map +1 -1
  149. package/lib/component/context/KeyModifierContext.d.ts +4 -12
  150. package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
  151. package/lib/component/context/KeyModifierContext.js +17 -35
  152. package/lib/component/context/KeyModifierContext.js.map +1 -1
  153. package/lib/component/context/ScaleContext.d.ts +1 -1
  154. package/lib/component/context/ScaleContext.d.ts.map +1 -1
  155. package/lib/component/context/processings_mutations_context.api.d.ts +14 -0
  156. package/lib/component/context/processings_mutations_context.api.d.ts.map +1 -0
  157. package/lib/component/context/processings_mutations_context.api.js +275 -0
  158. package/lib/component/context/processings_mutations_context.api.js.map +1 -0
  159. package/lib/component/context/processings_mutations_context.d.ts +5 -0
  160. package/lib/component/context/processings_mutations_context.d.ts.map +1 -0
  161. package/lib/component/context/processings_mutations_context.js +16 -0
  162. package/lib/component/context/processings_mutations_context.js.map +1 -0
  163. package/lib/component/elements/D3Axis.d.ts.map +1 -1
  164. package/lib/component/elements/D3Axis.js +15 -32
  165. package/lib/component/elements/D3Axis.js.map +1 -1
  166. package/lib/component/elements/NumberInput2Controller.d.ts +1 -0
  167. package/lib/component/elements/NumberInput2Controller.d.ts.map +1 -1
  168. package/lib/component/elements/NumberInput2Controller.js +14 -3
  169. package/lib/component/elements/NumberInput2Controller.js.map +1 -1
  170. package/lib/component/elements/Sections.d.ts.map +1 -1
  171. package/lib/component/elements/Sections.js +1 -1
  172. package/lib/component/elements/Sections.js.map +1 -1
  173. package/lib/component/elements/TableHeaderLabel.d.ts +9 -0
  174. package/lib/component/elements/TableHeaderLabel.d.ts.map +1 -0
  175. package/lib/component/elements/TableHeaderLabel.js +30 -0
  176. package/lib/component/elements/TableHeaderLabel.js.map +1 -0
  177. package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
  178. package/lib/component/elements/export/ExportContent.js +2 -2
  179. package/lib/component/elements/export/ExportContent.js.map +1 -1
  180. package/lib/component/elements/export/ExportOptionsModal.d.ts.map +1 -1
  181. package/lib/component/elements/export/ExportOptionsModal.js +9 -3
  182. package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
  183. package/lib/component/elements/export/useExportConfigurer.d.ts +1 -0
  184. package/lib/component/elements/export/useExportConfigurer.d.ts.map +1 -1
  185. package/lib/component/elements/export/useExportConfigurer.js +5 -0
  186. package/lib/component/elements/export/useExportConfigurer.js.map +1 -1
  187. package/lib/component/elements/print/PrintContent.d.ts +1 -0
  188. package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
  189. package/lib/component/elements/print/PrintContent.js +79 -93
  190. package/lib/component/elements/print/PrintContent.js.map +1 -1
  191. package/lib/component/elements/utilities/transferStyles.d.ts +2 -0
  192. package/lib/component/elements/utilities/transferStyles.d.ts.map +1 -0
  193. package/lib/component/elements/utilities/transferStyles.js +29 -0
  194. package/lib/component/elements/utilities/transferStyles.js.map +1 -0
  195. package/lib/component/header/AutoPeakPickingOptionPanel.d.ts.map +1 -1
  196. package/lib/component/header/AutoPeakPickingOptionPanel.js +4 -4
  197. package/lib/component/header/AutoPeakPickingOptionPanel.js.map +1 -1
  198. package/lib/component/header/Header.d.ts.map +1 -1
  199. package/lib/component/header/Header.js +59 -5
  200. package/lib/component/header/Header.js.map +1 -1
  201. package/lib/component/header/RangesPickingOptionPanel.js +2 -2
  202. package/lib/component/header/RangesPickingOptionPanel.js.map +1 -1
  203. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.d.ts.map +1 -1
  204. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js +1 -1
  205. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js.map +1 -1
  206. package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.d.ts.map +1 -1
  207. package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.js +1 -1
  208. package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.js.map +1 -1
  209. package/lib/component/highlight/index.d.ts.map +1 -1
  210. package/lib/component/highlight/index.js +10 -36
  211. package/lib/component/highlight/index.js.map +1 -1
  212. package/lib/component/hooks/use2DReducer.d.ts.map +1 -1
  213. package/lib/component/hooks/use2DReducer.js +2 -2
  214. package/lib/component/hooks/use2DReducer.js.map +1 -1
  215. package/lib/component/hooks/useCheckPointsNumberInWindowArea.d.ts.map +1 -1
  216. package/lib/component/hooks/useCheckPointsNumberInWindowArea.js +3 -1
  217. package/lib/component/hooks/useCheckPointsNumberInWindowArea.js.map +1 -1
  218. package/lib/component/hooks/useCheckToolsVisibility.d.ts.map +1 -1
  219. package/lib/component/hooks/useCheckToolsVisibility.js +6 -1
  220. package/lib/component/hooks/useCheckToolsVisibility.js.map +1 -1
  221. package/lib/component/hooks/useIntegralPath.js +2 -2
  222. package/lib/component/hooks/useIntegralPath.js.map +1 -1
  223. package/lib/component/hooks/useSpectraBottomMargin.js +1 -1
  224. package/lib/component/hooks/useSpectraBottomMargin.js.map +1 -1
  225. package/lib/component/hooks/useSpectrum.d.ts +4 -0
  226. package/lib/component/hooks/useSpectrum.d.ts.map +1 -1
  227. package/lib/component/hooks/useSpectrum.js +9 -1
  228. package/lib/component/hooks/useSpectrum.js.map +1 -1
  229. package/lib/component/hooks/useTextMetrics.d.ts +2 -4
  230. package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
  231. package/lib/component/hooks/useTextMetrics.js +3 -2
  232. package/lib/component/hooks/useTextMetrics.js.map +1 -1
  233. package/lib/component/hooks/use_axis_unit.d.ts +3 -3
  234. package/lib/component/hooks/use_axis_unit.d.ts.map +1 -1
  235. package/lib/component/hooks/use_axis_unit.js +2 -8
  236. package/lib/component/hooks/use_axis_unit.js.map +1 -1
  237. package/lib/component/hooks/use_publication_strings.d.ts.map +1 -1
  238. package/lib/component/hooks/use_publication_strings.js +2 -3
  239. package/lib/component/hooks/use_publication_strings.js.map +1 -1
  240. package/lib/component/hooks/use_view_spectra.d.ts +6 -0
  241. package/lib/component/hooks/use_view_spectra.d.ts.map +1 -0
  242. package/lib/component/hooks/use_view_spectra.js +13 -0
  243. package/lib/component/hooks/use_view_spectra.js.map +1 -0
  244. package/lib/component/hooks/use_visible_spectra_1d.d.ts.map +1 -1
  245. package/lib/component/hooks/use_visible_spectra_1d.js +4 -2
  246. package/lib/component/hooks/use_visible_spectra_1d.js.map +1 -1
  247. package/lib/component/main/InnerNMRium.d.ts.map +1 -1
  248. package/lib/component/main/InnerNMRium.js +6 -5
  249. package/lib/component/main/InnerNMRium.js.map +1 -1
  250. package/lib/component/main/NMRium.d.ts +2 -2
  251. package/lib/component/main/NMRium.d.ts.map +1 -1
  252. package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
  253. package/lib/component/main/NMRiumStateProvider.js +2 -1
  254. package/lib/component/main/NMRiumStateProvider.js.map +1 -1
  255. package/lib/component/main/types.d.ts +1 -1
  256. package/lib/component/main/types.d.ts.map +1 -1
  257. package/lib/component/modal/EditPeakShapeModal.d.ts.map +1 -1
  258. package/lib/component/modal/EditPeakShapeModal.js +102 -60
  259. package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
  260. package/lib/component/modal/LoadJCAMPModal.d.ts.map +1 -1
  261. package/lib/component/modal/LoadJCAMPModal.js +22 -21
  262. package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
  263. package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
  264. package/lib/component/modal/PublicationStringModal.js +3 -3
  265. package/lib/component/modal/PublicationStringModal.js.map +1 -1
  266. package/lib/component/modal/aboutUs/AboutUsModal.js +1 -1
  267. package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
  268. package/lib/component/modal/editRange/EditRangeModal.js +1 -1
  269. package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts +1 -3
  270. package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts.map +1 -1
  271. package/lib/component/modal/editRange/forms/components/DeltaInput.js +12 -20
  272. package/lib/component/modal/editRange/forms/components/DeltaInput.js.map +1 -1
  273. package/lib/component/modal/editRange/forms/components/DeltaLabel.d.ts +6 -0
  274. package/lib/component/modal/editRange/forms/components/DeltaLabel.d.ts.map +1 -0
  275. package/lib/component/modal/editRange/forms/components/DeltaLabel.js +12 -0
  276. package/lib/component/modal/editRange/forms/components/DeltaLabel.js.map +1 -0
  277. package/lib/component/modal/editRange/forms/components/SignalTab.d.ts.map +1 -1
  278. package/lib/component/modal/editRange/forms/components/SignalTab.js +2 -16
  279. package/lib/component/modal/editRange/forms/components/SignalTab.js.map +1 -1
  280. package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts.map +1 -1
  281. package/lib/component/modal/editRange/forms/components/SignalsContent.js +32 -7
  282. package/lib/component/modal/editRange/forms/components/SignalsContent.js.map +1 -1
  283. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js +1 -1
  284. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
  285. package/lib/component/modal/editRange/forms/validation/EditRangeValidation.d.ts.map +1 -1
  286. package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +18 -3
  287. package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js.map +1 -1
  288. package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
  289. package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +196 -187
  290. package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts.map +1 -1
  291. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js +2 -1
  292. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js.map +1 -1
  293. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +196 -187
  294. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts.map +1 -1
  295. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +196 -187
  296. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -1
  297. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +140 -132
  298. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
  299. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +140 -132
  300. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -1
  301. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +23 -22
  302. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts.map +1 -1
  303. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +140 -132
  304. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -1
  305. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +140 -132
  306. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts.map +1 -1
  307. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +140 -132
  308. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -1
  309. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js +2 -3
  310. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js.map +1 -1
  311. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +140 -132
  312. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -1
  313. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +16 -12
  314. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -1
  315. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +37 -44
  316. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
  317. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +140 -132
  318. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -1
  319. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +2 -3
  320. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js.map +1 -1
  321. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +140 -132
  322. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -1
  323. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +140 -132
  324. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -1
  325. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +140 -132
  326. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -1
  327. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +140 -132
  328. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -1
  329. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +140 -132
  330. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -1
  331. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js +3 -4
  332. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js.map +1 -1
  333. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +140 -132
  334. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts.map +1 -1
  335. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +140 -132
  336. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -1
  337. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +140 -132
  338. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -1
  339. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js +1 -1
  340. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js.map +1 -1
  341. package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts +3 -4
  342. package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts.map +1 -1
  343. package/lib/component/modal/setting/tanstack_general_settings/ui/table.js.map +1 -1
  344. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +28 -28
  345. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +82 -38
  346. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -1
  347. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +80 -28
  348. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -1
  349. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +6 -6
  350. package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts +1 -1
  351. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts +4 -4
  352. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts.map +1 -1
  353. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js +3 -2
  354. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js.map +1 -1
  355. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts +1 -0
  356. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts.map +1 -1
  357. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js +1 -0
  358. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js.map +1 -1
  359. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +56 -55
  360. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -1
  361. package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +1 -1
  362. package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js.map +1 -1
  363. package/lib/component/panels/AutomaticAssignment/useAutoAssignments.d.ts.map +1 -1
  364. package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +25 -9
  365. package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js.map +1 -1
  366. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js +1 -1
  367. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js.map +1 -1
  368. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.d.ts.map +1 -1
  369. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +1 -2
  370. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
  371. package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.d.ts.map +1 -1
  372. package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js +1 -1
  373. package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js.map +1 -1
  374. package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts.map +1 -1
  375. package/lib/component/panels/PeaksPanel/PeaksPreferences.js +15 -3
  376. package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
  377. package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
  378. package/lib/component/panels/PeaksPanel/PeaksTable.js +49 -27
  379. package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
  380. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
  381. package/lib/component/panels/RangesPanel/RangesTableRow.js +3 -0
  382. package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
  383. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -1
  384. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js.map +1 -1
  385. package/lib/component/panels/SpectraPanel/SpectraPanelHeader.d.ts.map +1 -1
  386. package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js +8 -15
  387. package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js.map +1 -1
  388. package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
  389. package/lib/component/panels/SpectraPanel/SpectraTable.js +1 -1
  390. package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
  391. package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.d.ts.map +1 -1
  392. package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.js +6 -3
  393. package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.js.map +1 -1
  394. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts +8 -6
  395. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts.map +1 -1
  396. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +12 -12
  397. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js.map +1 -1
  398. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts +2 -2
  399. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts.map +1 -1
  400. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +14 -13
  401. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js.map +1 -1
  402. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts +1 -1
  403. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts.map +1 -1
  404. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +2 -2
  405. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts.map +1 -1
  406. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +18 -15
  407. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js.map +1 -1
  408. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.d.ts +2 -2
  409. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.d.ts.map +1 -1
  410. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +7 -5
  411. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js.map +1 -1
  412. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts +2 -2
  413. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts.map +1 -1
  414. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +4 -4
  415. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js.map +1 -1
  416. package/lib/component/panels/SummaryPanel/Overview.d.ts +3 -7
  417. package/lib/component/panels/SummaryPanel/Overview.d.ts.map +1 -1
  418. package/lib/component/panels/SummaryPanel/Overview.js +2 -5
  419. package/lib/component/panels/SummaryPanel/Overview.js.map +1 -1
  420. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
  421. package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts +2 -2
  422. package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
  423. package/lib/component/panels/SummaryPanel/SummaryPanel.js +17 -18
  424. package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
  425. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +7 -7
  426. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
  427. package/lib/component/panels/SummaryPanel/utilities/Utilities.js +34 -31
  428. package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
  429. package/lib/component/panels/SummaryPanel/utilities/useInView.d.ts +1 -1
  430. package/lib/component/panels/SummaryPanel/utilities/useInView.d.ts.map +1 -1
  431. package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
  432. package/lib/component/panels/databasePanel/DatabasePanel.js +122 -101
  433. package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
  434. package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts +3 -0
  435. package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts.map +1 -1
  436. package/lib/component/panels/databasePanel/DatabaseSearchOptions.js +14 -16
  437. package/lib/component/panels/databasePanel/DatabaseSearchOptions.js.map +1 -1
  438. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.d.ts.map +1 -1
  439. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js +3 -3
  440. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js.map +1 -1
  441. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
  442. package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.d.ts.map +1 -1
  443. package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.js +2 -2
  444. package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.js.map +1 -1
  445. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +10 -26
  446. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
  447. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js +3 -4
  448. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js.map +1 -1
  449. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts +4 -19
  450. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
  451. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +4 -7
  452. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
  453. package/lib/component/panels/filtersPanel/processings/operator_edit_banner.d.ts +11 -0
  454. package/lib/component/panels/filtersPanel/processings/operator_edit_banner.d.ts.map +1 -0
  455. package/lib/component/panels/filtersPanel/processings/operator_edit_banner.js +34 -0
  456. package/lib/component/panels/filtersPanel/processings/operator_edit_banner.js.map +1 -0
  457. package/lib/component/panels/filtersPanel/processings/processing_item.d.ts +16 -0
  458. package/lib/component/panels/filtersPanel/processings/processing_item.d.ts.map +1 -0
  459. package/lib/component/panels/filtersPanel/processings/processing_item.js +88 -0
  460. package/lib/component/panels/filtersPanel/processings/processing_item.js.map +1 -0
  461. package/lib/component/panels/filtersPanel/processings/processing_item_extra.d.ts +12 -0
  462. package/lib/component/panels/filtersPanel/processings/processing_item_extra.d.ts.map +1 -0
  463. package/lib/component/panels/filtersPanel/processings/processing_item_extra.js +17 -0
  464. package/lib/component/panels/filtersPanel/processings/processing_item_extra.js.map +1 -0
  465. package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts +11 -0
  466. package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts.map +1 -0
  467. package/lib/component/panels/filtersPanel/processings/use_live_edit.js +31 -0
  468. package/lib/component/panels/filtersPanel/processings/use_live_edit.js.map +1 -0
  469. package/lib/component/panels/filtersPanel/processings/use_live_operation.d.ts +3 -0
  470. package/lib/component/panels/filtersPanel/processings/use_live_operation.d.ts.map +1 -0
  471. package/lib/component/panels/filtersPanel/processings/use_live_operation.js +15 -0
  472. package/lib/component/panels/filtersPanel/processings/use_live_operation.js.map +1 -0
  473. package/lib/component/panels/filtersPanel/processings_sections_panel.d.ts.map +1 -1
  474. package/lib/component/panels/filtersPanel/processings_sections_panel.js +35 -104
  475. package/lib/component/panels/filtersPanel/processings_sections_panel.js.map +1 -1
  476. package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.d.ts +3 -3
  477. package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.d.ts.map +1 -1
  478. package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js +69 -56
  479. package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js.map +1 -1
  480. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js +1 -1
  481. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js.map +1 -1
  482. package/lib/component/reducer/Reducer.d.ts +18 -2
  483. package/lib/component/reducer/Reducer.d.ts.map +1 -1
  484. package/lib/component/reducer/Reducer.js +26 -7
  485. package/lib/component/reducer/Reducer.js.map +1 -1
  486. package/lib/component/reducer/actions/AssignmentsActions.d.ts.map +1 -1
  487. package/lib/component/reducer/actions/AssignmentsActions.js +1 -2
  488. package/lib/component/reducer/actions/AssignmentsActions.js.map +1 -1
  489. package/lib/component/reducer/actions/CorrelationsActions.d.ts +4 -4
  490. package/lib/component/reducer/actions/CorrelationsActions.d.ts.map +1 -1
  491. package/lib/component/reducer/actions/CorrelationsActions.js +10 -11
  492. package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
  493. package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
  494. package/lib/component/reducer/actions/DatabaseActions.js +25 -9
  495. package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
  496. package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
  497. package/lib/component/reducer/actions/DomainActions.js +25 -15
  498. package/lib/component/reducer/actions/DomainActions.js.map +1 -1
  499. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  500. package/lib/component/reducer/actions/FiltersActions.js +36 -59
  501. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  502. package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
  503. package/lib/component/reducer/actions/InsetActions.js +1 -1
  504. package/lib/component/reducer/actions/InsetActions.js.map +1 -1
  505. package/lib/component/reducer/actions/IntegralsActions.d.ts.map +1 -1
  506. package/lib/component/reducer/actions/IntegralsActions.js +2 -1
  507. package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
  508. package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
  509. package/lib/component/reducer/actions/LoadAction.js +3 -3
  510. package/lib/component/reducer/actions/LoadAction.js.map +1 -1
  511. package/lib/component/reducer/actions/MoleculeActions.d.ts +2 -6
  512. package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
  513. package/lib/component/reducer/actions/MoleculeActions.js +1 -2
  514. package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
  515. package/lib/component/reducer/actions/PeaksActions.d.ts +5 -2
  516. package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
  517. package/lib/component/reducer/actions/PeaksActions.js +18 -3
  518. package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
  519. package/lib/component/reducer/actions/PreferencesActions.d.ts.map +1 -1
  520. package/lib/component/reducer/actions/PreferencesActions.js +5 -3
  521. package/lib/component/reducer/actions/PreferencesActions.js.map +1 -1
  522. package/lib/component/reducer/actions/RangesActions.d.ts +12 -3
  523. package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
  524. package/lib/component/reducer/actions/RangesActions.js +45 -13
  525. package/lib/component/reducer/actions/RangesActions.js.map +1 -1
  526. package/lib/component/reducer/actions/SpectraActions.d.ts +2 -8
  527. package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
  528. package/lib/component/reducer/actions/SpectraActions.js +6 -11
  529. package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
  530. package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
  531. package/lib/component/reducer/actions/ToolsActions.js +3 -8
  532. package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
  533. package/lib/component/reducer/actions/ZonesActions.d.ts +9 -2
  534. package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
  535. package/lib/component/reducer/actions/ZonesActions.js +27 -12
  536. package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
  537. package/lib/component/reducer/actions/processings_actions.d.ts +30 -0
  538. package/lib/component/reducer/actions/processings_actions.d.ts.map +1 -0
  539. package/lib/component/reducer/actions/processings_actions.js +50 -0
  540. package/lib/component/reducer/actions/processings_actions.js.map +1 -0
  541. package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +1 -0
  542. package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
  543. package/lib/component/reducer/helper/ZoomHistoryManager.js +10 -0
  544. package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
  545. package/lib/component/reducer/preferences/actions/initPreferences.d.ts.map +1 -1
  546. package/lib/component/reducer/preferences/actions/initPreferences.js +4 -1
  547. package/lib/component/reducer/preferences/actions/initPreferences.js.map +1 -1
  548. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
  549. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +2 -0
  550. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
  551. package/lib/component/reducer/preferences/preferencesReducer.d.ts +2 -2
  552. package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
  553. package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
  554. package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +2 -4
  555. package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts.map +1 -1
  556. package/lib/component/reducer/preferences/utilities/mapWorkspaces.js +2 -9
  557. package/lib/component/reducer/preferences/utilities/mapWorkspaces.js.map +1 -1
  558. package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
  559. package/lib/component/toolbar/ToolTypes.js +15 -0
  560. package/lib/component/toolbar/ToolTypes.js.map +1 -1
  561. package/lib/component/toolbar/nmr_toolbar.d.ts.map +1 -1
  562. package/lib/component/toolbar/nmr_toolbar.js +49 -22
  563. package/lib/component/toolbar/nmr_toolbar.js.map +1 -1
  564. package/lib/component/utility/core_slots/core_operator_chart_svg.d.ts +8 -0
  565. package/lib/component/utility/core_slots/core_operator_chart_svg.d.ts.map +1 -0
  566. package/lib/component/utility/core_slots/core_operator_chart_svg.js +23 -0
  567. package/lib/component/utility/core_slots/core_operator_chart_svg.js.map +1 -0
  568. package/lib/component/utility/core_slots/core_operator_expanded.d.ts +10 -0
  569. package/lib/component/utility/core_slots/core_operator_expanded.d.ts.map +1 -0
  570. package/lib/component/utility/{CoreSlot.js → core_slots/core_operator_expanded.js} +2 -21
  571. package/lib/component/utility/core_slots/core_operator_expanded.js.map +1 -0
  572. package/lib/component/utility/core_slots/core_operator_name.d.ts +9 -0
  573. package/lib/component/utility/core_slots/core_operator_name.d.ts.map +1 -0
  574. package/lib/component/utility/core_slots/core_operator_name.js +10 -0
  575. package/lib/component/utility/core_slots/core_operator_name.js.map +1 -0
  576. package/lib/component/utility/core_slots/core_operator_panel_tool.d.ts +3 -0
  577. package/lib/component/utility/core_slots/core_operator_panel_tool.d.ts.map +1 -0
  578. package/lib/component/utility/core_slots/core_operator_panel_tool.js +17 -0
  579. package/lib/component/utility/core_slots/core_operator_panel_tool.js.map +1 -0
  580. package/lib/component/utility/core_slots/core_operator_tool.commons.d.ts +11 -0
  581. package/lib/component/utility/core_slots/core_operator_tool.commons.d.ts.map +1 -0
  582. package/lib/component/utility/core_slots/core_operator_tool.commons.js +30 -0
  583. package/lib/component/utility/core_slots/core_operator_tool.commons.js.map +1 -0
  584. package/lib/component/utility/core_slots/core_operator_tool.d.ts +3 -0
  585. package/lib/component/utility/core_slots/core_operator_tool.d.ts.map +1 -0
  586. package/lib/component/utility/core_slots/core_operator_tool.js +17 -0
  587. package/lib/component/utility/core_slots/core_operator_tool.js.map +1 -0
  588. package/lib/component/utility/core_slots/core_operator_topbar.d.ts +8 -0
  589. package/lib/component/utility/core_slots/core_operator_topbar.d.ts.map +1 -0
  590. package/lib/component/utility/core_slots/core_operator_topbar.js +36 -0
  591. package/lib/component/utility/core_slots/core_operator_topbar.js.map +1 -0
  592. package/lib/component/utility/core_slots/core_slot.d.ts +17 -0
  593. package/lib/component/utility/core_slots/core_slot.d.ts.map +1 -0
  594. package/lib/component/utility/core_slots/core_slot.js +14 -0
  595. package/lib/component/utility/core_slots/core_slot.js.map +1 -0
  596. package/lib/component/utility/export.d.ts +5 -0
  597. package/lib/component/utility/export.d.ts.map +1 -1
  598. package/lib/component/utility/export.js +22 -0
  599. package/lib/component/utility/export.js.map +1 -1
  600. package/lib/component/utility/formatNumber.d.ts +2 -0
  601. package/lib/component/utility/formatNumber.d.ts.map +1 -1
  602. package/lib/component/utility/formatNumber.js +9 -2
  603. package/lib/component/utility/formatNumber.js.map +1 -1
  604. package/lib/component/utility/toolbar_item_error.d.ts +3 -0
  605. package/lib/component/utility/toolbar_item_error.d.ts.map +1 -0
  606. package/lib/component/utility/toolbar_item_error.js +14 -0
  607. package/lib/component/utility/toolbar_item_error.js.map +1 -0
  608. package/lib/component/workspaces/assignment.d.ts.map +1 -1
  609. package/lib/component/workspaces/assignment.js +1 -0
  610. package/lib/component/workspaces/assignment.js.map +1 -1
  611. package/lib/component/workspaces/basic.d.ts.map +1 -1
  612. package/lib/component/workspaces/basic.js +1 -0
  613. package/lib/component/workspaces/basic.js.map +1 -1
  614. package/lib/component/workspaces/exercise.d.ts.map +1 -1
  615. package/lib/component/workspaces/exercise.js +1 -0
  616. package/lib/component/workspaces/exercise.js.map +1 -1
  617. package/lib/component/workspaces/prediction.d.ts.map +1 -1
  618. package/lib/component/workspaces/prediction.js +1 -0
  619. package/lib/component/workspaces/prediction.js.map +1 -1
  620. package/lib/component/workspaces/process1D.d.ts.map +1 -1
  621. package/lib/component/workspaces/process1D.js +1 -0
  622. package/lib/component/workspaces/process1D.js.map +1 -1
  623. package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
  624. package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
  625. package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
  626. package/lib/data/SpectraManager.d.ts.map +1 -1
  627. package/lib/data/SpectraManager.js +2 -3
  628. package/lib/data/SpectraManager.js.map +1 -1
  629. package/lib/data/data1d/Spectrum1D/SumManager.d.ts.map +1 -1
  630. package/lib/data/data1d/Spectrum1D/SumManager.js +2 -1
  631. package/lib/data/data1d/Spectrum1D/SumManager.js.map +1 -1
  632. package/lib/data/data1d/Spectrum1D/index.d.ts +0 -1
  633. package/lib/data/data1d/Spectrum1D/index.d.ts.map +1 -1
  634. package/lib/data/data1d/Spectrum1D/index.js +0 -1
  635. package/lib/data/data1d/Spectrum1D/index.js.map +1 -1
  636. package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
  637. package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +5 -2
  638. package/lib/data/data1d/Spectrum1D/initiateDatum1D.js.map +1 -1
  639. package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.d.ts +7 -0
  640. package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.d.ts.map +1 -0
  641. package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.js +14 -0
  642. package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.js.map +1 -0
  643. package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
  644. package/lib/data/data1d/multipleSpectraAnalysis.js +2 -2
  645. package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
  646. package/lib/data/data2d/Spectrum2D/contours.d.ts +1 -2
  647. package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
  648. package/lib/data/data2d/Spectrum2D/contours.js +25 -12
  649. package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
  650. package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.d.ts +13 -0
  651. package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.d.ts.map +1 -0
  652. package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js +40 -0
  653. package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js.map +1 -0
  654. package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.d.ts +27 -0
  655. package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.d.ts.map +1 -0
  656. package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js +230 -0
  657. package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js.map +1 -0
  658. package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.d.ts +227 -0
  659. package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.d.ts.map +1 -0
  660. package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js +67 -0
  661. package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js.map +1 -0
  662. package/lib/data/data2d/Spectrum2D/findBestMinContour/math.d.ts +4 -0
  663. package/lib/data/data2d/Spectrum2D/findBestMinContour/math.d.ts.map +1 -0
  664. package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js +42 -0
  665. package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js.map +1 -0
  666. package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +1 -1
  667. package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts.map +1 -1
  668. package/lib/data/data2d/Spectrum2D/getSlice.d.ts.map +1 -1
  669. package/lib/data/data2d/Spectrum2D/getSlice.js +3 -3
  670. package/lib/data/data2d/Spectrum2D/getSlice.js.map +1 -1
  671. package/lib/data/data2d/Spectrum2D/index.d.ts +0 -1
  672. package/lib/data/data2d/Spectrum2D/index.d.ts.map +1 -1
  673. package/lib/data/data2d/Spectrum2D/index.js +0 -1
  674. package/lib/data/data2d/Spectrum2D/index.js.map +1 -1
  675. package/lib/data/get_view_spectra.d.ts +11 -0
  676. package/lib/data/get_view_spectra.d.ts.map +1 -0
  677. package/lib/data/get_view_spectra.js +10 -0
  678. package/lib/data/get_view_spectra.js.map +1 -0
  679. package/lib/data/utilities/FindUtilities.d.ts.map +1 -1
  680. package/lib/data/utilities/FindUtilities.js +1 -2
  681. package/lib/data/utilities/FindUtilities.js.map +1 -1
  682. package/lib/data/utilities/RangeUtilities.d.ts +1 -1
  683. package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
  684. package/lib/data/utilities/RangeUtilities.js +3 -1
  685. package/lib/data/utilities/RangeUtilities.js.map +1 -1
  686. package/lib/data/utilities/calculateSanPlot.d.ts +3 -1
  687. package/lib/data/utilities/calculateSanPlot.d.ts.map +1 -1
  688. package/lib/data/utilities/calculateSanPlot.js +2 -2
  689. package/lib/data/utilities/calculateSanPlot.js.map +1 -1
  690. package/lib/data/utilities/getPeakAbsoluteArea.d.ts +3 -0
  691. package/lib/data/utilities/getPeakAbsoluteArea.d.ts.map +1 -0
  692. package/lib/data/utilities/getPeakAbsoluteArea.js +6 -0
  693. package/lib/data/utilities/getPeakAbsoluteArea.js.map +1 -0
  694. package/lib/versionInfo.js +1 -1
  695. package/package.json +39 -42
  696. package/src/component/1d/ApodizationLine.tsx +2 -2
  697. package/src/component/1d/BrushTracker1D.tsx +170 -185
  698. package/src/component/1d/FloatPublicationString.tsx +6 -6
  699. package/src/component/1d/Line.tsx +2 -2
  700. package/src/component/1d/PredictionErrorsNotations.tsx +1 -1
  701. package/src/component/1d/SVGContent1D.tsx +6 -0
  702. package/src/component/1d/SimilarityTree.tsx +2 -2
  703. package/src/component/1d/baseline/BaselinePreview.tsx +45 -15
  704. package/src/component/1d/baseline/getMedianY.ts +23 -5
  705. package/src/component/1d/database/DatabaseSpectrum.tsx +2 -2
  706. package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +2 -2
  707. package/src/component/1d/inset/DraggableInset.tsx +1 -1
  708. package/src/component/1d/matrix/Boxplot.tsx +5 -5
  709. package/src/component/1d/matrix/Stocsy.tsx +2 -2
  710. package/src/component/1d/matrix/useMatrix.ts +2 -2
  711. package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +4 -3
  712. package/src/component/1d/peaks/PeakAnnotations.tsx +1 -1
  713. package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +17 -3
  714. package/src/component/1d/peaks/usePeakShapesPath.ts +2 -2
  715. package/src/component/1d/plugin_svg_chart.tsx +60 -0
  716. package/src/component/1d/ranges/AssignmentLabel.tsx +1 -0
  717. package/src/component/1d/ranges/FloatingRanges.tsx +3 -4
  718. package/src/component/1d/ranges/Range.tsx +3 -5
  719. package/src/component/1d/ranges/Ranges.tsx +1 -1
  720. package/src/component/1d-2d/FieldEdition.tsx +56 -63
  721. package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +1 -1
  722. package/src/component/1d-2d/components/RangeIndicator.tsx +8 -9
  723. package/src/component/1d-2d/components/Signals1D.tsx +12 -8
  724. package/src/component/1d-2d/components/axis_unit_picker.tsx +1 -1
  725. package/src/component/1d-2d/tools/BrushXY.tsx +45 -28
  726. package/src/component/1d-2d/tools/CrossLinePointer.tsx +34 -22
  727. package/src/component/1d-2d/tools/DistanceLine.tsx +253 -0
  728. package/src/component/2d/1d-tracer/HorizontalSliceChart.tsx +2 -2
  729. package/src/component/2d/1d-tracer/Left1DChart.tsx +5 -5
  730. package/src/component/2d/1d-tracer/Top1DChart.tsx +6 -6
  731. package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +2 -2
  732. package/src/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.tsx +3 -3
  733. package/src/component/2d/BrushTracker2D.tsx +25 -13
  734. package/src/component/2d/FooterBanner.tsx +2 -5
  735. package/src/component/2d/IndirectAxis2D.tsx +1 -1
  736. package/src/component/2d/SignalDeltaLine.tsx +1 -1
  737. package/src/component/2d/Viewer2D.tsx +2 -0
  738. package/src/component/2d/fid/FidCanvas.tsx +2 -2
  739. package/src/component/2d/fid/FidContainer.tsx +4 -4
  740. package/src/component/2d/ft/Contours.tsx +95 -26
  741. package/src/component/2d/ft/FTContainer.tsx +3 -4
  742. package/src/component/2d/useTracesSpectra.ts +5 -3
  743. package/src/component/2d/utilities/extractSpectrumSignals.ts +34 -26
  744. package/src/component/2d/utilities/scale.ts +1 -1
  745. package/src/component/2d/zones/SignalsGuideLines.tsx +18 -25
  746. package/src/component/AnchorSVG.tsx +7 -7
  747. package/src/component/EventsTrackers/BrushTracker.tsx +1 -1
  748. package/src/component/EventsTrackers/KeysListenerTracker.tsx +6 -1
  749. package/src/component/assignment/utilities/getAssignments.ts +1 -1
  750. package/src/component/context/DispatchContext.tsx +3 -1
  751. package/src/component/context/FilterSyncOptionsContext.tsx +15 -15
  752. package/src/component/context/KeyModifierContext.tsx +36 -45
  753. package/src/component/context/ScaleContext.tsx +1 -1
  754. package/src/component/context/processings_mutations_context.api.ts +371 -0
  755. package/src/component/context/processings_mutations_context.tsx +28 -0
  756. package/src/component/elements/D3Axis.tsx +49 -67
  757. package/src/component/elements/NumberInput2Controller.tsx +20 -1
  758. package/src/component/elements/Sections.tsx +1 -1
  759. package/src/component/elements/TableHeaderLabel.tsx +50 -0
  760. package/src/component/elements/export/ExportContent.tsx +3 -2
  761. package/src/component/elements/export/ExportOptionsModal.tsx +32 -1
  762. package/src/component/elements/export/useExportConfigurer.tsx +6 -0
  763. package/src/component/elements/print/PrintContent.tsx +132 -145
  764. package/src/component/elements/utilities/transferStyles.ts +32 -0
  765. package/src/component/header/AutoPeakPickingOptionPanel.tsx +10 -4
  766. package/src/component/header/Header.tsx +99 -8
  767. package/src/component/header/RangesPickingOptionPanel.tsx +2 -2
  768. package/src/component/header/SimpleBaseLineCorrectionOptionsPanel.tsx +1 -3
  769. package/src/component/header/base/BaseSimpleZeroFillingOptionsPanel.tsx +7 -4
  770. package/src/component/highlight/index.tsx +11 -37
  771. package/src/component/hooks/use2DReducer.tsx +2 -2
  772. package/src/component/hooks/useCheckPointsNumberInWindowArea.ts +4 -2
  773. package/src/component/hooks/useCheckToolsVisibility.ts +11 -1
  774. package/src/component/hooks/useIntegralPath.ts +2 -2
  775. package/src/component/hooks/useSpectraBottomMargin.ts +1 -1
  776. package/src/component/hooks/useSpectrum.ts +12 -1
  777. package/src/component/hooks/useTextMetrics.ts +10 -9
  778. package/src/component/hooks/use_axis_unit.ts +2 -8
  779. package/src/component/hooks/use_publication_strings.ts +2 -4
  780. package/src/component/hooks/use_view_spectra.ts +16 -0
  781. package/src/component/hooks/use_visible_spectra_1d.ts +5 -2
  782. package/src/component/main/InnerNMRium.tsx +50 -47
  783. package/src/component/main/NMRium.tsx +2 -2
  784. package/src/component/main/NMRiumStateProvider.tsx +4 -1
  785. package/src/component/main/types.ts +1 -1
  786. package/src/component/modal/EditPeakShapeModal.tsx +179 -118
  787. package/src/component/modal/LoadJCAMPModal.tsx +58 -57
  788. package/src/component/modal/PublicationStringModal.tsx +2 -3
  789. package/src/component/modal/aboutUs/AboutUsModal.tsx +1 -1
  790. package/src/component/modal/editRange/EditRangeModal.tsx +1 -1
  791. package/src/component/modal/editRange/forms/components/DeltaInput.tsx +17 -31
  792. package/src/component/modal/editRange/forms/components/DeltaLabel.tsx +19 -0
  793. package/src/component/modal/editRange/forms/components/SignalTab.tsx +5 -21
  794. package/src/component/modal/editRange/forms/components/SignalsContent.tsx +40 -6
  795. package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +1 -1
  796. package/src/component/modal/editRange/forms/validation/EditRangeValidation.ts +75 -52
  797. package/src/component/modal/metaImportation/MetaImportationModal.tsx +3 -3
  798. package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +2 -1
  799. package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +2 -3
  800. package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +57 -62
  801. package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +2 -3
  802. package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +8 -4
  803. package/src/component/modal/setting/tanstack_general_settings/tabs/tools_tab.tsx +3 -0
  804. package/src/component/modal/setting/tanstack_general_settings/ui/table.tsx +3 -4
  805. package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +101 -28
  806. package/src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts +3 -2
  807. package/src/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.ts +1 -0
  808. package/src/component/panels/AutomaticAssignment/AutomaticAssignment.tsx +1 -1
  809. package/src/component/panels/AutomaticAssignment/useAutoAssignments.ts +29 -12
  810. package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.tsx +1 -1
  811. package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +1 -2
  812. package/src/component/panels/MoleculesPanel/utilities/getAssignIds.ts +1 -2
  813. package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +15 -3
  814. package/src/component/panels/PeaksPanel/PeaksTable.tsx +92 -29
  815. package/src/component/panels/RangesPanel/RangesTableRow.tsx +4 -0
  816. package/src/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.tsx +1 -1
  817. package/src/component/panels/SpectraPanel/SpectraPanelHeader.tsx +10 -18
  818. package/src/component/panels/SpectraPanel/SpectraTable.tsx +1 -1
  819. package/src/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.tsx +6 -3
  820. package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.tsx +45 -44
  821. package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.tsx +23 -21
  822. package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.tsx +1 -1
  823. package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.tsx +33 -28
  824. package/src/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.tsx +14 -11
  825. package/src/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.tsx +12 -10
  826. package/src/component/panels/SummaryPanel/Overview.tsx +4 -12
  827. package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +2 -2
  828. package/src/component/panels/SummaryPanel/SummaryPanel.tsx +32 -33
  829. package/src/component/panels/SummaryPanel/utilities/Utilities.ts +60 -58
  830. package/src/component/panels/SummaryPanel/utilities/useInView.ts +1 -1
  831. package/src/component/panels/databasePanel/DatabasePanel.tsx +173 -121
  832. package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +41 -16
  833. package/src/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.tsx +3 -8
  834. package/src/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.tsx +2 -4
  835. package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +6 -8
  836. package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +9 -13
  837. package/src/component/panels/filtersPanel/processings/operator_edit_banner.tsx +73 -0
  838. package/src/component/panels/filtersPanel/processings/processing_item.tsx +211 -0
  839. package/src/component/panels/filtersPanel/processings/processing_item_extra.tsx +63 -0
  840. package/src/component/panels/filtersPanel/processings/use_live_edit.ts +47 -0
  841. package/src/component/panels/filtersPanel/processings/use_live_operation.ts +22 -0
  842. package/src/component/panels/filtersPanel/processings_sections_panel.tsx +87 -254
  843. package/src/component/panels/multipleAnalysisPanel/AlignSpectra.tsx +128 -98
  844. package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.tsx +1 -1
  845. package/src/component/reducer/Reducer.ts +50 -9
  846. package/src/component/reducer/actions/AssignmentsActions.ts +1 -2
  847. package/src/component/reducer/actions/CorrelationsActions.ts +21 -19
  848. package/src/component/reducer/actions/DatabaseActions.ts +29 -15
  849. package/src/component/reducer/actions/DomainActions.ts +35 -24
  850. package/src/component/reducer/actions/FiltersActions.ts +56 -77
  851. package/src/component/reducer/actions/InsetActions.ts +1 -1
  852. package/src/component/reducer/actions/IntegralsActions.ts +1 -1
  853. package/src/component/reducer/actions/LoadAction.ts +8 -5
  854. package/src/component/reducer/actions/MoleculeActions.ts +1 -2
  855. package/src/component/reducer/actions/PeaksActions.ts +29 -2
  856. package/src/component/reducer/actions/PreferencesActions.ts +7 -4
  857. package/src/component/reducer/actions/RangesActions.ts +72 -17
  858. package/src/component/reducer/actions/SpectraActions.ts +8 -25
  859. package/src/component/reducer/actions/ToolsActions.ts +4 -10
  860. package/src/component/reducer/actions/ZonesActions.ts +44 -14
  861. package/src/component/reducer/actions/processings_actions.ts +130 -0
  862. package/src/component/reducer/helper/ZoomHistoryManager.ts +17 -0
  863. package/src/component/reducer/preferences/actions/initPreferences.ts +4 -1
  864. package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +2 -0
  865. package/src/component/reducer/preferences/preferencesReducer.ts +3 -3
  866. package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +9 -21
  867. package/src/component/toolbar/ToolTypes.ts +15 -0
  868. package/src/component/toolbar/nmr_toolbar.tsx +44 -4
  869. package/src/component/utility/core_slots/core_operator_chart_svg.tsx +61 -0
  870. package/src/component/utility/{CoreSlot.tsx → core_slots/core_operator_expanded.tsx} +5 -57
  871. package/src/component/utility/core_slots/core_operator_name.tsx +21 -0
  872. package/src/component/utility/core_slots/core_operator_panel_tool.tsx +23 -0
  873. package/src/component/utility/core_slots/core_operator_tool.commons.ts +63 -0
  874. package/src/component/utility/core_slots/core_operator_tool.tsx +23 -0
  875. package/src/component/utility/core_slots/core_operator_topbar.tsx +65 -0
  876. package/src/component/utility/core_slots/core_slot.tsx +39 -0
  877. package/src/component/utility/export.ts +34 -0
  878. package/src/component/utility/formatNumber.ts +24 -2
  879. package/src/component/utility/toolbar_item_error.tsx +29 -0
  880. package/src/component/workspaces/assignment.ts +1 -0
  881. package/src/component/workspaces/basic.ts +1 -0
  882. package/src/component/workspaces/exercise.ts +1 -0
  883. package/src/component/workspaces/prediction.ts +1 -0
  884. package/src/component/workspaces/process1D.ts +1 -0
  885. package/src/component/workspaces/workspaceDefaultProperties.ts +1 -0
  886. package/src/data/SpectraManager.ts +2 -3
  887. package/src/data/data1d/Spectrum1D/SumManager.ts +1 -1
  888. package/src/data/data1d/Spectrum1D/index.ts +0 -1
  889. package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +4 -2
  890. package/src/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.ts +26 -0
  891. package/src/data/data1d/multipleSpectraAnalysis.ts +2 -1
  892. package/src/data/data2d/Spectrum2D/contours.ts +42 -18
  893. package/src/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.ts +67 -0
  894. package/src/data/data2d/Spectrum2D/findBestMinContour/evaluation.ts +432 -0
  895. package/src/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.ts +431 -0
  896. package/src/data/data2d/Spectrum2D/findBestMinContour/math.ts +59 -0
  897. package/src/data/data2d/Spectrum2D/getSlice.ts +3 -4
  898. package/src/data/data2d/Spectrum2D/index.ts +0 -1
  899. package/src/data/get_view_spectra.ts +21 -0
  900. package/src/data/utilities/FindUtilities.ts +1 -3
  901. package/src/data/utilities/RangeUtilities.ts +5 -2
  902. package/src/data/utilities/calculateSanPlot.ts +2 -1
  903. package/src/data/utilities/getPeakAbsoluteArea.ts +7 -0
  904. package/src/versionInfo.ts +1 -1
  905. package/lib/component/elements/export/utilities/transferDocumentStyles.d.ts +0 -2
  906. package/lib/component/elements/export/utilities/transferDocumentStyles.d.ts.map +0 -1
  907. package/lib/component/elements/export/utilities/transferDocumentStyles.js +0 -21
  908. package/lib/component/elements/export/utilities/transferDocumentStyles.js.map +0 -1
  909. package/lib/component/panels/hooks/use_processings_mutation.d.ts +0 -10
  910. package/lib/component/panels/hooks/use_processings_mutation.d.ts.map +0 -1
  911. package/lib/component/panels/hooks/use_processings_mutation.js +0 -130
  912. package/lib/component/panels/hooks/use_processings_mutation.js.map +0 -1
  913. package/lib/component/utility/CoreSlot.d.ts +0 -27
  914. package/lib/component/utility/CoreSlot.d.ts.map +0 -1
  915. package/lib/component/utility/CoreSlot.js.map +0 -1
  916. package/lib/component/utility/PathBuilder.d.ts +0 -10
  917. package/lib/component/utility/PathBuilder.d.ts.map +0 -1
  918. package/lib/component/utility/PathBuilder.js +0 -38
  919. package/lib/component/utility/PathBuilder.js.map +0 -1
  920. package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts +0 -5
  921. package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts.map +0 -1
  922. package/lib/data/data1d/Spectrum1D/isSpectrum1D.js +0 -10
  923. package/lib/data/data1d/Spectrum1D/isSpectrum1D.js.map +0 -1
  924. package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +0 -14
  925. package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts.map +0 -1
  926. package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +0 -22
  927. package/lib/data/data2d/Spectrum2D/isSpectrum2D.js.map +0 -1
  928. package/src/component/elements/export/utilities/transferDocumentStyles.ts +0 -21
  929. package/src/component/panels/hooks/use_processings_mutation.ts +0 -171
  930. package/src/component/utility/PathBuilder.ts +0 -41
  931. package/src/data/data1d/Spectrum1D/isSpectrum1D.ts +0 -19
  932. package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +0 -36
@@ -0,0 +1,431 @@
1
+ import {
2
+ createThresholdIndex,
3
+ evaluateFallbackThreshold,
4
+ evaluateThreshold,
5
+ findRidgeFreeThresholdTopDown,
6
+ generateCandidateSigmaLevels,
7
+ maxPoolAbsolute,
8
+ } from './evaluation.js';
9
+ import { validateInput } from './math.js';
10
+
11
+ interface AutoContourDiagnostics {
12
+ recommended: ThresholdDiagnostics;
13
+ ridgeFree: ThresholdDiagnostics;
14
+ }
15
+
16
+ interface ThresholdDiagnostics {
17
+ sigmaMultiplier: number;
18
+ minLevel: number;
19
+
20
+ occupancy: number;
21
+ fdr: number;
22
+ persistence: number;
23
+
24
+ verticalRidgeScore: number;
25
+ horizontalRidgeScore: number;
26
+ }
27
+
28
+ export type AutoContourResult<TDiagnostics extends boolean = boolean> = {
29
+ /**
30
+ * Recommended minimum contour level.
31
+ */
32
+ minLevel: number;
33
+
34
+ /**
35
+ * Minimum contour level at which detected directional
36
+ * ridge structures (e.g. t1-noise) are no longer present.
37
+ */
38
+ minLevelWithoutT1Noise: number;
39
+
40
+ /**
41
+ * True when directional ridge structures were detected
42
+ * at the recommended minimum.
43
+ */
44
+ hasT1Noise: boolean;
45
+
46
+ /**
47
+ * Same values expressed in multiples of the noise level.
48
+ */
49
+ sigmaMultiplier: number;
50
+ sigmaMultiplierWithoutT1Noise: number;
51
+ /**
52
+ * Maximum absolute value in the analysis matrix used for contour level selection.
53
+ */
54
+ maxAbsoluteValue: number;
55
+ } & (TDiagnostics extends true
56
+ ? {
57
+ diagnostics: AutoContourDiagnostics;
58
+ }
59
+ : {
60
+ diagnostics?: AutoContourDiagnostics;
61
+ });
62
+
63
+ export interface AutoContourOptions {
64
+ /**
65
+ * Multiplicative ratio between consecutive contour levels.
66
+ *
67
+ * The contour levels are generated as:
68
+ *
69
+ * Lₙ = L₀ × contourRatioⁿ
70
+ *
71
+ * Must be greater than 1.
72
+ *
73
+ * A smaller value produces more closely spaced contour levels,
74
+ * while a larger value produces fewer, more widely spaced levels.
75
+ *
76
+ * @default 1.4
77
+ */
78
+ contourRatio?: number;
79
+
80
+ /**
81
+ * Maximum acceptable false discovery rate (FDR) for the
82
+ * automatically selected minimum contour level.
83
+ *
84
+ * The FDR estimates the fraction of pixels above the selected
85
+ * threshold that could be explained by Gaussian noise, assuming
86
+ * the supplied noiseLevel is accurate.
87
+ *
88
+ * Smaller values produce a cleaner visualization but may suppress
89
+ * weak peaks.
90
+ *
91
+ * @default 0.05
92
+ */
93
+ maxFdr?: number;
94
+
95
+ /**
96
+ * Maximum fraction of the spectrum that may be above the
97
+ * automatically selected minimum contour level.
98
+ *
99
+ * This prevents very low thresholds from producing contours over
100
+ * a large fraction of the spectrum.
101
+ *
102
+ * Expressed as a fraction in the range [0, 1].
103
+ *
104
+ * For example, 0.02 means that at most 2% of pixels may be above
105
+ * the minimum contour threshold.
106
+ *
107
+ * @default 0.02
108
+ */
109
+ maxOccupancy?: number;
110
+
111
+ /**
112
+ * Minimum persistence required for spectral structures across
113
+ * successive exponential contour levels.
114
+ *
115
+ * Persistence measures how much of the active spectral structure
116
+ * remains when moving from one contour level to the next.
117
+ *
118
+ * Higher values favor stable, coherent peaks and reject fragmented
119
+ * noise structures more aggressively.
120
+ *
121
+ * Expressed as a fraction in the range [0, 1].
122
+ *
123
+ * @default 0.35
124
+ */
125
+ minPersistence?: number;
126
+
127
+ /**
128
+ * Maximum acceptable score for vertical ridge-like structures.
129
+ *
130
+ * This is primarily intended to detect structured artifacts such
131
+ * as t1 noise, which often appears as elongated structures along
132
+ * the F1 dimension.
133
+ *
134
+ * Smaller values make the ridge-free threshold more conservative.
135
+ *
136
+ * @default 0.25
137
+ */
138
+ maxVerticalRidgeScore?: number;
139
+
140
+ /**
141
+ * Maximum acceptable score for horizontal ridge-like structures.
142
+ *
143
+ * This can detect horizontal streaks or other structured artifacts
144
+ * extending predominantly along the F2 dimension.
145
+ *
146
+ * Smaller values make the ridge-free threshold more conservative.
147
+ *
148
+ * @default 0.25
149
+ */
150
+ maxHorizontalRidgeScore?: number;
151
+
152
+ /**
153
+ * Fraction of a row or column that must be occupied by active
154
+ * contour pixels for the row or column to be considered
155
+ * ridge-like.
156
+ *
157
+ * For vertical ridge detection, a column is considered suspicious
158
+ * when the fraction of active pixels along F1 is greater than or
159
+ * equal to this value.
160
+ *
161
+ * For horizontal ridge detection, the same criterion is applied
162
+ * along F2.
163
+ *
164
+ * Expressed as a fraction in the range [0, 1].
165
+ *
166
+ * Lower values make ridge detection more sensitive.
167
+ *
168
+ * @default 0.5
169
+ */
170
+ ridgeCoverageThreshold?: number;
171
+
172
+ /**
173
+ * Lowest threshold considered by the automatic contour search,
174
+ * expressed as a multiple of the supplied noise level.
175
+ *
176
+ * For example, minSigma = 2 means that thresholds below 2 ×
177
+ * noiseLevel are never considered.
178
+ *
179
+ * Lower values can preserve weaker peaks but increase the risk
180
+ * of including noise.
181
+ *
182
+ * @default 2
183
+ */
184
+ minSigma?: number;
185
+
186
+ /**
187
+ * Exponent used to determine the spacing between candidate
188
+ * minimum contour levels.
189
+ *
190
+ * Candidate thresholds are generated multiplicatively using:
191
+ *
192
+ * candidateStep = contourRatio ** candidateRatioExponent
193
+ *
194
+ * For example, with contourRatio = 1.4 and exponent = 0.5:
195
+ *
196
+ * candidateStep = sqrt(1.4)
197
+ *
198
+ * A value of 1 evaluates candidates directly on the contour-level
199
+ * hierarchy. Smaller values provide finer threshold resolution
200
+ * while increasing the amount of analysis.
201
+ *
202
+ * @default 0.5
203
+ */
204
+ candidateRatioExponent?: number;
205
+
206
+ /**
207
+ * Number of successive contour levels used when evaluating
208
+ * spectral persistence.
209
+ *
210
+ * A larger value requires spectral structures to remain stable
211
+ * across more contour levels and therefore produces a more
212
+ * conservative threshold.
213
+ *
214
+ * @default 4
215
+ */
216
+ persistenceLevels?: number;
217
+
218
+ /**
219
+ * Maximum dimension used for spatial analysis.
220
+ *
221
+ * Large input matrices are reduced using max pooling before
222
+ * calculating occupancy, persistence, and ridge metrics.
223
+ *
224
+ * The original matrix is not modified.
225
+ *
226
+ * Max pooling is used instead of averaging so that narrow,
227
+ * high-intensity spectral features are preserved during analysis.
228
+ *
229
+ * Larger values improve spatial resolution but increase
230
+ * computational cost and memory usage.
231
+ *
232
+ * @default 384
233
+ */
234
+ maxAnalysisDimension?: number;
235
+ /**
236
+ * Whether diagnostic information should be returned.
237
+ *
238
+ * Diagnostics include the selected thresholds, FDR, occupancy,
239
+ * persistence, vertical and horizontal ridge scores, and the
240
+ * individual criteria used by the automatic threshold selection.
241
+ *
242
+ * Disable this when diagnostics are not needed and the smallest
243
+ * possible result object is preferred.
244
+ *
245
+ * @default true
246
+ */
247
+ diagnostics?: boolean;
248
+ }
249
+
250
+ export function findAutomaticContourLevels(
251
+ matrix: ArrayLike<number>,
252
+ rows: number,
253
+ cols: number,
254
+ noiseLevel: number,
255
+ options: AutoContourOptions & { diagnostics: true },
256
+ ): AutoContourResult<true>;
257
+ export function findAutomaticContourLevels(
258
+ matrix: ArrayLike<number>,
259
+ rows: number,
260
+ cols: number,
261
+ noiseLevel: number,
262
+ options?: AutoContourOptions,
263
+ ): AutoContourResult<true>;
264
+ export function findAutomaticContourLevels(
265
+ matrix: ArrayLike<number>,
266
+ rows: number,
267
+ cols: number,
268
+ noiseLevel: number,
269
+ options: AutoContourOptions & { diagnostics: false },
270
+ ): AutoContourResult<false>;
271
+
272
+ export function findAutomaticContourLevels(
273
+ matrix: ArrayLike<number>,
274
+ rows: number,
275
+ cols: number,
276
+ noiseLevel: number,
277
+ options: AutoContourOptions = {},
278
+ ): AutoContourResult<boolean> {
279
+ validateInput(matrix, rows, cols, noiseLevel);
280
+
281
+ const {
282
+ contourRatio = 1.4,
283
+ maxFdr = 0.05,
284
+ maxOccupancy = 0.02,
285
+ minPersistence = 0.35,
286
+ maxVerticalRidgeScore = 0.25,
287
+ maxHorizontalRidgeScore = 0.25,
288
+ ridgeCoverageThreshold = 0.5,
289
+ minSigma = 5,
290
+ candidateRatioExponent = 0.5,
291
+ persistenceLevels = 4,
292
+ maxAnalysisDimension = 384,
293
+ diagnostics = true,
294
+ } = options;
295
+
296
+ if (contourRatio <= 1) {
297
+ throw new Error('contourRatio must be > 1');
298
+ }
299
+
300
+ const analysis = maxPoolAbsolute(matrix, rows, cols, maxAnalysisDimension);
301
+ const {
302
+ values,
303
+ rows: analysisRows,
304
+ cols: analysisCols,
305
+ maxAbsoluteValue,
306
+ } = analysis;
307
+ const thresholdIndex = createThresholdIndex(values);
308
+
309
+ const maxSigmaInData = maxAbsoluteValue / noiseLevel;
310
+ const candidates = generateCandidateSigmaLevels(
311
+ minSigma,
312
+ maxSigmaInData,
313
+ contourRatio,
314
+ candidateRatioExponent,
315
+ );
316
+
317
+ const evaluations: Array<ReturnType<typeof evaluateThreshold>> = [];
318
+ let recommended: ReturnType<typeof evaluateThreshold> | undefined;
319
+
320
+ for (const sigmaMultiplier of candidates) {
321
+ const evaluation = evaluateThreshold(
322
+ values,
323
+ analysisRows,
324
+ analysisCols,
325
+ noiseLevel,
326
+ sigmaMultiplier,
327
+ contourRatio,
328
+ persistenceLevels,
329
+ ridgeCoverageThreshold,
330
+ false,
331
+ thresholdIndex,
332
+ );
333
+ evaluations.push(evaluation);
334
+
335
+ const passed =
336
+ evaluation.fdr <= maxFdr &&
337
+ evaluation.occupancy <= maxOccupancy &&
338
+ evaluation.persistence >= minPersistence;
339
+
340
+ if (passed) {
341
+ recommended = evaluation;
342
+ break;
343
+ }
344
+ }
345
+
346
+ if (!recommended) {
347
+ recommended = evaluateFallbackThreshold(
348
+ evaluations,
349
+ maxFdr,
350
+ maxOccupancy,
351
+ minPersistence,
352
+ );
353
+ }
354
+
355
+ const ridgeFreeLevel = findRidgeFreeThresholdTopDown(
356
+ values,
357
+ analysisRows,
358
+ analysisCols,
359
+ noiseLevel,
360
+ recommended.sigmaMultiplier * noiseLevel,
361
+ maxAbsoluteValue,
362
+ contourRatio,
363
+ maxVerticalRidgeScore,
364
+ maxHorizontalRidgeScore,
365
+ ridgeCoverageThreshold,
366
+ );
367
+
368
+ const hasT1Noise =
369
+ recommended.verticalRidgeScore > maxVerticalRidgeScore ||
370
+ recommended.horizontalRidgeScore > maxHorizontalRidgeScore;
371
+
372
+ const result: AutoContourResult<boolean> = {
373
+ maxAbsoluteValue,
374
+ minLevel: recommended.sigmaMultiplier * noiseLevel,
375
+ minLevelWithoutT1Noise: ridgeFreeLevel,
376
+ hasT1Noise,
377
+
378
+ sigmaMultiplier: recommended.sigmaMultiplier,
379
+ sigmaMultiplierWithoutT1Noise: ridgeFreeLevel / noiseLevel,
380
+ };
381
+
382
+ if (diagnostics) {
383
+ const recommendedDiagnostics = evaluateThreshold(
384
+ values,
385
+ analysisRows,
386
+ analysisCols,
387
+ noiseLevel,
388
+ recommended.sigmaMultiplier,
389
+ contourRatio,
390
+ persistenceLevels,
391
+ ridgeCoverageThreshold,
392
+ true,
393
+ thresholdIndex,
394
+ );
395
+ const ridgeFree = evaluateThreshold(
396
+ values,
397
+ analysisRows,
398
+ analysisCols,
399
+ noiseLevel,
400
+ ridgeFreeLevel / noiseLevel,
401
+ contourRatio,
402
+ 1,
403
+ ridgeCoverageThreshold,
404
+ true,
405
+ thresholdIndex,
406
+ );
407
+
408
+ result.diagnostics = {
409
+ recommended: {
410
+ sigmaMultiplier: recommendedDiagnostics.sigmaMultiplier,
411
+ minLevel: recommendedDiagnostics.sigmaMultiplier * noiseLevel,
412
+ occupancy: recommendedDiagnostics.occupancy,
413
+ fdr: recommendedDiagnostics.fdr,
414
+ persistence: recommendedDiagnostics.persistence,
415
+ verticalRidgeScore: recommendedDiagnostics.verticalRidgeScore,
416
+ horizontalRidgeScore: recommendedDiagnostics.horizontalRidgeScore,
417
+ },
418
+ ridgeFree: {
419
+ sigmaMultiplier: ridgeFree.sigmaMultiplier,
420
+ minLevel: ridgeFreeLevel,
421
+ occupancy: ridgeFree.occupancy,
422
+ fdr: ridgeFree.fdr,
423
+ persistence: ridgeFree.persistence,
424
+ verticalRidgeScore: ridgeFree.verticalRidgeScore,
425
+ horizontalRidgeScore: ridgeFree.horizontalRidgeScore,
426
+ },
427
+ };
428
+ }
429
+
430
+ return result;
431
+ }
@@ -0,0 +1,59 @@
1
+ export function gaussianTwoSidedTail(k: number): number {
2
+ return erfc(k / Math.SQRT2);
3
+ }
4
+
5
+ /**
6
+ * Approximation of the complementary error function.
7
+ * @TODO it would be replaced by the same implementation from ml-spectra-processing.
8
+ */
9
+ function erfc(x: number): number {
10
+ const sign = x < 0 ? -1 : 1;
11
+ const ax = Math.abs(x);
12
+
13
+ const p = 0.3275911;
14
+
15
+ const a1 = 0.254829592;
16
+ const a2 = -0.284496736;
17
+ const a3 = 1.421413741;
18
+ const a4 = -1.453152027;
19
+ const a5 = 1.061405429;
20
+
21
+ const t = 1 / (1 + p * ax);
22
+
23
+ const polynomial = ((((a5 * t + a4) * t + a3) * t + a2) * t + a1) * t;
24
+
25
+ const result = polynomial * Math.exp(-ax * ax);
26
+
27
+ return sign >= 0 ? result : 2 - result;
28
+ }
29
+
30
+ export function violation(value: number, limit: number): number {
31
+ if (limit === 0) {
32
+ return value === 0 ? 0 : 1;
33
+ }
34
+
35
+ return Math.max(0, value / limit - 1);
36
+ }
37
+
38
+ export function validateInput(
39
+ matrix: ArrayLike<number>,
40
+ rows: number,
41
+ cols: number,
42
+ noiseLevel: number,
43
+ ): void {
44
+ if (!Number.isInteger(rows) || rows <= 0) {
45
+ throw new Error('rows must be a positive integer');
46
+ }
47
+
48
+ if (!Number.isInteger(cols) || cols <= 0) {
49
+ throw new Error('cols must be a positive integer');
50
+ }
51
+
52
+ if (matrix.length !== rows * cols) {
53
+ throw new Error('matrix.length must equal rows * cols');
54
+ }
55
+
56
+ if (!Number.isFinite(noiseLevel) || noiseLevel <= 0) {
57
+ throw new Error('noiseLevel must be a positive finite number');
58
+ }
59
+ }
@@ -1,12 +1,11 @@
1
1
  import type { Spectrum1D, Spectrum2D } from '@zakodium/nmrium-core';
2
+ import { isSpectrum2DFidData } from '@zakodium/nmrium-core';
2
3
  import type { NmrData1D, NmrData2D } from 'cheminfo-types';
3
4
  import { xSequentialFillFromTo } from 'ml-spectra-processing';
4
5
 
5
6
  import type { TraceDirection } from '../../../component/reducer/Reducer.js';
6
7
  import { initiateDatum1D } from '../../data1d/Spectrum1D/index.js';
7
8
 
8
- import { isFid2DData } from './isSpectrum2D.js';
9
-
10
9
  interface SlicePosition {
11
10
  /**
12
11
  * x in ppm.
@@ -106,7 +105,7 @@ function initiateData(from: number, to: number, size: number): NmrData1D {
106
105
  }
107
106
 
108
107
  function getRealData(data: NmrData2D) {
109
- if (isFid2DData(data)) {
108
+ if (isSpectrum2DFidData(data)) {
110
109
  return data.re;
111
110
  }
112
111
  return data.rr;
@@ -115,7 +114,7 @@ function getImaginaryData(
115
114
  data: NmrData2D,
116
115
  options: { ftObjectKey?: 'ir' | 'ri' } = {},
117
116
  ) {
118
- if (isFid2DData(data)) {
117
+ if (isSpectrum2DFidData(data)) {
119
118
  return data.im;
120
119
  }
121
120
  const { ftObjectKey = 'ir' } = options;
@@ -1,7 +1,6 @@
1
1
  export { getMissingProjection } from './getMissingProjection.js';
2
2
  export { getSlice } from './getSlice.js';
3
3
  export { initiateDatum2D } from './initiateDatum2D.js';
4
- export { isSpectrum2D } from './isSpectrum2D.js';
5
4
  export { changeZoneSignal } from './zones/changeZoneSignal.js';
6
5
  export { detectZones } from './zones/detectZones.js';
7
6
  export { detectZonesManual } from './zones/detectZonesManual.js';
@@ -0,0 +1,21 @@
1
+ import type { Spectrum } from '@zakodium/nmrium-core';
2
+
3
+ interface GetViewSpectraOptions<S extends Spectrum> {
4
+ data: S[];
5
+ spectrumLiveProcessed: S | undefined;
6
+ }
7
+
8
+ /**
9
+ * Return all spectra, with `spectrumLiveProcessed` replacing the related spectrum in data.
10
+ */
11
+ export function getViewSpectra<S extends Spectrum>(
12
+ state: GetViewSpectraOptions<S>,
13
+ ) {
14
+ const { data, spectrumLiveProcessed } = state;
15
+
16
+ if (!spectrumLiveProcessed) return data;
17
+
18
+ return data.map((s) =>
19
+ s.id === spectrumLiveProcessed.id ? spectrumLiveProcessed : s,
20
+ );
21
+ }
@@ -1,8 +1,6 @@
1
1
  import type { Range, Signal1D, Signal2D, Zone } from '@zakodium/nmr-types';
2
2
  import type { Spectrum1D, Spectrum2D, Spectrum } from '@zakodium/nmrium-core';
3
-
4
- import { isSpectrum1D } from '../data1d/Spectrum1D/index.js';
5
- import { isSpectrum2D } from '../data2d/Spectrum2D/index.js';
3
+ import { isSpectrum1D, isSpectrum2D } from '@zakodium/nmrium-core';
6
4
 
7
5
  function findSpectrum(
8
6
  spectraData: Spectrum[],
@@ -5,11 +5,14 @@ function omitSignalKeys(signal: Signal1D): Signal1D {
5
5
  return rest;
6
6
  }
7
7
 
8
- export function unlink(range: Range, signalIndex?: number): Range {
8
+ export function unlink(range: Range, signalIndex?: number | 'all'): Range {
9
+ //Remove legacy -1 support and use 'all' only
10
+ const shouldUnlinkAll = [undefined, 'all', -1].includes(signalIndex);
11
+
9
12
  return {
10
13
  ...range,
11
14
  signals: range.signals.map((signal, index) =>
12
- signalIndex === undefined || index === signalIndex
15
+ shouldUnlinkAll || index === signalIndex
13
16
  ? omitSignalKeys(signal)
14
17
  : signal,
15
18
  ),
@@ -4,13 +4,14 @@ import { xNoiseSanPlot } from 'ml-spectra-processing';
4
4
  export function calculateSanPlot<T extends '1D' | '2D'>(
5
5
  dimension: T,
6
6
  data: T extends '1D' ? NmrData1D : NmrData2DFt['rr'],
7
+ options?: { magnitudeMode?: boolean },
7
8
  ) {
8
9
  const input =
9
10
  dimension === '1D'
10
11
  ? prepare1DData(data as NmrData1D)
11
12
  : prepare2DData(data as NmrData2DFt['rr']);
12
13
 
13
- return xNoiseSanPlot(input);
14
+ return xNoiseSanPlot(input, options);
14
15
  }
15
16
 
16
17
  function prepare1DData(data: NmrData1D) {
@@ -0,0 +1,7 @@
1
+ import type { Peak1D } from '@zakodium/nmr-types';
2
+ import { getShape1D } from 'ml-peak-shape-generator';
3
+
4
+ export function getPeakAbsoluteArea(peak: Peak1D) {
5
+ const { shape, y } = peak;
6
+ return shape ? getShape1D(shape).getArea(y) : 0;
7
+ }
@@ -1 +1 @@
1
- export default { version: 'v2.5.0' };
1
+ export default { version: 'v2.7.0' };
@@ -1,2 +0,0 @@
1
- export declare function transferDocumentStyles(targetDocument: Document): void;
2
- //# sourceMappingURL=transferDocumentStyles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transferDocumentStyles.d.ts","sourceRoot":"","sources":["../../../../../src/component/elements/export/utilities/transferDocumentStyles.ts"],"names":[],"mappings":"AAAA,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,QAAQ,QAoB9D"}
@@ -1,21 +0,0 @@
1
- export function transferDocumentStyles(targetDocument) {
2
- // Copy the style from the main page and inject it inside the iframe
3
- const styleSheets = Array.from(document.styleSheets);
4
- const targetHead = targetDocument.head;
5
- for (const styleSheet of styleSheets) {
6
- try {
7
- if (styleSheet.cssRules) {
8
- const newStyleEl = document.createElement('style');
9
- const cssRules = Array.from(styleSheet.cssRules);
10
- const cssText = cssRules.map((rule) => rule.cssText).join('\n');
11
- newStyleEl.append(document.createTextNode(cssText));
12
- targetHead.append(newStyleEl);
13
- }
14
- }
15
- catch (error) {
16
- // eslint-disable-next-line no-console
17
- console.error('Error transferring styles:', error);
18
- }
19
- }
20
- }
21
- //# sourceMappingURL=transferDocumentStyles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transferDocumentStyles.js","sourceRoot":"","sources":["../../../../../src/component/elements/export/utilities/transferDocumentStyles.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,sBAAsB,CAAC,cAAwB;IAC7D,oEAAoE;IACpE,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IACrD,MAAM,UAAU,GAAG,cAAc,CAAC,IAAI,CAAC;IAEvC,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;QACrC,IAAI,CAAC;YACH,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACxB,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;gBACnD,MAAM,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;gBACjD,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAEhE,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;gBACpD,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,sCAAsC;YACtC,OAAO,CAAC,KAAK,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { SpectrumProcessingOperation } from '@zakodium/nmrium-core';
2
- export type ProcessingsMutations = ReturnType<typeof useProcessingsMutations>;
3
- export declare function useProcessingsMutations(): {
4
- apply(operation: SpectrumProcessingOperation<any, any>, indexOperation: number): Promise<void>;
5
- reorder(sourceIndex: number, targetIndex: number): Promise<void>;
6
- remove(uid: string): Promise<void>;
7
- removeAll(): Promise<void>;
8
- switchEnabled(uid: string): Promise<void>;
9
- };
10
- //# sourceMappingURL=use_processings_mutation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use_processings_mutation.d.ts","sourceRoot":"","sources":["../../../../src/component/panels/hooks/use_processings_mutation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AAiB/B,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E,wBAAgB,uBAAuB;qBAkDtB,2BAA2B,CAAC,GAAG,EAAE,GAAG,CAAC,kBAChC,MAAM;yBAoBG,MAAM,eAAe,MAAM;gBAYpC,MAAM;;uBA8BC,MAAM;EAmClC"}