nmrium 2.6.0 → 2.8.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 (482) hide show
  1. package/lib/component/1d/ApodizationLine.js +2 -2
  2. package/lib/component/1d/ApodizationLine.js.map +1 -1
  3. package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
  4. package/lib/component/1d/BrushTracker1D.js +15 -14
  5. package/lib/component/1d/BrushTracker1D.js.map +1 -1
  6. package/lib/component/1d/Line.js +2 -2
  7. package/lib/component/1d/Line.js.map +1 -1
  8. package/lib/component/1d/SVGContent1D.d.ts.map +1 -1
  9. package/lib/component/1d/SVGContent1D.js +4 -1
  10. package/lib/component/1d/SVGContent1D.js.map +1 -1
  11. package/lib/component/1d/Viewer1D.d.ts.map +1 -1
  12. package/lib/component/1d/Viewer1D.js +2 -1
  13. package/lib/component/1d/Viewer1D.js.map +1 -1
  14. package/lib/component/1d/baseline/BaselinePreview.js +2 -2
  15. package/lib/component/1d/baseline/BaselinePreview.js.map +1 -1
  16. package/lib/component/1d/database/DatabaseSpectrum.js +2 -2
  17. package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
  18. package/lib/component/1d/database/ResurrectedDatabaseRanges.js +2 -2
  19. package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
  20. package/lib/component/1d/matrix/Boxplot.js +5 -5
  21. package/lib/component/1d/matrix/Boxplot.js.map +1 -1
  22. package/lib/component/1d/matrix/Stocsy.js +2 -2
  23. package/lib/component/1d/matrix/Stocsy.js.map +1 -1
  24. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.d.ts.map +1 -1
  25. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +12 -3
  26. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
  27. package/lib/component/1d/peaks/usePeakShapesPath.js +2 -2
  28. package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
  29. package/lib/component/1d/plugin_chart_brush_tracker.d.ts +2 -0
  30. package/lib/component/1d/plugin_chart_brush_tracker.d.ts.map +1 -0
  31. package/lib/component/1d/plugin_chart_brush_tracker.js +41 -0
  32. package/lib/component/1d/plugin_chart_brush_tracker.js.map +1 -0
  33. package/lib/component/1d/plugin_svg_chart.d.ts +2 -0
  34. package/lib/component/1d/plugin_svg_chart.d.ts.map +1 -0
  35. package/lib/component/1d/plugin_svg_chart.js +43 -0
  36. package/lib/component/1d/plugin_svg_chart.js.map +1 -0
  37. package/lib/component/1d-2d/components/RangeIndicator.d.ts.map +1 -1
  38. package/lib/component/1d-2d/components/RangeIndicator.js +1 -7
  39. package/lib/component/1d-2d/components/RangeIndicator.js.map +1 -1
  40. package/lib/component/1d-2d/tools/BrushXY.d.ts +1 -1
  41. package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
  42. package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
  43. package/lib/component/1d-2d/tools/CrossLinePointer.d.ts +1 -1
  44. package/lib/component/1d-2d/tools/CrossLinePointer.d.ts.map +1 -1
  45. package/lib/component/1d-2d/tools/CrossLinePointer.js.map +1 -1
  46. package/lib/component/2d/1d-tracer/HorizontalSliceChart.js +2 -2
  47. package/lib/component/2d/1d-tracer/HorizontalSliceChart.js.map +1 -1
  48. package/lib/component/2d/1d-tracer/Left1DChart.js +2 -2
  49. package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
  50. package/lib/component/2d/1d-tracer/Top1DChart.js +2 -2
  51. package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
  52. package/lib/component/2d/1d-tracer/VerticalSliceChart.js +2 -2
  53. package/lib/component/2d/1d-tracer/VerticalSliceChart.js.map +1 -1
  54. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.js +3 -3
  55. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.js.map +1 -1
  56. package/lib/component/2d/BrushTracker2D.js.map +1 -1
  57. package/lib/component/2d/ft/Contours.js +2 -2
  58. package/lib/component/2d/ft/Contours.js.map +1 -1
  59. package/lib/component/2d/utilities/DimensionLayout.d.ts +1 -1
  60. package/lib/component/2d/utilities/DimensionLayout.d.ts.map +1 -1
  61. package/lib/component/EventsTrackers/BrushTracker.d.ts +1 -84
  62. package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
  63. package/lib/component/EventsTrackers/BrushTracker.js +70 -3
  64. package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
  65. package/lib/component/EventsTrackers/brush_tracker.types.d.ts +93 -0
  66. package/lib/component/EventsTrackers/brush_tracker.types.d.ts.map +1 -0
  67. package/lib/component/EventsTrackers/brush_tracker.types.js +2 -0
  68. package/lib/component/EventsTrackers/brush_tracker.types.js.map +1 -0
  69. package/lib/component/EventsTrackers/brush_tracker_events_listeners.d.ts +7 -0
  70. package/lib/component/EventsTrackers/brush_tracker_events_listeners.d.ts.map +1 -0
  71. package/lib/component/EventsTrackers/brush_tracker_events_listeners.js +15 -0
  72. package/lib/component/EventsTrackers/brush_tracker_events_listeners.js.map +1 -0
  73. package/lib/component/context/ScaleContext.d.ts +1 -1
  74. package/lib/component/context/ScaleContext.d.ts.map +1 -1
  75. package/lib/component/elements/D3Axis.d.ts.map +1 -1
  76. package/lib/component/elements/D3Axis.js +15 -32
  77. package/lib/component/elements/D3Axis.js.map +1 -1
  78. package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
  79. package/lib/component/elements/export/ExportContent.js +2 -2
  80. package/lib/component/elements/export/ExportContent.js.map +1 -1
  81. package/lib/component/elements/export/ExportOptionsModal.d.ts.map +1 -1
  82. package/lib/component/elements/export/ExportOptionsModal.js +9 -3
  83. package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
  84. package/lib/component/elements/export/useExportConfigurer.d.ts +1 -0
  85. package/lib/component/elements/export/useExportConfigurer.d.ts.map +1 -1
  86. package/lib/component/elements/export/useExportConfigurer.js +5 -0
  87. package/lib/component/elements/export/useExportConfigurer.js.map +1 -1
  88. package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
  89. package/lib/component/elements/print/PrintContent.js +6 -25
  90. package/lib/component/elements/print/PrintContent.js.map +1 -1
  91. package/lib/component/elements/tanstack_table/create_action_column.d.ts +11 -0
  92. package/lib/component/elements/tanstack_table/create_action_column.d.ts.map +1 -0
  93. package/lib/component/elements/tanstack_table/create_action_column.js +24 -0
  94. package/lib/component/elements/tanstack_table/create_action_column.js.map +1 -0
  95. package/lib/component/elements/tanstack_table/create_column_helper.d.ts +5 -0
  96. package/lib/component/elements/tanstack_table/create_column_helper.d.ts.map +1 -0
  97. package/lib/component/elements/tanstack_table/create_column_helper.js +5 -0
  98. package/lib/component/elements/tanstack_table/create_column_helper.js.map +1 -0
  99. package/lib/component/elements/{ReactTable/BaseReactTable.d.ts → tanstack_table/elements/base_react_table.d.ts} +1 -1
  100. package/lib/component/elements/tanstack_table/elements/base_react_table.d.ts.map +1 -0
  101. package/lib/component/elements/{ReactTable/BaseReactTable.js → tanstack_table/elements/base_react_table.js} +1 -1
  102. package/lib/component/elements/tanstack_table/elements/base_react_table.js.map +1 -0
  103. package/lib/component/elements/{ReactTable/Elements/EmptyDataRow.d.ts → tanstack_table/elements/empty_data_row.d.ts} +1 -1
  104. package/lib/component/elements/tanstack_table/elements/empty_data_row.d.ts.map +1 -0
  105. package/lib/component/elements/{ReactTable/Elements/EmptyDataRow.js → tanstack_table/elements/empty_data_row.js} +1 -1
  106. package/lib/component/elements/tanstack_table/elements/empty_data_row.js.map +1 -0
  107. package/lib/component/elements/tanstack_table/elements/table_context.d.ts +4 -0
  108. package/lib/component/elements/tanstack_table/elements/table_context.d.ts.map +1 -0
  109. package/lib/component/elements/tanstack_table/elements/table_context.js +11 -0
  110. package/lib/component/elements/tanstack_table/elements/table_context.js.map +1 -0
  111. package/lib/component/elements/tanstack_table/elements/table_header.d.ts +12 -0
  112. package/lib/component/elements/tanstack_table/elements/table_header.d.ts.map +1 -0
  113. package/lib/component/elements/tanstack_table/elements/table_header.js +42 -0
  114. package/lib/component/elements/tanstack_table/elements/table_header.js.map +1 -0
  115. package/lib/component/elements/tanstack_table/elements/table_row.d.ts +12 -0
  116. package/lib/component/elements/tanstack_table/elements/table_row.d.ts.map +1 -0
  117. package/lib/component/elements/{ReactTable/Elements/ReactTableRow.js → tanstack_table/elements/table_row.js} +18 -17
  118. package/lib/component/elements/tanstack_table/elements/table_row.js.map +1 -0
  119. package/lib/component/elements/tanstack_table/features.d.ts +21 -0
  120. package/lib/component/elements/tanstack_table/features.d.ts.map +1 -0
  121. package/lib/component/elements/tanstack_table/features.js +14 -0
  122. package/lib/component/elements/tanstack_table/features.js.map +1 -0
  123. package/lib/component/elements/tanstack_table/index.d.ts +6 -0
  124. package/lib/component/elements/tanstack_table/index.d.ts.map +1 -0
  125. package/lib/component/elements/tanstack_table/index.js +6 -0
  126. package/lib/component/elements/tanstack_table/index.js.map +1 -0
  127. package/lib/component/elements/tanstack_table/table.d.ts +26 -0
  128. package/lib/component/elements/tanstack_table/table.d.ts.map +1 -0
  129. package/lib/component/elements/{ReactTable/ReactTable.js → tanstack_table/table.js} +29 -37
  130. package/lib/component/elements/tanstack_table/table.js.map +1 -0
  131. package/lib/component/elements/tanstack_table/types.d.ts +47 -0
  132. package/lib/component/elements/tanstack_table/types.d.ts.map +1 -0
  133. package/lib/component/elements/tanstack_table/types.js +2 -0
  134. package/lib/component/elements/tanstack_table/types.js.map +1 -0
  135. package/lib/component/elements/utilities/transferStyles.d.ts +2 -0
  136. package/lib/component/elements/utilities/transferStyles.d.ts.map +1 -0
  137. package/lib/component/elements/utilities/transferStyles.js +29 -0
  138. package/lib/component/elements/utilities/transferStyles.js.map +1 -0
  139. package/lib/component/header/AutoPeakPickingOptionPanel.js +1 -1
  140. package/lib/component/header/AutoPeakPickingOptionPanel.js.map +1 -1
  141. package/lib/component/hooks/useIntegralPath.js +2 -2
  142. package/lib/component/hooks/useIntegralPath.js.map +1 -1
  143. package/lib/component/modal/ImportPublicationStringModal.d.ts.map +1 -1
  144. package/lib/component/modal/ImportPublicationStringModal.js +91 -73
  145. package/lib/component/modal/ImportPublicationStringModal.js.map +1 -1
  146. package/lib/component/modal/LogsHistoryModal.d.ts.map +1 -1
  147. package/lib/component/modal/LogsHistoryModal.js +44 -40
  148. package/lib/component/modal/LogsHistoryModal.js.map +1 -1
  149. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.d.ts.map +1 -1
  150. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js +48 -44
  151. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
  152. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts.map +1 -1
  153. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js +36 -32
  154. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
  155. package/lib/component/modal/metaImportation/MetaImportationModal.d.ts.map +1 -1
  156. package/lib/component/modal/metaImportation/MetaImportationModal.js +15 -14
  157. package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
  158. package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +106 -105
  159. package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts.map +1 -1
  160. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +106 -105
  161. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts.map +1 -1
  162. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +106 -105
  163. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -1
  164. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +91 -90
  165. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
  166. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +91 -90
  167. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -1
  168. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +15 -15
  169. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +91 -90
  170. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -1
  171. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +91 -90
  172. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts.map +1 -1
  173. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +91 -90
  174. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -1
  175. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +91 -90
  176. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -1
  177. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +12 -10
  178. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -1
  179. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +32 -40
  180. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
  181. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +91 -90
  182. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -1
  183. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +91 -90
  184. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -1
  185. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +91 -90
  186. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -1
  187. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +91 -90
  188. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -1
  189. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +91 -90
  190. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -1
  191. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +91 -90
  192. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -1
  193. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +91 -90
  194. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts.map +1 -1
  195. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +91 -90
  196. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -1
  197. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +91 -90
  198. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -1
  199. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +61 -17
  200. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -1
  201. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +79 -28
  202. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -1
  203. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +15 -15
  204. package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts +1 -1
  205. package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts.map +1 -1
  206. package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +29 -26
  207. package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js.map +1 -1
  208. package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts.map +1 -1
  209. package/lib/component/panels/IntegralsPanel/IntegralTable.js +70 -76
  210. package/lib/component/panels/IntegralsPanel/IntegralTable.js.map +1 -1
  211. package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.d.ts.map +1 -1
  212. package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +33 -29
  213. package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js.map +1 -1
  214. package/lib/component/panels/PeaksPanel/PeaksTable.d.ts +8 -6
  215. package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
  216. package/lib/component/panels/PeaksPanel/PeaksTable.js +116 -126
  217. package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
  218. package/lib/component/panels/PeaksPanel/peaksToTSV.d.ts +2 -2
  219. package/lib/component/panels/PeaksPanel/peaksToTSV.d.ts.map +1 -1
  220. package/lib/component/panels/PeaksPanel/peaksToTSV.js +9 -11
  221. package/lib/component/panels/PeaksPanel/peaksToTSV.js.map +1 -1
  222. package/lib/component/panels/RangesPanel/RangesTable.d.ts +3 -2
  223. package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
  224. package/lib/component/panels/RangesPanel/RangesTable.js.map +1 -1
  225. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +2 -2
  226. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
  227. package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
  228. package/lib/component/panels/SpectraPanel/SpectraTable.js +37 -26
  229. package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
  230. package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.d.ts +1 -1
  231. package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.d.ts.map +1 -1
  232. package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.js +56 -52
  233. package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.js.map +1 -1
  234. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.d.ts.map +1 -1
  235. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +23 -20
  236. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
  237. package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +2 -2
  238. package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts.map +1 -1
  239. package/lib/component/panels/databasePanel/DatabaseTable.d.ts +1 -1
  240. package/lib/component/panels/databasePanel/DatabaseTable.d.ts.map +1 -1
  241. package/lib/component/panels/databasePanel/DatabaseTable.js +171 -153
  242. package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
  243. package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.d.ts.map +1 -1
  244. package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.js +27 -24
  245. package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.js.map +1 -1
  246. package/lib/component/panels/filtersPanel/processings_sections_panel.js +1 -1
  247. package/lib/component/panels/filtersPanel/processings_sections_panel.js.map +1 -1
  248. package/lib/component/panels/informationPanel/InformationEditionModal.d.ts.map +1 -1
  249. package/lib/component/panels/informationPanel/InformationEditionModal.js +69 -64
  250. package/lib/component/panels/informationPanel/InformationEditionModal.js.map +1 -1
  251. package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.d.ts +3 -3
  252. package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.d.ts.map +1 -1
  253. package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js +69 -56
  254. package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js.map +1 -1
  255. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js +1 -1
  256. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js.map +1 -1
  257. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.d.ts.map +1 -1
  258. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js +17 -20
  259. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js.map +1 -1
  260. package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.d.ts.map +1 -1
  261. package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.js +25 -20
  262. package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.js.map +1 -1
  263. package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.d.ts.map +1 -1
  264. package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.js +41 -36
  265. package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.js.map +1 -1
  266. package/lib/component/panels/spectrumSimulation/SpinSystemTable.d.ts.map +1 -1
  267. package/lib/component/panels/spectrumSimulation/SpinSystemTable.js +14 -15
  268. package/lib/component/panels/spectrumSimulation/SpinSystemTable.js.map +1 -1
  269. package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
  270. package/lib/component/reducer/actions/DatabaseActions.js +3 -2
  271. package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
  272. package/lib/component/reducer/actions/InsetActions.d.ts +1 -1
  273. package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
  274. package/lib/component/reducer/actions/ToolsActions.d.ts +1 -1
  275. package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
  276. package/lib/component/reducer/helper/Zoom1DManager.d.ts +1 -1
  277. package/lib/component/reducer/helper/Zoom1DManager.d.ts.map +1 -1
  278. package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +1 -1
  279. package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
  280. package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +1 -1
  281. package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts.map +1 -1
  282. package/lib/component/toolbar/nmr_toolbar.js +1 -1
  283. package/lib/component/toolbar/nmr_toolbar.js.map +1 -1
  284. package/lib/component/utility/Events.d.ts +1 -1
  285. package/lib/component/utility/Events.d.ts.map +1 -1
  286. package/lib/component/utility/core_slots/core_operator_brush.commons.d.ts +9 -0
  287. package/lib/component/utility/core_slots/core_operator_brush.commons.d.ts.map +1 -0
  288. package/lib/component/utility/core_slots/core_operator_brush.commons.js +15 -0
  289. package/lib/component/utility/core_slots/core_operator_brush.commons.js.map +1 -0
  290. package/lib/component/utility/core_slots/core_operator_chart_brush.commons.d.ts +7 -0
  291. package/lib/component/utility/core_slots/core_operator_chart_brush.commons.d.ts.map +1 -0
  292. package/lib/component/utility/core_slots/core_operator_chart_brush.commons.js +82 -0
  293. package/lib/component/utility/core_slots/core_operator_chart_brush.commons.js.map +1 -0
  294. package/lib/component/utility/core_slots/core_operator_chart_brush_tracker.d.ts +8 -0
  295. package/lib/component/utility/core_slots/core_operator_chart_brush_tracker.d.ts.map +1 -0
  296. package/lib/component/utility/core_slots/core_operator_chart_brush_tracker.js +11 -0
  297. package/lib/component/utility/core_slots/core_operator_chart_brush_tracker.js.map +1 -0
  298. package/lib/component/utility/core_slots/core_operator_chart_svg.d.ts +8 -0
  299. package/lib/component/utility/core_slots/core_operator_chart_svg.d.ts.map +1 -0
  300. package/lib/component/utility/core_slots/core_operator_chart_svg.js +11 -0
  301. package/lib/component/utility/core_slots/core_operator_chart_svg.js.map +1 -0
  302. package/lib/component/utility/core_slots/core_operator_panel_tool.d.ts +2 -8
  303. package/lib/component/utility/core_slots/core_operator_panel_tool.d.ts.map +1 -1
  304. package/lib/component/utility/core_slots/core_operator_panel_tool.js +8 -6
  305. package/lib/component/utility/core_slots/core_operator_panel_tool.js.map +1 -1
  306. package/lib/component/utility/core_slots/core_operator_tool.commons.d.ts +11 -0
  307. package/lib/component/utility/core_slots/core_operator_tool.commons.d.ts.map +1 -0
  308. package/lib/component/utility/core_slots/core_operator_tool.commons.js +30 -0
  309. package/lib/component/utility/core_slots/core_operator_tool.commons.js.map +1 -0
  310. package/lib/component/utility/core_slots/core_operator_tool.d.ts +2 -8
  311. package/lib/component/utility/core_slots/core_operator_tool.d.ts.map +1 -1
  312. package/lib/component/utility/core_slots/core_operator_tool.js +8 -6
  313. package/lib/component/utility/core_slots/core_operator_tool.js.map +1 -1
  314. package/lib/component/utility/export.d.ts +5 -0
  315. package/lib/component/utility/export.d.ts.map +1 -1
  316. package/lib/component/utility/export.js +22 -0
  317. package/lib/component/utility/export.js.map +1 -1
  318. package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
  319. package/lib/data/data2d/Spectrum2D/contours.js +23 -10
  320. package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
  321. package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.d.ts +13 -0
  322. package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.d.ts.map +1 -0
  323. package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js +40 -0
  324. package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js.map +1 -0
  325. package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.d.ts +27 -0
  326. package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.d.ts.map +1 -0
  327. package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js +230 -0
  328. package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js.map +1 -0
  329. package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.d.ts +227 -0
  330. package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.d.ts.map +1 -0
  331. package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js +67 -0
  332. package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js.map +1 -0
  333. package/lib/data/data2d/Spectrum2D/findBestMinContour/math.d.ts +4 -0
  334. package/lib/data/data2d/Spectrum2D/findBestMinContour/math.d.ts.map +1 -0
  335. package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js +42 -0
  336. package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js.map +1 -0
  337. package/lib/data/utilities/calculateSanPlot.d.ts +3 -1
  338. package/lib/data/utilities/calculateSanPlot.d.ts.map +1 -1
  339. package/lib/data/utilities/calculateSanPlot.js +2 -2
  340. package/lib/data/utilities/calculateSanPlot.js.map +1 -1
  341. package/lib/versionInfo.js +1 -1
  342. package/package.json +7 -8
  343. package/src/component/1d/ApodizationLine.tsx +2 -2
  344. package/src/component/1d/BrushTracker1D.tsx +19 -21
  345. package/src/component/1d/Line.tsx +2 -2
  346. package/src/component/1d/SVGContent1D.tsx +6 -0
  347. package/src/component/1d/Viewer1D.tsx +2 -0
  348. package/src/component/1d/baseline/BaselinePreview.tsx +2 -2
  349. package/src/component/1d/database/DatabaseSpectrum.tsx +2 -2
  350. package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +2 -2
  351. package/src/component/1d/matrix/Boxplot.tsx +5 -5
  352. package/src/component/1d/matrix/Stocsy.tsx +2 -2
  353. package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +17 -3
  354. package/src/component/1d/peaks/usePeakShapesPath.ts +2 -2
  355. package/src/component/1d/plugin_chart_brush_tracker.tsx +63 -0
  356. package/src/component/1d/plugin_svg_chart.tsx +60 -0
  357. package/src/component/1d-2d/components/RangeIndicator.tsx +8 -9
  358. package/src/component/1d-2d/tools/BrushXY.tsx +1 -1
  359. package/src/component/1d-2d/tools/CrossLinePointer.tsx +1 -1
  360. package/src/component/2d/1d-tracer/HorizontalSliceChart.tsx +2 -2
  361. package/src/component/2d/1d-tracer/Left1DChart.tsx +2 -2
  362. package/src/component/2d/1d-tracer/Top1DChart.tsx +2 -2
  363. package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +2 -2
  364. package/src/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.tsx +3 -3
  365. package/src/component/2d/BrushTracker2D.tsx +5 -5
  366. package/src/component/2d/ft/Contours.tsx +2 -2
  367. package/src/component/2d/utilities/DimensionLayout.ts +1 -1
  368. package/src/component/EventsTrackers/BrushTracker.tsx +118 -115
  369. package/src/component/EventsTrackers/brush_tracker.types.ts +111 -0
  370. package/src/component/EventsTrackers/brush_tracker_events_listeners.ts +32 -0
  371. package/src/component/context/ScaleContext.tsx +1 -1
  372. package/src/component/elements/D3Axis.tsx +49 -67
  373. package/src/component/elements/export/ExportContent.tsx +3 -2
  374. package/src/component/elements/export/ExportOptionsModal.tsx +32 -1
  375. package/src/component/elements/export/useExportConfigurer.tsx +6 -0
  376. package/src/component/elements/print/PrintContent.tsx +6 -27
  377. package/src/component/elements/tanstack_table/create_action_column.tsx +43 -0
  378. package/src/component/elements/tanstack_table/create_column_helper.ts +11 -0
  379. package/src/component/elements/tanstack_table/elements/table_context.ts +15 -0
  380. package/src/component/elements/tanstack_table/elements/table_header.tsx +111 -0
  381. package/src/component/elements/{ReactTable/Elements/ReactTableRow.tsx → tanstack_table/elements/table_row.tsx} +51 -50
  382. package/src/component/elements/tanstack_table/features.ts +33 -0
  383. package/src/component/elements/tanstack_table/index.ts +5 -0
  384. package/src/component/elements/{ReactTable/ReactTable.tsx → tanstack_table/table.tsx} +78 -157
  385. package/src/component/elements/tanstack_table/types.ts +86 -0
  386. package/src/component/elements/utilities/transferStyles.ts +32 -0
  387. package/src/component/header/AutoPeakPickingOptionPanel.tsx +1 -1
  388. package/src/component/hooks/useIntegralPath.ts +2 -2
  389. package/src/component/modal/ImportPublicationStringModal.tsx +160 -136
  390. package/src/component/modal/LogsHistoryModal.tsx +32 -25
  391. package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +28 -24
  392. package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +27 -25
  393. package/src/component/modal/metaImportation/MetaImportationModal.tsx +19 -15
  394. package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +47 -57
  395. package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +100 -28
  396. package/src/component/panels/AutomaticAssignment/AutomaticAssignmentTable.tsx +27 -25
  397. package/src/component/panels/IntegralsPanel/IntegralTable.tsx +75 -89
  398. package/src/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.tsx +68 -60
  399. package/src/component/panels/PeaksPanel/PeaksTable.tsx +126 -124
  400. package/src/component/panels/PeaksPanel/peaksToTSV.ts +14 -15
  401. package/src/component/panels/RangesPanel/RangesTable.tsx +3 -2
  402. package/src/component/panels/RangesPanel/RangesTableRow.tsx +2 -2
  403. package/src/component/panels/SpectraPanel/SpectraTable.tsx +58 -36
  404. package/src/component/panels/SpectraPanel/base/SpectraColumnsManager.tsx +31 -35
  405. package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +25 -20
  406. package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +2 -2
  407. package/src/component/panels/databasePanel/DatabasePanel.tsx +1 -1
  408. package/src/component/panels/databasePanel/DatabaseTable.tsx +189 -183
  409. package/src/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.tsx +20 -20
  410. package/src/component/panels/filtersPanel/processings_sections_panel.tsx +1 -1
  411. package/src/component/panels/informationPanel/InformationEditionModal.tsx +40 -37
  412. package/src/component/panels/multipleAnalysisPanel/AlignSpectra.tsx +128 -98
  413. package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.tsx +1 -1
  414. package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.tsx +23 -24
  415. package/src/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.tsx +33 -24
  416. package/src/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.tsx +34 -31
  417. package/src/component/panels/spectrumSimulation/SpinSystemTable.tsx +19 -18
  418. package/src/component/reducer/actions/DatabaseActions.ts +4 -3
  419. package/src/component/reducer/actions/InsetActions.ts +1 -1
  420. package/src/component/reducer/actions/ToolsActions.ts +1 -1
  421. package/src/component/reducer/helper/Zoom1DManager.ts +1 -1
  422. package/src/component/reducer/helper/ZoomHistoryManager.ts +1 -1
  423. package/src/component/reducer/preferences/actions/matrixGeneration.ts +1 -1
  424. package/src/component/toolbar/nmr_toolbar.tsx +1 -1
  425. package/src/component/utility/Events.tsx +1 -1
  426. package/src/component/utility/core_slots/core_operator_brush.commons.ts +18 -0
  427. package/src/component/utility/core_slots/core_operator_chart_brush.commons.ts +138 -0
  428. package/src/component/utility/core_slots/core_operator_chart_brush_tracker.tsx +27 -0
  429. package/src/component/utility/core_slots/core_operator_chart_svg.tsx +46 -0
  430. package/src/component/utility/core_slots/core_operator_panel_tool.tsx +9 -27
  431. package/src/component/utility/core_slots/core_operator_tool.commons.ts +63 -0
  432. package/src/component/utility/core_slots/core_operator_tool.tsx +9 -27
  433. package/src/component/utility/export.ts +34 -0
  434. package/src/data/data2d/Spectrum2D/contours.ts +40 -14
  435. package/src/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.ts +67 -0
  436. package/src/data/data2d/Spectrum2D/findBestMinContour/evaluation.ts +432 -0
  437. package/src/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.ts +431 -0
  438. package/src/data/data2d/Spectrum2D/findBestMinContour/math.ts +59 -0
  439. package/src/data/utilities/calculateSanPlot.ts +2 -1
  440. package/src/versionInfo.ts +1 -1
  441. package/lib/component/elements/ReactTable/BaseReactTable.d.ts.map +0 -1
  442. package/lib/component/elements/ReactTable/BaseReactTable.js.map +0 -1
  443. package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts.map +0 -1
  444. package/lib/component/elements/ReactTable/Elements/EmptyDataRow.js.map +0 -1
  445. package/lib/component/elements/ReactTable/Elements/ReactTableHeader.d.ts +0 -10
  446. package/lib/component/elements/ReactTable/Elements/ReactTableHeader.d.ts.map +0 -1
  447. package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js +0 -27
  448. package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js.map +0 -1
  449. package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +0 -16
  450. package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts.map +0 -1
  451. package/lib/component/elements/ReactTable/Elements/ReactTableRow.js.map +0 -1
  452. package/lib/component/elements/ReactTable/ReactTable.d.ts +0 -64
  453. package/lib/component/elements/ReactTable/ReactTable.d.ts.map +0 -1
  454. package/lib/component/elements/ReactTable/ReactTable.js.map +0 -1
  455. package/lib/component/elements/ReactTable/utility/ReactTableContext.d.ts +0 -4
  456. package/lib/component/elements/ReactTable/utility/ReactTableContext.d.ts.map +0 -1
  457. package/lib/component/elements/ReactTable/utility/ReactTableContext.js +0 -11
  458. package/lib/component/elements/ReactTable/utility/ReactTableContext.js.map +0 -1
  459. package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts +0 -19
  460. package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts.map +0 -1
  461. package/lib/component/elements/ReactTable/utility/addCustomColumn.js +0 -36
  462. package/lib/component/elements/ReactTable/utility/addCustomColumn.js.map +0 -1
  463. package/lib/component/elements/ReactTable/utility/useRowSpan.d.ts +0 -9
  464. package/lib/component/elements/ReactTable/utility/useRowSpan.d.ts.map +0 -1
  465. package/lib/component/elements/ReactTable/utility/useRowSpan.js +0 -40
  466. package/lib/component/elements/ReactTable/utility/useRowSpan.js.map +0 -1
  467. package/lib/component/elements/export/utilities/transferDocumentStyles.d.ts +0 -2
  468. package/lib/component/elements/export/utilities/transferDocumentStyles.d.ts.map +0 -1
  469. package/lib/component/elements/export/utilities/transferDocumentStyles.js +0 -21
  470. package/lib/component/elements/export/utilities/transferDocumentStyles.js.map +0 -1
  471. package/lib/component/utility/PathBuilder.d.ts +0 -10
  472. package/lib/component/utility/PathBuilder.d.ts.map +0 -1
  473. package/lib/component/utility/PathBuilder.js +0 -38
  474. package/lib/component/utility/PathBuilder.js.map +0 -1
  475. package/src/component/elements/ReactTable/Elements/ReactTableHeader.tsx +0 -81
  476. package/src/component/elements/ReactTable/utility/ReactTableContext.ts +0 -14
  477. package/src/component/elements/ReactTable/utility/addCustomColumn.tsx +0 -75
  478. package/src/component/elements/ReactTable/utility/useRowSpan.ts +0 -61
  479. package/src/component/elements/export/utilities/transferDocumentStyles.ts +0 -21
  480. package/src/component/utility/PathBuilder.ts +0 -41
  481. /package/src/component/elements/{ReactTable/BaseReactTable.tsx → tanstack_table/elements/base_react_table.tsx} +0 -0
  482. /package/src/component/elements/{ReactTable/Elements/EmptyDataRow.tsx → tanstack_table/elements/empty_data_row.tsx} +0 -0
@@ -0,0 +1,431 @@
1
+ import {
2
+ createThresholdIndex,
3
+ evaluateFallbackThreshold,
4
+ evaluateThreshold,
5
+ findRidgeFreeThresholdTopDown,
6
+ generateCandidateSigmaLevels,
7
+ maxPoolAbsolute,
8
+ } from './evaluation.js';
9
+ import { validateInput } from './math.js';
10
+
11
+ interface AutoContourDiagnostics {
12
+ recommended: ThresholdDiagnostics;
13
+ ridgeFree: ThresholdDiagnostics;
14
+ }
15
+
16
+ interface ThresholdDiagnostics {
17
+ sigmaMultiplier: number;
18
+ minLevel: number;
19
+
20
+ occupancy: number;
21
+ fdr: number;
22
+ persistence: number;
23
+
24
+ verticalRidgeScore: number;
25
+ horizontalRidgeScore: number;
26
+ }
27
+
28
+ export type AutoContourResult<TDiagnostics extends boolean = boolean> = {
29
+ /**
30
+ * Recommended minimum contour level.
31
+ */
32
+ minLevel: number;
33
+
34
+ /**
35
+ * Minimum contour level at which detected directional
36
+ * ridge structures (e.g. t1-noise) are no longer present.
37
+ */
38
+ minLevelWithoutT1Noise: number;
39
+
40
+ /**
41
+ * True when directional ridge structures were detected
42
+ * at the recommended minimum.
43
+ */
44
+ hasT1Noise: boolean;
45
+
46
+ /**
47
+ * Same values expressed in multiples of the noise level.
48
+ */
49
+ sigmaMultiplier: number;
50
+ sigmaMultiplierWithoutT1Noise: number;
51
+ /**
52
+ * Maximum absolute value in the analysis matrix used for contour level selection.
53
+ */
54
+ maxAbsoluteValue: number;
55
+ } & (TDiagnostics extends true
56
+ ? {
57
+ diagnostics: AutoContourDiagnostics;
58
+ }
59
+ : {
60
+ diagnostics?: AutoContourDiagnostics;
61
+ });
62
+
63
+ export interface AutoContourOptions {
64
+ /**
65
+ * Multiplicative ratio between consecutive contour levels.
66
+ *
67
+ * The contour levels are generated as:
68
+ *
69
+ * Lₙ = L₀ × contourRatioⁿ
70
+ *
71
+ * Must be greater than 1.
72
+ *
73
+ * A smaller value produces more closely spaced contour levels,
74
+ * while a larger value produces fewer, more widely spaced levels.
75
+ *
76
+ * @default 1.4
77
+ */
78
+ contourRatio?: number;
79
+
80
+ /**
81
+ * Maximum acceptable false discovery rate (FDR) for the
82
+ * automatically selected minimum contour level.
83
+ *
84
+ * The FDR estimates the fraction of pixels above the selected
85
+ * threshold that could be explained by Gaussian noise, assuming
86
+ * the supplied noiseLevel is accurate.
87
+ *
88
+ * Smaller values produce a cleaner visualization but may suppress
89
+ * weak peaks.
90
+ *
91
+ * @default 0.05
92
+ */
93
+ maxFdr?: number;
94
+
95
+ /**
96
+ * Maximum fraction of the spectrum that may be above the
97
+ * automatically selected minimum contour level.
98
+ *
99
+ * This prevents very low thresholds from producing contours over
100
+ * a large fraction of the spectrum.
101
+ *
102
+ * Expressed as a fraction in the range [0, 1].
103
+ *
104
+ * For example, 0.02 means that at most 2% of pixels may be above
105
+ * the minimum contour threshold.
106
+ *
107
+ * @default 0.02
108
+ */
109
+ maxOccupancy?: number;
110
+
111
+ /**
112
+ * Minimum persistence required for spectral structures across
113
+ * successive exponential contour levels.
114
+ *
115
+ * Persistence measures how much of the active spectral structure
116
+ * remains when moving from one contour level to the next.
117
+ *
118
+ * Higher values favor stable, coherent peaks and reject fragmented
119
+ * noise structures more aggressively.
120
+ *
121
+ * Expressed as a fraction in the range [0, 1].
122
+ *
123
+ * @default 0.35
124
+ */
125
+ minPersistence?: number;
126
+
127
+ /**
128
+ * Maximum acceptable score for vertical ridge-like structures.
129
+ *
130
+ * This is primarily intended to detect structured artifacts such
131
+ * as t1 noise, which often appears as elongated structures along
132
+ * the F1 dimension.
133
+ *
134
+ * Smaller values make the ridge-free threshold more conservative.
135
+ *
136
+ * @default 0.25
137
+ */
138
+ maxVerticalRidgeScore?: number;
139
+
140
+ /**
141
+ * Maximum acceptable score for horizontal ridge-like structures.
142
+ *
143
+ * This can detect horizontal streaks or other structured artifacts
144
+ * extending predominantly along the F2 dimension.
145
+ *
146
+ * Smaller values make the ridge-free threshold more conservative.
147
+ *
148
+ * @default 0.25
149
+ */
150
+ maxHorizontalRidgeScore?: number;
151
+
152
+ /**
153
+ * Fraction of a row or column that must be occupied by active
154
+ * contour pixels for the row or column to be considered
155
+ * ridge-like.
156
+ *
157
+ * For vertical ridge detection, a column is considered suspicious
158
+ * when the fraction of active pixels along F1 is greater than or
159
+ * equal to this value.
160
+ *
161
+ * For horizontal ridge detection, the same criterion is applied
162
+ * along F2.
163
+ *
164
+ * Expressed as a fraction in the range [0, 1].
165
+ *
166
+ * Lower values make ridge detection more sensitive.
167
+ *
168
+ * @default 0.5
169
+ */
170
+ ridgeCoverageThreshold?: number;
171
+
172
+ /**
173
+ * Lowest threshold considered by the automatic contour search,
174
+ * expressed as a multiple of the supplied noise level.
175
+ *
176
+ * For example, minSigma = 2 means that thresholds below 2 ×
177
+ * noiseLevel are never considered.
178
+ *
179
+ * Lower values can preserve weaker peaks but increase the risk
180
+ * of including noise.
181
+ *
182
+ * @default 2
183
+ */
184
+ minSigma?: number;
185
+
186
+ /**
187
+ * Exponent used to determine the spacing between candidate
188
+ * minimum contour levels.
189
+ *
190
+ * Candidate thresholds are generated multiplicatively using:
191
+ *
192
+ * candidateStep = contourRatio ** candidateRatioExponent
193
+ *
194
+ * For example, with contourRatio = 1.4 and exponent = 0.5:
195
+ *
196
+ * candidateStep = sqrt(1.4)
197
+ *
198
+ * A value of 1 evaluates candidates directly on the contour-level
199
+ * hierarchy. Smaller values provide finer threshold resolution
200
+ * while increasing the amount of analysis.
201
+ *
202
+ * @default 0.5
203
+ */
204
+ candidateRatioExponent?: number;
205
+
206
+ /**
207
+ * Number of successive contour levels used when evaluating
208
+ * spectral persistence.
209
+ *
210
+ * A larger value requires spectral structures to remain stable
211
+ * across more contour levels and therefore produces a more
212
+ * conservative threshold.
213
+ *
214
+ * @default 4
215
+ */
216
+ persistenceLevels?: number;
217
+
218
+ /**
219
+ * Maximum dimension used for spatial analysis.
220
+ *
221
+ * Large input matrices are reduced using max pooling before
222
+ * calculating occupancy, persistence, and ridge metrics.
223
+ *
224
+ * The original matrix is not modified.
225
+ *
226
+ * Max pooling is used instead of averaging so that narrow,
227
+ * high-intensity spectral features are preserved during analysis.
228
+ *
229
+ * Larger values improve spatial resolution but increase
230
+ * computational cost and memory usage.
231
+ *
232
+ * @default 384
233
+ */
234
+ maxAnalysisDimension?: number;
235
+ /**
236
+ * Whether diagnostic information should be returned.
237
+ *
238
+ * Diagnostics include the selected thresholds, FDR, occupancy,
239
+ * persistence, vertical and horizontal ridge scores, and the
240
+ * individual criteria used by the automatic threshold selection.
241
+ *
242
+ * Disable this when diagnostics are not needed and the smallest
243
+ * possible result object is preferred.
244
+ *
245
+ * @default true
246
+ */
247
+ diagnostics?: boolean;
248
+ }
249
+
250
+ export function findAutomaticContourLevels(
251
+ matrix: ArrayLike<number>,
252
+ rows: number,
253
+ cols: number,
254
+ noiseLevel: number,
255
+ options: AutoContourOptions & { diagnostics: true },
256
+ ): AutoContourResult<true>;
257
+ export function findAutomaticContourLevels(
258
+ matrix: ArrayLike<number>,
259
+ rows: number,
260
+ cols: number,
261
+ noiseLevel: number,
262
+ options?: AutoContourOptions,
263
+ ): AutoContourResult<true>;
264
+ export function findAutomaticContourLevels(
265
+ matrix: ArrayLike<number>,
266
+ rows: number,
267
+ cols: number,
268
+ noiseLevel: number,
269
+ options: AutoContourOptions & { diagnostics: false },
270
+ ): AutoContourResult<false>;
271
+
272
+ export function findAutomaticContourLevels(
273
+ matrix: ArrayLike<number>,
274
+ rows: number,
275
+ cols: number,
276
+ noiseLevel: number,
277
+ options: AutoContourOptions = {},
278
+ ): AutoContourResult<boolean> {
279
+ validateInput(matrix, rows, cols, noiseLevel);
280
+
281
+ const {
282
+ contourRatio = 1.4,
283
+ maxFdr = 0.05,
284
+ maxOccupancy = 0.02,
285
+ minPersistence = 0.35,
286
+ maxVerticalRidgeScore = 0.25,
287
+ maxHorizontalRidgeScore = 0.25,
288
+ ridgeCoverageThreshold = 0.5,
289
+ minSigma = 5,
290
+ candidateRatioExponent = 0.5,
291
+ persistenceLevels = 4,
292
+ maxAnalysisDimension = 384,
293
+ diagnostics = true,
294
+ } = options;
295
+
296
+ if (contourRatio <= 1) {
297
+ throw new Error('contourRatio must be > 1');
298
+ }
299
+
300
+ const analysis = maxPoolAbsolute(matrix, rows, cols, maxAnalysisDimension);
301
+ const {
302
+ values,
303
+ rows: analysisRows,
304
+ cols: analysisCols,
305
+ maxAbsoluteValue,
306
+ } = analysis;
307
+ const thresholdIndex = createThresholdIndex(values);
308
+
309
+ const maxSigmaInData = maxAbsoluteValue / noiseLevel;
310
+ const candidates = generateCandidateSigmaLevels(
311
+ minSigma,
312
+ maxSigmaInData,
313
+ contourRatio,
314
+ candidateRatioExponent,
315
+ );
316
+
317
+ const evaluations: Array<ReturnType<typeof evaluateThreshold>> = [];
318
+ let recommended: ReturnType<typeof evaluateThreshold> | undefined;
319
+
320
+ for (const sigmaMultiplier of candidates) {
321
+ const evaluation = evaluateThreshold(
322
+ values,
323
+ analysisRows,
324
+ analysisCols,
325
+ noiseLevel,
326
+ sigmaMultiplier,
327
+ contourRatio,
328
+ persistenceLevels,
329
+ ridgeCoverageThreshold,
330
+ false,
331
+ thresholdIndex,
332
+ );
333
+ evaluations.push(evaluation);
334
+
335
+ const passed =
336
+ evaluation.fdr <= maxFdr &&
337
+ evaluation.occupancy <= maxOccupancy &&
338
+ evaluation.persistence >= minPersistence;
339
+
340
+ if (passed) {
341
+ recommended = evaluation;
342
+ break;
343
+ }
344
+ }
345
+
346
+ if (!recommended) {
347
+ recommended = evaluateFallbackThreshold(
348
+ evaluations,
349
+ maxFdr,
350
+ maxOccupancy,
351
+ minPersistence,
352
+ );
353
+ }
354
+
355
+ const ridgeFreeLevel = findRidgeFreeThresholdTopDown(
356
+ values,
357
+ analysisRows,
358
+ analysisCols,
359
+ noiseLevel,
360
+ recommended.sigmaMultiplier * noiseLevel,
361
+ maxAbsoluteValue,
362
+ contourRatio,
363
+ maxVerticalRidgeScore,
364
+ maxHorizontalRidgeScore,
365
+ ridgeCoverageThreshold,
366
+ );
367
+
368
+ const hasT1Noise =
369
+ recommended.verticalRidgeScore > maxVerticalRidgeScore ||
370
+ recommended.horizontalRidgeScore > maxHorizontalRidgeScore;
371
+
372
+ const result: AutoContourResult<boolean> = {
373
+ maxAbsoluteValue,
374
+ minLevel: recommended.sigmaMultiplier * noiseLevel,
375
+ minLevelWithoutT1Noise: ridgeFreeLevel,
376
+ hasT1Noise,
377
+
378
+ sigmaMultiplier: recommended.sigmaMultiplier,
379
+ sigmaMultiplierWithoutT1Noise: ridgeFreeLevel / noiseLevel,
380
+ };
381
+
382
+ if (diagnostics) {
383
+ const recommendedDiagnostics = evaluateThreshold(
384
+ values,
385
+ analysisRows,
386
+ analysisCols,
387
+ noiseLevel,
388
+ recommended.sigmaMultiplier,
389
+ contourRatio,
390
+ persistenceLevels,
391
+ ridgeCoverageThreshold,
392
+ true,
393
+ thresholdIndex,
394
+ );
395
+ const ridgeFree = evaluateThreshold(
396
+ values,
397
+ analysisRows,
398
+ analysisCols,
399
+ noiseLevel,
400
+ ridgeFreeLevel / noiseLevel,
401
+ contourRatio,
402
+ 1,
403
+ ridgeCoverageThreshold,
404
+ true,
405
+ thresholdIndex,
406
+ );
407
+
408
+ result.diagnostics = {
409
+ recommended: {
410
+ sigmaMultiplier: recommendedDiagnostics.sigmaMultiplier,
411
+ minLevel: recommendedDiagnostics.sigmaMultiplier * noiseLevel,
412
+ occupancy: recommendedDiagnostics.occupancy,
413
+ fdr: recommendedDiagnostics.fdr,
414
+ persistence: recommendedDiagnostics.persistence,
415
+ verticalRidgeScore: recommendedDiagnostics.verticalRidgeScore,
416
+ horizontalRidgeScore: recommendedDiagnostics.horizontalRidgeScore,
417
+ },
418
+ ridgeFree: {
419
+ sigmaMultiplier: ridgeFree.sigmaMultiplier,
420
+ minLevel: ridgeFreeLevel,
421
+ occupancy: ridgeFree.occupancy,
422
+ fdr: ridgeFree.fdr,
423
+ persistence: ridgeFree.persistence,
424
+ verticalRidgeScore: ridgeFree.verticalRidgeScore,
425
+ horizontalRidgeScore: ridgeFree.horizontalRidgeScore,
426
+ },
427
+ };
428
+ }
429
+
430
+ return result;
431
+ }
@@ -0,0 +1,59 @@
1
+ export function gaussianTwoSidedTail(k: number): number {
2
+ return erfc(k / Math.SQRT2);
3
+ }
4
+
5
+ /**
6
+ * Approximation of the complementary error function.
7
+ * @TODO it would be replaced by the same implementation from ml-spectra-processing.
8
+ */
9
+ function erfc(x: number): number {
10
+ const sign = x < 0 ? -1 : 1;
11
+ const ax = Math.abs(x);
12
+
13
+ const p = 0.3275911;
14
+
15
+ const a1 = 0.254829592;
16
+ const a2 = -0.284496736;
17
+ const a3 = 1.421413741;
18
+ const a4 = -1.453152027;
19
+ const a5 = 1.061405429;
20
+
21
+ const t = 1 / (1 + p * ax);
22
+
23
+ const polynomial = ((((a5 * t + a4) * t + a3) * t + a2) * t + a1) * t;
24
+
25
+ const result = polynomial * Math.exp(-ax * ax);
26
+
27
+ return sign >= 0 ? result : 2 - result;
28
+ }
29
+
30
+ export function violation(value: number, limit: number): number {
31
+ if (limit === 0) {
32
+ return value === 0 ? 0 : 1;
33
+ }
34
+
35
+ return Math.max(0, value / limit - 1);
36
+ }
37
+
38
+ export function validateInput(
39
+ matrix: ArrayLike<number>,
40
+ rows: number,
41
+ cols: number,
42
+ noiseLevel: number,
43
+ ): void {
44
+ if (!Number.isInteger(rows) || rows <= 0) {
45
+ throw new Error('rows must be a positive integer');
46
+ }
47
+
48
+ if (!Number.isInteger(cols) || cols <= 0) {
49
+ throw new Error('cols must be a positive integer');
50
+ }
51
+
52
+ if (matrix.length !== rows * cols) {
53
+ throw new Error('matrix.length must equal rows * cols');
54
+ }
55
+
56
+ if (!Number.isFinite(noiseLevel) || noiseLevel <= 0) {
57
+ throw new Error('noiseLevel must be a positive finite number');
58
+ }
59
+ }
@@ -4,13 +4,14 @@ import { xNoiseSanPlot } from 'ml-spectra-processing';
4
4
  export function calculateSanPlot<T extends '1D' | '2D'>(
5
5
  dimension: T,
6
6
  data: T extends '1D' ? NmrData1D : NmrData2DFt['rr'],
7
+ options?: { magnitudeMode?: boolean },
7
8
  ) {
8
9
  const input =
9
10
  dimension === '1D'
10
11
  ? prepare1DData(data as NmrData1D)
11
12
  : prepare2DData(data as NmrData2DFt['rr']);
12
13
 
13
- return xNoiseSanPlot(input);
14
+ return xNoiseSanPlot(input, options);
14
15
  }
15
16
 
16
17
  function prepare1DData(data: NmrData1D) {
@@ -1 +1 @@
1
- export default { version: 'v2.6.0' };
1
+ export default { version: 'v2.8.0' };
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseReactTable.d.ts","sourceRoot":"","sources":["../../../../src/component/elements/ReactTable/BaseReactTable.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;kHAiC1B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseReactTable.js","sourceRoot":"","sources":["../../../../src/component/elements/ReactTable/BaseReactTable.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCzC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmptyDataRow.d.ts","sourceRoot":"","sources":["../../../../../src/component/elements/ReactTable/Elements/EmptyDataRow.tsx"],"names":[],"mappings":"AAEA,UAAU,iBAAiB;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAoBpD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmptyDataRow.js","sourceRoot":"","sources":["../../../../../src/component/elements/ReactTable/Elements/EmptyDataRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAO/C,MAAM,UAAU,YAAY,CAAC,KAAwB;IACnD,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IACnC,OAAO,CACL,uBACE,cACE,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,aAEhD,KAAC,aAAa,IACZ,KAAK,EAAE;wBACL,OAAO,EAAE,cAAc;wBACvB,MAAM,EAAE,UAAU;wBAClB,QAAQ,EAAE,OAAO;wBACjB,KAAK,EAAE,SAAS;qBACjB,GACD,EACF,eAAM,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAG,IAAI,GAAQ,IAC9C,GACF,CACN,CAAC;AACJ,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { MouseEvent } from 'react';
2
- interface TableCellEvent {
3
- onClick: (e: MouseEvent<HTMLTableCellElement>) => void;
4
- }
5
- interface ReactTableHeaderProps extends TableCellEvent {
6
- headerGroups: any;
7
- }
8
- declare function ReactTableHeader({ headerGroups, onClick }: ReactTableHeaderProps): import("react").JSX.Element;
9
- export default ReactTableHeader;
10
- //# sourceMappingURL=ReactTableHeader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReactTableHeader.d.ts","sourceRoot":"","sources":["../../../../../src/component/elements/ReactTable/Elements/ReactTableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,UAAU,EAAE,MAAM,OAAO,CAAC;AAGvD,UAAU,cAAc;IACtB,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAAC;CACxD;AACD,UAAU,qBAAsB,SAAQ,cAAc;IACpD,YAAY,EAAE,GAAG,CAAC;CACnB;AASD,iBAAS,gBAAgB,CAAC,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,qBAAqB,+BAoBzE;AA2CD,eAAe,gBAAgB,CAAC"}
@@ -1,27 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { FaSortAmountDown, FaSortAmountUp } from 'react-icons/fa';
3
- const sortIconStyle = {
4
- position: 'absolute',
5
- top: '50%',
6
- transform: 'translateY(-50%)',
7
- left: '2px',
8
- };
9
- function ReactTableHeader({ headerGroups, onClick }) {
10
- return (_jsx("thead", { children: headerGroups.map((headerGroup) => {
11
- const { key: headerGroupKey, ...restHeaderGroupProps } = headerGroup.getHeaderGroupProps();
12
- return (_jsx("tr", { ...restHeaderGroupProps, children: headerGroup.headers.map((column) => (_jsx(HeaderCell, { column: column, onClick: onClick }, column.getHeaderProps(column.getSortByToggleProps()).key))) }, headerGroupKey));
13
- }) }));
14
- }
15
- const HeaderCell = (props) => {
16
- const { column } = props;
17
- const { key: headerKey, style: headerStyle, onClick, ...restHeaderProps } = column.getHeaderProps(column.getSortByToggleProps());
18
- function clickHandler(e) {
19
- if (onClick) {
20
- onClick(e);
21
- props.onClick(e);
22
- }
23
- }
24
- return (_jsxs("th", { ...restHeaderProps, style: { ...headerStyle, ...column.style, height: '1px' }, onClick: clickHandler, children: [_jsx("span", { style: sortIconStyle, children: column.isSorted ? (column.isSortedDesc ? (_jsx(FaSortAmountDown, {})) : (_jsx(FaSortAmountUp, {}))) : ('') }), column?.render('Header')] }, headerKey));
25
- };
26
- export default ReactTableHeader;
27
- //# sourceMappingURL=ReactTableHeader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReactTableHeader.js","sourceRoot":"","sources":["../../../../../src/component/elements/ReactTable/Elements/ReactTableHeader.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AASlE,MAAM,aAAa,GAAkB;IACnC,QAAQ,EAAE,UAAU;IACpB,GA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eAAM,KAAK,EAAE,aAAa,YACvB,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CACjB,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CACpB,KAAC,gBAAgB,KAAG,CACrB,CAAC,CAAC,CAAC,CACF,KAAC,cAAc,KAAG,CACnB,CACF,CAAC,CAAC,CAAC,CACF,EAAE,CACH,GACI,EACN,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,KAhBpB,SAAS,CAiBX,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,16 +0,0 @@
1
- /** @jsxImportSource @emotion/react */
2
- import type { MouseEvent } from 'react';
3
- import type { BaseRowStyle, HighlightSourceProps, TableContextMenuProps } from '../ReactTable.js';
4
- export interface ClickEvent {
5
- onClick?: (event: MouseEvent, data: unknown) => void;
6
- }
7
- interface ReactTableRowProps extends ClickEvent, TableContextMenuProps {
8
- row: any;
9
- isRowActive: boolean;
10
- rowStyle: BaseRowStyle | undefined;
11
- disableDefaultRowStyle?: boolean;
12
- }
13
- type ReactTableRowPropsWithHighlight = ReactTableRowProps & HighlightSourceProps;
14
- declare function ReactTableRow(props: ReactTableRowPropsWithHighlight): import("@emotion/react/jsx-runtime").JSX.Element;
15
- export default ReactTableRow;
16
- //# sourceMappingURL=ReactTableRow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReactTableRow.d.ts","sourceRoot":"","sources":["../../../../../src/component/elements/ReactTable/Elements/ReactTableRow.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AAItC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAMxC,OAAO,KAAK,EACV,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AA4B1B,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACtD;AAED,UAAU,kBAAmB,SAAQ,UAAU,EAAE,qBAAqB;IACpE,GAAG,EAAE,GAAG,CAAC;IACT,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAC;IACnC,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,KAAK,+BAA+B,GAAG,kBAAkB,GACvD,oBAAoB,CAAC;AAcvB,iBAAS,aAAa,CAAC,KAAK,EAAE,+BAA+B,oDAqF5D;AAED,eAAe,aAAa,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReactTableRow.js","sourceRoot":"","sources":["../../../../../src/component/elements/ReactTable/Elements/ReactTableRow.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAErC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAO5D,SAAS,WAAW,CAClB,QAAiB,EACjB,WAAyB,EAAE,EAC3B,sBAAgC;IAEhC,MAAM,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,QAAQ,CAAC;IAExE,MAAM,UAAU,GAAG,sBAAsB;QACvC,CAAC,CAAE,KAAmB;QACtB,CAAC,CAAC,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,CAAC;IAC/C,MAAM,WAAW,GAAG,sBAAsB;QACxC,CAAC,CAAE,MAAoB;QACvB,CAAC,CAAC,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,MAAM,EAAE,CAAC;IAChD,MAAM,SAAS,GAAG,sBAAsB;QACtC,CAAC,CAAE,IAAe;QAClB,CAAC,CAAC,EAAE,eAAe,EAAE,OAAO,EA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E,CAAC;wBAEnB,OAAO,KAAK,CAAC;oBACf,CAAC,EACD,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,YAAY,YAEpB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAVf,SAAS,CAWX,CACN,CAAC;YACJ,CAAC;QACH,CAAC,CAAC,IArCG,MAAM,CAsCC,CACf,CAAC;AACJ,CAAC;AAED,eAAe,aAAa,CAAC"}
@@ -1,64 +0,0 @@
1
- /** @jsxImportSource @emotion/react */
2
- import type { CSSObject, SerializedStyles } from '@emotion/react';
3
- import type { CSSProperties, ReactElement } from 'react';
4
- import type { CellProps, Column as ReactColumn, Row, UseSortByColumnOptions } from 'react-table';
5
- import type { HighlightEventSourceExtra, HighlightEventSourceType } from '../../highlight/index.js';
6
- import type { BaseContextMenuProps } from '../ContextMenuBluePrint.js';
7
- import type { ClickEvent } from './Elements/ReactTableRow.js';
8
- export type HighlightSourceProps = {
9
- [K in HighlightEventSourceType]: HighlightEventSourceExtra<K> extends never ? {
10
- highlightedSource?: K;
11
- getHighlightExtra?: never;
12
- } : {
13
- highlightedSource: K;
14
- getHighlightExtra: (row: any) => HighlightEventSourceExtra<K>;
15
- };
16
- }[HighlightEventSourceType];
17
- interface ExtraColumn<T extends object> {
18
- enableRowSpan?: boolean;
19
- style?: CSSProperties;
20
- Cell?: (cell: CellProps<T>) => ReactElement | string;
21
- }
22
- export type Column<T extends object = object> = ReactColumn<T> & ExtraColumn<T> & UseSortByColumnOptions<T>;
23
- interface SortEvent {
24
- onSortEnd?: (data: any, isTableSorted?: boolean) => void;
25
- }
26
- export interface BaseRowStyle {
27
- active?: CSSProperties;
28
- activated?: CSSProperties;
29
- hover?: CSSProperties;
30
- base?: CSSProperties;
31
- }
32
- export interface TableContextMenuProps {
33
- onContextMenuSelect?: (selected: Parameters<BaseContextMenuProps['onSelect']>[0], data: any) => void;
34
- contextMenu?: BaseContextMenuProps['options'];
35
- }
36
- interface ReactTableProps<T extends object> extends TableContextMenuProps, ClickEvent, SortEvent {
37
- data: T[];
38
- columns: Array<Column<T>>;
39
- approxItemHeight?: number;
40
- approxColumnWidth?: number;
41
- groupKey?: keyof T;
42
- indexKey?: string;
43
- enableVirtualScroll?: boolean;
44
- enableColumnsVirtualScroll?: boolean;
45
- activeRow?: (data: Row<T>) => boolean;
46
- enableDefaultActiveRow?: boolean;
47
- totalCount?: number;
48
- emptyDataRowText?: string;
49
- rowStyle?: BaseRowStyle | ((data: T) => BaseRowStyle | undefined);
50
- style?: CSSObject | SerializedStyles;
51
- disableDefaultRowStyle?: boolean;
52
- }
53
- type ReactTableOuterProps<T extends object> = ReactTableProps<T> & HighlightSourceProps;
54
- interface VirtualBoundary {
55
- start: number;
56
- end: number;
57
- }
58
- export interface TableVirtualBoundary {
59
- rows: VirtualBoundary;
60
- columns: VirtualBoundary;
61
- }
62
- declare const _default: <T extends object = any>(props: ReactTableOuterProps<T>) => ReactElement;
63
- export default _default;
64
- //# sourceMappingURL=ReactTable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReactTable.d.ts","sourceRoot":"","sources":["../../../../src/component/elements/ReactTable/ReactTable.tsx"],"names":[],"mappings":"AACA,sCAAsC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAAO,KAAK,EACV,aAAa,EAEb,YAAY,EAGb,MAAM,OAAO,CAAC;AAWf,OAAO,KAAK,EACV,SAAS,EACT,MAAM,IAAI,WAAW,EACrB,GAAG,EAEH,sBAAsB,EAIvB,MAAM,aAAa,CAAC;AAGrB,OAAO,KAAK,EACV,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAKvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAS9D,MAAM,MAAM,oBAAoB,GAAG;KAChC,CAAC,IAAI,wBAAwB,GAAG,yB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