nmrium 1.12.0 → 2.1.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 (1260) hide show
  1. package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
  2. package/lib/component/1d/BrushTracker1D.js +17 -10
  3. package/lib/component/1d/BrushTracker1D.js.map +1 -1
  4. package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
  5. package/lib/component/1d/FloatPublicationString.js +39 -27
  6. package/lib/component/1d/FloatPublicationString.js.map +1 -1
  7. package/lib/component/1d/HorizontalAxis1D.d.ts +2 -0
  8. package/lib/component/1d/HorizontalAxis1D.d.ts.map +1 -0
  9. package/lib/component/1d/HorizontalAxis1D.js +30 -0
  10. package/lib/component/1d/HorizontalAxis1D.js.map +1 -0
  11. package/lib/component/1d/Line.js +1 -1
  12. package/lib/component/1d/Line.js.map +1 -1
  13. package/lib/component/1d/LinesSeries.d.ts.map +1 -1
  14. package/lib/component/1d/LinesSeries.js +2 -10
  15. package/lib/component/1d/LinesSeries.js.map +1 -1
  16. package/lib/component/1d/SVGContent1D.d.ts.map +1 -1
  17. package/lib/component/1d/SVGContent1D.js +2 -3
  18. package/lib/component/1d/SVGContent1D.js.map +1 -1
  19. package/lib/component/1d/Viewer1D.d.ts.map +1 -1
  20. package/lib/component/1d/Viewer1D.js +2 -1
  21. package/lib/component/1d/Viewer1D.js.map +1 -1
  22. package/lib/component/1d/baseline/BaselinePreview.d.ts +2 -0
  23. package/lib/component/1d/baseline/BaselinePreview.d.ts.map +1 -0
  24. package/lib/component/1d/baseline/BaselinePreview.js +146 -0
  25. package/lib/component/1d/baseline/BaselinePreview.js.map +1 -0
  26. package/lib/component/1d/baseline/getMedianWindow.d.ts +3 -0
  27. package/lib/component/1d/baseline/getMedianWindow.d.ts.map +1 -0
  28. package/lib/component/1d/baseline/getMedianWindow.js +5 -0
  29. package/lib/component/1d/baseline/getMedianWindow.js.map +1 -0
  30. package/lib/component/1d/baseline/getMedianY.d.ts +3 -0
  31. package/lib/component/1d/baseline/getMedianY.d.ts.map +1 -0
  32. package/lib/component/1d/baseline/getMedianY.js +13 -0
  33. package/lib/component/1d/baseline/getMedianY.js.map +1 -0
  34. package/lib/component/1d/database/DatabaseElements.d.ts.map +1 -1
  35. package/lib/component/1d/database/DatabaseElements.js +4 -4
  36. package/lib/component/1d/database/DatabaseElements.js.map +1 -1
  37. package/lib/component/1d/database/DatabaseSpectrum.d.ts.map +1 -1
  38. package/lib/component/1d/database/DatabaseSpectrum.js +6 -3
  39. package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
  40. package/lib/component/1d/database/ResurrectedDatabaseRanges.d.ts.map +1 -1
  41. package/lib/component/1d/database/ResurrectedDatabaseRanges.js +4 -5
  42. package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
  43. package/lib/component/1d/integral/IntegralsSeries.js.map +1 -1
  44. package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js +1 -1
  45. package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js.map +1 -1
  46. package/lib/component/1d/multiplicityTree/MultiplicityTree.js +6 -5
  47. package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
  48. package/lib/component/1d/peaks/PeakAnnotations.js +1 -1
  49. package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
  50. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.d.ts.map +1 -1
  51. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +2 -2
  52. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
  53. package/lib/component/1d/peaks/PeakEditionManager.d.ts.map +1 -1
  54. package/lib/component/1d/peaks/PeakEditionManager.js +1 -1
  55. package/lib/component/1d/peaks/PeakEditionManager.js.map +1 -1
  56. package/lib/component/1d/peaks/usePeakShapesPath.js +1 -1
  57. package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
  58. package/lib/component/1d/ranges/Range.js +3 -3
  59. package/lib/component/1d/ranges/Range.js.map +1 -1
  60. package/lib/component/1d/ranges/Ranges.js +2 -2
  61. package/lib/component/1d/ranges/Ranges.js.map +1 -1
  62. package/lib/component/1d/tool/BaseLine.js +1 -1
  63. package/lib/component/1d/tool/PeakPointer.d.ts.map +1 -1
  64. package/lib/component/1d/tool/PeakPointer.js +2 -1
  65. package/lib/component/1d/tool/PeakPointer.js.map +1 -1
  66. package/lib/component/1d/utilities/scale.d.ts +5 -4
  67. package/lib/component/1d/utilities/scale.d.ts.map +1 -1
  68. package/lib/component/1d/utilities/scale.js +13 -6
  69. package/lib/component/1d/utilities/scale.js.map +1 -1
  70. package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
  71. package/lib/component/1d-2d/FieldEdition.js.map +1 -1
  72. package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
  73. package/lib/component/1d-2d/components/SpectrumInfoBlock.js +3 -17
  74. package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
  75. package/lib/component/1d-2d/components/axis_unit_picker.d.ts +11 -0
  76. package/lib/component/1d-2d/components/axis_unit_picker.d.ts.map +1 -0
  77. package/lib/component/1d-2d/components/axis_unit_picker.js +26 -0
  78. package/lib/component/1d-2d/components/axis_unit_picker.js.map +1 -0
  79. package/lib/component/1d-2d/tools/BrushXY.js +6 -6
  80. package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
  81. package/lib/component/2d/1d-tracer/VerticalSliceChart.js +1 -1
  82. package/lib/component/2d/1d-tracer/VerticalSliceChart.js.map +1 -1
  83. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.d.ts +2 -2
  84. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.d.ts.map +1 -1
  85. package/lib/component/2d/{XAxis.d.ts → DirectAxis2D.d.ts} +4 -4
  86. package/lib/component/2d/DirectAxis2D.d.ts.map +1 -0
  87. package/lib/component/2d/DirectAxis2D.js +42 -0
  88. package/lib/component/2d/DirectAxis2D.js.map +1 -0
  89. package/lib/component/2d/IndirectAxis2D.d.ts +12 -0
  90. package/lib/component/2d/IndirectAxis2D.d.ts.map +1 -0
  91. package/lib/component/2d/IndirectAxis2D.js +52 -0
  92. package/lib/component/2d/IndirectAxis2D.js.map +1 -0
  93. package/lib/component/2d/SVGContent2D.js +3 -3
  94. package/lib/component/2d/SVGContent2D.js.map +1 -1
  95. package/lib/component/2d/fid/FidCanvas.js.map +1 -1
  96. package/lib/component/2d/ft/Contours.d.ts.map +1 -1
  97. package/lib/component/2d/ft/Contours.js +10 -12
  98. package/lib/component/2d/ft/Contours.js.map +1 -1
  99. package/lib/component/2d/utilities/extractSpectrumSignals.js +2 -2
  100. package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -1
  101. package/lib/component/2d/utilities/scale.d.ts +10 -2
  102. package/lib/component/2d/utilities/scale.d.ts.map +1 -1
  103. package/lib/component/2d/utilities/scale.js +6 -4
  104. package/lib/component/2d/utilities/scale.js.map +1 -1
  105. package/lib/component/2d/zones/Signal.d.ts +2 -2
  106. package/lib/component/2d/zones/Signal.d.ts.map +1 -1
  107. package/lib/component/2d/zones/Signal.js +7 -9
  108. package/lib/component/2d/zones/Signal.js.map +1 -1
  109. package/lib/component/2d/zones/SignalCrosshair.d.ts +1 -1
  110. package/lib/component/2d/zones/SignalCrosshair.d.ts.map +1 -1
  111. package/lib/component/2d/zones/SignalCrosshair.js +3 -2
  112. package/lib/component/2d/zones/SignalCrosshair.js.map +1 -1
  113. package/lib/component/2d/zones/SignalsGuideLines.js +2 -2
  114. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
  115. package/lib/component/2d/zones/Zone.d.ts +1 -1
  116. package/lib/component/2d/zones/Zone.d.ts.map +1 -1
  117. package/lib/component/2d/zones/Zone.js +3 -4
  118. package/lib/component/2d/zones/Zone.js.map +1 -1
  119. package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
  120. package/lib/component/EventsTrackers/BrushTracker.js +6 -6
  121. package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
  122. package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
  123. package/lib/component/EventsTrackers/KeysListenerTracker.js +109 -123
  124. package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
  125. package/lib/component/EventsTrackers/MouseTracker.d.ts +1 -1
  126. package/lib/component/EventsTrackers/MouseTracker.d.ts.map +1 -1
  127. package/lib/component/EventsTrackers/MouseTracker.js +9 -8
  128. package/lib/component/EventsTrackers/MouseTracker.js.map +1 -1
  129. package/lib/component/SVGTable.d.ts +3 -2
  130. package/lib/component/SVGTable.d.ts.map +1 -1
  131. package/lib/component/SVGTable.js +2 -4
  132. package/lib/component/SVGTable.js.map +1 -1
  133. package/lib/component/assignment/utilities/getAssignments.js.map +1 -1
  134. package/lib/component/context/DispatchContext.d.ts +2 -1
  135. package/lib/component/context/DispatchContext.d.ts.map +1 -1
  136. package/lib/component/context/DispatchContext.js.map +1 -1
  137. package/lib/component/context/FilterSyncOptionsContext.d.ts +4 -3
  138. package/lib/component/context/FilterSyncOptionsContext.d.ts.map +1 -1
  139. package/lib/component/context/FilterSyncOptionsContext.js +34 -8
  140. package/lib/component/context/FilterSyncOptionsContext.js.map +1 -1
  141. package/lib/component/context/ScaleContext.d.ts +5 -1
  142. package/lib/component/context/ScaleContext.d.ts.map +1 -1
  143. package/lib/component/context/ScaleContext.js +5 -4
  144. package/lib/component/context/ScaleContext.js.map +1 -1
  145. package/lib/component/context/SortSpectraContext.js +1 -1
  146. package/lib/component/context/SortSpectraContext.js.map +1 -1
  147. package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
  148. package/lib/component/elements/ActionsButtonsPopover.js +1 -1
  149. package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
  150. package/lib/component/elements/Alert.d.ts.map +1 -1
  151. package/lib/component/elements/Alert.js.map +1 -1
  152. package/lib/component/elements/Anchor.d.ts +43 -0
  153. package/lib/component/elements/Anchor.d.ts.map +1 -0
  154. package/lib/component/elements/Anchor.js +151 -0
  155. package/lib/component/elements/Anchor.js.map +1 -0
  156. package/lib/component/elements/Button.d.ts.map +1 -1
  157. package/lib/component/elements/Button.js.map +1 -1
  158. package/lib/component/elements/ColumnWrapper.d.ts +2 -1
  159. package/lib/component/elements/ColumnWrapper.d.ts.map +1 -1
  160. package/lib/component/elements/ColumnWrapper.js.map +1 -1
  161. package/lib/component/elements/ContextMenuBluePrint.js +2 -2
  162. package/lib/component/elements/ContextMenuBluePrint.js.map +1 -1
  163. package/lib/component/elements/D3Axis.d.ts +5 -2
  164. package/lib/component/elements/D3Axis.d.ts.map +1 -1
  165. package/lib/component/elements/D3Axis.js +61 -18
  166. package/lib/component/elements/D3Axis.js.map +1 -1
  167. package/lib/component/elements/DialogManager.d.ts +1 -1
  168. package/lib/component/elements/DialogManager.d.ts.map +1 -1
  169. package/lib/component/elements/DialogManager.js.map +1 -1
  170. package/lib/component/elements/DraggableDialog.d.ts.map +1 -1
  171. package/lib/component/elements/DraggableDialog.js.map +1 -1
  172. package/lib/component/elements/EditableColumn.d.ts +9 -5
  173. package/lib/component/elements/EditableColumn.d.ts.map +1 -1
  174. package/lib/component/elements/EditableColumn.js +7 -7
  175. package/lib/component/elements/EditableColumn.js.map +1 -1
  176. package/lib/component/elements/Input.d.ts +2 -2
  177. package/lib/component/elements/Input.d.ts.map +1 -1
  178. package/lib/component/elements/Input.js.map +1 -1
  179. package/lib/component/elements/InputRange.d.ts.map +1 -1
  180. package/lib/component/elements/InputRange.js.map +1 -1
  181. package/lib/component/elements/Label.d.ts +1 -2
  182. package/lib/component/elements/Label.d.ts.map +1 -1
  183. package/lib/component/elements/MoleculeSelection.js.map +1 -1
  184. package/lib/component/elements/NumberInput2.d.ts +2 -1
  185. package/lib/component/elements/NumberInput2.d.ts.map +1 -1
  186. package/lib/component/elements/NumberInput2Controller.d.ts +1 -2
  187. package/lib/component/elements/NumberInput2Controller.d.ts.map +1 -1
  188. package/lib/component/elements/NumberInputField.d.ts +9 -0
  189. package/lib/component/elements/NumberInputField.d.ts.map +1 -0
  190. package/lib/component/elements/NumberInputField.js +8 -0
  191. package/lib/component/elements/NumberInputField.js.map +1 -0
  192. package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts +6 -1
  193. package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts.map +1 -1
  194. package/lib/component/elements/ReactTable/Elements/EmptyDataRow.js +2 -2
  195. package/lib/component/elements/ReactTable/Elements/EmptyDataRow.js.map +1 -1
  196. package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +5 -5
  197. package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts.map +1 -1
  198. package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +5 -5
  199. package/lib/component/elements/ReactTable/Elements/ReactTableRow.js.map +1 -1
  200. package/lib/component/elements/ReactTable/ReactTable.d.ts +15 -9
  201. package/lib/component/elements/ReactTable/ReactTable.d.ts.map +1 -1
  202. package/lib/component/elements/ReactTable/ReactTable.js +8 -4
  203. package/lib/component/elements/ReactTable/ReactTable.js.map +1 -1
  204. package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts +2 -1
  205. package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts.map +1 -1
  206. package/lib/component/elements/ReadOnly.d.ts +2 -2
  207. package/lib/component/elements/ReadOnly.d.ts.map +1 -1
  208. package/lib/component/elements/ReadOnly.js.map +1 -1
  209. package/lib/component/elements/Sections.js +1 -1
  210. package/lib/component/elements/Sections.js.map +1 -1
  211. package/lib/component/elements/Tab/DeleteButton.d.ts +2 -2
  212. package/lib/component/elements/Tab/DeleteButton.d.ts.map +1 -1
  213. package/lib/component/elements/TabTitle.d.ts.map +1 -1
  214. package/lib/component/elements/TabTitle.js.map +1 -1
  215. package/lib/component/elements/dropDownButton/DropDownButton.js.map +1 -1
  216. package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
  217. package/lib/component/elements/export/ExportContent.js +13 -27
  218. package/lib/component/elements/export/ExportContent.js.map +1 -1
  219. package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
  220. package/lib/component/elements/export/units.d.ts +1 -1
  221. package/lib/component/elements/export/units.d.ts.map +1 -1
  222. package/lib/component/elements/export/units.js.map +1 -1
  223. package/lib/component/elements/export/useExportConfigurer.d.ts +1 -1
  224. package/lib/component/elements/export/useExportConfigurer.d.ts.map +1 -1
  225. package/lib/component/elements/export/useExportConfigurer.js.map +1 -1
  226. package/lib/component/elements/resizer/SVGResizer.d.ts +2 -1
  227. package/lib/component/elements/resizer/SVGResizer.d.ts.map +1 -1
  228. package/lib/component/header/Header.js +2 -2
  229. package/lib/component/header/Header.js.map +1 -1
  230. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.d.ts.map +1 -1
  231. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js +43 -24
  232. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js.map +1 -1
  233. package/lib/component/highlight/index.d.ts +59 -19
  234. package/lib/component/highlight/index.d.ts.map +1 -1
  235. package/lib/component/highlight/index.js +6 -4
  236. package/lib/component/highlight/index.js.map +1 -1
  237. package/lib/component/hooks/reduce2DSpectrum.d.ts +4 -0
  238. package/lib/component/hooks/reduce2DSpectrum.d.ts.map +1 -0
  239. package/lib/component/hooks/reduce2DSpectrum.js +60 -0
  240. package/lib/component/hooks/reduce2DSpectrum.js.map +1 -0
  241. package/lib/component/hooks/use2DReducer.d.ts +14 -0
  242. package/lib/component/hooks/use2DReducer.d.ts.map +1 -0
  243. package/lib/component/hooks/use2DReducer.js +30 -0
  244. package/lib/component/hooks/use2DReducer.js.map +1 -0
  245. package/lib/component/hooks/useCheckToolsVisibility.js.map +1 -1
  246. package/lib/component/hooks/useCombinedRefs.d.ts.map +1 -1
  247. package/lib/component/hooks/useCombinedRefs.js +1 -0
  248. package/lib/component/hooks/useCombinedRefs.js.map +1 -1
  249. package/lib/component/hooks/useCreateNmriumZip.d.ts +3 -0
  250. package/lib/component/hooks/useCreateNmriumZip.d.ts.map +1 -0
  251. package/lib/component/hooks/useCreateNmriumZip.js +28 -0
  252. package/lib/component/hooks/useCreateNmriumZip.js.map +1 -0
  253. package/lib/component/hooks/useExport.d.ts +8 -5
  254. package/lib/component/hooks/useExport.d.ts.map +1 -1
  255. package/lib/component/hooks/useExport.js +4 -21
  256. package/lib/component/hooks/useExport.js.map +1 -1
  257. package/lib/component/hooks/useFilter.d.ts.map +1 -1
  258. package/lib/component/hooks/useFilter.js.map +1 -1
  259. package/lib/component/hooks/useSVGUnitConverter.js.map +1 -1
  260. package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
  261. package/lib/component/hooks/useSaveSettings.js +3 -3
  262. package/lib/component/hooks/useSaveSettings.js.map +1 -1
  263. package/lib/component/hooks/useTableSortBy.d.ts +5 -4
  264. package/lib/component/hooks/useTableSortBy.d.ts.map +1 -1
  265. package/lib/component/hooks/useTableSortBy.js +3 -3
  266. package/lib/component/hooks/useTableSortBy.js.map +1 -1
  267. package/lib/component/hooks/useTriggerNewAssignmentLabel.d.ts +1 -1
  268. package/lib/component/hooks/useTriggerNewAssignmentLabel.d.ts.map +1 -1
  269. package/lib/component/hooks/useTriggerNewAssignmentLabel.js.map +1 -1
  270. package/lib/component/hooks/use_axis_unit.d.ts +24 -0
  271. package/lib/component/hooks/use_axis_unit.d.ts.map +1 -0
  272. package/lib/component/hooks/use_axis_unit.js +255 -0
  273. package/lib/component/hooks/use_axis_unit.js.map +1 -0
  274. package/lib/component/hooks/use_gridlines_config.d.ts +3 -0
  275. package/lib/component/hooks/use_gridlines_config.d.ts.map +1 -0
  276. package/lib/component/hooks/use_gridlines_config.js +15 -0
  277. package/lib/component/hooks/use_gridlines_config.js.map +1 -0
  278. package/lib/component/hooks/use_ticks_config.d.ts +5 -0
  279. package/lib/component/hooks/use_ticks_config.d.ts.map +1 -0
  280. package/lib/component/hooks/use_ticks_config.js +13 -0
  281. package/lib/component/hooks/use_ticks_config.js.map +1 -0
  282. package/lib/component/hooks/use_visible_spectra_1d.d.ts +3 -0
  283. package/lib/component/hooks/use_visible_spectra_1d.d.ts.map +1 -0
  284. package/lib/component/hooks/use_visible_spectra_1d.js +12 -0
  285. package/lib/component/hooks/use_visible_spectra_1d.js.map +1 -0
  286. package/lib/component/loader/useLoadFiles.d.ts +2 -1
  287. package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
  288. package/lib/component/loader/useLoadFiles.js +19 -15
  289. package/lib/component/loader/useLoadFiles.js.map +1 -1
  290. package/lib/component/main/InnerNMRium.d.ts.map +1 -1
  291. package/lib/component/main/InnerNMRium.js +4 -4
  292. package/lib/component/main/InnerNMRium.js.map +1 -1
  293. package/lib/component/main/NMRium.d.ts +48 -3
  294. package/lib/component/main/NMRium.d.ts.map +1 -1
  295. package/lib/component/main/NMRium.js.map +1 -1
  296. package/lib/component/main/NMRiumRefAPI.d.ts +4 -0
  297. package/lib/component/main/NMRiumRefAPI.d.ts.map +1 -1
  298. package/lib/component/main/NMRiumRefAPI.js +5 -1
  299. package/lib/component/main/NMRiumRefAPI.js.map +1 -1
  300. package/lib/component/main/NMRiumStateProvider.d.ts +6 -2
  301. package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
  302. package/lib/component/main/NMRiumStateProvider.js +46 -33
  303. package/lib/component/main/NMRiumStateProvider.js.map +1 -1
  304. package/lib/component/main/NMRiumViewer.js.map +1 -1
  305. package/lib/component/modal/LoadJCAMPModal.js +4 -4
  306. package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
  307. package/lib/component/modal/MultipletAnalysisModal.d.ts +2 -2
  308. package/lib/component/modal/MultipletAnalysisModal.d.ts.map +1 -1
  309. package/lib/component/modal/MultipletAnalysisModal.js +1 -3
  310. package/lib/component/modal/MultipletAnalysisModal.js.map +1 -1
  311. package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
  312. package/lib/component/modal/PublicationStringModal.js +4 -0
  313. package/lib/component/modal/PublicationStringModal.js.map +1 -1
  314. package/lib/component/modal/SaveAsModal.d.ts +0 -2
  315. package/lib/component/modal/SaveAsModal.d.ts.map +1 -1
  316. package/lib/component/modal/SaveAsModal.js +1 -1
  317. package/lib/component/modal/SaveAsModal.js.map +1 -1
  318. package/lib/component/modal/changeSum/SelectMolecule.js.map +1 -1
  319. package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts +2 -1
  320. package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
  321. package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
  322. package/lib/component/modal/editRange/forms/components/SignalsContent.js.map +1 -1
  323. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
  324. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts.map +1 -1
  325. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
  326. package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
  327. package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.d.ts +4 -1
  328. package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.d.ts.map +1 -1
  329. package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.js.map +1 -1
  330. package/lib/component/modal/setting/WorkspaceItem.js +6 -6
  331. package/lib/component/modal/setting/WorkspaceItem.js.map +1 -1
  332. package/lib/component/modal/setting/general_settings.d.ts +2 -8
  333. package/lib/component/modal/setting/general_settings.d.ts.map +1 -1
  334. package/lib/component/modal/setting/general_settings.js +6 -229
  335. package/lib/component/modal/setting/general_settings.js.map +1 -1
  336. package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +2179 -0
  337. package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts.map +1 -0
  338. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js +52 -0
  339. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js.map +1 -0
  340. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +2168 -0
  341. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts.map +1 -0
  342. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js +29 -0
  343. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js.map +1 -0
  344. package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts +4 -2
  345. package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts.map +1 -1
  346. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js +51 -32
  347. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js.map +1 -1
  348. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +1734 -188
  349. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -1
  350. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js +14 -3
  351. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map +1 -1
  352. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +1118 -188
  353. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
  354. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js +2 -8
  355. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js.map +1 -1
  356. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +1551 -6
  357. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -1
  358. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js +29 -40
  359. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map +1 -1
  360. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +276 -0
  361. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts.map +1 -0
  362. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.js +53 -0
  363. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.js.map +1 -0
  364. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +1552 -0
  365. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -0
  366. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js +36 -0
  367. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js.map +1 -0
  368. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +1552 -0
  369. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts.map +1 -0
  370. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.js +43 -0
  371. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.js.map +1 -0
  372. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +1552 -0
  373. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -0
  374. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js +81 -0
  375. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js.map +1 -0
  376. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +1118 -188
  377. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -1
  378. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -1
  379. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +37 -9
  380. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
  381. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +1552 -0
  382. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -0
  383. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +56 -0
  384. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js.map +1 -0
  385. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +1118 -188
  386. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -1
  387. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js +2 -2
  388. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js.map +1 -1
  389. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +1118 -188
  390. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -1
  391. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +1118 -188
  392. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -1
  393. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js +67 -112
  394. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js.map +1 -1
  395. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +1118 -188
  396. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -1
  397. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js +3 -3
  398. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js.map +1 -1
  399. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +1552 -0
  400. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -0
  401. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js +139 -0
  402. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js.map +1 -0
  403. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +1552 -0
  404. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -0
  405. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +112 -0
  406. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js.map +1 -0
  407. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +1552 -0
  408. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -0
  409. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js +38 -0
  410. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js.map +1 -0
  411. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_actions.d.ts +7 -0
  412. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_actions.d.ts.map +1 -0
  413. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_actions.js +16 -0
  414. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_actions.js.map +1 -0
  415. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.d.ts +16 -0
  416. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.d.ts.map +1 -0
  417. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.js +26 -0
  418. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.js.map +1 -0
  419. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.d.ts +14 -0
  420. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.d.ts.map +1 -0
  421. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.js +18 -0
  422. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.js.map +1 -0
  423. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_input.d.ts +36 -0
  424. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_input.d.ts.map +1 -0
  425. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_input.js +64 -0
  426. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_input.js.map +1 -0
  427. package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts +15 -0
  428. package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts.map +1 -0
  429. package/lib/component/modal/setting/tanstack_general_settings/ui/table.js +56 -0
  430. package/lib/component/modal/setting/tanstack_general_settings/ui/table.js.map +1 -0
  431. package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.d.ts +10 -0
  432. package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.d.ts.map +1 -0
  433. package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js +31 -0
  434. package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js.map +1 -0
  435. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +75 -0
  436. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts.map +1 -0
  437. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.js +17 -0
  438. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.js.map +1 -0
  439. package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.d.ts +95 -0
  440. package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.d.ts.map +1 -0
  441. package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.js +19 -0
  442. package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.js.map +1 -0
  443. package/lib/component/modal/setting/tanstack_general_settings/{utils/checkUniqueByKey.d.ts → validation/check_unique_by_key.d.ts} +1 -1
  444. package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.d.ts.map +1 -0
  445. package/lib/component/modal/setting/tanstack_general_settings/{utils/checkUniqueByKey.js → validation/check_unique_by_key.js} +1 -1
  446. package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.js.map +1 -0
  447. package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.d.ts +11 -0
  448. package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.d.ts.map +1 -0
  449. package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.js +20 -0
  450. package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.js.map +1 -0
  451. package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.d.ts +32 -0
  452. package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.d.ts.map +1 -0
  453. package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.js +11 -0
  454. package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.js.map +1 -0
  455. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +20 -4
  456. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts.map +1 -1
  457. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js +7 -6
  458. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js.map +1 -1
  459. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts +12 -4
  460. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts.map +1 -1
  461. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js +4 -3
  462. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js.map +1 -1
  463. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts +20 -0
  464. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts.map +1 -1
  465. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js +12 -4
  466. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js.map +1 -1
  467. package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.d.ts +54 -0
  468. package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.d.ts.map +1 -0
  469. package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.js +22 -0
  470. package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.js.map +1 -0
  471. package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.d.ts +55 -0
  472. package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.d.ts.map +1 -0
  473. package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.js +18 -0
  474. package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.js.map +1 -0
  475. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts +32 -0
  476. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts.map +1 -0
  477. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js +34 -0
  478. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js.map +1 -0
  479. package/lib/component/modal/setting/tanstack_general_settings/validation/utils.d.ts +13 -0
  480. package/lib/component/modal/setting/tanstack_general_settings/validation/utils.d.ts.map +1 -0
  481. package/lib/component/modal/setting/tanstack_general_settings/validation/utils.js +20 -0
  482. package/lib/component/modal/setting/tanstack_general_settings/validation/utils.js.map +1 -0
  483. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +317 -39
  484. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -1
  485. package/lib/component/modal/setting/tanstack_general_settings/validation.js +19 -29
  486. package/lib/component/modal/setting/tanstack_general_settings/validation.js.map +1 -1
  487. package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.d.ts +3 -0
  488. package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.d.ts.map +1 -0
  489. package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.js +96 -0
  490. package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.js.map +1 -0
  491. package/lib/component/modal/setting/tanstack_general_settings/workspaces/picker.d.ts +3 -0
  492. package/lib/component/modal/setting/tanstack_general_settings/workspaces/picker.d.ts.map +1 -0
  493. package/lib/component/modal/setting/tanstack_general_settings/workspaces/picker.js +55 -0
  494. package/lib/component/modal/setting/tanstack_general_settings/workspaces/picker.js.map +1 -0
  495. package/lib/component/modal/setting/tanstack_general_settings/workspaces/props.d.ts +7 -0
  496. package/lib/component/modal/setting/tanstack_general_settings/workspaces/props.d.ts.map +1 -0
  497. package/lib/component/modal/setting/tanstack_general_settings/workspaces/props.js +2 -0
  498. package/lib/component/modal/setting/tanstack_general_settings/workspaces/props.js.map +1 -0
  499. package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts.map +1 -1
  500. package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +3 -3
  501. package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js.map +1 -1
  502. package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts.map +1 -1
  503. package/lib/component/panels/IntegralsPanel/IntegralTable.js +6 -7
  504. package/lib/component/panels/IntegralsPanel/IntegralTable.js.map +1 -1
  505. package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts.map +1 -1
  506. package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +2 -3
  507. package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js.map +1 -1
  508. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.d.ts.map +1 -1
  509. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js +2 -1
  510. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js.map +1 -1
  511. package/lib/component/panels/MoleculesPanel/MoleculeHeader.d.ts.map +1 -1
  512. package/lib/component/panels/MoleculesPanel/MoleculeHeader.js +5 -5
  513. package/lib/component/panels/MoleculesPanel/MoleculeHeader.js.map +1 -1
  514. package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts.map +1 -1
  515. package/lib/component/panels/MoleculesPanel/MoleculePanel.js +1 -1
  516. package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
  517. package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts +1 -1
  518. package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts.map +1 -1
  519. package/lib/component/panels/MoleculesPanel/MoleculeStructure.js +36 -4
  520. package/lib/component/panels/MoleculesPanel/MoleculeStructure.js.map +1 -1
  521. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.d.ts.map +1 -1
  522. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +24 -20
  523. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
  524. package/lib/component/panels/MoleculesPanel/utilities/extractFromAtom.d.ts +3 -3
  525. package/lib/component/panels/MoleculesPanel/utilities/extractFromAtom.js +3 -3
  526. package/lib/component/panels/Panels.d.ts.map +1 -1
  527. package/lib/component/panels/Panels.js.map +1 -1
  528. package/lib/component/panels/PanelsBar.d.ts.map +1 -1
  529. package/lib/component/panels/PanelsBar.js.map +1 -1
  530. package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts +2 -1
  531. package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts.map +1 -1
  532. package/lib/component/panels/PeaksPanel/PeaksPreferences.js +2 -3
  533. package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
  534. package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
  535. package/lib/component/panels/PeaksPanel/PeaksTable.js +3 -3
  536. package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
  537. package/lib/component/panels/RangesPanel/RangesPanel.d.ts +7 -0
  538. package/lib/component/panels/RangesPanel/RangesPanel.d.ts.map +1 -1
  539. package/lib/component/panels/RangesPanel/RangesPanel.js +6 -5
  540. package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
  541. package/lib/component/panels/RangesPanel/RangesPreferences.d.ts +2 -1
  542. package/lib/component/panels/RangesPanel/RangesPreferences.d.ts.map +1 -1
  543. package/lib/component/panels/RangesPanel/RangesPreferences.js +2 -3
  544. package/lib/component/panels/RangesPanel/RangesPreferences.js.map +1 -1
  545. package/lib/component/panels/RangesPanel/RangesTable.d.ts +4 -3
  546. package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
  547. package/lib/component/panels/RangesPanel/RangesTable.js +2 -3
  548. package/lib/component/panels/RangesPanel/RangesTable.js.map +1 -1
  549. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +5 -5
  550. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
  551. package/lib/component/panels/RangesPanel/RangesTableRow.js +8 -3
  552. package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
  553. package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.d.ts +1 -2
  554. package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.d.ts.map +1 -1
  555. package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js +4 -4
  556. package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js.map +1 -1
  557. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts +1 -1
  558. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -1
  559. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js +8 -7
  560. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -1
  561. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.d.ts +1 -2
  562. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.d.ts.map +1 -1
  563. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +7 -5
  564. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js.map +1 -1
  565. package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts +11 -4
  566. package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts.map +1 -1
  567. package/lib/component/panels/RangesPanel/hooks/useMapRanges.js +2 -4
  568. package/lib/component/panels/RangesPanel/hooks/useMapRanges.js.map +1 -1
  569. package/lib/component/panels/SpectraPanel/SpectraTable.d.ts +2 -1
  570. package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
  571. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts +1 -1
  572. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts.map +1 -1
  573. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js +5 -9
  574. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
  575. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts +1 -1
  576. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts.map +1 -1
  577. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js +5 -4
  578. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js.map +1 -1
  579. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts +3 -2
  580. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
  581. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +10 -5
  582. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
  583. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js +1 -1
  584. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
  585. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts.map +1 -1
  586. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js.map +1 -1
  587. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts.map +1 -1
  588. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js.map +1 -1
  589. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts +4 -7
  590. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts.map +1 -1
  591. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +1 -1
  592. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js.map +1 -1
  593. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +18 -12
  594. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts.map +1 -1
  595. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +9 -12
  596. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js.map +1 -1
  597. package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +2 -2
  598. package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js.map +1 -1
  599. package/lib/component/panels/SummaryPanel/SummaryPanel.js +1 -1
  600. package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
  601. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +1 -1
  602. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
  603. package/lib/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
  604. package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
  605. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts +1 -1
  606. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts.map +1 -1
  607. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +2 -1
  608. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js.map +1 -1
  609. package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.d.ts +2 -2
  610. package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.d.ts.map +1 -1
  611. package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +6 -8
  612. package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js.map +1 -1
  613. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.d.ts +1 -1
  614. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.d.ts.map +1 -1
  615. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js +4 -3
  616. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js.map +1 -1
  617. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts.map +1 -1
  618. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +2 -0
  619. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js.map +1 -1
  620. package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts +1 -1
  621. package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts.map +1 -1
  622. package/lib/component/panels/ZonesPanel/ZonesPreferences.js +2 -3
  623. package/lib/component/panels/ZonesPanel/ZonesPreferences.js.map +1 -1
  624. package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +5 -4
  625. package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts.map +1 -1
  626. package/lib/component/panels/ZonesPanel/ZonesTableRow.js +2 -2
  627. package/lib/component/panels/ZonesPanel/ZonesTableRow.js.map +1 -1
  628. package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
  629. package/lib/component/panels/databasePanel/DatabasePanel.js +57 -57
  630. package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
  631. package/lib/component/panels/databasePanel/DatabasePreferences.d.ts +2 -1
  632. package/lib/component/panels/databasePanel/DatabasePreferences.d.ts.map +1 -1
  633. package/lib/component/panels/databasePanel/DatabasePreferences.js +2 -3
  634. package/lib/component/panels/databasePanel/DatabasePreferences.js.map +1 -1
  635. package/lib/component/panels/databasePanel/DatabaseTable.d.ts +1 -1
  636. package/lib/component/panels/databasePanel/DatabaseTable.d.ts.map +1 -1
  637. package/lib/component/panels/databasePanel/DatabaseTable.js +22 -3
  638. package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
  639. package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts +2 -2
  640. package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts.map +1 -1
  641. package/lib/component/panels/extra/utilities/MultiplicityUtilities.js +6 -4
  642. package/lib/component/panels/extra/utilities/MultiplicityUtilities.js.map +1 -1
  643. package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts +3 -3
  644. package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts.map +1 -1
  645. package/lib/component/panels/extra/utilities/settingImperativeHandle.js.map +1 -1
  646. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.d.ts.map +1 -1
  647. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js +61 -19
  648. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js.map +1 -1
  649. package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.d.ts.map +1 -1
  650. package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.js.map +1 -1
  651. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
  652. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +27 -34
  653. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
  654. package/lib/component/panels/filtersPanel/Filters/PhaseCorrectionOptionsPanel.js.map +1 -1
  655. package/lib/component/panels/filtersPanel/Filters/PhaseCorrectionTwoDimensionsOptionsPanel.js.map +1 -1
  656. package/lib/component/panels/filtersPanel/Filters/ShiftOptionsPanel.d.ts.map +1 -1
  657. package/lib/component/panels/filtersPanel/Filters/ShiftOptionsPanel.js.map +1 -1
  658. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +1 -1
  659. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
  660. package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.d.ts.map +1 -1
  661. package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.js.map +1 -1
  662. package/lib/component/panels/filtersPanel/Filters/base/baselineCorrectionFields.d.ts +49 -0
  663. package/lib/component/panels/filtersPanel/Filters/base/baselineCorrectionFields.d.ts.map +1 -0
  664. package/lib/component/panels/filtersPanel/Filters/base/baselineCorrectionFields.js +2 -0
  665. package/lib/component/panels/filtersPanel/Filters/base/baselineCorrectionFields.js.map +1 -0
  666. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +128 -48
  667. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
  668. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js +106 -41
  669. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js.map +1 -1
  670. package/lib/component/panels/header/DefaultPanelHeader.js +1 -3
  671. package/lib/component/panels/header/DefaultPanelHeader.js.map +1 -1
  672. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts.map +1 -1
  673. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js.map +1 -1
  674. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.d.ts +1 -1
  675. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.d.ts.map +1 -1
  676. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js +2 -1
  677. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js.map +1 -1
  678. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisCell.d.ts +3 -3
  679. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisCell.d.ts.map +1 -1
  680. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisCell.js +2 -2
  681. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisCell.js.map +1 -1
  682. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.d.ts +4 -3
  683. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.d.ts.map +1 -1
  684. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js +2 -2
  685. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js.map +1 -1
  686. package/lib/component/panels/multipleAnalysisPanel/preferences/MultipleAnalysisCodeEditor.js.map +1 -1
  687. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.d.ts +2 -1
  688. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.d.ts.map +1 -1
  689. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js +2 -3
  690. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js.map +1 -1
  691. package/lib/component/panels/predictionPanel/PredictionPreferences.d.ts +2 -1
  692. package/lib/component/panels/predictionPanel/PredictionPreferences.d.ts.map +1 -1
  693. package/lib/component/panels/predictionPanel/PredictionPreferences.js +2 -3
  694. package/lib/component/panels/predictionPanel/PredictionPreferences.js.map +1 -1
  695. package/lib/component/reducer/Reducer.d.ts.map +1 -1
  696. package/lib/component/reducer/Reducer.js +14 -11
  697. package/lib/component/reducer/Reducer.js.map +1 -1
  698. package/lib/component/reducer/actions/CorrelationsActions.js +1 -1
  699. package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
  700. package/lib/component/reducer/actions/DatabaseActions.d.ts +8 -11
  701. package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
  702. package/lib/component/reducer/actions/DatabaseActions.js +87 -51
  703. package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
  704. package/lib/component/reducer/actions/DomainActions.js.map +1 -1
  705. package/lib/component/reducer/actions/FiltersActions.d.ts +6 -7
  706. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  707. package/lib/component/reducer/actions/FiltersActions.js +77 -70
  708. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  709. package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
  710. package/lib/component/reducer/actions/InsetActions.js +8 -8
  711. package/lib/component/reducer/actions/InsetActions.js.map +1 -1
  712. package/lib/component/reducer/actions/LoadAction.d.ts +1 -4
  713. package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
  714. package/lib/component/reducer/actions/LoadAction.js +28 -18
  715. package/lib/component/reducer/actions/LoadAction.js.map +1 -1
  716. package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
  717. package/lib/component/reducer/actions/MoleculeActions.js +10 -4
  718. package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
  719. package/lib/component/reducer/actions/PeaksActions.js +1 -2
  720. package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
  721. package/lib/component/reducer/actions/PreferencesActions.d.ts +1 -1
  722. package/lib/component/reducer/actions/RangesActions.d.ts +3 -3
  723. package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
  724. package/lib/component/reducer/actions/RangesActions.js +6 -3
  725. package/lib/component/reducer/actions/RangesActions.js.map +1 -1
  726. package/lib/component/reducer/actions/SpectraActions.d.ts +7 -2
  727. package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
  728. package/lib/component/reducer/actions/SpectraActions.js +30 -17
  729. package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
  730. package/lib/component/reducer/actions/ToolsActions.d.ts +2 -14
  731. package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
  732. package/lib/component/reducer/actions/ToolsActions.js +5 -35
  733. package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
  734. package/lib/component/reducer/actions/unit_actions.d.ts +28 -0
  735. package/lib/component/reducer/actions/unit_actions.d.ts.map +1 -0
  736. package/lib/component/reducer/actions/unit_actions.js +58 -0
  737. package/lib/component/reducer/actions/unit_actions.js.map +1 -0
  738. package/lib/component/reducer/helper/Zoom1DManager.d.ts.map +1 -1
  739. package/lib/component/reducer/helper/Zoom1DManager.js +2 -2
  740. package/lib/component/reducer/helper/Zoom1DManager.js.map +1 -1
  741. package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
  742. package/lib/component/reducer/helper/ZoomHistoryManager.js +1 -2
  743. package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
  744. package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js +1 -1
  745. package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js.map +1 -1
  746. package/lib/component/reducer/preferences/actions/addWorkspace.js.map +1 -1
  747. package/lib/component/reducer/preferences/actions/analyzeSpectra.js.map +1 -1
  748. package/lib/component/reducer/preferences/actions/applyGeneralPreferences.d.ts.map +1 -1
  749. package/lib/component/reducer/preferences/actions/applyGeneralPreferences.js.map +1 -1
  750. package/lib/component/reducer/preferences/actions/setWorkspace.js.map +1 -1
  751. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -1
  752. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
  753. package/lib/component/reducer/preferences/preferencesReducer.d.ts +3 -3
  754. package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
  755. package/lib/component/reducer/preferences/preferencesReducer.js +1 -1
  756. package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts +3 -2
  757. package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts.map +1 -1
  758. package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js +3 -2
  759. package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js.map +1 -1
  760. package/lib/component/utility/Evaluate.d.ts +1 -1
  761. package/lib/component/utility/Evaluate.d.ts.map +1 -1
  762. package/lib/component/utility/Evaluate.js.map +1 -1
  763. package/lib/component/utility/LocalStorage.d.ts +3 -3
  764. package/lib/component/utility/LocalStorage.d.ts.map +1 -1
  765. package/lib/component/utility/LocalStorage.js.map +1 -1
  766. package/lib/component/utility/convertPathArrayToString.d.ts +1 -1
  767. package/lib/component/utility/convertPathArrayToString.d.ts.map +1 -1
  768. package/lib/component/utility/convertPathArrayToString.js.map +1 -1
  769. package/lib/component/utility/export.d.ts +3 -3
  770. package/lib/component/utility/export.d.ts.map +1 -1
  771. package/lib/component/utility/export.js +5 -6
  772. package/lib/component/utility/export.js.map +1 -1
  773. package/lib/component/utility/merge_replace_array.d.ts +8 -0
  774. package/lib/component/utility/merge_replace_array.d.ts.map +1 -0
  775. package/lib/component/utility/merge_replace_array.js +14 -0
  776. package/lib/component/utility/merge_replace_array.js.map +1 -0
  777. package/lib/component/utility/nucleusToString.d.ts +1 -1
  778. package/lib/component/utility/nucleusToString.d.ts.map +1 -1
  779. package/lib/component/utility/nucleusToString.js.map +1 -1
  780. package/lib/component/utility/replaceNucleiObjectKeys.js.map +1 -1
  781. package/lib/component/utility/stackOverlappingLabels.d.ts +5 -0
  782. package/lib/component/utility/stackOverlappingLabels.d.ts.map +1 -1
  783. package/lib/component/utility/stackOverlappingLabels.js +18 -6
  784. package/lib/component/utility/stackOverlappingLabels.js.map +1 -1
  785. package/lib/component/workspaces/exercise.d.ts.map +1 -1
  786. package/lib/component/workspaces/exercise.js +8 -0
  787. package/lib/component/workspaces/exercise.js.map +1 -1
  788. package/lib/component/workspaces/index.d.ts +7 -7
  789. package/lib/component/workspaces/index.d.ts.map +1 -1
  790. package/lib/component/workspaces/index.js.map +1 -1
  791. package/lib/component/workspaces/prediction.d.ts.map +1 -1
  792. package/lib/component/workspaces/prediction.js +8 -0
  793. package/lib/component/workspaces/prediction.js.map +1 -1
  794. package/lib/component/workspaces/simulation.d.ts.map +1 -1
  795. package/lib/component/workspaces/simulation.js +8 -0
  796. package/lib/component/workspaces/simulation.js.map +1 -1
  797. package/lib/component/workspaces/workspaceDefaultProperties.d.ts +3 -1
  798. package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
  799. package/lib/component/workspaces/workspaceDefaultProperties.js +62 -0
  800. package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
  801. package/lib/data/PredictionManager.d.ts.map +1 -1
  802. package/lib/data/PredictionManager.js +12 -2
  803. package/lib/data/PredictionManager.js.map +1 -1
  804. package/lib/data/SpectraManager.d.ts +1 -2
  805. package/lib/data/SpectraManager.d.ts.map +1 -1
  806. package/lib/data/SpectraManager.js +3 -36
  807. package/lib/data/SpectraManager.js.map +1 -1
  808. package/lib/data/data1d/Spectrum1D/get1DColor.d.ts +2 -2
  809. package/lib/data/data1d/Spectrum1D/get1DColor.d.ts.map +1 -1
  810. package/lib/data/data1d/Spectrum1D/get1DColor.js +6 -7
  811. package/lib/data/data1d/Spectrum1D/get1DColor.js.map +1 -1
  812. package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts +0 -5
  813. package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts.map +1 -1
  814. package/lib/data/data1d/Spectrum1D/get1DDataXY.js +0 -5
  815. package/lib/data/data1d/Spectrum1D/get1DDataXY.js.map +1 -1
  816. package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts +4 -9
  817. package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts.map +1 -1
  818. package/lib/data/data1d/Spectrum1D/getReferenceShift.js +3 -9
  819. package/lib/data/data1d/Spectrum1D/getReferenceShift.js.map +1 -1
  820. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts +11 -2
  821. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts.map +1 -1
  822. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +2 -2
  823. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js.map +1 -1
  824. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts.map +1 -1
  825. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js.map +1 -1
  826. package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts +2 -2
  827. package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +2 -2
  828. package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts +4 -2
  829. package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts.map +1 -1
  830. package/lib/data/data1d/Spectrum1D/ranges/detectSignals.js +1 -1
  831. package/lib/data/data1d/Spectrum1D/ranges/detectSignals.js.map +1 -1
  832. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.d.ts +7 -1
  833. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.d.ts.map +1 -1
  834. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js +1 -1
  835. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js.map +1 -1
  836. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.d.ts.map +1 -1
  837. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js +4 -2
  838. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js.map +1 -1
  839. package/lib/data/data1d/database.js.map +1 -1
  840. package/lib/data/data1d/multipleSpectraAnalysis.d.ts +7 -1
  841. package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
  842. package/lib/data/data1d/multipleSpectraAnalysis.js +3 -3
  843. package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
  844. package/lib/data/data2d/Spectrum2D/contours.d.ts +8 -6
  845. package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
  846. package/lib/data/data2d/Spectrum2D/contours.js +30 -10
  847. package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
  848. package/lib/data/data2d/Spectrum2D/get2DColor.d.ts +2 -2
  849. package/lib/data/data2d/Spectrum2D/get2DColor.d.ts.map +1 -1
  850. package/lib/data/data2d/Spectrum2D/get2DColor.js +8 -9
  851. package/lib/data/data2d/Spectrum2D/get2DColor.js.map +1 -1
  852. package/lib/data/data2d/Spectrum2D/getMissingProjection.js +2 -2
  853. package/lib/data/data2d/Spectrum2D/getMissingProjection.js.map +1 -1
  854. package/lib/data/data2d/Spectrum2D/getSlice.d.ts +6 -4
  855. package/lib/data/data2d/Spectrum2D/getSlice.d.ts.map +1 -1
  856. package/lib/data/data2d/Spectrum2D/getSlice.js.map +1 -1
  857. package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
  858. package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +1 -10
  859. package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
  860. package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js +1 -1
  861. package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js.map +1 -1
  862. package/lib/data/molecules/Molecule.d.ts +5 -1
  863. package/lib/data/molecules/Molecule.d.ts.map +1 -1
  864. package/lib/data/molecules/Molecule.js +10 -8
  865. package/lib/data/molecules/Molecule.js.map +1 -1
  866. package/lib/data/molecules/MoleculeManager.d.ts +0 -6
  867. package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
  868. package/lib/data/molecules/MoleculeManager.js +25 -25
  869. package/lib/data/molecules/MoleculeManager.js.map +1 -1
  870. package/lib/data/parseMeta/linkMetaWithSpectra.d.ts +1 -1
  871. package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
  872. package/lib/data/parseMeta/linkMetaWithSpectra.js +2 -2
  873. package/lib/data/parseMeta/linkMetaWithSpectra.js.map +1 -1
  874. package/lib/data/utilities/RangeUtilities.d.ts +0 -8
  875. package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
  876. package/lib/data/utilities/RangeUtilities.js.map +1 -1
  877. package/lib/data/utilities/checkModifierKeyActivated.d.ts +1 -1
  878. package/lib/data/utilities/checkModifierKeyActivated.d.ts.map +1 -1
  879. package/lib/data/utilities/checkModifierKeyActivated.js.map +1 -1
  880. package/lib/data/utilities/isNumber.d.ts +1 -1
  881. package/lib/data/utilities/isNumber.d.ts.map +1 -1
  882. package/lib/data/utilities/isNumber.js.map +1 -1
  883. package/lib/versionInfo.d.ts.map +1 -1
  884. package/lib/versionInfo.js +1 -1
  885. package/lib/versionInfo.js.map +1 -1
  886. package/package.json +54 -53
  887. package/src/component/1d/BrushTracker1D.tsx +18 -12
  888. package/src/component/1d/FloatPublicationString.tsx +52 -34
  889. package/src/component/1d/HorizontalAxis1D.tsx +69 -0
  890. package/src/component/1d/Line.tsx +1 -1
  891. package/src/component/1d/LinesSeries.tsx +2 -17
  892. package/src/component/1d/SVGContent1D.tsx +2 -4
  893. package/src/component/1d/Viewer1D.tsx +2 -0
  894. package/src/component/1d/baseline/BaselinePreview.tsx +242 -0
  895. package/src/component/1d/baseline/getMedianWindow.ts +6 -0
  896. package/src/component/1d/baseline/getMedianY.ts +15 -0
  897. package/src/component/1d/database/DatabaseElements.tsx +9 -4
  898. package/src/component/1d/database/DatabaseSpectrum.tsx +11 -3
  899. package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +8 -2
  900. package/src/component/1d/integral/IntegralsSeries.tsx +1 -1
  901. package/src/component/1d/jCouplingGraph/JGraphVerticalAxis.tsx +1 -1
  902. package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +6 -5
  903. package/src/component/1d/peaks/PeakAnnotations.tsx +1 -1
  904. package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +3 -0
  905. package/src/component/1d/peaks/PeakEditionManager.tsx +2 -5
  906. package/src/component/1d/peaks/usePeakShapesPath.ts +1 -1
  907. package/src/component/1d/ranges/Range.tsx +3 -3
  908. package/src/component/1d/ranges/Ranges.tsx +2 -2
  909. package/src/component/1d/tool/BaseLine.tsx +1 -1
  910. package/src/component/1d/tool/PeakPointer.tsx +3 -1
  911. package/src/component/1d/utilities/scale.ts +20 -13
  912. package/src/component/1d-2d/FieldEdition.tsx +2 -2
  913. package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +10 -22
  914. package/src/component/1d-2d/components/axis_unit_picker.tsx +53 -0
  915. package/src/component/1d-2d/tools/BrushXY.tsx +6 -6
  916. package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +1 -1
  917. package/src/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.tsx +2 -2
  918. package/src/component/2d/DirectAxis2D.tsx +104 -0
  919. package/src/component/2d/IndirectAxis2D.tsx +139 -0
  920. package/src/component/2d/SVGContent2D.tsx +4 -4
  921. package/src/component/2d/fid/FidCanvas.tsx +2 -2
  922. package/src/component/2d/ft/Contours.tsx +14 -27
  923. package/src/component/2d/utilities/extractSpectrumSignals.ts +2 -2
  924. package/src/component/2d/utilities/scale.ts +26 -6
  925. package/src/component/2d/zones/Signal.tsx +8 -12
  926. package/src/component/2d/zones/SignalCrosshair.tsx +3 -2
  927. package/src/component/2d/zones/SignalsGuideLines.tsx +2 -2
  928. package/src/component/2d/zones/Zone.tsx +4 -4
  929. package/src/component/EventsTrackers/BrushTracker.tsx +15 -7
  930. package/src/component/EventsTrackers/KeysListenerTracker.tsx +115 -128
  931. package/src/component/EventsTrackers/MouseTracker.tsx +10 -14
  932. package/src/component/SVGTable.tsx +5 -5
  933. package/src/component/assignment/utilities/getAssignments.ts +1 -1
  934. package/src/component/context/DispatchContext.tsx +3 -1
  935. package/src/component/context/FilterSyncOptionsContext.tsx +62 -20
  936. package/src/component/context/ScaleContext.tsx +17 -15
  937. package/src/component/context/SortSpectraContext.tsx +1 -1
  938. package/src/component/elements/ActionsButtonsPopover.tsx +4 -5
  939. package/src/component/elements/Alert.tsx +2 -2
  940. package/src/component/elements/Anchor.tsx +361 -0
  941. package/src/component/elements/Button.tsx +2 -1
  942. package/src/component/elements/ColumnWrapper.tsx +3 -1
  943. package/src/component/elements/ContextMenuBluePrint.tsx +2 -2
  944. package/src/component/elements/D3Axis.tsx +118 -47
  945. package/src/component/elements/DialogManager.tsx +1 -1
  946. package/src/component/elements/DraggableDialog.tsx +3 -3
  947. package/src/component/elements/EditableColumn.tsx +22 -16
  948. package/src/component/elements/Input.tsx +3 -2
  949. package/src/component/elements/InputRange.tsx +3 -3
  950. package/src/component/elements/Label.tsx +1 -1
  951. package/src/component/elements/MoleculeSelection.tsx +1 -1
  952. package/src/component/elements/NumberInput2.tsx +2 -2
  953. package/src/component/elements/NumberInput2Controller.tsx +1 -1
  954. package/src/component/elements/NumberInputField.tsx +23 -0
  955. package/src/component/elements/ReactTable/Elements/EmptyDataRow.tsx +8 -3
  956. package/src/component/elements/ReactTable/Elements/ReactTableRow.tsx +23 -11
  957. package/src/component/elements/ReactTable/ReactTable.tsx +44 -14
  958. package/src/component/elements/ReactTable/utility/addCustomColumn.tsx +2 -2
  959. package/src/component/elements/ReadOnly.tsx +3 -3
  960. package/src/component/elements/Sections.tsx +2 -2
  961. package/src/component/elements/Tab/DeleteButton.tsx +2 -2
  962. package/src/component/elements/TabTitle.tsx +2 -2
  963. package/src/component/elements/dropDownButton/DropDownButton.tsx +1 -1
  964. package/src/component/elements/export/ExportContent.tsx +12 -32
  965. package/src/component/elements/export/ExportOptionsModal.tsx +1 -1
  966. package/src/component/elements/export/units.ts +1 -1
  967. package/src/component/elements/export/useExportConfigurer.tsx +1 -1
  968. package/src/component/elements/resizer/SVGResizer.tsx +3 -3
  969. package/src/component/header/Header.tsx +2 -2
  970. package/src/component/header/SimpleBaseLineCorrectionOptionsPanel.tsx +144 -84
  971. package/src/component/highlight/index.tsx +57 -38
  972. package/src/component/hooks/reduce2DSpectrum.ts +98 -0
  973. package/src/component/hooks/use2DReducer.tsx +56 -0
  974. package/src/component/hooks/useCheckToolsVisibility.ts +1 -1
  975. package/src/component/hooks/useCombinedRefs.ts +1 -0
  976. package/src/component/hooks/useCreateNmriumZip.ts +37 -0
  977. package/src/component/hooks/useExport.tsx +16 -31
  978. package/src/component/hooks/useFilter.ts +1 -2
  979. package/src/component/hooks/useSVGUnitConverter.ts +1 -1
  980. package/src/component/hooks/useSaveSettings.tsx +8 -5
  981. package/src/component/hooks/useTableSortBy.tsx +12 -8
  982. package/src/component/hooks/useTriggerNewAssignmentLabel.ts +1 -1
  983. package/src/component/hooks/use_axis_unit.ts +329 -0
  984. package/src/component/hooks/use_gridlines_config.ts +18 -0
  985. package/src/component/hooks/use_ticks_config.ts +15 -0
  986. package/src/component/hooks/use_visible_spectra_1d.ts +21 -0
  987. package/src/component/loader/useLoadFiles.ts +30 -28
  988. package/src/component/main/InnerNMRium.tsx +7 -4
  989. package/src/component/main/NMRium.tsx +50 -2
  990. package/src/component/main/NMRiumRefAPI.ts +11 -1
  991. package/src/component/main/NMRiumStateProvider.tsx +70 -38
  992. package/src/component/main/NMRiumViewer.tsx +1 -1
  993. package/src/component/modal/LoadJCAMPModal.tsx +4 -4
  994. package/src/component/modal/MultipletAnalysisModal.tsx +2 -2
  995. package/src/component/modal/PublicationStringModal.tsx +10 -1
  996. package/src/component/modal/SaveAsModal.tsx +1 -1
  997. package/src/component/modal/changeSum/SelectMolecule.tsx +1 -1
  998. package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +3 -2
  999. package/src/component/modal/editRange/forms/components/SignalsContent.tsx +3 -3
  1000. package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +4 -4
  1001. package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +7 -3
  1002. package/src/component/modal/metaImportation/MetaImportationModal.tsx +2 -2
  1003. package/src/component/modal/metaImportation/utils/mapColumnToSelectItems.ts +1 -1
  1004. package/src/component/modal/setting/WorkspaceItem.tsx +7 -7
  1005. package/src/component/modal/setting/general_settings.tsx +13 -503
  1006. package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +94 -0
  1007. package/src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx +56 -0
  1008. package/src/component/modal/setting/tanstack_general_settings/general_settings.tsx +83 -50
  1009. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +59 -2
  1010. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.tsx +15 -20
  1011. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx +45 -79
  1012. package/src/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.ts +89 -0
  1013. package/src/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.tsx +75 -0
  1014. package/src/component/modal/setting/tanstack_general_settings/tabs/axis_tab.tsx +116 -0
  1015. package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +187 -0
  1016. package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +48 -8
  1017. package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +123 -0
  1018. package/src/component/modal/setting/tanstack_general_settings/tabs/general_tab.tsx +12 -6
  1019. package/src/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.tsx +124 -233
  1020. package/src/component/modal/setting/tanstack_general_settings/tabs/panels_tab.tsx +10 -10
  1021. package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +298 -0
  1022. package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +218 -0
  1023. package/src/component/modal/setting/tanstack_general_settings/tabs/tools_tab.tsx +155 -0
  1024. package/src/component/modal/setting/tanstack_general_settings/ui/cell_actions.tsx +18 -0
  1025. package/src/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.tsx +45 -0
  1026. package/src/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.tsx +42 -0
  1027. package/src/component/modal/setting/tanstack_general_settings/ui/cell_input.tsx +127 -0
  1028. package/src/component/modal/setting/tanstack_general_settings/ui/table.tsx +71 -0
  1029. package/src/component/modal/setting/tanstack_general_settings/ui/table_section.tsx +52 -0
  1030. package/src/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.ts +21 -0
  1031. package/src/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.ts +24 -0
  1032. package/src/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.ts +23 -0
  1033. package/src/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.ts +12 -0
  1034. package/src/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.ts +8 -6
  1035. package/src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts +11 -8
  1036. package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts +17 -9
  1037. package/src/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.ts +29 -0
  1038. package/src/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.ts +26 -0
  1039. package/src/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.ts +34 -0
  1040. package/src/component/modal/setting/tanstack_general_settings/validation/utils.ts +30 -0
  1041. package/src/component/modal/setting/tanstack_general_settings/validation.ts +19 -33
  1042. package/src/component/modal/setting/tanstack_general_settings/workspaces/actions.tsx +173 -0
  1043. package/src/component/modal/setting/tanstack_general_settings/workspaces/picker.tsx +91 -0
  1044. package/src/component/modal/setting/tanstack_general_settings/workspaces/props.ts +8 -0
  1045. package/src/component/panels/AutomaticAssignment/AutomaticAssignmentTable.tsx +4 -3
  1046. package/src/component/panels/IntegralsPanel/IntegralTable.tsx +11 -10
  1047. package/src/component/panels/IntegralsPanel/IntegralsPreferences.tsx +63 -60
  1048. package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.tsx +6 -1
  1049. package/src/component/panels/MoleculesPanel/MoleculeHeader.tsx +7 -6
  1050. package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +1 -0
  1051. package/src/component/panels/MoleculesPanel/MoleculeStructure.tsx +45 -5
  1052. package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +38 -33
  1053. package/src/component/panels/MoleculesPanel/utilities/extractFromAtom.ts +3 -3
  1054. package/src/component/panels/Panels.tsx +2 -1
  1055. package/src/component/panels/PanelsBar.tsx +4 -3
  1056. package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +34 -33
  1057. package/src/component/panels/PeaksPanel/PeaksTable.tsx +9 -8
  1058. package/src/component/panels/RangesPanel/RangesPanel.tsx +19 -16
  1059. package/src/component/panels/RangesPanel/RangesPreferences.tsx +47 -46
  1060. package/src/component/panels/RangesPanel/RangesTable.tsx +5 -5
  1061. package/src/component/panels/RangesPanel/RangesTableRow.tsx +19 -15
  1062. package/src/component/panels/RangesPanel/TableColumns/RelativeColumn.tsx +4 -10
  1063. package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +9 -9
  1064. package/src/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.tsx +8 -11
  1065. package/src/component/panels/RangesPanel/hooks/useMapRanges.ts +16 -7
  1066. package/src/component/panels/SpectraPanel/SpectraTable.tsx +2 -2
  1067. package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +7 -10
  1068. package/src/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.tsx +5 -7
  1069. package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +15 -10
  1070. package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +1 -1
  1071. package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.tsx +5 -4
  1072. package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.tsx +3 -2
  1073. package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.tsx +4 -11
  1074. package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.tsx +32 -27
  1075. package/src/component/panels/SummaryPanel/SetMolecularFormulaModal.tsx +15 -7
  1076. package/src/component/panels/SummaryPanel/SummaryPanel.tsx +1 -1
  1077. package/src/component/panels/SummaryPanel/utilities/Utilities.ts +1 -1
  1078. package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.tsx +4 -7
  1079. package/src/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.tsx +6 -9
  1080. package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.tsx +6 -5
  1081. package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.tsx +5 -1
  1082. package/src/component/panels/ZonesPanel/ZonesPreferences.tsx +57 -57
  1083. package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +11 -12
  1084. package/src/component/panels/databasePanel/DatabasePanel.tsx +75 -67
  1085. package/src/component/panels/databasePanel/DatabasePreferences.tsx +114 -113
  1086. package/src/component/panels/databasePanel/DatabaseTable.tsx +34 -3
  1087. package/src/component/panels/extra/utilities/MultiplicityUtilities.ts +9 -6
  1088. package/src/component/panels/extra/utilities/settingImperativeHandle.ts +3 -3
  1089. package/src/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.tsx +328 -81
  1090. package/src/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.tsx +4 -3
  1091. package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +37 -54
  1092. package/src/component/panels/filtersPanel/Filters/PhaseCorrectionOptionsPanel.tsx +3 -3
  1093. package/src/component/panels/filtersPanel/Filters/PhaseCorrectionTwoDimensionsOptionsPanel.tsx +3 -3
  1094. package/src/component/panels/filtersPanel/Filters/ShiftOptionsPanel.tsx +3 -2
  1095. package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +5 -5
  1096. package/src/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.tsx +3 -2
  1097. package/src/component/panels/filtersPanel/Filters/base/baselineCorrectionFields.ts +55 -0
  1098. package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +148 -69
  1099. package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +2 -1
  1100. package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.tsx +18 -12
  1101. package/src/component/panels/multipleAnalysisPanel/base/AnalysisCell.tsx +3 -4
  1102. package/src/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.tsx +5 -10
  1103. package/src/component/panels/multipleAnalysisPanel/preferences/MultipleAnalysisCodeEditor.tsx +1 -1
  1104. package/src/component/panels/predictionPanel/PredictionOptionsPanel.tsx +138 -109
  1105. package/src/component/panels/predictionPanel/PredictionPreferences.tsx +34 -34
  1106. package/src/component/reducer/Reducer.ts +23 -13
  1107. package/src/component/reducer/actions/CorrelationsActions.ts +1 -1
  1108. package/src/component/reducer/actions/DatabaseActions.ts +131 -81
  1109. package/src/component/reducer/actions/DomainActions.ts +4 -4
  1110. package/src/component/reducer/actions/FiltersActions.ts +98 -103
  1111. package/src/component/reducer/actions/InsetActions.ts +8 -5
  1112. package/src/component/reducer/actions/LoadAction.ts +36 -27
  1113. package/src/component/reducer/actions/MoleculeActions.ts +10 -4
  1114. package/src/component/reducer/actions/PeaksActions.ts +1 -1
  1115. package/src/component/reducer/actions/PreferencesActions.ts +1 -1
  1116. package/src/component/reducer/actions/RangesActions.ts +9 -6
  1117. package/src/component/reducer/actions/SpectraActions.ts +56 -22
  1118. package/src/component/reducer/actions/ToolsActions.ts +4 -72
  1119. package/src/component/reducer/actions/unit_actions.ts +138 -0
  1120. package/src/component/reducer/helper/Zoom1DManager.ts +2 -1
  1121. package/src/component/reducer/helper/ZoomHistoryManager.ts +1 -2
  1122. package/src/component/reducer/helper/removeSpectrumRelatedObjectsById.ts +1 -1
  1123. package/src/component/reducer/preferences/actions/addWorkspace.ts +1 -1
  1124. package/src/component/reducer/preferences/actions/analyzeSpectra.ts +1 -1
  1125. package/src/component/reducer/preferences/actions/applyGeneralPreferences.ts +1 -2
  1126. package/src/component/reducer/preferences/actions/setWorkspace.ts +1 -1
  1127. package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +1 -1
  1128. package/src/component/reducer/preferences/preferencesReducer.ts +4 -4
  1129. package/src/component/reducer/preferences/utilities/getPreferencesByWorkspace.ts +8 -8
  1130. package/src/component/utility/Evaluate.ts +1 -1
  1131. package/src/component/utility/LocalStorage.ts +6 -3
  1132. package/src/component/utility/convertPathArrayToString.ts +1 -1
  1133. package/src/component/utility/export.ts +13 -12
  1134. package/src/component/utility/merge_replace_array.ts +12 -0
  1135. package/src/component/utility/nucleusToString.ts +1 -1
  1136. package/src/component/utility/replaceNucleiObjectKeys.ts +1 -1
  1137. package/src/component/utility/stackOverlappingLabels.ts +27 -9
  1138. package/src/component/workspaces/exercise.ts +8 -0
  1139. package/src/component/workspaces/index.ts +1 -1
  1140. package/src/component/workspaces/prediction.ts +8 -0
  1141. package/src/component/workspaces/simulation.ts +8 -0
  1142. package/src/component/workspaces/workspaceDefaultProperties.ts +73 -14
  1143. package/src/data/PredictionManager.ts +32 -7
  1144. package/src/data/SpectraManager.ts +3 -44
  1145. package/src/data/data1d/Spectrum1D/get1DColor.ts +12 -14
  1146. package/src/data/data1d/Spectrum1D/get1DDataXY.ts +0 -7
  1147. package/src/data/data1d/Spectrum1D/getReferenceShift.ts +5 -10
  1148. package/src/data/data1d/Spectrum1D/peaks/autoPeakPicking.ts +17 -6
  1149. package/src/data/data1d/Spectrum1D/peaks/optimizePeaks.ts +3 -7
  1150. package/src/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.ts +2 -2
  1151. package/src/data/data1d/Spectrum1D/ranges/detectSignals.ts +11 -8
  1152. package/src/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.ts +9 -3
  1153. package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +4 -0
  1154. package/src/data/data1d/database.ts +1 -1
  1155. package/src/data/data1d/multipleSpectraAnalysis.ts +20 -7
  1156. package/src/data/data2d/Spectrum2D/contours.ts +40 -19
  1157. package/src/data/data2d/Spectrum2D/get2DColor.ts +10 -15
  1158. package/src/data/data2d/Spectrum2D/getMissingProjection.ts +2 -2
  1159. package/src/data/data2d/Spectrum2D/getSlice.ts +6 -5
  1160. package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +2 -18
  1161. package/src/data/data2d/Spectrum2D/zones/changeZoneSignal.ts +2 -2
  1162. package/src/data/molecules/Molecule.ts +18 -8
  1163. package/src/data/molecules/MoleculeManager.ts +31 -29
  1164. package/src/data/parseMeta/linkMetaWithSpectra.ts +4 -4
  1165. package/src/data/utilities/RangeUtilities.ts +1 -9
  1166. package/src/data/utilities/checkModifierKeyActivated.ts +1 -1
  1167. package/src/data/utilities/isNumber.ts +1 -1
  1168. package/src/versionInfo.ts +1 -1
  1169. package/lib/component/1d/XAxis1D.d.ts +0 -6
  1170. package/lib/component/1d/XAxis1D.d.ts.map +0 -1
  1171. package/lib/component/1d/XAxis1D.js +0 -24
  1172. package/lib/component/1d/XAxis1D.js.map +0 -1
  1173. package/lib/component/1d/tool/BaseLineZones.d.ts +0 -3
  1174. package/lib/component/1d/tool/BaseLineZones.d.ts.map +0 -1
  1175. package/lib/component/1d/tool/BaseLineZones.js +0 -41
  1176. package/lib/component/1d/tool/BaseLineZones.js.map +0 -1
  1177. package/lib/component/2d/XAxis.d.ts.map +0 -1
  1178. package/lib/component/2d/XAxis.js +0 -22
  1179. package/lib/component/2d/XAxis.js.map +0 -1
  1180. package/lib/component/2d/YAxis.d.ts +0 -12
  1181. package/lib/component/2d/YAxis.d.ts.map +0 -1
  1182. package/lib/component/2d/YAxis.js +0 -27
  1183. package/lib/component/2d/YAxis.js.map +0 -1
  1184. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts +0 -9
  1185. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts.map +0 -1
  1186. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +0 -118
  1187. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js.map +0 -1
  1188. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.d.ts +0 -3
  1189. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.d.ts.map +0 -1
  1190. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +0 -153
  1191. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +0 -1
  1192. package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts +0 -2
  1193. package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts.map +0 -1
  1194. package/lib/component/modal/setting/settings-tabs/ExportTabContent.js +0 -73
  1195. package/lib/component/modal/setting/settings-tabs/ExportTabContent.js.map +0 -1
  1196. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.d.ts +0 -2
  1197. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.d.ts.map +0 -1
  1198. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js +0 -89
  1199. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js.map +0 -1
  1200. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.d.ts +0 -3
  1201. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.d.ts.map +0 -1
  1202. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +0 -46
  1203. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js.map +0 -1
  1204. package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.d.ts +0 -3
  1205. package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.d.ts.map +0 -1
  1206. package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.js +0 -103
  1207. package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.js.map +0 -1
  1208. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.d.ts +0 -3
  1209. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.d.ts.map +0 -1
  1210. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +0 -99
  1211. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +0 -1
  1212. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.d.ts +0 -2
  1213. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.d.ts.map +0 -1
  1214. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js +0 -106
  1215. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js.map +0 -1
  1216. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts +0 -3
  1217. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts.map +0 -1
  1218. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +0 -52
  1219. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +0 -1
  1220. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.d.ts +0 -3
  1221. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.d.ts.map +0 -1
  1222. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js +0 -138
  1223. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js.map +0 -1
  1224. package/lib/component/modal/setting/settings-tabs/ToolsTabContent.d.ts +0 -2
  1225. package/lib/component/modal/setting/settings-tabs/ToolsTabContent.d.ts.map +0 -1
  1226. package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js +0 -149
  1227. package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js.map +0 -1
  1228. package/lib/component/modal/setting/settingsValidation.d.ts +0 -2
  1229. package/lib/component/modal/setting/settingsValidation.d.ts.map +0 -1
  1230. package/lib/component/modal/setting/settingsValidation.js +0 -70
  1231. package/lib/component/modal/setting/settingsValidation.js.map +0 -1
  1232. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts +0 -7
  1233. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts.map +0 -1
  1234. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js +0 -105
  1235. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js.map +0 -1
  1236. package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.d.ts.map +0 -1
  1237. package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.js.map +0 -1
  1238. package/lib/data/types/common/Keys.d.ts +0 -4
  1239. package/lib/data/types/common/Keys.d.ts.map +0 -1
  1240. package/lib/data/types/common/Keys.js +0 -2
  1241. package/lib/data/types/common/Keys.js.map +0 -1
  1242. package/src/component/1d/XAxis1D.tsx +0 -54
  1243. package/src/component/1d/tool/BaseLineZones.tsx +0 -83
  1244. package/src/component/2d/XAxis.tsx +0 -58
  1245. package/src/component/2d/YAxis.tsx +0 -79
  1246. package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +0 -278
  1247. package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +0 -221
  1248. package/src/component/modal/setting/settings-tabs/ExportTabContent.tsx +0 -252
  1249. package/src/component/modal/setting/settings-tabs/ExternalAPIsTabContent.tsx +0 -193
  1250. package/src/component/modal/setting/settings-tabs/GeneralTabContent.tsx +0 -152
  1251. package/src/component/modal/setting/settings-tabs/ImportationFiltersTabContent.tsx +0 -173
  1252. package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +0 -224
  1253. package/src/component/modal/setting/settings-tabs/NucleiTabContent.tsx +0 -230
  1254. package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +0 -113
  1255. package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +0 -308
  1256. package/src/component/modal/setting/settings-tabs/ToolsTabContent.tsx +0 -181
  1257. package/src/component/modal/setting/settingsValidation.ts +0 -92
  1258. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.tsx +0 -218
  1259. package/src/data/types/common/Keys.ts +0 -11
  1260. /package/src/component/modal/setting/tanstack_general_settings/{utils/checkUniqueByKey.ts → validation/check_unique_by_key.ts} +0 -0
@@ -0,0 +1,242 @@
1
+ import styled from '@emotion/styled';
2
+ import type { BaselineCorrectionOptions } from '@zakodium/nmr-types';
3
+ import type { Spectrum1D } from '@zakodium/nmrium-core';
4
+ import { xyBaselineCalculation } from 'nmr-processing';
5
+ import { useMemo, useRef, useState } from 'react';
6
+
7
+ import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/isSpectrum1D.ts';
8
+ import { useChartData } from '../../context/ChartContext.tsx';
9
+ import { useFilterSyncOptions } from '../../context/FilterSyncOptionsContext.tsx';
10
+ import { useScaleChecked } from '../../context/ScaleContext.tsx';
11
+ import { Anchor } from '../../elements/Anchor.tsx';
12
+ import { useActiveSpectrum } from '../../hooks/useActiveSpectrum.ts';
13
+ import { useIndicatorLineColor } from '../../hooks/useIndicatorLineColor.ts';
14
+ import useSpectrum from '../../hooks/useSpectrum.ts';
15
+ import useTempSpectrum from '../../hooks/useTempSpectrum.ts';
16
+ import type { BaselineAlgorithmOptions } from '../../panels/filtersPanel/Filters/base/baselineCorrectionFields.ts';
17
+ import {
18
+ DEFAULT_BASELINE_ALGORITHM,
19
+ getBaselineValues,
20
+ } from '../../panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx';
21
+ import { PathBuilder } from '../../utility/PathBuilder.ts';
22
+
23
+ import { getMedianWindow } from './getMedianWindow.ts';
24
+ import { getMedianY } from './getMedianY.ts';
25
+
26
+ const SVGWrapper = styled.svg`
27
+ position: absolute;
28
+ width: 100%;
29
+ left: 0;
30
+ top: 0;
31
+ height: 100%;
32
+ overflow: hidden;
33
+ pointer-events: none;
34
+ `;
35
+
36
+ const Container = styled.div`
37
+ position: absolute;
38
+ width: 100%;
39
+ left: 0;
40
+ top: 0;
41
+ height: 100%;
42
+ overflow: hidden;
43
+ pointer-events: none;
44
+ `;
45
+
46
+ export function BaselinePreview() {
47
+ // const spectrum = useSpectrum();
48
+ const spectrum = useTempSpectrum();
49
+ const processedSpectrum = useSpectrum();
50
+
51
+ const activeSpectrum = useActiveSpectrum();
52
+ const {
53
+ toolOptions: { selectedTool },
54
+ width,
55
+ margin: { left, right },
56
+ } = useChartData();
57
+ const indicatorColor = useIndicatorLineColor();
58
+
59
+ const { updateFilterOptions, sharedFilterOptions } =
60
+ useFilterSyncOptions<
61
+ Partial<{ anchors: number[]; livePreview: boolean }>
62
+ >();
63
+
64
+ // Only used during active drag for local updates
65
+ const [draggingAnchor, setDraggingAnchor] = useState<{
66
+ index: number;
67
+ x: number;
68
+ } | null>(null);
69
+ const draggingAnchorRef = useRef<{ index: number; x: number } | null>(null);
70
+
71
+ const containerRef = useRef<HTMLDivElement>(null);
72
+ const { scaleX, scaleY, shiftY } = useScaleChecked();
73
+
74
+ const anchors = useMemo(
75
+ () =>
76
+ (sharedFilterOptions?.anchors ?? []).map((xVal, i) =>
77
+ draggingAnchor?.index === i ? draggingAnchor.x : xVal,
78
+ ),
79
+ [sharedFilterOptions?.anchors, draggingAnchor],
80
+ );
81
+
82
+ if (
83
+ !isSpectrum1D(spectrum) ||
84
+ !isSpectrum1D(processedSpectrum) ||
85
+ selectedTool !== 'baselineCorrection' ||
86
+ !activeSpectrum
87
+ ) {
88
+ return;
89
+ }
90
+
91
+ function handleDragMove(index: number, newX: number) {
92
+ const clampedX = Math.max(left, Math.min(width - right, newX));
93
+ const updated = { index, x: scaleX().invert(clampedX) };
94
+ draggingAnchorRef.current = updated;
95
+ setDraggingAnchor(updated);
96
+ }
97
+
98
+ function handleDragEnd(index: number) {
99
+ const finalX = draggingAnchorRef.current?.x;
100
+ draggingAnchorRef.current = null;
101
+ setDraggingAnchor(null);
102
+ updateFilterOptions((prev) => ({
103
+ ...prev,
104
+ anchors: (prev?.anchors ?? []).map((x, i) =>
105
+ i === index ? (finalX ?? x) : x,
106
+ ),
107
+ }));
108
+ }
109
+
110
+ function handleDelete(index: number) {
111
+ updateFilterOptions((prev) => ({
112
+ ...prev,
113
+ anchors: (prev?.anchors ?? []).filter((_, i) => i !== index),
114
+ }));
115
+ }
116
+
117
+ return (
118
+ <>
119
+ <SpectrumPreview spectrum={spectrum} anchors={anchors} />
120
+ <Container ref={containerRef}>
121
+ {anchors.map((xPPM, index) => {
122
+ const x = scaleX()(xPPM);
123
+ const yPPM = getMedianY(
124
+ xPPM,
125
+ sharedFilterOptions?.livePreview ? processedSpectrum : spectrum,
126
+ );
127
+ const v = shiftY * (activeSpectrum?.index || 0);
128
+ const y = scaleY({ spectrumId: activeSpectrum?.id })(yPPM) - v;
129
+
130
+ return (
131
+ <Anchor
132
+ // eslint-disable-next-line react/no-array-index-key
133
+ key={index + yPPM}
134
+ position={{ x, y }}
135
+ containerRef={containerRef}
136
+ onDragMove={(x) => handleDragMove(index, x)}
137
+ onDragEnd={() => handleDragEnd(index)}
138
+ onDelete={() => handleDelete(index)}
139
+ anchorStyle={{
140
+ size: 10,
141
+ hoverStroke: 'red',
142
+ dragStroke: 'darkgreen',
143
+ guideColor: 'red',
144
+ guideDragColor: 'darkgreen',
145
+ stroke: indicatorColor,
146
+ }}
147
+ />
148
+ );
149
+ })}
150
+ </Container>
151
+ </>
152
+ );
153
+ }
154
+
155
+ interface SpectrumPreviewProps {
156
+ spectrum: Spectrum1D;
157
+ anchors: number[];
158
+ }
159
+
160
+ function SpectrumPreview({ spectrum, anchors }: SpectrumPreviewProps) {
161
+ const { scaleX, scaleY, shiftY } = useScaleChecked();
162
+ const activeSpectrum = useActiveSpectrum();
163
+ const indicatorColor = useIndicatorLineColor();
164
+ const { sharedFilterOptions } =
165
+ useFilterSyncOptions<BaselineAlgorithmOptions>();
166
+
167
+ const baselineData = useMemo(() => {
168
+ const { x, re } = spectrum.data;
169
+
170
+ if (
171
+ !sharedFilterOptions ||
172
+ anchors.length <= 1 ||
173
+ sharedFilterOptions?.livePreview
174
+ ) {
175
+ return { x, y: new Float64Array(x.length) };
176
+ }
177
+ const medianWindow = getMedianWindow(spectrum);
178
+ const options = {
179
+ ...getBaselineValues(
180
+ sharedFilterOptions?.algorithm || DEFAULT_BASELINE_ALGORITHM,
181
+ ),
182
+ ...sharedFilterOptions,
183
+ anchors,
184
+ medianWindow,
185
+ };
186
+
187
+ const y = xyBaselineCalculation(
188
+ { x, y: re },
189
+ options as BaselineCorrectionOptions,
190
+ ) as Float64Array;
191
+ return { x, y };
192
+ }, [anchors, sharedFilterOptions, spectrum]);
193
+
194
+ const paths = useMemo(() => {
195
+ const { x, y } = baselineData;
196
+
197
+ const _scaleX = scaleX();
198
+ const _scaleY = scaleY({ spectrumId: activeSpectrum?.id });
199
+
200
+ const pathBuilder = new PathBuilder();
201
+
202
+ if (!x || !y || !_scaleX(0)) return '';
203
+
204
+ const v = shiftY * (activeSpectrum?.index || 0);
205
+
206
+ const firstX = _scaleX(x[0]);
207
+ const firstY = _scaleY(y[0]) - v;
208
+ pathBuilder.moveTo(firstX, firstY);
209
+
210
+ for (let i = 1; i < x.length; i++) {
211
+ const px = _scaleX(x[i]);
212
+ const py = _scaleY(y[i]) - v;
213
+ pathBuilder.lineTo(px, py);
214
+ }
215
+
216
+ return pathBuilder.toString();
217
+ }, [
218
+ baselineData,
219
+ scaleX,
220
+ scaleY,
221
+ activeSpectrum?.id,
222
+ activeSpectrum?.index,
223
+ shiftY,
224
+ ]);
225
+
226
+ if (sharedFilterOptions?.livePreview) {
227
+ return null;
228
+ }
229
+
230
+ return (
231
+ <SVGWrapper>
232
+ <path
233
+ className="baseline-preview-line"
234
+ data-testid="baseline-preview-line"
235
+ stroke={indicatorColor}
236
+ fill="none"
237
+ d={paths}
238
+ strokeWidth="2"
239
+ />
240
+ </SVGWrapper>
241
+ );
242
+ }
@@ -0,0 +1,6 @@
1
+ import type { Spectrum1D } from '@zakodium/nmrium-core';
2
+
3
+ export function getMedianWindow(spectrum: Spectrum1D) {
4
+ const { data } = spectrum;
5
+ return data.x.length / 100;
6
+ }
@@ -0,0 +1,15 @@
1
+ import type { Spectrum1D } from '@zakodium/nmrium-core';
2
+ import { xFindClosestIndex, xMedian } from 'ml-spectra-processing';
3
+
4
+ import { getMedianWindow } from './getMedianWindow.ts';
5
+
6
+ export function getMedianY(x: number, spectrum: Spectrum1D): number {
7
+ const size = getMedianWindow(spectrum);
8
+ const { x: xValues, re: y } = spectrum.data;
9
+ const halfWindow = Math.floor(size / 2);
10
+ const centerIndex = xFindClosestIndex(xValues, x);
11
+ const fromIndex = Math.max(0, centerIndex - halfWindow);
12
+ const toIndex = Math.min(y.length, centerIndex + halfWindow + 1);
13
+ const window = y.subarray(fromIndex, toIndex);
14
+ return xMedian(window, { exact: false });
15
+ }
@@ -1,16 +1,21 @@
1
- import { useHighlightData } from '../../highlight/index.js';
1
+ import {
2
+ isHighlightEventSource,
3
+ useHighlightData,
4
+ } from '../../highlight/index.js';
2
5
  import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
3
6
 
4
7
  import DatabaseSpectrum from './DatabaseSpectrum.js';
5
8
  import ResurrectedDatabaseRanges from './ResurrectedDatabaseRanges.js';
6
9
 
7
10
  function DatabaseElements() {
8
- const { highlight } = useHighlightData();
11
+ const {
12
+ highlight: { sourceData },
13
+ } = useHighlightData();
9
14
  const { previewJcamp } = usePanelPreferences('database');
10
- const { jcampURL } = highlight?.sourceData?.extra || {};
11
- if (highlight.sourceData?.type !== 'DATABASE') {
15
+ if (!sourceData || !isHighlightEventSource(sourceData, 'DATABASE')) {
12
16
  return null;
13
17
  }
18
+ const { jcampURL } = sourceData.extra || {};
14
19
 
15
20
  if (previewJcamp && jcampURL) {
16
21
  return <DatabaseSpectrum />;
@@ -7,7 +7,10 @@ import { useChartData } from '../../context/ChartContext.js';
7
7
  import { useCore } from '../../context/CoreContext.js';
8
8
  import { useScaleChecked } from '../../context/ScaleContext.js';
9
9
  import { useToaster } from '../../context/ToasterContext.js';
10
- import { useHighlightData } from '../../highlight/index.js';
10
+ import {
11
+ isHighlightEventSource,
12
+ useHighlightData,
13
+ } from '../../highlight/index.js';
11
14
  import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
12
15
  import { spinnerContext } from '../../loader/SpinnerContext.js';
13
16
  import { PathBuilder } from '../../utility/PathBuilder.js';
@@ -22,7 +25,10 @@ function DatabaseSpectrum() {
22
25
  const toaster = useToaster();
23
26
  const { color, marginBottom } = usePanelPreferences('database');
24
27
  const { jcampURL: jcampRelativeURL = '', baseURL } =
25
- highlight?.sourceData?.extra || {};
28
+ highlight?.sourceData &&
29
+ isHighlightEventSource(highlight.sourceData, 'DATABASE')
30
+ ? highlight.sourceData.extra
31
+ : { jcampURL: '', baseURL: '' };
26
32
  const getSpinner = useContext(spinnerContext);
27
33
 
28
34
  const scaleY = useCallback(
@@ -47,7 +53,9 @@ function DatabaseSpectrum() {
47
53
  try {
48
54
  setLoading(true);
49
55
  const url = new URL(jcampRelativeURL, baseURL);
50
- const [{ data }] = await core.readFromWebSource({
56
+ const {
57
+ state: { data },
58
+ } = await core.readFromWebSource({
51
59
  entries: [{ relativePath: url.pathname, baseURL: url.origin }],
52
60
  });
53
61
  setLoading(false);
@@ -4,7 +4,10 @@ import { rangesToXY } from 'nmr-processing';
4
4
 
5
5
  import { useChartData } from '../../context/ChartContext.js';
6
6
  import { useScaleChecked } from '../../context/ScaleContext.js';
7
- import { useHighlightData } from '../../highlight/index.js';
7
+ import {
8
+ isHighlightEventSource,
9
+ useHighlightData,
10
+ } from '../../highlight/index.js';
8
11
  import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
9
12
  import useSpectrum from '../../hooks/useSpectrum.js';
10
13
  import { useVerticalAlign } from '../../hooks/useVerticalAlign.js';
@@ -22,7 +25,10 @@ function ResurrectedDatabaseRanges() {
22
25
  const { scaleX, spectraBottomMargin } = useScaleChecked();
23
26
  const { color, marginBottom } = usePanelPreferences('database');
24
27
 
25
- if (highlight.sourceData?.type !== 'DATABASE') {
28
+ if (
29
+ !highlight?.sourceData ||
30
+ !isHighlightEventSource(highlight.sourceData, 'DATABASE')
31
+ ) {
26
32
  return null;
27
33
  }
28
34
 
@@ -67,7 +67,7 @@ function useIntegrals() {
67
67
  reverse: true,
68
68
  },
69
69
  );
70
- values.push({ ...integral, ...integralData } as IntegralData);
70
+ values.push({ ...integral, ...integralData });
71
71
  const value = xyMaxY(integralData);
72
72
  if (value > max) max = value;
73
73
  }
@@ -47,7 +47,7 @@ function LinearVerticalAxis(props: VerticalAxisProps) {
47
47
  gridSize={width - x}
48
48
  ticks={ticks}
49
49
  showGrid
50
- primaryGridProps={{ strokeDasharray: '0' }}
50
+ primaryGridProps={{ strokeDasharray: 'solid' }}
51
51
  />
52
52
  );
53
53
  }
@@ -44,7 +44,7 @@ export default function MultiplicityTree(props: MultiplicityTreeProps) {
44
44
  if (!spectrum || !isSpectrum1D(spectrum)) return null;
45
45
  const { from, to } = range;
46
46
  const maxY = getMaxY(spectrum, { from, to });
47
- const startY = scaleY(spectrum.id)(maxY) - marginBottom;
47
+ const startY = scaleY({ spectrumId: spectrum.id })(maxY) - marginBottom;
48
48
 
49
49
  const tree = generateTreeNodes(range, spectrum);
50
50
 
@@ -85,7 +85,7 @@ function Tree(props: TreeProps) {
85
85
  assignment: assignmentLabel,
86
86
  },
87
87
  } = props;
88
- const { from, to } = range;
88
+ const { from, to, id: rangeId } = range;
89
89
  const { width } = useChartData();
90
90
  const { scaleX, shiftY } = useScaleChecked();
91
91
  const dispatch = useDispatch();
@@ -94,7 +94,8 @@ function Tree(props: TreeProps) {
94
94
  const activeSpectrum = useActiveSpectrum();
95
95
  const assignment = useAssignment(signalKey);
96
96
  const highlight = useHighlight(extractID(signalKey, assignment), {
97
- type: 'SIGNAL',
97
+ type: 'SIGNAL_1D',
98
+ extra: { id: signalKey, rangeId },
98
99
  });
99
100
 
100
101
  let widthRatio: number;
@@ -134,7 +135,7 @@ function Tree(props: TreeProps) {
134
135
  isUnAssignLabelButtonVisible: !!assignmentLabel,
135
136
  onAssign: assignHandler,
136
137
  onUnAssign: unAssignHandler,
137
- rangeId: range.id,
138
+ rangeId,
138
139
  });
139
140
 
140
141
  if (!multiplicity) return null;
@@ -148,7 +149,7 @@ function Tree(props: TreeProps) {
148
149
  dispatch({
149
150
  type: 'UNASSIGN_1D_SIGNAL',
150
151
  payload: {
151
- rangeKey: range.id,
152
+ rangeKey: rangeId,
152
153
  signalIndex,
153
154
  },
154
155
  });
@@ -178,7 +178,7 @@ function PeakAnnotation({
178
178
  const { scaleX, scaleY } = useScaleChecked();
179
179
 
180
180
  const sx = scaleX()(x);
181
- const sy = scaleY(spectrumKey)(y) - 5;
181
+ const sy = scaleY({ spectrumId: spectrumKey })(y) - 5;
182
182
 
183
183
  const { y1, y2 } = getLineYCoordinates(sign, isOverlap);
184
184
 
@@ -80,6 +80,7 @@ function PeakAnnotationsSpreadMode(props: PeakAnnotationsSpreadModeProps) {
80
80
  height,
81
81
  spectrumKey,
82
82
  } = props;
83
+
83
84
  const [ref, { height: boxSizeHeight } = { height: 0 }] = useResizeObserver();
84
85
  const { marginTop, isDragActive, onPointerDown } = usePeaksPosition();
85
86
 
@@ -137,6 +138,7 @@ function PeakAnnotationsSpreadMode(props: PeakAnnotationsSpreadModeProps) {
137
138
  height={roundedBoxHeight}
138
139
  fill={isDragActive ? 'white' : 'transparent'}
139
140
  opacity={isDragActive ? 0.9 : 0}
141
+ pointerEvents="none"
140
142
  />
141
143
  <g ref={ref}>
142
144
  {mapPeaks.map((group) => {
@@ -241,6 +243,7 @@ function PeakAnnotation(props: PeakAnnotationProps) {
241
243
  stroke={color}
242
244
  fill="transparent"
243
245
  strokeWidth={highlight.isActive ? '3px' : '1px'}
246
+ pointerEvents="none"
244
247
  />
245
248
  </g>
246
249
  );
@@ -40,10 +40,7 @@ interface PeakEditionListenerProps {
40
40
  }
41
41
 
42
42
  interface PeaksEditionContextProps {
43
- onEdit: (
44
- e: React.MouseEvent,
45
- peak?: Required<PeakEditionListenerProps>,
46
- ) => void;
43
+ onEdit: (e: MouseEvent, peak?: Required<PeakEditionListenerProps>) => void;
47
44
  id?: string;
48
45
  }
49
46
 
@@ -93,7 +90,7 @@ export function PeakEditionProvider({ children }: Required<PropsWithChildren>) {
93
90
  }
94
91
  y = py + dy;
95
92
  if (useScaleY) {
96
- y = scaleY(spectrum?.id)(py) + dy;
93
+ y = scaleY({ spectrumId: spectrum?.id })(py) + dy;
97
94
  }
98
95
 
99
96
  if (x + InputDimension.width > width) {
@@ -53,7 +53,7 @@ export function usePeakShapesPath(spectrum: Spectrum1D) {
53
53
  break;
54
54
  }
55
55
  const _scaleX = scaleX();
56
- const _scaleY = scaleY(spectrum.id);
56
+ const _scaleY = scaleY({ spectrumId: spectrum.id });
57
57
 
58
58
  const pathBuilder = new PathBuilder();
59
59
  let fill = 'transparent';
@@ -116,7 +116,7 @@ function Range(options: RangeProps) {
116
116
  dispatch({
117
117
  type: 'UNASSIGN_1D_SIGNAL',
118
118
  payload: {
119
- rangeKey: range.id,
119
+ rangeKey: id,
120
120
  signalIndex: 0,
121
121
  },
122
122
  });
@@ -141,7 +141,7 @@ function Range(options: RangeProps) {
141
141
  isUnAssignLabelButtonVisible: hasOnlyOneSignal && !!signal.assignment,
142
142
  onAssign: assignHandler,
143
143
  onUnAssign: unAssignHandler,
144
- rangeId: range.id,
144
+ rangeId: id,
145
145
  });
146
146
 
147
147
  const isOpen = isAssignBtnTrigged.current ? isAssignmentActive : undefined;
@@ -200,7 +200,7 @@ function Range(options: RangeProps) {
200
200
  fill={isHighlighted || isActive ? '#ff6f0057' : 'transparent'}
201
201
  data-no-export="true"
202
202
  />
203
- {range.signals.map((signal) => (
203
+ {signals.map((signal) => (
204
204
  <AssignmentLabel
205
205
  key={signal.id}
206
206
  stackIndex={signalsStackIndexes?.[signal.id] || 0}
@@ -49,14 +49,14 @@ function useStackRangesAssignmentsLabels(ranges: RangeType[]) {
49
49
  processedRanges.push({
50
50
  ...range,
51
51
  labelWidth,
52
- startPosition,
52
+ startPosition: startPosition - labelWidth / 2,
53
53
  signalId: id,
54
54
  assignment,
55
55
  });
56
56
  }
57
57
  }
58
+ processedRanges.sort((a, b) => a.startPosition - b.startPosition);
58
59
 
59
- processedRanges.sort((a, b) => b.startPosition - a.startPosition);
60
60
  return stackOverlappingLabelsMap(processedRanges, {
61
61
  startPositionKey: 'startPosition',
62
62
  labelWidthKey: 'labelWidth',
@@ -10,7 +10,7 @@ const styles: CSSProperties = {
10
10
  position: 'absolute',
11
11
  top: '0px',
12
12
  left: '0px',
13
- height: '2px',
13
+ height: '1px',
14
14
  };
15
15
 
16
16
  function BaseLine() {
@@ -65,7 +65,9 @@ function PeakPointer() {
65
65
  if (!closePeak) return null;
66
66
 
67
67
  const x = scaleX()(closePeak.x);
68
- const y = scaleY(activeSpectrum.id)(closePeak.y) - spectrumIndex * shiftY;
68
+ const y =
69
+ scaleY({ spectrumId: activeSpectrum.id })(closePeak.y) -
70
+ spectrumIndex * shiftY;
69
71
 
70
72
  return (
71
73
  <div
@@ -2,6 +2,7 @@ import { scaleLinear } from 'd3-scale';
2
2
  import { useCallback } from 'react';
3
3
 
4
4
  import { useChartData } from '../../context/ChartContext.js';
5
+ import type { ScaleLinearNumberOptions } from '../../context/ScaleContext.tsx';
5
6
  import type {
6
7
  Domains,
7
8
  Margin,
@@ -16,7 +17,7 @@ interface ScaleInsetXOptions {
16
17
  xDomain: number[];
17
18
  mode: SpectraDirection;
18
19
  }
19
- interface ScaleXOptions extends ScaleInsetXOptions {
20
+ interface ScaleXOptions extends ScaleInsetXOptions, ScaleLinearNumberOptions {
20
21
  xDomains: Domains;
21
22
  }
22
23
 
@@ -27,7 +28,7 @@ interface InsetYScaleOptions {
27
28
  spectraBottomMargin: number;
28
29
  }
29
30
 
30
- interface ScaleYOptions extends InsetYScaleOptions {
31
+ interface ScaleYOptions extends InsetYScaleOptions, ScaleLinearNumberOptions {
31
32
  yDomains: Domains;
32
33
  verticalAlign: VerticalAlignment;
33
34
  }
@@ -47,22 +48,23 @@ function getInsetYScale(options: InsetYScaleOptions) {
47
48
  return scaleLinear(yDomain, [innerHeight, margin.top]);
48
49
  }
49
50
 
50
- function getXScale(
51
- options: ScaleXOptions,
52
- spectrumId: number | null | string = null,
53
- ) {
54
- const { width, margin, xDomains, xDomain, mode } = options;
51
+ function getXScale(options: ScaleXOptions) {
52
+ const { width, margin, xDomains, xDomain, mode, spectrumId, customDomain } =
53
+ options;
54
+
55
55
  const range =
56
56
  mode === 'RTL'
57
57
  ? [width - margin.right, margin.left]
58
58
  : [margin.left, width - margin.right];
59
- return scaleLinear(spectrumId ? xDomains[spectrumId] : xDomain, range);
59
+
60
+ let domain = spectrumId ? xDomains[spectrumId] : xDomain;
61
+ if (customDomain) {
62
+ domain = customDomain;
63
+ }
64
+ return scaleLinear(domain, range);
60
65
  }
61
66
 
62
- function getYScale(
63
- options: ScaleYOptions,
64
- spectrumId: number | null | string = null,
65
- ) {
67
+ function getYScale(options: ScaleYOptions) {
66
68
  const {
67
69
  height,
68
70
  margin,
@@ -70,11 +72,16 @@ function getYScale(
70
72
  yDomain,
71
73
  yDomains,
72
74
  spectraBottomMargin = 10,
75
+ spectrumId = null,
76
+ customDomain,
73
77
  } = options;
74
78
  let domainY: number[] = yDomain;
75
79
  if (spectrumId && yDomains?.[spectrumId]) {
76
80
  domainY = yDomains[spectrumId];
77
81
  }
82
+ if (customDomain) {
83
+ domainY = customDomain;
84
+ }
78
85
  const [min, max] = domainY;
79
86
  let bottomShift = spectraBottomMargin;
80
87
 
@@ -126,7 +133,7 @@ function useScaleX() {
126
133
  return getInsetXScale({ margin, mode, width, xDomain });
127
134
  }
128
135
 
129
- return getXScale({ margin, mode, width, xDomain, xDomains }, spectrumId);
136
+ return getXScale({ margin, mode, width, xDomain, xDomains, spectrumId });
130
137
  },
131
138
  [isInset, margin, mode, width, xDomain, xDomains],
132
139
  );
@@ -2,7 +2,7 @@ import type { PopoverProps } from '@blueprintjs/core';
2
2
  import { Popover } from '@blueprintjs/core';
3
3
  import styled from '@emotion/styled';
4
4
  import { yupResolver } from '@hookform/resolvers/yup';
5
- import type { MouseEvent, ReactNode } from 'react';
5
+ import type { KeyboardEvent, MouseEvent, ReactNode } from 'react';
6
6
  import { useState } from 'react';
7
7
  import { useForm } from 'react-hook-form';
8
8
  import * as Yup from 'yup';
@@ -75,7 +75,7 @@ function Field(props: FieldProps) {
75
75
  resolver: yupResolver(validationSchema(inputType)),
76
76
  });
77
77
 
78
- function handleKeyDown(event: React.KeyboardEvent<HTMLInputElement>) {
78
+ function handleKeyDown(event: KeyboardEvent<HTMLInputElement>) {
79
79
  if (event.key === 'Enter') {
80
80
  void handleSubmit(onChange)();
81
81
  }