nmrium 0.61.1-pre.1742387637 → 0.62.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 (874) hide show
  1. package/lib/component/1d/SVGContent1D.js +1 -1
  2. package/lib/component/1d/SVGContent1D.js.map +1 -1
  3. package/lib/component/1d/Viewer1D.js +2 -2
  4. package/lib/component/1d/Viewer1D.js.map +1 -1
  5. package/lib/component/1d/inset/InsetProvider.d.ts +0 -1
  6. package/lib/component/1d/inset/InsetProvider.d.ts.map +1 -1
  7. package/lib/component/1d/inset/InsetProvider.js +0 -3
  8. package/lib/component/1d/inset/InsetProvider.js.map +1 -1
  9. package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.d.ts.map +1 -1
  10. package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js +11 -3
  11. package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js.map +1 -1
  12. package/lib/component/1d/matrix/Boxplot.d.ts +0 -5
  13. package/lib/component/1d/matrix/Boxplot.d.ts.map +1 -1
  14. package/lib/component/1d/matrix/Boxplot.js +1 -1
  15. package/lib/component/1d/matrix/Boxplot.js.map +1 -1
  16. package/lib/component/1d/matrix/Stocsy.d.ts +0 -4
  17. package/lib/component/1d/matrix/Stocsy.d.ts.map +1 -1
  18. package/lib/component/1d/matrix/Stocsy.js +2 -2
  19. package/lib/component/1d/matrix/Stocsy.js.map +1 -1
  20. package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts.map +1 -1
  21. package/lib/component/1d/multiplicityTree/MultiplicityTree.js +8 -11
  22. package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
  23. package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts +2 -1
  24. package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts.map +1 -1
  25. package/lib/component/1d/peaks/PeakAnnotations.d.ts +1 -9
  26. package/lib/component/1d/peaks/PeakAnnotations.d.ts.map +1 -1
  27. package/lib/component/1d/peaks/PeakAnnotations.js +1 -1
  28. package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
  29. package/lib/component/1d/peaks/Peaks.d.ts +1 -2
  30. package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
  31. package/lib/component/1d/utilities/scale.d.ts +1 -7
  32. package/lib/component/1d/utilities/scale.d.ts.map +1 -1
  33. package/lib/component/1d/utilities/scale.js +2 -39
  34. package/lib/component/1d/utilities/scale.js.map +1 -1
  35. package/lib/component/1d-2d/tools/BrushXY.d.ts +5 -7
  36. package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
  37. package/lib/component/1d-2d/tools/BrushXY.js +12 -20
  38. package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
  39. package/lib/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.d.ts +6 -8
  40. package/lib/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.d.ts.map +1 -1
  41. package/lib/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.js.map +1 -1
  42. package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
  43. package/lib/component/2d/BrushTracker2D.js +14 -5
  44. package/lib/component/2d/BrushTracker2D.js.map +1 -1
  45. package/lib/component/2d/FooterBanner.js +20 -20
  46. package/lib/component/2d/FooterBanner.js.map +1 -1
  47. package/lib/component/2d/SVGContent2D.d.ts +0 -1
  48. package/lib/component/2d/SVGContent2D.d.ts.map +1 -1
  49. package/lib/component/2d/SVGContent2D.js +0 -5
  50. package/lib/component/2d/SVGContent2D.js.map +1 -1
  51. package/lib/component/2d/Viewer2D.d.ts.map +1 -1
  52. package/lib/component/2d/Viewer2D.js +2 -2
  53. package/lib/component/2d/Viewer2D.js.map +1 -1
  54. package/lib/component/2d/tools/XYLabelPointer.js +12 -12
  55. package/lib/component/2d/tools/XYLabelPointer.js.map +1 -1
  56. package/lib/component/2d/utilities/DimensionLayout.d.ts +6 -24
  57. package/lib/component/2d/utilities/DimensionLayout.d.ts.map +1 -1
  58. package/lib/component/2d/utilities/DimensionLayout.js +6 -6
  59. package/lib/component/2d/utilities/DimensionLayout.js.map +1 -1
  60. package/lib/component/2d/utilities/scale.d.ts +2 -20
  61. package/lib/component/2d/utilities/scale.d.ts.map +1 -1
  62. package/lib/component/2d/utilities/scale.js +3 -21
  63. package/lib/component/2d/utilities/scale.js.map +1 -1
  64. package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts +0 -6
  65. package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts.map +1 -1
  66. package/lib/component/2d/zones/ZonesAssignmentsLabels.js +1 -1
  67. package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
  68. package/lib/component/EventsTrackers/BrushTracker.d.ts +14 -2
  69. package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
  70. package/lib/component/EventsTrackers/BrushTracker.js +33 -1
  71. package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
  72. package/lib/component/EventsTrackers/MouseTracker.d.ts +0 -1
  73. package/lib/component/EventsTrackers/MouseTracker.d.ts.map +1 -1
  74. package/lib/component/EventsTrackers/MouseTracker.js +1 -1
  75. package/lib/component/EventsTrackers/MouseTracker.js.map +1 -1
  76. package/lib/component/assignment/AssignmentsContext.d.ts +3 -4
  77. package/lib/component/assignment/AssignmentsContext.d.ts.map +1 -1
  78. package/lib/component/assignment/AssignmentsContext.js +0 -1
  79. package/lib/component/assignment/AssignmentsContext.js.map +1 -1
  80. package/lib/component/context/ChartContext.d.ts +0 -1
  81. package/lib/component/context/ChartContext.d.ts.map +1 -1
  82. package/lib/component/context/ChartContext.js +1 -1
  83. package/lib/component/context/ChartContext.js.map +1 -1
  84. package/lib/component/context/DispatchContext.d.ts +2 -2
  85. package/lib/component/context/DispatchContext.d.ts.map +1 -1
  86. package/lib/component/context/DispatchContext.js +1 -1
  87. package/lib/component/context/DispatchContext.js.map +1 -1
  88. package/lib/component/context/GlobalContext.d.ts +0 -5
  89. package/lib/component/context/GlobalContext.d.ts.map +1 -1
  90. package/lib/component/context/GlobalContext.js +1 -1
  91. package/lib/component/context/GlobalContext.js.map +1 -1
  92. package/lib/component/context/KeyModifierContext.d.ts +0 -2
  93. package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
  94. package/lib/component/context/KeyModifierContext.js +2 -2
  95. package/lib/component/context/KeyModifierContext.js.map +1 -1
  96. package/lib/component/context/LoggerContext.d.ts +0 -6
  97. package/lib/component/context/LoggerContext.d.ts.map +1 -1
  98. package/lib/component/context/LoggerContext.js +1 -1
  99. package/lib/component/context/LoggerContext.js.map +1 -1
  100. package/lib/component/context/PreferencesContext.d.ts +2 -2
  101. package/lib/component/context/PreferencesContext.d.ts.map +1 -1
  102. package/lib/component/context/PreferencesContext.js +1 -1
  103. package/lib/component/context/PreferencesContext.js.map +1 -1
  104. package/lib/component/context/ScaleContext.d.ts +0 -1
  105. package/lib/component/context/ScaleContext.d.ts.map +1 -1
  106. package/lib/component/context/ScaleContext.js +1 -1
  107. package/lib/component/context/ScaleContext.js.map +1 -1
  108. package/lib/component/elements/Button.d.ts +2 -2
  109. package/lib/component/elements/Button.d.ts.map +1 -1
  110. package/lib/component/elements/Button.js.map +1 -1
  111. package/lib/component/elements/ContextMenuBluePrint.d.ts +2 -2
  112. package/lib/component/elements/ContextMenuBluePrint.d.ts.map +1 -1
  113. package/lib/component/elements/FormatField.d.ts +0 -2
  114. package/lib/component/elements/FormatField.d.ts.map +1 -1
  115. package/lib/component/elements/FormatField.js +1 -1
  116. package/lib/component/elements/FormatField.js.map +1 -1
  117. package/lib/component/elements/Input.d.ts +1 -1
  118. package/lib/component/elements/Input.d.ts.map +1 -1
  119. package/lib/component/elements/Input2Controller.d.ts +1 -1
  120. package/lib/component/elements/Input2Controller.d.ts.map +1 -1
  121. package/lib/component/elements/Label.d.ts +0 -1
  122. package/lib/component/elements/Label.d.ts.map +1 -1
  123. package/lib/component/elements/Label.js +1 -1
  124. package/lib/component/elements/Label.js.map +1 -1
  125. package/lib/component/elements/ReactTable/ReactTable.d.ts +1 -1
  126. package/lib/component/elements/ReactTable/ReactTable.d.ts.map +1 -1
  127. package/lib/component/elements/Sections.d.ts +0 -6
  128. package/lib/component/elements/Sections.d.ts.map +1 -1
  129. package/lib/component/elements/Sections.js +3 -1
  130. package/lib/component/elements/Sections.js.map +1 -1
  131. package/lib/component/elements/Select.d.ts +1 -1
  132. package/lib/component/elements/Select.d.ts.map +1 -1
  133. package/lib/component/elements/Select2.d.ts +0 -1
  134. package/lib/component/elements/Select2.d.ts.map +1 -1
  135. package/lib/component/elements/Select2.js +1 -1
  136. package/lib/component/elements/Select2.js.map +1 -1
  137. package/lib/component/elements/Tab/Tab.d.ts +3 -2
  138. package/lib/component/elements/Tab/Tab.d.ts.map +1 -1
  139. package/lib/component/elements/Tab/Tabs.d.ts +1 -1
  140. package/lib/component/elements/Tab/Tabs.d.ts.map +1 -1
  141. package/lib/component/elements/Tab/Tabs.js +1 -1
  142. package/lib/component/elements/Tab/Tabs.js.map +1 -1
  143. package/lib/component/elements/export/ExportContent.d.ts +0 -4
  144. package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
  145. package/lib/component/elements/export/ExportContent.js +1 -1
  146. package/lib/component/elements/export/ExportContent.js.map +1 -1
  147. package/lib/component/elements/export/ExportManager.d.ts +2 -2
  148. package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
  149. package/lib/component/elements/export/ExportSettingsProvider.d.ts +1 -1
  150. package/lib/component/elements/export/ExportSettingsProvider.d.ts.map +1 -1
  151. package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts +1 -29
  152. package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts.map +1 -1
  153. package/lib/component/elements/export/utilities/exportOptionValidationSchema.js +2 -2
  154. package/lib/component/elements/export/utilities/exportOptionValidationSchema.js.map +1 -1
  155. package/lib/component/elements/export/utilities/getExportOptions.d.ts +1 -4
  156. package/lib/component/elements/export/utilities/getExportOptions.d.ts.map +1 -1
  157. package/lib/component/elements/export/utilities/getExportOptions.js +2 -10
  158. package/lib/component/elements/export/utilities/getExportOptions.js.map +1 -1
  159. package/lib/component/elements/print/PrintContent.d.ts +0 -1
  160. package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
  161. package/lib/component/elements/print/PrintContent.js +1 -1
  162. package/lib/component/elements/print/PrintContent.js.map +1 -1
  163. package/lib/component/elements/print/PrintProvider.d.ts +1 -1
  164. package/lib/component/elements/print/PrintProvider.d.ts.map +1 -1
  165. package/lib/component/elements/print/pageSize.d.ts +2 -1
  166. package/lib/component/elements/print/pageSize.d.ts.map +1 -1
  167. package/lib/component/hooks/useFormatNumberByNucleus.d.ts +2 -1
  168. package/lib/component/hooks/useFormatNumberByNucleus.d.ts.map +1 -1
  169. package/lib/component/hooks/usePanelPreferences.d.ts +1 -1
  170. package/lib/component/hooks/usePanelPreferences.d.ts.map +1 -1
  171. package/lib/component/hooks/usePanelPreferences.js.map +1 -1
  172. package/lib/component/hooks/useTableSortBy.d.ts +0 -5
  173. package/lib/component/hooks/useTableSortBy.d.ts.map +1 -1
  174. package/lib/component/hooks/useTableSortBy.js +1 -1
  175. package/lib/component/hooks/useTableSortBy.js.map +1 -1
  176. package/lib/component/hooks/useToolsFunctions.d.ts.map +1 -1
  177. package/lib/component/hooks/useToolsFunctions.js +10 -10
  178. package/lib/component/hooks/useToolsFunctions.js.map +1 -1
  179. package/lib/component/main/NMRium.d.ts.map +1 -1
  180. package/lib/component/main/NMRium.js +2 -2
  181. package/lib/component/main/NMRium.js.map +1 -1
  182. package/lib/component/modal/PredictSpectraModal.d.ts +2 -2
  183. package/lib/component/modal/PredictSpectraModal.d.ts.map +1 -1
  184. package/lib/component/modal/PredictSpectraModal.js +1 -2
  185. package/lib/component/modal/PredictSpectraModal.js.map +1 -1
  186. package/lib/component/modal/changeSum/ChangeSumModal.d.ts +2 -1
  187. package/lib/component/modal/changeSum/ChangeSumModal.d.ts.map +1 -1
  188. package/lib/component/modal/editRange/EditRangeModal.d.ts.map +1 -1
  189. package/lib/component/modal/editRange/EditRangeModal.js +25 -56
  190. package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
  191. package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts.map +1 -1
  192. package/lib/component/modal/editRange/forms/components/DeltaInput.js +1 -4
  193. package/lib/component/modal/editRange/forms/components/DeltaInput.js.map +1 -1
  194. package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
  195. package/lib/component/modal/editRange/forms/components/NewSignalTab.js +1 -2
  196. package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
  197. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.d.ts.map +1 -1
  198. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js +3 -4
  199. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
  200. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts.map +1 -1
  201. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js +2 -2
  202. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
  203. package/lib/component/modal/editRange/forms/validation/EditRangeValidation.d.ts.map +1 -1
  204. package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +17 -5
  205. package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js.map +1 -1
  206. package/lib/component/modal/editRange/utils/couplingsToMultiplicity.d.ts +3 -0
  207. package/lib/component/modal/editRange/utils/couplingsToMultiplicity.d.ts.map +1 -0
  208. package/lib/component/modal/editRange/utils/couplingsToMultiplicity.js +4 -0
  209. package/lib/component/modal/editRange/utils/couplingsToMultiplicity.js.map +1 -0
  210. package/lib/component/modal/editRange/utils/mapCouplings.d.ts +3 -0
  211. package/lib/component/modal/editRange/utils/mapCouplings.d.ts.map +1 -0
  212. package/lib/component/modal/editRange/utils/mapCouplings.js +7 -0
  213. package/lib/component/modal/editRange/utils/mapCouplings.js.map +1 -0
  214. package/lib/component/modal/editRange/utils/mapRange.d.ts +3 -0
  215. package/lib/component/modal/editRange/utils/mapRange.d.ts.map +1 -0
  216. package/lib/component/modal/editRange/utils/mapRange.js +19 -0
  217. package/lib/component/modal/editRange/utils/mapRange.js.map +1 -0
  218. package/lib/component/modal/setting/GeneralSettings.js +1 -1
  219. package/lib/component/modal/setting/GeneralSettings.js.map +1 -1
  220. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +1 -1
  221. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +1 -1
  222. package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts +0 -6
  223. package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts.map +1 -1
  224. package/lib/component/modal/setting/settings-tabs/ExportTabContent.js +1 -1
  225. package/lib/component/modal/setting/settings-tabs/ExportTabContent.js.map +1 -1
  226. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
  227. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +14 -1
  228. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
  229. package/lib/component/panels/Panels.d.ts.map +1 -1
  230. package/lib/component/panels/Panels.js +2 -2
  231. package/lib/component/panels/Panels.js.map +1 -1
  232. package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.d.ts +1 -6
  233. package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.d.ts.map +1 -1
  234. package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.js +1 -23
  235. package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.js.map +1 -1
  236. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +1 -3
  237. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
  238. package/lib/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
  239. package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
  240. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts +1 -1
  241. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts.map +1 -1
  242. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts +1 -8
  243. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts.map +1 -1
  244. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +1 -1
  245. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js.map +1 -1
  246. package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +0 -1
  247. package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts.map +1 -1
  248. package/lib/component/panels/ZonesPanel/ZonesTableRow.js.map +1 -1
  249. package/lib/component/panels/accordionItems.d.ts +3 -1
  250. package/lib/component/panels/accordionItems.d.ts.map +1 -1
  251. package/lib/component/panels/accordionItems.js +35 -40
  252. package/lib/component/panels/accordionItems.js.map +1 -1
  253. package/lib/component/panels/databasePanel/DatabasePanel.d.ts +0 -6
  254. package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
  255. package/lib/component/panels/databasePanel/DatabasePanel.js +3 -4
  256. package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
  257. package/lib/component/panels/databasePanel/DatabaseTable.d.ts +0 -5
  258. package/lib/component/panels/databasePanel/DatabaseTable.d.ts.map +1 -1
  259. package/lib/component/panels/databasePanel/DatabaseTable.js +1 -1
  260. package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
  261. package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts +0 -1
  262. package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts.map +1 -1
  263. package/lib/component/panels/extra/utilities/settingImperativeHandle.js +1 -1
  264. package/lib/component/panels/extra/utilities/settingImperativeHandle.js.map +1 -1
  265. package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts +2 -1
  266. package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts.map +1 -1
  267. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts +0 -10
  268. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
  269. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +2 -2
  270. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
  271. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts +0 -13
  272. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts.map +1 -1
  273. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js +1 -1
  274. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js.map +1 -1
  275. package/lib/component/panels/predictionPanel/PredictionPanel.d.ts.map +1 -1
  276. package/lib/component/panels/predictionPanel/PredictionPanel.js +3 -5
  277. package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
  278. package/lib/component/panels/spectrumSimulation/SpectrumSimulation.d.ts.map +1 -1
  279. package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js +2 -12
  280. package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js.map +1 -1
  281. package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.d.ts.map +1 -1
  282. package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js +6 -1
  283. package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js.map +1 -1
  284. package/lib/component/panels/spectrumSimulation/simulationValidation.d.ts +21 -0
  285. package/lib/component/panels/spectrumSimulation/simulationValidation.d.ts.map +1 -0
  286. package/lib/component/panels/spectrumSimulation/simulationValidation.js +23 -0
  287. package/lib/component/panels/spectrumSimulation/simulationValidation.js.map +1 -0
  288. package/lib/component/reducer/Reducer.d.ts +2 -7
  289. package/lib/component/reducer/Reducer.d.ts.map +1 -1
  290. package/lib/component/reducer/Reducer.js +1 -1
  291. package/lib/component/reducer/Reducer.js.map +1 -1
  292. package/lib/component/reducer/actions/DomainActions.d.ts +1 -7
  293. package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
  294. package/lib/component/reducer/actions/DomainActions.js +1 -1
  295. package/lib/component/reducer/actions/DomainActions.js.map +1 -1
  296. package/lib/component/reducer/actions/FiltersActions.d.ts +1 -1
  297. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  298. package/lib/component/reducer/actions/FiltersActions.js +15 -0
  299. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  300. package/lib/component/reducer/actions/LoadActions.d.ts +2 -8
  301. package/lib/component/reducer/actions/LoadActions.d.ts.map +1 -1
  302. package/lib/component/reducer/actions/LoadActions.js +1 -1
  303. package/lib/component/reducer/actions/LoadActions.js.map +1 -1
  304. package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
  305. package/lib/component/reducer/actions/RangesActions.js +6 -0
  306. package/lib/component/reducer/actions/RangesActions.js.map +1 -1
  307. package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
  308. package/lib/component/reducer/actions/SpectraActions.js +5 -0
  309. package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
  310. package/lib/component/reducer/actions/ToolsActions.d.ts +2 -2
  311. package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
  312. package/lib/component/reducer/actions/ToolsActions.js +3 -3
  313. package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
  314. package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +2 -3
  315. package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
  316. package/lib/component/reducer/helper/ZoomHistoryManager.js +6 -6
  317. package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
  318. package/lib/component/reducer/helper/getActiveSpectraAsObject.d.ts +0 -1
  319. package/lib/component/reducer/helper/getActiveSpectraAsObject.d.ts.map +1 -1
  320. package/lib/component/reducer/helper/getActiveSpectraAsObject.js +0 -3
  321. package/lib/component/reducer/helper/getActiveSpectraAsObject.js.map +1 -1
  322. package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.d.ts +1 -2
  323. package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.d.ts.map +1 -1
  324. package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.js +0 -5
  325. package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.js.map +1 -1
  326. package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +1 -2
  327. package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts.map +1 -1
  328. package/lib/component/reducer/preferences/actions/matrixGeneration.js +1 -11
  329. package/lib/component/reducer/preferences/actions/matrixGeneration.js.map +1 -1
  330. package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -5
  331. package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
  332. package/lib/component/reducer/preferences/preferencesReducer.js +0 -30
  333. package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
  334. package/lib/component/utility/Events.d.ts +1 -1
  335. package/lib/component/utility/Events.d.ts.map +1 -1
  336. package/lib/component/utility/LocalStorage.d.ts +0 -1
  337. package/lib/component/utility/LocalStorage.d.ts.map +1 -1
  338. package/lib/component/utility/LocalStorage.js +0 -3
  339. package/lib/component/utility/LocalStorage.js.map +1 -1
  340. package/lib/component/utility/export.d.ts +1 -6
  341. package/lib/component/utility/export.d.ts.map +1 -1
  342. package/lib/component/utility/export.js +1 -10
  343. package/lib/component/utility/export.js.map +1 -1
  344. package/lib/component/utility/formatNumber.d.ts +1 -2
  345. package/lib/component/utility/formatNumber.d.ts.map +1 -1
  346. package/lib/component/utility/formatNumber.js +1 -6
  347. package/lib/component/utility/formatNumber.js.map +1 -1
  348. package/lib/constants.d.ts +0 -4
  349. package/lib/constants.d.ts.map +1 -1
  350. package/lib/constants.js +0 -22
  351. package/lib/constants.js.map +1 -1
  352. package/lib/data/PredictionManager.d.ts +3 -2
  353. package/lib/data/PredictionManager.d.ts.map +1 -1
  354. package/lib/data/SpectraManager.d.ts +1 -1
  355. package/lib/data/SpectraManager.d.ts.map +1 -1
  356. package/lib/data/constants/DefaultPathLengths.d.ts +1 -1
  357. package/lib/data/constants/DefaultPathLengths.d.ts.map +1 -1
  358. package/lib/data/constants/Multiplets.d.ts +2 -1
  359. package/lib/data/constants/Multiplets.d.ts.map +1 -1
  360. package/lib/data/constants/References.d.ts +2 -2
  361. package/lib/data/constants/References.d.ts.map +1 -1
  362. package/lib/data/data1d/Spectrum1D/get1DColor.d.ts +0 -1
  363. package/lib/data/data1d/Spectrum1D/get1DColor.d.ts.map +1 -1
  364. package/lib/data/data1d/Spectrum1D/get1DColor.js +0 -22
  365. package/lib/data/data1d/Spectrum1D/get1DColor.js.map +1 -1
  366. package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts +2 -1
  367. package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts.map +1 -1
  368. package/lib/data/data1d/Spectrum1D/getReferenceShift.js.map +1 -1
  369. package/lib/data/data1d/Spectrum1D/index.d.ts +2 -3
  370. package/lib/data/data1d/Spectrum1D/index.d.ts.map +1 -1
  371. package/lib/data/data1d/Spectrum1D/index.js +2 -3
  372. package/lib/data/data1d/Spectrum1D/index.js.map +1 -1
  373. package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts +2 -1
  374. package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
  375. package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts.map +1 -1
  376. package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +3 -5
  377. package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.js.map +1 -1
  378. package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts +1 -1
  379. package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts.map +1 -1
  380. package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +1 -1
  381. package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts.map +1 -1
  382. package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts +1 -1
  383. package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts.map +1 -1
  384. package/lib/data/data1d/database.d.ts +3 -3
  385. package/lib/data/data1d/database.d.ts.map +1 -1
  386. package/lib/data/data1d/multipleSpectraAnalysis.d.ts +3 -15
  387. package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
  388. package/lib/data/data1d/multipleSpectraAnalysis.js +1 -7
  389. package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
  390. package/lib/data/data1d/spectrumSimulation.d.ts +2 -1
  391. package/lib/data/data1d/spectrumSimulation.d.ts.map +1 -1
  392. package/lib/data/data2d/Spectrum2D/contours.d.ts +1 -2
  393. package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
  394. package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
  395. package/lib/data/data2d/Spectrum2D/index.d.ts +0 -1
  396. package/lib/data/data2d/Spectrum2D/index.d.ts.map +1 -1
  397. package/lib/data/data2d/Spectrum2D/index.js +0 -1
  398. package/lib/data/data2d/Spectrum2D/index.js.map +1 -1
  399. package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts +2 -1
  400. package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
  401. package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +0 -1
  402. package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts.map +1 -1
  403. package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +1 -1
  404. package/lib/data/data2d/Spectrum2D/isSpectrum2D.js.map +1 -1
  405. package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
  406. package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts.map +1 -1
  407. package/lib/data/matrixGeneration.d.ts +1 -1
  408. package/lib/data/matrixGeneration.d.ts.map +1 -1
  409. package/lib/data/molecules/MoleculeManager.d.ts +0 -1
  410. package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
  411. package/lib/data/molecules/MoleculeManager.js +1 -1
  412. package/lib/data/molecules/MoleculeManager.js.map +1 -1
  413. package/lib/data/parseMeta/index.d.ts +1 -2
  414. package/lib/data/parseMeta/index.d.ts.map +1 -1
  415. package/lib/data/parseMeta/index.js +1 -1
  416. package/lib/data/parseMeta/index.js.map +1 -1
  417. package/lib/data/parseMeta/linkMetaWithSpectra.d.ts +1 -8
  418. package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
  419. package/lib/data/parseMeta/linkMetaWithSpectra.js +1 -7
  420. package/lib/data/parseMeta/linkMetaWithSpectra.js.map +1 -1
  421. package/lib/data/utilities/RangeUtilities.d.ts +0 -6
  422. package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
  423. package/lib/data/utilities/RangeUtilities.js +1 -34
  424. package/lib/data/utilities/RangeUtilities.js.map +1 -1
  425. package/lib/data/utilities/ZoneUtilities.d.ts +0 -5
  426. package/lib/data/utilities/ZoneUtilities.d.ts.map +1 -1
  427. package/lib/data/utilities/ZoneUtilities.js +3 -11
  428. package/lib/data/utilities/ZoneUtilities.js.map +1 -1
  429. package/lib/utils/clipboard/clipboard.d.ts +2 -1
  430. package/lib/utils/clipboard/clipboard.d.ts.map +1 -1
  431. package/lib/utils/clipboard/clipboardComponents.d.ts +2 -15
  432. package/lib/utils/clipboard/clipboardComponents.d.ts.map +1 -1
  433. package/lib/utils/clipboard/clipboardComponents.js +1 -1
  434. package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
  435. package/lib/utils/clipboard/clipboardHooks.d.ts +1 -7
  436. package/lib/utils/clipboard/clipboardHooks.d.ts.map +1 -1
  437. package/lib/utils/clipboard/clipboardHooks.js +1 -39
  438. package/lib/utils/clipboard/clipboardHooks.js.map +1 -1
  439. package/lib/versionInfo.d.ts.map +1 -1
  440. package/lib/versionInfo.js +1 -1
  441. package/lib/versionInfo.js.map +1 -1
  442. package/package.json +26 -34
  443. package/src/component/1d/SVGContent1D.tsx +1 -1
  444. package/src/component/1d/Viewer1D.tsx +2 -2
  445. package/src/component/1d/inset/InsetProvider.tsx +0 -6
  446. package/src/component/1d/jCouplingGraph/JGraphVerticalAxis.tsx +41 -12
  447. package/src/component/1d/matrix/Boxplot.tsx +1 -1
  448. package/src/component/1d/matrix/Stocsy.tsx +2 -2
  449. package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +8 -13
  450. package/src/component/1d/multiplicityTree/generateTreeNodes.ts +1 -1
  451. package/src/component/1d/peaks/PeakAnnotations.tsx +1 -1
  452. package/src/component/1d/peaks/Peaks.tsx +2 -2
  453. package/src/component/1d/utilities/scale.ts +1 -51
  454. package/src/component/1d-2d/tools/BrushXY.tsx +30 -28
  455. package/src/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.ts +11 -1
  456. package/src/component/2d/BrushTracker2D.tsx +23 -4
  457. package/src/component/2d/FooterBanner.tsx +20 -20
  458. package/src/component/2d/SVGContent2D.tsx +0 -6
  459. package/src/component/2d/Viewer2D.tsx +8 -9
  460. package/src/component/2d/tools/XYLabelPointer.tsx +12 -12
  461. package/src/component/2d/utilities/DimensionLayout.ts +10 -8
  462. package/src/component/2d/utilities/scale.ts +2 -39
  463. package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +1 -1
  464. package/src/component/EventsTrackers/BrushTracker.tsx +62 -4
  465. package/src/component/EventsTrackers/MouseTracker.tsx +1 -1
  466. package/src/component/assignment/AssignmentsContext.ts +2 -5
  467. package/src/component/context/ChartContext.tsx +1 -1
  468. package/src/component/context/DispatchContext.tsx +2 -2
  469. package/src/component/context/GlobalContext.tsx +1 -1
  470. package/src/component/context/KeyModifierContext.tsx +2 -2
  471. package/src/component/context/LoggerContext.tsx +1 -1
  472. package/src/component/context/PreferencesContext.tsx +2 -2
  473. package/src/component/context/ScaleContext.tsx +1 -1
  474. package/src/component/elements/Button.tsx +3 -4
  475. package/src/component/elements/ContextMenuBluePrint.tsx +2 -2
  476. package/src/component/elements/FormatField.tsx +1 -1
  477. package/src/component/elements/Input.tsx +1 -1
  478. package/src/component/elements/Input2Controller.tsx +1 -1
  479. package/src/component/elements/Label.tsx +3 -2
  480. package/src/component/elements/ReactTable/ReactTable.tsx +1 -1
  481. package/src/component/elements/Sections.tsx +3 -1
  482. package/src/component/elements/Select.tsx +1 -1
  483. package/src/component/elements/Select2.tsx +1 -1
  484. package/src/component/elements/Tab/Tab.tsx +2 -2
  485. package/src/component/elements/Tab/Tabs.tsx +1 -1
  486. package/src/component/elements/export/ExportContent.tsx +1 -1
  487. package/src/component/elements/export/ExportManager.tsx +2 -2
  488. package/src/component/elements/export/ExportSettingsProvider.tsx +1 -1
  489. package/src/component/elements/export/utilities/exportOptionValidationSchema.ts +2 -2
  490. package/src/component/elements/export/utilities/getExportOptions.ts +2 -10
  491. package/src/component/elements/print/PrintContent.tsx +1 -1
  492. package/src/component/elements/print/PrintProvider.tsx +1 -1
  493. package/src/component/elements/print/pageSize.ts +1 -1
  494. package/src/component/hooks/useFormatNumberByNucleus.ts +1 -1
  495. package/src/component/hooks/usePanelPreferences.ts +15 -16
  496. package/src/component/hooks/useTableSortBy.tsx +1 -1
  497. package/src/component/hooks/useToolsFunctions.ts +11 -9
  498. package/src/component/main/NMRium.tsx +2 -6
  499. package/src/component/modal/PredictSpectraModal.tsx +1 -3
  500. package/src/component/modal/changeSum/ChangeSumModal.tsx +1 -1
  501. package/src/component/modal/editRange/EditRangeModal.tsx +28 -81
  502. package/src/component/modal/editRange/forms/components/DeltaInput.tsx +1 -6
  503. package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +1 -2
  504. package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +6 -5
  505. package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +2 -1
  506. package/src/component/modal/editRange/forms/validation/EditRangeValidation.ts +24 -3
  507. package/src/component/modal/editRange/utils/couplingsToMultiplicity.ts +5 -0
  508. package/src/component/modal/editRange/utils/mapCouplings.ts +11 -0
  509. package/src/component/modal/editRange/utils/mapRange.ts +28 -0
  510. package/src/component/modal/setting/GeneralSettings.tsx +1 -1
  511. package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +1 -1
  512. package/src/component/modal/setting/settings-tabs/ExportTabContent.tsx +1 -1
  513. package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +28 -0
  514. package/src/component/panels/Panels.tsx +5 -3
  515. package/src/component/panels/SummaryPanel/CorrelationTable/Constants.ts +1 -24
  516. package/src/component/panels/SummaryPanel/utilities/Utilities.ts +0 -2
  517. package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.tsx +1 -1
  518. package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.tsx +2 -2
  519. package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +0 -5
  520. package/src/component/panels/accordionItems.tsx +48 -41
  521. package/src/component/panels/databasePanel/DatabasePanel.tsx +4 -5
  522. package/src/component/panels/databasePanel/DatabaseTable.tsx +1 -1
  523. package/src/component/panels/extra/utilities/settingImperativeHandle.ts +1 -1
  524. package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +1 -1
  525. package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +3 -3
  526. package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +1 -1
  527. package/src/component/panels/predictionPanel/PredictionPanel.tsx +3 -8
  528. package/src/component/panels/spectrumSimulation/SpectrumSimulation.tsx +2 -19
  529. package/src/component/panels/spectrumSimulation/SpectrumSimulationPreferences.tsx +8 -2
  530. package/src/component/panels/spectrumSimulation/simulationValidation.ts +34 -0
  531. package/src/component/reducer/Reducer.ts +2 -9
  532. package/src/component/reducer/actions/DomainActions.ts +1 -2
  533. package/src/component/reducer/actions/FiltersActions.ts +16 -2
  534. package/src/component/reducer/actions/LoadActions.ts +1 -1
  535. package/src/component/reducer/actions/RangesActions.ts +6 -0
  536. package/src/component/reducer/actions/SpectraActions.ts +5 -0
  537. package/src/component/reducer/actions/ToolsActions.ts +8 -5
  538. package/src/component/reducer/helper/ZoomHistoryManager.ts +8 -8
  539. package/src/component/reducer/helper/getActiveSpectraAsObject.ts +0 -7
  540. package/src/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.ts +0 -15
  541. package/src/component/reducer/preferences/actions/matrixGeneration.ts +0 -18
  542. package/src/component/reducer/preferences/preferencesReducer.ts +2 -36
  543. package/src/component/utility/Events.tsx +1 -1
  544. package/src/component/utility/LocalStorage.ts +0 -4
  545. package/src/component/utility/export.ts +0 -16
  546. package/src/component/utility/formatNumber.ts +1 -7
  547. package/src/constants.ts +0 -23
  548. package/src/data/PredictionManager.ts +2 -2
  549. package/src/data/SpectraManager.ts +1 -1
  550. package/src/data/constants/DefaultPathLengths.ts +1 -1
  551. package/src/data/constants/Multiplets.ts +1 -1
  552. package/src/data/constants/References.ts +2 -2
  553. package/src/data/data1d/Spectrum1D/get1DColor.ts +0 -23
  554. package/src/data/data1d/Spectrum1D/getReferenceShift.ts +2 -1
  555. package/src/data/data1d/Spectrum1D/index.ts +1 -6
  556. package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +1 -1
  557. package/src/data/data1d/Spectrum1D/ranges/changeRangeSignal.ts +3 -5
  558. package/src/data/data1d/database.ts +3 -3
  559. package/src/data/data1d/multipleSpectraAnalysis.ts +2 -28
  560. package/src/data/data1d/spectrumSimulation.ts +1 -1
  561. package/src/data/data2d/Spectrum2D/contours.ts +1 -2
  562. package/src/data/data2d/Spectrum2D/index.ts +0 -1
  563. package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +1 -1
  564. package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +1 -1
  565. package/src/data/matrixGeneration.ts +1 -1
  566. package/src/data/molecules/MoleculeManager.ts +1 -1
  567. package/src/data/parseMeta/index.ts +1 -11
  568. package/src/data/parseMeta/linkMetaWithSpectra.ts +1 -13
  569. package/src/data/utilities/RangeUtilities.ts +1 -45
  570. package/src/data/utilities/ZoneUtilities.ts +3 -18
  571. package/src/utils/clipboard/clipboard.ts +1 -1
  572. package/src/utils/clipboard/clipboardComponents.tsx +3 -3
  573. package/src/utils/clipboard/clipboardHooks.ts +2 -58
  574. package/src/versionInfo.ts +1 -1
  575. package/lib/component/1d/YAxis.d.ts +0 -7
  576. package/lib/component/1d/YAxis.d.ts.map +0 -1
  577. package/lib/component/1d/YAxis.js +0 -25
  578. package/lib/component/1d/YAxis.js.map +0 -1
  579. package/lib/component/1d/ranges/AssignmentActionsButtons.d.ts +0 -12
  580. package/lib/component/1d/ranges/AssignmentActionsButtons.d.ts.map +0 -1
  581. package/lib/component/1d/ranges/AssignmentActionsButtons.js +0 -12
  582. package/lib/component/1d/ranges/AssignmentActionsButtons.js.map +0 -1
  583. package/lib/component/1d/utilities/getDecimalsCount.d.ts +0 -2
  584. package/lib/component/1d/utilities/getDecimalsCount.d.ts.map +0 -1
  585. package/lib/component/1d/utilities/getDecimalsCount.js +0 -7
  586. package/lib/component/1d/utilities/getDecimalsCount.js.map +0 -1
  587. package/lib/component/1d-2d/tools/BrushX.d.ts +0 -2
  588. package/lib/component/1d-2d/tools/BrushX.d.ts.map +0 -1
  589. package/lib/component/1d-2d/tools/BrushX.js +0 -36
  590. package/lib/component/1d-2d/tools/BrushX.js.map +0 -1
  591. package/lib/component/context/PrepareExportContext.d.ts +0 -22
  592. package/lib/component/context/PrepareExportContext.d.ts.map +0 -1
  593. package/lib/component/context/PrepareExportContext.js +0 -125
  594. package/lib/component/context/PrepareExportContext.js.map +0 -1
  595. package/lib/component/elements/ActiveButton.d.ts +0 -18
  596. package/lib/component/elements/ActiveButton.d.ts.map +0 -1
  597. package/lib/component/elements/ActiveButton.js +0 -34
  598. package/lib/component/elements/ActiveButton.js.map +0 -1
  599. package/lib/component/elements/AxisGroup.d.ts +0 -5
  600. package/lib/component/elements/AxisGroup.d.ts.map +0 -1
  601. package/lib/component/elements/AxisGroup.js +0 -14
  602. package/lib/component/elements/AxisGroup.js.map +0 -1
  603. package/lib/component/elements/ButtonToolTip.d.ts +0 -10
  604. package/lib/component/elements/ButtonToolTip.d.ts.map +0 -1
  605. package/lib/component/elements/ButtonToolTip.js +0 -7
  606. package/lib/component/elements/ButtonToolTip.js.map +0 -1
  607. package/lib/component/elements/CheckBox.d.ts +0 -7
  608. package/lib/component/elements/CheckBox.d.ts.map +0 -1
  609. package/lib/component/elements/CheckBox.js +0 -11
  610. package/lib/component/elements/CheckBox.js.map +0 -1
  611. package/lib/component/elements/ColorInput.d.ts +0 -10
  612. package/lib/component/elements/ColorInput.d.ts.map +0 -1
  613. package/lib/component/elements/ColorInput.js +0 -82
  614. package/lib/component/elements/ColorInput.js.map +0 -1
  615. package/lib/component/elements/MenuButton.d.ts +0 -32
  616. package/lib/component/elements/MenuButton.d.ts.map +0 -1
  617. package/lib/component/elements/MenuButton.js +0 -76
  618. package/lib/component/elements/MenuButton.js.map +0 -1
  619. package/lib/component/elements/Message.d.ts +0 -17
  620. package/lib/component/elements/Message.d.ts.map +0 -1
  621. package/lib/component/elements/Message.js +0 -35
  622. package/lib/component/elements/Message.js.map +0 -1
  623. package/lib/component/elements/NumberInput.d.ts +0 -14
  624. package/lib/component/elements/NumberInput.d.ts.map +0 -1
  625. package/lib/component/elements/NumberInput.js +0 -21
  626. package/lib/component/elements/NumberInput.js.map +0 -1
  627. package/lib/component/elements/ReactTable/ReactTableFlexLayout.d.ts +0 -10
  628. package/lib/component/elements/ReactTable/ReactTableFlexLayout.d.ts.map +0 -1
  629. package/lib/component/elements/ReactTable/ReactTableFlexLayout.js +0 -29
  630. package/lib/component/elements/ReactTable/ReactTableFlexLayout.js.map +0 -1
  631. package/lib/component/elements/ReactTable/Style.d.ts +0 -3
  632. package/lib/component/elements/ReactTable/Style.d.ts.map +0 -1
  633. package/lib/component/elements/ReactTable/Style.js +0 -11
  634. package/lib/component/elements/ReactTable/Style.js.map +0 -1
  635. package/lib/component/elements/ResizableSVG.d.ts +0 -25
  636. package/lib/component/elements/ResizableSVG.d.ts.map +0 -1
  637. package/lib/component/elements/ResizableSVG.js +0 -84
  638. package/lib/component/elements/ResizableSVG.js.map +0 -1
  639. package/lib/component/elements/Table/Table.d.ts +0 -10
  640. package/lib/component/elements/Table/Table.d.ts.map +0 -1
  641. package/lib/component/elements/Table/Table.js +0 -14
  642. package/lib/component/elements/Table/Table.js.map +0 -1
  643. package/lib/component/elements/Table/TableBody.d.ts +0 -10
  644. package/lib/component/elements/Table/TableBody.d.ts.map +0 -1
  645. package/lib/component/elements/Table/TableBody.js +0 -20
  646. package/lib/component/elements/Table/TableBody.js.map +0 -1
  647. package/lib/component/elements/Table/TableCell.d.ts +0 -14
  648. package/lib/component/elements/Table/TableCell.d.ts.map +0 -1
  649. package/lib/component/elements/Table/TableCell.js +0 -27
  650. package/lib/component/elements/Table/TableCell.js.map +0 -1
  651. package/lib/component/elements/Table/TableHead.d.ts +0 -10
  652. package/lib/component/elements/Table/TableHead.d.ts.map +0 -1
  653. package/lib/component/elements/Table/TableHead.js +0 -17
  654. package/lib/component/elements/Table/TableHead.js.map +0 -1
  655. package/lib/component/elements/Table/TableRow.d.ts +0 -11
  656. package/lib/component/elements/Table/TableRow.d.ts.map +0 -1
  657. package/lib/component/elements/Table/TableRow.js +0 -12
  658. package/lib/component/elements/Table/TableRow.js.map +0 -1
  659. package/lib/component/elements/ToggleButton.d.ts +0 -15
  660. package/lib/component/elements/ToggleButton.d.ts.map +0 -1
  661. package/lib/component/elements/ToggleButton.js +0 -30
  662. package/lib/component/elements/ToggleButton.js.map +0 -1
  663. package/lib/component/elements/ToolTip/ToolTip.d.ts +0 -16
  664. package/lib/component/elements/ToolTip/ToolTip.d.ts.map +0 -1
  665. package/lib/component/elements/ToolTip/ToolTip.js +0 -102
  666. package/lib/component/elements/ToolTip/ToolTip.js.map +0 -1
  667. package/lib/component/elements/accordion/Accordion.d.ts +0 -8
  668. package/lib/component/elements/accordion/Accordion.d.ts.map +0 -1
  669. package/lib/component/elements/accordion/Accordion.js +0 -67
  670. package/lib/component/elements/accordion/Accordion.js.map +0 -1
  671. package/lib/component/elements/accordion/AccordionItem.d.ts +0 -16
  672. package/lib/component/elements/accordion/AccordionItem.d.ts.map +0 -1
  673. package/lib/component/elements/accordion/AccordionItem.js +0 -79
  674. package/lib/component/elements/accordion/AccordionItem.js.map +0 -1
  675. package/lib/component/elements/draggable/SVGDraggable.d.ts +0 -18
  676. package/lib/component/elements/draggable/SVGDraggable.d.ts.map +0 -1
  677. package/lib/component/elements/draggable/SVGDraggable.js +0 -30
  678. package/lib/component/elements/draggable/SVGDraggable.js.map +0 -1
  679. package/lib/component/elements/export/utilities/convertPixelsBasedOnDPI.d.ts +0 -2
  680. package/lib/component/elements/export/utilities/convertPixelsBasedOnDPI.d.ts.map +0 -1
  681. package/lib/component/elements/export/utilities/convertPixelsBasedOnDPI.js +0 -5
  682. package/lib/component/elements/export/utilities/convertPixelsBasedOnDPI.js.map +0 -1
  683. package/lib/component/elements/linearAxis/LinearVerticalAxis.d.ts +0 -21
  684. package/lib/component/elements/linearAxis/LinearVerticalAxis.d.ts.map +0 -1
  685. package/lib/component/elements/linearAxis/LinearVerticalAxis.js +0 -16
  686. package/lib/component/elements/linearAxis/LinearVerticalAxis.js.map +0 -1
  687. package/lib/component/panels/extra/preferences/ColumnsHelper.d.ts +0 -13
  688. package/lib/component/panels/extra/preferences/ColumnsHelper.d.ts.map +0 -1
  689. package/lib/component/panels/extra/preferences/ColumnsHelper.js +0 -43
  690. package/lib/component/panels/extra/preferences/ColumnsHelper.js.map +0 -1
  691. package/lib/component/panels/extra/utilities/UseToggleStatus.d.ts +0 -8
  692. package/lib/component/panels/extra/utilities/UseToggleStatus.d.ts.map +0 -1
  693. package/lib/component/panels/extra/utilities/UseToggleStatus.js +0 -33
  694. package/lib/component/panels/extra/utilities/UseToggleStatus.js.map +0 -1
  695. package/lib/component/reducer/actions/HistoryActions.d.ts +0 -5
  696. package/lib/component/reducer/actions/HistoryActions.d.ts.map +0 -1
  697. package/lib/component/reducer/actions/HistoryActions.js +0 -41
  698. package/lib/component/reducer/actions/HistoryActions.js.map +0 -1
  699. package/lib/component/reducer/helper/GetClosestNumber.d.ts +0 -3
  700. package/lib/component/reducer/helper/GetClosestNumber.d.ts.map +0 -1
  701. package/lib/component/reducer/helper/GetClosestNumber.js +0 -9
  702. package/lib/component/reducer/helper/GetClosestNumber.js.map +0 -1
  703. package/lib/component/reducer/preferences/utilities/checkKeysExists.d.ts +0 -2
  704. package/lib/component/reducer/preferences/utilities/checkKeysExists.d.ts.map +0 -1
  705. package/lib/component/reducer/preferences/utilities/checkKeysExists.js +0 -15
  706. package/lib/component/reducer/preferences/utilities/checkKeysExists.js.map +0 -1
  707. package/lib/component/reducer/preferences/utilities/filterObject.d.ts +0 -2
  708. package/lib/component/reducer/preferences/utilities/filterObject.d.ts.map +0 -1
  709. package/lib/component/reducer/preferences/utilities/filterObject.js +0 -8
  710. package/lib/component/reducer/preferences/utilities/filterObject.js.map +0 -1
  711. package/lib/component/reducer/preferences/utilities/flatObject.d.ts +0 -2
  712. package/lib/component/reducer/preferences/utilities/flatObject.d.ts.map +0 -1
  713. package/lib/component/reducer/preferences/utilities/flatObject.js +0 -10
  714. package/lib/component/reducer/preferences/utilities/flatObject.js.map +0 -1
  715. package/lib/component/utility/FileUtility.d.ts +0 -9
  716. package/lib/component/utility/FileUtility.d.ts.map +0 -1
  717. package/lib/component/utility/FileUtility.js +0 -19
  718. package/lib/component/utility/FileUtility.js.map +0 -1
  719. package/lib/component/utility/PreferencesHelper.d.ts +0 -3
  720. package/lib/component/utility/PreferencesHelper.d.ts.map +0 -1
  721. package/lib/component/utility/PreferencesHelper.js +0 -10
  722. package/lib/component/utility/PreferencesHelper.js.map +0 -1
  723. package/lib/component/utility/jpathToArray.d.ts +0 -2
  724. package/lib/component/utility/jpathToArray.d.ts.map +0 -1
  725. package/lib/component/utility/jpathToArray.js +0 -24
  726. package/lib/component/utility/jpathToArray.js.map +0 -1
  727. package/lib/data/data1d/Spectrum1D/cloneDatum1D.d.ts +0 -6
  728. package/lib/data/data1d/Spectrum1D/cloneDatum1D.d.ts.map +0 -1
  729. package/lib/data/data1d/Spectrum1D/cloneDatum1D.js +0 -5
  730. package/lib/data/data1d/Spectrum1D/cloneDatum1D.js.map +0 -1
  731. package/lib/data/data1d/Spectrum1D/is1DFilter.d.ts +0 -5
  732. package/lib/data/data1d/Spectrum1D/is1DFilter.d.ts.map +0 -1
  733. package/lib/data/data1d/Spectrum1D/is1DFilter.js +0 -4
  734. package/lib/data/data1d/Spectrum1D/is1DFilter.js.map +0 -1
  735. package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.d.ts +0 -3
  736. package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.d.ts.map +0 -1
  737. package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.js +0 -6
  738. package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.js.map +0 -1
  739. package/lib/data/data2d/Spectrum2D/cloneDatum2D.d.ts +0 -2
  740. package/lib/data/data2d/Spectrum2D/cloneDatum2D.d.ts.map +0 -1
  741. package/lib/data/data2d/Spectrum2D/cloneDatum2D.js +0 -10
  742. package/lib/data/data2d/Spectrum2D/cloneDatum2D.js.map +0 -1
  743. package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.d.ts +0 -7
  744. package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.d.ts.map +0 -1
  745. package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.js +0 -10
  746. package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.js.map +0 -1
  747. package/lib/data/data2d/Spectrum2D/getShift.d.ts +0 -7
  748. package/lib/data/data2d/Spectrum2D/getShift.d.ts.map +0 -1
  749. package/lib/data/data2d/Spectrum2D/getShift.js +0 -16
  750. package/lib/data/data2d/Spectrum2D/getShift.js.map +0 -1
  751. package/lib/data/data2d/Spectrum2D/is2DFilter.d.ts +0 -5
  752. package/lib/data/data2d/Spectrum2D/is2DFilter.d.ts.map +0 -1
  753. package/lib/data/data2d/Spectrum2D/is2DFilter.js +0 -4
  754. package/lib/data/data2d/Spectrum2D/is2DFilter.js.map +0 -1
  755. package/lib/data/data2d/Spectrum2D/zones/isZoneExists.d.ts +0 -5
  756. package/lib/data/data2d/Spectrum2D/zones/isZoneExists.d.ts.map +0 -1
  757. package/lib/data/data2d/Spectrum2D/zones/isZoneExists.js +0 -16
  758. package/lib/data/data2d/Spectrum2D/zones/isZoneExists.js.map +0 -1
  759. package/lib/data/data2d/Spectrum2D/zones/updateZones.d.ts +0 -3
  760. package/lib/data/data2d/Spectrum2D/zones/updateZones.d.ts.map +0 -1
  761. package/lib/data/data2d/Spectrum2D/zones/updateZones.js +0 -8
  762. package/lib/data/data2d/Spectrum2D/zones/updateZones.js.map +0 -1
  763. package/lib/data/defaults/13c.d.ts +0 -5
  764. package/lib/data/defaults/13c.d.ts.map +0 -1
  765. package/lib/data/defaults/13c.js +0 -4
  766. package/lib/data/defaults/13c.js.map +0 -1
  767. package/lib/data/defaults/1h.d.ts +0 -5
  768. package/lib/data/defaults/1h.d.ts.map +0 -1
  769. package/lib/data/defaults/1h.js +0 -4
  770. package/lib/data/defaults/1h.js.map +0 -1
  771. package/lib/data/defaults/default.d.ts +0 -2
  772. package/lib/data/defaults/default.d.ts.map +0 -1
  773. package/lib/data/defaults/default.js +0 -17
  774. package/lib/data/defaults/default.js.map +0 -1
  775. package/lib/data/getDefaultMatrixFilters.d.ts +0 -17
  776. package/lib/data/getDefaultMatrixFilters.d.ts.map +0 -1
  777. package/lib/data/getDefaultMatrixFilters.js +0 -21
  778. package/lib/data/getDefaultMatrixFilters.js.map +0 -1
  779. package/lib/data/types/common/DeepPartial.d.ts +0 -4
  780. package/lib/data/types/common/DeepPartial.d.ts.map +0 -1
  781. package/lib/data/types/common/DeepPartial.js +0 -2
  782. package/lib/data/types/common/DeepPartial.js.map +0 -1
  783. package/lib/data/types/common/File.d.ts +0 -6
  784. package/lib/data/types/common/File.d.ts.map +0 -1
  785. package/lib/data/types/common/File.js +0 -2
  786. package/lib/data/types/common/File.js.map +0 -1
  787. package/lib/data/types/common/Info.d.ts +0 -12
  788. package/lib/data/types/common/Info.d.ts.map +0 -1
  789. package/lib/data/types/common/Info.js +0 -2
  790. package/lib/data/types/common/Info.js.map +0 -1
  791. package/lib/data/types/common/MapOptions.d.ts +0 -6
  792. package/lib/data/types/common/MapOptions.d.ts.map +0 -1
  793. package/lib/data/types/common/MapOptions.js +0 -2
  794. package/lib/data/types/common/MapOptions.js.map +0 -1
  795. package/lib/data/types/data1d/ComplexData1D.d.ts +0 -3
  796. package/lib/data/types/data1d/ComplexData1D.d.ts.map +0 -1
  797. package/lib/data/types/data1d/ComplexData1D.js +0 -2
  798. package/lib/data/types/data1d/ComplexData1D.js.map +0 -1
  799. package/lib/data/types/data2d/ContourOptions.d.ts +0 -11
  800. package/lib/data/types/data2d/ContourOptions.d.ts.map +0 -1
  801. package/lib/data/types/data2d/ContourOptions.js +0 -2
  802. package/lib/data/types/data2d/ContourOptions.js.map +0 -1
  803. package/lib/data/types/data2d/index.d.ts +0 -2
  804. package/lib/data/types/data2d/index.d.ts.map +0 -1
  805. package/lib/data/types/data2d/index.js +0 -2
  806. package/lib/data/types/data2d/index.js.map +0 -1
  807. package/lib/data/utilities/getSum.d.ts +0 -9
  808. package/lib/data/utilities/getSum.d.ts.map +0 -1
  809. package/lib/data/utilities/getSum.js +0 -16
  810. package/lib/data/utilities/getSum.js.map +0 -1
  811. package/lib/types/NMRiumDataReturn.d.ts +0 -15
  812. package/lib/types/NMRiumDataReturn.d.ts.map +0 -1
  813. package/lib/types/NMRiumDataReturn.js +0 -2
  814. package/lib/types/NMRiumDataReturn.js.map +0 -1
  815. package/src/component/1d/YAxis.tsx +0 -57
  816. package/src/component/1d/ranges/AssignmentActionsButtons.tsx +0 -62
  817. package/src/component/1d/utilities/getDecimalsCount.ts +0 -9
  818. package/src/component/1d-2d/tools/BrushX.tsx +0 -69
  819. package/src/component/context/PrepareExportContext.tsx +0 -185
  820. package/src/component/elements/ActiveButton.tsx +0 -72
  821. package/src/component/elements/AxisGroup.tsx +0 -14
  822. package/src/component/elements/ButtonToolTip.tsx +0 -35
  823. package/src/component/elements/CheckBox.tsx +0 -43
  824. package/src/component/elements/ColorInput.tsx +0 -117
  825. package/src/component/elements/MenuButton.tsx +0 -162
  826. package/src/component/elements/Message.tsx +0 -63
  827. package/src/component/elements/NumberInput.tsx +0 -67
  828. package/src/component/elements/ReactTable/ReactTableFlexLayout.tsx +0 -90
  829. package/src/component/elements/ReactTable/Style.ts +0 -12
  830. package/src/component/elements/ResizableSVG.tsx +0 -234
  831. package/src/component/elements/Table/Table.tsx +0 -26
  832. package/src/component/elements/Table/TableBody.tsx +0 -35
  833. package/src/component/elements/Table/TableCell.tsx +0 -55
  834. package/src/component/elements/Table/TableHead.tsx +0 -29
  835. package/src/component/elements/Table/TableRow.tsx +0 -34
  836. package/src/component/elements/ToggleButton.tsx +0 -67
  837. package/src/component/elements/ToolTip/ToolTip.tsx +0 -161
  838. package/src/component/elements/accordion/Accordion.tsx +0 -100
  839. package/src/component/elements/accordion/AccordionItem.tsx +0 -134
  840. package/src/component/elements/draggable/SVGDraggable.tsx +0 -67
  841. package/src/component/elements/export/utilities/convertPixelsBasedOnDPI.ts +0 -9
  842. package/src/component/elements/linearAxis/LinearVerticalAxis.tsx +0 -77
  843. package/src/component/panels/extra/preferences/ColumnsHelper.ts +0 -68
  844. package/src/component/panels/extra/utilities/UseToggleStatus.ts +0 -41
  845. package/src/component/reducer/actions/HistoryActions.ts +0 -48
  846. package/src/component/reducer/helper/GetClosestNumber.ts +0 -9
  847. package/src/component/reducer/preferences/utilities/checkKeysExists.ts +0 -18
  848. package/src/component/reducer/preferences/utilities/filterObject.ts +0 -7
  849. package/src/component/reducer/preferences/utilities/flatObject.ts +0 -9
  850. package/src/component/utility/FileUtility.ts +0 -22
  851. package/src/component/utility/PreferencesHelper.ts +0 -13
  852. package/src/component/utility/jpathToArray.ts +0 -21
  853. package/src/data/data1d/Spectrum1D/cloneDatum1D.ts +0 -4
  854. package/src/data/data1d/Spectrum1D/is1DFilter.ts +0 -8
  855. package/src/data/data1d/Spectrum1D/ranges/checkRangeKind.ts +0 -8
  856. package/src/data/data2d/Spectrum2D/cloneDatum2D.ts +0 -9
  857. package/src/data/data2d/Spectrum2D/get2DSpectrumErrorValue.ts +0 -17
  858. package/src/data/data2d/Spectrum2D/getShift.ts +0 -23
  859. package/src/data/data2d/Spectrum2D/is2DFilter.ts +0 -8
  860. package/src/data/data2d/Spectrum2D/zones/isZoneExists.ts +0 -27
  861. package/src/data/data2d/Spectrum2D/zones/updateZones.ts +0 -9
  862. package/src/data/defaults/13c.ts +0 -3
  863. package/src/data/defaults/1h.ts +0 -3
  864. package/src/data/defaults/default.ts +0 -19
  865. package/src/data/getDefaultMatrixFilters.ts +0 -38
  866. package/src/data/types/common/DeepPartial.ts +0 -3
  867. package/src/data/types/common/File.ts +0 -5
  868. package/src/data/types/common/Info.ts +0 -11
  869. package/src/data/types/common/MapOptions.ts +0 -6
  870. package/src/data/types/data1d/ComplexData1D.ts +0 -4
  871. package/src/data/types/data2d/ContourOptions.ts +0 -10
  872. package/src/data/types/data2d/index.ts +0 -1
  873. package/src/data/utilities/getSum.ts +0 -19
  874. package/src/types/NMRiumDataReturn.ts +0 -16
@@ -3,7 +3,7 @@ import type { CSSProperties } from 'react';
3
3
  import { useEffect, useRef, useState } from 'react';
4
4
  import { ResponsiveChart } from 'react-d3-utils';
5
5
  import { StructureEditor } from 'react-ocl/full';
6
- import { useAccordionContext } from 'react-science/ui';
6
+ import { useAccordionControls } from 'react-science/ui';
7
7
 
8
8
  import { predictSpectra } from '../../../data/PredictionManager.js';
9
9
  import type { StateMoleculeExtended } from '../../../data/molecules/Molecule.js';
@@ -47,10 +47,7 @@ export default function PredictionPanel() {
47
47
  const [molfile, setMolfile] = useState<string | null>(null);
48
48
  const [isFlipped, setFlipStatus] = useState(false);
49
49
  const settingRef = useRef<SettingsRef | null>(null);
50
- const {
51
- item: spectraPanelState,
52
- utils: { toggle: openSpectraPanel },
53
- } = useAccordionContext('Spectra');
50
+ const { open: openAccordionPanel } = useAccordionControls();
54
51
  const predictionPreferences = usePanelPreferences('prediction');
55
52
  const { modal, openMoleculeEditor } = useMoleculeEditor(true);
56
53
  const refreshSlider = useRef<boolean>(false);
@@ -109,9 +106,7 @@ export default function PredictionPanel() {
109
106
  action,
110
107
  },
111
108
  });
112
- if (!spectraPanelState?.isOpen) {
113
- openSpectraPanel();
114
- }
109
+ openAccordionPanel('spectraPanel');
115
110
  } catch (error: any) {
116
111
  toaster.show({ message: error.message, intent: 'danger' });
117
112
  } finally {
@@ -1,6 +1,5 @@
1
1
  import { useCallback, useEffect, useRef, useState } from 'react';
2
2
  import { FormProvider, useForm } from 'react-hook-form';
3
- import * as Yup from 'yup';
4
3
 
5
4
  import type { SpectrumSimulationOptions } from '../../../data/data1d/spectrumSimulation.js';
6
5
  import { defaultSimulationOptions } from '../../../data/data1d/spectrumSimulation.js';
@@ -15,22 +14,7 @@ import PreferencesHeader from '../header/PreferencesHeader.js';
15
14
  import SpectrumSimulationPreferences from './SpectrumSimulationPreferences.js';
16
15
  import SpectrumSimulationSimpleOptions from './SpectrumSimulationSimpleOptions.js';
17
16
  import { SpinSystemTable } from './SpinSystemTable.js';
18
-
19
- const validationSchema = Yup.object({
20
- data: Yup.array().of(
21
- Yup.array().of(
22
- Yup.lazy((value) => {
23
- if (value === null) {
24
- return Yup.mixed().nullable();
25
- }
26
-
27
- return Yup.string()
28
- .matches(/^-?\d+(\.\d+)?$/, 'Invalid number format')
29
- .required();
30
- }),
31
- ),
32
- ),
33
- });
17
+ import { simulationValidationSchema } from './simulationValidation.js';
34
18
 
35
19
  function getSpinSystemData(spinSystem: string) {
36
20
  const rows: Array<Array<number | null>> = [];
@@ -107,9 +91,8 @@ export default function SpectrumSimulation() {
107
91
 
108
92
  useEffect(() => {
109
93
  const { unsubscribe } = watch(async (values) => {
110
- const isValid = await validationSchema.isValid(values);
94
+ const isValid = await simulationValidationSchema.isValid(values);
111
95
  if (!isValid) return;
112
-
113
96
  void simulateHandler(values as any);
114
97
  });
115
98
  return () => unsubscribe();
@@ -1,4 +1,5 @@
1
1
  import { Tag } from '@blueprintjs/core';
2
+ import { yupResolver } from '@hookform/resolvers/yup';
2
3
  import { forwardRef } from 'react';
3
4
  import { useForm, useWatch } from 'react-hook-form';
4
5
 
@@ -12,6 +13,8 @@ import { Select2Controller } from '../../elements/Select2Controller.js';
12
13
  import { PreferencesContainer } from '../extra/preferences/PreferencesContainer.js';
13
14
  import { useSettingImperativeHandle } from '../extra/utilities/settingImperativeHandle.js';
14
15
 
16
+ import { simulationValidationSchema } from './simulationValidation.js';
17
+
15
18
  const SIMULATION_NUMBER_OF_POINTS = generateNumbersPowerOfX(12, 19);
16
19
 
17
20
  const labelStyle: LabelStyle = {
@@ -27,9 +30,12 @@ function SpectrumSimulationPreferences(
27
30
  { onSave }: SpectrumSimulationPreferencesProps,
28
31
  ref,
29
32
  ) {
30
- const options = useWatch<SpectrumSimulationOptions>();
33
+ const options = useWatch() as Required<SpectrumSimulationOptions>;
31
34
 
32
- const { handleSubmit, control } = useForm({ defaultValues: options });
35
+ const { handleSubmit, control } = useForm({
36
+ defaultValues: options,
37
+ resolver: yupResolver(simulationValidationSchema),
38
+ });
33
39
  useSettingImperativeHandle(ref, handleSubmit, onSave);
34
40
 
35
41
  return (
@@ -0,0 +1,34 @@
1
+ import * as Yup from 'yup';
2
+
3
+ export const simulationValidationSchema = Yup.object({
4
+ options: Yup.object({
5
+ frequency: Yup.number().required(),
6
+ from: Yup.number()
7
+ .required()
8
+ .lessThan(
9
+ Yup.ref('to'),
10
+ "The range is invalid: 'From' must be smaller than 'To'",
11
+ ),
12
+ to: Yup.number()
13
+ .required()
14
+ .moreThan(
15
+ Yup.ref('from'),
16
+ "The range is invalid: 'To' must be greater than 'From'",
17
+ ),
18
+ nbPoints: Yup.number().required(),
19
+ lineWidth: Yup.number().required().moreThan(0),
20
+ }),
21
+ data: Yup.array()
22
+ .of(
23
+ Yup.array().of(
24
+ Yup.lazy((value) => {
25
+ if (value === null) {
26
+ return Yup.mixed().nullable();
27
+ }
28
+
29
+ return Yup.number().required();
30
+ }),
31
+ ),
32
+ )
33
+ .required(),
34
+ });
@@ -1,6 +1,6 @@
1
1
  import type { WebSource as Source } from 'filelist-utils';
2
2
  import type { Draft } from 'immer';
3
- import { produce, original } from 'immer';
3
+ import { original, produce } from 'immer';
4
4
  import type { CorrelationData } from 'nmr-correlation';
5
5
  import { buildCorrelationData } from 'nmr-correlation';
6
6
  import type { Spectrum, ViewState } from 'nmr-load-save';
@@ -34,7 +34,7 @@ import type { ZoomHistory } from './helper/ZoomHistoryManager.js';
34
34
 
35
35
  export type DisplayerMode = '1D' | '2D';
36
36
 
37
- export interface Pivot {
37
+ interface Pivot {
38
38
  value: number;
39
39
  index: number;
40
40
  }
@@ -69,13 +69,6 @@ export interface TwoDimensionPhaseCorrection {
69
69
  addTracesToBothDirections: boolean;
70
70
  }
71
71
 
72
- export interface MatrixGenerationOptions {
73
- showBoxPlot: boolean;
74
- showStocsy: boolean;
75
- scaleRatio: number;
76
- chemicalShift: number | null;
77
- }
78
-
79
72
  export const getDefaultTwoDimensionsPhaseCorrectionTraceOptions =
80
73
  (): TwoDimensionPhaseCorrection['traces'] => {
81
74
  const directions: [TraceDirection, TraceDirection] = [
@@ -1,6 +1,6 @@
1
1
  import type { NmrData2DFt } from 'cheminfo-types';
2
- import { extent } from 'd3';
3
2
  import type { Numeric } from 'd3';
3
+ import { extent } from 'd3';
4
4
  import type { Draft } from 'immer';
5
5
  import type {
6
6
  NucleiPreferences,
@@ -408,7 +408,6 @@ function handleMoveOverXAxis(draft: Draft<State>, action: MoveAction) {
408
408
  }
409
409
 
410
410
  export {
411
- getDomain,
412
411
  get2DDomain,
413
412
  setDomain,
414
413
  setMode,
@@ -276,7 +276,7 @@ function getFilterUpdateDomainRules(
276
276
  return filterDomainUpdateRules || defaultRule;
277
277
  }
278
278
 
279
- export interface RollbackSpectrumByFilterOptions {
279
+ interface RollbackSpectrumByFilterOptions {
280
280
  applyFilter?: boolean;
281
281
  reset?: boolean;
282
282
  searchBy?: 'id' | 'name';
@@ -671,7 +671,11 @@ function handleShiftSpectrumAlongXAxis(
671
671
 
672
672
  if (isOneDimensionShift(options) && isSpectrum1D(datum)) {
673
673
  const { shift } = options;
674
-
674
+ rollbackSpectrumByFilter(draft, {
675
+ key: 'shiftX',
676
+ searchBy: 'name',
677
+ applyFilter: false,
678
+ });
675
679
  Filters1DManager.applyFilters(datum, [
676
680
  { name: 'shiftX', value: { shift } },
677
681
  ]);
@@ -683,6 +687,11 @@ function handleShiftSpectrumAlongXAxis(
683
687
  const { shiftX, shiftY } = options;
684
688
 
685
689
  if (shiftX) {
690
+ rollbackSpectrumByFilter(draft, {
691
+ key: 'shift2DX',
692
+ searchBy: 'name',
693
+ applyFilter: false,
694
+ });
686
695
  Filters2DManager.applyFilters(datum, [
687
696
  { name: 'shift2DX', value: { shift: shiftX } },
688
697
  ]);
@@ -690,6 +699,11 @@ function handleShiftSpectrumAlongXAxis(
690
699
  }
691
700
 
692
701
  if (shiftY) {
702
+ rollbackSpectrumByFilter(draft, {
703
+ key: 'shift2DY',
704
+ searchBy: 'name',
705
+ applyFilter: false,
706
+ });
693
707
  Filters2DManager.applyFilters(datum, [
694
708
  { name: 'shift2DY', value: { shift: shiftY } },
695
709
  ]);
@@ -275,4 +275,4 @@ function handleLoadDropFiles(draft: Draft<State>, action: LoadDropFilesAction) {
275
275
  }
276
276
  }
277
277
 
278
- export { handleSetIsLoading, initSpectra, handleInitiate, handleLoadDropFiles };
278
+ export { handleSetIsLoading, handleInitiate, handleLoadDropFiles };
@@ -45,6 +45,7 @@ import type { ActionType } from '../types/ActionType.js';
45
45
 
46
46
  import { handleUpdateCorrelations } from './CorrelationsActions.js';
47
47
  import { setDomain } from './DomainActions.js';
48
+ import { rollbackSpectrumByFilter } from './FiltersActions.js';
48
49
  import { toggleDisplayingPeaks } from './PeaksActions.js';
49
50
  import { resetSelectedTool } from './ToolsActions.js';
50
51
 
@@ -551,6 +552,11 @@ function handleChangeRangeSignalValue(
551
552
  signalID,
552
553
  newSignalValue: value,
553
554
  });
555
+ rollbackSpectrumByFilter(draft, {
556
+ key: 'shiftX',
557
+ searchBy: 'name',
558
+ applyFilter: false,
559
+ });
554
560
  Filters1DManager.applyFilters(draft.data[index], [
555
561
  { name: 'shiftX', value: { shift } },
556
562
  ]);
@@ -547,6 +547,11 @@ function handleAlignSpectraHandler(
547
547
  !datum.info?.isFid
548
548
  ) {
549
549
  const shift = getReferenceShift(datum, { ...action.payload });
550
+ rollbackSpectrumByFilter(draft, {
551
+ key: 'shiftX',
552
+ searchBy: 'name',
553
+ applyFilter: false,
554
+ });
550
555
  Filters1DManager.applyFilters(datum as Spectrum1D, [
551
556
  {
552
557
  name: 'shiftX',
@@ -8,7 +8,10 @@ import { getXScale } from '../../1d/utilities/scale.js';
8
8
  import type { Layout } from '../../2d/utilities/DimensionLayout.js';
9
9
  import { LAYOUT } from '../../2d/utilities/DimensionLayout.js';
10
10
  import { get2DXScale, get2DYScale } from '../../2d/utilities/scale.js';
11
- import type { ZoomOptions } from '../../EventsTrackers/BrushTracker.js';
11
+ import type {
12
+ BrushAxis,
13
+ ZoomOptions,
14
+ } from '../../EventsTrackers/BrushTracker.js';
12
15
  import type { Tool } from '../../toolbar/ToolTypes.js';
13
16
  import { options as Tools } from '../../toolbar/ToolTypes.js';
14
17
  import groupByInfoKey from '../../utility/GroupByInfoKey.js';
@@ -47,7 +50,7 @@ interface BrushBoundary {
47
50
  startY: number;
48
51
  endX: number;
49
52
  endY: number;
50
- trackID?: Layout | null;
53
+ axis?: BrushAxis | null;
51
54
  }
52
55
  interface ResetToolOptions {
53
56
  resetToDefaultTool?: boolean;
@@ -285,7 +288,7 @@ function handleBrushEnd(draft: Draft<State>, action: BrushEndAction) {
285
288
  const endY = Math.max(options.startY, options.endY);
286
289
 
287
290
  addToBrushHistory(draft, {
288
- trackID: options.trackID,
291
+ axis: options.axis,
289
292
  xDomain: [startX, endX],
290
293
  yDomain: [startY, endY],
291
294
  });
@@ -368,7 +371,7 @@ function handleZoom(draft: Draft<State>, action: ZoomAction) {
368
371
 
369
372
  switch (displayerMode) {
370
373
  case '2D': {
371
- if (trackID === 'CENTER_2D') {
374
+ if (trackID === 'MAIN') {
372
375
  // change the vertical scale for traces in 2D phase correction
373
376
  if (selectedTool === 'phaseCorrectionTwoDimensions') {
374
377
  const { activeTraces } = getTwoDimensionPhaseCorrectionOptions(draft);
@@ -387,7 +390,7 @@ function handleZoom(draft: Draft<State>, action: ZoomAction) {
387
390
  } else {
388
391
  // change the vertical scale of 1D traces
389
392
  const index =
390
- trackID === LAYOUT.TOP_1D ? 0 : trackID === LAYOUT.LEFT_1D ? 1 : null;
393
+ trackID === LAYOUT.top ? 0 : trackID === LAYOUT.left ? 1 : null;
391
394
  if (index !== null) {
392
395
  const id = getSpectrumID(draft, index);
393
396
  if (id) {
@@ -1,6 +1,6 @@
1
1
  import type { Draft } from 'immer';
2
2
 
3
- import type { Layout } from '../../2d/utilities/DimensionLayout.js';
3
+ import type { BrushAxis } from '../../EventsTrackers/BrushTracker.js';
4
4
  import type { State } from '../Reducer.js';
5
5
 
6
6
  export interface HistoryItem {
@@ -43,7 +43,7 @@ function preparePush(historyStack) {
43
43
  };
44
44
  }
45
45
 
46
- export function popZoomHistory(historyStack, baseZoom?: HistoryItem) {
46
+ function popZoomHistory(historyStack, baseZoom?: HistoryItem) {
47
47
  const val = historyStack.pop();
48
48
 
49
49
  if (val && historyStack.length === 0) {
@@ -66,25 +66,25 @@ function prepareGetLast(historyStack) {
66
66
 
67
67
  export function addToBrushHistory(
68
68
  draft: Draft<State>,
69
- options: { trackID?: Layout | null; xDomain: number[]; yDomain: number[] },
69
+ options: { axis?: BrushAxis | null; xDomain: number[]; yDomain: number[] },
70
70
  ) {
71
71
  const { displayerMode } = draft;
72
- const { trackID, xDomain, yDomain } = options;
72
+ const { axis, xDomain, yDomain } = options;
73
73
  const brushHistory = zoomHistoryManager(
74
74
  draft.zoom.history,
75
75
 
76
76
  draft.view.spectra.activeTab,
77
77
  );
78
78
  if (displayerMode === '2D') {
79
- switch (trackID) {
80
- case 'CENTER_2D':
79
+ switch (axis) {
80
+ case 'XY':
81
81
  draft.xDomain = xDomain;
82
82
  draft.yDomain = yDomain;
83
83
  break;
84
- case 'TOP_1D':
84
+ case 'X':
85
85
  draft.xDomain = xDomain;
86
86
  break;
87
- case 'LEFT_1D':
87
+ case 'Y':
88
88
  draft.yDomain = yDomain;
89
89
  break;
90
90
  default:
@@ -18,10 +18,3 @@ export function getActiveSpectraAsObject(
18
18
 
19
19
  return activeSpectraObject;
20
20
  }
21
-
22
- export function isActiveSpectrum(
23
- activeSpectra: Record<string, number> | null,
24
- id: string,
25
- ) {
26
- return !!(activeSpectra && id in activeSpectra);
27
- }
@@ -1,10 +1,8 @@
1
1
  import type { Draft } from 'immer';
2
2
 
3
- import { useChartData } from '../../context/ChartContext.js';
4
3
  import type {
5
4
  PhaseCorrectionTraceData,
6
5
  State,
7
- TraceDirection,
8
6
  TwoDimensionPhaseCorrection,
9
7
  } from '../Reducer.js';
10
8
 
@@ -31,16 +29,3 @@ export function getTwoDimensionPhaseCorrectionOptions(
31
29
  addTracesToBothDirections,
32
30
  };
33
31
  }
34
-
35
- export function useTwoDimensionPhaseCorrectionOptions(
36
- direction: TraceDirection,
37
- ) {
38
- const {
39
- toolOptions: {
40
- data: {
41
- twoDimensionPhaseCorrection: { traces },
42
- },
43
- },
44
- } = useChartData();
45
- return traces[direction];
46
- }
@@ -139,23 +139,6 @@ function toggleMatrixGenerationViewProperty(
139
139
  matrixGeneration[key] = !matrixGeneration[key];
140
140
  }
141
141
 
142
- function resetDefaultViewMatrixGenerationOptions(
143
- draft: Draft<PreferencesState>,
144
- action: ToggleMatrixGenerationViewAction,
145
- ) {
146
- const { nucleus } = action.payload;
147
-
148
- const matrixGeneration = initMatrixGeneration(draft, nucleus);
149
- const currentOptions = getMatrixGenerationPanelOptions(draft, nucleus);
150
- const { matrixOptions: defaultMatrixOptions, ...viewOptions } =
151
- getMatrixGenerationDefaultOptions();
152
-
153
- if (currentOptions) {
154
- const { matrixOptions } = currentOptions;
155
- matrixGeneration[nucleus] = { matrixOptions, ...viewOptions };
156
- }
157
- }
158
-
159
142
  function changeMatrixGenerationScale(
160
143
  draft: Draft<PreferencesState>,
161
144
  action: ChangeMatrixGenerationScaleAction,
@@ -190,5 +173,4 @@ export {
190
173
  toggleMatrixGenerationViewProperty,
191
174
  changeMatrixGenerationScale,
192
175
  changeMatrixGenerationStocsyChemicalShift,
193
- resetDefaultViewMatrixGenerationOptions,
194
176
  };
@@ -30,6 +30,7 @@ import { changeInformationBlockPosition } from './actions/changeInformationBlock
30
30
  import { changePeaksLabelPosition } from './actions/changePeaksLabelPosition.js';
31
31
  import { changePrintPageSettings } from './actions/changePrintPageSettings.js';
32
32
  import { initPreferences } from './actions/initPreferences.js';
33
+ import type { MatrixGenerationActions } from './actions/matrixGeneration.js';
33
34
  import {
34
35
  addExclusionZone,
35
36
  changeMatrixGenerationScale,
@@ -38,7 +39,6 @@ import {
38
39
  setMatrixGenerationOptions,
39
40
  toggleMatrixGenerationViewProperty,
40
41
  } from './actions/matrixGeneration.js';
41
- import type { MatrixGenerationActions } from './actions/matrixGeneration.js';
42
42
  import { removeWorkspace } from './actions/removeWorkspace.js';
43
43
  import { setActiveWorkspace } from './actions/setActiveWorkspace.js';
44
44
  import { setPanelsPreferences } from './actions/setPanelsPreferences.js';
@@ -171,42 +171,8 @@ type PreferencesActions =
171
171
  | ChangePeaksLabelPositionAction
172
172
  | TogglePanelAction;
173
173
 
174
- export const WORKSPACES: Array<{
175
- key: NMRiumWorkspace;
176
- label: string;
177
- }> = [
178
- {
179
- key: 'default',
180
- label: Workspaces.default.label,
181
- },
182
- {
183
- key: 'process1D',
184
- label: Workspaces.process1D.label,
185
- },
186
- {
187
- key: 'exercise',
188
- label: Workspaces.exercise.label,
189
- },
190
- {
191
- key: 'prediction',
192
- label: Workspaces.prediction.label,
193
- },
194
- {
195
- key: 'assignment',
196
- label: Workspaces.assignment.label,
197
- },
198
- {
199
- key: 'embedded',
200
- label: Workspaces.embedded.label,
201
- },
202
- {
203
- key: 'simulation',
204
- label: Workspaces.simulation.label,
205
- },
206
- ];
207
-
208
174
  export type WorkspaceWithSource = Workspace & { source: WorkSpaceSource };
209
- export type WorkspacesWithSource =
175
+ type WorkspacesWithSource =
210
176
  | Record<NMRiumWorkspace, WorkspaceWithSource>
211
177
  | Record<string, WorkspaceWithSource>;
212
178
 
@@ -17,7 +17,7 @@ const Emitter = {
17
17
 
18
18
  Object.freeze(Emitter);
19
19
 
20
- export type EventEmitterClickOptions = ClickOptions & { xPPM: number };
20
+ type EventEmitterClickOptions = ClickOptions & { xPPM: number };
21
21
 
22
22
  interface UseEventOptions {
23
23
  onBrushEnd?: (options: BrushTrackerData & { range: number[] }) => void;
@@ -37,10 +37,6 @@ export function storeData(localStorageKey, value) {
37
37
  localStorage.setItem(localStorageKey, value);
38
38
  }
39
39
 
40
- export function removeData(localStorageKey) {
41
- localStorage.removeItem(localStorageKey);
42
- }
43
-
44
40
  export function getValue(object, keyPath, defaultValue: any = null) {
45
41
  return dlv(object, keyPath, defaultValue);
46
42
  }
@@ -94,20 +94,6 @@ function exportAsMatrix(
94
94
  fileSaver.saveAs(blob, `${fileName}.tsv`);
95
95
  }
96
96
 
97
- function exportAsNMRE(data, fileName = 'experiment') {
98
- data.generateAsync({ type: 'blob' }).then((content) => {
99
- fileSaver.saveAs(content, `${fileName}.nmredata`);
100
- });
101
- }
102
-
103
- function exportAsMol(data, fileName = 'mol') {
104
- const blob = new Blob([data], { type: 'text/plain' });
105
- fileSaver.saveAs(blob, `${fileName}.mol`);
106
- }
107
- /**
108
- * export the vitalization result as SVG, if you need to remove some content during exportation process enclose the the content with <!-- export-remove --> ${content} <!-- export-remove -->
109
- */
110
-
111
97
  interface ExportDimensions {
112
98
  width?: number;
113
99
  height?: number;
@@ -444,10 +430,8 @@ function getBlob(targetElementID: string, options: GetBlobOptions): BlobObject {
444
430
  export {
445
431
  exportAsSVG,
446
432
  exportAsJSON,
447
- exportAsNMRE,
448
433
  exportAsPng,
449
434
  copyPNGToClipboard,
450
- exportAsMol,
451
435
  exportAsMatrix,
452
436
  getBlob,
453
437
  };
@@ -20,10 +20,4 @@ function formatNumber(
20
20
  return formattedValue;
21
21
  }
22
22
 
23
- function getNumberOfDecimals(value: number | string) {
24
- value = String(value).trim();
25
- const lastIndex = value.lastIndexOf('.');
26
- return lastIndex > 0 ? value.slice(lastIndex).split('').length - 1 : 0;
27
- }
28
-
29
- export { formatNumber, getNumberOfDecimals };
23
+ export { formatNumber };
package/src/constants.ts CHANGED
@@ -1,24 +1 @@
1
1
  export const docsBaseUrl = 'https://docs.nmrium.org';
2
-
3
- export const helpList: Record<string, { text: string; url: string }> = {
4
- zoom: {
5
- text: 'Zoom tool',
6
- url: `${docsBaseUrl}/help/zoom-and-scale`,
7
- },
8
- peakPicking: {
9
- text: 'Peak picking tool',
10
- url: `${docsBaseUrl}/help/peaks`,
11
- },
12
- integralPicking: {
13
- text: 'Integral tool',
14
- url: `${docsBaseUrl}/help/integrations`,
15
- },
16
- fullScreen: {
17
- text: 'Full screen mode',
18
- url: `${docsBaseUrl}/help/general`,
19
- },
20
- loadSpectrum: {
21
- text: 'Load spectra',
22
- url: `${docsBaseUrl}/help/loading-a-spectrum`,
23
- },
24
- };
@@ -28,8 +28,8 @@ import {
28
28
  import { initiateDatum2D } from './data2d/Spectrum2D/index.js';
29
29
  import { adjustAlpha } from './utilities/generateColor.js';
30
30
 
31
- export type Experiment = 'proton' | 'carbon' | 'cosy' | 'hsqc' | 'hmbc';
32
- export type SpectraPredictionOptions = Record<Experiment, boolean>;
31
+ type Experiment = 'proton' | 'carbon' | 'cosy' | 'hsqc' | 'hmbc';
32
+ type SpectraPredictionOptions = Record<Experiment, boolean>;
33
33
  export type PredictedSpectraResult = Partial<
34
34
  Record<Experiment, PredictionBase1D | PredictionBase2D>
35
35
  >;
@@ -21,7 +21,7 @@ export enum DataExportOptions {
21
21
  NO_DATA = 'NO_DATA',
22
22
  }
23
23
 
24
- export type DataExportOptionsType = keyof typeof DataExportOptions;
24
+ type DataExportOptionsType = keyof typeof DataExportOptions;
25
25
 
26
26
  type ExportTarget = 'nmrium' | 'onChange';
27
27
 
@@ -1,6 +1,6 @@
1
1
  import type { FromTo } from 'cheminfo-types';
2
2
 
3
- export type DefaultPathLengthsInterface = Record<string, FromTo>;
3
+ type DefaultPathLengthsInterface = Record<string, FromTo>;
4
4
 
5
5
  const DefaultPathLengths: DefaultPathLengthsInterface = {
6
6
  hmbc: { from: 2, to: 3 },
@@ -1,6 +1,6 @@
1
1
  import { MultiplicityPatterns } from 'nmr-processing';
2
2
 
3
- export interface MultipletDefinition {
3
+ interface MultipletDefinition {
4
4
  label: string;
5
5
  value: string;
6
6
  multiplicity: number | null;
@@ -5,7 +5,7 @@ interface ReferenceInfo {
5
5
  delta: number;
6
6
  }
7
7
 
8
- export type OneHReferences = 'tms' | 'tsp' | 'glucose';
8
+ type OneHReferences = 'tms' | 'tsp' | 'glucose';
9
9
 
10
10
  export const REFERENCES:
11
11
  | Record<'1H', Record<OneHReferences, ReferenceInfo>>
@@ -33,7 +33,7 @@ export const REFERENCES:
33
33
  '13C': {},
34
34
  };
35
35
 
36
- export interface GetRangeOptions {
36
+ interface GetRangeOptions {
37
37
  nucleus?: string;
38
38
  reference?: string;
39
39
  }