nmrium 2.7.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/SVGContent1D.js +3 -3
- 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/inset/DraggableInset.d.ts +1 -1
- package/lib/component/1d/inset/DraggableInset.d.ts.map +1 -1
- package/lib/component/1d/inset/DraggableInset.js.map +1 -1
- package/lib/component/1d/inset/InsetProvider.d.ts +1 -1
- package/lib/component/1d/inset/InsetProvider.d.ts.map +1 -1
- package/lib/component/1d/inset/InsetProvider.js.map +1 -1
- package/lib/component/1d/inset/SpectraInsets.d.ts +0 -23
- package/lib/component/1d/inset/SpectraInsets.d.ts.map +1 -1
- package/lib/component/1d/inset/SpectraInsets.js +1 -1
- package/lib/component/1d/inset/SpectraInsets.js.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.d.ts +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeaksShapes.d.ts +1 -2
- package/lib/component/1d/peaks/PeaksShapes.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeaksShapes.js +31 -17
- package/lib/component/1d/peaks/PeaksShapes.js.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts +1 -2
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js +2 -3
- 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 +1 -1
- package/lib/component/1d/plugin_svg_chart.d.ts.map +1 -1
- package/lib/component/1d/plugin_svg_chart.js +16 -11
- package/lib/component/1d/plugin_svg_chart.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/1d-2d/tools/CursorToolIcon.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/CursorToolIcon.js +23 -6
- package/lib/component/1d-2d/tools/CursorToolIcon.js.map +1 -1
- package/lib/component/2d/BrushTracker2D.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/KeysListenerTracker.d.ts +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.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/LoggerContext.js +1 -1
- package/lib/component/context/LoggerContext.js.map +1 -1
- package/lib/component/context/ScaleContext.d.ts +1 -1
- package/lib/component/context/ScaleContext.d.ts.map +1 -1
- package/lib/component/context/ScaleContext.js.map +1 -1
- package/lib/component/context/processings_mutations_context.api.d.ts +3 -2
- package/lib/component/context/processings_mutations_context.api.d.ts.map +1 -1
- package/lib/component/context/processings_mutations_context.api.js +82 -10
- package/lib/component/context/processings_mutations_context.api.js.map +1 -1
- package/lib/component/elements/Anchor.d.ts +1 -1
- package/lib/component/elements/Anchor.d.ts.map +1 -1
- package/lib/component/elements/DraggableDialog.js.map +1 -1
- package/lib/component/elements/EditableColumn.d.ts +6 -2
- package/lib/component/elements/EditableColumn.d.ts.map +1 -1
- package/lib/component/elements/EditableColumn.js +35 -25
- package/lib/component/elements/EditableColumn.js.map +1 -1
- package/lib/component/elements/ResizerWithScale.js +1 -1
- package/lib/component/elements/ResizerWithScale.js.map +1 -1
- package/lib/component/elements/export/ExportManager.d.ts +1 -1
- package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
- package/lib/component/elements/export/ExportManager.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} +30 -38
- 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/header/AutoPeakPickingOptionPanel.js +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.js.map +1 -1
- package/lib/component/header/Header.js +1 -1
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/hooks/reduce2DSpectrum.js +1 -1
- package/lib/component/hooks/useCombinedRefs.d.ts +2 -2
- package/lib/component/hooks/useCombinedRefs.d.ts.map +1 -1
- package/lib/component/hooks/useCombinedRefs.js +1 -1
- package/lib/component/hooks/useCombinedRefs.js.map +1 -1
- package/lib/component/hooks/useSaveSettings.js +1 -1
- package/lib/component/hooks/useSaveSettings.js.map +1 -1
- package/lib/component/hooks/use_axis_unit.d.ts +3 -3
- package/lib/component/main/InnerNMRiumContents.d.ts +4 -4
- package/lib/component/main/InnerNMRiumContents.d.ts.map +1 -1
- package/lib/component/main/NMRium.d.ts +1 -1
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRiumRefAPI.d.ts +1 -1
- package/lib/component/main/NMRiumRefAPI.d.ts.map +1 -1
- package/lib/component/main/NMRiumRefAPI.js.map +1 -1
- package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
- package/lib/component/main/NMRiumStateProvider.js +4 -2
- package/lib/component/main/NMRiumStateProvider.js.map +1 -1
- package/lib/component/main/NMRiumViewer.d.ts +1 -1
- package/lib/component/main/NMRiumViewer.d.ts.map +1 -1
- package/lib/component/main/NMRiumViewerWrapper.d.ts +1 -1
- package/lib/component/main/NMRiumViewerWrapper.d.ts.map +1 -1
- package/lib/component/main/types.d.ts +2 -2
- package/lib/component/main/types.d.ts.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.js +96 -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/changeSum/SelectMolecule.js +2 -2
- package/lib/component/modal/changeSum/SelectMolecule.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 +81 -81
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +81 -81
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +81 -81
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +9 -9
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +28 -28
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +10 -10
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +6 -6
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +27 -27
- 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/AutomaticAssignment/useAutoAssignments.js +1 -1
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.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/IntegralsPanel/IntegralsPreferences.d.ts +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/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.d.ts +1 -0
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js +30 -6
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts +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/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js +33 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPreferences.d.ts +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/SpectrumListPanel.js +1 -1
- package/lib/component/panels/SpectraPanel/SpectrumListPanel.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/ZonesPreferences.d.ts +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/Filters/FiltersSectionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.d.ts +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js.map +1 -1
- package/lib/component/panels/filtersPanel/processings/processing_item.js +1 -1
- package/lib/component/panels/filtersPanel/processings/processing_item.js.map +1 -1
- package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts +2 -6
- package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/processings/use_live_edit.js +9 -9
- package/lib/component/panels/filtersPanel/processings/use_live_edit.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/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/Reducer.d.ts +5 -6
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +1 -1
- package/lib/component/reducer/Reducer.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 +2 -3
- package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/InsetActions.js +4 -5
- package/lib/component/reducer/actions/InsetActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +1 -0
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +33 -11
- package/lib/component/reducer/actions/RangesActions.js.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/actions/processings_actions.d.ts +1 -0
- package/lib/component/reducer/actions/processings_actions.d.ts.map +1 -1
- package/lib/component/reducer/actions/processings_actions.js +4 -2
- package/lib/component/reducer/actions/processings_actions.js.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 +2 -2
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js +1 -1
- package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js.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/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_mouse_icon.d.ts +9 -0
- package/lib/component/utility/core_slots/core_operator_chart_mouse_icon.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_mouse_icon.js +14 -0
- package/lib/component/utility/core_slots/core_operator_chart_mouse_icon.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_svg.js +1 -13
- package/lib/component/utility/core_slots/core_operator_chart_svg.js.map +1 -1
- package/lib/component/utility/core_slots/core_operator_expanded.d.ts +1 -1
- package/lib/component/utility/core_slots/core_operator_expanded.d.ts.map +1 -1
- package/lib/component/utility/core_slots/core_slot.d.ts +1 -1
- package/lib/component/utility/core_slots/core_slot.d.ts.map +1 -1
- package/lib/component/utility/filterDatabaseInfoEntry.js +1 -1
- package/lib/component/utility/filterDatabaseInfoEntry.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +2 -0
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts +1 -0
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +2 -2
- package/lib/data/data2d/Spectrum2D/get2DColor.js +5 -5
- package/lib/data/data2d/Spectrum2D/get2DColor.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +2 -0
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +34 -36
- package/src/component/1d/BrushTracker1D.tsx +19 -21
- package/src/component/1d/SVGContent1D.tsx +3 -3
- package/src/component/1d/Viewer1D.tsx +2 -0
- package/src/component/1d/inset/DraggableInset.tsx +2 -1
- package/src/component/1d/inset/InsetProvider.tsx +1 -2
- package/src/component/1d/inset/SpectraInsets.tsx +1 -32
- package/src/component/1d/peaks/PeaksShapes.tsx +62 -40
- package/src/component/1d/peaks/usePeakShapesPath.ts +2 -4
- package/src/component/1d/plugin_chart_brush_tracker.tsx +63 -0
- package/src/component/1d/plugin_svg_chart.tsx +26 -15
- package/src/component/1d-2d/tools/BrushXY.tsx +1 -1
- package/src/component/1d-2d/tools/CrossLinePointer.tsx +1 -1
- package/src/component/1d-2d/tools/CursorToolIcon.tsx +38 -16
- package/src/component/2d/BrushTracker2D.tsx +5 -5
- package/src/component/2d/utilities/DimensionLayout.ts +1 -1
- package/src/component/EventsTrackers/BrushTracker.tsx +119 -119
- package/src/component/EventsTrackers/KeysListenerTracker.tsx +1 -1
- 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/LoggerContext.tsx +1 -1
- package/src/component/context/ScaleContext.tsx +2 -1
- package/src/component/context/processings_mutations_context.api.ts +115 -17
- package/src/component/elements/Anchor.tsx +1 -1
- package/src/component/elements/DraggableDialog.tsx +2 -2
- package/src/component/elements/EditableColumn.tsx +93 -63
- package/src/component/elements/ResizerWithScale.tsx +1 -1
- package/src/component/elements/export/ExportManager.tsx +1 -1
- 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} +79 -158
- package/src/component/elements/tanstack_table/types.ts +86 -0
- package/src/component/header/AutoPeakPickingOptionPanel.tsx +1 -1
- package/src/component/header/Header.tsx +1 -1
- package/src/component/hooks/reduce2DSpectrum.ts +1 -1
- package/src/component/hooks/useCombinedRefs.ts +3 -3
- package/src/component/hooks/useSaveSettings.tsx +1 -1
- package/src/component/main/InnerNMRiumContents.tsx +4 -4
- package/src/component/main/NMRiumRefAPI.ts +1 -1
- package/src/component/main/NMRiumStateProvider.tsx +4 -2
- package/src/component/main/NMRiumViewer.tsx +1 -1
- package/src/component/main/NMRiumViewerWrapper.tsx +1 -1
- package/src/component/main/types.ts +3 -3
- package/src/component/modal/ImportPublicationStringModal.tsx +167 -136
- package/src/component/modal/LogsHistoryModal.tsx +32 -25
- package/src/component/modal/changeSum/SelectMolecule.tsx +2 -2
- 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/panels/AutomaticAssignment/AutomaticAssignmentTable.tsx +27 -25
- package/src/component/panels/AutomaticAssignment/useAutoAssignments.ts +1 -1
- package/src/component/panels/IntegralsPanel/IntegralTable.tsx +75 -89
- package/src/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.tsx +68 -60
- package/src/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.ts +40 -8
- 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/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +52 -2
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +58 -36
- package/src/component/panels/SpectraPanel/SpectrumListPanel.tsx +1 -1
- 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/Filters/FiltersSectionsPanel.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.tsx +2 -2
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.tsx +2 -2
- package/src/component/panels/filtersPanel/processings/processing_item.tsx +1 -1
- package/src/component/panels/filtersPanel/processings/use_live_edit.ts +9 -17
- package/src/component/panels/informationPanel/InformationEditionModal.tsx +40 -37
- 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/Reducer.ts +7 -4
- package/src/component/reducer/actions/DatabaseActions.ts +4 -3
- package/src/component/reducer/actions/InsetActions.ts +8 -10
- package/src/component/reducer/actions/RangesActions.ts +78 -20
- package/src/component/reducer/actions/ToolsActions.ts +1 -1
- package/src/component/reducer/actions/processings_actions.ts +5 -2
- package/src/component/reducer/helper/Zoom1DManager.ts +1 -1
- package/src/component/reducer/helper/ZoomHistoryManager.ts +2 -2
- package/src/component/reducer/helper/removeSpectrumRelatedObjectsById.ts +1 -1
- package/src/component/reducer/preferences/actions/matrixGeneration.ts +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_mouse_icon.tsx +32 -0
- package/src/component/utility/core_slots/core_operator_chart_svg.tsx +2 -17
- package/src/component/utility/filterDatabaseInfoEntry.ts +1 -1
- package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +3 -0
- package/src/data/data2d/Spectrum2D/contours.ts +2 -2
- package/src/data/data2d/Spectrum2D/get2DColor.ts +5 -5
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +4 -0
- package/src/utils/clipboard/clipboardComponents.tsx +5 -5
- 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/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/{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,7 +1,7 @@
|
|
|
1
|
-
/* eslint-disable unicorn/prefer-logical-operator-over-ternary */
|
|
2
1
|
/** @jsxImportSource @emotion/react */
|
|
3
2
|
import type { CSSObject, SerializedStyles } from '@emotion/react';
|
|
4
3
|
import { css } from '@emotion/react';
|
|
4
|
+
import { useTable } from '@tanstack/react-table';
|
|
5
5
|
import type {
|
|
6
6
|
CSSProperties,
|
|
7
7
|
MouseEvent,
|
|
@@ -10,7 +10,6 @@ import type {
|
|
|
10
10
|
UIEvent,
|
|
11
11
|
} from 'react';
|
|
12
12
|
import {
|
|
13
|
-
forwardRef,
|
|
14
13
|
memo,
|
|
15
14
|
useEffect,
|
|
16
15
|
useLayoutEffect,
|
|
@@ -19,105 +18,62 @@ import {
|
|
|
19
18
|
useState,
|
|
20
19
|
} from 'react';
|
|
21
20
|
import { useResizeObserver } from 'react-d3-utils';
|
|
22
|
-
import type {
|
|
23
|
-
CellProps,
|
|
24
|
-
Column as ReactColumn,
|
|
25
|
-
Row,
|
|
26
|
-
TableInstance,
|
|
27
|
-
UseSortByColumnOptions,
|
|
28
|
-
UseSortByInstanceProps,
|
|
29
|
-
UseSortByOptions,
|
|
30
|
-
UseTableOptions,
|
|
31
|
-
} from 'react-table';
|
|
32
|
-
import { useSortBy, useTable } from 'react-table';
|
|
33
21
|
|
|
34
|
-
import
|
|
35
|
-
|
|
36
|
-
HighlightEventSourceType,
|
|
37
|
-
} from '../../highlight/index.js';
|
|
38
|
-
import type { BaseContextMenuProps } from '../ContextMenuBluePrint.js';
|
|
39
|
-
|
|
40
|
-
import { BaseReactTable } from './BaseReactTable.js';
|
|
41
|
-
import { EmptyDataRow } from './Elements/EmptyDataRow.js';
|
|
42
|
-
import ReactTableHeader from './Elements/ReactTableHeader.js';
|
|
43
|
-
import type { ClickEvent } from './Elements/ReactTableRow.js';
|
|
44
|
-
import ReactTableRow from './Elements/ReactTableRow.js';
|
|
22
|
+
import { BaseReactTable } from './elements/base_react_table.tsx';
|
|
23
|
+
import { EmptyDataRow } from './elements/empty_data_row.tsx';
|
|
45
24
|
import {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} from './
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
type TableInstanceWithHooks<T extends object> = TableInstance<T> & {
|
|
72
|
-
rowSpanHeaders: RowSpanHeaders;
|
|
73
|
-
} & UseSortByInstanceProps<T>;
|
|
74
|
-
|
|
75
|
-
type TableOptions<T extends object> = UseTableOptions<T> & UseSortByOptions<T>;
|
|
76
|
-
|
|
77
|
-
interface SortEvent {
|
|
78
|
-
onSortEnd?: (data: any, isTableSorted?: boolean) => void;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface BaseRowStyle {
|
|
82
|
-
active?: CSSProperties;
|
|
83
|
-
activated?: CSSProperties;
|
|
84
|
-
hover?: CSSProperties;
|
|
85
|
-
base?: CSSProperties;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export interface TableContextMenuProps {
|
|
89
|
-
onContextMenuSelect?: (
|
|
90
|
-
selected: Parameters<BaseContextMenuProps['onSelect']>[0],
|
|
91
|
-
data: any,
|
|
92
|
-
) => void;
|
|
93
|
-
contextMenu?: BaseContextMenuProps['options'];
|
|
94
|
-
}
|
|
95
|
-
interface ReactTableProps<T extends object>
|
|
96
|
-
extends TableContextMenuProps, ClickEvent, SortEvent {
|
|
97
|
-
data: T[];
|
|
98
|
-
columns: Array<Column<T>>;
|
|
25
|
+
TanStackTableProvider,
|
|
26
|
+
useTanStackTableContext,
|
|
27
|
+
} from './elements/table_context.ts';
|
|
28
|
+
import TableHeader from './elements/table_header.tsx';
|
|
29
|
+
import TableRow from './elements/table_row.tsx';
|
|
30
|
+
import { tanStackTableFeatures } from './features.ts';
|
|
31
|
+
import type {
|
|
32
|
+
TanStackRowData,
|
|
33
|
+
TanStackTableClickEvent,
|
|
34
|
+
TanStackTableColumn,
|
|
35
|
+
TanStackTableContextMenuProps,
|
|
36
|
+
TanStackTableHighlightSourceProps,
|
|
37
|
+
TanStackTableRow,
|
|
38
|
+
TanStackTableRowStyle,
|
|
39
|
+
TanStackTableSortEvent,
|
|
40
|
+
TanStackTableVirtualBoundary,
|
|
41
|
+
} from './types.ts';
|
|
42
|
+
|
|
43
|
+
interface TanStackTableProps<TData extends TanStackRowData>
|
|
44
|
+
extends
|
|
45
|
+
TanStackTableContextMenuProps<TData>,
|
|
46
|
+
TanStackTableClickEvent<TData>,
|
|
47
|
+
TanStackTableSortEvent<TData> {
|
|
48
|
+
data: readonly TData[];
|
|
49
|
+
columns: ReadonlyArray<TanStackTableColumn<TData, any>>;
|
|
99
50
|
approxItemHeight?: number;
|
|
100
51
|
approxColumnWidth?: number;
|
|
101
|
-
groupKey?: keyof
|
|
52
|
+
groupKey?: keyof TData;
|
|
102
53
|
indexKey?: string;
|
|
103
54
|
enableVirtualScroll?: boolean;
|
|
104
55
|
enableColumnsVirtualScroll?: boolean;
|
|
105
|
-
activeRow?: (data:
|
|
56
|
+
activeRow?: (data: TanStackTableRow<TData>) => boolean;
|
|
106
57
|
enableDefaultActiveRow?: boolean;
|
|
107
58
|
totalCount?: number;
|
|
108
59
|
emptyDataRowText?: string;
|
|
109
|
-
rowStyle?:
|
|
60
|
+
rowStyle?:
|
|
61
|
+
| TanStackTableRowStyle
|
|
62
|
+
| ((row: TanStackTableRow<TData>) => TanStackTableRowStyle | undefined);
|
|
110
63
|
style?: CSSObject | SerializedStyles;
|
|
111
64
|
disableDefaultRowStyle?: boolean;
|
|
65
|
+
enableCellSpanning?: boolean;
|
|
112
66
|
}
|
|
113
67
|
|
|
114
|
-
type ReactTableInnerProps<
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
68
|
+
type ReactTableInnerProps<TData extends TanStackRowData> =
|
|
69
|
+
TanStackTableProps<TData> &
|
|
70
|
+
TanStackTableHighlightSourceProps<TData> & {
|
|
71
|
+
containerRef: Ref<HTMLDivElement>;
|
|
72
|
+
onScroll?: (event: UIEvent<HTMLDivElement>) => void;
|
|
73
|
+
};
|
|
118
74
|
|
|
119
|
-
type ReactTableOuterProps<
|
|
120
|
-
|
|
75
|
+
type ReactTableOuterProps<TData extends TanStackRowData> =
|
|
76
|
+
TanStackTableProps<TData> & TanStackTableHighlightSourceProps<TData>;
|
|
121
77
|
|
|
122
78
|
const styles = {
|
|
123
79
|
table: (
|
|
@@ -150,13 +106,8 @@ const counterStyle: CSSProperties = {
|
|
|
150
106
|
fontSize: '1.4em',
|
|
151
107
|
};
|
|
152
108
|
|
|
153
|
-
|
|
154
|
-
props: ReactTableInnerProps<
|
|
155
|
-
) => ReactElement;
|
|
156
|
-
|
|
157
|
-
function TableInner<T extends object>(
|
|
158
|
-
props: ReactTableInnerProps<T>,
|
|
159
|
-
ref: Ref<HTMLDivElement>,
|
|
109
|
+
function TanStackTableInner<TData extends TanStackRowData>(
|
|
110
|
+
props: ReactTableInnerProps<TData>,
|
|
160
111
|
) {
|
|
161
112
|
const {
|
|
162
113
|
data,
|
|
@@ -170,7 +121,6 @@ function TableInner<T extends object>(
|
|
|
170
121
|
enableVirtualScroll = false,
|
|
171
122
|
enableColumnsVirtualScroll = false,
|
|
172
123
|
approxColumnWidth = 40,
|
|
173
|
-
groupKey,
|
|
174
124
|
onClick,
|
|
175
125
|
activeRow,
|
|
176
126
|
totalCount,
|
|
@@ -180,12 +130,14 @@ function TableInner<T extends object>(
|
|
|
180
130
|
disableDefaultRowStyle = false,
|
|
181
131
|
enableDefaultActiveRow = false,
|
|
182
132
|
emptyDataRowText = 'No Data',
|
|
133
|
+
containerRef,
|
|
134
|
+
enableCellSpanning,
|
|
183
135
|
} = props;
|
|
184
136
|
|
|
185
137
|
const isSortedEventTriggered = useRef<boolean>(false);
|
|
186
|
-
const virtualBoundary =
|
|
138
|
+
const virtualBoundary = useTanStackTableContext();
|
|
187
139
|
const [rowIndex, setRowIndex] = useState<number>();
|
|
188
|
-
const timeoutIdRef = useRef<NodeJS.Timeout>();
|
|
140
|
+
const timeoutIdRef = useRef<NodeJS.Timeout>(undefined);
|
|
189
141
|
const [isCounterVisible, setCounterVisibility] = useState(false);
|
|
190
142
|
|
|
191
143
|
const memoColumns = useMemo(() => {
|
|
@@ -199,25 +151,15 @@ function TableInner<T extends object>(
|
|
|
199
151
|
: columns;
|
|
200
152
|
}, [enableColumnsVirtualScroll, virtualBoundary.columns, columns]);
|
|
201
153
|
|
|
202
|
-
const {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
{
|
|
212
|
-
columns: memoColumns,
|
|
213
|
-
data,
|
|
214
|
-
autoResetSortBy: false,
|
|
215
|
-
} as TableOptions<T>,
|
|
216
|
-
useSortBy,
|
|
217
|
-
useRowSpan,
|
|
218
|
-
) as TableInstanceWithHooks<T>;
|
|
219
|
-
|
|
220
|
-
const { sortBy } = state as any;
|
|
154
|
+
const table = useTable({
|
|
155
|
+
features: tanStackTableFeatures,
|
|
156
|
+
data,
|
|
157
|
+
columns: memoColumns,
|
|
158
|
+
enableCellSpanning,
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
const sortBy = table.state.sorting;
|
|
162
|
+
const rows = table.getRowModel().rows;
|
|
221
163
|
|
|
222
164
|
function clickHandler(event: MouseEvent, row: any) {
|
|
223
165
|
setRowIndex(row.index);
|
|
@@ -263,14 +205,14 @@ function TableInner<T extends object>(
|
|
|
263
205
|
|
|
264
206
|
const lastRow = rowsData.at(-1);
|
|
265
207
|
const index = (lastRow?.original as any)?.[indexKey] || lastRow?.index;
|
|
266
|
-
const total = totalCount
|
|
208
|
+
const total = totalCount || data.length;
|
|
267
209
|
|
|
268
|
-
const startColumn = columns[virtualBoundary.columns.start]?.
|
|
210
|
+
const startColumn = columns[virtualBoundary.columns.start]?.header;
|
|
269
211
|
|
|
270
212
|
return (
|
|
271
213
|
<>
|
|
272
214
|
<div
|
|
273
|
-
ref={
|
|
215
|
+
ref={containerRef}
|
|
274
216
|
className="table-container"
|
|
275
217
|
style={{
|
|
276
218
|
overflowY: 'auto',
|
|
@@ -293,14 +235,14 @@ function TableInner<T extends object>(
|
|
|
293
235
|
}}
|
|
294
236
|
/>
|
|
295
237
|
<BaseReactTable
|
|
296
|
-
{...getTableProps()}
|
|
297
238
|
style={styles.table(enableVirtualScroll, enableColumnsVirtualScroll)}
|
|
298
239
|
>
|
|
299
|
-
<
|
|
300
|
-
headerGroups={
|
|
240
|
+
<TableHeader
|
|
241
|
+
headerGroups={table.getHeaderGroups()}
|
|
242
|
+
table={table}
|
|
301
243
|
onClick={headerClickHandler}
|
|
302
244
|
/>
|
|
303
|
-
<tbody
|
|
245
|
+
<tbody>
|
|
304
246
|
{!data ||
|
|
305
247
|
(data?.length === 0 && (
|
|
306
248
|
<EmptyDataRow
|
|
@@ -309,27 +251,16 @@ function TableInner<T extends object>(
|
|
|
309
251
|
/>
|
|
310
252
|
))}
|
|
311
253
|
{rowsData.map((row, index) => {
|
|
312
|
-
prepareRow(row);
|
|
313
|
-
|
|
314
|
-
prepareRowSpan(
|
|
315
|
-
rows,
|
|
316
|
-
enableVirtualScroll
|
|
317
|
-
? index + virtualBoundary.rows.start
|
|
318
|
-
: index,
|
|
319
|
-
rowSpanHeaders,
|
|
320
|
-
groupKey,
|
|
321
|
-
);
|
|
322
|
-
const { key, ...restRowProps } = row.getRowProps();
|
|
323
254
|
const highlightSourceProps = {
|
|
324
255
|
highlightedSource,
|
|
325
256
|
getHighlightExtra,
|
|
326
|
-
} as
|
|
257
|
+
} as TanStackTableHighlightSourceProps<TData>;
|
|
327
258
|
|
|
328
259
|
return (
|
|
329
|
-
<
|
|
330
|
-
key={
|
|
331
|
-
{...restRowProps}
|
|
260
|
+
<TableRow
|
|
261
|
+
key={row.id}
|
|
332
262
|
row={row}
|
|
263
|
+
table={table}
|
|
333
264
|
contextMenu={contextMenu}
|
|
334
265
|
onContextMenuSelect={onContextMenuSelect}
|
|
335
266
|
onClick={
|
|
@@ -345,9 +276,7 @@ function TableInner<T extends object>(
|
|
|
345
276
|
: activeRow(row)
|
|
346
277
|
}
|
|
347
278
|
rowStyle={
|
|
348
|
-
typeof rowStyle === 'function'
|
|
349
|
-
? rowStyle(row as T)
|
|
350
|
-
: rowStyle
|
|
279
|
+
typeof rowStyle === 'function' ? rowStyle(row) : rowStyle
|
|
351
280
|
}
|
|
352
281
|
disableDefaultRowStyle={disableDefaultRowStyle}
|
|
353
282
|
{...highlightSourceProps}
|
|
@@ -377,16 +306,9 @@ function TableInner<T extends object>(
|
|
|
377
306
|
);
|
|
378
307
|
}
|
|
379
308
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}
|
|
384
|
-
export interface TableVirtualBoundary {
|
|
385
|
-
rows: VirtualBoundary;
|
|
386
|
-
columns: VirtualBoundary;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
function ReactTable<T extends object>(props: ReactTableOuterProps<T>) {
|
|
309
|
+
function TanStackTable<TData extends TanStackRowData>(
|
|
310
|
+
props: ReactTableOuterProps<TData>,
|
|
311
|
+
) {
|
|
390
312
|
const {
|
|
391
313
|
data,
|
|
392
314
|
approxItemHeight = 40,
|
|
@@ -403,7 +325,7 @@ function ReactTable<T extends object>(props: ReactTableOuterProps<T>) {
|
|
|
403
325
|
useResizeObserver();
|
|
404
326
|
|
|
405
327
|
const [tableVirtualBoundary, setTableVirtualBoundary] =
|
|
406
|
-
useState<
|
|
328
|
+
useState<TanStackTableVirtualBoundary>({
|
|
407
329
|
rows: {
|
|
408
330
|
start: 1,
|
|
409
331
|
end: 0,
|
|
@@ -489,7 +411,6 @@ function ReactTable<T extends object>(props: ReactTableOuterProps<T>) {
|
|
|
489
411
|
function findEndIndex(index: number, numberOfVisibleRows: number) {
|
|
490
412
|
const newIndex = index + numberOfVisibleRows;
|
|
491
413
|
const currentIndx = newIndex >= data.length ? data.length - 1 : newIndex;
|
|
492
|
-
// return currentIndx;
|
|
493
414
|
// Look for the last index of the group
|
|
494
415
|
return lookForGroupIndex(currentIndx, 1);
|
|
495
416
|
}
|
|
@@ -521,7 +442,7 @@ function ReactTable<T extends object>(props: ReactTableOuterProps<T>) {
|
|
|
521
442
|
}
|
|
522
443
|
|
|
523
444
|
return (
|
|
524
|
-
<
|
|
445
|
+
<TanStackTableProvider value={tableVirtualBoundary}>
|
|
525
446
|
<div
|
|
526
447
|
ref={mRef}
|
|
527
448
|
css={css(
|
|
@@ -532,17 +453,17 @@ function ReactTable<T extends object>(props: ReactTableOuterProps<T>) {
|
|
|
532
453
|
style,
|
|
533
454
|
)}
|
|
534
455
|
>
|
|
535
|
-
<
|
|
456
|
+
<TanStackTableInner<TData>
|
|
536
457
|
onScroll={scrollHandler}
|
|
537
458
|
onSortEnd={onSortEnd}
|
|
538
|
-
|
|
459
|
+
containerRef={containerRef}
|
|
539
460
|
{...props}
|
|
540
461
|
/>
|
|
541
462
|
</div>
|
|
542
|
-
</
|
|
463
|
+
</TanStackTableProvider>
|
|
543
464
|
);
|
|
544
465
|
}
|
|
545
466
|
|
|
546
|
-
export default memo(
|
|
547
|
-
props: ReactTableOuterProps<
|
|
467
|
+
export default memo(TanStackTable) as <TData extends TanStackRowData>(
|
|
468
|
+
props: ReactTableOuterProps<TData>,
|
|
548
469
|
) => ReactElement;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
CellData,
|
|
3
|
+
ColumnDef,
|
|
4
|
+
Header,
|
|
5
|
+
HeaderGroup,
|
|
6
|
+
ReactTable,
|
|
7
|
+
Row,
|
|
8
|
+
RowData,
|
|
9
|
+
} from '@tanstack/react-table';
|
|
10
|
+
import type { CSSProperties, MouseEvent } from 'react';
|
|
11
|
+
|
|
12
|
+
import type {
|
|
13
|
+
HighlightEventSourceExtra,
|
|
14
|
+
HighlightEventSourceType,
|
|
15
|
+
} from '../../highlight/index.tsx';
|
|
16
|
+
import type { BaseContextMenuProps } from '../ContextMenuBluePrint.tsx';
|
|
17
|
+
|
|
18
|
+
import type { TanStackTableFeatures } from './features.ts';
|
|
19
|
+
|
|
20
|
+
type TanStackCellData = CellData;
|
|
21
|
+
export type TanStackRowData = RowData;
|
|
22
|
+
|
|
23
|
+
export type TanStackReactTable<TData extends TanStackRowData> = ReactTable<
|
|
24
|
+
TanStackTableFeatures,
|
|
25
|
+
TData
|
|
26
|
+
>;
|
|
27
|
+
|
|
28
|
+
export type TanStackTableRow<TData extends TanStackRowData> = Row<
|
|
29
|
+
TanStackTableFeatures,
|
|
30
|
+
TData
|
|
31
|
+
>;
|
|
32
|
+
|
|
33
|
+
export type TanStackTableColumn<
|
|
34
|
+
TData extends TanStackRowData,
|
|
35
|
+
TValue extends TanStackCellData = TanStackCellData,
|
|
36
|
+
> = ColumnDef<TanStackTableFeatures, TData, TValue>;
|
|
37
|
+
|
|
38
|
+
export type TanStackTableHeader<
|
|
39
|
+
TData extends TanStackRowData,
|
|
40
|
+
TValue extends TanStackCellData = TanStackCellData,
|
|
41
|
+
> = Header<TanStackTableFeatures, TData, TValue>;
|
|
42
|
+
|
|
43
|
+
export type TanStackTableHeaderGroup<TData extends TanStackRowData> =
|
|
44
|
+
HeaderGroup<TanStackTableFeatures, TData>;
|
|
45
|
+
|
|
46
|
+
export type TanStackTableHighlightSourceProps<TData extends TanStackRowData> = {
|
|
47
|
+
[K in HighlightEventSourceType]: HighlightEventSourceExtra<K> extends never
|
|
48
|
+
? { highlightedSource?: K; getHighlightExtra?: never }
|
|
49
|
+
: {
|
|
50
|
+
highlightedSource: K;
|
|
51
|
+
getHighlightExtra: (row: TData) => HighlightEventSourceExtra<K>;
|
|
52
|
+
};
|
|
53
|
+
}[HighlightEventSourceType];
|
|
54
|
+
|
|
55
|
+
export interface TanStackTableRowStyle {
|
|
56
|
+
active?: CSSProperties;
|
|
57
|
+
activated?: CSSProperties;
|
|
58
|
+
hover?: CSSProperties;
|
|
59
|
+
base?: CSSProperties;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface TanStackTableContextMenuProps<TData extends TanStackRowData> {
|
|
63
|
+
contextMenu?: BaseContextMenuProps['options'];
|
|
64
|
+
onContextMenuSelect?: (
|
|
65
|
+
selected: Parameters<BaseContextMenuProps['onSelect']>[0],
|
|
66
|
+
data: TData,
|
|
67
|
+
) => void;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface TanStackTableClickEvent<TData extends TanStackRowData> {
|
|
71
|
+
onClick?: (event: MouseEvent, row: TanStackTableRow<TData>) => void;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface TanStackTableSortEvent<TData extends TanStackRowData> {
|
|
75
|
+
onSortEnd?: (data: TData[], isTableSorted?: boolean) => void;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
interface VirtualBoundary {
|
|
79
|
+
start: number;
|
|
80
|
+
end: number;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface TanStackTableVirtualBoundary {
|
|
84
|
+
rows: VirtualBoundary;
|
|
85
|
+
columns: VirtualBoundary;
|
|
86
|
+
}
|
|
@@ -55,7 +55,7 @@ type AutoPeakPickingOptionsInput = z.input<typeof validationSchema>;
|
|
|
55
55
|
type AutoPeakPickingOptions = z.output<typeof validationSchema>;
|
|
56
56
|
|
|
57
57
|
const defaultValues: AutoPeakPickingOptionsInput = {
|
|
58
|
-
maxNumberOfPeaks: '
|
|
58
|
+
maxNumberOfPeaks: '500',
|
|
59
59
|
minMaxRatio: '0.05',
|
|
60
60
|
noiseFactor: '3',
|
|
61
61
|
direction: 'both',
|
|
@@ -274,7 +274,7 @@ function PluginTopBarTool() {
|
|
|
274
274
|
const core = useCore();
|
|
275
275
|
const stableSpectrum = useStableSpectrum();
|
|
276
276
|
const [liveOperation, setLiveOperation] = useLiveOperation();
|
|
277
|
-
const liveEdit = useLiveEdit(liveOperation);
|
|
277
|
+
const liveEdit = useLiveEdit(liveOperation?.uid);
|
|
278
278
|
const processingsMutations = useProcessingsMutations();
|
|
279
279
|
const dispatch = useDispatch();
|
|
280
280
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ForwardedRef,
|
|
1
|
+
import type { ForwardedRef, RefCallback, RefObject } from 'react';
|
|
2
2
|
import { useEffect, useRef } from 'react';
|
|
3
3
|
|
|
4
4
|
export default function useCombinedRefs<T>(
|
|
5
|
-
refs: Array<RefCallback<T> |
|
|
5
|
+
refs: Array<RefCallback<T> | RefObject<T> | ForwardedRef<T>>,
|
|
6
6
|
) {
|
|
7
|
-
const targetRef = useRef<any>();
|
|
7
|
+
const targetRef = useRef<any>(undefined);
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line react-hooks/immutability
|
|
10
10
|
useEffect(() => {
|
|
@@ -21,7 +21,7 @@ const schema = z.object({
|
|
|
21
21
|
export function useSaveSettings() {
|
|
22
22
|
const toaster = useToaster();
|
|
23
23
|
const [isOpenDialog, openDialog, closeDialog] = useOnOff(false);
|
|
24
|
-
const settingsRef = useRef<Workspace>();
|
|
24
|
+
const settingsRef = useRef<Workspace>(undefined);
|
|
25
25
|
const { current } = usePreferences();
|
|
26
26
|
|
|
27
27
|
const { saveWorkspace, addNewWorkspace } = useWorkspaceAction();
|
|
@@ -68,10 +68,10 @@ const NMRiumContainer = styled.div`
|
|
|
68
68
|
|
|
69
69
|
interface InnerNMRiumContentsProps {
|
|
70
70
|
emptyText: NMRiumProps['emptyText'];
|
|
71
|
-
mainDivRef: RefObject<HTMLDivElement>;
|
|
72
|
-
elementsWrapperRef: RefObject<HTMLDivElement>;
|
|
73
|
-
rootRef: RefObject<HTMLDivElement>;
|
|
74
|
-
viewerRef: RefObject<HTMLDivElement>;
|
|
71
|
+
mainDivRef: RefObject<HTMLDivElement | null>;
|
|
72
|
+
elementsWrapperRef: RefObject<HTMLDivElement | null>;
|
|
73
|
+
rootRef: RefObject<HTMLDivElement | null>;
|
|
74
|
+
viewerRef: RefObject<HTMLDivElement | null>;
|
|
75
75
|
apiRef: ForwardedRef<NMRiumRefAPI>;
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -17,7 +17,7 @@ export interface NMRiumRefAPI {
|
|
|
17
17
|
|
|
18
18
|
export function useNMRiumRefAPI(
|
|
19
19
|
ref: ForwardedRef<NMRiumRefAPI>,
|
|
20
|
-
rootRef: RefObject<HTMLDivElement>,
|
|
20
|
+
rootRef: RefObject<HTMLDivElement | null>,
|
|
21
21
|
) {
|
|
22
22
|
const loadFiles = useLoadFiles();
|
|
23
23
|
const createNmriumZip = useCreateNmriumZip();
|
|
@@ -74,7 +74,7 @@ export default function NMRiumStateProvider(props: NMRiumStateProviderProps) {
|
|
|
74
74
|
view,
|
|
75
75
|
} = state;
|
|
76
76
|
|
|
77
|
-
const stateRef = useRef<NmriumState>();
|
|
77
|
+
const stateRef = useRef<NmriumState>(undefined);
|
|
78
78
|
|
|
79
79
|
const handleChange = useRef<NMRiumChangeCb | undefined>(onChange);
|
|
80
80
|
useEffect(() => {
|
|
@@ -125,7 +125,9 @@ export default function NMRiumStateProvider(props: NMRiumStateProviderProps) {
|
|
|
125
125
|
}, [preferencesState]);
|
|
126
126
|
|
|
127
127
|
const loggerRef = useRef(logger);
|
|
128
|
-
useEffect(() =>
|
|
128
|
+
useEffect(() => {
|
|
129
|
+
loggerRef.current = logger;
|
|
130
|
+
});
|
|
129
131
|
useEffect(() => {
|
|
130
132
|
const logger = loggerRef.current;
|
|
131
133
|
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import type { NMRiumProps } from './NMRium.js';
|
|
20
20
|
|
|
21
21
|
interface NMRiumViewerProps {
|
|
22
|
-
viewerRef: RefObject<HTMLDivElement>;
|
|
22
|
+
viewerRef: RefObject<HTMLDivElement | null>;
|
|
23
23
|
style?: CSSProperties;
|
|
24
24
|
onRender?: () => void;
|
|
25
25
|
emptyText: NMRiumProps['emptyText'];
|
|
@@ -11,7 +11,7 @@ import type { NMRiumProps } from './NMRium.js';
|
|
|
11
11
|
import { NMRiumViewer } from './NMRiumViewer.js';
|
|
12
12
|
|
|
13
13
|
interface NMRiumViewerWrapperProps {
|
|
14
|
-
viewerRef: RefObject<HTMLDivElement>;
|
|
14
|
+
viewerRef: RefObject<HTMLDivElement | null>;
|
|
15
15
|
emptyText: NMRiumProps['emptyText'];
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -6,9 +6,9 @@ import type {
|
|
|
6
6
|
import type { Source } from 'file-collection';
|
|
7
7
|
import type { CorrelationData } from 'nmr-processing';
|
|
8
8
|
|
|
9
|
-
type DeepPartial<T> =
|
|
10
|
-
[P in keyof T]?: DeepPartial<T[P]
|
|
11
|
-
|
|
9
|
+
type DeepPartial<T> = T extends object
|
|
10
|
+
? { [P in keyof T]?: DeepPartial<T[P]> }
|
|
11
|
+
: T;
|
|
12
12
|
|
|
13
13
|
interface NMRiumData {
|
|
14
14
|
source?: Source;
|