nmrium 2.4.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (908) hide show
  1. package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
  2. package/lib/component/1d/BrushTracker1D.js +158 -173
  3. package/lib/component/1d/BrushTracker1D.js.map +1 -1
  4. package/lib/component/1d/FloatPublicationString.js +6 -6
  5. package/lib/component/1d/FloatPublicationString.js.map +1 -1
  6. package/lib/component/1d/HorizontalAxis1D.d.ts.map +1 -1
  7. package/lib/component/1d/HorizontalAxis1D.js +4 -1
  8. package/lib/component/1d/HorizontalAxis1D.js.map +1 -1
  9. package/lib/component/1d/PredictionErrorsNotations.js +1 -1
  10. package/lib/component/1d/PredictionErrorsNotations.js.map +1 -1
  11. package/lib/component/1d/SVGContent1D.d.ts.map +1 -1
  12. package/lib/component/1d/SVGContent1D.js +2 -1
  13. package/lib/component/1d/SVGContent1D.js.map +1 -1
  14. package/lib/component/1d/SimilarityTree.js +2 -2
  15. package/lib/component/1d/SimilarityTree.js.map +1 -1
  16. package/lib/component/1d/Viewer1D.d.ts.map +1 -1
  17. package/lib/component/1d/Viewer1D.js +2 -1
  18. package/lib/component/1d/Viewer1D.js.map +1 -1
  19. package/lib/component/1d/baseline/BaselinePreview.d.ts.map +1 -1
  20. package/lib/component/1d/baseline/BaselinePreview.js +47 -22
  21. package/lib/component/1d/baseline/BaselinePreview.js.map +1 -1
  22. package/lib/component/1d/baseline/getMedianY.d.ts +5 -1
  23. package/lib/component/1d/baseline/getMedianY.d.ts.map +1 -1
  24. package/lib/component/1d/baseline/getMedianY.js +19 -5
  25. package/lib/component/1d/baseline/getMedianY.js.map +1 -1
  26. package/lib/component/1d/inset/DraggableInset.js +1 -1
  27. package/lib/component/1d/inset/DraggableInset.js.map +1 -1
  28. package/lib/component/1d/integral/IntegralResizable.d.ts.map +1 -1
  29. package/lib/component/1d/integral/IntegralResizable.js +4 -4
  30. package/lib/component/1d/integral/IntegralResizable.js.map +1 -1
  31. package/lib/component/1d/matrix/useMatrix.d.ts.map +1 -1
  32. package/lib/component/1d/matrix/useMatrix.js +2 -2
  33. package/lib/component/1d/matrix/useMatrix.js.map +1 -1
  34. package/lib/component/1d/multiplicityTree/MultiplicityTree.js +3 -3
  35. package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
  36. package/lib/component/1d/peaks/PeakAnnotations.js +1 -1
  37. package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
  38. package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
  39. package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
  40. package/lib/component/1d/ranges/FloatingRanges.d.ts.map +1 -1
  41. package/lib/component/1d/ranges/FloatingRanges.js +2 -3
  42. package/lib/component/1d/ranges/FloatingRanges.js.map +1 -1
  43. package/lib/component/1d/ranges/Range.d.ts.map +1 -1
  44. package/lib/component/1d/ranges/Range.js +6 -5
  45. package/lib/component/1d/ranges/Range.js.map +1 -1
  46. package/lib/component/1d/ranges/Ranges.js +1 -1
  47. package/lib/component/1d/ranges/Ranges.js.map +1 -1
  48. package/lib/component/1d/ranges/Signals.d.ts +2 -0
  49. package/lib/component/1d/ranges/Signals.d.ts.map +1 -0
  50. package/lib/component/1d/ranges/Signals.js +16 -0
  51. package/lib/component/1d/ranges/Signals.js.map +1 -0
  52. package/lib/component/1d-2d/FieldEdition.d.ts +1 -1
  53. package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
  54. package/lib/component/1d-2d/FieldEdition.js +35 -31
  55. package/lib/component/1d-2d/FieldEdition.js.map +1 -1
  56. package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js +1 -1
  57. package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js.map +1 -1
  58. package/lib/component/1d-2d/components/RangeIndicator.d.ts +13 -0
  59. package/lib/component/1d-2d/components/RangeIndicator.d.ts.map +1 -0
  60. package/lib/component/1d-2d/components/RangeIndicator.js +52 -0
  61. package/lib/component/1d-2d/components/RangeIndicator.js.map +1 -0
  62. package/lib/component/1d-2d/components/Signals1D.d.ts +19 -0
  63. package/lib/component/1d-2d/components/Signals1D.d.ts.map +1 -0
  64. package/lib/component/1d-2d/components/Signals1D.js +157 -0
  65. package/lib/component/1d-2d/components/Signals1D.js.map +1 -0
  66. package/lib/component/1d-2d/components/axis_unit_picker.d.ts.map +1 -1
  67. package/lib/component/1d-2d/components/axis_unit_picker.js +1 -1
  68. package/lib/component/1d-2d/components/axis_unit_picker.js.map +1 -1
  69. package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
  70. package/lib/component/1d-2d/tools/BrushXY.js +40 -28
  71. package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
  72. package/lib/component/1d-2d/tools/CrossLinePointer.d.ts +16 -1
  73. package/lib/component/1d-2d/tools/CrossLinePointer.d.ts.map +1 -1
  74. package/lib/component/1d-2d/tools/CrossLinePointer.js +51 -36
  75. package/lib/component/1d-2d/tools/CrossLinePointer.js.map +1 -1
  76. package/lib/component/1d-2d/tools/CursorToolIcon.d.ts +9 -0
  77. package/lib/component/1d-2d/tools/CursorToolIcon.d.ts.map +1 -0
  78. package/lib/component/1d-2d/tools/CursorToolIcon.js +58 -0
  79. package/lib/component/1d-2d/tools/CursorToolIcon.js.map +1 -0
  80. package/lib/component/1d-2d/tools/DistanceLine.d.ts +29 -0
  81. package/lib/component/1d-2d/tools/DistanceLine.d.ts.map +1 -0
  82. package/lib/component/1d-2d/tools/DistanceLine.js +132 -0
  83. package/lib/component/1d-2d/tools/DistanceLine.js.map +1 -0
  84. package/lib/component/2d/1d-tracer/Left1DChart.d.ts.map +1 -1
  85. package/lib/component/2d/1d-tracer/Left1DChart.js +5 -3
  86. package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
  87. package/lib/component/2d/1d-tracer/Ranges1D.d.ts.map +1 -1
  88. package/lib/component/2d/1d-tracer/Ranges1D.js +4 -60
  89. package/lib/component/2d/1d-tracer/Ranges1D.js.map +1 -1
  90. package/lib/component/2d/1d-tracer/Top1DChart.d.ts.map +1 -1
  91. package/lib/component/2d/1d-tracer/Top1DChart.js +5 -3
  92. package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
  93. package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
  94. package/lib/component/2d/BrushTracker2D.js +20 -10
  95. package/lib/component/2d/BrushTracker2D.js.map +1 -1
  96. package/lib/component/2d/DirectAxis2D.d.ts.map +1 -1
  97. package/lib/component/2d/DirectAxis2D.js +4 -1
  98. package/lib/component/2d/DirectAxis2D.js.map +1 -1
  99. package/lib/component/2d/FooterBanner.d.ts.map +1 -1
  100. package/lib/component/2d/FooterBanner.js +2 -2
  101. package/lib/component/2d/FooterBanner.js.map +1 -1
  102. package/lib/component/2d/IndirectAxis2D.d.ts.map +1 -1
  103. package/lib/component/2d/IndirectAxis2D.js +5 -2
  104. package/lib/component/2d/IndirectAxis2D.js.map +1 -1
  105. package/lib/component/2d/SignalDeltaLine.js +1 -1
  106. package/lib/component/2d/SignalDeltaLine.js.map +1 -1
  107. package/lib/component/2d/Viewer2D.d.ts.map +1 -1
  108. package/lib/component/2d/Viewer2D.js +3 -1
  109. package/lib/component/2d/Viewer2D.js.map +1 -1
  110. package/lib/component/2d/fid/FidCanvas.js +2 -2
  111. package/lib/component/2d/fid/FidCanvas.js.map +1 -1
  112. package/lib/component/2d/fid/FidContainer.js +3 -3
  113. package/lib/component/2d/fid/FidContainer.js.map +1 -1
  114. package/lib/component/2d/ft/Contours.d.ts.map +1 -1
  115. package/lib/component/2d/ft/Contours.js +37 -1
  116. package/lib/component/2d/ft/Contours.js.map +1 -1
  117. package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
  118. package/lib/component/2d/ft/FTContainer.js +2 -3
  119. package/lib/component/2d/ft/FTContainer.js.map +1 -1
  120. package/lib/component/2d/useTracesSpectra.d.ts.map +1 -1
  121. package/lib/component/2d/useTracesSpectra.js +5 -3
  122. package/lib/component/2d/useTracesSpectra.js.map +1 -1
  123. package/lib/component/2d/utilities/extractSpectrumSignals.d.ts +2 -1
  124. package/lib/component/2d/utilities/extractSpectrumSignals.d.ts.map +1 -1
  125. package/lib/component/2d/utilities/extractSpectrumSignals.js +26 -25
  126. package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -1
  127. package/lib/component/2d/utilities/scale.d.ts.map +1 -1
  128. package/lib/component/2d/utilities/scale.js +1 -1
  129. package/lib/component/2d/utilities/scale.js.map +1 -1
  130. package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -1
  131. package/lib/component/2d/zones/SignalsGuideLines.js +15 -18
  132. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
  133. package/lib/component/AnchorSVG.d.ts +6 -7
  134. package/lib/component/AnchorSVG.d.ts.map +1 -1
  135. package/lib/component/AnchorSVG.js +11 -7
  136. package/lib/component/AnchorSVG.js.map +1 -1
  137. package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
  138. package/lib/component/EventsTrackers/BrushTracker.js +15 -5
  139. package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
  140. package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
  141. package/lib/component/EventsTrackers/KeysListenerTracker.js +5 -1
  142. package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
  143. package/lib/component/EventsTrackers/MouseTracker.d.ts +3 -0
  144. package/lib/component/EventsTrackers/MouseTracker.d.ts.map +1 -1
  145. package/lib/component/EventsTrackers/MouseTracker.js +15 -0
  146. package/lib/component/EventsTrackers/MouseTracker.js.map +1 -1
  147. package/lib/component/assignment/utilities/getAssignments.js +1 -1
  148. package/lib/component/assignment/utilities/getAssignments.js.map +1 -1
  149. package/lib/component/context/DispatchContext.d.ts +2 -1
  150. package/lib/component/context/DispatchContext.d.ts.map +1 -1
  151. package/lib/component/context/DispatchContext.js.map +1 -1
  152. package/lib/component/context/FilterSyncOptionsContext.d.ts.map +1 -1
  153. package/lib/component/context/FilterSyncOptionsContext.js +13 -13
  154. package/lib/component/context/FilterSyncOptionsContext.js.map +1 -1
  155. package/lib/component/context/KeyModifierContext.d.ts +5 -12
  156. package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
  157. package/lib/component/context/KeyModifierContext.js +25 -27
  158. package/lib/component/context/KeyModifierContext.js.map +1 -1
  159. package/lib/component/context/processings_mutations_context.api.d.ts +14 -0
  160. package/lib/component/context/processings_mutations_context.api.d.ts.map +1 -0
  161. package/lib/component/context/processings_mutations_context.api.js +275 -0
  162. package/lib/component/context/processings_mutations_context.api.js.map +1 -0
  163. package/lib/component/context/processings_mutations_context.d.ts +5 -0
  164. package/lib/component/context/processings_mutations_context.d.ts.map +1 -0
  165. package/lib/component/context/processings_mutations_context.js +16 -0
  166. package/lib/component/context/processings_mutations_context.js.map +1 -0
  167. package/lib/component/elements/D3Axis.d.ts.map +1 -1
  168. package/lib/component/elements/D3Axis.js +4 -3
  169. package/lib/component/elements/D3Axis.js.map +1 -1
  170. package/lib/component/elements/NumberInput2Controller.d.ts +1 -0
  171. package/lib/component/elements/NumberInput2Controller.d.ts.map +1 -1
  172. package/lib/component/elements/NumberInput2Controller.js +14 -3
  173. package/lib/component/elements/NumberInput2Controller.js.map +1 -1
  174. package/lib/component/elements/Sections.d.ts.map +1 -1
  175. package/lib/component/elements/Sections.js +1 -1
  176. package/lib/component/elements/Sections.js.map +1 -1
  177. package/lib/component/elements/TableHeaderLabel.d.ts +9 -0
  178. package/lib/component/elements/TableHeaderLabel.d.ts.map +1 -0
  179. package/lib/component/elements/TableHeaderLabel.js +30 -0
  180. package/lib/component/elements/TableHeaderLabel.js.map +1 -0
  181. package/lib/component/elements/print/PrintContent.d.ts +1 -0
  182. package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
  183. package/lib/component/elements/print/PrintContent.js +77 -72
  184. package/lib/component/elements/print/PrintContent.js.map +1 -1
  185. package/lib/component/header/AutoPeakPickingOptionPanel.d.ts.map +1 -1
  186. package/lib/component/header/AutoPeakPickingOptionPanel.js +59 -31
  187. package/lib/component/header/AutoPeakPickingOptionPanel.js.map +1 -1
  188. package/lib/component/header/Header.d.ts.map +1 -1
  189. package/lib/component/header/Header.js +59 -5
  190. package/lib/component/header/Header.js.map +1 -1
  191. package/lib/component/header/RangesPickingOptionPanel.d.ts.map +1 -1
  192. package/lib/component/header/RangesPickingOptionPanel.js +34 -19
  193. package/lib/component/header/RangesPickingOptionPanel.js.map +1 -1
  194. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.d.ts.map +1 -1
  195. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js +1 -1
  196. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js.map +1 -1
  197. package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.d.ts.map +1 -1
  198. package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.js +1 -1
  199. package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.js.map +1 -1
  200. package/lib/component/highlight/index.d.ts.map +1 -1
  201. package/lib/component/highlight/index.js +10 -36
  202. package/lib/component/highlight/index.js.map +1 -1
  203. package/lib/component/hooks/use2DReducer.d.ts.map +1 -1
  204. package/lib/component/hooks/use2DReducer.js +2 -2
  205. package/lib/component/hooks/use2DReducer.js.map +1 -1
  206. package/lib/component/hooks/useAddMultipletSignal.d.ts +7 -0
  207. package/lib/component/hooks/useAddMultipletSignal.d.ts.map +1 -0
  208. package/lib/component/hooks/useAddMultipletSignal.js +28 -0
  209. package/lib/component/hooks/useAddMultipletSignal.js.map +1 -0
  210. package/lib/component/hooks/useCheckPointsNumberInWindowArea.d.ts.map +1 -1
  211. package/lib/component/hooks/useCheckPointsNumberInWindowArea.js +3 -1
  212. package/lib/component/hooks/useCheckPointsNumberInWindowArea.js.map +1 -1
  213. package/lib/component/hooks/useCheckToolsVisibility.d.ts.map +1 -1
  214. package/lib/component/hooks/useCheckToolsVisibility.js +6 -1
  215. package/lib/component/hooks/useCheckToolsVisibility.js.map +1 -1
  216. package/lib/component/hooks/useFilter.d.ts.map +1 -1
  217. package/lib/component/hooks/useFilter.js.map +1 -1
  218. package/lib/component/hooks/useSpectraBottomMargin.js +1 -1
  219. package/lib/component/hooks/useSpectraBottomMargin.js.map +1 -1
  220. package/lib/component/hooks/useSpectrum.d.ts +7 -1
  221. package/lib/component/hooks/useSpectrum.d.ts.map +1 -1
  222. package/lib/component/hooks/useSpectrum.js +10 -2
  223. package/lib/component/hooks/useSpectrum.js.map +1 -1
  224. package/lib/component/hooks/useSpectrumWithDataSource.d.ts +1 -1
  225. package/lib/component/hooks/useSpectrumWithDataSource.d.ts.map +1 -1
  226. package/lib/component/hooks/useSpectrumWithDataSource.js.map +1 -1
  227. package/lib/component/hooks/useTempSpectrum.d.ts +1 -1
  228. package/lib/component/hooks/useTempSpectrum.d.ts.map +1 -1
  229. package/lib/component/hooks/useTextMetrics.d.ts +2 -4
  230. package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
  231. package/lib/component/hooks/useTextMetrics.js +3 -2
  232. package/lib/component/hooks/useTextMetrics.js.map +1 -1
  233. package/lib/component/hooks/use_axis_unit.d.ts +3 -3
  234. package/lib/component/hooks/use_axis_unit.d.ts.map +1 -1
  235. package/lib/component/hooks/use_axis_unit.js +2 -8
  236. package/lib/component/hooks/use_axis_unit.js.map +1 -1
  237. package/lib/component/hooks/use_publication_strings.d.ts.map +1 -1
  238. package/lib/component/hooks/use_publication_strings.js +2 -3
  239. package/lib/component/hooks/use_publication_strings.js.map +1 -1
  240. package/lib/component/hooks/use_ticks_config.d.ts +1 -4
  241. package/lib/component/hooks/use_ticks_config.d.ts.map +1 -1
  242. package/lib/component/hooks/use_ticks_config.js +1 -6
  243. package/lib/component/hooks/use_ticks_config.js.map +1 -1
  244. package/lib/component/hooks/use_view_spectra.d.ts +6 -0
  245. package/lib/component/hooks/use_view_spectra.d.ts.map +1 -0
  246. package/lib/component/hooks/use_view_spectra.js +13 -0
  247. package/lib/component/hooks/use_view_spectra.js.map +1 -0
  248. package/lib/component/hooks/use_visible_spectra_1d.d.ts.map +1 -1
  249. package/lib/component/hooks/use_visible_spectra_1d.js +4 -2
  250. package/lib/component/hooks/use_visible_spectra_1d.js.map +1 -1
  251. package/lib/component/main/InnerNMRium.d.ts.map +1 -1
  252. package/lib/component/main/InnerNMRium.js +6 -5
  253. package/lib/component/main/InnerNMRium.js.map +1 -1
  254. package/lib/component/main/NMRium.d.ts +2 -2
  255. package/lib/component/main/NMRium.d.ts.map +1 -1
  256. package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
  257. package/lib/component/main/NMRiumStateProvider.js +2 -1
  258. package/lib/component/main/NMRiumStateProvider.js.map +1 -1
  259. package/lib/component/main/types.d.ts +1 -1
  260. package/lib/component/main/types.d.ts.map +1 -1
  261. package/lib/component/modal/EditPeakShapeModal.d.ts.map +1 -1
  262. package/lib/component/modal/EditPeakShapeModal.js +102 -60
  263. package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
  264. package/lib/component/modal/LoadJCAMPModal.d.ts.map +1 -1
  265. package/lib/component/modal/LoadJCAMPModal.js +22 -21
  266. package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
  267. package/lib/component/modal/PublicationStringModal.d.ts +1 -1
  268. package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
  269. package/lib/component/modal/PublicationStringModal.js +4 -4
  270. package/lib/component/modal/PublicationStringModal.js.map +1 -1
  271. package/lib/component/modal/aboutUs/AboutUsModal.js +1 -1
  272. package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
  273. package/lib/component/modal/editRange/EditRangeModal.js +1 -1
  274. package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts +1 -3
  275. package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts.map +1 -1
  276. package/lib/component/modal/editRange/forms/components/DeltaInput.js +12 -20
  277. package/lib/component/modal/editRange/forms/components/DeltaInput.js.map +1 -1
  278. package/lib/component/modal/editRange/forms/components/DeltaLabel.d.ts +6 -0
  279. package/lib/component/modal/editRange/forms/components/DeltaLabel.d.ts.map +1 -0
  280. package/lib/component/modal/editRange/forms/components/DeltaLabel.js +12 -0
  281. package/lib/component/modal/editRange/forms/components/DeltaLabel.js.map +1 -0
  282. package/lib/component/modal/editRange/forms/components/SignalTab.d.ts.map +1 -1
  283. package/lib/component/modal/editRange/forms/components/SignalTab.js +2 -16
  284. package/lib/component/modal/editRange/forms/components/SignalTab.js.map +1 -1
  285. package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts.map +1 -1
  286. package/lib/component/modal/editRange/forms/components/SignalsContent.js +32 -7
  287. package/lib/component/modal/editRange/forms/components/SignalsContent.js.map +1 -1
  288. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js +1 -1
  289. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
  290. package/lib/component/modal/editRange/forms/validation/EditRangeValidation.d.ts.map +1 -1
  291. package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +18 -3
  292. package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js.map +1 -1
  293. package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
  294. package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +211 -85
  295. package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts.map +1 -1
  296. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js +2 -1
  297. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js.map +1 -1
  298. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +211 -85
  299. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts.map +1 -1
  300. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +211 -85
  301. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -1
  302. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +145 -42
  303. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
  304. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +145 -42
  305. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -1
  306. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +24 -7
  307. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts.map +1 -1
  308. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +145 -42
  309. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -1
  310. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +145 -42
  311. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts.map +1 -1
  312. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.js +12 -1
  313. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.js.map +1 -1
  314. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +145 -42
  315. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -1
  316. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js +2 -3
  317. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js.map +1 -1
  318. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +145 -42
  319. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -1
  320. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +4 -2
  321. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -1
  322. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +5 -4
  323. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
  324. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +145 -42
  325. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -1
  326. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +2 -3
  327. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js.map +1 -1
  328. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +145 -42
  329. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -1
  330. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +145 -42
  331. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -1
  332. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +145 -42
  333. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -1
  334. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +145 -42
  335. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -1
  336. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +145 -42
  337. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -1
  338. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js +3 -4
  339. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js.map +1 -1
  340. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +145 -42
  341. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts.map +1 -1
  342. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +145 -42
  343. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -1
  344. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +145 -42
  345. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -1
  346. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js +1 -1
  347. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js.map +1 -1
  348. package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts +3 -4
  349. package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts.map +1 -1
  350. package/lib/component/modal/setting/tanstack_general_settings/ui/table.js.map +1 -1
  351. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +28 -28
  352. package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.d.ts +22 -0
  353. package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.d.ts.map +1 -1
  354. package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.js +15 -2
  355. package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.js.map +1 -1
  356. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +24 -24
  357. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -1
  358. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +4 -3
  359. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -1
  360. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +6 -6
  361. package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts +1 -1
  362. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts +4 -4
  363. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts.map +1 -1
  364. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js +3 -2
  365. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js.map +1 -1
  366. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts +1 -0
  367. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts.map +1 -1
  368. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js +1 -0
  369. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js.map +1 -1
  370. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +66 -43
  371. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -1
  372. package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +1 -1
  373. package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js.map +1 -1
  374. package/lib/component/panels/AutomaticAssignment/useAutoAssignments.d.ts.map +1 -1
  375. package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +25 -9
  376. package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js.map +1 -1
  377. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js +1 -1
  378. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js.map +1 -1
  379. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.d.ts.map +1 -1
  380. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +2 -3
  381. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
  382. package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.d.ts.map +1 -1
  383. package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js +1 -1
  384. package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js.map +1 -1
  385. package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts.map +1 -1
  386. package/lib/component/panels/PeaksPanel/PeaksPreferences.js +15 -3
  387. package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
  388. package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
  389. package/lib/component/panels/PeaksPanel/PeaksTable.js +49 -27
  390. package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
  391. package/lib/component/panels/RangesPanel/RangesPanel.d.ts.map +1 -1
  392. package/lib/component/panels/RangesPanel/RangesPanel.js +1 -3
  393. package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
  394. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
  395. package/lib/component/panels/RangesPanel/RangesTableRow.js +12 -11
  396. package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
  397. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts +1 -1
  398. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts.map +1 -1
  399. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
  400. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js.map +1 -1
  401. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -1
  402. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js.map +1 -1
  403. package/lib/component/panels/SpectraPanel/SpectraPanelHeader.d.ts.map +1 -1
  404. package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js +8 -15
  405. package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js.map +1 -1
  406. package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
  407. package/lib/component/panels/SpectraPanel/SpectraTable.js +1 -1
  408. package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
  409. package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.d.ts.map +1 -1
  410. package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.js +6 -3
  411. package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.js.map +1 -1
  412. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts +8 -6
  413. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts.map +1 -1
  414. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +12 -12
  415. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js.map +1 -1
  416. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts +2 -2
  417. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts.map +1 -1
  418. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +14 -13
  419. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js.map +1 -1
  420. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts +1 -1
  421. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts.map +1 -1
  422. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +2 -2
  423. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts.map +1 -1
  424. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +18 -15
  425. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js.map +1 -1
  426. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.d.ts +2 -2
  427. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.d.ts.map +1 -1
  428. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +7 -5
  429. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js.map +1 -1
  430. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts +2 -2
  431. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts.map +1 -1
  432. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +4 -4
  433. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js.map +1 -1
  434. package/lib/component/panels/SummaryPanel/Overview.d.ts +3 -7
  435. package/lib/component/panels/SummaryPanel/Overview.d.ts.map +1 -1
  436. package/lib/component/panels/SummaryPanel/Overview.js +2 -5
  437. package/lib/component/panels/SummaryPanel/Overview.js.map +1 -1
  438. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
  439. package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts +2 -2
  440. package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
  441. package/lib/component/panels/SummaryPanel/SummaryPanel.js +17 -18
  442. package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
  443. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +7 -7
  444. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
  445. package/lib/component/panels/SummaryPanel/utilities/Utilities.js +34 -31
  446. package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
  447. package/lib/component/panels/SummaryPanel/utilities/useInView.d.ts +1 -1
  448. package/lib/component/panels/SummaryPanel/utilities/useInView.d.ts.map +1 -1
  449. package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
  450. package/lib/component/panels/databasePanel/DatabasePanel.js +122 -101
  451. package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
  452. package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts +3 -0
  453. package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts.map +1 -1
  454. package/lib/component/panels/databasePanel/DatabaseSearchOptions.js +14 -16
  455. package/lib/component/panels/databasePanel/DatabaseSearchOptions.js.map +1 -1
  456. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.d.ts.map +1 -1
  457. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js +3 -3
  458. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js.map +1 -1
  459. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
  460. package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.d.ts.map +1 -1
  461. package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.js +2 -2
  462. package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.js.map +1 -1
  463. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +10 -26
  464. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
  465. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js +3 -4
  466. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js.map +1 -1
  467. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts +4 -19
  468. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
  469. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +4 -7
  470. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
  471. package/lib/component/panels/filtersPanel/processings/operator_edit_banner.d.ts +11 -0
  472. package/lib/component/panels/filtersPanel/processings/operator_edit_banner.d.ts.map +1 -0
  473. package/lib/component/panels/filtersPanel/processings/operator_edit_banner.js +34 -0
  474. package/lib/component/panels/filtersPanel/processings/operator_edit_banner.js.map +1 -0
  475. package/lib/component/panels/filtersPanel/processings/processing_item.d.ts +16 -0
  476. package/lib/component/panels/filtersPanel/processings/processing_item.d.ts.map +1 -0
  477. package/lib/component/panels/filtersPanel/processings/processing_item.js +88 -0
  478. package/lib/component/panels/filtersPanel/processings/processing_item.js.map +1 -0
  479. package/lib/component/panels/filtersPanel/processings/processing_item_extra.d.ts +12 -0
  480. package/lib/component/panels/filtersPanel/processings/processing_item_extra.d.ts.map +1 -0
  481. package/lib/component/panels/filtersPanel/processings/processing_item_extra.js +17 -0
  482. package/lib/component/panels/filtersPanel/processings/processing_item_extra.js.map +1 -0
  483. package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts +11 -0
  484. package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts.map +1 -0
  485. package/lib/component/panels/filtersPanel/processings/use_live_edit.js +31 -0
  486. package/lib/component/panels/filtersPanel/processings/use_live_edit.js.map +1 -0
  487. package/lib/component/panels/filtersPanel/processings/use_live_operation.d.ts +3 -0
  488. package/lib/component/panels/filtersPanel/processings/use_live_operation.d.ts.map +1 -0
  489. package/lib/component/panels/filtersPanel/processings/use_live_operation.js +15 -0
  490. package/lib/component/panels/filtersPanel/processings/use_live_operation.js.map +1 -0
  491. package/lib/component/panels/filtersPanel/processings_sections_panel.d.ts.map +1 -1
  492. package/lib/component/panels/filtersPanel/processings_sections_panel.js +38 -117
  493. package/lib/component/panels/filtersPanel/processings_sections_panel.js.map +1 -1
  494. package/lib/component/panels/informationPanel/InformationPanel.js +1 -1
  495. package/lib/component/panels/informationPanel/InformationPanel.js.map +1 -1
  496. package/lib/component/reducer/Reducer.d.ts +18 -2
  497. package/lib/component/reducer/Reducer.d.ts.map +1 -1
  498. package/lib/component/reducer/Reducer.js +27 -6
  499. package/lib/component/reducer/Reducer.js.map +1 -1
  500. package/lib/component/reducer/actions/AssignmentsActions.d.ts.map +1 -1
  501. package/lib/component/reducer/actions/AssignmentsActions.js +1 -2
  502. package/lib/component/reducer/actions/AssignmentsActions.js.map +1 -1
  503. package/lib/component/reducer/actions/CorrelationsActions.d.ts +4 -4
  504. package/lib/component/reducer/actions/CorrelationsActions.d.ts.map +1 -1
  505. package/lib/component/reducer/actions/CorrelationsActions.js +11 -12
  506. package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
  507. package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
  508. package/lib/component/reducer/actions/DatabaseActions.js +25 -9
  509. package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
  510. package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
  511. package/lib/component/reducer/actions/DomainActions.js +25 -15
  512. package/lib/component/reducer/actions/DomainActions.js.map +1 -1
  513. package/lib/component/reducer/actions/FiltersActions.d.ts +2 -0
  514. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  515. package/lib/component/reducer/actions/FiltersActions.js +37 -60
  516. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  517. package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
  518. package/lib/component/reducer/actions/InsetActions.js +1 -1
  519. package/lib/component/reducer/actions/InsetActions.js.map +1 -1
  520. package/lib/component/reducer/actions/IntegralsActions.d.ts.map +1 -1
  521. package/lib/component/reducer/actions/IntegralsActions.js +2 -1
  522. package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
  523. package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
  524. package/lib/component/reducer/actions/LoadAction.js +3 -3
  525. package/lib/component/reducer/actions/LoadAction.js.map +1 -1
  526. package/lib/component/reducer/actions/MoleculeActions.d.ts +2 -6
  527. package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
  528. package/lib/component/reducer/actions/MoleculeActions.js +1 -2
  529. package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
  530. package/lib/component/reducer/actions/PeaksActions.d.ts +5 -2
  531. package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
  532. package/lib/component/reducer/actions/PeaksActions.js +18 -3
  533. package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
  534. package/lib/component/reducer/actions/PreferencesActions.d.ts.map +1 -1
  535. package/lib/component/reducer/actions/PreferencesActions.js +5 -3
  536. package/lib/component/reducer/actions/PreferencesActions.js.map +1 -1
  537. package/lib/component/reducer/actions/RangesActions.d.ts +12 -3
  538. package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
  539. package/lib/component/reducer/actions/RangesActions.js +57 -36
  540. package/lib/component/reducer/actions/RangesActions.js.map +1 -1
  541. package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
  542. package/lib/component/reducer/actions/SpectraActions.js +5 -5
  543. package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
  544. package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
  545. package/lib/component/reducer/actions/ToolsActions.js +3 -8
  546. package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
  547. package/lib/component/reducer/actions/ZonesActions.d.ts +9 -2
  548. package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
  549. package/lib/component/reducer/actions/ZonesActions.js +27 -12
  550. package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
  551. package/lib/component/reducer/actions/processings_actions.d.ts +30 -0
  552. package/lib/component/reducer/actions/processings_actions.d.ts.map +1 -0
  553. package/lib/component/reducer/actions/processings_actions.js +50 -0
  554. package/lib/component/reducer/actions/processings_actions.js.map +1 -0
  555. package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +1 -0
  556. package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
  557. package/lib/component/reducer/helper/ZoomHistoryManager.js +10 -0
  558. package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
  559. package/lib/component/reducer/preferences/actions/initPreferences.d.ts.map +1 -1
  560. package/lib/component/reducer/preferences/actions/initPreferences.js +4 -1
  561. package/lib/component/reducer/preferences/actions/initPreferences.js.map +1 -1
  562. package/lib/component/reducer/preferences/actions/setPreferences.d.ts +2 -2
  563. package/lib/component/reducer/preferences/actions/setPreferences.d.ts.map +1 -1
  564. package/lib/component/reducer/preferences/actions/setPreferences.js +8 -5
  565. package/lib/component/reducer/preferences/actions/setPreferences.js.map +1 -1
  566. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
  567. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +2 -0
  568. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
  569. package/lib/component/reducer/preferences/preferencesReducer.d.ts +3 -3
  570. package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
  571. package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
  572. package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +2 -4
  573. package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts.map +1 -1
  574. package/lib/component/reducer/preferences/utilities/mapWorkspaces.js +2 -9
  575. package/lib/component/reducer/preferences/utilities/mapWorkspaces.js.map +1 -1
  576. package/lib/component/toolbar/ToolTypes.d.ts +21 -1
  577. package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
  578. package/lib/component/toolbar/ToolTypes.js +55 -0
  579. package/lib/component/toolbar/ToolTypes.js.map +1 -1
  580. package/lib/component/toolbar/nmr_toolbar.d.ts.map +1 -1
  581. package/lib/component/toolbar/nmr_toolbar.js +54 -53
  582. package/lib/component/toolbar/nmr_toolbar.js.map +1 -1
  583. package/lib/component/utility/core_slots/core_operator_expanded.d.ts +10 -0
  584. package/lib/component/utility/core_slots/core_operator_expanded.d.ts.map +1 -0
  585. package/lib/component/utility/{CoreSlot.js → core_slots/core_operator_expanded.js} +2 -21
  586. package/lib/component/utility/core_slots/core_operator_expanded.js.map +1 -0
  587. package/lib/component/utility/core_slots/core_operator_name.d.ts +9 -0
  588. package/lib/component/utility/core_slots/core_operator_name.d.ts.map +1 -0
  589. package/lib/component/utility/core_slots/core_operator_name.js +10 -0
  590. package/lib/component/utility/core_slots/core_operator_name.js.map +1 -0
  591. package/lib/component/utility/core_slots/core_operator_panel_tool.d.ts +9 -0
  592. package/lib/component/utility/core_slots/core_operator_panel_tool.d.ts.map +1 -0
  593. package/lib/component/utility/core_slots/core_operator_panel_tool.js +15 -0
  594. package/lib/component/utility/core_slots/core_operator_panel_tool.js.map +1 -0
  595. package/lib/component/utility/core_slots/core_operator_tool.d.ts +9 -0
  596. package/lib/component/utility/core_slots/core_operator_tool.d.ts.map +1 -0
  597. package/lib/component/utility/core_slots/core_operator_tool.js +15 -0
  598. package/lib/component/utility/core_slots/core_operator_tool.js.map +1 -0
  599. package/lib/component/utility/core_slots/core_operator_topbar.d.ts +8 -0
  600. package/lib/component/utility/core_slots/core_operator_topbar.d.ts.map +1 -0
  601. package/lib/component/utility/core_slots/core_operator_topbar.js +36 -0
  602. package/lib/component/utility/core_slots/core_operator_topbar.js.map +1 -0
  603. package/lib/component/utility/core_slots/core_slot.d.ts +17 -0
  604. package/lib/component/utility/core_slots/core_slot.d.ts.map +1 -0
  605. package/lib/component/utility/core_slots/core_slot.js +14 -0
  606. package/lib/component/utility/core_slots/core_slot.js.map +1 -0
  607. package/lib/component/utility/formatNumber.d.ts +2 -0
  608. package/lib/component/utility/formatNumber.d.ts.map +1 -1
  609. package/lib/component/utility/formatNumber.js +9 -2
  610. package/lib/component/utility/formatNumber.js.map +1 -1
  611. package/lib/component/utility/toolbar_item_error.d.ts +3 -0
  612. package/lib/component/utility/toolbar_item_error.d.ts.map +1 -0
  613. package/lib/component/utility/toolbar_item_error.js +14 -0
  614. package/lib/component/utility/toolbar_item_error.js.map +1 -0
  615. package/lib/component/workspaces/assignment.d.ts.map +1 -1
  616. package/lib/component/workspaces/assignment.js +1 -0
  617. package/lib/component/workspaces/assignment.js.map +1 -1
  618. package/lib/component/workspaces/basic.d.ts.map +1 -1
  619. package/lib/component/workspaces/basic.js +1 -0
  620. package/lib/component/workspaces/basic.js.map +1 -1
  621. package/lib/component/workspaces/exercise.d.ts.map +1 -1
  622. package/lib/component/workspaces/exercise.js +1 -0
  623. package/lib/component/workspaces/exercise.js.map +1 -1
  624. package/lib/component/workspaces/prediction.d.ts.map +1 -1
  625. package/lib/component/workspaces/prediction.js +1 -0
  626. package/lib/component/workspaces/prediction.js.map +1 -1
  627. package/lib/component/workspaces/process1D.d.ts.map +1 -1
  628. package/lib/component/workspaces/process1D.js +1 -0
  629. package/lib/component/workspaces/process1D.js.map +1 -1
  630. package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
  631. package/lib/component/workspaces/workspaceDefaultProperties.js +20 -2
  632. package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
  633. package/lib/data/SpectraManager.d.ts.map +1 -1
  634. package/lib/data/SpectraManager.js +2 -3
  635. package/lib/data/SpectraManager.js.map +1 -1
  636. package/lib/data/data1d/Spectrum1D/SumManager.d.ts.map +1 -1
  637. package/lib/data/data1d/Spectrum1D/SumManager.js +2 -1
  638. package/lib/data/data1d/Spectrum1D/SumManager.js.map +1 -1
  639. package/lib/data/data1d/Spectrum1D/index.d.ts +0 -1
  640. package/lib/data/data1d/Spectrum1D/index.d.ts.map +1 -1
  641. package/lib/data/data1d/Spectrum1D/index.js +0 -1
  642. package/lib/data/data1d/Spectrum1D/index.js.map +1 -1
  643. package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
  644. package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +17 -6
  645. package/lib/data/data1d/Spectrum1D/initiateDatum1D.js.map +1 -1
  646. package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.d.ts +7 -0
  647. package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.d.ts.map +1 -0
  648. package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.js +14 -0
  649. package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.js.map +1 -0
  650. package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
  651. package/lib/data/data1d/multipleSpectraAnalysis.js +2 -2
  652. package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
  653. package/lib/data/data2d/Spectrum2D/contours.d.ts +1 -2
  654. package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
  655. package/lib/data/data2d/Spectrum2D/contours.js +2 -2
  656. package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
  657. package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +1 -1
  658. package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts.map +1 -1
  659. package/lib/data/data2d/Spectrum2D/getSlice.d.ts.map +1 -1
  660. package/lib/data/data2d/Spectrum2D/getSlice.js +3 -3
  661. package/lib/data/data2d/Spectrum2D/getSlice.js.map +1 -1
  662. package/lib/data/data2d/Spectrum2D/index.d.ts +0 -1
  663. package/lib/data/data2d/Spectrum2D/index.d.ts.map +1 -1
  664. package/lib/data/data2d/Spectrum2D/index.js +0 -1
  665. package/lib/data/data2d/Spectrum2D/index.js.map +1 -1
  666. package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
  667. package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +12 -4
  668. package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
  669. package/lib/data/get_view_spectra.d.ts +11 -0
  670. package/lib/data/get_view_spectra.d.ts.map +1 -0
  671. package/lib/data/get_view_spectra.js +10 -0
  672. package/lib/data/get_view_spectra.js.map +1 -0
  673. package/lib/data/utilities/FindUtilities.d.ts.map +1 -1
  674. package/lib/data/utilities/FindUtilities.js +1 -2
  675. package/lib/data/utilities/FindUtilities.js.map +1 -1
  676. package/lib/data/utilities/RangeUtilities.d.ts +1 -6
  677. package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
  678. package/lib/data/utilities/RangeUtilities.js +12 -27
  679. package/lib/data/utilities/RangeUtilities.js.map +1 -1
  680. package/lib/data/utilities/getPeakAbsoluteArea.d.ts +3 -0
  681. package/lib/data/utilities/getPeakAbsoluteArea.d.ts.map +1 -0
  682. package/lib/data/utilities/getPeakAbsoluteArea.js +6 -0
  683. package/lib/data/utilities/getPeakAbsoluteArea.js.map +1 -0
  684. package/lib/versionInfo.js +1 -1
  685. package/package.json +42 -44
  686. package/src/component/1d/BrushTracker1D.tsx +170 -185
  687. package/src/component/1d/FloatPublicationString.tsx +6 -6
  688. package/src/component/1d/HorizontalAxis1D.tsx +12 -2
  689. package/src/component/1d/PredictionErrorsNotations.tsx +1 -1
  690. package/src/component/1d/SVGContent1D.tsx +2 -0
  691. package/src/component/1d/SimilarityTree.tsx +2 -2
  692. package/src/component/1d/Viewer1D.tsx +2 -0
  693. package/src/component/1d/baseline/BaselinePreview.tsx +43 -13
  694. package/src/component/1d/baseline/getMedianY.ts +23 -5
  695. package/src/component/1d/inset/DraggableInset.tsx +1 -1
  696. package/src/component/1d/integral/IntegralResizable.tsx +6 -6
  697. package/src/component/1d/matrix/useMatrix.ts +2 -2
  698. package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +4 -3
  699. package/src/component/1d/peaks/PeakAnnotations.tsx +1 -1
  700. package/src/component/1d/ranges/AssignmentLabel.tsx +1 -0
  701. package/src/component/1d/ranges/FloatingRanges.tsx +3 -4
  702. package/src/component/1d/ranges/Range.tsx +9 -11
  703. package/src/component/1d/ranges/Ranges.tsx +1 -1
  704. package/src/component/1d/ranges/Signals.tsx +28 -0
  705. package/src/component/1d-2d/FieldEdition.tsx +56 -63
  706. package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +1 -1
  707. package/src/component/1d-2d/components/RangeIndicator.tsx +106 -0
  708. package/src/component/1d-2d/components/Signals1D.tsx +310 -0
  709. package/src/component/1d-2d/components/axis_unit_picker.tsx +1 -1
  710. package/src/component/1d-2d/tools/BrushXY.tsx +45 -28
  711. package/src/component/1d-2d/tools/CrossLinePointer.tsx +109 -54
  712. package/src/component/1d-2d/tools/CursorToolIcon.tsx +110 -0
  713. package/src/component/1d-2d/tools/DistanceLine.tsx +253 -0
  714. package/src/component/2d/1d-tracer/Left1DChart.tsx +7 -5
  715. package/src/component/2d/1d-tracer/Ranges1D.tsx +4 -100
  716. package/src/component/2d/1d-tracer/Top1DChart.tsx +8 -6
  717. package/src/component/2d/BrushTracker2D.tsx +25 -13
  718. package/src/component/2d/DirectAxis2D.tsx +12 -3
  719. package/src/component/2d/FooterBanner.tsx +2 -5
  720. package/src/component/2d/IndirectAxis2D.tsx +9 -5
  721. package/src/component/2d/SignalDeltaLine.tsx +1 -1
  722. package/src/component/2d/Viewer2D.tsx +7 -2
  723. package/src/component/2d/fid/FidCanvas.tsx +2 -2
  724. package/src/component/2d/fid/FidContainer.tsx +4 -4
  725. package/src/component/2d/ft/Contours.tsx +93 -24
  726. package/src/component/2d/ft/FTContainer.tsx +3 -4
  727. package/src/component/2d/useTracesSpectra.ts +5 -3
  728. package/src/component/2d/utilities/extractSpectrumSignals.ts +34 -26
  729. package/src/component/2d/utilities/scale.ts +1 -1
  730. package/src/component/2d/zones/SignalsGuideLines.tsx +18 -25
  731. package/src/component/AnchorSVG.tsx +33 -34
  732. package/src/component/EventsTrackers/BrushTracker.tsx +22 -8
  733. package/src/component/EventsTrackers/KeysListenerTracker.tsx +6 -1
  734. package/src/component/EventsTrackers/MouseTracker.tsx +21 -0
  735. package/src/component/assignment/utilities/getAssignments.ts +1 -1
  736. package/src/component/context/DispatchContext.tsx +3 -1
  737. package/src/component/context/FilterSyncOptionsContext.tsx +15 -15
  738. package/src/component/context/KeyModifierContext.tsx +48 -38
  739. package/src/component/context/processings_mutations_context.api.ts +371 -0
  740. package/src/component/context/processings_mutations_context.tsx +28 -0
  741. package/src/component/elements/D3Axis.tsx +31 -9
  742. package/src/component/elements/NumberInput2Controller.tsx +20 -1
  743. package/src/component/elements/Sections.tsx +1 -1
  744. package/src/component/elements/TableHeaderLabel.tsx +50 -0
  745. package/src/component/elements/print/PrintContent.tsx +130 -122
  746. package/src/component/header/AutoPeakPickingOptionPanel.tsx +179 -102
  747. package/src/component/header/Header.tsx +99 -8
  748. package/src/component/header/RangesPickingOptionPanel.tsx +72 -59
  749. package/src/component/header/SimpleBaseLineCorrectionOptionsPanel.tsx +1 -3
  750. package/src/component/header/base/BaseSimpleZeroFillingOptionsPanel.tsx +7 -4
  751. package/src/component/highlight/index.tsx +11 -37
  752. package/src/component/hooks/use2DReducer.tsx +2 -2
  753. package/src/component/hooks/useAddMultipletSignal.tsx +32 -0
  754. package/src/component/hooks/useCheckPointsNumberInWindowArea.ts +4 -2
  755. package/src/component/hooks/useCheckToolsVisibility.ts +11 -1
  756. package/src/component/hooks/useFilter.ts +2 -1
  757. package/src/component/hooks/useSpectraBottomMargin.ts +1 -1
  758. package/src/component/hooks/useSpectrum.ts +19 -2
  759. package/src/component/hooks/useSpectrumWithDataSource.ts +16 -8
  760. package/src/component/hooks/useTextMetrics.ts +10 -9
  761. package/src/component/hooks/use_axis_unit.ts +2 -8
  762. package/src/component/hooks/use_publication_strings.ts +2 -4
  763. package/src/component/hooks/use_ticks_config.ts +1 -7
  764. package/src/component/hooks/use_view_spectra.ts +16 -0
  765. package/src/component/hooks/use_visible_spectra_1d.ts +5 -2
  766. package/src/component/main/InnerNMRium.tsx +50 -47
  767. package/src/component/main/NMRium.tsx +2 -2
  768. package/src/component/main/NMRiumStateProvider.tsx +4 -1
  769. package/src/component/main/types.ts +1 -1
  770. package/src/component/modal/EditPeakShapeModal.tsx +179 -118
  771. package/src/component/modal/LoadJCAMPModal.tsx +58 -57
  772. package/src/component/modal/PublicationStringModal.tsx +4 -5
  773. package/src/component/modal/aboutUs/AboutUsModal.tsx +1 -1
  774. package/src/component/modal/editRange/EditRangeModal.tsx +1 -1
  775. package/src/component/modal/editRange/forms/components/DeltaInput.tsx +17 -31
  776. package/src/component/modal/editRange/forms/components/DeltaLabel.tsx +19 -0
  777. package/src/component/modal/editRange/forms/components/SignalTab.tsx +5 -21
  778. package/src/component/modal/editRange/forms/components/SignalsContent.tsx +40 -6
  779. package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +1 -1
  780. package/src/component/modal/editRange/forms/validation/EditRangeValidation.ts +75 -52
  781. package/src/component/modal/metaImportation/MetaImportationModal.tsx +3 -3
  782. package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +2 -1
  783. package/src/component/modal/setting/tanstack_general_settings/tabs/axis_tab.tsx +76 -12
  784. package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +2 -3
  785. package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +10 -5
  786. package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +2 -3
  787. package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +8 -4
  788. package/src/component/modal/setting/tanstack_general_settings/tabs/tools_tab.tsx +3 -0
  789. package/src/component/modal/setting/tanstack_general_settings/ui/table.tsx +3 -4
  790. package/src/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.ts +16 -2
  791. package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +4 -3
  792. package/src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts +3 -2
  793. package/src/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.ts +1 -0
  794. package/src/component/panels/AutomaticAssignment/AutomaticAssignment.tsx +1 -1
  795. package/src/component/panels/AutomaticAssignment/useAutoAssignments.ts +29 -12
  796. package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.tsx +1 -1
  797. package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +2 -3
  798. package/src/component/panels/MoleculesPanel/utilities/getAssignIds.ts +1 -2
  799. package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +15 -3
  800. package/src/component/panels/PeaksPanel/PeaksTable.tsx +92 -29
  801. package/src/component/panels/RangesPanel/RangesPanel.tsx +1 -3
  802. package/src/component/panels/RangesPanel/RangesTableRow.tsx +13 -11
  803. package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.tsx +2 -2
  804. package/src/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.tsx +1 -1
  805. package/src/component/panels/SpectraPanel/SpectraPanelHeader.tsx +10 -18
  806. package/src/component/panels/SpectraPanel/SpectraTable.tsx +1 -1
  807. package/src/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.tsx +6 -3
  808. package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.tsx +45 -44
  809. package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.tsx +23 -21
  810. package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.tsx +1 -1
  811. package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.tsx +33 -28
  812. package/src/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.tsx +14 -11
  813. package/src/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.tsx +12 -10
  814. package/src/component/panels/SummaryPanel/Overview.tsx +4 -12
  815. package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +2 -2
  816. package/src/component/panels/SummaryPanel/SummaryPanel.tsx +32 -33
  817. package/src/component/panels/SummaryPanel/utilities/Utilities.ts +60 -58
  818. package/src/component/panels/SummaryPanel/utilities/useInView.ts +1 -1
  819. package/src/component/panels/databasePanel/DatabasePanel.tsx +173 -121
  820. package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +41 -16
  821. package/src/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.tsx +3 -8
  822. package/src/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.tsx +2 -4
  823. package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +6 -8
  824. package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +9 -13
  825. package/src/component/panels/filtersPanel/processings/operator_edit_banner.tsx +73 -0
  826. package/src/component/panels/filtersPanel/processings/processing_item.tsx +211 -0
  827. package/src/component/panels/filtersPanel/processings/processing_item_extra.tsx +63 -0
  828. package/src/component/panels/filtersPanel/processings/use_live_edit.ts +47 -0
  829. package/src/component/panels/filtersPanel/processings/use_live_operation.ts +22 -0
  830. package/src/component/panels/filtersPanel/processings_sections_panel.tsx +92 -276
  831. package/src/component/panels/informationPanel/InformationPanel.tsx +1 -1
  832. package/src/component/reducer/Reducer.ts +51 -8
  833. package/src/component/reducer/actions/AssignmentsActions.ts +1 -2
  834. package/src/component/reducer/actions/CorrelationsActions.ts +22 -20
  835. package/src/component/reducer/actions/DatabaseActions.ts +29 -15
  836. package/src/component/reducer/actions/DomainActions.ts +35 -24
  837. package/src/component/reducer/actions/FiltersActions.ts +57 -78
  838. package/src/component/reducer/actions/InsetActions.ts +1 -1
  839. package/src/component/reducer/actions/IntegralsActions.ts +1 -1
  840. package/src/component/reducer/actions/LoadAction.ts +8 -5
  841. package/src/component/reducer/actions/MoleculeActions.ts +1 -2
  842. package/src/component/reducer/actions/PeaksActions.ts +29 -2
  843. package/src/component/reducer/actions/PreferencesActions.ts +7 -4
  844. package/src/component/reducer/actions/RangesActions.ts +85 -41
  845. package/src/component/reducer/actions/SpectraActions.ts +7 -5
  846. package/src/component/reducer/actions/ToolsActions.ts +4 -10
  847. package/src/component/reducer/actions/ZonesActions.ts +44 -14
  848. package/src/component/reducer/actions/processings_actions.ts +130 -0
  849. package/src/component/reducer/helper/ZoomHistoryManager.ts +17 -0
  850. package/src/component/reducer/preferences/actions/initPreferences.ts +4 -1
  851. package/src/component/reducer/preferences/actions/setPreferences.ts +18 -10
  852. package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +2 -0
  853. package/src/component/reducer/preferences/preferencesReducer.ts +4 -4
  854. package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +9 -21
  855. package/src/component/toolbar/ToolTypes.ts +107 -1
  856. package/src/component/toolbar/nmr_toolbar.tsx +56 -73
  857. package/src/component/utility/{CoreSlot.tsx → core_slots/core_operator_expanded.tsx} +5 -57
  858. package/src/component/utility/core_slots/core_operator_name.tsx +21 -0
  859. package/src/component/utility/core_slots/core_operator_panel_tool.tsx +41 -0
  860. package/src/component/utility/core_slots/core_operator_tool.tsx +41 -0
  861. package/src/component/utility/core_slots/core_operator_topbar.tsx +65 -0
  862. package/src/component/utility/core_slots/core_slot.tsx +39 -0
  863. package/src/component/utility/formatNumber.ts +24 -2
  864. package/src/component/utility/toolbar_item_error.tsx +29 -0
  865. package/src/component/workspaces/assignment.ts +1 -0
  866. package/src/component/workspaces/basic.ts +1 -0
  867. package/src/component/workspaces/exercise.ts +1 -0
  868. package/src/component/workspaces/prediction.ts +1 -0
  869. package/src/component/workspaces/process1D.ts +1 -0
  870. package/src/component/workspaces/workspaceDefaultProperties.ts +20 -2
  871. package/src/data/SpectraManager.ts +2 -3
  872. package/src/data/data1d/Spectrum1D/SumManager.ts +1 -1
  873. package/src/data/data1d/Spectrum1D/index.ts +0 -1
  874. package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +17 -9
  875. package/src/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.ts +26 -0
  876. package/src/data/data1d/multipleSpectraAnalysis.ts +2 -1
  877. package/src/data/data2d/Spectrum2D/contours.ts +3 -5
  878. package/src/data/data2d/Spectrum2D/getSlice.ts +3 -4
  879. package/src/data/data2d/Spectrum2D/index.ts +0 -1
  880. package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +12 -4
  881. package/src/data/get_view_spectra.ts +21 -0
  882. package/src/data/utilities/FindUtilities.ts +1 -3
  883. package/src/data/utilities/RangeUtilities.ts +14 -35
  884. package/src/data/utilities/getPeakAbsoluteArea.ts +7 -0
  885. package/src/versionInfo.ts +1 -1
  886. package/lib/component/1d/integral/IntegralIndicator.d.ts +0 -9
  887. package/lib/component/1d/integral/IntegralIndicator.d.ts.map +0 -1
  888. package/lib/component/1d/integral/IntegralIndicator.js +0 -22
  889. package/lib/component/1d/integral/IntegralIndicator.js.map +0 -1
  890. package/lib/component/2d/1d-tracer/Signals1D.d.ts +0 -11
  891. package/lib/component/2d/1d-tracer/Signals1D.d.ts.map +0 -1
  892. package/lib/component/2d/1d-tracer/Signals1D.js +0 -90
  893. package/lib/component/2d/1d-tracer/Signals1D.js.map +0 -1
  894. package/lib/component/utility/CoreSlot.d.ts +0 -27
  895. package/lib/component/utility/CoreSlot.d.ts.map +0 -1
  896. package/lib/component/utility/CoreSlot.js.map +0 -1
  897. package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts +0 -5
  898. package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts.map +0 -1
  899. package/lib/data/data1d/Spectrum1D/isSpectrum1D.js +0 -10
  900. package/lib/data/data1d/Spectrum1D/isSpectrum1D.js.map +0 -1
  901. package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +0 -14
  902. package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts.map +0 -1
  903. package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +0 -22
  904. package/lib/data/data2d/Spectrum2D/isSpectrum2D.js.map +0 -1
  905. package/src/component/1d/integral/IntegralIndicator.tsx +0 -43
  906. package/src/component/2d/1d-tracer/Signals1D.tsx +0 -145
  907. package/src/data/data1d/Spectrum1D/isSpectrum1D.ts +0 -19
  908. package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +0 -36
@@ -1,13 +1,19 @@
1
- import { yupResolver } from '@hookform/resolvers/yup';
2
- import { useForm } from 'react-hook-form';
3
- import { Button, TooltipHelpContent } from 'react-science/ui';
4
- import * as Yup from 'yup';
1
+ import { Classes, FormGroup, MenuItem, NumericInput } from '@blueprintjs/core';
2
+ import type { ItemRenderer } from '@blueprintjs/select';
3
+ import { Select } from '@blueprintjs/select';
4
+ import styled from '@emotion/styled';
5
+ import { revalidateLogic } from '@tanstack/react-form';
6
+ import {
7
+ AppForm,
8
+ Button,
9
+ TooltipHelpContent,
10
+ coerceNumberInput,
11
+ useForm,
12
+ } from 'react-science/ui';
13
+ import { z } from 'zod/v4';
5
14
 
6
15
  import { useDispatch } from '../context/DispatchContext.js';
7
16
  import { useToaster } from '../context/ToasterContext.js';
8
- import Label from '../elements/Label.js';
9
- import { NumberInput2Controller } from '../elements/NumberInput2Controller.js';
10
- import { Select2Controller } from '../elements/Select2Controller.js';
11
17
  import { useActiveNucleusTab } from '../hooks/useActiveNucleusTab.ts';
12
18
  import { useActiveSpectra } from '../hooks/useActiveSpectra.ts';
13
19
  import {
@@ -16,12 +22,14 @@ import {
16
22
  } from '../hooks/useCheckPointsNumberInWindowArea.js';
17
23
  import { usePanelPreferences } from '../hooks/usePanelPreferences.ts';
18
24
 
19
- import { headerLabelStyle } from './Header.js';
20
- import { HeaderWrapper } from './HeaderWrapper.js';
21
-
22
25
  type Direction = 'positive' | 'negative' | 'both';
23
26
 
24
- const LookFor: Array<{ label: string; value: Direction }> = [
27
+ interface Item {
28
+ label: string;
29
+ value: Direction;
30
+ }
31
+
32
+ const LookFor: Item[] = [
25
33
  {
26
34
  label: 'Positive',
27
35
  value: 'positive',
@@ -36,48 +44,78 @@ const LookFor: Array<{ label: string; value: Direction }> = [
36
44
  },
37
45
  ];
38
46
 
39
- interface AutoPeakPickingOptions {
40
- maxNumberOfPeaks: number;
41
- minMaxRatio: number;
42
- noiseFactor: number;
43
- direction: Direction;
44
- }
45
-
46
- const validationSchema = Yup.object().shape({
47
- maxNumberOfPeaks: Yup.number().min(1).required(),
48
- minMaxRatio: Yup.number().min(0).required(),
49
- noiseFactor: Yup.number().min(0).required(),
50
- direction: Yup.mixed<Direction>()
51
- .oneOf(['both', 'negative', 'positive'])
52
- .required(),
47
+ const validationSchema = z.object({
48
+ maxNumberOfPeaks: coerceNumberInput(z.number().min(1)),
49
+ minMaxRatio: coerceNumberInput(z.number().min(0)),
50
+ noiseFactor: coerceNumberInput(z.number().min(0)),
51
+ direction: z.enum(['both', 'negative', 'positive']),
53
52
  });
54
53
 
55
- const INIT_VALUES: AutoPeakPickingOptions = {
56
- maxNumberOfPeaks: 50,
57
- minMaxRatio: 0.05,
58
- noiseFactor: 3,
54
+ type AutoPeakPickingOptionsInput = z.input<typeof validationSchema>;
55
+ type AutoPeakPickingOptions = z.output<typeof validationSchema>;
56
+
57
+ const defaultValues: AutoPeakPickingOptionsInput = {
58
+ maxNumberOfPeaks: '50',
59
+ minMaxRatio: '0.05',
60
+ noiseFactor: '3',
59
61
  direction: 'both',
60
62
  };
61
63
 
64
+ const AppFormContainer = styled(AppForm)`
65
+ display: flex;
66
+ flex-direction: row;
67
+ gap: 10px;
68
+ align-items: center;
69
+
70
+ .${Classes.FORM_GROUP} {
71
+ margin-bottom: 0;
72
+ }
73
+ `;
74
+
75
+ const renderDirection: ItemRenderer<Item> = (
76
+ direction,
77
+ { handleClick, handleFocus, modifiers },
78
+ ) => {
79
+ if (!modifiers.matchesPredicate) {
80
+ return null;
81
+ }
82
+
83
+ return (
84
+ <MenuItem
85
+ active={modifiers.active}
86
+ disabled={modifiers.disabled}
87
+ key={direction.value}
88
+ label={direction.label}
89
+ onClick={handleClick}
90
+ onFocus={handleFocus}
91
+ roleStructure="listoption"
92
+ text={direction.label}
93
+ />
94
+ );
95
+ };
96
+
62
97
  export function AutoPeakPickingOptionPanel() {
63
98
  const dispatch = useDispatch();
64
99
  const hasEnoughPoints = useCheckPointsNumberInSelectedSpectra();
65
100
  const toaster = useToaster();
66
101
  const nucleus = useActiveNucleusTab();
67
102
  const activeSpectra = useActiveSpectra();
68
-
69
103
  const { defaultPeakShape } = usePanelPreferences('peaks', nucleus);
70
- const {
71
- handleSubmit,
72
- formState: { isValid },
73
- control,
74
- } = useForm<AutoPeakPickingOptions>({
75
- defaultValues: INIT_VALUES,
76
- resolver: yupResolver(validationSchema),
77
- mode: 'onChange',
104
+ const isSpectraSelected = activeSpectra && activeSpectra.length > 0;
105
+
106
+ const form = useForm({
107
+ defaultValues,
108
+ validationLogic: revalidateLogic({ modeAfterSubmission: 'change' }),
109
+ onSubmit: ({ value }) => {
110
+ const parsedValues = validationSchema.parse(value);
111
+ handlePeakPicking(parsedValues);
112
+ },
113
+ validators: {
114
+ onDynamic: validationSchema,
115
+ },
78
116
  });
79
117
 
80
- function handlePeakPicking(values: any) {
118
+ function handlePeakPicking(values: AutoPeakPickingOptions) {
81
119
  if (hasEnoughPoints) {
82
120
  dispatch({
83
121
  type: 'AUTO_PEAK_PICKING',
@@ -94,69 +132,108 @@ export function AutoPeakPickingOptionPanel() {
94
132
  }
95
133
  }
96
134
 
97
- const isSpectraSelected = activeSpectra && activeSpectra.length > 0;
98
135
  return (
99
- <HeaderWrapper>
100
- <Label title="Direction:" shortTitle="" style={headerLabelStyle}>
101
- <Select2Controller control={control} name="direction" items={LookFor} />
102
- </Label>
103
- <Label
104
- title="Max number of peaks:"
105
- shortTitle="Max peaks:"
106
- style={headerLabelStyle}
107
- >
108
- <NumberInput2Controller
109
- control={control}
110
- name="maxNumberOfPeaks"
111
- min={1}
112
- stepSize={1}
113
- style={{ width: '60px' }}
114
- />
115
- </Label>
116
- <Label title="Noise factor:" shortTitle="Noise:" style={headerLabelStyle}>
117
- <NumberInput2Controller
118
- control={control}
119
- name="noiseFactor"
120
- min={0}
121
- stepSize={1}
122
- style={{ width: '60px' }}
123
- />
124
- </Label>
125
- <Label
126
- title="Min/max Ratio:"
127
- shortTitle="Ratio:"
128
- style={headerLabelStyle}
129
- >
130
- <NumberInput2Controller
131
- control={control}
132
- name="minMaxRatio"
133
- min={0}
134
- stepSize={0.01}
135
- majorStepSize={0.01}
136
- minorStepSize={0.01}
137
- style={{ width: '60px' }}
138
- debounceTime={500}
139
- />
140
- </Label>
141
- <Button
142
- intent="success"
143
- onClick={() => handleSubmit(handlePeakPicking)()}
144
- style={{ margin: '0 10px' }}
145
- disabled={!isValid || !isSpectraSelected}
146
- {...(!isSpectraSelected && {
147
- tooltipProps: {
148
- content: (
149
- <TooltipHelpContent
150
- title="Auto peak picking"
151
- description="Select a one or more spectra to enable auto peak picking"
152
- />
153
- ),
154
- intent: 'danger',
155
- },
156
- })}
157
- >
158
- Apply to {activeSpectra?.length} spectra
159
- </Button>
160
- </HeaderWrapper>
136
+ <AppFormContainer form={form}>
137
+ <form.AppField name="direction">
138
+ {(field) => {
139
+ const activeItem = LookFor.find(
140
+ (item) => item.value === field.state.value,
141
+ );
142
+
143
+ return (
144
+ <FormGroup label="Direction:" inline>
145
+ <Select<Item>
146
+ filterable={false}
147
+ items={LookFor}
148
+ itemRenderer={renderDirection}
149
+ activeItem={activeItem}
150
+ onItemSelect={(element) => {
151
+ field.handleChange(element.value);
152
+ }}
153
+ >
154
+ <Button
155
+ text={activeItem?.label}
156
+ endIcon="double-caret-vertical"
157
+ />
158
+ </Select>
159
+ </FormGroup>
160
+ );
161
+ }}
162
+ </form.AppField>
163
+
164
+ <form.AppField name="maxNumberOfPeaks">
165
+ {(field) => (
166
+ <FormGroup label="Max peaks:" inline>
167
+ <NumericInput
168
+ value={field.state.value ?? ''}
169
+ onBlur={field.handleBlur}
170
+ min={1}
171
+ style={{ width: '60px' }}
172
+ stepSize={1}
173
+ onValueChange={(_, valueAsString) => {
174
+ field.handleChange(valueAsString);
175
+ }}
176
+ />
177
+ </FormGroup>
178
+ )}
179
+ </form.AppField>
180
+
181
+ <form.AppField name="noiseFactor">
182
+ {(field) => (
183
+ <FormGroup label="Noise:" inline>
184
+ <NumericInput
185
+ value={field.state.value ?? ''}
186
+ onBlur={field.handleBlur}
187
+ min={1}
188
+ style={{ width: '60px' }}
189
+ stepSize={1}
190
+ onValueChange={(_, valueAsString) => {
191
+ field.handleChange(valueAsString);
192
+ }}
193
+ />
194
+ </FormGroup>
195
+ )}
196
+ </form.AppField>
197
+
198
+ <form.AppField name="minMaxRatio">
199
+ {(field) => (
200
+ <FormGroup label="Ratio:" inline>
201
+ <NumericInput
202
+ value={field.state.value ?? ''}
203
+ onBlur={field.handleBlur}
204
+ style={{ width: '60px' }}
205
+ min={0}
206
+ stepSize={0.01}
207
+ majorStepSize={0.01}
208
+ minorStepSize={0.01}
209
+ onValueChange={(_, valueAsString) => {
210
+ field.handleChange(valueAsString);
211
+ }}
212
+ />
213
+ </FormGroup>
214
+ )}
215
+ </form.AppField>
216
+
217
+ <div>
218
+ <form.SubmitButton
219
+ tooltipProps={
220
+ !isSpectraSelected
221
+ ? {
222
+ intent: 'danger',
223
+ content: (
224
+ <TooltipHelpContent
225
+ title="Auto peak picking"
226
+ description="Select a one or more spectra to enable auto peak picking"
227
+ />
228
+ ),
229
+ }
230
+ : undefined
231
+ }
232
+ intent={isSpectraSelected ? 'success' : 'danger'}
233
+ >
234
+ Apply to {activeSpectra?.length} spectra
235
+ </form.SubmitButton>
236
+ </div>
237
+ </AppFormContainer>
161
238
  );
162
239
  }
@@ -1,4 +1,5 @@
1
1
  import styled from '@emotion/styled';
2
+ import { assertDefined } from '@zakodium/utils';
2
3
  import { memo, useMemo } from 'react';
3
4
  import {
4
5
  FaFilm,
@@ -6,28 +7,36 @@ import {
6
7
  FaRegSave,
7
8
  FaRegWindowMaximize,
8
9
  } from 'react-icons/fa';
9
- import { Toolbar, useFullscreen } from 'react-science/ui';
10
+ import { Button as RSButton, Toolbar, useFullscreen } from 'react-science/ui';
10
11
 
11
12
  import { docsBaseUrl } from '../../constants.js';
12
13
  import { useChartData } from '../context/ChartContext.js';
14
+ import { useCore } from '../context/CoreContext.tsx';
15
+ import { useDispatch } from '../context/DispatchContext.tsx';
13
16
  import {
14
17
  usePreferences,
15
18
  useWorkspacesList,
16
19
  } from '../context/PreferencesContext.js';
20
+ import { useProcessingsMutations } from '../context/processings_mutations_context.tsx';
17
21
  import Button from '../elements/Button.js';
18
22
  import { ContainerQueryWrapper } from '../elements/ContainerQueryWrapper.js';
19
23
  import { HeaderContainer } from '../elements/HeaderContainer.js';
20
24
  import type { LabelStyle } from '../elements/Label.js';
21
25
  import type { DropDownListItem } from '../elements/dropDownButton/DropDownButton.js';
22
26
  import DropDownButton from '../elements/dropDownButton/DropDownButton.js';
27
+ import useCheckExperimentalFeature from '../hooks/useCheckExperimentalFeature.ts';
23
28
  import { useSaveSettings } from '../hooks/useSaveSettings.js';
29
+ import { useStableSpectrum } from '../hooks/useSpectrum.ts';
24
30
  import { useWorkspaceAction } from '../hooks/useWorkspaceAction.js';
25
31
  import { LogsHistoryModal } from '../modal/LogsHistoryModal.js';
26
32
  import AboutUsModal from '../modal/aboutUs/AboutUsModal.js';
27
33
  import WorkspaceItem from '../modal/setting/WorkspaceItem.js';
28
34
  import { GeneralSettingsToolbarItem } from '../modal/setting/general_settings.js';
35
+ import { useLiveEdit } from '../panels/filtersPanel/processings/use_live_edit.ts';
36
+ import { useLiveOperation } from '../panels/filtersPanel/processings/use_live_operation.ts';
29
37
  import { options } from '../toolbar/ToolTypes.js';
30
- import { CoreSlot } from '../utility/CoreSlot.tsx';
38
+ import { CoreOperatorTopBar } from '../utility/core_slots/core_operator_topbar.tsx';
39
+ import { CoreSlot } from '../utility/core_slots/core_slot.tsx';
31
40
 
32
41
  import { AutoPeakPickingOptionPanel } from './AutoPeakPickingOptionPanel.js';
33
42
  import { HeaderWrapper } from './HeaderWrapper.js';
@@ -71,6 +80,7 @@ function HeaderInner(props: HeaderInnerProps) {
71
80
  } = usePreferences();
72
81
  const { setActiveWorkspace } = useWorkspaceAction();
73
82
  const fullscreen = useFullscreen();
83
+ const isExperimental = useCheckExperimentalFeature();
74
84
 
75
85
  const workspacesList = useWorkspacesList();
76
86
 
@@ -137,6 +147,7 @@ function HeaderInner(props: HeaderInnerProps) {
137
147
  <AboutUsModal />
138
148
  </Toolbar>
139
149
  </div>
150
+ {isExperimental && <PluginTopBarTool />}
140
151
  <div className="toolOptionsPanel" style={{ flex: 1 }}>
141
152
  {selectedPanel}
142
153
  </div>
@@ -239,13 +250,9 @@ export function Header() {
239
250
  toolOptions: { selectedOptionPanel },
240
251
  height,
241
252
  } = useChartData();
253
+
242
254
  return (
243
- <MemoizedHeader
244
- {...{
245
- selectedOptionPanel,
246
- height,
247
- }}
248
- />
255
+ <MemoizedHeader selectedOptionPanel={selectedOptionPanel} height={height} />
249
256
  );
250
257
  }
251
258
 
@@ -255,3 +262,87 @@ const PluginTopBarRight = styled.div`
255
262
  gap: 5px;
256
263
  margin-right: 5px;
257
264
  `;
265
+
266
+ const PluginTopBarToolContainer = styled.div`
267
+ flex: 1;
268
+ display: flex;
269
+ align-items: center;
270
+ gap: 5px;
271
+ `;
272
+
273
+ function PluginTopBarTool() {
274
+ const core = useCore();
275
+ const stableSpectrum = useStableSpectrum();
276
+ const [liveOperation, setLiveOperation] = useLiveOperation();
277
+ const liveEdit = useLiveEdit(liveOperation);
278
+ const processingsMutations = useProcessingsMutations();
279
+ const dispatch = useDispatch();
280
+
281
+ if (!liveOperation) return null;
282
+ if (!stableSpectrum) return null;
283
+
284
+ const operatorUI = core.slotOperator(liveOperation.operatorId);
285
+ const isEditable = operatorUI?.isEditable ?? false;
286
+ const isLiveEditable = operatorUI?.isLiveEditable ?? false;
287
+
288
+ function closeProcessing() {
289
+ dispatch({
290
+ type: 'SELECT_PROCESSING_OPERATOR',
291
+ payload: { operatorUI: undefined },
292
+ });
293
+ }
294
+
295
+ return (
296
+ <PluginTopBarToolContainer>
297
+ <CoreOperatorTopBar
298
+ core={core}
299
+ id={liveOperation.operatorId}
300
+ operation={liveOperation}
301
+ spectrum={stableSpectrum}
302
+ onChange={(liveOperation) => {
303
+ liveOperation = setLiveOperation(liveOperation);
304
+
305
+ if (!isLiveEditable) return;
306
+ if (!liveEdit.value?.checked) return;
307
+
308
+ void processingsMutations.applyLiveChange(
309
+ liveOperation,
310
+ liveEdit.value?.shouldProcessNext ?? false,
311
+ );
312
+ }}
313
+ onSubmit={(operation) => {
314
+ if (!isEditable) return;
315
+
316
+ assertDefined(stableSpectrum?.processings);
317
+ const operationIndex = stableSpectrum.processings.findIndex(
318
+ (p) => p.uid === liveOperation.uid,
319
+ );
320
+
321
+ closeProcessing();
322
+ void processingsMutations.apply(
323
+ // onChange generally change settings
324
+ // so options should be re-computed
325
+ { ...operation, options: undefined },
326
+ operationIndex,
327
+ );
328
+ }}
329
+ >
330
+ {(children) =>
331
+ isEditable && (
332
+ <>
333
+ {children}
334
+ <RSButton
335
+ variant="minimal"
336
+ intent="danger"
337
+ onClick={closeProcessing}
338
+ size="small"
339
+ >
340
+ Cancel
341
+ </RSButton>
342
+ </>
343
+ )
344
+ }
345
+ </CoreOperatorTopBar>
346
+ </PluginTopBarToolContainer>
347
+ );
348
+ }
@@ -1,51 +1,47 @@
1
- import { Button, Checkbox } from '@blueprintjs/core';
2
- import { yupResolver } from '@hookform/resolvers/yup';
3
- import { useForm } from 'react-hook-form';
4
- import * as Yup from 'yup';
1
+ import { Checkbox, Classes, FormGroup, NumericInput } from '@blueprintjs/core';
2
+ import styled from '@emotion/styled';
3
+ import { revalidateLogic } from '@tanstack/react-form';
4
+ import { AppForm, coerceNumberInput, useForm } from 'react-science/ui';
5
+ import { z } from 'zod';
5
6
 
6
7
  import { useDispatch } from '../context/DispatchContext.js';
7
8
  import { useToaster } from '../context/ToasterContext.js';
8
- import Label from '../elements/Label.js';
9
- import { NumberInput2Controller } from '../elements/NumberInput2Controller.js';
10
9
  import {
11
10
  MIN_AREA_POINTS,
12
11
  useCheckPointsNumberInWindowArea,
13
12
  } from '../hooks/useCheckPointsNumberInWindowArea.js';
14
13
 
15
- import { headerLabelStyle } from './Header.js';
16
- import { HeaderWrapper } from './HeaderWrapper.js';
17
-
18
- interface AutoRangesOptions {
19
- minMaxRatio: number;
20
- lookNegative: boolean;
21
- }
22
-
23
- const validationSchema = Yup.object().shape({
24
- minMaxRatio: Yup.number().min(0).required(),
25
- lookNegative: Yup.boolean().required(),
14
+ const validationZodSchema = z.object({
15
+ minMaxRatio: coerceNumberInput(z.number().min(0)),
16
+ lookNegative: z.boolean(),
26
17
  });
27
18
 
28
- const initialValues: AutoRangesOptions = {
29
- minMaxRatio: 0.05,
19
+ const defaultValues: AutoRangesOptionsInput = {
20
+ minMaxRatio: '0.05',
30
21
  lookNegative: false,
31
22
  };
32
23
 
24
+ const AppFormContainer = styled(AppForm)`
25
+ display: flex;
26
+ flex-direction: row;
27
+ gap: 10px;
28
+ align-items: center;
29
+
30
+ .${Classes.CHECKBOX}, .${Classes.FORM_GROUP} {
31
+ margin-bottom: 0;
32
+ }
33
+ `;
34
+
35
+ type AutoRangesOptionsInput = z.input<typeof validationZodSchema>;
36
+ type AutoRangesOptions = z.output<typeof validationZodSchema>;
37
+
33
38
  function RangesPickingOptionPanel() {
34
39
  const dispatch = useDispatch();
35
- const {
36
- handleSubmit,
37
- register,
38
- control,
39
- formState: { isValid },
40
- } = useForm<AutoRangesOptions>({
41
- defaultValues: initialValues,
42
- resolver: yupResolver(validationSchema),
43
- mode: 'onChange',
44
- });
40
+
45
41
  const hasEnoughPoints = useCheckPointsNumberInWindowArea();
46
42
  const toaster = useToaster();
47
43
 
48
- function handleRangesPicking(values: any) {
44
+ function handleRangesPicking(values: AutoRangesOptions) {
49
45
  if (hasEnoughPoints) {
50
46
  dispatch({
51
47
  type: 'AUTO_RANGES_DETECTION',
@@ -59,37 +55,54 @@ function RangesPickingOptionPanel() {
59
55
  }
60
56
  }
61
57
 
58
+ const form = useForm({
59
+ defaultValues,
60
+ validationLogic: revalidateLogic({ modeAfterSubmission: 'change' }),
61
+ validators: {
62
+ onDynamic: validationZodSchema,
63
+ },
64
+ onSubmit: ({ value }) => {
65
+ const parsedValues = validationZodSchema.parse(value);
66
+ handleRangesPicking(parsedValues);
67
+ },
68
+ });
69
+
62
70
  return (
63
- <HeaderWrapper>
64
- <Label title="Detect negative" style={headerLabelStyle}>
65
- <Checkbox
66
- style={{ margin: 0 }}
67
- {...register(`lookNegative`)}
68
- defaultChecked={false}
69
- />
70
- </Label>
71
- <Label title="Min/max ratio:" style={headerLabelStyle}>
72
- <NumberInput2Controller
73
- control={control}
74
- name="minMaxRatio"
75
- min={0}
76
- stepSize={0.01}
77
- majorStepSize={0.01}
78
- minorStepSize={0.01}
79
- style={{ width: '70px' }}
80
- debounceTime={500}
81
- />
82
- </Label>
71
+ <AppFormContainer form={form}>
72
+ <form.AppField name="lookNegative">
73
+ {(field) => (
74
+ <Checkbox
75
+ label="Detect negative"
76
+ checked={field.state.value}
77
+ onBlur={field.handleBlur}
78
+ onChange={({ target: { checked } }) => field.handleChange(checked)}
79
+ />
80
+ )}
81
+ </form.AppField>
82
+
83
+ <form.AppField name="minMaxRatio">
84
+ {(field) => (
85
+ <FormGroup label="Min/max ratio:" inline>
86
+ <NumericInput
87
+ value={field.state.value ?? ''}
88
+ onBlur={field.handleBlur}
89
+ min={0}
90
+ stepSize={0.01}
91
+ minorStepSize={0.01}
92
+ onValueChange={(_, valueAsString) => {
93
+ field.handleChange(valueAsString);
94
+ }}
95
+ />
96
+ </FormGroup>
97
+ )}
98
+ </form.AppField>
83
99
 
84
- <Button
85
- intent="success"
86
- onClick={() => handleSubmit(handleRangesPicking)()}
87
- style={{ margin: '0 10px' }}
88
- disabled={!isValid}
89
- >
90
- Auto ranges picking
91
- </Button>
92
- </HeaderWrapper>
100
+ <div>
101
+ <form.SubmitButton intent="success">
102
+ Auto ranges picking
103
+ </form.SubmitButton>
104
+ </div>
105
+ </AppFormContainer>
93
106
  );
94
107
  }
95
108
 
@@ -42,13 +42,11 @@ function BaseLineCorrectionInnerPanel({
42
42
  filter,
43
43
  }: BaseLineCorrectionInnerPanelProps) {
44
44
  const {
45
- reset,
45
+ form: { handleSubmit, control, reset },
46
46
  onAlgorithmChange,
47
47
  submitHandler,
48
- handleSubmit,
49
48
  handleApplyFilter,
50
49
  handleCancelFilter,
51
- control,
52
50
  algorithm,
53
51
  defaultAlgorithmSelectProps,
54
52
  } = useBaselineCorrection(filter);
@@ -19,10 +19,13 @@ export function BaseSimpleZeroFillingOptionsPanel(
19
19
  ) {
20
20
  const { filter } = props;
21
21
 
22
- const { control, submitHandler, register, handleCancelFilter } =
23
- useZeroFilling(filter, {
24
- applyFilterOnload: true,
25
- });
22
+ const {
23
+ form: { register, control },
24
+ submitHandler,
25
+ handleCancelFilter,
26
+ } = useZeroFilling(filter, {
27
+ applyFilterOnload: true,
28
+ });
26
29
 
27
30
  const { onChange: onLivePreviewChange, ...otherLivePreviewRegisterOptions } =
28
31
  register('livePreview');