nmrium 1.11.0 → 2.0.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 (701) hide show
  1. package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
  2. package/lib/component/1d/FloatPublicationString.js +170 -109
  3. package/lib/component/1d/FloatPublicationString.js.map +1 -1
  4. package/lib/component/1d/FloatingRanges.d.ts.map +1 -1
  5. package/lib/component/1d/FloatingRanges.js +2 -2
  6. package/lib/component/1d/FloatingRanges.js.map +1 -1
  7. package/lib/component/1d/SVGContent1D.js +1 -1
  8. package/lib/component/1d/SVGContent1D.js.map +1 -1
  9. package/lib/component/1d/database/DatabaseSpectrum.d.ts.map +1 -1
  10. package/lib/component/1d/database/DatabaseSpectrum.js +1 -1
  11. package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
  12. package/lib/component/1d/inset/DraggableInset.d.ts.map +1 -1
  13. package/lib/component/1d/inset/DraggableInset.js +3 -3
  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 +4 -4
  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 +5 -19
  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/Contours.d.ts.map +1 -1
  46. package/lib/component/2d/ft/Contours.js +10 -12
  47. package/lib/component/2d/ft/Contours.js.map +1 -1
  48. package/lib/component/2d/ft/FTContainer.d.ts +1 -1
  49. package/lib/component/2d/tools/XYLabelPointer.d.ts +1 -1
  50. package/lib/component/2d/useTracesSpectra.js +1 -1
  51. package/lib/component/2d/zones/SignalsGuideLines.js +5 -5
  52. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
  53. package/lib/component/2d/zones/Zone.js +1 -1
  54. package/lib/component/2d/zones/Zone.js.map +1 -1
  55. package/lib/component/EventsTrackers/BrushTracker.d.ts +1 -1
  56. package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
  57. package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
  58. package/lib/component/EventsTrackers/KeysListenerTracker.js +6 -0
  59. package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
  60. package/lib/component/context/LoggerContext.d.ts +1 -0
  61. package/lib/component/context/LoggerContext.d.ts.map +1 -1
  62. package/lib/component/context/LoggerContext.js.map +1 -1
  63. package/lib/component/context/PreferencesContext.d.ts +1 -1
  64. package/lib/component/context/PreferencesContext.d.ts.map +1 -1
  65. package/lib/component/elements/ActionsButtonsPopover.d.ts +9 -5
  66. package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
  67. package/lib/component/elements/ActionsButtonsPopover.js +42 -10
  68. package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
  69. package/lib/component/elements/Alert.d.ts.map +1 -1
  70. package/lib/component/elements/Alert.js +3 -2
  71. package/lib/component/elements/Alert.js.map +1 -1
  72. package/lib/component/elements/DraggableDialog.d.ts +1 -1
  73. package/lib/component/elements/DraggableDialog.d.ts.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/print/PrintContent.d.ts.map +1 -1
  87. package/lib/component/elements/print/PrintContent.js +3 -2
  88. package/lib/component/elements/print/PrintContent.js.map +1 -1
  89. package/lib/component/header/Header.js +1 -1
  90. package/lib/component/header/Header.js.map +1 -1
  91. package/lib/component/hooks/reduce2DSpectrum.d.ts +4 -0
  92. package/lib/component/hooks/reduce2DSpectrum.d.ts.map +1 -0
  93. package/lib/component/hooks/reduce2DSpectrum.js +60 -0
  94. package/lib/component/hooks/reduce2DSpectrum.js.map +1 -0
  95. package/lib/component/hooks/use2DReducer.d.ts +14 -0
  96. package/lib/component/hooks/use2DReducer.d.ts.map +1 -0
  97. package/lib/component/hooks/use2DReducer.js +30 -0
  98. package/lib/component/hooks/use2DReducer.js.map +1 -0
  99. package/lib/component/hooks/useActiveNucleusTab.js +1 -1
  100. package/lib/component/hooks/useActiveNucleusTab.js.map +1 -1
  101. package/lib/component/hooks/useActiveSpectrumRangesViewState.js +1 -1
  102. package/lib/component/hooks/useCreateNmriumZip.d.ts +3 -0
  103. package/lib/component/hooks/useCreateNmriumZip.d.ts.map +1 -0
  104. package/lib/component/hooks/useCreateNmriumZip.js +28 -0
  105. package/lib/component/hooks/useCreateNmriumZip.js.map +1 -0
  106. package/lib/component/hooks/useDatumWithSpectraStatistics.js +1 -1
  107. package/lib/component/hooks/useDatumWithSpectraStatistics.js.map +1 -1
  108. package/lib/component/hooks/useExport.d.ts +8 -5
  109. package/lib/component/hooks/useExport.d.ts.map +1 -1
  110. package/lib/component/hooks/useExport.js +5 -22
  111. package/lib/component/hooks/useExport.js.map +1 -1
  112. package/lib/component/hooks/useSVGUnitConverter.d.ts.map +1 -1
  113. package/lib/component/hooks/useSVGUnitConverter.js +12 -9
  114. package/lib/component/hooks/useSVGUnitConverter.js.map +1 -1
  115. package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
  116. package/lib/component/hooks/useSaveSettings.js +3 -2
  117. package/lib/component/hooks/useSaveSettings.js.map +1 -1
  118. package/lib/component/hooks/useSetActiveSpectrumAction.js +1 -1
  119. package/lib/component/hooks/useSetActiveSpectrumAction.js.map +1 -1
  120. package/lib/component/hooks/useTextMetrics.d.ts +16 -1
  121. package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
  122. package/lib/component/hooks/useTextMetrics.js +43 -15
  123. package/lib/component/hooks/useTextMetrics.js.map +1 -1
  124. package/lib/component/hooks/useToggleSpectraVisibility.js +1 -1
  125. package/lib/component/hooks/use_acs_settings.d.ts +4 -0
  126. package/lib/component/hooks/use_acs_settings.d.ts.map +1 -0
  127. package/lib/component/hooks/use_acs_settings.js +21 -0
  128. package/lib/component/hooks/use_acs_settings.js.map +1 -0
  129. package/lib/component/hooks/use_publication_strings.d.ts +9 -0
  130. package/lib/component/hooks/use_publication_strings.d.ts.map +1 -0
  131. package/lib/component/hooks/use_publication_strings.js +42 -0
  132. package/lib/component/hooks/use_publication_strings.js.map +1 -0
  133. package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
  134. package/lib/component/loader/useLoadFiles.js +4 -5
  135. package/lib/component/loader/useLoadFiles.js.map +1 -1
  136. package/lib/component/main/InnerNMRium.d.ts.map +1 -1
  137. package/lib/component/main/InnerNMRium.js +2 -2
  138. package/lib/component/main/InnerNMRium.js.map +1 -1
  139. package/lib/component/main/NMRium.d.ts +48 -3
  140. package/lib/component/main/NMRium.d.ts.map +1 -1
  141. package/lib/component/main/NMRium.js.map +1 -1
  142. package/lib/component/main/NMRiumRefAPI.d.ts +2 -0
  143. package/lib/component/main/NMRiumRefAPI.d.ts.map +1 -1
  144. package/lib/component/main/NMRiumRefAPI.js +4 -1
  145. package/lib/component/main/NMRiumRefAPI.js.map +1 -1
  146. package/lib/component/main/NMRiumStateProvider.d.ts +5 -2
  147. package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
  148. package/lib/component/main/NMRiumStateProvider.js +36 -30
  149. package/lib/component/main/NMRiumStateProvider.js.map +1 -1
  150. package/lib/component/main/NMRiumViewer.js +1 -1
  151. package/lib/component/main/NMRiumViewer.js.map +1 -1
  152. package/lib/component/main/NMRiumViewerWrapper.d.ts.map +1 -1
  153. package/lib/component/main/NMRiumViewerWrapper.js +3 -5
  154. package/lib/component/main/NMRiumViewerWrapper.js.map +1 -1
  155. package/lib/component/modal/AboutPredictionModal.js +2 -2
  156. package/lib/component/modal/AboutPredictionModal.js.map +1 -1
  157. package/lib/component/modal/AboutSpectrumSimulationModal.js +2 -2
  158. package/lib/component/modal/AboutSpectrumSimulationModal.js.map +1 -1
  159. package/lib/component/modal/EditPeakShapeModal.d.ts.map +1 -1
  160. package/lib/component/modal/EditPeakShapeModal.js +4 -3
  161. package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
  162. package/lib/component/modal/ExportAsJcampModal.d.ts.map +1 -1
  163. package/lib/component/modal/ExportAsJcampModal.js +3 -2
  164. package/lib/component/modal/ExportAsJcampModal.js.map +1 -1
  165. package/lib/component/modal/ImportPublicationStringModal.d.ts.map +1 -1
  166. package/lib/component/modal/ImportPublicationStringModal.js +3 -2
  167. package/lib/component/modal/ImportPublicationStringModal.js.map +1 -1
  168. package/lib/component/modal/LoadJCAMPModal.d.ts.map +1 -1
  169. package/lib/component/modal/LoadJCAMPModal.js +7 -6
  170. package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
  171. package/lib/component/modal/LogsHistoryModal.d.ts.map +1 -1
  172. package/lib/component/modal/LogsHistoryModal.js +3 -2
  173. package/lib/component/modal/LogsHistoryModal.js.map +1 -1
  174. package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.d.ts.map +1 -1
  175. package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js +4 -3
  176. package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js.map +1 -1
  177. package/lib/component/modal/MoleculeStructureEditorModal.d.ts.map +1 -1
  178. package/lib/component/modal/MoleculeStructureEditorModal.js +4 -3
  179. package/lib/component/modal/MoleculeStructureEditorModal.js.map +1 -1
  180. package/lib/component/modal/MultipletAnalysisModal.d.ts.map +1 -1
  181. package/lib/component/modal/MultipletAnalysisModal.js +2 -2
  182. package/lib/component/modal/MultipletAnalysisModal.js.map +1 -1
  183. package/lib/component/modal/PredictSpectraModal.d.ts.map +1 -1
  184. package/lib/component/modal/PredictSpectraModal.js +3 -2
  185. package/lib/component/modal/PredictSpectraModal.js.map +1 -1
  186. package/lib/component/modal/PublicationStringModal.d.ts +10 -1
  187. package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
  188. package/lib/component/modal/PublicationStringModal.js +89 -77
  189. package/lib/component/modal/PublicationStringModal.js.map +1 -1
  190. package/lib/component/modal/SaveAsModal.d.ts.map +1 -1
  191. package/lib/component/modal/SaveAsModal.js +3 -2
  192. package/lib/component/modal/SaveAsModal.js.map +1 -1
  193. package/lib/component/modal/aboutUs/AboutUsModal.js +2 -2
  194. package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
  195. package/lib/component/modal/changeSum/ChangeSumModal.d.ts.map +1 -1
  196. package/lib/component/modal/changeSum/ChangeSumModal.js +2 -2
  197. package/lib/component/modal/changeSum/ChangeSumModal.js.map +1 -1
  198. package/lib/component/modal/editRange/EditRangeModal.js +1 -1
  199. package/lib/component/modal/editRange/forms/components/NewSignalTab.js +1 -1
  200. package/lib/component/modal/metaImportation/MetaImportationModal.d.ts.map +1 -1
  201. package/lib/component/modal/metaImportation/MetaImportationModal.js +3 -2
  202. package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
  203. package/lib/component/modal/setting/{GeneralSettings.d.ts → general_settings.d.ts} +1 -1
  204. package/lib/component/modal/setting/general_settings.d.ts.map +1 -0
  205. package/lib/component/modal/setting/{GeneralSettings.js → general_settings.js} +12 -6
  206. package/lib/component/modal/setting/general_settings.js.map +1 -0
  207. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +1 -1
  208. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js.map +1 -1
  209. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +1 -1
  210. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +1 -1
  211. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js +1 -1
  212. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js.map +1 -1
  213. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +1 -1
  214. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js.map +1 -1
  215. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +1 -1
  216. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +1 -1
  217. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js +1 -1
  218. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js.map +1 -1
  219. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +1 -1
  220. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +1 -1
  221. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js +1 -1
  222. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js.map +1 -1
  223. package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts +10 -0
  224. package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts.map +1 -0
  225. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js +82 -0
  226. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js.map +1 -0
  227. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +1356 -0
  228. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -0
  229. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js +50 -0
  230. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map +1 -0
  231. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +1356 -0
  232. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -0
  233. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js +22 -0
  234. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js.map +1 -0
  235. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +1354 -0
  236. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -0
  237. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js +61 -0
  238. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map +1 -0
  239. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts +1354 -0
  240. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts.map +1 -0
  241. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js +110 -0
  242. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js.map +1 -0
  243. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +466 -0
  244. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts.map +1 -0
  245. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.js +59 -0
  246. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.js.map +1 -0
  247. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +1354 -0
  248. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -0
  249. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js +32 -0
  250. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js.map +1 -0
  251. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +1354 -0
  252. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -0
  253. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js +80 -0
  254. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js.map +1 -0
  255. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +1354 -0
  256. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -0
  257. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +55 -0
  258. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -0
  259. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +151 -0
  260. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -0
  261. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.js +11 -0
  262. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.js.map +1 -0
  263. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +1354 -0
  264. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -0
  265. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +58 -0
  266. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js.map +1 -0
  267. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +1354 -0
  268. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -0
  269. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js +34 -0
  270. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js.map +1 -0
  271. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +1354 -0
  272. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -0
  273. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.js +26 -0
  274. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.js.map +1 -0
  275. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +1354 -0
  276. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -0
  277. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js +76 -0
  278. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js.map +1 -0
  279. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +1354 -0
  280. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -0
  281. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js +40 -0
  282. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js.map +1 -0
  283. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +1354 -0
  284. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -0
  285. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js +142 -0
  286. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js.map +1 -0
  287. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +1354 -0
  288. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -0
  289. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +112 -0
  290. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js.map +1 -0
  291. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +1354 -0
  292. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -0
  293. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js +38 -0
  294. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js.map +1 -0
  295. package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts +68 -0
  296. package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts.map +1 -0
  297. package/lib/component/modal/setting/tanstack_general_settings/ui/table.js +133 -0
  298. package/lib/component/modal/setting/tanstack_general_settings/ui/table.js.map +1 -0
  299. package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.d.ts +10 -0
  300. package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.d.ts.map +1 -0
  301. package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js +31 -0
  302. package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js.map +1 -0
  303. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +71 -0
  304. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts.map +1 -0
  305. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.js +67 -0
  306. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.js.map +1 -0
  307. package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.d.ts +10 -0
  308. package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.d.ts.map +1 -0
  309. package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.js +40 -0
  310. package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.js.map +1 -0
  311. package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.d.ts +11 -0
  312. package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.d.ts.map +1 -0
  313. package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.js +20 -0
  314. package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.js.map +1 -0
  315. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +166 -0
  316. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -0
  317. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +58 -0
  318. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -0
  319. package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.d.ts +32 -0
  320. package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.d.ts.map +1 -0
  321. package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.js +11 -0
  322. package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.js.map +1 -0
  323. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +42 -0
  324. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts.map +1 -0
  325. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js +34 -0
  326. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js.map +1 -0
  327. package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts +37 -0
  328. package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts.map +1 -0
  329. package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.js +26 -0
  330. package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.js.map +1 -0
  331. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts +17 -0
  332. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts.map +1 -0
  333. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js +19 -0
  334. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js.map +1 -0
  335. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts +187 -0
  336. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts.map +1 -0
  337. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js +77 -0
  338. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js.map +1 -0
  339. package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.d.ts +54 -0
  340. package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.d.ts.map +1 -0
  341. package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.js +22 -0
  342. package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.js.map +1 -0
  343. package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.d.ts +55 -0
  344. package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.d.ts.map +1 -0
  345. package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.js +18 -0
  346. package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.js.map +1 -0
  347. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts +32 -0
  348. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts.map +1 -0
  349. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js +34 -0
  350. package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js.map +1 -0
  351. package/lib/component/modal/setting/tanstack_general_settings/validation/utils.d.ts +13 -0
  352. package/lib/component/modal/setting/tanstack_general_settings/validation/utils.d.ts.map +1 -0
  353. package/lib/component/modal/setting/tanstack_general_settings/validation/utils.js +20 -0
  354. package/lib/component/modal/setting/tanstack_general_settings/validation/utils.js.map +1 -0
  355. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +558 -0
  356. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -0
  357. package/lib/component/modal/setting/tanstack_general_settings/validation.js +40 -0
  358. package/lib/component/modal/setting/tanstack_general_settings/validation.js.map +1 -0
  359. package/lib/component/panels/MoleculesPanel/MoleculeOptionsPanel.js +2 -2
  360. package/lib/component/panels/MoleculesPanel/MoleculeOptionsPanel.js.map +1 -1
  361. package/lib/component/panels/MoleculesPanel/MoleculePanel.js +2 -2
  362. package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
  363. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
  364. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +7 -7
  365. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
  366. package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts +1 -1
  367. package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts.map +1 -1
  368. package/lib/component/panels/MoleculesPanel/MoleculeStructure.js +31 -4
  369. package/lib/component/panels/MoleculesPanel/MoleculeStructure.js.map +1 -1
  370. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +17 -17
  371. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
  372. package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js +1 -1
  373. package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js.map +1 -1
  374. package/lib/component/panels/MoleculesPanel/utilities/extractFromAtom.d.ts +1 -1
  375. package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js +1 -1
  376. package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.d.ts +1 -1
  377. package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts +1 -1
  378. package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts.map +1 -1
  379. package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js +1 -1
  380. package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js.map +1 -1
  381. package/lib/component/panels/MoleculesPanel/utilities/getUniqueDiaIDs.d.ts +1 -1
  382. package/lib/component/panels/Panels.d.ts.map +1 -1
  383. package/lib/component/panels/Panels.js +12 -25
  384. package/lib/component/panels/Panels.js.map +1 -1
  385. package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
  386. package/lib/component/panels/RangesPanel/RangesHeader.js +23 -15
  387. package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
  388. package/lib/component/panels/RangesPanel/RangesTableRow.js +1 -1
  389. package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
  390. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts +1 -1
  391. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -1
  392. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js +2 -2
  393. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -1
  394. package/lib/component/panels/SpectraPanel/SpectraTable.js +1 -1
  395. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts.map +1 -1
  396. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js +3 -2
  397. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js.map +1 -1
  398. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts +2 -1
  399. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
  400. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +8 -3
  401. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
  402. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js +1 -1
  403. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
  404. package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.d.ts.map +1 -1
  405. package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +3 -2
  406. package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js.map +1 -1
  407. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.d.ts.map +1 -1
  408. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +3 -2
  409. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
  410. package/lib/component/panels/databasePanel/DatabaseInfo.js +1 -1
  411. package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
  412. package/lib/component/panels/databasePanel/DatabasePanel.js +3 -3
  413. package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
  414. package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js +2 -2
  415. package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js.map +1 -1
  416. package/lib/component/panels/databasePanel/DatabaseTable.js +1 -1
  417. package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
  418. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
  419. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
  420. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +27 -34
  421. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
  422. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +1 -1
  423. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
  424. package/lib/component/panels/header/DefaultPanelHeader.d.ts.map +1 -1
  425. package/lib/component/panels/header/DefaultPanelHeader.js +2 -1
  426. package/lib/component/panels/header/DefaultPanelHeader.js.map +1 -1
  427. package/lib/component/panels/hooks/useMoleculeAnnotationCore.js +1 -1
  428. package/lib/component/panels/hooks/useMoleculeAnnotationCore.js.map +1 -1
  429. package/lib/component/panels/informationPanel/InformationEditionModal.d.ts.map +1 -1
  430. package/lib/component/panels/informationPanel/InformationEditionModal.js +3 -2
  431. package/lib/component/panels/informationPanel/InformationEditionModal.js.map +1 -1
  432. package/lib/component/panels/informationPanel/InformationPanel.d.ts.map +1 -1
  433. package/lib/component/panels/informationPanel/InformationPanel.js +38 -3
  434. package/lib/component/panels/informationPanel/InformationPanel.js.map +1 -1
  435. package/lib/component/reducer/Reducer.d.ts.map +1 -1
  436. package/lib/component/reducer/Reducer.js +1 -3
  437. package/lib/component/reducer/Reducer.js.map +1 -1
  438. package/lib/component/reducer/actions/AssignmentsActions.js +3 -3
  439. package/lib/component/reducer/actions/CorrelationsActions.js +2 -2
  440. package/lib/component/reducer/actions/DatabaseActions.js +1 -1
  441. package/lib/component/reducer/actions/DomainActions.js +1 -1
  442. package/lib/component/reducer/actions/FiltersActions.d.ts +2 -4
  443. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  444. package/lib/component/reducer/actions/FiltersActions.js +14 -5
  445. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  446. package/lib/component/reducer/actions/InsetActions.js +2 -2
  447. package/lib/component/reducer/actions/LoadAction.d.ts +1 -4
  448. package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
  449. package/lib/component/reducer/actions/LoadAction.js +12 -21
  450. package/lib/component/reducer/actions/LoadAction.js.map +1 -1
  451. package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
  452. package/lib/component/reducer/actions/MoleculeActions.js +6 -3
  453. package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
  454. package/lib/component/reducer/actions/PreferencesActions.js +1 -1
  455. package/lib/component/reducer/actions/RangesActions.d.ts +1 -1
  456. package/lib/component/reducer/actions/RangesActions.js +1 -1
  457. package/lib/component/reducer/actions/SpectraActions.d.ts +5 -1
  458. package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
  459. package/lib/component/reducer/actions/SpectraActions.js +5 -3
  460. package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
  461. package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
  462. package/lib/component/reducer/actions/ToolsActions.js +3 -3
  463. package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
  464. package/lib/component/reducer/actions/ZonesActions.d.ts +1 -1
  465. package/lib/component/reducer/actions/ZonesActions.js +2 -2
  466. package/lib/component/reducer/helper/get2DRange.d.ts +1 -1
  467. package/lib/component/reducer/preferences/actions/applyGeneralPreferences.d.ts.map +1 -1
  468. package/lib/component/reducer/preferences/actions/applyGeneralPreferences.js.map +1 -1
  469. package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.d.ts +1 -1
  470. package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.js +1 -1
  471. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -1
  472. package/lib/component/reducer/preferences/preferencesReducer.d.ts +3 -3
  473. package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
  474. package/lib/component/reducer/preferences/preferencesReducer.js +4 -4
  475. package/lib/component/toolbar/ToolBar.d.ts.map +1 -1
  476. package/lib/component/toolbar/ToolBar.js +5 -1
  477. package/lib/component/toolbar/ToolBar.js.map +1 -1
  478. package/lib/component/utility/export.js +1 -1
  479. package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
  480. package/lib/component/workspaces/workspaceDefaultProperties.js +12 -0
  481. package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
  482. package/lib/data/PredictionManager.d.ts.map +1 -1
  483. package/lib/data/PredictionManager.js +4 -1
  484. package/lib/data/PredictionManager.js.map +1 -1
  485. package/lib/data/SpectraManager.d.ts +1 -1
  486. package/lib/data/SpectraManager.d.ts.map +1 -1
  487. package/lib/data/SpectraManager.js +1 -1
  488. package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +1 -1
  489. package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js +1 -1
  490. package/lib/data/data2d/Spectrum2D/contours.d.ts +7 -6
  491. package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
  492. package/lib/data/data2d/Spectrum2D/contours.js +22 -6
  493. package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
  494. package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
  495. package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +1 -10
  496. package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
  497. package/lib/data/molecules/Molecule.d.ts +5 -1
  498. package/lib/data/molecules/Molecule.d.ts.map +1 -1
  499. package/lib/data/molecules/Molecule.js +9 -7
  500. package/lib/data/molecules/Molecule.js.map +1 -1
  501. package/lib/data/molecules/MoleculeManager.d.ts +0 -6
  502. package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
  503. package/lib/data/molecules/MoleculeManager.js +25 -25
  504. package/lib/data/molecules/MoleculeManager.js.map +1 -1
  505. package/lib/data/utilities/FindUtilities.js +2 -2
  506. package/lib/utils/clipboard/clipboardComponents.js +2 -2
  507. package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
  508. package/lib/versionInfo.d.ts.map +1 -1
  509. package/lib/versionInfo.js +1 -1
  510. package/lib/versionInfo.js.map +1 -1
  511. package/package.json +44 -43
  512. package/src/component/1d/FloatPublicationString.tsx +275 -176
  513. package/src/component/1d/FloatingRanges.tsx +1 -2
  514. package/src/component/1d/SVGContent1D.tsx +1 -1
  515. package/src/component/1d/database/DatabaseSpectrum.tsx +3 -1
  516. package/src/component/1d/inset/DraggableInset.tsx +2 -3
  517. package/src/component/1d/integral/IntegralResizable.tsx +1 -1
  518. package/src/component/1d/matrix/Boxplot.tsx +1 -1
  519. package/src/component/1d/matrix/Stocsy.tsx +1 -1
  520. package/src/component/1d/multiAnalysis/AnalysisRange.tsx +1 -1
  521. package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +2 -2
  522. package/src/component/1d/peaks/PeakAnnotations.tsx +2 -2
  523. package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +2 -2
  524. package/src/component/1d/peaks/Peaks.tsx +2 -2
  525. package/src/component/1d/ranges/Range.tsx +5 -5
  526. package/src/component/1d/ranges/Ranges.tsx +2 -2
  527. package/src/component/1d/ranges/RangesIntegrals.tsx +1 -1
  528. package/src/component/1d/ranges/useAssignmentsPopoverActionsButtons.tsx +5 -5
  529. package/src/component/1d/tool/BaseLineZones.tsx +1 -1
  530. package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +3 -4
  531. package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +11 -24
  532. package/src/component/2d/FooterBanner.tsx +1 -1
  533. package/src/component/2d/SVGContent2D.tsx +1 -1
  534. package/src/component/2d/YAxis.tsx +3 -3
  535. package/src/component/2d/ft/Contours.tsx +14 -27
  536. package/src/component/2d/ft/FTContainer.tsx +1 -1
  537. package/src/component/2d/tools/XYLabelPointer.tsx +1 -1
  538. package/src/component/2d/useTracesSpectra.ts +1 -1
  539. package/src/component/2d/zones/SignalsGuideLines.tsx +5 -5
  540. package/src/component/2d/zones/Zone.tsx +1 -1
  541. package/src/component/EventsTrackers/BrushTracker.tsx +1 -1
  542. package/src/component/EventsTrackers/KeysListenerTracker.tsx +6 -0
  543. package/src/component/context/LoggerContext.tsx +9 -0
  544. package/src/component/context/PreferencesContext.tsx +1 -1
  545. package/src/component/elements/ActionsButtonsPopover.tsx +81 -25
  546. package/src/component/elements/Alert.tsx +4 -2
  547. package/src/component/elements/DraggableDialog.tsx +2 -2
  548. package/src/component/elements/StandardDialog.tsx +11 -0
  549. package/src/component/elements/ToolbarPopoverItem.tsx +16 -3
  550. package/src/component/elements/export/ExportManager.tsx +1 -1
  551. package/src/component/elements/export/ExportOptionsModal.tsx +3 -3
  552. package/src/component/elements/print/PrintContent.tsx +4 -9
  553. package/src/component/header/Header.tsx +1 -1
  554. package/src/component/hooks/reduce2DSpectrum.ts +98 -0
  555. package/src/component/hooks/use2DReducer.tsx +56 -0
  556. package/src/component/hooks/useActiveNucleusTab.ts +1 -1
  557. package/src/component/hooks/useActiveSpectrumRangesViewState.ts +1 -1
  558. package/src/component/hooks/useCreateNmriumZip.ts +37 -0
  559. package/src/component/hooks/useDatumWithSpectraStatistics.ts +1 -1
  560. package/src/component/hooks/useExport.tsx +17 -32
  561. package/src/component/hooks/useSVGUnitConverter.ts +13 -9
  562. package/src/component/hooks/useSaveSettings.tsx +4 -3
  563. package/src/component/hooks/useSetActiveSpectrumAction.ts +1 -1
  564. package/src/component/hooks/useTextMetrics.ts +66 -18
  565. package/src/component/hooks/useToggleSpectraVisibility.tsx +1 -1
  566. package/src/component/hooks/use_acs_settings.ts +27 -0
  567. package/src/component/hooks/use_publication_strings.ts +67 -0
  568. package/src/component/loader/useLoadFiles.ts +6 -10
  569. package/src/component/main/InnerNMRium.tsx +4 -2
  570. package/src/component/main/NMRium.tsx +50 -2
  571. package/src/component/main/NMRiumRefAPI.ts +7 -1
  572. package/src/component/main/NMRiumStateProvider.tsx +57 -35
  573. package/src/component/main/NMRiumViewer.tsx +1 -1
  574. package/src/component/main/NMRiumViewerWrapper.tsx +3 -5
  575. package/src/component/modal/AboutPredictionModal.tsx +3 -3
  576. package/src/component/modal/AboutSpectrumSimulationModal.tsx +3 -3
  577. package/src/component/modal/EditPeakShapeModal.tsx +5 -4
  578. package/src/component/modal/ExportAsJcampModal.tsx +4 -3
  579. package/src/component/modal/ImportPublicationStringModal.tsx +4 -3
  580. package/src/component/modal/LoadJCAMPModal.tsx +8 -7
  581. package/src/component/modal/LogsHistoryModal.tsx +4 -3
  582. package/src/component/modal/MoleculeAutoLabelsDatabaseModal.tsx +5 -4
  583. package/src/component/modal/MoleculeStructureEditorModal.tsx +9 -4
  584. package/src/component/modal/MultipletAnalysisModal.tsx +3 -3
  585. package/src/component/modal/PredictSpectraModal.tsx +4 -3
  586. package/src/component/modal/PublicationStringModal.tsx +234 -134
  587. package/src/component/modal/SaveAsModal.tsx +4 -9
  588. package/src/component/modal/aboutUs/AboutUsModal.tsx +3 -3
  589. package/src/component/modal/changeSum/ChangeSumModal.tsx +4 -3
  590. package/src/component/modal/editRange/EditRangeModal.tsx +1 -1
  591. package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +1 -1
  592. package/src/component/modal/metaImportation/MetaImportationModal.tsx +4 -3
  593. package/src/component/modal/setting/{GeneralSettings.tsx → general_settings.tsx} +36 -5
  594. package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +1 -1
  595. package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +1 -1
  596. package/src/component/modal/setting/settings-tabs/ExternalAPIsTabContent.tsx +1 -1
  597. package/src/component/modal/setting/settings-tabs/GeneralTabContent.tsx +1 -1
  598. package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +1 -1
  599. package/src/component/modal/setting/settings-tabs/NucleiTabContent.tsx +1 -1
  600. package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +1 -1
  601. package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +1 -1
  602. package/src/component/modal/setting/tanstack_general_settings/general_settings.tsx +132 -0
  603. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +116 -0
  604. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.tsx +39 -0
  605. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx +105 -0
  606. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.tsx +199 -0
  607. package/src/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.ts +95 -0
  608. package/src/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.tsx +81 -0
  609. package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +210 -0
  610. package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +271 -0
  611. package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.tsx +24 -0
  612. package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +150 -0
  613. package/src/component/modal/setting/tanstack_general_settings/tabs/general_tab.tsx +94 -0
  614. package/src/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.tsx +72 -0
  615. package/src/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.tsx +192 -0
  616. package/src/component/modal/setting/tanstack_general_settings/tabs/panels_tab.tsx +150 -0
  617. package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +352 -0
  618. package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +248 -0
  619. package/src/component/modal/setting/tanstack_general_settings/tabs/tools_tab.tsx +155 -0
  620. package/src/component/modal/setting/tanstack_general_settings/ui/table.tsx +163 -0
  621. package/src/component/modal/setting/tanstack_general_settings/ui/table_section.tsx +52 -0
  622. package/src/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.ts +73 -0
  623. package/src/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.ts +55 -0
  624. package/src/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.ts +23 -0
  625. package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +63 -0
  626. package/src/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.ts +12 -0
  627. package/src/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.ts +40 -0
  628. package/src/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.ts +26 -0
  629. package/src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts +24 -0
  630. package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts +88 -0
  631. package/src/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.ts +29 -0
  632. package/src/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.ts +26 -0
  633. package/src/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.ts +34 -0
  634. package/src/component/modal/setting/tanstack_general_settings/validation/utils.ts +30 -0
  635. package/src/component/modal/setting/tanstack_general_settings/validation.ts +51 -0
  636. package/src/component/panels/MoleculesPanel/MoleculeOptionsPanel.tsx +2 -2
  637. package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +2 -2
  638. package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +14 -8
  639. package/src/component/panels/MoleculesPanel/MoleculeStructure.tsx +40 -5
  640. package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +21 -21
  641. package/src/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.ts +1 -1
  642. package/src/component/panels/MoleculesPanel/utilities/extractFromAtom.ts +1 -1
  643. package/src/component/panels/MoleculesPanel/utilities/getAssignIds.ts +1 -1
  644. package/src/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.ts +1 -1
  645. package/src/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.ts +2 -2
  646. package/src/component/panels/MoleculesPanel/utilities/getUniqueDiaIDs.ts +1 -1
  647. package/src/component/panels/Panels.tsx +4 -40
  648. package/src/component/panels/RangesPanel/RangesHeader.tsx +34 -29
  649. package/src/component/panels/RangesPanel/RangesTableRow.tsx +1 -1
  650. package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +3 -3
  651. package/src/component/panels/SpectraPanel/SpectraTable.tsx +1 -1
  652. package/src/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.tsx +3 -2
  653. package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +12 -4
  654. package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +1 -1
  655. package/src/component/panels/SummaryPanel/SetMolecularFormulaModal.tsx +4 -3
  656. package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +4 -3
  657. package/src/component/panels/databasePanel/DatabaseInfo.tsx +1 -1
  658. package/src/component/panels/databasePanel/DatabasePanel.tsx +7 -5
  659. package/src/component/panels/databasePanel/DatabaseStructureSearchModal.tsx +3 -3
  660. package/src/component/panels/databasePanel/DatabaseTable.tsx +1 -1
  661. package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +35 -50
  662. package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +1 -1
  663. package/src/component/panels/header/DefaultPanelHeader.tsx +2 -1
  664. package/src/component/panels/hooks/useMoleculeAnnotationCore.ts +1 -1
  665. package/src/component/panels/informationPanel/InformationEditionModal.tsx +4 -3
  666. package/src/component/panels/informationPanel/InformationPanel.tsx +83 -2
  667. package/src/component/reducer/Reducer.ts +1 -3
  668. package/src/component/reducer/actions/AssignmentsActions.ts +3 -3
  669. package/src/component/reducer/actions/CorrelationsActions.ts +2 -2
  670. package/src/component/reducer/actions/DatabaseActions.ts +1 -1
  671. package/src/component/reducer/actions/DomainActions.ts +1 -1
  672. package/src/component/reducer/actions/FiltersActions.ts +16 -10
  673. package/src/component/reducer/actions/InsetActions.ts +2 -2
  674. package/src/component/reducer/actions/LoadAction.ts +16 -31
  675. package/src/component/reducer/actions/MoleculeActions.ts +6 -3
  676. package/src/component/reducer/actions/PreferencesActions.ts +1 -1
  677. package/src/component/reducer/actions/RangesActions.ts +3 -3
  678. package/src/component/reducer/actions/SpectraActions.ts +15 -7
  679. package/src/component/reducer/actions/ToolsActions.ts +5 -3
  680. package/src/component/reducer/actions/ZonesActions.ts +3 -3
  681. package/src/component/reducer/helper/get2DRange.ts +1 -1
  682. package/src/component/reducer/preferences/actions/applyGeneralPreferences.ts +1 -2
  683. package/src/component/reducer/preferences/actions/toggleOpenSplitPanel.ts +2 -2
  684. package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +1 -1
  685. package/src/component/reducer/preferences/preferencesReducer.ts +7 -7
  686. package/src/component/toolbar/ToolBar.tsx +6 -1
  687. package/src/component/utility/export.ts +1 -1
  688. package/src/component/workspaces/workspaceDefaultProperties.ts +14 -1
  689. package/src/data/PredictionManager.ts +4 -1
  690. package/src/data/SpectraManager.ts +2 -2
  691. package/src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts +1 -1
  692. package/src/data/data1d/Spectrum1D/ranges/detectRanges.ts +1 -1
  693. package/src/data/data2d/Spectrum2D/contours.ts +28 -12
  694. package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +1 -17
  695. package/src/data/molecules/Molecule.ts +17 -7
  696. package/src/data/molecules/MoleculeManager.ts +31 -29
  697. package/src/data/utilities/FindUtilities.ts +2 -2
  698. package/src/utils/clipboard/clipboardComponents.tsx +3 -3
  699. package/src/versionInfo.ts +1 -1
  700. package/lib/component/modal/setting/GeneralSettings.d.ts.map +0 -1
  701. package/lib/component/modal/setting/GeneralSettings.js.map +0 -1
@@ -0,0 +1,248 @@
1
+ import { Classes } from '@blueprintjs/core';
2
+ import styled from '@emotion/styled';
3
+ import { useField, useStore } from '@tanstack/react-form';
4
+ import { useCallback, useMemo, useState } from 'react';
5
+ import { FaRegTrashAlt } from 'react-icons/fa';
6
+ import {
7
+ Button,
8
+ FieldGroupSVGTextStyleFields,
9
+ TableDragRowHandler,
10
+ createTableColumnHelper,
11
+ withForm,
12
+ } from 'react-science/ui';
13
+ import type { z } from 'zod';
14
+
15
+ import { useChartData } from '../../../../context/ChartContext.js';
16
+ import { getSpectraObjectPaths } from '../../../../utility/getSpectraObjectPaths.js';
17
+ import {
18
+ CellActions,
19
+ CellActionsButton,
20
+ CellCheckbox,
21
+ CellInput,
22
+ TableSettings,
23
+ } from '../ui/table.js';
24
+ import { TableSection } from '../ui/table_section.js';
25
+ import type { infoBlockFieldTabValidationWithUUID } from '../validation/title_block_tab_validation.js';
26
+ import { defaultGeneralSettingsFormValues } from '../validation.js';
27
+
28
+ export const TitleBlockTab = withForm({
29
+ defaultValues: defaultGeneralSettingsFormValues,
30
+ render: ({ form }) => {
31
+ const { Section, AppField } = form;
32
+
33
+ return (
34
+ <>
35
+ <Section title="Visibility">
36
+ <AppField name="infoBlock.visible">
37
+ {({ Checkbox }) => <Checkbox label="Display spectrum info block" />}
38
+ </AppField>
39
+ </Section>
40
+
41
+ <TableFields form={form} />
42
+
43
+ <Section title="Styling">
44
+ <FieldGroupSVGTextStyleFields
45
+ form={form}
46
+ fields="infoBlock.nameStyle"
47
+ label="Field label"
48
+ previewText="Pulse sequence :"
49
+ />
50
+
51
+ <FieldGroupSVGTextStyleFields
52
+ form={form}
53
+ fields="infoBlock.valueStyle"
54
+ label="Field value"
55
+ previewText="lon1027"
56
+ />
57
+ </Section>
58
+ </>
59
+ );
60
+ },
61
+ });
62
+
63
+ type Field = z.input<typeof infoBlockFieldTabValidationWithUUID>;
64
+ function getEmptyField(): Field {
65
+ return {
66
+ label: '',
67
+ format: '',
68
+ jpath: '',
69
+ visible: true,
70
+ uuid: crypto.randomUUID(),
71
+ };
72
+ }
73
+ const TableFields = withForm({
74
+ defaultValues: defaultGeneralSettingsFormValues,
75
+ render: function Fields({ form }) {
76
+ const { Field } = form;
77
+ const fields = useField({
78
+ form,
79
+ name: 'infoBlock.fields',
80
+ mode: 'array',
81
+ });
82
+ const { removeValue, setValue, pushValue, name } = fields;
83
+
84
+ const [autoFocus, setAutoFocus] = useState<string>('');
85
+ function onAddField() {
86
+ const value = getEmptyField();
87
+ pushValue(value, { dontRunListeners: true });
88
+ setAutoFocus(value.uuid);
89
+ }
90
+
91
+ const { data } = useChartData();
92
+ const { datalist } = useMemo(() => getSpectraObjectPaths(data), [data]);
93
+
94
+ const onDeleteAt = useCallback(
95
+ (index: number) => {
96
+ removeValue(index);
97
+ },
98
+ [removeValue],
99
+ );
100
+
101
+ const columns = useMemo(() => {
102
+ const columnHelper = createTableColumnHelper<Field>();
103
+ return [
104
+ columnHelper.display({
105
+ id: 'dnd',
106
+ header: '',
107
+ meta: {
108
+ tdStyle: { textAlign: 'center' },
109
+ },
110
+ cell: () => <TableDragRowHandlerStyled size="small" />,
111
+ }),
112
+ columnHelper.accessor('label', {
113
+ header: () => 'Label',
114
+ cell: ({ row: { index, original } }) => (
115
+ <Field name={`${name}[${index}].label`}>
116
+ {(field) => (
117
+ <CellInput
118
+ autoFocus={original.uuid === autoFocus ? true : undefined}
119
+ name={field.name}
120
+ value={field.state.value}
121
+ onChange={field.handleChange}
122
+ onBlur={() => {
123
+ field.handleBlur();
124
+ setAutoFocus('');
125
+ }}
126
+ intent={!field.state.meta.isValid ? 'danger' : undefined}
127
+ />
128
+ )}
129
+ </Field>
130
+ ),
131
+ }),
132
+ columnHelper.accessor('jpath', {
133
+ header: 'Field',
134
+ cell: ({ row: { index } }) => (
135
+ <Field name={`${name}[${index}].jpath`}>
136
+ {(field) => (
137
+ <CellInput
138
+ name={field.name}
139
+ value={field.state.value}
140
+ onChange={field.handleChange}
141
+ filterItems={datalist}
142
+ intent={!field.state.meta.isValid ? 'danger' : undefined}
143
+ />
144
+ )}
145
+ </Field>
146
+ ),
147
+ }),
148
+ columnHelper.accessor('format', {
149
+ header: 'Format',
150
+ cell: ({ row: { index } }) => (
151
+ <Field name={`${name}[${index}].format`}>
152
+ {(field) => (
153
+ <CellInput
154
+ name={field.name}
155
+ value={field.state.value}
156
+ onChange={field.handleChange}
157
+ intent={!field.state.meta.isValid ? 'danger' : undefined}
158
+ />
159
+ )}
160
+ </Field>
161
+ ),
162
+ }),
163
+ columnHelper.accessor('visible', {
164
+ header: 'Visible',
165
+ meta: {
166
+ tdStyle: { textAlign: 'center' },
167
+ },
168
+ cell: ({ row: { index } }) => (
169
+ <Field name={`${name}[${index}].visible`}>
170
+ {(field) => (
171
+ <CellCheckbox
172
+ name={field.name}
173
+ checked={field.state.value}
174
+ onChange={(e) => field.handleChange(e.currentTarget.checked)}
175
+ />
176
+ )}
177
+ </Field>
178
+ ),
179
+ }),
180
+ columnHelper.display({
181
+ id: 'actions',
182
+ header: '',
183
+ meta: {
184
+ thStyle: {
185
+ width: '60px',
186
+ },
187
+ },
188
+ cell: ({ row: { index } }) => {
189
+ return (
190
+ <CellActions>
191
+ <CellActionsButton
192
+ intent="danger"
193
+ onClick={() => onDeleteAt(index)}
194
+ >
195
+ <FaRegTrashAlt className={Classes.ICON} />
196
+ </CellActionsButton>
197
+ </CellActions>
198
+ );
199
+ },
200
+ }),
201
+ ];
202
+ }, [Field, autoFocus, datalist, name, onDeleteAt]);
203
+
204
+ const onRowOrderChanged = useCallback(
205
+ (value: Field[]) => {
206
+ setValue(value);
207
+ },
208
+ [setValue],
209
+ );
210
+
211
+ // It seems fields.setValue don't always trigger rerender
212
+ // so fields.state.value can de-sync and cause weird behavior with DnD reorder.
213
+ const fieldsData = useStore(fields.store, (s) => s.value);
214
+
215
+ return (
216
+ <TableSection
217
+ title="Fields"
218
+ actions={
219
+ <Button
220
+ size="small"
221
+ variant="outlined"
222
+ intent="primary"
223
+ icon="plus"
224
+ onClick={onAddField}
225
+ >
226
+ Add Field
227
+ </Button>
228
+ }
229
+ >
230
+ <TableSettings
231
+ data={fieldsData}
232
+ columns={columns}
233
+ onRowOrderChanged={onRowOrderChanged}
234
+ getRowId={getRowId}
235
+ emptyContent="No Fields"
236
+ />
237
+ </TableSection>
238
+ );
239
+ },
240
+ });
241
+
242
+ function getRowId(row: Field) {
243
+ return row.uuid;
244
+ }
245
+
246
+ const TableDragRowHandlerStyled = styled(TableDragRowHandler)`
247
+ margin: 0 2px;
248
+ `;
@@ -0,0 +1,155 @@
1
+ import { withFieldGroup, withForm } from 'react-science/ui';
2
+
3
+ import { defaultGeneralSettingsFormValues } from '../validation.ts';
4
+
5
+ export const ToolsTab = withForm({
6
+ defaultValues: defaultGeneralSettingsFormValues,
7
+ render: ({ form }) => {
8
+ return (
9
+ <>
10
+ <ChartTools form={form} fields="display.toolBarButtons" />
11
+ <ImportExportTools form={form} fields="display.toolBarButtons" />
12
+ <Spectra1DManipulationTools
13
+ form={form}
14
+ fields="display.toolBarButtons"
15
+ />
16
+ <Spectra2DManipulationTools
17
+ form={form}
18
+ fields="display.toolBarButtons"
19
+ />
20
+ </>
21
+ );
22
+ },
23
+ });
24
+
25
+ const ChartTools = withFieldGroup({
26
+ defaultValues: defaultGeneralSettingsFormValues.display.toolBarButtons,
27
+ render: ({ group }) => {
28
+ const { Section, AppField } = group;
29
+
30
+ return (
31
+ <Section title="Chart">
32
+ <AppField name="zoom">
33
+ {({ Checkbox }) => <Checkbox label="Zoom in" />}
34
+ </AppField>
35
+ <AppField name="zoomOut">
36
+ {({ Checkbox }) => <Checkbox label="Zoom out" />}
37
+ </AppField>
38
+ <AppField name="inset">
39
+ {({ Checkbox }) => <Checkbox label="Inset" />}
40
+ </AppField>
41
+ <AppField name="spectraStackAlignments">
42
+ {({ Checkbox }) => <Checkbox label="Stack alignments" />}
43
+ </AppField>
44
+ <AppField name="spectraCenterAlignments">
45
+ {({ Checkbox }) => <Checkbox label="Center alignments" />}
46
+ </AppField>
47
+ <AppField name="realImaginary">
48
+ {({ Checkbox }) => <Checkbox label="Real / Imaginary" />}
49
+ </AppField>
50
+ </Section>
51
+ );
52
+ },
53
+ });
54
+
55
+ const ImportExportTools = withFieldGroup({
56
+ defaultValues: defaultGeneralSettingsFormValues.display.toolBarButtons,
57
+ render: ({ group }) => {
58
+ const { Section, AppField } = group;
59
+
60
+ return (
61
+ <Section title="Import / Export">
62
+ <AppField name="import">
63
+ {({ Checkbox }) => <Checkbox label="Import" />}
64
+ </AppField>
65
+ <AppField name="exportAs">
66
+ {({ Checkbox }) => <Checkbox label="Export as" />}
67
+ </AppField>
68
+ </Section>
69
+ );
70
+ },
71
+ });
72
+
73
+ const Spectra1DManipulationTools = withFieldGroup({
74
+ defaultValues: defaultGeneralSettingsFormValues.display.toolBarButtons,
75
+ render: ({ group }) => {
76
+ const { Section, AppField } = group;
77
+
78
+ return (
79
+ <Section title="1D Spectra">
80
+ <AppField name="peakPicking">
81
+ {({ Checkbox }) => <Checkbox label="Peak picking" />}
82
+ </AppField>
83
+ <AppField name="integral">
84
+ {({ Checkbox }) => <Checkbox label="Integrals" />}
85
+ </AppField>
86
+ <AppField name="zonePicking">
87
+ {({ Checkbox }) => <Checkbox label="Zone picking" />}
88
+ </AppField>
89
+ <AppField name="rangePicking">
90
+ {({ Checkbox }) => <Checkbox label="Range picking" />}
91
+ </AppField>
92
+ <AppField name="zeroFilling">
93
+ {({ Checkbox }) => <Checkbox label="Zero filling" />}
94
+ </AppField>
95
+ <AppField name="slicing">
96
+ {({ Checkbox }) => <Checkbox label="Slicing" />}
97
+ </AppField>
98
+ <AppField name="apodization">
99
+ {({ Checkbox }) => <Checkbox label="Apodization" />}
100
+ </AppField>
101
+ <AppField name="phaseCorrection">
102
+ {({ Checkbox }) => <Checkbox label="Phase correction" />}
103
+ </AppField>
104
+ <AppField name="baselineCorrection">
105
+ {({ Checkbox }) => <Checkbox label="Baseline correction" />}
106
+ </AppField>
107
+ <AppField name="fft">
108
+ {({ Checkbox }) => <Checkbox label="Fourier transform" />}
109
+ </AppField>
110
+ <AppField name="exclusionZones">
111
+ {({ Checkbox }) => <Checkbox label="Exclusion zones" />}
112
+ </AppField>
113
+ <AppField name="autoRangeAndZonePicking">
114
+ {({ Checkbox }) => <Checkbox label="Auto range and zone picking" />}
115
+ </AppField>
116
+ <AppField name="multipleSpectraAnalysis">
117
+ {({ Checkbox }) => <Checkbox label="Multiple spectra integration" />}
118
+ </AppField>
119
+ </Section>
120
+ );
121
+ },
122
+ });
123
+
124
+ const Spectra2DManipulationTools = withFieldGroup({
125
+ defaultValues: defaultGeneralSettingsFormValues.display.toolBarButtons,
126
+ render: ({ group }) => {
127
+ const { Section, AppField } = group;
128
+
129
+ return (
130
+ <Section title="2D Spectra">
131
+ <AppField name="zeroFillingDimension1">
132
+ {({ Checkbox }) => <Checkbox label="Zero filling direct" />}
133
+ </AppField>
134
+ <AppField name="zeroFillingDimension2">
135
+ {({ Checkbox }) => <Checkbox label="Zero filling indirect" />}
136
+ </AppField>
137
+ <AppField name="apodizationDimension1">
138
+ {({ Checkbox }) => <Checkbox label="Apodization direct" />}
139
+ </AppField>
140
+ <AppField name="apodizationDimension2">
141
+ {({ Checkbox }) => <Checkbox label="Apodization indirect" />}
142
+ </AppField>
143
+ <AppField name="fftDimension1">
144
+ {({ Checkbox }) => <Checkbox label="Fourier transform direct" />}
145
+ </AppField>
146
+ <AppField name="fftDimension2">
147
+ {({ Checkbox }) => <Checkbox label="Fourier transform indirect" />}
148
+ </AppField>
149
+ <AppField name="phaseCorrectionTwoDimensions">
150
+ {({ Checkbox }) => <Checkbox label="Phase correction" />}
151
+ </AppField>
152
+ </Section>
153
+ );
154
+ },
155
+ });
@@ -0,0 +1,163 @@
1
+ import { Checkbox, Classes, NumericInput } from '@blueprintjs/core';
2
+ import type { StyledComponent } from '@emotion/styled';
3
+ import styled from '@emotion/styled';
4
+ import type { RowData } from '@tanstack/react-table';
5
+ import type { ComponentProps } from 'react';
6
+ import type { ButtonProps, TableProps } from 'react-science/ui';
7
+ import { Button, ColorPickerDropdown, Table } from 'react-science/ui';
8
+
9
+ import { Input2 } from '../../../../elements/Input2.js';
10
+
11
+ export const CellInput = styled(Input2)`
12
+ input {
13
+ background-color: transparent;
14
+ box-shadow: none;
15
+ outline: none;
16
+ }
17
+
18
+ input.${Classes.INPUT}:focus {
19
+ box-shadow: none;
20
+ outline: none;
21
+ }
22
+ `;
23
+
24
+ export const CellNumericInput = styled(NumericInput)`
25
+ margin-top: 1px;
26
+ margin-right: 1px;
27
+
28
+ input {
29
+ background-color: transparent;
30
+ box-shadow: none;
31
+ outline: none;
32
+ }
33
+
34
+ input.${Classes.INPUT}:focus {
35
+ box-shadow: none;
36
+ outline: none;
37
+ }
38
+
39
+ &.${Classes.CONTROL_GROUP} .${Classes.BUTTON_GROUP}.${Classes.VERTICAL} {
40
+ border-left: 1px dotted lightgray;
41
+
42
+ > .${Classes.BUTTON} {
43
+ margin: 0 !important;
44
+ border-radius: 0;
45
+ background: transparent;
46
+ box-shadow: none;
47
+
48
+ :first-of-type {
49
+ border-bottom: 1px dotted lightgray;
50
+ }
51
+ }
52
+ }
53
+ `;
54
+
55
+ export const CellCheckbox = styled(Checkbox)`
56
+ display: flex;
57
+ align-items: center;
58
+ justify-content: center;
59
+
60
+ &.${Classes.CONTROL} {
61
+ padding: 0;
62
+ margin: 0;
63
+
64
+ .${Classes.CONTROL_INDICATOR} {
65
+ margin: 0;
66
+ }
67
+ }
68
+ `;
69
+
70
+ export function CellColorPicker(
71
+ props: ComponentProps<typeof ColorPickerDropdown>,
72
+ ) {
73
+ return (
74
+ <CellColorPickerContainer>
75
+ <ColorPickerDropdown {...props} />
76
+ </CellColorPickerContainer>
77
+ );
78
+ }
79
+ const CellColorPickerContainer = styled.div`
80
+ .${Classes.POPOVER_TARGET} button {
81
+ border: none;
82
+ }
83
+ `;
84
+
85
+ export const CellActions = styled.div`
86
+ display: flex;
87
+ align-items: center;
88
+ justify-content: center;
89
+ gap: 0.25em;
90
+ margin-left: 3px;
91
+ margin-right: 2px;
92
+ `;
93
+
94
+ export function CellActionsButton(props: ButtonProps) {
95
+ const { size = 'small', variant = 'minimal' } = props;
96
+
97
+ return <Button {...props} size={size} variant={variant} />;
98
+ }
99
+
100
+ type MakeRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
101
+
102
+ type TableSettingsProps<Data extends RowData> = MakeRequired<
103
+ TableProps<Data>,
104
+ 'getRowId'
105
+ >;
106
+
107
+ /**
108
+ * Return stylized table.
109
+ * It set `compact`, `bordered` and `stickyHeader` props to true by default.
110
+ * It adds supports for `tdStyle` `meta` property in columns definition.
111
+ * It needs a mandatory ` getRowId ` prop.
112
+ * Table with fields in the columns is known to cause issue if the row key is index.
113
+ * use `withUUID` validation helper to have items with uuid
114
+ */
115
+ export function TableSettings<Data extends RowData>(
116
+ props: TableSettingsProps<Data>,
117
+ ) {
118
+ // We should not create a component in another component,
119
+ // But here it's OK, it is just an alias to fix the type
120
+ const Table = TableSettingsStyled as StyledComponent<
121
+ TableSettingsProps<Data>
122
+ >;
123
+
124
+ return <Table compact bordered stickyHeader {...props} />;
125
+ }
126
+
127
+ const TableSettingsStyled = styled(Table)`
128
+ overflow: auto;
129
+
130
+ ${(props) => (props.bordered ? `border: 1px solid #11141826;` : '')}
131
+
132
+ &.${Classes.HTML_TABLE} {
133
+ font-size: 12px;
134
+ width: 100%;
135
+
136
+ thead th {
137
+ padding: 2px 8px;
138
+ text-align: center;
139
+ vertical-align: bottom;
140
+ font-weight: bold;
141
+
142
+ /* See getThProps in react-science table_header_cell */
143
+ > div > div {
144
+ flex: 1;
145
+ }
146
+ }
147
+
148
+ tbody {
149
+ tr:active {
150
+ background-color: #f5f5f5;
151
+ }
152
+
153
+ tr:hover {
154
+ background-color: #f7f7f7;
155
+ }
156
+
157
+ td {
158
+ padding: 0;
159
+ vertical-align: middle;
160
+ }
161
+ }
162
+ }
163
+ `;
@@ -0,0 +1,52 @@
1
+ import styled from '@emotion/styled';
2
+ import type { ReactNode } from 'react';
3
+
4
+ const Section = styled.section`
5
+ margin-top: 15px;
6
+ gap: 5px;
7
+ display: flex;
8
+ flex-direction: column;
9
+
10
+ > header {
11
+ display: flex;
12
+ flex-direction: column;
13
+
14
+ > h2 {
15
+ display: flex;
16
+ justify-content: space-between;
17
+ align-items: baseline;
18
+ font-weight: 600;
19
+ font-size: 1rem;
20
+ line-height: 1.75rem;
21
+ }
22
+ }
23
+ `;
24
+
25
+ const Actions = styled.div`
26
+ display: flex;
27
+ gap: 0.5em;
28
+ `;
29
+
30
+ interface TableSectionProps {
31
+ title: ReactNode;
32
+ description?: ReactNode;
33
+ actions?: ReactNode;
34
+ children: ReactNode;
35
+ }
36
+ export function TableSection(props: TableSectionProps) {
37
+ const { title, description, actions, children } = props;
38
+
39
+ return (
40
+ <Section>
41
+ <header>
42
+ <h2>
43
+ {title}
44
+ {actions && <Actions>{actions}</Actions>}
45
+ </h2>
46
+ {description && <p>{description}</p>}
47
+ </header>
48
+
49
+ {children}
50
+ </Section>
51
+ );
52
+ }
@@ -0,0 +1,73 @@
1
+ import { Filters1D, Filters2D } from 'nmr-processing';
2
+ import { z } from 'zod/v4';
3
+
4
+ const filtersEnumNames = [
5
+ ...Object.values(Filters1D).map((f) => f.name),
6
+ ...Object.values(Filters2D).map((f) => f.name),
7
+ ];
8
+
9
+ const outputFiltersValidation = z
10
+ .array(
11
+ z.object({
12
+ name: z.enum(filtersEnumNames),
13
+ enabled: z.boolean().optional(),
14
+ }),
15
+ )
16
+ .optional();
17
+
18
+ const inputFiltersElement = z
19
+ .object({
20
+ apodization: z.boolean().optional(),
21
+ apodizationDimension1: z.boolean().optional(),
22
+ apodizationDimension2: z.boolean().optional(),
23
+ backwardLinearPrediction: z.boolean().optional(),
24
+ baselineCorrection: z.boolean().optional(),
25
+ baselineCorrectionTwoDimensions: z.boolean().optional(),
26
+ blpDimension1: z.boolean().optional(),
27
+ blpDimension2: z.boolean().optional(),
28
+ digitalFilter: z.boolean().optional(),
29
+ digitalFilter2D: z.boolean().optional(),
30
+ equallySpaced: z.boolean().optional(),
31
+ exclusionZones: z.boolean().optional(),
32
+ fft: z.boolean().optional(),
33
+ fftDimension1: z.boolean().optional(),
34
+ fftDimension2: z.boolean().optional(),
35
+ flpDimension1: z.boolean().optional(),
36
+ flpDimension2: z.boolean().optional(),
37
+ forwardLinearPrediction: z.boolean().optional(),
38
+ nusDimension2: z.boolean().optional(),
39
+ phaseCorrection: z.boolean().optional(),
40
+ phaseCorrectionTwoDimensions: z.boolean().optional(),
41
+ shift2DX: z.boolean().optional(),
42
+ shift2DY: z.boolean().optional(),
43
+ shiftX: z.boolean().optional(),
44
+ signalProcessing: z.boolean().optional(),
45
+ symmetrizeCosyLike: z.boolean().optional(),
46
+ trim: z.boolean().optional(),
47
+ zeroFilling: z.boolean().optional(),
48
+ zeroFillingDimension1: z.boolean().optional(),
49
+ zeroFillingDimension2: z.boolean().optional(),
50
+ })
51
+ .optional();
52
+
53
+ const filtersCodec = z.codec(inputFiltersElement, outputFiltersValidation, {
54
+ encode: (value) => {
55
+ if (!value) return undefined;
56
+
57
+ const entries = value.map((item) => [item.name, item.enabled]);
58
+ return Object.fromEntries(entries);
59
+ },
60
+ decode: (value) => {
61
+ if (!value) return undefined;
62
+
63
+ return Object.entries(value).map(([name, enabled]) => ({
64
+ name: name as (typeof filtersEnumNames)[number],
65
+ enabled,
66
+ }));
67
+ },
68
+ });
69
+
70
+ export const autoProcessingTabValidation = z.object({
71
+ autoProcessing: z.boolean(),
72
+ filters: z.record(z.string(), filtersCodec).optional(),
73
+ });