nmrium 1.10.1 → 1.12.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 (582) hide show
  1. package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
  2. package/lib/component/1d/BrushTracker1D.js +7 -0
  3. package/lib/component/1d/BrushTracker1D.js.map +1 -1
  4. package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
  5. package/lib/component/1d/FloatPublicationString.js +170 -109
  6. package/lib/component/1d/FloatPublicationString.js.map +1 -1
  7. package/lib/component/1d/FloatingRanges.d.ts.map +1 -1
  8. package/lib/component/1d/FloatingRanges.js +3 -3
  9. package/lib/component/1d/FloatingRanges.js.map +1 -1
  10. package/lib/component/1d/SVGContent1D.js +1 -1
  11. package/lib/component/1d/SVGContent1D.js.map +1 -1
  12. package/lib/component/1d/inset/DraggableInset.d.ts.map +1 -1
  13. package/lib/component/1d/inset/DraggableInset.js +4 -4
  14. package/lib/component/1d/inset/DraggableInset.js.map +1 -1
  15. package/lib/component/1d/matrix/Boxplot.js +1 -1
  16. package/lib/component/1d/matrix/Stocsy.js +1 -1
  17. package/lib/component/1d/multiplicityTree/MultiplicityTree.js +2 -2
  18. package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
  19. package/lib/component/1d/peaks/PeakAnnotations.js +2 -2
  20. package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
  21. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +1 -1
  22. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
  23. package/lib/component/1d/peaks/Peaks.js +2 -2
  24. package/lib/component/1d/peaks/Peaks.js.map +1 -1
  25. package/lib/component/1d/ranges/Range.d.ts +1 -1
  26. package/lib/component/1d/ranges/Range.js +3 -3
  27. package/lib/component/1d/ranges/Range.js.map +1 -1
  28. package/lib/component/1d/ranges/Ranges.js +2 -2
  29. package/lib/component/1d/ranges/Ranges.js.map +1 -1
  30. package/lib/component/1d/ranges/RangesIntegrals.js +1 -1
  31. package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.d.ts +1 -1
  32. package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.d.ts.map +1 -1
  33. package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.js +4 -4
  34. package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.js.map +1 -1
  35. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts.map +1 -1
  36. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +14 -5
  37. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
  38. package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
  39. package/lib/component/1d-2d/components/SpectrumInfoBlock.js +2 -2
  40. package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
  41. package/lib/component/2d/FooterBanner.d.ts +1 -1
  42. package/lib/component/2d/SVGContent2D.d.ts +1 -1
  43. package/lib/component/2d/YAxis.js +3 -3
  44. package/lib/component/2d/YAxis.js.map +1 -1
  45. package/lib/component/2d/ft/FTContainer.d.ts +1 -1
  46. package/lib/component/2d/tools/XYLabelPointer.d.ts +1 -1
  47. package/lib/component/2d/useTracesSpectra.js +1 -1
  48. package/lib/component/2d/zones/SignalsGuideLines.js +5 -5
  49. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
  50. package/lib/component/2d/zones/Zone.js +1 -1
  51. package/lib/component/2d/zones/Zone.js.map +1 -1
  52. package/lib/component/EventsTrackers/BrushTracker.d.ts +1 -1
  53. package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
  54. package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
  55. package/lib/component/EventsTrackers/KeysListenerTracker.js +9 -3
  56. package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
  57. package/lib/component/context/LoggerContext.d.ts +1 -0
  58. package/lib/component/context/LoggerContext.d.ts.map +1 -1
  59. package/lib/component/context/LoggerContext.js.map +1 -1
  60. package/lib/component/context/PreferencesContext.d.ts +1 -1
  61. package/lib/component/context/PreferencesContext.d.ts.map +1 -1
  62. package/lib/component/elements/ActionsButtonsPopover.d.ts +9 -5
  63. package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
  64. package/lib/component/elements/ActionsButtonsPopover.js +42 -10
  65. package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
  66. package/lib/component/elements/Alert.d.ts.map +1 -1
  67. package/lib/component/elements/Alert.js +3 -2
  68. package/lib/component/elements/Alert.js.map +1 -1
  69. package/lib/component/elements/DraggableDialog.d.ts +1 -1
  70. package/lib/component/elements/DraggableDialog.d.ts.map +1 -1
  71. package/lib/component/elements/NextPrev.d.ts.map +1 -1
  72. package/lib/component/elements/NextPrev.js +23 -4
  73. package/lib/component/elements/NextPrev.js.map +1 -1
  74. package/lib/component/elements/StandardDialog.d.ts +3 -0
  75. package/lib/component/elements/StandardDialog.d.ts.map +1 -0
  76. package/lib/component/elements/StandardDialog.js +7 -0
  77. package/lib/component/elements/StandardDialog.js.map +1 -0
  78. package/lib/component/elements/ToolbarPopoverItem.d.ts +7 -2
  79. package/lib/component/elements/ToolbarPopoverItem.d.ts.map +1 -1
  80. package/lib/component/elements/ToolbarPopoverItem.js +6 -2
  81. package/lib/component/elements/ToolbarPopoverItem.js.map +1 -1
  82. package/lib/component/elements/export/ExportManager.js +1 -1
  83. package/lib/component/elements/export/ExportManager.js.map +1 -1
  84. package/lib/component/elements/export/ExportOptionsModal.js +3 -2
  85. package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
  86. package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts +1 -1
  87. package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
  88. package/lib/component/elements/print/PrintContent.js +3 -2
  89. package/lib/component/elements/print/PrintContent.js.map +1 -1
  90. package/lib/component/header/Header.js +1 -1
  91. package/lib/component/header/Header.js.map +1 -1
  92. package/lib/component/hooks/useActiveNucleusTab.js +1 -1
  93. package/lib/component/hooks/useActiveNucleusTab.js.map +1 -1
  94. package/lib/component/hooks/useActiveSpectrumRangesViewState.js +1 -1
  95. package/lib/component/hooks/useDatumWithSpectraStatistics.js +1 -1
  96. package/lib/component/hooks/useDatumWithSpectraStatistics.js.map +1 -1
  97. package/lib/component/hooks/useExport.d.ts +7 -7
  98. package/lib/component/hooks/useExport.d.ts.map +1 -1
  99. package/lib/component/hooks/useExport.js +23 -43
  100. package/lib/component/hooks/useExport.js.map +1 -1
  101. package/lib/component/hooks/useSVGUnitConverter.d.ts.map +1 -1
  102. package/lib/component/hooks/useSVGUnitConverter.js +12 -9
  103. package/lib/component/hooks/useSVGUnitConverter.js.map +1 -1
  104. package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
  105. package/lib/component/hooks/useSaveSettings.js +3 -2
  106. package/lib/component/hooks/useSaveSettings.js.map +1 -1
  107. package/lib/component/hooks/useSetActiveSpectrumAction.d.ts.map +1 -1
  108. package/lib/component/hooks/useSetActiveSpectrumAction.js +3 -1
  109. package/lib/component/hooks/useSetActiveSpectrumAction.js.map +1 -1
  110. package/lib/component/hooks/useTextMetrics.d.ts +16 -1
  111. package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
  112. package/lib/component/hooks/useTextMetrics.js +43 -15
  113. package/lib/component/hooks/useTextMetrics.js.map +1 -1
  114. package/lib/component/hooks/useToggleSpectraVisibility.js +1 -1
  115. package/lib/component/hooks/use_acs_settings.d.ts +4 -0
  116. package/lib/component/hooks/use_acs_settings.d.ts.map +1 -0
  117. package/lib/component/hooks/use_acs_settings.js +21 -0
  118. package/lib/component/hooks/use_acs_settings.js.map +1 -0
  119. package/lib/component/hooks/use_publication_strings.d.ts +9 -0
  120. package/lib/component/hooks/use_publication_strings.d.ts.map +1 -0
  121. package/lib/component/hooks/use_publication_strings.js +42 -0
  122. package/lib/component/hooks/use_publication_strings.js.map +1 -0
  123. package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
  124. package/lib/component/loader/useLoadFiles.js +81 -86
  125. package/lib/component/loader/useLoadFiles.js.map +1 -1
  126. package/lib/component/main/ErrorOverlay.d.ts.map +1 -1
  127. package/lib/component/main/ErrorOverlay.js +6 -1
  128. package/lib/component/main/ErrorOverlay.js.map +1 -1
  129. package/lib/component/main/InnerNMRiumContents.d.ts.map +1 -1
  130. package/lib/component/main/InnerNMRiumContents.js +1 -2
  131. package/lib/component/main/InnerNMRiumContents.js.map +1 -1
  132. package/lib/component/main/NMRiumViewer.js +2 -2
  133. package/lib/component/main/NMRiumViewer.js.map +1 -1
  134. package/lib/component/main/NMRiumViewerWrapper.d.ts.map +1 -1
  135. package/lib/component/main/NMRiumViewerWrapper.js +9 -3
  136. package/lib/component/main/NMRiumViewerWrapper.js.map +1 -1
  137. package/lib/component/modal/AboutPredictionModal.js +2 -2
  138. package/lib/component/modal/AboutPredictionModal.js.map +1 -1
  139. package/lib/component/modal/AboutSpectrumSimulationModal.js +2 -2
  140. package/lib/component/modal/AboutSpectrumSimulationModal.js.map +1 -1
  141. package/lib/component/modal/EditPeakShapeModal.d.ts.map +1 -1
  142. package/lib/component/modal/EditPeakShapeModal.js +4 -3
  143. package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
  144. package/lib/component/modal/ExportAsJcampModal.d.ts.map +1 -1
  145. package/lib/component/modal/ExportAsJcampModal.js +3 -2
  146. package/lib/component/modal/ExportAsJcampModal.js.map +1 -1
  147. package/lib/component/modal/ImportPublicationStringModal.d.ts.map +1 -1
  148. package/lib/component/modal/ImportPublicationStringModal.js +3 -2
  149. package/lib/component/modal/ImportPublicationStringModal.js.map +1 -1
  150. package/lib/component/modal/LoadJCAMPModal.d.ts.map +1 -1
  151. package/lib/component/modal/LoadJCAMPModal.js +3 -2
  152. package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
  153. package/lib/component/modal/LogsHistoryModal.d.ts.map +1 -1
  154. package/lib/component/modal/LogsHistoryModal.js +3 -2
  155. package/lib/component/modal/LogsHistoryModal.js.map +1 -1
  156. package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.d.ts +6 -0
  157. package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.d.ts.map +1 -0
  158. package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js +128 -0
  159. package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js.map +1 -0
  160. package/lib/component/modal/MoleculeStructureEditorModal.d.ts.map +1 -1
  161. package/lib/component/modal/MoleculeStructureEditorModal.js +4 -3
  162. package/lib/component/modal/MoleculeStructureEditorModal.js.map +1 -1
  163. package/lib/component/modal/MultipletAnalysisModal.d.ts.map +1 -1
  164. package/lib/component/modal/MultipletAnalysisModal.js +2 -2
  165. package/lib/component/modal/MultipletAnalysisModal.js.map +1 -1
  166. package/lib/component/modal/PredictSpectraModal.d.ts.map +1 -1
  167. package/lib/component/modal/PredictSpectraModal.js +3 -2
  168. package/lib/component/modal/PredictSpectraModal.js.map +1 -1
  169. package/lib/component/modal/PublicationStringModal.d.ts +10 -1
  170. package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
  171. package/lib/component/modal/PublicationStringModal.js +89 -77
  172. package/lib/component/modal/PublicationStringModal.js.map +1 -1
  173. package/lib/component/modal/SaveAsModal.d.ts.map +1 -1
  174. package/lib/component/modal/SaveAsModal.js +6 -9
  175. package/lib/component/modal/SaveAsModal.js.map +1 -1
  176. package/lib/component/modal/aboutUs/AboutUsModal.js +2 -2
  177. package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
  178. package/lib/component/modal/changeSum/ChangeSumModal.d.ts.map +1 -1
  179. package/lib/component/modal/changeSum/ChangeSumModal.js +2 -2
  180. package/lib/component/modal/changeSum/ChangeSumModal.js.map +1 -1
  181. package/lib/component/modal/changeSum/SelectMolecule.js +4 -1
  182. package/lib/component/modal/changeSum/SelectMolecule.js.map +1 -1
  183. package/lib/component/modal/editRange/EditRangeModal.js +1 -1
  184. package/lib/component/modal/editRange/forms/components/NewSignalTab.js +1 -1
  185. package/lib/component/modal/metaImportation/MetaImportationModal.d.ts.map +1 -1
  186. package/lib/component/modal/metaImportation/MetaImportationModal.js +3 -2
  187. package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
  188. package/lib/component/modal/setting/{GeneralSettings.d.ts → general_settings.d.ts} +1 -1
  189. package/lib/component/modal/setting/general_settings.d.ts.map +1 -0
  190. package/lib/component/modal/setting/{GeneralSettings.js → general_settings.js} +11 -5
  191. package/lib/component/modal/setting/general_settings.js.map +1 -0
  192. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +1 -1
  193. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js.map +1 -1
  194. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +1 -1
  195. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +1 -1
  196. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js +1 -1
  197. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js.map +1 -1
  198. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +1 -1
  199. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js.map +1 -1
  200. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +1 -1
  201. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +1 -1
  202. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js +1 -1
  203. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js.map +1 -1
  204. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +1 -1
  205. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +1 -1
  206. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js +1 -1
  207. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js.map +1 -1
  208. package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts +8 -0
  209. package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts.map +1 -0
  210. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js +65 -0
  211. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js.map +1 -0
  212. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +624 -0
  213. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -0
  214. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js +42 -0
  215. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map +1 -0
  216. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +624 -0
  217. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -0
  218. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js +22 -0
  219. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js.map +1 -0
  220. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +7 -0
  221. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -0
  222. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js +50 -0
  223. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map +1 -0
  224. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts +7 -0
  225. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts.map +1 -0
  226. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js +105 -0
  227. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js.map +1 -0
  228. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +622 -0
  229. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -0
  230. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +55 -0
  231. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -0
  232. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +123 -0
  233. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -0
  234. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.js +11 -0
  235. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.js.map +1 -0
  236. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +622 -0
  237. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -0
  238. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js +34 -0
  239. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js.map +1 -0
  240. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +622 -0
  241. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -0
  242. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.js +26 -0
  243. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.js.map +1 -0
  244. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +622 -0
  245. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -0
  246. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js +123 -0
  247. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js.map +1 -0
  248. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +622 -0
  249. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -0
  250. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js +40 -0
  251. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js.map +1 -0
  252. package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.d.ts +10 -0
  253. package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.d.ts.map +1 -0
  254. package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.js +40 -0
  255. package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.js.map +1 -0
  256. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +166 -0
  257. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -0
  258. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +58 -0
  259. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -0
  260. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +40 -0
  261. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts.map +1 -0
  262. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js +37 -0
  263. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js.map +1 -0
  264. package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts +37 -0
  265. package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts.map +1 -0
  266. package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.js +26 -0
  267. package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.js.map +1 -0
  268. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts +9 -0
  269. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts.map +1 -0
  270. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js +18 -0
  271. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js.map +1 -0
  272. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts +167 -0
  273. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts.map +1 -0
  274. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js +69 -0
  275. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js.map +1 -0
  276. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +342 -0
  277. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -0
  278. package/lib/component/modal/setting/tanstack_general_settings/validation.js +51 -0
  279. package/lib/component/modal/setting/tanstack_general_settings/validation.js.map +1 -0
  280. package/lib/component/panels/MoleculesPanel/MoleculeOptionsPanel.js +2 -2
  281. package/lib/component/panels/MoleculesPanel/MoleculeOptionsPanel.js.map +1 -1
  282. package/lib/component/panels/MoleculesPanel/MoleculePanel.js +2 -2
  283. package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
  284. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
  285. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +75 -20
  286. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
  287. package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts +1 -1
  288. package/lib/component/panels/MoleculesPanel/MoleculeStructure.js +4 -4
  289. package/lib/component/panels/MoleculesPanel/MoleculeStructure.js.map +1 -1
  290. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +17 -17
  291. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
  292. package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js +1 -1
  293. package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js.map +1 -1
  294. package/lib/component/panels/MoleculesPanel/utilities/extractFromAtom.d.ts +1 -1
  295. package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js +1 -1
  296. package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.d.ts +1 -1
  297. package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts +1 -1
  298. package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts.map +1 -1
  299. package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js +1 -1
  300. package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js.map +1 -1
  301. package/lib/component/panels/MoleculesPanel/utilities/getUniqueDiaIDs.d.ts +1 -1
  302. package/lib/component/panels/Panels.d.ts +0 -9
  303. package/lib/component/panels/Panels.d.ts.map +1 -1
  304. package/lib/component/panels/Panels.js +13 -54
  305. package/lib/component/panels/Panels.js.map +1 -1
  306. package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
  307. package/lib/component/panels/RangesPanel/RangesHeader.js +23 -15
  308. package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
  309. package/lib/component/panels/RangesPanel/RangesTableRow.js +1 -1
  310. package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
  311. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts +1 -1
  312. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -1
  313. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js +2 -2
  314. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -1
  315. package/lib/component/panels/SpectraPanel/SpectraTable.js +1 -1
  316. package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.d.ts.map +1 -1
  317. package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +3 -2
  318. package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js.map +1 -1
  319. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.d.ts.map +1 -1
  320. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +3 -2
  321. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
  322. package/lib/component/panels/databasePanel/DatabaseInfo.js +1 -1
  323. package/lib/component/panels/databasePanel/DatabasePanel.js +1 -1
  324. package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js +2 -2
  325. package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js.map +1 -1
  326. package/lib/component/panels/databasePanel/DatabaseTable.js +1 -1
  327. package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
  328. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
  329. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
  330. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +1 -1
  331. package/lib/component/panels/header/DefaultPanelHeader.d.ts.map +1 -1
  332. package/lib/component/panels/header/DefaultPanelHeader.js +2 -1
  333. package/lib/component/panels/header/DefaultPanelHeader.js.map +1 -1
  334. package/lib/component/panels/hooks/useMoleculeAnnotationCore.js +1 -1
  335. package/lib/component/panels/hooks/useMoleculeAnnotationCore.js.map +1 -1
  336. package/lib/component/panels/hooks/useTogglePanel.d.ts.map +1 -1
  337. package/lib/component/panels/hooks/useTogglePanel.js +4 -3
  338. package/lib/component/panels/hooks/useTogglePanel.js.map +1 -1
  339. package/lib/component/panels/informationPanel/InformationEditionModal.d.ts.map +1 -1
  340. package/lib/component/panels/informationPanel/InformationEditionModal.js +3 -2
  341. package/lib/component/panels/informationPanel/InformationEditionModal.js.map +1 -1
  342. package/lib/component/panels/informationPanel/InformationPanel.d.ts.map +1 -1
  343. package/lib/component/panels/informationPanel/InformationPanel.js +38 -3
  344. package/lib/component/panels/informationPanel/InformationPanel.js.map +1 -1
  345. package/lib/component/reducer/actions/AssignmentsActions.js +3 -3
  346. package/lib/component/reducer/actions/CorrelationsActions.js +2 -2
  347. package/lib/component/reducer/actions/DatabaseActions.js +1 -1
  348. package/lib/component/reducer/actions/DomainActions.js +1 -1
  349. package/lib/component/reducer/actions/InsetActions.js +2 -2
  350. package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
  351. package/lib/component/reducer/actions/LoadAction.js +8 -2
  352. package/lib/component/reducer/actions/LoadAction.js.map +1 -1
  353. package/lib/component/reducer/actions/MoleculeActions.d.ts +23 -1
  354. package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
  355. package/lib/component/reducer/actions/MoleculeActions.js +5 -5
  356. package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
  357. package/lib/component/reducer/actions/PreferencesActions.js +1 -1
  358. package/lib/component/reducer/actions/RangesActions.d.ts +1 -1
  359. package/lib/component/reducer/actions/RangesActions.js +2 -2
  360. package/lib/component/reducer/actions/RangesActions.js.map +1 -1
  361. package/lib/component/reducer/actions/SpectraActions.d.ts +2 -1
  362. package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
  363. package/lib/component/reducer/actions/SpectraActions.js +3 -3
  364. package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
  365. package/lib/component/reducer/actions/ToolsActions.js +2 -2
  366. package/lib/component/reducer/actions/ZonesActions.d.ts +1 -1
  367. package/lib/component/reducer/actions/ZonesActions.js +2 -2
  368. package/lib/component/reducer/helper/get2DRange.d.ts +1 -1
  369. package/lib/component/reducer/preferences/actions/analyzeSpectra.d.ts +2 -1
  370. package/lib/component/reducer/preferences/actions/analyzeSpectra.d.ts.map +1 -1
  371. package/lib/component/reducer/preferences/actions/analyzeSpectra.js +10 -0
  372. package/lib/component/reducer/preferences/actions/analyzeSpectra.js.map +1 -1
  373. package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.d.ts +4 -0
  374. package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.d.ts.map +1 -0
  375. package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.js +9 -0
  376. package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.js.map +1 -0
  377. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -1
  378. package/lib/component/reducer/preferences/preferencesReducer.d.ts +8 -1
  379. package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
  380. package/lib/component/reducer/preferences/preferencesReducer.js +8 -3
  381. package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
  382. package/lib/component/toolbar/ToolBar.d.ts.map +1 -1
  383. package/lib/component/toolbar/ToolBar.js +11 -8
  384. package/lib/component/toolbar/ToolBar.js.map +1 -1
  385. package/lib/component/toolbar/toolbarMenu.d.ts +5 -1
  386. package/lib/component/toolbar/toolbarMenu.d.ts.map +1 -1
  387. package/lib/component/toolbar/toolbarMenu.js +1 -1
  388. package/lib/component/toolbar/toolbarMenu.js.map +1 -1
  389. package/lib/component/utility/export.d.ts +2 -1
  390. package/lib/component/utility/export.d.ts.map +1 -1
  391. package/lib/component/utility/export.js +6 -2
  392. package/lib/component/utility/export.js.map +1 -1
  393. package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
  394. package/lib/component/workspaces/workspaceDefaultProperties.js +3 -0
  395. package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
  396. package/lib/data/PredictionManager.js +1 -1
  397. package/lib/data/SpectraManager.d.ts +1 -1
  398. package/lib/data/SpectraManager.d.ts.map +1 -1
  399. package/lib/data/SpectraManager.js +1 -1
  400. package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +1 -1
  401. package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js +1 -1
  402. package/lib/data/data1d/multipleSpectraAnalysis.d.ts +1 -0
  403. package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
  404. package/lib/data/data1d/multipleSpectraAnalysis.js +14 -0
  405. package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
  406. package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
  407. package/lib/data/data2d/Spectrum2D/contours.js +13 -6
  408. package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
  409. package/lib/data/molecules/MoleculeManager.d.ts +6 -1
  410. package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
  411. package/lib/data/molecules/MoleculeManager.js +3 -2
  412. package/lib/data/molecules/MoleculeManager.js.map +1 -1
  413. package/lib/data/utilities/FindUtilities.js +2 -2
  414. package/lib/utils/clipboard/clipboardComponents.js +2 -2
  415. package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
  416. package/lib/versionInfo.js +1 -1
  417. package/package.json +45 -45
  418. package/src/component/1d/BrushTracker1D.tsx +8 -0
  419. package/src/component/1d/FloatPublicationString.tsx +275 -177
  420. package/src/component/1d/FloatingRanges.tsx +1 -3
  421. package/src/component/1d/SVGContent1D.tsx +1 -1
  422. package/src/component/1d/inset/DraggableInset.tsx +2 -4
  423. package/src/component/1d/integral/IntegralResizable.tsx +1 -1
  424. package/src/component/1d/matrix/Boxplot.tsx +1 -1
  425. package/src/component/1d/matrix/Stocsy.tsx +1 -1
  426. package/src/component/1d/multiAnalysis/AnalysisRange.tsx +1 -1
  427. package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +2 -2
  428. package/src/component/1d/peaks/PeakAnnotations.tsx +2 -2
  429. package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +2 -2
  430. package/src/component/1d/peaks/Peaks.tsx +2 -2
  431. package/src/component/1d/ranges/Range.tsx +5 -5
  432. package/src/component/1d/ranges/Ranges.tsx +2 -2
  433. package/src/component/1d/ranges/RangesIntegrals.tsx +1 -1
  434. package/src/component/1d/ranges/useAssignmentsPopoverActionsButtons.tsx +5 -5
  435. package/src/component/1d/tool/BaseLineZones.tsx +1 -1
  436. package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +14 -6
  437. package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +1 -2
  438. package/src/component/2d/FooterBanner.tsx +1 -1
  439. package/src/component/2d/SVGContent2D.tsx +1 -1
  440. package/src/component/2d/YAxis.tsx +3 -3
  441. package/src/component/2d/ft/FTContainer.tsx +1 -1
  442. package/src/component/2d/tools/XYLabelPointer.tsx +1 -1
  443. package/src/component/2d/useTracesSpectra.ts +1 -1
  444. package/src/component/2d/zones/SignalsGuideLines.tsx +5 -5
  445. package/src/component/2d/zones/Zone.tsx +1 -1
  446. package/src/component/EventsTrackers/BrushTracker.tsx +1 -1
  447. package/src/component/EventsTrackers/KeysListenerTracker.tsx +9 -3
  448. package/src/component/context/LoggerContext.tsx +9 -0
  449. package/src/component/context/PreferencesContext.tsx +1 -1
  450. package/src/component/elements/ActionsButtonsPopover.tsx +80 -24
  451. package/src/component/elements/Alert.tsx +4 -2
  452. package/src/component/elements/DraggableDialog.tsx +2 -2
  453. package/src/component/elements/NextPrev.tsx +28 -4
  454. package/src/component/elements/StandardDialog.tsx +11 -0
  455. package/src/component/elements/ToolbarPopoverItem.tsx +16 -3
  456. package/src/component/elements/export/ExportManager.tsx +1 -1
  457. package/src/component/elements/export/ExportOptionsModal.tsx +3 -3
  458. package/src/component/elements/print/PrintContent.tsx +4 -9
  459. package/src/component/header/Header.tsx +1 -1
  460. package/src/component/hooks/useActiveNucleusTab.ts +1 -1
  461. package/src/component/hooks/useActiveSpectrumRangesViewState.ts +1 -1
  462. package/src/component/hooks/useDatumWithSpectraStatistics.ts +1 -1
  463. package/src/component/hooks/useExport.tsx +36 -66
  464. package/src/component/hooks/useSVGUnitConverter.ts +13 -9
  465. package/src/component/hooks/useSaveSettings.tsx +4 -3
  466. package/src/component/hooks/useSetActiveSpectrumAction.ts +3 -2
  467. package/src/component/hooks/useTextMetrics.ts +66 -18
  468. package/src/component/hooks/useToggleSpectraVisibility.tsx +1 -1
  469. package/src/component/hooks/use_acs_settings.ts +27 -0
  470. package/src/component/hooks/use_publication_strings.ts +67 -0
  471. package/src/component/loader/useLoadFiles.ts +134 -111
  472. package/src/component/main/ErrorOverlay.tsx +11 -2
  473. package/src/component/main/InnerNMRiumContents.tsx +6 -9
  474. package/src/component/main/NMRiumViewer.tsx +3 -3
  475. package/src/component/main/NMRiumViewerWrapper.tsx +12 -6
  476. package/src/component/modal/AboutPredictionModal.tsx +3 -3
  477. package/src/component/modal/AboutSpectrumSimulationModal.tsx +3 -3
  478. package/src/component/modal/EditPeakShapeModal.tsx +5 -4
  479. package/src/component/modal/ExportAsJcampModal.tsx +4 -3
  480. package/src/component/modal/ImportPublicationStringModal.tsx +4 -3
  481. package/src/component/modal/LoadJCAMPModal.tsx +4 -3
  482. package/src/component/modal/LogsHistoryModal.tsx +4 -3
  483. package/src/component/modal/MoleculeAutoLabelsDatabaseModal.tsx +220 -0
  484. package/src/component/modal/MoleculeStructureEditorModal.tsx +9 -4
  485. package/src/component/modal/MultipletAnalysisModal.tsx +3 -3
  486. package/src/component/modal/PredictSpectraModal.tsx +4 -3
  487. package/src/component/modal/PublicationStringModal.tsx +234 -134
  488. package/src/component/modal/SaveAsModal.tsx +18 -50
  489. package/src/component/modal/aboutUs/AboutUsModal.tsx +3 -3
  490. package/src/component/modal/changeSum/ChangeSumModal.tsx +5 -4
  491. package/src/component/modal/changeSum/SelectMolecule.tsx +23 -23
  492. package/src/component/modal/editRange/EditRangeModal.tsx +1 -1
  493. package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +1 -1
  494. package/src/component/modal/metaImportation/MetaImportationModal.tsx +4 -3
  495. package/src/component/modal/setting/{GeneralSettings.tsx → general_settings.tsx} +34 -4
  496. package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +1 -1
  497. package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +1 -1
  498. package/src/component/modal/setting/settings-tabs/ExternalAPIsTabContent.tsx +1 -1
  499. package/src/component/modal/setting/settings-tabs/GeneralTabContent.tsx +1 -1
  500. package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +1 -1
  501. package/src/component/modal/setting/settings-tabs/NucleiTabContent.tsx +1 -1
  502. package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +1 -1
  503. package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +1 -1
  504. package/src/component/modal/setting/tanstack_general_settings/general_settings.tsx +106 -0
  505. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +69 -0
  506. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.tsx +39 -0
  507. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx +98 -0
  508. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.tsx +218 -0
  509. package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +231 -0
  510. package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.tsx +24 -0
  511. package/src/component/modal/setting/tanstack_general_settings/tabs/general_tab.tsx +94 -0
  512. package/src/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.tsx +72 -0
  513. package/src/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.tsx +261 -0
  514. package/src/component/modal/setting/tanstack_general_settings/tabs/panels_tab.tsx +150 -0
  515. package/src/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.ts +55 -0
  516. package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +63 -0
  517. package/src/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.ts +42 -0
  518. package/src/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.ts +26 -0
  519. package/src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts +21 -0
  520. package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts +80 -0
  521. package/src/component/modal/setting/tanstack_general_settings/validation.ts +66 -0
  522. package/src/component/panels/MoleculesPanel/MoleculeOptionsPanel.tsx +2 -2
  523. package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +2 -2
  524. package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +106 -21
  525. package/src/component/panels/MoleculesPanel/MoleculeStructure.tsx +5 -5
  526. package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +21 -21
  527. package/src/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.ts +1 -1
  528. package/src/component/panels/MoleculesPanel/utilities/extractFromAtom.ts +1 -1
  529. package/src/component/panels/MoleculesPanel/utilities/getAssignIds.ts +1 -1
  530. package/src/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.ts +1 -1
  531. package/src/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.ts +2 -2
  532. package/src/component/panels/MoleculesPanel/utilities/getUniqueDiaIDs.ts +1 -1
  533. package/src/component/panels/Panels.tsx +5 -93
  534. package/src/component/panels/RangesPanel/RangesHeader.tsx +34 -29
  535. package/src/component/panels/RangesPanel/RangesTableRow.tsx +1 -1
  536. package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +3 -3
  537. package/src/component/panels/SpectraPanel/SpectraTable.tsx +1 -1
  538. package/src/component/panels/SummaryPanel/SetMolecularFormulaModal.tsx +4 -3
  539. package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +4 -3
  540. package/src/component/panels/databasePanel/DatabaseInfo.tsx +1 -1
  541. package/src/component/panels/databasePanel/DatabasePanel.tsx +1 -1
  542. package/src/component/panels/databasePanel/DatabaseStructureSearchModal.tsx +3 -3
  543. package/src/component/panels/databasePanel/DatabaseTable.tsx +1 -1
  544. package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +1 -1
  545. package/src/component/panels/header/DefaultPanelHeader.tsx +2 -1
  546. package/src/component/panels/hooks/useMoleculeAnnotationCore.ts +1 -1
  547. package/src/component/panels/hooks/useTogglePanel.ts +4 -3
  548. package/src/component/panels/informationPanel/InformationEditionModal.tsx +4 -3
  549. package/src/component/panels/informationPanel/InformationPanel.tsx +83 -2
  550. package/src/component/reducer/actions/AssignmentsActions.ts +3 -3
  551. package/src/component/reducer/actions/CorrelationsActions.ts +2 -2
  552. package/src/component/reducer/actions/DatabaseActions.ts +1 -1
  553. package/src/component/reducer/actions/DomainActions.ts +1 -1
  554. package/src/component/reducer/actions/InsetActions.ts +2 -2
  555. package/src/component/reducer/actions/LoadAction.ts +17 -3
  556. package/src/component/reducer/actions/MoleculeActions.ts +7 -5
  557. package/src/component/reducer/actions/PreferencesActions.ts +1 -1
  558. package/src/component/reducer/actions/RangesActions.ts +4 -4
  559. package/src/component/reducer/actions/SpectraActions.ts +7 -3
  560. package/src/component/reducer/actions/ToolsActions.ts +2 -2
  561. package/src/component/reducer/actions/ZonesActions.ts +3 -3
  562. package/src/component/reducer/helper/get2DRange.ts +1 -1
  563. package/src/component/reducer/preferences/actions/analyzeSpectra.ts +16 -0
  564. package/src/component/reducer/preferences/actions/toggleOpenSplitPanel.ts +18 -0
  565. package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +1 -1
  566. package/src/component/reducer/preferences/preferencesReducer.ts +24 -3
  567. package/src/component/toolbar/ToolBar.tsx +15 -10
  568. package/src/component/toolbar/toolbarMenu.tsx +13 -2
  569. package/src/component/utility/export.ts +7 -1
  570. package/src/component/workspaces/workspaceDefaultProperties.ts +5 -1
  571. package/src/data/PredictionManager.ts +1 -1
  572. package/src/data/SpectraManager.ts +2 -2
  573. package/src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts +1 -1
  574. package/src/data/data1d/Spectrum1D/ranges/detectRanges.ts +1 -1
  575. package/src/data/data1d/multipleSpectraAnalysis.ts +20 -0
  576. package/src/data/data2d/Spectrum2D/contours.ts +16 -6
  577. package/src/data/molecules/MoleculeManager.ts +7 -2
  578. package/src/data/utilities/FindUtilities.ts +2 -2
  579. package/src/utils/clipboard/clipboardComponents.tsx +3 -3
  580. package/src/versionInfo.ts +1 -1
  581. package/lib/component/modal/setting/GeneralSettings.d.ts.map +0 -1
  582. package/lib/component/modal/setting/GeneralSettings.js.map +0 -1
@@ -25,10 +25,10 @@ import {
25
25
  updateRangesRelativeValues,
26
26
  } from '../../../data/data1d/Spectrum1D/index.js';
27
27
  import type { ChangeRangeRelativeValueProps } from '../../../data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js';
28
- import type { DetectRangesOptions } from '../../../data/data1d/Spectrum1D/ranges/detectRanges.ts';
28
+ import type { DetectRangesOptions } from '../../../data/data1d/Spectrum1D/ranges/detectRanges.js';
29
29
  import { unlink } from '../../../data/utilities/RangeUtilities.js';
30
- import { isProton } from '../../../data/utilities/isProton.ts';
31
- import type { TargetAssignKeys } from '../../panels/MoleculesPanel/utilities/getAssignIds.ts';
30
+ import { isProton } from '../../../data/utilities/isProton.js';
31
+ import type { TargetAssignKeys } from '../../panels/MoleculesPanel/utilities/getAssignIds.js';
32
32
  import type { RangeData } from '../../panels/RangesPanel/hooks/useMapRanges.js';
33
33
  import type { FilterType } from '../../utility/filterType.js';
34
34
  import type { State } from '../Reducer.js';
@@ -465,7 +465,7 @@ function handleChangeRangesAssignmentLabelsByDiaIds(
465
465
  for (const signal of signals) {
466
466
  if (
467
467
  previousAssignment === signal.assignment &&
468
- uniqueDiaIds.has(signal.id)
468
+ signal.diaIDs?.some((id) => uniqueDiaIds.has(id))
469
469
  ) {
470
470
  signal.assignment = assignment;
471
471
  }
@@ -40,7 +40,7 @@ import type { State } from '../Reducer.js';
40
40
  import { setZoom } from '../helper/Zoom1DManager.js';
41
41
  import { getActiveSpectra } from '../helper/getActiveSpectra.js';
42
42
  import { getActiveSpectraAsObject } from '../helper/getActiveSpectraAsObject.js';
43
- import { getSpectrum } from '../helper/getSpectrum.ts';
43
+ import { getSpectrum } from '../helper/getSpectrum.js';
44
44
  import { removeSpectrumRelatedObjectsById } from '../helper/removeSpectrumRelatedObjectsById.js';
45
45
  import type { ActionType } from '../types/ActionType.js';
46
46
 
@@ -82,6 +82,7 @@ type ChangeActiveSpectrumAction = ActionType<
82
82
  | (string & {});
83
83
 
84
84
  id?: string; // spectrum id
85
+ sortedSpectra?: Spectrum[];
85
86
  }
86
87
  >;
87
88
  type ChangeSpectrumSettingAction = ActionType<
@@ -292,11 +293,14 @@ function handleChangeActiveSpectrum(
292
293
  data,
293
294
  toolOptions,
294
295
  } = draft;
295
- const { modifier, id } = action.payload;
296
+ const { modifier, id, sortedSpectra } = action.payload;
296
297
  const spectra = getActiveSpectra(draft);
297
298
 
298
299
  //get the spectra that its nucleus match the active tab
299
- const spectraPerNucleus = getSpectraByNucleus(activeTab, data);
300
+ const spectraPerNucleus = getSpectraByNucleus(
301
+ activeTab,
302
+ sortedSpectra ?? data,
303
+ );
300
304
 
301
305
  //set of the current active spectra
302
306
  let spectraIds = spectra?.map((s) => s.id) || [];
@@ -3,7 +3,7 @@ import type { Spectrum1D, Spectrum2D, Spectrum } from '@zakodium/nmrium-core';
3
3
  import { zoomIdentity } from 'd3-zoom';
4
4
  import type { Draft } from 'immer';
5
5
 
6
- import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.ts';
6
+ import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
7
7
  import { contoursManager } from '../../../data/data2d/Spectrum2D/contours.js';
8
8
  import { getXScale } from '../../1d/utilities/scale.js';
9
9
  import type { Layout } from '../../2d/utilities/DimensionLayout.js';
@@ -25,7 +25,7 @@ import zoomHistoryManager, {
25
25
  addToBrushHistory,
26
26
  } from '../helper/ZoomHistoryManager.js';
27
27
  import { getActiveSpectra } from '../helper/getActiveSpectra.js';
28
- import { getSpectrum } from '../helper/getSpectrum.ts';
28
+ import { getSpectrum } from '../helper/getSpectrum.js';
29
29
  import { getTwoDimensionPhaseCorrectionOptions } from '../helper/getTwoDimensionPhaseCorrectionOptions.js';
30
30
  import { getVerticalAlign } from '../helper/getVerticalAlign.js';
31
31
  import { setIntegralsViewProperty } from '../helper/setIntegralsViewProperty.js';
@@ -15,19 +15,19 @@ import {
15
15
  import { unlink } from '../../../data/utilities/ZoneUtilities.js';
16
16
  import type { Axis } from '../../assignment/AssignmentsContext.js';
17
17
  import { defaultZonesViewState } from '../../hooks/useActiveSpectrumZonesViewState.js';
18
- import type { TargetAssignKeys } from '../../panels/MoleculesPanel/utilities/getAssignIds.ts';
18
+ import type { TargetAssignKeys } from '../../panels/MoleculesPanel/utilities/getAssignIds.js';
19
19
  import type { ZoneData } from '../../panels/ZonesPanel/hooks/useMapZones.js';
20
20
  import type { FilterType } from '../../utility/filterType.js';
21
21
  import type { State } from '../Reducer.js';
22
22
  import type { ZoneBoundary } from '../helper/get2DRange.js';
23
23
  import get2DRange from '../helper/get2DRange.js';
24
24
  import { getActiveSpectrum } from '../helper/getActiveSpectrum.js';
25
- import { getSpectrum } from '../helper/getSpectrum.ts';
25
+ import { getSpectrum } from '../helper/getSpectrum.js';
26
26
  import type { ActionType } from '../types/ActionType.js';
27
27
 
28
28
  import { handleUpdateCorrelations } from './CorrelationsActions.js';
29
29
  import { setDomain } from './DomainActions.js';
30
- import { rollbackSpectrumByFilter } from './FiltersActions.ts';
30
+ import { rollbackSpectrumByFilter } from './FiltersActions.js';
31
31
 
32
32
  interface DeleteSignal2DProps {
33
33
  spectrumId: string;
@@ -1,7 +1,7 @@
1
1
  import type { Draft } from 'immer';
2
2
 
3
3
  import { get2DXScale, get2DYScale } from '../../2d/utilities/scale.js';
4
- import type { State } from '../Reducer.ts';
4
+ import type { State } from '../Reducer.js';
5
5
 
6
6
  export interface ZoneBoundary {
7
7
  startX: number;
@@ -6,6 +6,7 @@ import { getMultipleSpectraAnalysisDefaultValues } from '../panelsPreferencesDef
6
6
  import type {
7
7
  AnalyzeSpectraAction,
8
8
  ChangeAnalysisColumnValueKeyAction,
9
+ CutSpectraAnalysisAction,
9
10
  DeleteAnalysisColumn,
10
11
  PreferencesState,
11
12
  SetSpectraAnalysisPanelPreferencesAction,
@@ -34,6 +35,21 @@ export function analyzeSpectra(
34
35
  columnKey,
35
36
  });
36
37
  }
38
+ export function cutSpectraAnalysis(
39
+ draft: Draft<PreferencesState>,
40
+ action: CutSpectraAnalysisAction,
41
+ ) {
42
+ const currentWorkspacePreferences = getActiveWorkspace(draft);
43
+ const panels = currentWorkspacePreferences.panels;
44
+ const { x, nucleus } = action.payload;
45
+
46
+ if (!panels.multipleSpectraAnalysis) {
47
+ panels.multipleSpectraAnalysis =
48
+ getMultipleSpectraAnalysisDefaultValues(nucleus);
49
+ }
50
+
51
+ MultipleAnalysis.cutAnalysis(panels.multipleSpectraAnalysis, nucleus, x);
52
+ }
37
53
 
38
54
  export function changeAnalysisColumnValueKey(
39
55
  draft: Draft<PreferencesState>,
@@ -0,0 +1,18 @@
1
+ import type { Draft } from 'immer';
2
+
3
+ import type {
4
+ PreferencesState,
5
+ ToggleSplitPanelAction,
6
+ } from '../preferencesReducer.js';
7
+ import { getActiveWorkspace } from '../utilities/getActiveWorkspace.js';
8
+
9
+ export function toggleOpenSplitPanel(
10
+ draft: Draft<PreferencesState>,
11
+ action: ToggleSplitPanelAction,
12
+ ) {
13
+ const currentWorkspacePreferences = getActiveWorkspace(draft);
14
+ const { isOpen } = action.payload || {};
15
+ const generalPreferences = currentWorkspacePreferences.display.general || {};
16
+ generalPreferences.hidePanelOnLoad =
17
+ isOpen ?? !generalPreferences.hidePanelOnLoad;
18
+ }
@@ -9,7 +9,7 @@ import type {
9
9
  Zones2DNucleusPreferences,
10
10
  } from '@zakodium/nmrium-core';
11
11
 
12
- import { isProton } from '../../../data/utilities/isProton.ts';
12
+ import { isProton } from '../../../data/utilities/isProton.js';
13
13
  import { is2DNucleus } from '../../utility/nucleusToString.js';
14
14
 
15
15
  function getPreferences<T>(data: T, nucleus?: string) {
@@ -27,12 +27,13 @@ import { addWorkspace } from './actions/addWorkspace.js';
27
27
  import {
28
28
  analyzeSpectra,
29
29
  changeAnalysisColumnValueKey,
30
+ cutSpectraAnalysis,
30
31
  deleteAnalysisColumn,
31
32
  setSpectraAnalysisPanelsPreferences,
32
33
  } from './actions/analyzeSpectra.js';
33
34
  import { applyGeneralPreferences } from './actions/applyGeneralPreferences.js';
34
- import { changeDefaultMoleculeSettings } from './actions/changeDefaultMoleculeSettings.ts';
35
- import { changeExportAcsSettings } from './actions/changeExportAcsSettings.ts';
35
+ import { changeDefaultMoleculeSettings } from './actions/changeDefaultMoleculeSettings.js';
36
+ import { changeExportAcsSettings } from './actions/changeExportAcsSettings.js';
36
37
  import { changeExportSettings } from './actions/changeExportSettings.js';
37
38
  import { changeInformationBlockPosition } from './actions/changeInformationBlockPosition.js';
38
39
  import { changePeaksLabelPosition } from './actions/changePeaksLabelPosition.js';
@@ -54,6 +55,7 @@ import { setPreferences } from './actions/setPreferences.js';
54
55
  import { setVerticalSplitterPosition } from './actions/setVerticalSplitterPosition.js';
55
56
  import { setWorkspace } from './actions/setWorkspace.js';
56
57
  import { toggleInformationBlock } from './actions/toggleInformationBlock.js';
58
+ import { toggleOpenSplitPanel } from './actions/toggleOpenSplitPanel.js';
57
59
  import { togglePanel } from './actions/togglePanel.js';
58
60
  import { mapWorkspaces } from './utilities/mapWorkspaces.js';
59
61
 
@@ -111,6 +113,12 @@ export type AnalyzeSpectraAction = ActionType<
111
113
  'ANALYZE_SPECTRA',
112
114
  { start: number; end: number; nucleus: string; columnKey?: string }
113
115
  >;
116
+
117
+ export type CutSpectraAnalysisAction = ActionType<
118
+ 'CUT_SPECTRA_ANALYSIS',
119
+ { x: number; nucleus: string }
120
+ >;
121
+
114
122
  export type ChangeAnalysisColumnValueKeyAction = ActionType<
115
123
  'CHANGE_ANALYSIS_COLUMN_VALUE_KEY',
116
124
  { columnKey: string; valueKey: string; nucleus: string }
@@ -177,6 +185,13 @@ export type ChangeDefaultMoleculeSettingsAction = ActionType<
177
185
  MoleculeView
178
186
  >;
179
187
 
188
+ export type ToggleSplitPanelAction = ActionType<
189
+ 'TOGGLE_SPLIT_PANEL',
190
+ {
191
+ isOpen?: boolean;
192
+ }
193
+ >;
194
+
180
195
  export type PreferencesActions =
181
196
  | InitPreferencesAction
182
197
  | SetPreferencesAction
@@ -198,7 +213,9 @@ export type PreferencesActions =
198
213
  | ChangePeaksLabelPositionAction
199
214
  | TogglePanelAction
200
215
  | ChangeExportACSSettingsAction
201
- | ChangeDefaultMoleculeSettingsAction;
216
+ | ChangeDefaultMoleculeSettingsAction
217
+ | CutSpectraAnalysisAction
218
+ | ToggleSplitPanelAction;
202
219
 
203
220
  export type WorkspaceWithSource = Workspace & { source: WorkSpaceSource };
204
221
  type WorkspacesWithSource = Record<string, WorkspaceWithSource>;
@@ -294,6 +311,8 @@ function innerPreferencesReducer(
294
311
  return deleteAnalysisColumn(draft, action);
295
312
  case 'SET_SPECTRA_ANALYSIS_PREFERENCES':
296
313
  return setSpectraAnalysisPanelsPreferences(draft, action);
314
+ case 'CUT_SPECTRA_ANALYSIS':
315
+ return cutSpectraAnalysis(draft, action);
297
316
  case 'SET_MATRIX_GENERATION_OPTIONS':
298
317
  return setMatrixGenerationOptions(draft, action);
299
318
  case 'ADD_MATRIX_GENERATION_EXCLUSION_ZONE':
@@ -324,6 +343,8 @@ function innerPreferencesReducer(
324
343
  return changeExportAcsSettings(draft, action);
325
344
  case 'CHANGE_DEFAULT_MOLECULE_SETTINGS':
326
345
  return changeDefaultMoleculeSettings(draft, action);
346
+ case 'TOGGLE_SPLIT_PANEL':
347
+ return toggleOpenSplitPanel(draft, action);
327
348
 
328
349
  default:
329
350
  return draft;
@@ -53,6 +53,7 @@ import { MetaImportationModal } from '../modal/metaImportation/MetaImportationMo
53
53
 
54
54
  import type { MainTool } from './ToolTypes.js';
55
55
  import { options } from './ToolTypes.js';
56
+ import type { ExportMenuItems } from './toolbarMenu.js';
56
57
  import { EXPORT_MENU, IMPORT_MENU } from './toolbarMenu.js';
57
58
 
58
59
  interface BaseToolItem extends Pick<ToolbarItemProps, 'icon' | 'disabled'> {
@@ -161,7 +162,7 @@ export default function ToolBar() {
161
162
  });
162
163
  }, [dispatch]);
163
164
 
164
- const { saveAsJSONHandler } = useExport();
165
+ const { defaultSaveAsHandler } = useExport();
165
166
 
166
167
  const exportViewportAPI = useExportManagerAPI();
167
168
 
@@ -183,16 +184,16 @@ export default function ToolBar() {
183
184
  }
184
185
  }
185
186
 
186
- function exportHandler(data: any) {
187
- switch (data?.id) {
187
+ function exportHandler(data: ExportMenuItems[number]['data']) {
188
+ const id = data?.id;
189
+
190
+ switch (id) {
188
191
  case 'svg':
189
- exportViewportAPI.current?.export({ format: 'svg' });
190
- break;
191
192
  case 'png':
192
- exportViewportAPI.current?.export({ format: 'png' });
193
+ exportViewportAPI.current?.export({ format: id });
193
194
  break;
194
- case 'json':
195
- saveAsJSONHandler();
195
+ case 'nmrium_archive':
196
+ defaultSaveAsHandler();
196
197
  break;
197
198
  case 'advance_save':
198
199
  openDialog('saveAs');
@@ -206,7 +207,6 @@ export default function ToolBar() {
206
207
  case 'exportAsJcamp':
207
208
  openDialog('exportAsJcamp');
208
209
  break;
209
-
210
210
  default:
211
211
  break;
212
212
  }
@@ -484,7 +484,12 @@ export default function ToolBar() {
484
484
  },
485
485
  {
486
486
  id: 'inset',
487
- tooltip: options.inset.label,
487
+ tooltip: {
488
+ title: options.inset.label,
489
+ shortcuts: ['n'],
490
+ description:
491
+ 'Drag a rectangle over the spectrum region to create an inset.',
492
+ },
488
493
  icon: <PiSelectionPlusDuotone />,
489
494
  },
490
495
  ];
@@ -39,7 +39,18 @@ const IMPORT_MENU: ToolbarPopoverMenuItem[] = [
39
39
  },
40
40
  ] as const;
41
41
 
42
- const EXPORT_MENU: ToolbarPopoverMenuItem[] = [
42
+ type ExportMenuItemsId =
43
+ | 'nmrium_archive'
44
+ | 'advance_save'
45
+ | 'svg'
46
+ | 'png'
47
+ | 'copy'
48
+ | 'nmre'
49
+ | 'exportAsJcamp';
50
+ export type ExportMenuItems = Array<
51
+ ToolbarPopoverMenuItem<{ id: ExportMenuItemsId }>
52
+ >;
53
+ const EXPORT_MENU: ExportMenuItems = [
43
54
  {
44
55
  icon: <FaFileDownload />,
45
56
  text: 'Save data',
@@ -48,7 +59,7 @@ const EXPORT_MENU: ToolbarPopoverMenuItem[] = [
48
59
  shortcuts: ['CTRL', 's'],
49
60
  },
50
61
  data: {
51
- id: 'json',
62
+ id: 'nmrium_archive',
52
63
  },
53
64
  },
54
65
  {
@@ -7,7 +7,7 @@ import type {
7
7
  import { BlobWriter, TextReader, ZipWriter } from '@zip.js/zip.js';
8
8
  import dlv from 'dlv';
9
9
 
10
- import { saveAs } from './save_as.ts';
10
+ import { saveAs } from './save_as.js';
11
11
 
12
12
  export const browserNotSupportedErrorToast: ToastProps = {
13
13
  message:
@@ -420,10 +420,16 @@ function getBlob(targetElementID: string, options: GetBlobOptions): BlobObject {
420
420
  return { blob, width, height };
421
421
  }
422
422
 
423
+ function exportAsMolfile(molText: string, fileName: string) {
424
+ const blob = new Blob([molText], { type: 'text/plain' });
425
+ saveAs({ blob, name: fileName, extension: '.mol' });
426
+ }
427
+
423
428
  export {
424
429
  copyPNGToClipboard,
425
430
  exportAsJsonBlob,
426
431
  exportAsMatrix,
432
+ exportAsMolfile,
427
433
  exportAsPng,
428
434
  exportAsSVG,
429
435
  getBlob,
@@ -1,8 +1,10 @@
1
- import type { WorkspacePreferences } from '@zakodium/nmrium-core';
1
+ import type { TextStyle, WorkspacePreferences } from '@zakodium/nmrium-core';
2
2
  import { Filters1D } from 'nmr-processing';
3
3
 
4
4
  import { color2D } from '../../data/data2d/Spectrum2D/get2DColor.js';
5
5
 
6
+ const defaultTextStyle: TextStyle = {};
7
+
6
8
  export const workspaceDefaultProperties: Required<WorkspacePreferences> = {
7
9
  display: {
8
10
  general: {
@@ -267,6 +269,7 @@ export const workspaceDefaultProperties: Required<WorkspacePreferences> = {
267
269
  format: 'D',
268
270
  couplingFormat: '0.0',
269
271
  deltaFormat: '0.0',
272
+ textStyle: { ...defaultTextStyle },
270
273
  },
271
274
  '1H': {
272
275
  signalKind: 'signal',
@@ -274,6 +277,7 @@ export const workspaceDefaultProperties: Required<WorkspacePreferences> = {
274
277
  format: 'IMJA',
275
278
  couplingFormat: '0.00',
276
279
  deltaFormat: '0.00',
280
+ textStyle: { ...defaultTextStyle },
277
281
  },
278
282
  },
279
283
  defaultMoleculeSettings: {
@@ -28,7 +28,7 @@ import {
28
28
  } from './data1d/Spectrum1D/index.js';
29
29
  import { initiateDatum2D } from './data2d/Spectrum2D/index.js';
30
30
  import { adjustAlpha } from './utilities/generateColor.js';
31
- import { isProton } from './utilities/isProton.ts';
31
+ import { isProton } from './utilities/isProton.js';
32
32
 
33
33
  export type Experiment = 'proton' | 'carbon' | 'cosy' | 'hsqc' | 'hmbc';
34
34
  type SpectraPredictionOptions = Record<Experiment, boolean>;
@@ -17,7 +17,7 @@ import * as OCL from 'openchemlib';
17
17
  import { assert } from 'react-science/ui';
18
18
 
19
19
  import type { State } from '../component/reducer/Reducer.js';
20
- import { saveAs } from '../component/utility/save_as.ts';
20
+ import { saveAs } from '../component/utility/save_as.js';
21
21
 
22
22
  import { initiateDatum1D, isSpectrum1D } from './data1d/Spectrum1D/index.js';
23
23
  import { initiateDatum2D } from './data2d/Spectrum2D/index.js';
@@ -69,7 +69,7 @@ export type DataExportOptions =
69
69
 
70
70
  type ExportTarget = 'nmrium' | 'onChange';
71
71
 
72
- export interface ExportOptions {
72
+ interface ExportOptions {
73
73
  dataType?: DataExportOptions;
74
74
  view?: boolean;
75
75
  settings?: boolean;
@@ -3,7 +3,7 @@ import type { Spectrum1D } from '@zakodium/nmrium-core';
3
3
  import type { OptionsXYAutoRangesPicking } from 'nmr-processing';
4
4
  import { xyAutoRangesPicking } from 'nmr-processing';
5
5
 
6
- import { isProton } from '../../../utilities/isProton.ts';
6
+ import { isProton } from '../../../utilities/isProton.js';
7
7
 
8
8
  const defaultPeakPickingOptions: Omit<
9
9
  OptionsXYAutoRangesPicking['peakPicking'],
@@ -1,7 +1,7 @@
1
1
  import type { Spectrum1D } from '@zakodium/nmrium-core';
2
2
  import { mapRanges, updateRangesRelativeValues } from 'nmr-processing';
3
3
 
4
- import { isProton } from '../../../utilities/isProton.ts';
4
+ import { isProton } from '../../../utilities/isProton.js';
5
5
  import type { SumParams } from '../SumManager.js';
6
6
  import { initSumOptions } from '../SumManager.js';
7
7
 
@@ -33,6 +33,26 @@ export interface SpectraAnalysisData {
33
33
  values: Array<Record<string, AnalyzeSpectraCalculateResult>>;
34
34
  }
35
35
 
36
+ export function cutAnalysis(
37
+ spectraAnalysis: PanelsPreferences['multipleSpectraAnalysis'],
38
+ nucleus: string,
39
+ x: number,
40
+ ) {
41
+ const cutColumns: Record<string, SpectraAnalysisColumn> = {};
42
+
43
+ const analysisOptions = spectraAnalysis[nucleus].analysisOptions;
44
+ for (const [columnKey, column] of Object.entries(analysisOptions.columns)) {
45
+ const { to, from } = column;
46
+ if (x > from && x < to) {
47
+ cutColumns[columnKey] = { ...column, from: x, to };
48
+ const newKey = generateChar(analysisOptions.columnIndex).toUpperCase();
49
+ cutColumns[newKey] = { ...column, from, to: x };
50
+ analysisOptions.columnIndex++;
51
+ }
52
+ }
53
+ analysisOptions.columns = { ...analysisOptions.columns, ...cutColumns };
54
+ }
55
+
36
56
  function addColumnKey(
37
57
  spectraAnalysis: PanelsPreferences['multipleSpectraAnalysis'],
38
58
  nucleus: string,
@@ -66,16 +66,26 @@ function getDefaultContoursLevel(spectrum: Spectrum2D, quadrant = 'rr') {
66
66
  const minAllowed = 3 * xMaxAbsoluteValue([positive, negative]);
67
67
 
68
68
  const minLevel = Math.max(minAbsPeakBase, minAllowed);
69
- const minContourLevel = calculateValueOfLevel(minLevel, max, true);
69
+ const minContourLevel = Math.min(
70
+ calculateValueOfLevel(minLevel, max, true),
71
+ DEFAULT_CONTOURS_OPTIONS.positive.contourLevels[1] -
72
+ DEFAULT_CONTOURS_OPTIONS.positive.numberOfLayers,
73
+ );
70
74
 
71
75
  const defaultLevel: ContourOptions = {
72
76
  negative: {
73
- numberOfLayers: 10,
74
- contourLevels: [minContourLevel, 100],
77
+ numberOfLayers: DEFAULT_CONTOURS_OPTIONS.negative.numberOfLayers,
78
+ contourLevels: [
79
+ minContourLevel,
80
+ DEFAULT_CONTOURS_OPTIONS.negative.contourLevels[1],
81
+ ],
75
82
  },
76
83
  positive: {
77
- numberOfLayers: 10,
78
- contourLevels: [minContourLevel, 100],
84
+ numberOfLayers: DEFAULT_CONTOURS_OPTIONS.positive.numberOfLayers,
85
+ contourLevels: [
86
+ minContourLevel,
87
+ DEFAULT_CONTOURS_OPTIONS.positive.contourLevels[1],
88
+ ],
79
89
  },
80
90
  };
81
91
  return defaultLevel;
@@ -154,7 +164,7 @@ function prepareCheckLevel(options: ContourOptions) {
154
164
  }
155
165
 
156
166
  function getRange(min: number, max: number, length: number, exp?: number) {
157
- if (exp !== undefined) {
167
+ if (exp !== undefined && length > 0) {
158
168
  const factors = new Float64Array(length + 1);
159
169
 
160
170
  for (let i = 1; i < length + 1; i++) {
@@ -35,11 +35,16 @@ export function fromJSON(
35
35
  return molecules;
36
36
  }
37
37
 
38
+ interface AddMolfileOptions {
39
+ id?: string;
40
+ label?: string;
41
+ }
38
42
  export function addMolfile(
39
43
  molecules: StateMoleculeExtended[],
40
44
  molfile: string,
41
- id?: string,
45
+ options: AddMolfileOptions,
42
46
  ) {
47
+ const { id, label } = options;
43
48
  const reservedNumbers = extractLabelsNumbers(molecules);
44
49
 
45
50
  // try to parse molfile
@@ -48,7 +53,7 @@ export function addMolfile(
48
53
  molecules.push(
49
54
  initMolecule({
50
55
  molfile: molecule.toMolfileV3(),
51
- label: `P${getLabelNumber(reservedNumbers)}`,
56
+ label: label ?? `P${getLabelNumber(reservedNumbers)}`,
52
57
  id,
53
58
  }),
54
59
  );
@@ -1,8 +1,8 @@
1
1
  import type { Range, Signal1D, Signal2D, Zone } from '@zakodium/nmr-types';
2
2
  import type { Spectrum1D, Spectrum2D, Spectrum } from '@zakodium/nmrium-core';
3
3
 
4
- import { isSpectrum1D } from '../data1d/Spectrum1D/index.ts';
5
- import { isSpectrum2D } from '../data2d/Spectrum2D/index.ts';
4
+ import { isSpectrum1D } from '../data1d/Spectrum1D/index.js';
5
+ import { isSpectrum2D } from '../data2d/Spectrum2D/index.js';
6
6
 
7
7
  function findSpectrum(
8
8
  spectraData: Spectrum[],
@@ -1,9 +1,9 @@
1
- import { Dialog } from '@blueprintjs/core';
2
1
  import styled from '@emotion/styled';
3
2
  import type { FormEvent } from 'react';
4
3
  import { useCallback, useEffect, useMemo, useRef } from 'react';
5
4
 
6
5
  import Button from '../../component/elements/Button.js';
6
+ import { StandardDialog } from '../../component/elements/StandardDialog.tsx';
7
7
  import { StyledDialogBody } from '../../component/elements/StyledDialogBody.js';
8
8
 
9
9
  import type { ClipboardMode } from './types.js';
@@ -126,11 +126,11 @@ export function ClipboardFallbackModal(props: ClipboardFallbackProps) {
126
126
  };
127
127
 
128
128
  return (
129
- <Dialog isOpen onClose={props.onDismiss} title={titles[props.mode]}>
129
+ <StandardDialog isOpen onClose={props.onDismiss} title={titles[props.mode]}>
130
130
  <StyledDialogBody padding="0px">
131
131
  <ClipboardFallback {...props} />
132
132
  </StyledDialogBody>
133
- </Dialog>
133
+ </StandardDialog>
134
134
  );
135
135
  }
136
136
 
@@ -1 +1 @@
1
- export default { version: 'v1.10.1' };
1
+ export default { version: 'v1.12.0' };
@@ -1 +0,0 @@
1
- {"version":3,"file":"GeneralSettings.d.ts","sourceRoot":"","sources":["../../../../src/component/modal/setting/GeneralSettings.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAyB1D,eAAO,MAAM,OAAO;;;yGAOnB,CAAC;AAiBF,eAAO,MAAM,iBAAiB,EAAE,UAM/B,CAAC;AAkCF,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,iBAAS,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,2CAuB7D;AAmWD,eAAe,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"GeneralSettings.js","sourceRoot":"","sources":["../../../../src/component/modal/setting/GeneralSettings.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,M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