nmrium 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1018) hide show
  1. package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
  2. package/lib/component/1d/BrushTracker1D.js +138 -133
  3. package/lib/component/1d/BrushTracker1D.js.map +1 -1
  4. package/lib/component/1d/ExclusionZoneAnnotation.js +1 -1
  5. package/lib/component/1d/ExclusionZoneAnnotation.js.map +1 -1
  6. package/lib/component/1d/ExclusionZonesAnnotations.js.map +1 -1
  7. package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
  8. package/lib/component/1d/FloatPublicationString.js +20 -21
  9. package/lib/component/1d/FloatPublicationString.js.map +1 -1
  10. package/lib/component/1d/FooterBanner.js +2 -2
  11. package/lib/component/1d/FooterBanner.js.map +1 -1
  12. package/lib/component/1d/Line.js +1 -1
  13. package/lib/component/1d/Line.js.map +1 -1
  14. package/lib/component/1d/SimilarityTree.js +2 -2
  15. package/lib/component/1d/SimilarityTree.js.map +1 -1
  16. package/lib/component/1d/SpectraLegends.d.ts +1 -2
  17. package/lib/component/1d/SpectraLegends.d.ts.map +1 -1
  18. package/lib/component/1d/SpectraLegends.js +3 -4
  19. package/lib/component/1d/SpectraLegends.js.map +1 -1
  20. package/lib/component/1d/baseline/BaselinePreview.js +4 -4
  21. package/lib/component/1d/baseline/BaselinePreview.js.map +1 -1
  22. package/lib/component/1d/database/DatabaseElements.d.ts +1 -2
  23. package/lib/component/1d/database/DatabaseElements.d.ts.map +1 -1
  24. package/lib/component/1d/database/DatabaseElements.js +1 -2
  25. package/lib/component/1d/database/DatabaseElements.js.map +1 -1
  26. package/lib/component/1d/database/DatabaseSpectrum.js +3 -3
  27. package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
  28. package/lib/component/1d/database/ResurrectedDatabaseRanges.js +1 -1
  29. package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
  30. package/lib/component/1d/inset/DraggableInset.js +4 -4
  31. package/lib/component/1d/inset/DraggableInset.js.map +1 -1
  32. package/lib/component/1d/inset/InsetProvider.d.ts.map +1 -1
  33. package/lib/component/1d/inset/InsetProvider.js +4 -4
  34. package/lib/component/1d/inset/InsetProvider.js.map +1 -1
  35. package/lib/component/1d/inset/InsetViewerRoot.js +3 -3
  36. package/lib/component/1d/inset/InsetViewerRoot.js.map +1 -1
  37. package/lib/component/1d/integral/IntegralsSeries.js +1 -1
  38. package/lib/component/1d/integral/IntegralsSeries.js.map +1 -1
  39. package/lib/component/1d/jCouplingGraph/JGraph.js +2 -2
  40. package/lib/component/1d/jCouplingGraph/JGraph.js.map +1 -1
  41. package/lib/component/1d/jCouplingGraph/JGraphContext.d.ts +1 -1
  42. package/lib/component/1d/jCouplingGraph/JGraphContext.d.ts.map +1 -1
  43. package/lib/component/1d/jCouplingGraph/JGraphContext.js +3 -4
  44. package/lib/component/1d/jCouplingGraph/JGraphContext.js.map +1 -1
  45. package/lib/component/1d/jCouplingGraph/JsCouplingLinks.d.ts.map +1 -1
  46. package/lib/component/1d/jCouplingGraph/JsCouplingLinks.js +1 -4
  47. package/lib/component/1d/jCouplingGraph/JsCouplingLinks.js.map +1 -1
  48. package/lib/component/1d/jCouplingGraph/JsCouplings.js +1 -1
  49. package/lib/component/1d/jCouplingGraph/JsCouplings.js.map +1 -1
  50. package/lib/component/1d/matrix/Stocsy.js +1 -2
  51. package/lib/component/1d/matrix/Stocsy.js.map +1 -1
  52. package/lib/component/1d/multiplicityTree/MultiplicityTree.js +1 -1
  53. package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
  54. package/lib/component/1d/peaks/PeakEditionManager.d.ts.map +1 -1
  55. package/lib/component/1d/peaks/PeakEditionManager.js +6 -7
  56. package/lib/component/1d/peaks/PeakEditionManager.js.map +1 -1
  57. package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
  58. package/lib/component/1d/peaks/Peaks.js +12 -15
  59. package/lib/component/1d/peaks/Peaks.js.map +1 -1
  60. package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
  61. package/lib/component/1d/ranges/AssignmentLabel.js +4 -3
  62. package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
  63. package/lib/component/1d/ranges/Atoms.js +18 -17
  64. package/lib/component/1d/ranges/Atoms.js.map +1 -1
  65. package/lib/component/1d/ranges/FloatingRanges.d.ts.map +1 -1
  66. package/lib/component/1d/ranges/FloatingRanges.js +12 -14
  67. package/lib/component/1d/ranges/FloatingRanges.js.map +1 -1
  68. package/lib/component/1d/ranges/RangesIntegrals.d.ts +1 -2
  69. package/lib/component/1d/ranges/RangesIntegrals.d.ts.map +1 -1
  70. package/lib/component/1d/ranges/RangesIntegrals.js +2 -3
  71. package/lib/component/1d/ranges/RangesIntegrals.js.map +1 -1
  72. package/lib/component/1d/tool/BaseLine.d.ts +1 -2
  73. package/lib/component/1d/tool/BaseLine.d.ts.map +1 -1
  74. package/lib/component/1d/tool/BaseLine.js +2 -3
  75. package/lib/component/1d/tool/BaseLine.js.map +1 -1
  76. package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.d.ts.map +1 -1
  77. package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js +3 -3
  78. package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js.map +1 -1
  79. package/lib/component/1d-2d/components/RangeIndicator.d.ts +2 -1
  80. package/lib/component/1d-2d/components/RangeIndicator.d.ts.map +1 -1
  81. package/lib/component/1d-2d/components/RangeIndicator.js +2 -2
  82. package/lib/component/1d-2d/components/RangeIndicator.js.map +1 -1
  83. package/lib/component/1d-2d/components/SVGRootContainer.d.ts.map +1 -1
  84. package/lib/component/1d-2d/components/SVGRootContainer.js +2 -2
  85. package/lib/component/1d-2d/components/SVGRootContainer.js.map +1 -1
  86. package/lib/component/1d-2d/components/Signals1D.js.map +1 -1
  87. package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts +1 -2
  88. package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
  89. package/lib/component/1d-2d/components/SpectrumInfoBlock.js +17 -16
  90. package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
  91. package/lib/component/1d-2d/tools/BrushXY.js +2 -2
  92. package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
  93. package/lib/component/1d-2d/tools/CursorToolIcon.d.ts.map +1 -1
  94. package/lib/component/1d-2d/tools/CursorToolIcon.js +1 -3
  95. package/lib/component/1d-2d/tools/CursorToolIcon.js.map +1 -1
  96. package/lib/component/1d-2d/tools/DistanceLine.d.ts.map +1 -1
  97. package/lib/component/1d-2d/tools/DistanceLine.js +2 -4
  98. package/lib/component/1d-2d/tools/DistanceLine.js.map +1 -1
  99. package/lib/component/2d/1d-tracer/Left1DChart.d.ts.map +1 -1
  100. package/lib/component/2d/1d-tracer/Left1DChart.js +1 -1
  101. package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
  102. package/lib/component/2d/1d-tracer/Ranges1D.d.ts +0 -1
  103. package/lib/component/2d/1d-tracer/Ranges1D.d.ts.map +1 -1
  104. package/lib/component/2d/1d-tracer/Ranges1D.js.map +1 -1
  105. package/lib/component/2d/1d-tracer/Top1DChart.d.ts +1 -1
  106. package/lib/component/2d/1d-tracer/Top1DChart.d.ts.map +1 -1
  107. package/lib/component/2d/1d-tracer/Top1DChart.js +5 -5
  108. package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
  109. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.js.map +1 -1
  110. package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
  111. package/lib/component/2d/BrushTracker2D.js +1 -1
  112. package/lib/component/2d/BrushTracker2D.js.map +1 -1
  113. package/lib/component/2d/FooterBanner.d.ts.map +1 -1
  114. package/lib/component/2d/FooterBanner.js +1 -1
  115. package/lib/component/2d/FooterBanner.js.map +1 -1
  116. package/lib/component/2d/IndirectAxis2D.js +1 -1
  117. package/lib/component/2d/IndirectAxis2D.js.map +1 -1
  118. package/lib/component/2d/SlicingView.js +2 -2
  119. package/lib/component/2d/SlicingView.js.map +1 -1
  120. package/lib/component/2d/Viewer2D.js +1 -1
  121. package/lib/component/2d/Viewer2D.js.map +1 -1
  122. package/lib/component/2d/tools/PivotIndicator.d.ts.map +1 -1
  123. package/lib/component/2d/tools/PivotIndicator.js +1 -1
  124. package/lib/component/2d/tools/PivotIndicator.js.map +1 -1
  125. package/lib/component/2d/utilities/scale.js +1 -1
  126. package/lib/component/2d/zones/SignalsGuideLines.js +6 -6
  127. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
  128. package/lib/component/2d/zones/Zone.js +4 -4
  129. package/lib/component/2d/zones/Zone.js.map +1 -1
  130. package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts.map +1 -1
  131. package/lib/component/2d/zones/ZonesAssignmentsLabels.js +21 -17
  132. package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
  133. package/lib/component/EventsTrackers/BrushTracker.js +10 -10
  134. package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
  135. package/lib/component/EventsTrackers/MouseTracker.d.ts.map +1 -1
  136. package/lib/component/EventsTrackers/MouseTracker.js +5 -6
  137. package/lib/component/EventsTrackers/MouseTracker.js.map +1 -1
  138. package/lib/component/EventsTrackers/brush_tracker.types.d.ts +12 -4
  139. package/lib/component/EventsTrackers/brush_tracker.types.d.ts.map +1 -1
  140. package/lib/component/EventsTrackers/brush_tracker_events_listeners.d.ts +1 -1
  141. package/lib/component/EventsTrackers/brush_tracker_events_listeners.d.ts.map +1 -1
  142. package/lib/component/EventsTrackers/brush_tracker_events_listeners.js +3 -4
  143. package/lib/component/EventsTrackers/brush_tracker_events_listeners.js.map +1 -1
  144. package/lib/component/SVGTable.d.ts.map +1 -1
  145. package/lib/component/SVGTable.js +4 -4
  146. package/lib/component/SVGTable.js.map +1 -1
  147. package/lib/component/assignment/AssignmentProvider.d.ts.map +1 -1
  148. package/lib/component/assignment/AssignmentProvider.js +3 -5
  149. package/lib/component/assignment/AssignmentProvider.js.map +1 -1
  150. package/lib/component/assignment/AssignmentsContext.d.ts +3 -3
  151. package/lib/component/assignment/AssignmentsContext.d.ts.map +1 -1
  152. package/lib/component/assignment/AssignmentsContext.js +3 -3
  153. package/lib/component/assignment/AssignmentsContext.js.map +1 -1
  154. package/lib/component/assignment/utilities/getAssignments.js +4 -10
  155. package/lib/component/assignment/utilities/getAssignments.js.map +1 -1
  156. package/lib/component/context/ChartContext.d.ts +1 -1
  157. package/lib/component/context/ChartContext.d.ts.map +1 -1
  158. package/lib/component/context/ChartContext.js +3 -4
  159. package/lib/component/context/ChartContext.js.map +1 -1
  160. package/lib/component/context/CoreContext.d.ts +1 -1
  161. package/lib/component/context/CoreContext.d.ts.map +1 -1
  162. package/lib/component/context/CoreContext.js +3 -4
  163. package/lib/component/context/CoreContext.js.map +1 -1
  164. package/lib/component/context/DispatchContext.d.ts +1 -1
  165. package/lib/component/context/DispatchContext.d.ts.map +1 -1
  166. package/lib/component/context/DispatchContext.js +3 -4
  167. package/lib/component/context/DispatchContext.js.map +1 -1
  168. package/lib/component/context/FilterSyncOptionsContext.js +3 -3
  169. package/lib/component/context/FilterSyncOptionsContext.js.map +1 -1
  170. package/lib/component/context/GlobalContext.d.ts +1 -1
  171. package/lib/component/context/GlobalContext.d.ts.map +1 -1
  172. package/lib/component/context/GlobalContext.js +3 -4
  173. package/lib/component/context/GlobalContext.js.map +1 -1
  174. package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
  175. package/lib/component/context/KeyModifierContext.js +3 -3
  176. package/lib/component/context/KeyModifierContext.js.map +1 -1
  177. package/lib/component/context/LoaderContext.d.ts +1 -1
  178. package/lib/component/context/LoaderContext.d.ts.map +1 -1
  179. package/lib/component/context/LoaderContext.js +4 -7
  180. package/lib/component/context/LoaderContext.js.map +1 -1
  181. package/lib/component/context/LoggerContext.js +3 -3
  182. package/lib/component/context/LoggerContext.js.map +1 -1
  183. package/lib/component/context/PreferencesContext.d.ts +1 -1
  184. package/lib/component/context/PreferencesContext.d.ts.map +1 -1
  185. package/lib/component/context/PreferencesContext.js +4 -5
  186. package/lib/component/context/PreferencesContext.js.map +1 -1
  187. package/lib/component/context/ScaleContext.d.ts.map +1 -1
  188. package/lib/component/context/ScaleContext.js +3 -3
  189. package/lib/component/context/ScaleContext.js.map +1 -1
  190. package/lib/component/context/ShareDataContext.d.ts.map +1 -1
  191. package/lib/component/context/ShareDataContext.js +3 -3
  192. package/lib/component/context/ShareDataContext.js.map +1 -1
  193. package/lib/component/context/SortSpectraContext.d.ts.map +1 -1
  194. package/lib/component/context/SortSpectraContext.js +7 -8
  195. package/lib/component/context/SortSpectraContext.js.map +1 -1
  196. package/lib/component/context/ToasterContext.d.ts.map +1 -1
  197. package/lib/component/context/ToasterContext.js +3 -3
  198. package/lib/component/context/ToasterContext.js.map +1 -1
  199. package/lib/component/context/TopicMoleculeContext.js +3 -3
  200. package/lib/component/context/TopicMoleculeContext.js.map +1 -1
  201. package/lib/component/context/processings_mutations_context.api.d.ts +1 -1
  202. package/lib/component/context/processings_mutations_context.api.d.ts.map +1 -1
  203. package/lib/component/context/processings_mutations_context.api.js +9 -11
  204. package/lib/component/context/processings_mutations_context.api.js.map +1 -1
  205. package/lib/component/context/processings_mutations_context.js +3 -3
  206. package/lib/component/context/processings_mutations_context.js.map +1 -1
  207. package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
  208. package/lib/component/elements/ActionsButtonsPopover.js +13 -13
  209. package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
  210. package/lib/component/elements/Alert.d.ts.map +1 -1
  211. package/lib/component/elements/Alert.js +6 -4
  212. package/lib/component/elements/Alert.js.map +1 -1
  213. package/lib/component/elements/Anchor.d.ts +35 -11
  214. package/lib/component/elements/Anchor.d.ts.map +1 -1
  215. package/lib/component/elements/Anchor.js.map +1 -1
  216. package/lib/component/elements/Button.js +1 -1
  217. package/lib/component/elements/Button.js.map +1 -1
  218. package/lib/component/elements/D3Axis.d.ts +3 -2
  219. package/lib/component/elements/D3Axis.d.ts.map +1 -1
  220. package/lib/component/elements/D3Axis.js +3 -4
  221. package/lib/component/elements/D3Axis.js.map +1 -1
  222. package/lib/component/elements/DialogManager.d.ts +3 -1
  223. package/lib/component/elements/DialogManager.d.ts.map +1 -1
  224. package/lib/component/elements/DialogManager.js +5 -5
  225. package/lib/component/elements/DialogManager.js.map +1 -1
  226. package/lib/component/elements/DraggableDialog.js +11 -11
  227. package/lib/component/elements/DraggableDialog.js.map +1 -1
  228. package/lib/component/elements/EditableColumn.d.ts +3 -2
  229. package/lib/component/elements/EditableColumn.d.ts.map +1 -1
  230. package/lib/component/elements/EditableColumn.js +12 -10
  231. package/lib/component/elements/EditableColumn.js.map +1 -1
  232. package/lib/component/elements/Footer.d.ts +9 -3
  233. package/lib/component/elements/Footer.d.ts.map +1 -1
  234. package/lib/component/elements/Footer.js.map +1 -1
  235. package/lib/component/elements/Input.d.ts +4 -3
  236. package/lib/component/elements/Input.d.ts.map +1 -1
  237. package/lib/component/elements/Input.js +9 -10
  238. package/lib/component/elements/Input.js.map +1 -1
  239. package/lib/component/elements/Input2.d.ts +4 -3
  240. package/lib/component/elements/Input2.d.ts.map +1 -1
  241. package/lib/component/elements/Input2.js +7 -9
  242. package/lib/component/elements/Input2.js.map +1 -1
  243. package/lib/component/elements/InputRange.d.ts +4 -3
  244. package/lib/component/elements/InputRange.d.ts.map +1 -1
  245. package/lib/component/elements/InputRange.js +10 -10
  246. package/lib/component/elements/InputRange.js.map +1 -1
  247. package/lib/component/elements/IsotopesViewer.js +1 -1
  248. package/lib/component/elements/IsotopesViewer.js.map +1 -1
  249. package/lib/component/elements/NumberInput2.d.ts +4 -3
  250. package/lib/component/elements/NumberInput2.d.ts.map +1 -1
  251. package/lib/component/elements/NumberInput2.js +5 -7
  252. package/lib/component/elements/NumberInput2.js.map +1 -1
  253. package/lib/component/elements/NumberInput2Controller.d.ts.map +1 -1
  254. package/lib/component/elements/NumberInput2Controller.js +17 -9
  255. package/lib/component/elements/NumberInput2Controller.js.map +1 -1
  256. package/lib/component/elements/SVGGroup.d.ts.map +1 -1
  257. package/lib/component/elements/SVGGroup.js +16 -15
  258. package/lib/component/elements/SVGGroup.js.map +1 -1
  259. package/lib/component/elements/Scroller.d.ts.map +1 -1
  260. package/lib/component/elements/Scroller.js +3 -4
  261. package/lib/component/elements/Scroller.js.map +1 -1
  262. package/lib/component/elements/Sections.js +3 -3
  263. package/lib/component/elements/Sections.js.map +1 -1
  264. package/lib/component/elements/Select.d.ts +4 -3
  265. package/lib/component/elements/Select.d.ts.map +1 -1
  266. package/lib/component/elements/Select.js +3 -5
  267. package/lib/component/elements/Select.js.map +1 -1
  268. package/lib/component/elements/Select2.d.ts +3 -5
  269. package/lib/component/elements/Select2.d.ts.map +1 -1
  270. package/lib/component/elements/Select2.js +3 -4
  271. package/lib/component/elements/Select2.js.map +1 -1
  272. package/lib/component/elements/Tab/Tab.d.ts.map +1 -1
  273. package/lib/component/elements/Tab/Tab.js +2 -2
  274. package/lib/component/elements/Tab/Tab.js.map +1 -1
  275. package/lib/component/elements/Tab/Tabs.d.ts.map +1 -1
  276. package/lib/component/elements/Tab/Tabs.js +0 -2
  277. package/lib/component/elements/Tab/Tabs.js.map +1 -1
  278. package/lib/component/elements/TabsProvider.d.ts.map +1 -1
  279. package/lib/component/elements/TabsProvider.js +3 -3
  280. package/lib/component/elements/TabsProvider.js.map +1 -1
  281. package/lib/component/elements/custom-color-picker.d.ts +3 -0
  282. package/lib/component/elements/custom-color-picker.d.ts.map +1 -0
  283. package/lib/component/elements/custom-color-picker.js +158 -0
  284. package/lib/component/elements/custom-color-picker.js.map +1 -0
  285. package/lib/component/elements/draggable/useDraggable.js +4 -4
  286. package/lib/component/elements/draggable/useDraggable.js.map +1 -1
  287. package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
  288. package/lib/component/elements/export/ExportManager.js +5 -5
  289. package/lib/component/elements/export/ExportManager.js.map +1 -1
  290. package/lib/component/elements/export/ExportSettingsProvider.d.ts.map +1 -1
  291. package/lib/component/elements/export/ExportSettingsProvider.js +3 -3
  292. package/lib/component/elements/export/ExportSettingsProvider.js.map +1 -1
  293. package/lib/component/elements/export/RenderDetector.d.ts.map +1 -1
  294. package/lib/component/elements/export/RenderDetector.js +1 -0
  295. package/lib/component/elements/export/RenderDetector.js.map +1 -1
  296. package/lib/component/elements/print/PrintContent.js +3 -2
  297. package/lib/component/elements/print/PrintContent.js.map +1 -1
  298. package/lib/component/elements/print/PrintProvider.d.ts.map +1 -1
  299. package/lib/component/elements/print/PrintProvider.js +6 -6
  300. package/lib/component/elements/print/PrintProvider.js.map +1 -1
  301. package/lib/component/elements/resizer/SVGResizer.d.ts.map +1 -1
  302. package/lib/component/elements/resizer/SVGResizer.js +0 -1
  303. package/lib/component/elements/resizer/SVGResizer.js.map +1 -1
  304. package/lib/component/elements/tanstack_table/elements/table_context.d.ts +1 -1
  305. package/lib/component/elements/tanstack_table/elements/table_context.d.ts.map +1 -1
  306. package/lib/component/elements/tanstack_table/elements/table_context.js +3 -4
  307. package/lib/component/elements/tanstack_table/elements/table_context.js.map +1 -1
  308. package/lib/component/elements/tanstack_table/elements/table_header.d.ts +1 -0
  309. package/lib/component/elements/tanstack_table/elements/table_header.d.ts.map +1 -1
  310. package/lib/component/elements/tanstack_table/elements/table_header.js +2 -2
  311. package/lib/component/elements/tanstack_table/elements/table_header.js.map +1 -1
  312. package/lib/component/elements/tanstack_table/elements/table_row.d.ts +2 -2
  313. package/lib/component/elements/tanstack_table/elements/table_row.d.ts.map +1 -1
  314. package/lib/component/elements/tanstack_table/elements/table_row.js +41 -21
  315. package/lib/component/elements/tanstack_table/elements/table_row.js.map +1 -1
  316. package/lib/component/elements/tanstack_table/elements/useRowReorder.d.ts +10 -0
  317. package/lib/component/elements/tanstack_table/elements/useRowReorder.d.ts.map +1 -0
  318. package/lib/component/elements/tanstack_table/elements/useRowReorder.js +87 -0
  319. package/lib/component/elements/tanstack_table/elements/useRowReorder.js.map +1 -0
  320. package/lib/component/elements/tanstack_table/table.d.ts +6 -5
  321. package/lib/component/elements/tanstack_table/table.d.ts.map +1 -1
  322. package/lib/component/elements/tanstack_table/table.js +10 -8
  323. package/lib/component/elements/tanstack_table/table.js.map +1 -1
  324. package/lib/component/elements/tanstack_table/types.d.ts +3 -0
  325. package/lib/component/elements/tanstack_table/types.d.ts.map +1 -1
  326. package/lib/component/elements/utilities/transferStyles.d.ts.map +1 -1
  327. package/lib/component/elements/utilities/transferStyles.js +1 -3
  328. package/lib/component/elements/utilities/transferStyles.js.map +1 -1
  329. package/lib/component/header/Header.d.ts.map +1 -1
  330. package/lib/component/header/Header.js +3 -3
  331. package/lib/component/header/Header.js.map +1 -1
  332. package/lib/component/highlight/index.d.ts +6 -3
  333. package/lib/component/highlight/index.d.ts.map +1 -1
  334. package/lib/component/highlight/index.js +12 -9
  335. package/lib/component/highlight/index.js.map +1 -1
  336. package/lib/component/hooks/reduce2DSpectrum.js +2 -2
  337. package/lib/component/hooks/reduce2DSpectrum.js.map +1 -1
  338. package/lib/component/hooks/useCombinedRefs.d.ts +2 -2
  339. package/lib/component/hooks/useCombinedRefs.d.ts.map +1 -1
  340. package/lib/component/hooks/useCombinedRefs.js +0 -3
  341. package/lib/component/hooks/useCombinedRefs.js.map +1 -1
  342. package/lib/component/hooks/useDialogToggle.js +1 -1
  343. package/lib/component/hooks/useDialogToggle.js.map +1 -1
  344. package/lib/component/hooks/useExport.d.ts.map +1 -1
  345. package/lib/component/hooks/useExport.js +4 -6
  346. package/lib/component/hooks/useExport.js.map +1 -1
  347. package/lib/component/hooks/useSelectedSpectra.d.ts.map +1 -1
  348. package/lib/component/hooks/useSelectedSpectra.js +1 -1
  349. package/lib/component/hooks/useSelectedSpectra.js.map +1 -1
  350. package/lib/component/hooks/useTableSortBy.d.ts.map +1 -1
  351. package/lib/component/hooks/useTableSortBy.js +1 -1
  352. package/lib/component/hooks/useTableSortBy.js.map +1 -1
  353. package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
  354. package/lib/component/hooks/useTextMetrics.js +1 -0
  355. package/lib/component/hooks/useTextMetrics.js.map +1 -1
  356. package/lib/component/hooks/use_gridlines_config.d.ts.map +1 -1
  357. package/lib/component/hooks/use_gridlines_config.js +2 -4
  358. package/lib/component/hooks/use_gridlines_config.js.map +1 -1
  359. package/lib/component/loader/DropZone.js +2 -2
  360. package/lib/component/loader/DropZone.js.map +1 -1
  361. package/lib/component/loader/Spinner.js +3 -3
  362. package/lib/component/loader/Spinner.js.map +1 -1
  363. package/lib/component/loader/SpinnerContext.d.ts +1 -2
  364. package/lib/component/loader/SpinnerContext.d.ts.map +1 -1
  365. package/lib/component/loader/SpinnerContext.js +1 -2
  366. package/lib/component/loader/SpinnerContext.js.map +1 -1
  367. package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
  368. package/lib/component/loader/useLoadFiles.js +7 -9
  369. package/lib/component/loader/useLoadFiles.js.map +1 -1
  370. package/lib/component/main/InnerNMRium.d.ts +2 -2
  371. package/lib/component/main/InnerNMRium.d.ts.map +1 -1
  372. package/lib/component/main/InnerNMRium.js +15 -11
  373. package/lib/component/main/InnerNMRium.js.map +1 -1
  374. package/lib/component/main/InnerNMRiumContents.d.ts +2 -2
  375. package/lib/component/main/InnerNMRiumContents.d.ts.map +1 -1
  376. package/lib/component/main/NMRium.d.ts +10 -2
  377. package/lib/component/main/NMRium.d.ts.map +1 -1
  378. package/lib/component/main/NMRium.js +4 -4
  379. package/lib/component/main/NMRium.js.map +1 -1
  380. package/lib/component/main/NMRiumRefAPI.d.ts +2 -2
  381. package/lib/component/main/NMRiumRefAPI.d.ts.map +1 -1
  382. package/lib/component/main/NMRiumRefAPI.js.map +1 -1
  383. package/lib/component/main/NMRiumStateProvider.js +3 -3
  384. package/lib/component/main/NMRiumStateProvider.js.map +1 -1
  385. package/lib/component/main/NMRiumViewer.js +2 -1
  386. package/lib/component/main/NMRiumViewer.js.map +1 -1
  387. package/lib/component/modal/AboutPredictionModal.d.ts +1 -2
  388. package/lib/component/modal/AboutPredictionModal.d.ts.map +1 -1
  389. package/lib/component/modal/AboutPredictionModal.js +1 -2
  390. package/lib/component/modal/AboutPredictionModal.js.map +1 -1
  391. package/lib/component/modal/AboutSpectrumSimulationModal.d.ts +1 -2
  392. package/lib/component/modal/AboutSpectrumSimulationModal.d.ts.map +1 -1
  393. package/lib/component/modal/AboutSpectrumSimulationModal.js +1 -2
  394. package/lib/component/modal/AboutSpectrumSimulationModal.js.map +1 -1
  395. package/lib/component/modal/LoadJCAMPModal.js +1 -1
  396. package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
  397. package/lib/component/modal/LogsHistoryModal.d.ts.map +1 -1
  398. package/lib/component/modal/LogsHistoryModal.js +2 -2
  399. package/lib/component/modal/LogsHistoryModal.js.map +1 -1
  400. package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js +1 -1
  401. package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js.map +1 -1
  402. package/lib/component/modal/aboutUs/AboutUsModal.d.ts +1 -2
  403. package/lib/component/modal/aboutUs/AboutUsModal.d.ts.map +1 -1
  404. package/lib/component/modal/aboutUs/AboutUsModal.js +1 -2
  405. package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
  406. package/lib/component/modal/editRange/EditRangeModal.js +4 -7
  407. package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
  408. package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts.map +1 -1
  409. package/lib/component/modal/editRange/forms/components/SignalsContent.js +4 -4
  410. package/lib/component/modal/editRange/forms/components/SignalsContent.js.map +1 -1
  411. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts.map +1 -1
  412. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js +2 -6
  413. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
  414. package/lib/component/modal/editZone/SignalsForm.js +2 -2
  415. package/lib/component/modal/editZone/SignalsForm.js.map +1 -1
  416. package/lib/component/modal/metaImportation/MetaImportationModal.js +2 -5
  417. package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
  418. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js +3 -3
  419. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js.map +1 -1
  420. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts.map +1 -1
  421. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js.map +1 -1
  422. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +2 -1
  423. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
  424. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js +2 -3
  425. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js.map +1 -1
  426. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -1
  427. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js +5 -2
  428. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js.map +1 -1
  429. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -1
  430. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +3 -1
  431. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
  432. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -1
  433. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +5 -2
  434. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js.map +1 -1
  435. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js +2 -4
  436. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js.map +1 -1
  437. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js +2 -3
  438. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js.map +1 -1
  439. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +2 -3
  440. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js.map +1 -1
  441. package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js +1 -1
  442. package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js.map +1 -1
  443. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +3 -1
  444. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -1
  445. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +9 -4
  446. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -1
  447. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts.map +1 -1
  448. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js +2 -2
  449. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js.map +1 -1
  450. package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.js +2 -2
  451. package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.js.map +1 -1
  452. package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.d.ts +1 -2
  453. package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.d.ts.map +1 -1
  454. package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +1 -2
  455. package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js.map +1 -1
  456. package/lib/component/panels/IntegralsPanel/IntegralPanel.js +6 -6
  457. package/lib/component/panels/IntegralsPanel/IntegralPanel.js.map +1 -1
  458. package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts +5 -1
  459. package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts.map +1 -1
  460. package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +4 -3
  461. package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js.map +1 -1
  462. package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js +6 -6
  463. package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js.map +1 -1
  464. package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts.map +1 -1
  465. package/lib/component/panels/MoleculesPanel/MoleculePanel.js +0 -1
  466. package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
  467. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +1 -1
  468. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
  469. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.d.ts.map +1 -1
  470. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +11 -14
  471. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
  472. package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.d.ts +2 -2
  473. package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.d.ts.map +1 -1
  474. package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.js.map +1 -1
  475. package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts +2 -2
  476. package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts.map +1 -1
  477. package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js +2 -2
  478. package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js.map +1 -1
  479. package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts +5 -1
  480. package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts.map +1 -1
  481. package/lib/component/panels/PeaksPanel/PeaksPreferences.js +4 -3
  482. package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
  483. package/lib/component/panels/PeaksPanel/peaksToTSV.js +1 -4
  484. package/lib/component/panels/PeaksPanel/peaksToTSV.js.map +1 -1
  485. package/lib/component/panels/RangesPanel/RangesPanel.js +2 -2
  486. package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
  487. package/lib/component/panels/RangesPanel/RangesPreferences.d.ts +6 -2
  488. package/lib/component/panels/RangesPanel/RangesPreferences.d.ts.map +1 -1
  489. package/lib/component/panels/RangesPanel/RangesPreferences.js +4 -3
  490. package/lib/component/panels/RangesPanel/RangesPreferences.js.map +1 -1
  491. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
  492. package/lib/component/panels/RangesPanel/RangesTableRow.js +1 -1
  493. package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
  494. package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts +0 -1
  495. package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts.map +1 -1
  496. package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js.map +1 -1
  497. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts +0 -3
  498. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -1
  499. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -1
  500. package/lib/component/panels/SpectraPanel/SpectraPreferences.d.ts +7 -1
  501. package/lib/component/panels/SpectraPanel/SpectraPreferences.d.ts.map +1 -1
  502. package/lib/component/panels/SpectraPanel/SpectraPreferences.js +6 -5
  503. package/lib/component/panels/SpectraPanel/SpectraPreferences.js.map +1 -1
  504. package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
  505. package/lib/component/panels/SpectraPanel/SpectraTable.js +19 -12
  506. package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
  507. package/lib/component/panels/SpectraPanel/SpectraTabs.js +1 -1
  508. package/lib/component/panels/SpectraPanel/SpectraTabs.js.map +1 -1
  509. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts.map +1 -1
  510. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
  511. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.d.ts.map +1 -1
  512. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.js +15 -7
  513. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.js.map +1 -1
  514. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts.map +1 -1
  515. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js +10 -7
  516. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js.map +1 -1
  517. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.d.ts.map +1 -1
  518. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.js +12 -8
  519. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.js.map +1 -1
  520. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
  521. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +18 -19
  522. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
  523. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts.map +1 -1
  524. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +9 -11
  525. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js.map +1 -1
  526. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts.map +1 -1
  527. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +22 -19
  528. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js.map +1 -1
  529. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts.map +1 -1
  530. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +6 -7
  531. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js.map +1 -1
  532. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +2 -2
  533. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
  534. package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
  535. package/lib/component/panels/SummaryPanel/SummaryPanel.js +10 -13
  536. package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
  537. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
  538. package/lib/component/panels/SummaryPanel/utilities/Utilities.js +8 -10
  539. package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
  540. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
  541. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js.map +1 -1
  542. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.d.ts.map +1 -1
  543. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js +3 -1
  544. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js.map +1 -1
  545. package/lib/component/panels/ZonesPanel/ZonesPanel.d.ts.map +1 -1
  546. package/lib/component/panels/ZonesPanel/ZonesPanel.js +8 -9
  547. package/lib/component/panels/ZonesPanel/ZonesPanel.js.map +1 -1
  548. package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts +5 -1
  549. package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts.map +1 -1
  550. package/lib/component/panels/ZonesPanel/ZonesPreferences.js +4 -3
  551. package/lib/component/panels/ZonesPanel/ZonesPreferences.js.map +1 -1
  552. package/lib/component/panels/ZonesPanel/ZonesTable.d.ts +1 -1
  553. package/lib/component/panels/ZonesPanel/ZonesTable.d.ts.map +1 -1
  554. package/lib/component/panels/ZonesPanel/ZonesTable.js +3 -3
  555. package/lib/component/panels/ZonesPanel/ZonesTable.js.map +1 -1
  556. package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +2 -2
  557. package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts.map +1 -1
  558. package/lib/component/panels/ZonesPanel/ZonesTableRow.js +4 -5
  559. package/lib/component/panels/ZonesPanel/ZonesTableRow.js.map +1 -1
  560. package/lib/component/panels/ZonesPanel/hooks/useMapZones.js +1 -1
  561. package/lib/component/panels/ZonesPanel/hooks/useMapZones.js.map +1 -1
  562. package/lib/component/panels/databasePanel/DatabaseInfo.d.ts.map +1 -1
  563. package/lib/component/panels/databasePanel/DatabaseInfo.js +2 -0
  564. package/lib/component/panels/databasePanel/DatabaseInfo.js.map +1 -1
  565. package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
  566. package/lib/component/panels/databasePanel/DatabasePanel.js +5 -4
  567. package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
  568. package/lib/component/panels/databasePanel/DatabasePreferences.d.ts +6 -2
  569. package/lib/component/panels/databasePanel/DatabasePreferences.d.ts.map +1 -1
  570. package/lib/component/panels/databasePanel/DatabasePreferences.js +4 -3
  571. package/lib/component/panels/databasePanel/DatabasePreferences.js.map +1 -1
  572. package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts.map +1 -1
  573. package/lib/component/panels/databasePanel/DatabaseSearchOptions.js +1 -1
  574. package/lib/component/panels/databasePanel/DatabaseSearchOptions.js.map +1 -1
  575. package/lib/component/panels/databasePanel/DatabaseTable.js +1 -1
  576. package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
  577. package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts +1 -1
  578. package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts.map +1 -1
  579. package/lib/component/panels/extra/utilities/settingImperativeHandle.js.map +1 -1
  580. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +2 -2
  581. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
  582. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +12 -12
  583. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
  584. package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts.map +1 -1
  585. package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js +1 -2
  586. package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js.map +1 -1
  587. package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.d.ts.map +1 -1
  588. package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js +0 -2
  589. package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js.map +1 -1
  590. package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts.map +1 -1
  591. package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js +2 -5
  592. package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js.map +1 -1
  593. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
  594. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +3 -5
  595. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
  596. package/lib/component/panels/header/DefaultPanelHeader.d.ts.map +1 -1
  597. package/lib/component/panels/header/DefaultPanelHeader.js +1 -1
  598. package/lib/component/panels/header/DefaultPanelHeader.js.map +1 -1
  599. package/lib/component/panels/hooks/useGetPanelOptions.js +5 -5
  600. package/lib/component/panels/hooks/useGetPanelOptions.js.map +1 -1
  601. package/lib/component/panels/informationPanel/SpectraPicker.js +1 -1
  602. package/lib/component/panels/informationPanel/SpectraPicker.js.map +1 -1
  603. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts.map +1 -1
  604. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js +22 -17
  605. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js.map +1 -1
  606. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js +1 -1
  607. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js.map +1 -1
  608. package/lib/component/panels/multipleAnalysisPanel/preferences/index.d.ts +5 -2
  609. package/lib/component/panels/multipleAnalysisPanel/preferences/index.d.ts.map +1 -1
  610. package/lib/component/panels/multipleAnalysisPanel/preferences/index.js +4 -5
  611. package/lib/component/panels/multipleAnalysisPanel/preferences/index.js.map +1 -1
  612. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.d.ts +4 -2
  613. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.d.ts.map +1 -1
  614. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js +4 -8
  615. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js.map +1 -1
  616. package/lib/component/panels/predictionPanel/PredictionPanel.js +5 -5
  617. package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
  618. package/lib/component/panels/predictionPanel/PredictionPreferences.d.ts +6 -2
  619. package/lib/component/panels/predictionPanel/PredictionPreferences.d.ts.map +1 -1
  620. package/lib/component/panels/predictionPanel/PredictionPreferences.js +4 -3
  621. package/lib/component/panels/predictionPanel/PredictionPreferences.js.map +1 -1
  622. package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.d.ts +5 -2
  623. package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.d.ts.map +1 -1
  624. package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js +2 -3
  625. package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js.map +1 -1
  626. package/lib/component/reducer/IgnoreActions.d.ts +1 -2
  627. package/lib/component/reducer/IgnoreActions.d.ts.map +1 -1
  628. package/lib/component/reducer/IgnoreActions.js +2 -5
  629. package/lib/component/reducer/IgnoreActions.js.map +1 -1
  630. package/lib/component/reducer/Reducer.d.ts +1 -1
  631. package/lib/component/reducer/Reducer.d.ts.map +1 -1
  632. package/lib/component/reducer/Reducer.js +2 -0
  633. package/lib/component/reducer/Reducer.js.map +1 -1
  634. package/lib/component/reducer/actions/CorrelationsActions.d.ts +1 -1
  635. package/lib/component/reducer/actions/CorrelationsActions.d.ts.map +1 -1
  636. package/lib/component/reducer/actions/CorrelationsActions.js +15 -34
  637. package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
  638. package/lib/component/reducer/actions/DomainActions.js +4 -4
  639. package/lib/component/reducer/actions/DomainActions.js.map +1 -1
  640. package/lib/component/reducer/actions/FiltersActions.d.ts +43 -43
  641. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  642. package/lib/component/reducer/actions/FiltersActions.js +48 -52
  643. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  644. package/lib/component/reducer/actions/InsetActions.js +1 -1
  645. package/lib/component/reducer/actions/InsetActions.js.map +1 -1
  646. package/lib/component/reducer/actions/LoadAction.d.ts +1 -1
  647. package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
  648. package/lib/component/reducer/actions/LoadAction.js +37 -71
  649. package/lib/component/reducer/actions/LoadAction.js.map +1 -1
  650. package/lib/component/reducer/actions/MoleculeActions.d.ts +13 -13
  651. package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
  652. package/lib/component/reducer/actions/MoleculeActions.js +14 -18
  653. package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
  654. package/lib/component/reducer/actions/PeaksActions.d.ts +11 -11
  655. package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
  656. package/lib/component/reducer/actions/PeaksActions.js +12 -14
  657. package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
  658. package/lib/component/reducer/actions/PreferencesActions.d.ts +4 -4
  659. package/lib/component/reducer/actions/PreferencesActions.d.ts.map +1 -1
  660. package/lib/component/reducer/actions/PreferencesActions.js +4 -5
  661. package/lib/component/reducer/actions/PreferencesActions.js.map +1 -1
  662. package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
  663. package/lib/component/reducer/actions/RangesActions.js +8 -6
  664. package/lib/component/reducer/actions/RangesActions.js.map +1 -1
  665. package/lib/component/reducer/actions/SpectraActions.d.ts +20 -16
  666. package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
  667. package/lib/component/reducer/actions/SpectraActions.js +35 -30
  668. package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
  669. package/lib/component/reducer/actions/ToolsActions.d.ts +18 -18
  670. package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
  671. package/lib/component/reducer/actions/ToolsActions.js +18 -19
  672. package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
  673. package/lib/component/reducer/actions/ZonesActions.d.ts +4 -4
  674. package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
  675. package/lib/component/reducer/actions/ZonesActions.js +26 -26
  676. package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
  677. package/lib/component/reducer/actions/processings_actions.d.ts +1 -1
  678. package/lib/component/reducer/actions/processings_actions.d.ts.map +1 -1
  679. package/lib/component/reducer/actions/processings_actions.js +9 -9
  680. package/lib/component/reducer/actions/processings_actions.js.map +1 -1
  681. package/lib/component/reducer/helper/Zoom1DManager.js +2 -2
  682. package/lib/component/reducer/helper/Zoom1DManager.js.map +1 -1
  683. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
  684. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +3 -5
  685. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
  686. package/lib/component/useWatchForm.d.ts.map +1 -1
  687. package/lib/component/useWatchForm.js +0 -1
  688. package/lib/component/useWatchForm.js.map +1 -1
  689. package/lib/component/utility/Events.d.ts +4 -4
  690. package/lib/component/utility/Events.d.ts.map +1 -1
  691. package/lib/component/utility/Events.js +0 -1
  692. package/lib/component/utility/Events.js.map +1 -1
  693. package/lib/component/utility/export.d.ts.map +1 -1
  694. package/lib/component/utility/export.js +15 -18
  695. package/lib/component/utility/export.js.map +1 -1
  696. package/lib/data/PredictionManager.js +7 -8
  697. package/lib/data/PredictionManager.js.map +1 -1
  698. package/lib/data/SpectraManager.d.ts +3 -1
  699. package/lib/data/SpectraManager.d.ts.map +1 -1
  700. package/lib/data/SpectraManager.js +1 -1
  701. package/lib/data/SpectraManager.js.map +1 -1
  702. package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.d.ts.map +1 -1
  703. package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.js +7 -4
  704. package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.js.map +1 -1
  705. package/lib/data/data1d/Spectrum1D/generateJGraphData.d.ts.map +1 -1
  706. package/lib/data/data1d/Spectrum1D/generateJGraphData.js +9 -9
  707. package/lib/data/data1d/Spectrum1D/generateJGraphData.js.map +1 -1
  708. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js +2 -2
  709. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js.map +1 -1
  710. package/lib/data/data1d/database.js +3 -3
  711. package/lib/data/data1d/database.js.map +1 -1
  712. package/lib/data/data1d/multipleSpectraAnalysis.js +7 -7
  713. package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
  714. package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
  715. package/lib/data/data2d/Spectrum2D/contours.js +4 -3
  716. package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
  717. package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js +1 -1
  718. package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js.map +1 -1
  719. package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.d.ts.map +1 -1
  720. package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js +2 -2
  721. package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js.map +1 -1
  722. package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js +1 -2
  723. package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js.map +1 -1
  724. package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js +2 -2
  725. package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js.map +1 -1
  726. package/lib/data/matrixGeneration.d.ts.map +1 -1
  727. package/lib/data/matrixGeneration.js +3 -6
  728. package/lib/data/matrixGeneration.js.map +1 -1
  729. package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
  730. package/lib/data/parseMeta/linkMetaWithSpectra.js +1 -1
  731. package/lib/data/parseMeta/linkMetaWithSpectra.js.map +1 -1
  732. package/lib/data/utilities/RangeUtilities.d.ts +1 -1
  733. package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
  734. package/lib/data/utilities/ZoneUtilities.d.ts +1 -1
  735. package/lib/data/utilities/ZoneUtilities.d.ts.map +1 -1
  736. package/lib/data/utilities/ZoneUtilities.js +7 -31
  737. package/lib/data/utilities/ZoneUtilities.js.map +1 -1
  738. package/lib/data/utilities/generateNumbersPowerOfX.js +1 -1
  739. package/lib/data/utilities/generateNumbersPowerOfX.js.map +1 -1
  740. package/lib/versionInfo.js +1 -1
  741. package/package.json +40 -39
  742. package/src/component/1d/BrushTracker1D.tsx +153 -151
  743. package/src/component/1d/ExclusionZoneAnnotation.tsx +1 -1
  744. package/src/component/1d/ExclusionZonesAnnotations.tsx +2 -2
  745. package/src/component/1d/FloatPublicationString.tsx +34 -30
  746. package/src/component/1d/FooterBanner.tsx +4 -4
  747. package/src/component/1d/Line.tsx +1 -1
  748. package/src/component/1d/SimilarityTree.tsx +2 -2
  749. package/src/component/1d/SpectraLegends.tsx +6 -7
  750. package/src/component/1d/baseline/BaselinePreview.tsx +5 -5
  751. package/src/component/1d/database/DatabaseElements.tsx +1 -3
  752. package/src/component/1d/database/DatabaseSpectrum.tsx +3 -3
  753. package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +2 -2
  754. package/src/component/1d/inset/DraggableInset.tsx +4 -4
  755. package/src/component/1d/inset/InsetProvider.tsx +4 -6
  756. package/src/component/1d/inset/InsetViewerRoot.tsx +4 -4
  757. package/src/component/1d/integral/IntegralsSeries.tsx +1 -1
  758. package/src/component/1d/jCouplingGraph/JGraph.tsx +3 -3
  759. package/src/component/1d/jCouplingGraph/JGraphContext.tsx +3 -5
  760. package/src/component/1d/jCouplingGraph/JsCouplingLinks.tsx +4 -5
  761. package/src/component/1d/jCouplingGraph/JsCouplings.tsx +1 -1
  762. package/src/component/1d/matrix/Stocsy.tsx +1 -2
  763. package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +2 -1
  764. package/src/component/1d/peaks/PeakEditionManager.tsx +7 -14
  765. package/src/component/1d/peaks/Peaks.tsx +14 -32
  766. package/src/component/1d/ranges/AssignmentLabel.tsx +4 -3
  767. package/src/component/1d/ranges/Atoms.tsx +19 -19
  768. package/src/component/1d/ranges/FloatingRanges.tsx +12 -13
  769. package/src/component/1d/ranges/RangesIntegrals.tsx +7 -10
  770. package/src/component/1d/tool/BaseLine.tsx +4 -4
  771. package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +3 -10
  772. package/src/component/1d-2d/components/RangeIndicator.tsx +4 -3
  773. package/src/component/1d-2d/components/SVGRootContainer.tsx +2 -6
  774. package/src/component/1d-2d/components/Signals1D.tsx +3 -3
  775. package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +32 -24
  776. package/src/component/1d-2d/tools/BrushXY.tsx +2 -2
  777. package/src/component/1d-2d/tools/CursorToolIcon.tsx +1 -3
  778. package/src/component/1d-2d/tools/DistanceLine.tsx +2 -4
  779. package/src/component/2d/1d-tracer/Left1DChart.tsx +1 -5
  780. package/src/component/2d/1d-tracer/Ranges1D.tsx +0 -1
  781. package/src/component/2d/1d-tracer/Top1DChart.tsx +6 -9
  782. package/src/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.tsx +4 -2
  783. package/src/component/2d/BrushTracker2D.tsx +2 -1
  784. package/src/component/2d/FooterBanner.tsx +3 -2
  785. package/src/component/2d/IndirectAxis2D.tsx +1 -1
  786. package/src/component/2d/SlicingView.tsx +2 -2
  787. package/src/component/2d/Viewer2D.tsx +2 -2
  788. package/src/component/2d/tools/PivotIndicator.tsx +1 -3
  789. package/src/component/2d/utilities/scale.ts +1 -1
  790. package/src/component/2d/zones/SignalsGuideLines.tsx +6 -6
  791. package/src/component/2d/zones/Zone.tsx +4 -4
  792. package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +30 -19
  793. package/src/component/EventsTrackers/BrushTracker.tsx +14 -14
  794. package/src/component/EventsTrackers/MouseTracker.tsx +6 -7
  795. package/src/component/EventsTrackers/brush_tracker.types.ts +12 -4
  796. package/src/component/EventsTrackers/brush_tracker_events_listeners.ts +3 -6
  797. package/src/component/SVGTable.tsx +6 -5
  798. package/src/component/assignment/AssignmentProvider.tsx +5 -11
  799. package/src/component/assignment/AssignmentsContext.ts +7 -4
  800. package/src/component/assignment/utilities/getAssignments.ts +4 -9
  801. package/src/component/context/ChartContext.tsx +3 -4
  802. package/src/component/context/CoreContext.tsx +4 -4
  803. package/src/component/context/DispatchContext.tsx +3 -5
  804. package/src/component/context/FilterSyncOptionsContext.tsx +4 -4
  805. package/src/component/context/GlobalContext.tsx +3 -5
  806. package/src/component/context/KeyModifierContext.tsx +3 -7
  807. package/src/component/context/LoaderContext.tsx +4 -9
  808. package/src/component/context/LoggerContext.tsx +4 -4
  809. package/src/component/context/PreferencesContext.tsx +6 -5
  810. package/src/component/context/ScaleContext.tsx +3 -5
  811. package/src/component/context/ShareDataContext.tsx +3 -7
  812. package/src/component/context/SortSpectraContext.tsx +7 -20
  813. package/src/component/context/ToasterContext.tsx +3 -5
  814. package/src/component/context/TopicMoleculeContext.tsx +4 -4
  815. package/src/component/context/processings_mutations_context.api.ts +12 -9
  816. package/src/component/context/processings_mutations_context.tsx +4 -4
  817. package/src/component/elements/ActionsButtonsPopover.tsx +14 -13
  818. package/src/component/elements/Alert.tsx +4 -5
  819. package/src/component/elements/Anchor.tsx +42 -13
  820. package/src/component/elements/Button.tsx +1 -1
  821. package/src/component/elements/D3Axis.tsx +65 -66
  822. package/src/component/elements/DialogManager.tsx +10 -10
  823. package/src/component/elements/DraggableDialog.tsx +11 -12
  824. package/src/component/elements/EditableColumn.tsx +16 -17
  825. package/src/component/elements/Footer.tsx +9 -3
  826. package/src/component/elements/Input.tsx +101 -107
  827. package/src/component/elements/Input2.tsx +17 -21
  828. package/src/component/elements/InputRange.tsx +11 -11
  829. package/src/component/elements/IsotopesViewer.tsx +1 -1
  830. package/src/component/elements/NumberInput2.tsx +9 -18
  831. package/src/component/elements/NumberInput2Controller.tsx +23 -10
  832. package/src/component/elements/SVGGroup.tsx +18 -15
  833. package/src/component/elements/Scroller.tsx +3 -5
  834. package/src/component/elements/Sections.tsx +4 -4
  835. package/src/component/elements/Select.tsx +5 -10
  836. package/src/component/elements/Select2.tsx +5 -10
  837. package/src/component/elements/Tab/Tab.tsx +2 -2
  838. package/src/component/elements/Tab/Tabs.tsx +0 -2
  839. package/src/component/elements/TabsProvider.tsx +3 -5
  840. package/src/component/elements/custom-color-picker.tsx +230 -0
  841. package/src/component/elements/draggable/useDraggable.ts +4 -4
  842. package/src/component/elements/export/ExportManager.tsx +5 -9
  843. package/src/component/elements/export/ExportSettingsProvider.tsx +3 -5
  844. package/src/component/elements/export/RenderDetector.tsx +1 -0
  845. package/src/component/elements/print/PrintContent.tsx +3 -2
  846. package/src/component/elements/print/PrintProvider.tsx +6 -8
  847. package/src/component/elements/resizer/SVGResizer.tsx +0 -1
  848. package/src/component/elements/tanstack_table/elements/table_context.ts +4 -5
  849. package/src/component/elements/tanstack_table/elements/table_header.tsx +3 -1
  850. package/src/component/elements/tanstack_table/elements/table_row.tsx +44 -4
  851. package/src/component/elements/tanstack_table/elements/useRowReorder.ts +130 -0
  852. package/src/component/elements/tanstack_table/table.tsx +20 -10
  853. package/src/component/elements/tanstack_table/types.ts +9 -0
  854. package/src/component/elements/utilities/transferStyles.ts +1 -3
  855. package/src/component/header/Header.tsx +5 -4
  856. package/src/component/highlight/index.tsx +24 -16
  857. package/src/component/hooks/reduce2DSpectrum.ts +2 -2
  858. package/src/component/hooks/useCombinedRefs.ts +2 -5
  859. package/src/component/hooks/useDialogToggle.ts +1 -1
  860. package/src/component/hooks/useExport.tsx +4 -6
  861. package/src/component/hooks/useSelectedSpectra.ts +1 -2
  862. package/src/component/hooks/useTableSortBy.tsx +2 -1
  863. package/src/component/hooks/useTextMetrics.ts +1 -0
  864. package/src/component/hooks/use_gridlines_config.ts +2 -4
  865. package/src/component/loader/DropZone.tsx +3 -3
  866. package/src/component/loader/Spinner.tsx +3 -3
  867. package/src/component/loader/SpinnerContext.tsx +1 -3
  868. package/src/component/loader/useLoadFiles.ts +8 -9
  869. package/src/component/main/InnerNMRium.tsx +30 -25
  870. package/src/component/main/InnerNMRiumContents.tsx +2 -2
  871. package/src/component/main/NMRium.tsx +12 -8
  872. package/src/component/main/NMRiumRefAPI.ts +2 -2
  873. package/src/component/main/NMRiumStateProvider.tsx +6 -6
  874. package/src/component/main/NMRiumViewer.tsx +3 -1
  875. package/src/component/modal/AboutPredictionModal.tsx +1 -3
  876. package/src/component/modal/AboutSpectrumSimulationModal.tsx +1 -3
  877. package/src/component/modal/LoadJCAMPModal.tsx +1 -1
  878. package/src/component/modal/LogsHistoryModal.tsx +4 -2
  879. package/src/component/modal/MoleculeAutoLabelsDatabaseModal.tsx +1 -1
  880. package/src/component/modal/MultipletAnalysisModal.tsx +1 -1
  881. package/src/component/modal/PublicationStringModal.tsx +1 -1
  882. package/src/component/modal/aboutUs/AboutUsModal.tsx +1 -3
  883. package/src/component/modal/editRange/EditRangeModal.tsx +8 -7
  884. package/src/component/modal/editRange/forms/components/SignalsContent.tsx +4 -8
  885. package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +3 -13
  886. package/src/component/modal/editZone/SignalsForm.tsx +2 -2
  887. package/src/component/modal/metaImportation/MetaImportationModal.tsx +3 -6
  888. package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +4 -4
  889. package/src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx +1 -0
  890. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.tsx +2 -3
  891. package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +5 -2
  892. package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +3 -1
  893. package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +5 -2
  894. package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +2 -4
  895. package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.tsx +2 -3
  896. package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +2 -3
  897. package/src/component/modal/setting/tanstack_general_settings/ui/table_section.tsx +2 -2
  898. package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +9 -4
  899. package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts +2 -5
  900. package/src/component/modal/setting/tanstack_general_settings/workspaces/actions.tsx +7 -9
  901. package/src/component/panels/AutomaticAssignment/AutomaticAssignment.tsx +1 -3
  902. package/src/component/panels/IntegralsPanel/IntegralPanel.tsx +6 -6
  903. package/src/component/panels/IntegralsPanel/IntegralsPreferences.tsx +67 -64
  904. package/src/component/panels/MatrixGenerationPanel/FiltersOptions.tsx +7 -7
  905. package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +0 -1
  906. package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +1 -1
  907. package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +15 -14
  908. package/src/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.ts +4 -2
  909. package/src/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.ts +4 -4
  910. package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +86 -82
  911. package/src/component/panels/PeaksPanel/peaksToTSV.ts +4 -4
  912. package/src/component/panels/RangesPanel/RangesPanel.tsx +2 -2
  913. package/src/component/panels/RangesPanel/RangesPreferences.tsx +52 -46
  914. package/src/component/panels/RangesPanel/RangesTableRow.tsx +1 -6
  915. package/src/component/panels/RangesPanel/TableColumns/ActionsColumn.tsx +0 -1
  916. package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +1 -5
  917. package/src/component/panels/SpectraPanel/SpectraPreferences.tsx +11 -11
  918. package/src/component/panels/SpectraPanel/SpectraTable.tsx +22 -14
  919. package/src/component/panels/SpectraPanel/SpectraTabs.tsx +2 -2
  920. package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +3 -2
  921. package/src/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.tsx +46 -27
  922. package/src/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.tsx +12 -10
  923. package/src/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.tsx +38 -29
  924. package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +54 -59
  925. package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.tsx +9 -11
  926. package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.tsx +24 -22
  927. package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.tsx +8 -12
  928. package/src/component/panels/SummaryPanel/Overview.tsx +1 -1
  929. package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +2 -2
  930. package/src/component/panels/SummaryPanel/SummaryPanel.tsx +5 -9
  931. package/src/component/panels/SummaryPanel/utilities/Utilities.ts +4 -8
  932. package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.tsx +1 -1
  933. package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.tsx +4 -1
  934. package/src/component/panels/ZonesPanel/ZonesPanel.tsx +7 -9
  935. package/src/component/panels/ZonesPanel/ZonesPreferences.tsx +62 -58
  936. package/src/component/panels/ZonesPanel/ZonesTable.tsx +8 -16
  937. package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +5 -25
  938. package/src/component/panels/ZonesPanel/hooks/useMapZones.ts +1 -1
  939. package/src/component/panels/databasePanel/DatabaseInfo.tsx +2 -0
  940. package/src/component/panels/databasePanel/DatabasePanel.tsx +9 -6
  941. package/src/component/panels/databasePanel/DatabasePreferences.tsx +118 -114
  942. package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +3 -4
  943. package/src/component/panels/databasePanel/DatabaseTable.tsx +1 -1
  944. package/src/component/panels/extra/utilities/settingImperativeHandle.ts +1 -1
  945. package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +2 -2
  946. package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +15 -15
  947. package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +1 -4
  948. package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.tsx +0 -2
  949. package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.tsx +3 -6
  950. package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +4 -6
  951. package/src/component/panels/header/DefaultPanelHeader.tsx +4 -3
  952. package/src/component/panels/hooks/useGetPanelOptions.ts +6 -6
  953. package/src/component/panels/informationPanel/SpectraPicker.tsx +1 -1
  954. package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +29 -26
  955. package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.tsx +1 -1
  956. package/src/component/panels/multipleAnalysisPanel/preferences/index.tsx +12 -10
  957. package/src/component/panels/predictionPanel/PredictionOptionsPanel.tsx +113 -142
  958. package/src/component/panels/predictionPanel/PredictionPanel.tsx +5 -5
  959. package/src/component/panels/predictionPanel/PredictionPreferences.tsx +42 -36
  960. package/src/component/panels/spectrumSimulation/SpectrumSimulationPreferences.tsx +7 -6
  961. package/src/component/reducer/IgnoreActions.ts +2 -5
  962. package/src/component/reducer/Reducer.ts +3 -1
  963. package/src/component/reducer/actions/CorrelationsActions.ts +18 -34
  964. package/src/component/reducer/actions/DomainActions.ts +4 -4
  965. package/src/component/reducer/actions/FiltersActions.ts +75 -109
  966. package/src/component/reducer/actions/InsetActions.ts +1 -1
  967. package/src/component/reducer/actions/LoadAction.ts +50 -91
  968. package/src/component/reducer/actions/MoleculeActions.ts +24 -33
  969. package/src/component/reducer/actions/PeaksActions.ts +20 -26
  970. package/src/component/reducer/actions/PreferencesActions.ts +4 -10
  971. package/src/component/reducer/actions/RangesActions.ts +10 -8
  972. package/src/component/reducer/actions/SpectraActions.ts +52 -47
  973. package/src/component/reducer/actions/ToolsActions.ts +35 -38
  974. package/src/component/reducer/actions/ZonesActions.ts +36 -30
  975. package/src/component/reducer/actions/processings_actions.ts +10 -10
  976. package/src/component/reducer/helper/Zoom1DManager.ts +2 -2
  977. package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +5 -8
  978. package/src/component/useWatchForm.tsx +0 -1
  979. package/src/component/utility/Events.tsx +1 -3
  980. package/src/component/utility/export.ts +17 -20
  981. package/src/data/PredictionManager.ts +7 -12
  982. package/src/data/SpectraManager.ts +4 -2
  983. package/src/data/data1d/Spectrum1D/convertDataToFloat64Array.ts +7 -4
  984. package/src/data/data1d/Spectrum1D/generateJGraphData.ts +8 -9
  985. package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +2 -2
  986. package/src/data/data1d/database.ts +3 -3
  987. package/src/data/data1d/multipleSpectraAnalysis.ts +7 -7
  988. package/src/data/data2d/Spectrum2D/contours.ts +20 -20
  989. package/src/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.ts +1 -1
  990. package/src/data/data2d/Spectrum2D/findBestMinContour/evaluation.ts +3 -2
  991. package/src/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.ts +1 -2
  992. package/src/data/data2d/Spectrum2D/findBestMinContour/math.ts +2 -2
  993. package/src/data/matrixGeneration.ts +3 -6
  994. package/src/data/parseMeta/linkMetaWithSpectra.ts +1 -3
  995. package/src/data/utilities/RangeUtilities.ts +3 -3
  996. package/src/data/utilities/ZoneUtilities.ts +8 -34
  997. package/src/data/utilities/generateNumbersPowerOfX.ts +2 -2
  998. package/src/versionInfo.ts +1 -1
  999. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts +0 -9
  1000. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts.map +0 -1
  1001. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +0 -80
  1002. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js.map +0 -1
  1003. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts +0 -7
  1004. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts.map +0 -1
  1005. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +0 -7
  1006. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js.map +0 -1
  1007. package/lib/component/utility/colorToHexWithAlpha.d.ts +0 -10
  1008. package/lib/component/utility/colorToHexWithAlpha.d.ts.map +0 -1
  1009. package/lib/component/utility/colorToHexWithAlpha.js +0 -5
  1010. package/lib/component/utility/colorToHexWithAlpha.js.map +0 -1
  1011. package/lib/component/utility/forwardRef.d.ts +0 -3
  1012. package/lib/component/utility/forwardRef.d.ts.map +0 -1
  1013. package/lib/component/utility/forwardRef.js +0 -6
  1014. package/lib/component/utility/forwardRef.js.map +0 -1
  1015. package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.tsx +0 -130
  1016. package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.tsx +0 -32
  1017. package/src/component/utility/colorToHexWithAlpha.ts +0 -7
  1018. package/src/component/utility/forwardRef.ts +0 -10
@@ -17,6 +17,7 @@ interface TableHeaderProps<
17
17
  > extends TableCellEvent {
18
18
  headerGroups: Array<TanStackTableHeaderGroup<TData>>;
19
19
  table: TanStackReactTable<TData>;
20
+ enableRowReordering?: boolean;
20
21
  }
21
22
 
22
23
  const sortIconStyle: CSSProperties = {
@@ -29,12 +30,13 @@ const sortIconStyle: CSSProperties = {
29
30
  export default function TableHeader<TData extends TanStackRowData>(
30
31
  props: TableHeaderProps<TData>,
31
32
  ) {
32
- const { headerGroups, table, onClick } = props;
33
+ const { headerGroups, table, onClick, enableRowReordering } = props;
33
34
  return (
34
35
  <thead>
35
36
  {headerGroups.map((headerGroup) => {
36
37
  return (
37
38
  <tr key={headerGroup.id}>
39
+ {enableRowReordering && <th />}
38
40
  {headerGroup.headers.map((header) => (
39
41
  <HeaderCell
40
42
  key={header.id}
@@ -1,6 +1,8 @@
1
1
  /** @jsxImportSource @emotion/react */
2
+ import { Icon } from '@blueprintjs/core';
2
3
  import type { CSSObject, SerializedStyles } from '@emotion/react';
3
4
  import { css } from '@emotion/react';
5
+ import type { Edge } from '@zakodium/pdnd-esm';
4
6
  import type { MouseEvent } from 'react';
5
7
  import { useCallback, useEffect, useMemo } from 'react';
6
8
 
@@ -14,14 +16,22 @@ import type {
14
16
  TanStackTableClickEvent,
15
17
  TanStackTableContextMenuProps,
16
18
  TanStackTableHighlightSourceProps,
19
+ TanStackTableReorderEvent,
17
20
  TanStackTableRow,
18
21
  TanStackTableRowStyle,
19
22
  } from '../types.ts';
20
23
 
24
+ import { useRowReorder } from './useRowReorder.ts';
25
+
26
+ const draggingStyle = { backgroundColor: '#e8f3f9' };
27
+ const dropLineColor = '#137cbd';
28
+
21
29
  function getRowStyle(
22
30
  isActive: boolean,
23
31
  rowStyle: TanStackTableRowStyle = {},
24
32
  disableDefaultRowStyle?: boolean,
33
+ closestEdge?: Edge | null,
34
+ isDragging = false,
25
35
  ): SerializedStyles {
26
36
  const { hover = {}, active = {}, base = {}, activated = {} } = rowStyle;
27
37
 
@@ -39,13 +49,30 @@ function getRowStyle(
39
49
  {
40
50
  ...baseStyle,
41
51
  ...(isActive && { backgroundColor: '#ff6f0070', ...activated }),
52
+ ...(isDragging && { opacity: 1, ...draggingStyle }),
53
+ ...(closestEdge && {
54
+ [closestEdge === 'top' ? '> td' : '+ tr > td']: {
55
+ boxShadow: `inset 0 2px ${dropLineColor}`,
56
+ },
57
+ }),
58
+ ...(closestEdge === 'bottom' && {
59
+ ':last-child > td': {
60
+ boxShadow: `inset 0 -2px ${dropLineColor}`,
61
+ },
62
+ }),
63
+ },
64
+ {
65
+ ':hover': isDragging ? draggingStyle : hoverStyle,
66
+ ':active': isDragging ? draggingStyle : activeStyle,
42
67
  },
43
- { ':hover': hoverStyle, ':active': activeStyle },
44
68
  ]);
45
69
  }
46
70
 
47
71
  interface TableRowProps<TData extends TanStackRowData>
48
- extends TanStackTableClickEvent<TData>, TanStackTableContextMenuProps<TData> {
72
+ extends
73
+ TanStackTableClickEvent<TData>,
74
+ TanStackTableContextMenuProps<TData>,
75
+ TanStackTableReorderEvent<TData> {
49
76
  row: TanStackTableRow<TData>;
50
77
  table: TanStackReactTable<TData>;
51
78
  isRowActive: boolean;
@@ -77,12 +104,15 @@ export default function TableRow<TData extends TanStackRowData>(
77
104
  highlightedSource = 'UNKNOWN',
78
105
  getHighlightExtra,
79
106
  onContextMenuSelect,
80
- contextMenu = [],
107
+ contextMenu,
81
108
  onClick,
109
+ onReorder,
82
110
  isRowActive = false,
83
111
  rowStyle,
84
112
  disableDefaultRowStyle,
85
113
  } = props;
114
+ const { rowRef, handleRef, isReorderActive, isDragging, closestEdge } =
115
+ useRowReorder(row, onReorder);
86
116
  const data = useMemo(
87
117
  (): HighlightEventSource =>
88
118
  ({
@@ -98,7 +128,7 @@ export default function TableRow<TData extends TanStackRowData>(
98
128
  highlight.hide();
99
129
  };
100
130
  // TODO: avoid this hack.
101
- // eslint-disable-next-line react-hooks/exhaustive-deps
131
+ // eslint-disable-next-line @eslint-react/exhaustive-deps
102
132
  }, []);
103
133
 
104
134
  const clickHandler = useCallback(
@@ -116,14 +146,24 @@ export default function TableRow<TData extends TanStackRowData>(
116
146
  onContextMenuSelect?.(selected, row.original)
117
147
  }
118
148
  as="tr"
149
+ ref={rowRef}
119
150
  style={{ position: 'static' }}
120
151
  css={getRowStyle(
121
152
  highlight.isActive || isRowActive,
122
153
  rowStyle,
123
154
  disableDefaultRowStyle,
155
+ closestEdge,
156
+ isDragging,
124
157
  )}
125
158
  {...highlight.onHover}
126
159
  >
160
+ {isReorderActive && (
161
+ <td style={{ width: '16px', padding: '0px' }}>
162
+ <div ref={handleRef} style={{ cursor: 'grab', display: 'flex' }}>
163
+ <Icon icon="drag-handle-vertical" />
164
+ </div>
165
+ </td>
166
+ )}
127
167
  {row.getAllCells().map((cell) => {
128
168
  const rowSpan = cell.getRowSpan();
129
169
  const colSpan = cell.getColSpan();
@@ -0,0 +1,130 @@
1
+ import type {
2
+ Edge,
3
+ ElementDropTargetEventBasePayload,
4
+ } from '@zakodium/pdnd-esm';
5
+ import {
6
+ attachClosestEdge,
7
+ combine,
8
+ draggable,
9
+ dropTargetForElements,
10
+ extractClosestEdge,
11
+ getReorderDestinationIndex,
12
+ } from '@zakodium/pdnd-esm';
13
+ import { useEffect, useRef, useState } from 'react';
14
+
15
+ import type {
16
+ TanStackRowData,
17
+ TanStackTableReorderEvent,
18
+ TanStackTableRow,
19
+ } from '../types.ts';
20
+
21
+ export function useRowReorder<TData extends TanStackRowData>(
22
+ row: TanStackTableRow<TData>,
23
+ onReorder: TanStackTableReorderEvent<TData>['onReorder'],
24
+ ) {
25
+ const rowRef = useRef<HTMLTableRowElement>(null);
26
+ const handleRef = useRef<HTMLDivElement>(null);
27
+ const isReorderActive = typeof onReorder === 'function';
28
+ const [isDragging, setIsDragging] = useState(false);
29
+ const [closestEdge, setClosestEdge] = useState<Edge | null>(null);
30
+
31
+ useEffect(() => {
32
+ const element = rowRef.current;
33
+ const dragHandle = handleRef.current;
34
+ if (!element || !dragHandle || !onReorder) return;
35
+
36
+ const data = { id: row.id, index: row.index, row: row.original };
37
+
38
+ function handleNativeDragStart(event: DragEvent) {
39
+ if (event.target === element && event.dataTransfer) {
40
+ event.dataTransfer.effectAllowed = 'move';
41
+ }
42
+ }
43
+
44
+ function canDrop({
45
+ source,
46
+ }: {
47
+ source: { data: Record<string, unknown> };
48
+ }) {
49
+ return source.data.id !== data.id;
50
+ }
51
+
52
+ function handleDrag({
53
+ source,
54
+ self,
55
+ }: ElementDropTargetEventBasePayload): void {
56
+ if (source.element === element) {
57
+ setClosestEdge(null);
58
+ return;
59
+ }
60
+ const edge = extractClosestEdge(self.data);
61
+ const targetIndex = getReorderDestinationIndex({
62
+ startIndex: source.data.index as number,
63
+ indexOfTarget: data.index,
64
+ closestEdgeOfTarget: edge,
65
+ axis: 'vertical',
66
+ });
67
+ setClosestEdge(targetIndex === source.data.index ? null : edge);
68
+ }
69
+
70
+ element.addEventListener('dragstart', handleNativeDragStart);
71
+
72
+ return combine(
73
+ () => element.removeEventListener('dragstart', handleNativeDragStart),
74
+ draggable({
75
+ element,
76
+ dragHandle,
77
+ getInitialData: () => data,
78
+ onGenerateDragPreview() {
79
+ element.style.backgroundColor = '#e8f3f9';
80
+ },
81
+ onDragStart() {
82
+ element.style.removeProperty('background-color');
83
+ setIsDragging(true);
84
+ },
85
+ onDrop() {
86
+ element.style.removeProperty('background-color');
87
+ setIsDragging(false);
88
+ },
89
+ }),
90
+ dropTargetForElements({
91
+ element,
92
+ canDrop,
93
+ getData({ input }) {
94
+ return attachClosestEdge(data, {
95
+ element,
96
+ input,
97
+ allowedEdges: ['top', 'bottom'],
98
+ });
99
+ },
100
+ onDrag: handleDrag,
101
+ onDragLeave() {
102
+ setClosestEdge(null);
103
+ },
104
+ onDrop({ location, source }) {
105
+ const target = location.current.dropTargets[0];
106
+ if (!target) return;
107
+
108
+ const edge = extractClosestEdge(target.data);
109
+ const targetIndex = getReorderDestinationIndex({
110
+ startIndex: source.data.index as number,
111
+ indexOfTarget: target.data.index as number,
112
+ closestEdgeOfTarget: edge,
113
+ axis: 'vertical',
114
+ });
115
+ setClosestEdge(null);
116
+ if (targetIndex !== source.data.index) {
117
+ onReorder(
118
+ source.data.index as number,
119
+ targetIndex,
120
+ source.data.row as TData,
121
+ target.data.row as TData,
122
+ );
123
+ }
124
+ },
125
+ }),
126
+ );
127
+ }, [onReorder, row.id, row.index, row.original]);
128
+
129
+ return { rowRef, handleRef, isReorderActive, isDragging, closestEdge };
130
+ }
@@ -22,7 +22,7 @@ import { useResizeObserver } from 'react-d3-utils';
22
22
  import { BaseReactTable } from './elements/base_react_table.tsx';
23
23
  import { EmptyDataRow } from './elements/empty_data_row.tsx';
24
24
  import {
25
- TanStackTableProvider,
25
+ TanStackTableContext,
26
26
  useTanStackTableContext,
27
27
  } from './elements/table_context.ts';
28
28
  import TableHeader from './elements/table_header.tsx';
@@ -34,6 +34,7 @@ import type {
34
34
  TanStackTableColumn,
35
35
  TanStackTableContextMenuProps,
36
36
  TanStackTableHighlightSourceProps,
37
+ TanStackTableReorderEvent,
37
38
  TanStackTableRow,
38
39
  TanStackTableRowStyle,
39
40
  TanStackTableSortEvent,
@@ -44,12 +45,12 @@ interface TanStackTableProps<TData extends TanStackRowData>
44
45
  extends
45
46
  TanStackTableContextMenuProps<TData>,
46
47
  TanStackTableClickEvent<TData>,
47
- TanStackTableSortEvent<TData> {
48
+ TanStackTableSortEvent<TData>,
49
+ TanStackTableReorderEvent<TData> {
48
50
  data: readonly TData[];
49
51
  columns: ReadonlyArray<TanStackTableColumn<TData, any>>;
50
52
  approxItemHeight?: number;
51
53
  approxColumnWidth?: number;
52
- groupKey?: keyof TData;
53
54
  indexKey?: string;
54
55
  enableVirtualScroll?: boolean;
55
56
  enableColumnsVirtualScroll?: boolean;
@@ -60,7 +61,6 @@ interface TanStackTableProps<TData extends TanStackRowData>
60
61
  rowStyle?:
61
62
  | TanStackTableRowStyle
62
63
  | ((row: TanStackTableRow<TData>) => TanStackTableRowStyle | undefined);
63
- style?: CSSObject | SerializedStyles;
64
64
  disableDefaultRowStyle?: boolean;
65
65
  enableCellSpanning?: boolean;
66
66
  }
@@ -73,7 +73,11 @@ type ReactTableInnerProps<TData extends TanStackRowData> =
73
73
  };
74
74
 
75
75
  type ReactTableOuterProps<TData extends TanStackRowData> =
76
- TanStackTableProps<TData> & TanStackTableHighlightSourceProps<TData>;
76
+ TanStackTableProps<TData> &
77
+ TanStackTableHighlightSourceProps<TData> & {
78
+ groupKey?: keyof TData;
79
+ style?: CSSObject | SerializedStyles;
80
+ };
77
81
 
78
82
  const styles = {
79
83
  table: (
@@ -122,6 +126,7 @@ function TanStackTableInner<TData extends TanStackRowData>(
122
126
  enableColumnsVirtualScroll = false,
123
127
  approxColumnWidth = 40,
124
128
  onClick,
129
+ onReorder,
125
130
  activeRow,
126
131
  totalCount,
127
132
  indexKey = 'index',
@@ -194,6 +199,11 @@ function TanStackTableInner<TData extends TanStackRowData>(
194
199
  isSortedEventTriggered.current = true;
195
200
  }
196
201
 
202
+ function handleReorder(...args: Parameters<NonNullable<typeof onReorder>>) {
203
+ onReorder?.(...args);
204
+ table.setSorting([]);
205
+ }
206
+
197
207
  const end =
198
208
  virtualBoundary.rows.end === rows.length - 1
199
209
  ? virtualBoundary.rows.end + 1
@@ -241,6 +251,7 @@ function TanStackTableInner<TData extends TanStackRowData>(
241
251
  headerGroups={table.getHeaderGroups()}
242
252
  table={table}
243
253
  onClick={headerClickHandler}
254
+ enableRowReordering={typeof onReorder === 'function'}
244
255
  />
245
256
  <tbody>
246
257
  {!data ||
@@ -268,11 +279,10 @@ function TanStackTableInner<TData extends TanStackRowData>(
268
279
  ? clickHandler
269
280
  : onClick
270
281
  }
282
+ onReorder={onReorder ? handleReorder : undefined}
271
283
  isRowActive={
272
284
  !activeRow
273
- ? enableDefaultActiveRow
274
- ? rowIndex === index
275
- : false
285
+ ? enableDefaultActiveRow && rowIndex === index
276
286
  : activeRow(row)
277
287
  }
278
288
  rowStyle={
@@ -442,7 +452,7 @@ function TanStackTable<TData extends TanStackRowData>(
442
452
  }
443
453
 
444
454
  return (
445
- <TanStackTableProvider value={tableVirtualBoundary}>
455
+ <TanStackTableContext value={tableVirtualBoundary}>
446
456
  <div
447
457
  ref={mRef}
448
458
  css={css(
@@ -460,7 +470,7 @@ function TanStackTable<TData extends TanStackRowData>(
460
470
  {...props}
461
471
  />
462
472
  </div>
463
- </TanStackTableProvider>
473
+ </TanStackTableContext>
464
474
  );
465
475
  }
466
476
 
@@ -75,6 +75,15 @@ export interface TanStackTableSortEvent<TData extends TanStackRowData> {
75
75
  onSortEnd?: (data: TData[], isTableSorted?: boolean) => void;
76
76
  }
77
77
 
78
+ export interface TanStackTableReorderEvent<TData extends TanStackRowData> {
79
+ onReorder?: (
80
+ sourceIndex: number,
81
+ targetIndex: number,
82
+ source: TData,
83
+ target: TData,
84
+ ) => void;
85
+ }
86
+
78
87
  interface VirtualBoundary {
79
88
  start: number;
80
89
  end: number;
@@ -3,9 +3,7 @@ function getCssTextFromStyleSheet(
3
3
  ): string | undefined {
4
4
  try {
5
5
  if (!styleSheet.cssRules) return undefined;
6
- return Array.from(styleSheet.cssRules)
7
- .map((rule) => rule.cssText)
8
- .join('\n');
6
+ return Array.from(styleSheet.cssRules, (rule) => rule.cssText).join('\n');
9
7
  } catch (error) {
10
8
  if (
11
9
  error instanceof DOMException &&
@@ -64,11 +64,16 @@ export const headerLabelStyle: LabelStyle = {
64
64
  alignItems: 'center',
65
65
  },
66
66
  };
67
+
67
68
  interface HeaderInnerProps {
68
69
  selectedOptionPanel: string | null;
69
70
  height: number;
70
71
  }
71
72
 
73
+ function renderItem(item: any) {
74
+ return <WorkspaceItem item={item} />;
75
+ }
76
+
72
77
  function HeaderInner(props: HeaderInnerProps) {
73
78
  const { selectedOptionPanel, height } = props;
74
79
 
@@ -124,10 +129,6 @@ function HeaderInner(props: HeaderInnerProps) {
124
129
  setActiveWorkspace(option.key);
125
130
  }
126
131
 
127
- function renderItem(item: any) {
128
- return <WorkspaceItem item={item} />;
129
- }
130
-
131
132
  return (
132
133
  <ContainerQueryWrapper
133
134
  widthThreshold={1200}
@@ -2,8 +2,8 @@ import type { Range } from '@zakodium/nmr-types';
2
2
  import type { CSSProperties, MouseEvent, PropsWithChildren } from 'react';
3
3
  import {
4
4
  createContext,
5
+ use,
5
6
  useCallback,
6
- useContext,
7
7
  useEffect,
8
8
  useMemo,
9
9
  useReducer,
@@ -77,8 +77,10 @@ interface HighlightPayload {
77
77
  id?: number | string;
78
78
  sourceData?: HighlightEventSource | null;
79
79
  }
80
- interface HighlightContextProps {
80
+
81
+ interface HighlightContextValue {
81
82
  highlight: HighlightState;
83
+ externalHighlightedIds: ReadonlySet<string>;
82
84
  dispatch: (props: {
83
85
  type: HighlightActions;
84
86
  payload?: HighlightPayload;
@@ -93,11 +95,12 @@ const emptyState = {
93
95
  highlightedPermanently: [],
94
96
  sourceData: null,
95
97
  },
98
+ externalHighlightedIds: new Set<string>(),
96
99
  dispatch: () => null,
97
100
  remove: () => null,
98
101
  };
99
102
 
100
- const highlightContext = createContext<HighlightContextProps>(emptyState);
103
+ const HighlightContext = createContext<HighlightContextValue>(emptyState);
101
104
 
102
105
  function highlightReducer(
103
106
  state: HighlightState,
@@ -164,11 +167,19 @@ function highlightReducer(
164
167
  }
165
168
  }
166
169
 
167
- export function HighlightProvider(props: PropsWithChildren) {
170
+ export function HighlightProvider(
171
+ props: PropsWithChildren<{ highlightedIds?: readonly string[] }>,
172
+ ) {
173
+ const { highlightedIds, children } = props;
174
+
168
175
  const [highlight, dispatch] = useReducer(
169
176
  highlightReducer,
170
177
  emptyState.highlight,
171
178
  );
179
+ const externalHighlightedIds = useMemo(
180
+ () => new Set(highlightedIds),
181
+ [highlightedIds],
182
+ );
172
183
 
173
184
  const contextValue = useMemo(() => {
174
185
  function remove() {
@@ -177,18 +188,14 @@ export function HighlightProvider(props: PropsWithChildren) {
177
188
  payload: { convertedHighlights: highlight.highlighted },
178
189
  });
179
190
  }
180
- return { highlight, dispatch, remove };
181
- }, [highlight]);
191
+ return { highlight, externalHighlightedIds, dispatch, remove };
192
+ }, [externalHighlightedIds, highlight]);
182
193
 
183
- return (
184
- <highlightContext.Provider value={contextValue}>
185
- {props.children}
186
- </highlightContext.Provider>
187
- );
194
+ return <HighlightContext value={contextValue}>{children}</HighlightContext>;
188
195
  }
189
196
 
190
197
  export function useHighlightData() {
191
- return useContext(highlightContext);
198
+ return use(HighlightContext);
192
199
  }
193
200
 
194
201
  /**
@@ -202,7 +209,7 @@ export function useHighlight(
202
209
  if (!Array.isArray(highlights)) {
203
210
  throw new Error('highlights must be an array');
204
211
  }
205
- const { dispatch, highlight } = useHighlightData();
212
+ const { dispatch, highlight, externalHighlightedIds } = useHighlightData();
206
213
 
207
214
  const convertedHighlights = useMemo(() => {
208
215
  const newHighlights: string[] = [];
@@ -227,10 +234,11 @@ export function useHighlight(
227
234
  }, [dispatch]);
228
235
 
229
236
  const isActive = useMemo(() => {
230
- return highlight.highlighted.some((key) =>
231
- convertedHighlights.includes(key),
237
+ return convertedHighlights.some(
238
+ (key) =>
239
+ highlight.highlighted.includes(key) || externalHighlightedIds.has(key),
232
240
  );
233
- }, [convertedHighlights, highlight.highlighted]);
241
+ }, [convertedHighlights, externalHighlightedIds, highlight.highlighted]);
234
242
 
235
243
  const isActivePermanently = useMemo(() => {
236
244
  return highlight.highlightedPermanently.some((key) =>
@@ -70,8 +70,8 @@ export function reduce2DSpectrum(
70
70
  Math.floor(((newCol + 1) * sourceNbPointsX) / newNbPointsX);
71
71
 
72
72
  let sum = 0;
73
- let min = Number.POSITIVE_INFINITY;
74
- let max = Number.NEGATIVE_INFINITY;
73
+ let min = Infinity;
74
+ let max = -Infinity;
75
75
 
76
76
  for (let row = srcRowStart; row < srcRowEnd; row++) {
77
77
  const rowData = z[row];
@@ -1,20 +1,17 @@
1
- import type { ForwardedRef, RefCallback, RefObject } from 'react';
1
+ import type { RefCallback, RefObject } from 'react';
2
2
  import { useEffect, useRef } from 'react';
3
3
 
4
4
  export default function useCombinedRefs<T>(
5
- refs: Array<RefCallback<T> | RefObject<T> | ForwardedRef<T>>,
5
+ refs: Array<RefCallback<T> | RefObject<T> | undefined | null>,
6
6
  ) {
7
7
  const targetRef = useRef<any>(undefined);
8
8
 
9
- // eslint-disable-next-line react-hooks/immutability
10
9
  useEffect(() => {
11
10
  for (const ref of refs) {
12
11
  if (!ref) return;
13
12
  if (typeof ref === 'function') {
14
13
  ref(targetRef.current);
15
14
  } else {
16
- // Mutating a ref.
17
- // eslint-disable-next-line react-hooks/immutability
18
15
  ref.current = targetRef.current;
19
16
  }
20
17
  }
@@ -13,7 +13,7 @@ export function useDialogToggle<T extends Record<string, boolean>>(
13
13
  setDialogState(
14
14
  (currentState) =>
15
15
  Object.fromEntries(
16
- Object.entries(currentState).map(([key]) => [key as keyof T, false]),
16
+ Object.keys(currentState).map((key) => [key as keyof T, false]),
17
17
  ) as T,
18
18
  );
19
19
  }
@@ -103,13 +103,12 @@ export function useExportViewport() {
103
103
  });
104
104
  resolve();
105
105
  } catch (error: unknown) {
106
+ // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
107
+ reject(error);
106
108
  if (error instanceof Error) {
107
109
  toaster.show({ intent: 'danger', message: error.message });
108
- reject(error);
109
110
  } else {
110
111
  toaster.show(browserNotSupportedErrorToast);
111
- // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
112
- reject(error);
113
112
  }
114
113
  } finally {
115
114
  hideLoading();
@@ -157,13 +156,12 @@ export function useExportViewport() {
157
156
  });
158
157
  resolve();
159
158
  } catch (error: unknown) {
159
+ // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
160
+ reject(error);
160
161
  if (error instanceof Error) {
161
162
  toaster.show({ intent: 'danger', message: error.message });
162
- reject(error);
163
163
  } else {
164
164
  toaster.show(browserNotSupportedErrorToast);
165
- // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
166
- reject(error);
167
165
  }
168
166
  } finally {
169
167
  hideLoading();
@@ -9,10 +9,9 @@ export function useSelectedSpectra() {
9
9
  const activeSpectrum = useActiveSpectra();
10
10
  const { data } = useChartData();
11
11
  return useMemo<Spectrum[] | null>(() => {
12
- const spectra = [];
13
-
14
12
  if (!activeSpectrum || activeSpectrum?.length === 0) return null;
15
13
 
14
+ const spectra = [];
16
15
  for (const active of activeSpectrum) {
17
16
  const spectrum = data?.[active.index];
18
17
  if (spectrum) {
@@ -20,7 +20,8 @@ export default function useTableSortBy<ItemType extends object>(
20
20
  sortableItems.sort((a, b) => {
21
21
  if (sortConfig.direction === 'ASCENDING') {
22
22
  return dlv(a, sortConfig.key, 0) - dlv(b, sortConfig.key, 0);
23
- } else if (sortConfig.direction === 'DESCENDING') {
23
+ }
24
+ if (sortConfig.direction === 'DESCENDING') {
24
25
  return dlv(b, sortConfig.key, 0) - dlv(a, sortConfig.key, 0);
25
26
  }
26
27
  return 0;
@@ -22,6 +22,7 @@ export function useTextMetrics(options: UseTextMetricsOptions = {}) {
22
22
  const canvas = useCanvas(debugCanvasWidth);
23
23
  const size = typeof fontSize === 'number' ? `${fontSize}px` : fontSize;
24
24
 
25
+ // TODO: ctx should probably be in a ref. It is wrong to mutate it during rendering.
25
26
  const ctx = canvas.getContext('2d');
26
27
  if (ctx) ctx.font = `${fontStyle} ${fontWeight} ${size} Arial`;
27
28
 
@@ -2,16 +2,14 @@ import { usePreferences } from '../context/PreferencesContext.tsx';
2
2
  import { workspaceDefaultProperties } from '../workspaces/workspaceDefaultProperties.ts';
3
3
 
4
4
  export function useGridline1DConfig() {
5
- const preferences = usePreferences();
6
- const { current } = preferences;
5
+ const { current } = usePreferences();
7
6
  const axis = current.axis ?? workspaceDefaultProperties.axis;
8
7
 
9
8
  return axis.gridlines1D;
10
9
  }
11
10
 
12
11
  export function useGridline2DConfig() {
13
- const preferences = usePreferences();
14
- const { current } = preferences;
12
+ const { current } = usePreferences();
15
13
  const axis = current.axis ?? workspaceDefaultProperties.axis;
16
14
 
17
15
  return axis.gridlines2D;