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.
- package/lib/component/1d/ApodizationLine.js +2 -2
- package/lib/component/1d/ApodizationLine.js.map +1 -1
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +15 -14
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/Line.js +2 -2
- package/lib/component/1d/Line.js.map +1 -1
- package/lib/component/1d/SVGContent1D.d.ts.map +1 -1
- package/lib/component/1d/SVGContent1D.js +4 -1
- package/lib/component/1d/SVGContent1D.js.map +1 -1
- package/lib/component/1d/Viewer1D.d.ts.map +1 -1
- package/lib/component/1d/Viewer1D.js +2 -1
- package/lib/component/1d/Viewer1D.js.map +1 -1
- package/lib/component/1d/baseline/BaselinePreview.js +2 -2
- package/lib/component/1d/baseline/BaselinePreview.js.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +2 -2
- package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +2 -2
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
- package/lib/component/1d/matrix/Boxplot.js +5 -5
- package/lib/component/1d/matrix/Boxplot.js.map +1 -1
- package/lib/component/1d/matrix/Stocsy.js +2 -2
- package/lib/component/1d/matrix/Stocsy.js.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +12 -3
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js +2 -2
- package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
- package/lib/component/1d/plugin_chart_brush_tracker.d.ts +2 -0
- package/lib/component/1d/plugin_chart_brush_tracker.d.ts.map +1 -0
- package/lib/component/1d/plugin_chart_brush_tracker.js +41 -0
- package/lib/component/1d/plugin_chart_brush_tracker.js.map +1 -0
- package/lib/component/1d/plugin_svg_chart.d.ts +2 -0
- package/lib/component/1d/plugin_svg_chart.d.ts.map +1 -0
- package/lib/component/1d/plugin_svg_chart.js +43 -0
- package/lib/component/1d/plugin_svg_chart.js.map +1 -0
- package/lib/component/1d-2d/components/RangeIndicator.d.ts.map +1 -1
- package/lib/component/1d-2d/components/RangeIndicator.js +1 -7
- package/lib/component/1d-2d/components/RangeIndicator.js.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.d.ts +1 -1
- package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.d.ts +1 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.js.map +1 -1
- package/lib/component/2d/1d-tracer/HorizontalSliceChart.js +2 -2
- package/lib/component/2d/1d-tracer/HorizontalSliceChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.js +2 -2
- package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.js +2 -2
- package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.js +2 -2
- package/lib/component/2d/1d-tracer/VerticalSliceChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.js +3 -3
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.js.map +1 -1
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/ft/Contours.js +2 -2
- package/lib/component/2d/ft/Contours.js.map +1 -1
- package/lib/component/2d/utilities/DimensionLayout.d.ts +1 -1
- package/lib/component/2d/utilities/DimensionLayout.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +1 -84
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +70 -3
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/EventsTrackers/brush_tracker.types.d.ts +93 -0
- package/lib/component/EventsTrackers/brush_tracker.types.d.ts.map +1 -0
- package/lib/component/EventsTrackers/brush_tracker.types.js +2 -0
- package/lib/component/EventsTrackers/brush_tracker.types.js.map +1 -0
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.d.ts +7 -0
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.d.ts.map +1 -0
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.js +15 -0
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.js.map +1 -0
- package/lib/component/context/ScaleContext.d.ts +1 -1
- package/lib/component/context/ScaleContext.d.ts.map +1 -1
- package/lib/component/elements/D3Axis.d.ts.map +1 -1
- package/lib/component/elements/D3Axis.js +15 -32
- package/lib/component/elements/D3Axis.js.map +1 -1
- package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
- package/lib/component/elements/export/ExportContent.js +2 -2
- package/lib/component/elements/export/ExportContent.js.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.d.ts.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.js +9 -3
- package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
- package/lib/component/elements/export/useExportConfigurer.d.ts +1 -0
- package/lib/component/elements/export/useExportConfigurer.d.ts.map +1 -1
- package/lib/component/elements/export/useExportConfigurer.js +5 -0
- package/lib/component/elements/export/useExportConfigurer.js.map +1 -1
- package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
- package/lib/component/elements/print/PrintContent.js +6 -25
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/elements/tanstack_table/create_action_column.d.ts +11 -0
- package/lib/component/elements/tanstack_table/create_action_column.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/create_action_column.js +24 -0
- package/lib/component/elements/tanstack_table/create_action_column.js.map +1 -0
- package/lib/component/elements/tanstack_table/create_column_helper.d.ts +5 -0
- package/lib/component/elements/tanstack_table/create_column_helper.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/create_column_helper.js +5 -0
- package/lib/component/elements/tanstack_table/create_column_helper.js.map +1 -0
- package/lib/component/elements/{ReactTable/BaseReactTable.d.ts → tanstack_table/elements/base_react_table.d.ts} +1 -1
- package/lib/component/elements/tanstack_table/elements/base_react_table.d.ts.map +1 -0
- package/lib/component/elements/{ReactTable/BaseReactTable.js → tanstack_table/elements/base_react_table.js} +1 -1
- package/lib/component/elements/tanstack_table/elements/base_react_table.js.map +1 -0
- package/lib/component/elements/{ReactTable/Elements/EmptyDataRow.d.ts → tanstack_table/elements/empty_data_row.d.ts} +1 -1
- package/lib/component/elements/tanstack_table/elements/empty_data_row.d.ts.map +1 -0
- package/lib/component/elements/{ReactTable/Elements/EmptyDataRow.js → tanstack_table/elements/empty_data_row.js} +1 -1
- package/lib/component/elements/tanstack_table/elements/empty_data_row.js.map +1 -0
- package/lib/component/elements/tanstack_table/elements/table_context.d.ts +4 -0
- package/lib/component/elements/tanstack_table/elements/table_context.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/elements/table_context.js +11 -0
- package/lib/component/elements/tanstack_table/elements/table_context.js.map +1 -0
- package/lib/component/elements/tanstack_table/elements/table_header.d.ts +12 -0
- package/lib/component/elements/tanstack_table/elements/table_header.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/elements/table_header.js +42 -0
- package/lib/component/elements/tanstack_table/elements/table_header.js.map +1 -0
- package/lib/component/elements/tanstack_table/elements/table_row.d.ts +12 -0
- package/lib/component/elements/tanstack_table/elements/table_row.d.ts.map +1 -0
- package/lib/component/elements/{ReactTable/Elements/ReactTableRow.js → tanstack_table/elements/table_row.js} +18 -17
- package/lib/component/elements/tanstack_table/elements/table_row.js.map +1 -0
- package/lib/component/elements/tanstack_table/features.d.ts +21 -0
- package/lib/component/elements/tanstack_table/features.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/features.js +14 -0
- package/lib/component/elements/tanstack_table/features.js.map +1 -0
- package/lib/component/elements/tanstack_table/index.d.ts +6 -0
- package/lib/component/elements/tanstack_table/index.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/index.js +6 -0
- package/lib/component/elements/tanstack_table/index.js.map +1 -0
- package/lib/component/elements/tanstack_table/table.d.ts +26 -0
- package/lib/component/elements/tanstack_table/table.d.ts.map +1 -0
- package/lib/component/elements/{ReactTable/ReactTable.js → tanstack_table/table.js} +29 -37
- package/lib/component/elements/tanstack_table/table.js.map +1 -0
- package/lib/component/elements/tanstack_table/types.d.ts +47 -0
- package/lib/component/elements/tanstack_table/types.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/types.js +2 -0
- package/lib/component/elements/tanstack_table/types.js.map +1 -0
- package/lib/component/elements/utilities/transferStyles.d.ts +2 -0
- package/lib/component/elements/utilities/transferStyles.d.ts.map +1 -0
- package/lib/component/elements/utilities/transferStyles.js +29 -0
- package/lib/component/elements/utilities/transferStyles.js.map +1 -0
- package/lib/component/header/AutoPeakPickingOptionPanel.js +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.js.map +1 -1
- package/lib/component/hooks/useIntegralPath.js +2 -2
- package/lib/component/hooks/useIntegralPath.js.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.js +91 -73
- package/lib/component/modal/ImportPublicationStringModal.js.map +1 -1
- package/lib/component/modal/LogsHistoryModal.d.ts.map +1 -1
- package/lib/component/modal/LogsHistoryModal.js +44 -40
- package/lib/component/modal/LogsHistoryModal.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js +48 -44
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js +36 -32
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.d.ts.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js +15 -14
- package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +106 -105
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +106 -105
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +106 -105
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +15 -15
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +12 -10
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +32 -40
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +61 -17
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +79 -28
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +15 -15
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts.map +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +29 -26
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +70 -76
- package/lib/component/panels/IntegralsPanel/IntegralTable.js.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.d.ts.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +33 -29
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts +8 -6
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.js +116 -126
- package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
- package/lib/component/panels/PeaksPanel/peaksToTSV.d.ts +2 -2
- package/lib/component/panels/PeaksPanel/peaksToTSV.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/peaksToTSV.js +9 -11
- package/lib/component/panels/PeaksPanel/peaksToTSV.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.d.ts +3 -2
- package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +2 -2
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +37 -26
- package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.js +56 -52
- package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +23 -20
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +2 -2
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +171 -153
- package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.js +27 -24
- package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/processings_sections_panel.js +1 -1
- package/lib/component/panels/filtersPanel/processings_sections_panel.js.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.js +69 -64
- package/lib/component/panels/informationPanel/InformationEditionModal.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.d.ts +3 -3
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js +69 -56
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js +17 -20
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.js +25 -20
- package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.js +41 -36
- package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.d.ts.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.js +14 -15
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.js.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.js +3 -2
- package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.d.ts +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts.map +1 -1
- package/lib/component/toolbar/nmr_toolbar.js +1 -1
- package/lib/component/toolbar/nmr_toolbar.js.map +1 -1
- package/lib/component/utility/Events.d.ts +1 -1
- package/lib/component/utility/Events.d.ts.map +1 -1
- package/lib/component/utility/core_slots/core_operator_brush.commons.d.ts +9 -0
- package/lib/component/utility/core_slots/core_operator_brush.commons.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_brush.commons.js +15 -0
- package/lib/component/utility/core_slots/core_operator_brush.commons.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_brush.commons.d.ts +7 -0
- package/lib/component/utility/core_slots/core_operator_chart_brush.commons.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_brush.commons.js +82 -0
- package/lib/component/utility/core_slots/core_operator_chart_brush.commons.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_brush_tracker.d.ts +8 -0
- package/lib/component/utility/core_slots/core_operator_chart_brush_tracker.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_brush_tracker.js +11 -0
- package/lib/component/utility/core_slots/core_operator_chart_brush_tracker.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_svg.d.ts +8 -0
- package/lib/component/utility/core_slots/core_operator_chart_svg.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_svg.js +11 -0
- package/lib/component/utility/core_slots/core_operator_chart_svg.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_panel_tool.d.ts +2 -8
- package/lib/component/utility/core_slots/core_operator_panel_tool.d.ts.map +1 -1
- package/lib/component/utility/core_slots/core_operator_panel_tool.js +8 -6
- package/lib/component/utility/core_slots/core_operator_panel_tool.js.map +1 -1
- package/lib/component/utility/core_slots/core_operator_tool.commons.d.ts +11 -0
- package/lib/component/utility/core_slots/core_operator_tool.commons.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_tool.commons.js +30 -0
- package/lib/component/utility/core_slots/core_operator_tool.commons.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_tool.d.ts +2 -8
- package/lib/component/utility/core_slots/core_operator_tool.d.ts.map +1 -1
- package/lib/component/utility/core_slots/core_operator_tool.js +8 -6
- package/lib/component/utility/core_slots/core_operator_tool.js.map +1 -1
- package/lib/component/utility/export.d.ts +5 -0
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js +22 -0
- package/lib/component/utility/export.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +23 -10
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.d.ts +13 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.d.ts.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js +40 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.d.ts +27 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.d.ts.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js +230 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.d.ts +227 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.d.ts.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js +67 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.d.ts +4 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.d.ts.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js +42 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js.map +1 -0
- package/lib/data/utilities/calculateSanPlot.d.ts +3 -1
- package/lib/data/utilities/calculateSanPlot.d.ts.map +1 -1
- package/lib/data/utilities/calculateSanPlot.js +2 -2
- package/lib/data/utilities/calculateSanPlot.js.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +7 -8
- package/src/component/1d/ApodizationLine.tsx +2 -2
- package/src/component/1d/BrushTracker1D.tsx +19 -21
- package/src/component/1d/Line.tsx +2 -2
- package/src/component/1d/SVGContent1D.tsx +6 -0
- package/src/component/1d/Viewer1D.tsx +2 -0
- package/src/component/1d/baseline/BaselinePreview.tsx +2 -2
- package/src/component/1d/database/DatabaseSpectrum.tsx +2 -2
- package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +2 -2
- package/src/component/1d/matrix/Boxplot.tsx +5 -5
- package/src/component/1d/matrix/Stocsy.tsx +2 -2
- package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +17 -3
- package/src/component/1d/peaks/usePeakShapesPath.ts +2 -2
- package/src/component/1d/plugin_chart_brush_tracker.tsx +63 -0
- package/src/component/1d/plugin_svg_chart.tsx +60 -0
- package/src/component/1d-2d/components/RangeIndicator.tsx +8 -9
- package/src/component/1d-2d/tools/BrushXY.tsx +1 -1
- package/src/component/1d-2d/tools/CrossLinePointer.tsx +1 -1
- package/src/component/2d/1d-tracer/HorizontalSliceChart.tsx +2 -2
- package/src/component/2d/1d-tracer/Left1DChart.tsx +2 -2
- package/src/component/2d/1d-tracer/Top1DChart.tsx +2 -2
- package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +2 -2
- package/src/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.tsx +3 -3
- package/src/component/2d/BrushTracker2D.tsx +5 -5
- package/src/component/2d/ft/Contours.tsx +2 -2
- package/src/component/2d/utilities/DimensionLayout.ts +1 -1
- package/src/component/EventsTrackers/BrushTracker.tsx +118 -115
- package/src/component/EventsTrackers/brush_tracker.types.ts +111 -0
- package/src/component/EventsTrackers/brush_tracker_events_listeners.ts +32 -0
- package/src/component/context/ScaleContext.tsx +1 -1
- package/src/component/elements/D3Axis.tsx +49 -67
- package/src/component/elements/export/ExportContent.tsx +3 -2
- package/src/component/elements/export/ExportOptionsModal.tsx +32 -1
- package/src/component/elements/export/useExportConfigurer.tsx +6 -0
- package/src/component/elements/print/PrintContent.tsx +6 -27
- package/src/component/elements/tanstack_table/create_action_column.tsx +43 -0
- package/src/component/elements/tanstack_table/create_column_helper.ts +11 -0
- package/src/component/elements/tanstack_table/elements/table_context.ts +15 -0
- package/src/component/elements/tanstack_table/elements/table_header.tsx +111 -0
- package/src/component/elements/{ReactTable/Elements/ReactTableRow.tsx → tanstack_table/elements/table_row.tsx} +51 -50
- package/src/component/elements/tanstack_table/features.ts +33 -0
- package/src/component/elements/tanstack_table/index.ts +5 -0
- package/src/component/elements/{ReactTable/ReactTable.tsx → tanstack_table/table.tsx} +78 -157
- package/src/component/elements/tanstack_table/types.ts +86 -0
- package/src/component/elements/utilities/transferStyles.ts +32 -0
- package/src/component/header/AutoPeakPickingOptionPanel.tsx +1 -1
- package/src/component/hooks/useIntegralPath.ts +2 -2
- package/src/component/modal/ImportPublicationStringModal.tsx +160 -136
- package/src/component/modal/LogsHistoryModal.tsx +32 -25
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +28 -24
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +27 -25
- package/src/component/modal/metaImportation/MetaImportationModal.tsx +19 -15
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +47 -57
- package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +100 -28
- package/src/component/panels/AutomaticAssignment/AutomaticAssignmentTable.tsx +27 -25
- package/src/component/panels/IntegralsPanel/IntegralTable.tsx +75 -89
- package/src/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.tsx +68 -60
- package/src/component/panels/PeaksPanel/PeaksTable.tsx +126 -124
- package/src/component/panels/PeaksPanel/peaksToTSV.ts +14 -15
- package/src/component/panels/RangesPanel/RangesTable.tsx +3 -2
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +2 -2
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +58 -36
- package/src/component/panels/SpectraPanel/base/SpectraColumnsManager.tsx +31 -35
- package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +25 -20
- package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +2 -2
- package/src/component/panels/databasePanel/DatabasePanel.tsx +1 -1
- package/src/component/panels/databasePanel/DatabaseTable.tsx +189 -183
- package/src/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.tsx +20 -20
- package/src/component/panels/filtersPanel/processings_sections_panel.tsx +1 -1
- package/src/component/panels/informationPanel/InformationEditionModal.tsx +40 -37
- package/src/component/panels/multipleAnalysisPanel/AlignSpectra.tsx +128 -98
- package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.tsx +23 -24
- package/src/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.tsx +33 -24
- package/src/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.tsx +34 -31
- package/src/component/panels/spectrumSimulation/SpinSystemTable.tsx +19 -18
- package/src/component/reducer/actions/DatabaseActions.ts +4 -3
- package/src/component/reducer/actions/InsetActions.ts +1 -1
- package/src/component/reducer/actions/ToolsActions.ts +1 -1
- package/src/component/reducer/helper/Zoom1DManager.ts +1 -1
- package/src/component/reducer/helper/ZoomHistoryManager.ts +1 -1
- package/src/component/reducer/preferences/actions/matrixGeneration.ts +1 -1
- package/src/component/toolbar/nmr_toolbar.tsx +1 -1
- package/src/component/utility/Events.tsx +1 -1
- package/src/component/utility/core_slots/core_operator_brush.commons.ts +18 -0
- package/src/component/utility/core_slots/core_operator_chart_brush.commons.ts +138 -0
- package/src/component/utility/core_slots/core_operator_chart_brush_tracker.tsx +27 -0
- package/src/component/utility/core_slots/core_operator_chart_svg.tsx +46 -0
- package/src/component/utility/core_slots/core_operator_panel_tool.tsx +9 -27
- package/src/component/utility/core_slots/core_operator_tool.commons.ts +63 -0
- package/src/component/utility/core_slots/core_operator_tool.tsx +9 -27
- package/src/component/utility/export.ts +34 -0
- package/src/data/data2d/Spectrum2D/contours.ts +40 -14
- package/src/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.ts +67 -0
- package/src/data/data2d/Spectrum2D/findBestMinContour/evaluation.ts +432 -0
- package/src/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.ts +431 -0
- package/src/data/data2d/Spectrum2D/findBestMinContour/math.ts +59 -0
- package/src/data/utilities/calculateSanPlot.ts +2 -1
- package/src/versionInfo.ts +1 -1
- package/lib/component/elements/ReactTable/BaseReactTable.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/BaseReactTable.js.map +0 -1
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.js.map +0 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.d.ts +0 -10
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js +0 -27
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js.map +0 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +0 -16
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js.map +0 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts +0 -64
- package/lib/component/elements/ReactTable/ReactTable.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/ReactTable.js.map +0 -1
- package/lib/component/elements/ReactTable/utility/ReactTableContext.d.ts +0 -4
- package/lib/component/elements/ReactTable/utility/ReactTableContext.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/utility/ReactTableContext.js +0 -11
- package/lib/component/elements/ReactTable/utility/ReactTableContext.js.map +0 -1
- package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts +0 -19
- package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/utility/addCustomColumn.js +0 -36
- package/lib/component/elements/ReactTable/utility/addCustomColumn.js.map +0 -1
- package/lib/component/elements/ReactTable/utility/useRowSpan.d.ts +0 -9
- package/lib/component/elements/ReactTable/utility/useRowSpan.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/utility/useRowSpan.js +0 -40
- package/lib/component/elements/ReactTable/utility/useRowSpan.js.map +0 -1
- package/lib/component/elements/export/utilities/transferDocumentStyles.d.ts +0 -2
- package/lib/component/elements/export/utilities/transferDocumentStyles.d.ts.map +0 -1
- package/lib/component/elements/export/utilities/transferDocumentStyles.js +0 -21
- package/lib/component/elements/export/utilities/transferDocumentStyles.js.map +0 -1
- package/lib/component/utility/PathBuilder.d.ts +0 -10
- package/lib/component/utility/PathBuilder.d.ts.map +0 -1
- package/lib/component/utility/PathBuilder.js +0 -38
- package/lib/component/utility/PathBuilder.js.map +0 -1
- package/src/component/elements/ReactTable/Elements/ReactTableHeader.tsx +0 -81
- package/src/component/elements/ReactTable/utility/ReactTableContext.ts +0 -14
- package/src/component/elements/ReactTable/utility/addCustomColumn.tsx +0 -75
- package/src/component/elements/ReactTable/utility/useRowSpan.ts +0 -61
- package/src/component/elements/export/utilities/transferDocumentStyles.ts +0 -21
- package/src/component/utility/PathBuilder.ts +0 -41
- /package/src/component/elements/{ReactTable/BaseReactTable.tsx → tanstack_table/elements/base_react_table.tsx} +0 -0
- /package/src/component/elements/{ReactTable/Elements/EmptyDataRow.tsx → tanstack_table/elements/empty_data_row.tsx} +0 -0
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DialogFooter } from '@blueprintjs/core';
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
|
+
import { revalidateLogic } from '@tanstack/react-form';
|
|
2
4
|
import type { ChangeEvent, LogEntry } from 'fifo-logger';
|
|
3
5
|
import { FifoLogger } from 'fifo-logger';
|
|
4
6
|
import debounce from 'lodash/debounce.js';
|
|
5
7
|
import { resurrect } from 'nmr-processing';
|
|
6
|
-
import { useEffect, useMemo, useRef
|
|
7
|
-
import {
|
|
8
|
+
import { useEffect, useMemo, useRef } from 'react';
|
|
9
|
+
import { AppForm, createTableColumnHelper, useForm } from 'react-science/ui';
|
|
10
|
+
import { z } from 'zod';
|
|
8
11
|
|
|
9
12
|
import { useDispatch } from '../context/DispatchContext.js';
|
|
10
13
|
import { useToaster } from '../context/ToasterContext.js';
|
|
11
|
-
import { GroupPane } from '../elements/GroupPane.js';
|
|
12
|
-
import type { Column } from '../elements/ReactTable/ReactTable.js';
|
|
13
|
-
import ReactTable from '../elements/ReactTable/ReactTable.js';
|
|
14
14
|
import { StandardDialog } from '../elements/StandardDialog.tsx';
|
|
15
15
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
16
16
|
|
|
17
|
+
import { TableSettings } from './setting/tanstack_general_settings/ui/table.tsx';
|
|
18
|
+
import { TableSection } from './setting/tanstack_general_settings/ui/table_section.tsx';
|
|
19
|
+
|
|
17
20
|
interface InnerImportPublicationStringModalProps {
|
|
18
21
|
onClose: () => void;
|
|
19
22
|
}
|
|
@@ -22,38 +25,57 @@ interface ImportPublicationStringModalProps extends InnerImportPublicationString
|
|
|
22
25
|
isOpen: boolean;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
28
|
+
const Dialog = styled(StandardDialog)`
|
|
29
|
+
width: 800px;
|
|
30
|
+
`;
|
|
31
|
+
|
|
32
|
+
const Tr = styled.tr<{ level: number }>`
|
|
33
|
+
background-color: ${({ level }) => (level > 40 ? 'pink' : level === 40 ? 'lightyellow' : 'lightgreen')};
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
background-color: #ff6f0091 !important;
|
|
32
37
|
}
|
|
38
|
+
`;
|
|
33
39
|
|
|
34
|
-
|
|
35
|
-
|
|
40
|
+
const TableWrapper = styled.div`
|
|
41
|
+
max-height: 120px;
|
|
42
|
+
overflow-y: auto;
|
|
43
|
+
`;
|
|
44
|
+
|
|
45
|
+
const logSchema = z.custom<LogEntry>();
|
|
46
|
+
|
|
47
|
+
const formSchema = z.object({
|
|
48
|
+
publicationText: z.string().trim().min(1),
|
|
49
|
+
logs: z.array(logSchema),
|
|
50
|
+
});
|
|
36
51
|
|
|
37
|
-
const INITIAL_VALUES = {
|
|
52
|
+
const INITIAL_VALUES: z.input<typeof formSchema> = {
|
|
53
|
+
logs: [],
|
|
38
54
|
publicationText:
|
|
39
55
|
'1H NMR (CDCl3, 400MHz) δ 1 (s, 1H), 2 (d, 1H, J=7), 3 (t, 1H, J=7), 4 (q, 1H, J=7), 5 (quint, 1H, J=7), 6 (hex, 1H, J=7), 7 (hept, 1H, J=7), 8 (dd, 1H, J=7, J=4)',
|
|
40
56
|
};
|
|
41
57
|
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
const logHelper = createTableColumnHelper<LogEntry>();
|
|
59
|
+
const logColumns = [
|
|
60
|
+
logHelper.accessor('id', {
|
|
61
|
+
header: '#',
|
|
62
|
+
meta: {
|
|
63
|
+
thStyle: {
|
|
64
|
+
width: '40px',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
}),
|
|
68
|
+
logHelper.accessor('levelLabel', {
|
|
69
|
+
header: 'Label',
|
|
70
|
+
meta: {
|
|
71
|
+
tdStyle: {
|
|
72
|
+
width: '60px',
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
}),
|
|
76
|
+
logHelper.accessor('message', {
|
|
77
|
+
header: 'Message',
|
|
78
|
+
}),
|
|
57
79
|
];
|
|
58
80
|
|
|
59
81
|
export function ImportPublicationStringModal(
|
|
@@ -72,138 +94,140 @@ function InnerImportPublicationStringModal(
|
|
|
72
94
|
|
|
73
95
|
const dispatch = useDispatch();
|
|
74
96
|
const toaster = useToaster();
|
|
75
|
-
const [logs, setLogs] = useState<LogEntry[]>([]);
|
|
76
97
|
const loggerRef = useRef<FifoLogger>(new FifoLogger());
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
98
|
+
|
|
99
|
+
const form = useForm({
|
|
100
|
+
defaultValues: INITIAL_VALUES,
|
|
101
|
+
validationLogic: revalidateLogic({ mode: 'change' }),
|
|
102
|
+
validators: {
|
|
103
|
+
onDynamic: formSchema,
|
|
104
|
+
},
|
|
105
|
+
onSubmit: ({ value }) => {
|
|
106
|
+
const { publicationText } = formSchema.parse(value);
|
|
107
|
+
|
|
108
|
+
const hideLoading = toaster.showLoading({
|
|
109
|
+
message: 'Generate spectrum from publication string in progress',
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
const {
|
|
113
|
+
ranges,
|
|
114
|
+
info: { nucleus, solvent = '', frequency },
|
|
115
|
+
parts,
|
|
116
|
+
} = resurrect(publicationText, { logger: loggerRef.current });
|
|
117
|
+
|
|
118
|
+
dispatch({
|
|
119
|
+
type: 'GENERATE_SPECTRUM_FROM_PUBLICATION_STRING',
|
|
120
|
+
payload: {
|
|
121
|
+
ranges,
|
|
122
|
+
info: { nucleus, solvent, frequency, name: parts[0] },
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
hideLoading();
|
|
127
|
+
onClose();
|
|
128
|
+
},
|
|
129
|
+
});
|
|
82
130
|
|
|
83
131
|
useEffect(() => {
|
|
84
132
|
function handleLogs({ detail: { logs } }: ChangeEvent) {
|
|
85
|
-
|
|
133
|
+
form.setFieldValue('logs', logs.slice());
|
|
86
134
|
}
|
|
135
|
+
|
|
87
136
|
const loggerInstance = loggerRef.current;
|
|
88
137
|
loggerInstance.addEventListener('change', handleLogs);
|
|
89
138
|
|
|
90
139
|
return () => {
|
|
91
140
|
loggerInstance.removeEventListener('change', handleLogs);
|
|
92
141
|
};
|
|
93
|
-
}, []);
|
|
142
|
+
}, [form]);
|
|
94
143
|
|
|
95
144
|
const debounceChanges = useMemo(
|
|
96
145
|
() =>
|
|
97
|
-
debounce((value:
|
|
146
|
+
debounce((value: string) => {
|
|
98
147
|
resurrect(value, { logger: loggerRef.current });
|
|
99
148
|
}, 250),
|
|
100
149
|
[],
|
|
101
150
|
);
|
|
102
151
|
|
|
103
|
-
function publicationStringHandler({
|
|
104
|
-
publicationText,
|
|
105
|
-
}: {
|
|
106
|
-
publicationText: string;
|
|
107
|
-
}) {
|
|
108
|
-
void (async () => {
|
|
109
|
-
const hideLoading = toaster.showLoading({
|
|
110
|
-
message: 'Generate spectrum from publication string in progress',
|
|
111
|
-
});
|
|
112
|
-
const {
|
|
113
|
-
ranges,
|
|
114
|
-
info: { nucleus, solvent = '', frequency },
|
|
115
|
-
parts,
|
|
116
|
-
} = resurrect(publicationText, { logger: loggerRef.current });
|
|
117
|
-
setTimeout(() => {
|
|
118
|
-
dispatch({
|
|
119
|
-
type: 'GENERATE_SPECTRUM_FROM_PUBLICATION_STRING',
|
|
120
|
-
payload: {
|
|
121
|
-
ranges,
|
|
122
|
-
info: { nucleus, solvent, frequency, name: parts[0] },
|
|
123
|
-
},
|
|
124
|
-
});
|
|
125
|
-
hideLoading();
|
|
126
|
-
});
|
|
127
|
-
onClose();
|
|
128
|
-
})();
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
function handleOnChange(value: any) {
|
|
132
|
-
loggerRef.current.clear();
|
|
133
|
-
|
|
134
|
-
if (!value) {
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
debounceChanges(value);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
const isNotValid = logs.some((log) =>
|
|
141
|
-
['error', 'fatal'].includes(log.levelLabel),
|
|
142
|
-
);
|
|
143
|
-
|
|
144
152
|
return (
|
|
145
|
-
<
|
|
153
|
+
<Dialog
|
|
146
154
|
title="Generate spectrum from publication string"
|
|
147
155
|
isOpen
|
|
148
156
|
onClose={onClose}
|
|
149
|
-
style={{ width: 800, height: 500 }}
|
|
150
157
|
>
|
|
151
|
-
<
|
|
152
|
-
<
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
158
|
+
<AppForm form={form}>
|
|
159
|
+
<StyledDialogBody>
|
|
160
|
+
<p>
|
|
161
|
+
Paste a publication string in the text area below and click on the
|
|
162
|
+
button <i>Generate spectrum</i>
|
|
163
|
+
</p>
|
|
164
|
+
|
|
165
|
+
<form.AppField
|
|
166
|
+
name="publicationText"
|
|
167
|
+
listeners={{
|
|
168
|
+
onChange: ({ value }) => {
|
|
169
|
+
debounceChanges(value);
|
|
170
|
+
},
|
|
171
|
+
}}
|
|
172
|
+
>
|
|
173
|
+
{(field) => (
|
|
174
|
+
<field.TextArea
|
|
175
|
+
label="Publication text"
|
|
176
|
+
placeholder="Enter publication string"
|
|
177
|
+
fill
|
|
178
|
+
/>
|
|
179
|
+
)}
|
|
180
|
+
</form.AppField>
|
|
181
|
+
|
|
182
|
+
<form.AppField name="logs">
|
|
183
|
+
{(field) => (
|
|
184
|
+
<TableSection title="Logs">
|
|
185
|
+
<TableWrapper>
|
|
186
|
+
<TableSettings
|
|
187
|
+
data={field.state.value}
|
|
188
|
+
columns={logColumns}
|
|
189
|
+
getRowId={getRowId}
|
|
190
|
+
emptyContent="No Logs"
|
|
191
|
+
tdStyle={{
|
|
192
|
+
padding: '0.15rem 0.4rem',
|
|
193
|
+
}}
|
|
194
|
+
renderRowTr={(trProps, row) => {
|
|
195
|
+
const level = row.original.level;
|
|
196
|
+
|
|
197
|
+
return <Tr level={level} {...trProps} />;
|
|
177
198
|
}}
|
|
178
|
-
intent={invalid ? 'danger' : 'none'}
|
|
179
|
-
style={{ flex: 1, width: '100%', resize: 'none' }}
|
|
180
199
|
/>
|
|
200
|
+
</TableWrapper>
|
|
201
|
+
</TableSection>
|
|
202
|
+
)}
|
|
203
|
+
</form.AppField>
|
|
204
|
+
</StyledDialogBody>
|
|
205
|
+
<DialogFooter
|
|
206
|
+
actions={
|
|
207
|
+
<form.Subscribe
|
|
208
|
+
selector={(store) => {
|
|
209
|
+
const { logs } = store.values;
|
|
210
|
+
|
|
211
|
+
const isNotValid = logs.some((log) =>
|
|
212
|
+
['error', 'fatal'].includes(log.levelLabel),
|
|
181
213
|
);
|
|
214
|
+
|
|
215
|
+
return isNotValid || !store.isValid;
|
|
182
216
|
}}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
</div>
|
|
195
|
-
</StyledDialogBody>
|
|
196
|
-
<DialogFooter>
|
|
197
|
-
<div style={{ display: 'flex', flexDirection: 'row-reverse' }}>
|
|
198
|
-
<Button
|
|
199
|
-
onClick={() => handleSubmit(publicationStringHandler)()}
|
|
200
|
-
disabled={isNotValid || !isValid}
|
|
201
|
-
intent="success"
|
|
202
|
-
>
|
|
203
|
-
Generate spectrum
|
|
204
|
-
</Button>
|
|
205
|
-
</div>
|
|
206
|
-
</DialogFooter>
|
|
207
|
-
</StandardDialog>
|
|
217
|
+
>
|
|
218
|
+
{(disabled) => (
|
|
219
|
+
<form.SubmitButton intent="success" disabled={disabled}>
|
|
220
|
+
Generate spectrum
|
|
221
|
+
</form.SubmitButton>
|
|
222
|
+
)}
|
|
223
|
+
</form.Subscribe>
|
|
224
|
+
}
|
|
225
|
+
/>
|
|
226
|
+
</AppForm>
|
|
227
|
+
</Dialog>
|
|
208
228
|
);
|
|
209
229
|
}
|
|
230
|
+
|
|
231
|
+
function getRowId(row: LogEntry) {
|
|
232
|
+
return String(row.id);
|
|
233
|
+
}
|
|
@@ -5,15 +5,17 @@ import { FaRegTrashAlt } from 'react-icons/fa';
|
|
|
5
5
|
import { IoBugOutline } from 'react-icons/io5';
|
|
6
6
|
import { ObjectInspector } from 'react-inspector';
|
|
7
7
|
import { useOnOff } from 'react-science/ui';
|
|
8
|
-
import type { CellProps } from 'react-table';
|
|
9
8
|
|
|
10
9
|
import { useLogger } from '../context/LoggerContext.js';
|
|
11
10
|
import Button from '../elements/Button.js';
|
|
12
11
|
import { ColumnWrapper } from '../elements/ColumnWrapper.js';
|
|
13
|
-
import type { Column } from '../elements/ReactTable/ReactTable.js';
|
|
14
|
-
import ReactTable from '../elements/ReactTable/ReactTable.js';
|
|
15
12
|
import { StandardDialog } from '../elements/StandardDialog.tsx';
|
|
16
13
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
14
|
+
import type { TanStackTableRow } from '../elements/tanstack_table/index.ts';
|
|
15
|
+
import {
|
|
16
|
+
TanStackTable,
|
|
17
|
+
createTanStackColumnHelper,
|
|
18
|
+
} from '../elements/tanstack_table/index.ts';
|
|
17
19
|
|
|
18
20
|
const logsDataFormat = new Intl.DateTimeFormat('default', {
|
|
19
21
|
hour: 'numeric',
|
|
@@ -21,8 +23,8 @@ const logsDataFormat = new Intl.DateTimeFormat('default', {
|
|
|
21
23
|
second: 'numeric',
|
|
22
24
|
});
|
|
23
25
|
|
|
24
|
-
function handleRowStyle(
|
|
25
|
-
const level =
|
|
26
|
+
function handleRowStyle(row: TanStackTableRow<LogEntry>) {
|
|
27
|
+
const level = row.original.level;
|
|
26
28
|
let backgroundColor = 'lightgreen';
|
|
27
29
|
if (level > 40) {
|
|
28
30
|
backgroundColor = 'pink';
|
|
@@ -77,12 +79,13 @@ export function LogsHistoryModal(props: LogsHistoryModalProps) {
|
|
|
77
79
|
lastReadLogId,
|
|
78
80
|
);
|
|
79
81
|
|
|
80
|
-
const COLUMNS = useMemo
|
|
81
|
-
()
|
|
82
|
+
const COLUMNS = useMemo(() => {
|
|
83
|
+
const columnHelper = createTanStackColumnHelper<LogEntry>();
|
|
84
|
+
return columnHelper.columns([
|
|
82
85
|
{
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
+
header: '#',
|
|
87
|
+
accessorFn: (_, index) => index + 1,
|
|
88
|
+
cell: ({ row }) => (
|
|
86
89
|
<span>
|
|
87
90
|
{row.original.id > lastReadLogId && (
|
|
88
91
|
<div
|
|
@@ -99,26 +102,27 @@ export function LogsHistoryModal(props: LogsHistoryModalProps) {
|
|
|
99
102
|
{row.index + 1}
|
|
100
103
|
</span>
|
|
101
104
|
),
|
|
102
|
-
style: { width: '40px' },
|
|
105
|
+
meta: { style: { width: '40px' } },
|
|
103
106
|
},
|
|
104
107
|
{
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
+
header: 'Time',
|
|
109
|
+
accessorKey: 'time',
|
|
110
|
+
cell: ({ getValue }) => logsDataFormat.format(getValue()),
|
|
111
|
+
meta: { style: { width: '100px' } },
|
|
108
112
|
},
|
|
109
113
|
{
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
style: { width: '60px' },
|
|
114
|
+
header: 'Label',
|
|
115
|
+
accessorKey: 'levelLabel',
|
|
116
|
+
meta: { style: { width: '60px' } },
|
|
113
117
|
},
|
|
114
118
|
{
|
|
115
|
-
|
|
116
|
-
|
|
119
|
+
header: 'Message',
|
|
120
|
+
accessorKey: 'message',
|
|
117
121
|
},
|
|
118
122
|
|
|
119
123
|
{
|
|
120
|
-
|
|
121
|
-
|
|
124
|
+
header: 'Error',
|
|
125
|
+
cell: ({ row }) => {
|
|
122
126
|
const { error } = row.original;
|
|
123
127
|
return (
|
|
124
128
|
<ColumnWrapper>
|
|
@@ -127,11 +131,14 @@ export function LogsHistoryModal(props: LogsHistoryModalProps) {
|
|
|
127
131
|
);
|
|
128
132
|
},
|
|
129
133
|
},
|
|
130
|
-
]
|
|
131
|
-
|
|
134
|
+
]);
|
|
135
|
+
}, [lastReadLogId]);
|
|
136
|
+
|
|
137
|
+
const sortedLogs = useMemo(
|
|
138
|
+
() => logsHistory.toSorted((a, b) => b.time - a.time),
|
|
139
|
+
[logsHistory],
|
|
132
140
|
);
|
|
133
141
|
|
|
134
|
-
const sortedLogs = logsHistory.toSorted((a, b) => b.time - a.time);
|
|
135
142
|
return (
|
|
136
143
|
<>
|
|
137
144
|
{!autoOpen && (
|
|
@@ -173,7 +180,7 @@ export function LogsHistoryModal(props: LogsHistoryModalProps) {
|
|
|
173
180
|
style={{ width: '50vw', height: '50vh' }}
|
|
174
181
|
>
|
|
175
182
|
<StyledDialogBody>
|
|
176
|
-
<
|
|
183
|
+
<TanStackTable
|
|
177
184
|
columns={COLUMNS}
|
|
178
185
|
data={sortedLogs}
|
|
179
186
|
emptyDataRowText="No Logs"
|
package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx
CHANGED
|
@@ -7,14 +7,15 @@ import { useCallback, useMemo, useRef } from 'react';
|
|
|
7
7
|
import { useFormContext, useWatch } from 'react-hook-form';
|
|
8
8
|
import { FaPlus, FaRegTrashAlt } from 'react-icons/fa';
|
|
9
9
|
import { Toolbar } from 'react-science/ui';
|
|
10
|
-
import type { CellProps } from 'react-table';
|
|
11
10
|
|
|
12
11
|
import { multiplets } from '../../../../../../data/constants/Multiplets.js';
|
|
13
12
|
import { NumberInput2Controller } from '../../../../../elements/NumberInput2Controller.js';
|
|
14
|
-
import type { Column } from '../../../../../elements/ReactTable/ReactTable.js';
|
|
15
|
-
import ReactTable from '../../../../../elements/ReactTable/ReactTable.js';
|
|
16
13
|
import { Select2Controller } from '../../../../../elements/Select2Controller.js';
|
|
17
14
|
import { useTabsController } from '../../../../../elements/TabsProvider.js';
|
|
15
|
+
import {
|
|
16
|
+
TanStackTable,
|
|
17
|
+
createTanStackColumnHelper,
|
|
18
|
+
} from '../../../../../elements/tanstack_table/index.ts';
|
|
18
19
|
import useSpectrum from '../../../../../hooks/useSpectrum.js';
|
|
19
20
|
import { hasCouplingConstant } from '../../../../../panels/extra/utilities/MultiplicityUtilities.js';
|
|
20
21
|
import { useEvent } from '../../../../../utility/Events.js';
|
|
@@ -57,6 +58,7 @@ export function SignalJCouplingsTable(props: SignalJCouplingsTableProps) {
|
|
|
57
58
|
setValue,
|
|
58
59
|
control,
|
|
59
60
|
setFocus,
|
|
61
|
+
getValues,
|
|
60
62
|
formState: { errors },
|
|
61
63
|
} = useFormContext();
|
|
62
64
|
const signals = useWatch({ name: 'signals' });
|
|
@@ -125,7 +127,8 @@ export function SignalJCouplingsTable(props: SignalJCouplingsTableProps) {
|
|
|
125
127
|
);
|
|
126
128
|
|
|
127
129
|
const deleteHandler = useCallback(
|
|
128
|
-
(
|
|
130
|
+
(index: number) => {
|
|
131
|
+
const data = getValues(`signals.${signalIndex}.js`) || [];
|
|
129
132
|
const jCouplings = data.filter(
|
|
130
133
|
(_: any, columnIndex: number) => columnIndex !== index,
|
|
131
134
|
);
|
|
@@ -135,24 +138,26 @@ export function SignalJCouplingsTable(props: SignalJCouplingsTableProps) {
|
|
|
135
138
|
lastSelectedCouplingIndexRef.current = null;
|
|
136
139
|
}
|
|
137
140
|
},
|
|
138
|
-
[setValue, signalIndex],
|
|
141
|
+
[getValues, setValue, signalIndex],
|
|
139
142
|
);
|
|
140
143
|
|
|
141
144
|
function deleteAllHandler() {
|
|
142
145
|
setValue(`signals[${signalIndex}].js`, []);
|
|
143
146
|
lastSelectedCouplingIndexRef.current = null;
|
|
144
147
|
}
|
|
145
|
-
|
|
146
|
-
|
|
148
|
+
|
|
149
|
+
const COLUMNS = useMemo(() => {
|
|
150
|
+
const columnHelper = createTanStackColumnHelper<Jcoupling>();
|
|
151
|
+
return columnHelper.columns([
|
|
147
152
|
{
|
|
148
|
-
|
|
149
|
-
style: { width: '25px', ...styles.column },
|
|
150
|
-
|
|
153
|
+
header: '#',
|
|
154
|
+
meta: { style: { width: '25px', ...styles.column } },
|
|
155
|
+
accessorFn: (_: any, index) => index + 1,
|
|
151
156
|
},
|
|
152
157
|
{
|
|
153
|
-
|
|
154
|
-
style: { padding: 0, ...styles.column },
|
|
155
|
-
|
|
158
|
+
header: 'Multiplicity',
|
|
159
|
+
meta: { style: { padding: 0, ...styles.column } },
|
|
160
|
+
cell: ({ row }) => {
|
|
156
161
|
return (
|
|
157
162
|
<Select2Controller
|
|
158
163
|
control={control}
|
|
@@ -184,9 +189,9 @@ export function SignalJCouplingsTable(props: SignalJCouplingsTableProps) {
|
|
|
184
189
|
},
|
|
185
190
|
},
|
|
186
191
|
{
|
|
187
|
-
|
|
188
|
-
style: { padding: 0, ...styles.column },
|
|
189
|
-
|
|
192
|
+
header: 'J (Hz)',
|
|
193
|
+
meta: { style: { padding: 0, ...styles.column } },
|
|
194
|
+
cell: ({ row }) => {
|
|
190
195
|
return (
|
|
191
196
|
<NumberInput2Controller
|
|
192
197
|
control={control}
|
|
@@ -203,10 +208,10 @@ export function SignalJCouplingsTable(props: SignalJCouplingsTableProps) {
|
|
|
203
208
|
},
|
|
204
209
|
},
|
|
205
210
|
{
|
|
206
|
-
|
|
207
|
-
style: { width: '70px', ...styles.column },
|
|
211
|
+
header: '',
|
|
212
|
+
meta: { style: { width: '70px', ...styles.column } },
|
|
208
213
|
id: 'action-button',
|
|
209
|
-
|
|
214
|
+
cell: ({ row }) => {
|
|
210
215
|
const record: any = row.original;
|
|
211
216
|
return (
|
|
212
217
|
<div style={{ display: 'flex', justifyContent: 'space-around' }}>
|
|
@@ -215,7 +220,7 @@ export function SignalJCouplingsTable(props: SignalJCouplingsTableProps) {
|
|
|
215
220
|
size="small"
|
|
216
221
|
variant="outlined"
|
|
217
222
|
intent="danger"
|
|
218
|
-
onClick={() => deleteHandler(
|
|
223
|
+
onClick={() => deleteHandler(row.index)}
|
|
219
224
|
>
|
|
220
225
|
<FaRegTrashAlt className={Classes.ICON} />
|
|
221
226
|
</Button>
|
|
@@ -224,9 +229,8 @@ export function SignalJCouplingsTable(props: SignalJCouplingsTableProps) {
|
|
|
224
229
|
);
|
|
225
230
|
},
|
|
226
231
|
},
|
|
227
|
-
]
|
|
228
|
-
|
|
229
|
-
);
|
|
232
|
+
]);
|
|
233
|
+
}, [control, deleteHandler, setFocus, setValue, signalIndex]);
|
|
230
234
|
|
|
231
235
|
function selectRowHandler(index: number) {
|
|
232
236
|
setFocusSource('coupling');
|
|
@@ -263,7 +267,7 @@ export function SignalJCouplingsTable(props: SignalJCouplingsTableProps) {
|
|
|
263
267
|
overflow: 'auto',
|
|
264
268
|
}}
|
|
265
269
|
>
|
|
266
|
-
<
|
|
270
|
+
<TanStackTable
|
|
267
271
|
data={signal?.js || []}
|
|
268
272
|
columns={COLUMNS}
|
|
269
273
|
onClick={(e, rowData: any) => selectRowHandler(rowData.index)}
|