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,77 +1,85 @@
|
|
|
1
1
|
import { Button, Classes } from '@blueprintjs/core';
|
|
2
|
+
import { useCallback, useMemo } from 'react';
|
|
2
3
|
import { useFormContext, useWatch } from 'react-hook-form';
|
|
3
4
|
import { FaRegTrashAlt } from 'react-icons/fa';
|
|
4
|
-
import type { CellProps } from 'react-table';
|
|
5
5
|
|
|
6
6
|
import { NumberInput2Controller } from '../../elements/NumberInput2Controller.js';
|
|
7
|
-
import
|
|
8
|
-
|
|
7
|
+
import {
|
|
8
|
+
TanStackTable,
|
|
9
|
+
createTanStackColumnHelper,
|
|
10
|
+
} from '../../elements/tanstack_table/index.ts';
|
|
9
11
|
|
|
10
12
|
export function ExclusionsZonesTable() {
|
|
11
|
-
const { setValue, control } = useFormContext<any>();
|
|
13
|
+
const { setValue, control, getValues } = useFormContext<any>();
|
|
12
14
|
const exclusionsZones = useWatch({ name: 'exclusionsZones' });
|
|
13
|
-
if (!exclusionsZones || !Array.isArray(exclusionsZones)) {
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function handleDelete(index: any) {
|
|
18
|
-
setValue(
|
|
19
|
-
'exclusionsZones',
|
|
20
|
-
exclusionsZones.filter((_: any, i: any) => i !== index),
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
15
|
|
|
24
|
-
const
|
|
25
|
-
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
{
|
|
31
|
-
Header: 'from',
|
|
32
|
-
Cell: ({ row }: CellProps<any>) => (
|
|
33
|
-
<NumberInput2Controller
|
|
34
|
-
control={control}
|
|
35
|
-
name={`exclusionsZones.${row.index}.from`}
|
|
36
|
-
fill
|
|
37
|
-
noShadowBox
|
|
38
|
-
style={{ backgroundColor: 'transparent' }}
|
|
39
|
-
/>
|
|
40
|
-
),
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
Header: 'To',
|
|
44
|
-
Cell: ({ row }: CellProps<any>) => (
|
|
45
|
-
<NumberInput2Controller
|
|
46
|
-
name={`exclusionsZones.${row.index}.to`}
|
|
47
|
-
fill
|
|
48
|
-
noShadowBox
|
|
49
|
-
style={{ backgroundColor: 'transparent' }}
|
|
50
|
-
/>
|
|
51
|
-
),
|
|
16
|
+
const handleDelete = useCallback(
|
|
17
|
+
(index: number) => {
|
|
18
|
+
setValue(
|
|
19
|
+
'exclusionsZones',
|
|
20
|
+
getValues('exclusionsZones').filter((_: any, i: number) => i !== index),
|
|
21
|
+
);
|
|
52
22
|
},
|
|
23
|
+
[getValues, setValue],
|
|
24
|
+
);
|
|
53
25
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
size="small"
|
|
62
|
-
variant="outlined"
|
|
63
|
-
intent="danger"
|
|
64
|
-
onClick={() => handleDelete(row.index)}
|
|
65
|
-
>
|
|
66
|
-
<FaRegTrashAlt className={Classes.ICON} />
|
|
67
|
-
</Button>
|
|
68
|
-
);
|
|
26
|
+
const exclusionsZonesColumns = useMemo(() => {
|
|
27
|
+
const columnHelper = createTanStackColumnHelper<any>();
|
|
28
|
+
return columnHelper.columns([
|
|
29
|
+
{
|
|
30
|
+
header: '#',
|
|
31
|
+
meta: { style: { width: '50px' } },
|
|
32
|
+
accessorFn: (_, index) => index + 1,
|
|
69
33
|
},
|
|
70
|
-
|
|
71
|
-
|
|
34
|
+
{
|
|
35
|
+
header: 'From',
|
|
36
|
+
cell: ({ row }) => (
|
|
37
|
+
<NumberInput2Controller
|
|
38
|
+
control={control}
|
|
39
|
+
name={`exclusionsZones.${row.index}.from`}
|
|
40
|
+
fill
|
|
41
|
+
noShadowBox
|
|
42
|
+
style={{ backgroundColor: 'transparent' }}
|
|
43
|
+
/>
|
|
44
|
+
),
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
header: 'To',
|
|
48
|
+
cell: ({ row }) => (
|
|
49
|
+
<NumberInput2Controller
|
|
50
|
+
name={`exclusionsZones.${row.index}.to`}
|
|
51
|
+
fill
|
|
52
|
+
noShadowBox
|
|
53
|
+
style={{ backgroundColor: 'transparent' }}
|
|
54
|
+
/>
|
|
55
|
+
),
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
header: '',
|
|
59
|
+
meta: { style: { width: '70px' } },
|
|
60
|
+
id: 'actions',
|
|
61
|
+
cell: ({ row }) => {
|
|
62
|
+
return (
|
|
63
|
+
<Button
|
|
64
|
+
size="small"
|
|
65
|
+
variant="outlined"
|
|
66
|
+
intent="danger"
|
|
67
|
+
onClick={() => handleDelete(row.index)}
|
|
68
|
+
>
|
|
69
|
+
<FaRegTrashAlt className={Classes.ICON} />
|
|
70
|
+
</Button>
|
|
71
|
+
);
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
]);
|
|
75
|
+
}, [control, handleDelete]);
|
|
76
|
+
|
|
77
|
+
if (!exclusionsZones || !Array.isArray(exclusionsZones)) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
72
80
|
|
|
73
81
|
return (
|
|
74
|
-
<
|
|
82
|
+
<TanStackTable
|
|
75
83
|
columns={exclusionsZonesColumns}
|
|
76
84
|
data={exclusionsZones}
|
|
77
85
|
emptyDataRowText="No Zones"
|
|
@@ -4,9 +4,28 @@ import { useRef } from 'react';
|
|
|
4
4
|
|
|
5
5
|
import { useTopicMolecule } from '../../../context/TopicMoleculeContext.js';
|
|
6
6
|
|
|
7
|
+
function getUniqueLabels(labels: string[]) {
|
|
8
|
+
return [...new Set(labels.map((label) => label.trim()).filter(Boolean))];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function getCustomLabels(atomData: {
|
|
12
|
+
customLabels?: string[];
|
|
13
|
+
heavyAtomsCustomLabels?: string[];
|
|
14
|
+
}) {
|
|
15
|
+
const { customLabels = [], heavyAtomsCustomLabels = [] } = atomData;
|
|
16
|
+
return customLabels.length > 0 ? customLabels : heavyAtomsCustomLabels;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function getCustomLabel(atomData: {
|
|
20
|
+
customLabels?: string[];
|
|
21
|
+
heavyAtomsCustomLabels?: string[];
|
|
22
|
+
}) {
|
|
23
|
+
return getCustomLabels(atomData).find((label) => label.trim());
|
|
24
|
+
}
|
|
25
|
+
|
|
7
26
|
export function useExtractAtomAssignmentLabel() {
|
|
8
27
|
const topicMolecule = useTopicMolecule();
|
|
9
|
-
const lastHoverAtomIdRef = useRef<DiaIDAndInfo>();
|
|
28
|
+
const lastHoverAtomIdRef = useRef<DiaIDAndInfo>(undefined);
|
|
10
29
|
|
|
11
30
|
function getLastHoverAtom() {
|
|
12
31
|
return lastHoverAtomIdRef.current;
|
|
@@ -45,16 +64,28 @@ export function useExtractAtomAssignmentLabel() {
|
|
|
45
64
|
const atomData = getTopicAtom(moleculeId, oclID, molfile);
|
|
46
65
|
if (!atomData) return;
|
|
47
66
|
|
|
48
|
-
const
|
|
49
|
-
const labels =
|
|
50
|
-
customLabels.length > 0 ? customLabels : heavyAtomsCustomLabels;
|
|
51
|
-
|
|
52
|
-
const uniqueLabels = [
|
|
53
|
-
...new Set(labels.map((l: string) => l.trim()).filter(Boolean)),
|
|
54
|
-
];
|
|
67
|
+
const uniqueLabels = getUniqueLabels(getCustomLabels(atomData));
|
|
55
68
|
return uniqueLabels.join(',');
|
|
56
69
|
}
|
|
57
70
|
|
|
71
|
+
function getAssignmentLabelByDiaIDs(diaIDs: string[]) {
|
|
72
|
+
if (!diaIDs || diaIDs.length === 0) return;
|
|
73
|
+
const moleculeObjects = Object.values(topicMolecule);
|
|
74
|
+
for (const topicMoleculeObject of moleculeObjects) {
|
|
75
|
+
const diaIDsObject = topicMoleculeObject.getDiaIDsObject();
|
|
76
|
+
|
|
77
|
+
for (const diaID of diaIDs) {
|
|
78
|
+
const atomData = diaIDsObject?.[diaID];
|
|
79
|
+
if (!atomData) continue;
|
|
80
|
+
|
|
81
|
+
const label = getCustomLabel(atomData);
|
|
82
|
+
if (label) return label;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
88
|
+
|
|
58
89
|
function getAssignmentLabelByHover(moleculeId: string, molfile?: string) {
|
|
59
90
|
const diaId = lastHoverAtomIdRef.current?.idCode;
|
|
60
91
|
if (!diaId) return;
|
|
@@ -66,6 +97,7 @@ export function useExtractAtomAssignmentLabel() {
|
|
|
66
97
|
|
|
67
98
|
return {
|
|
68
99
|
getAssignmentLabelByHover,
|
|
100
|
+
getAssignmentLabelByDiaIDs,
|
|
69
101
|
getAssignmentLabelById,
|
|
70
102
|
onAtomHover,
|
|
71
103
|
getLastHoverAtom,
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import type { Info1D, Peak1D } from '@zakodium/nmr-types';
|
|
2
2
|
import dlv from 'dlv';
|
|
3
|
+
import type { Dispatch, SetStateAction } from 'react';
|
|
3
4
|
import { memo, useCallback, useMemo, useState } from 'react';
|
|
4
5
|
import { FaEdit, FaRegTrashAlt } from 'react-icons/fa';
|
|
5
|
-
import type { CellProps, Row } from 'react-table';
|
|
6
6
|
|
|
7
7
|
import { getPeakAbsoluteArea } from '../../../data/utilities/getPeakAbsoluteArea.ts';
|
|
8
8
|
import { useDispatch } from '../../context/DispatchContext.js';
|
|
9
9
|
import { EditableColumn } from '../../elements/EditableColumn.js';
|
|
10
10
|
import { EmptyText } from '../../elements/EmptyText.js';
|
|
11
|
-
import ReactTable from '../../elements/ReactTable/ReactTable.js';
|
|
12
|
-
import type { ControlCustomColumn } from '../../elements/ReactTable/utility/addCustomColumn.js';
|
|
13
|
-
import addCustomColumn, {
|
|
14
|
-
createActionColumn,
|
|
15
|
-
} from '../../elements/ReactTable/utility/addCustomColumn.js';
|
|
16
11
|
import { TableHeaderLabel } from '../../elements/TableHeaderLabel.tsx';
|
|
12
|
+
import type {
|
|
13
|
+
TanStackTableColumn,
|
|
14
|
+
TanStackTableRow,
|
|
15
|
+
} from '../../elements/tanstack_table/index.ts';
|
|
16
|
+
import {
|
|
17
|
+
TanStackTable,
|
|
18
|
+
createActionColumn,
|
|
19
|
+
createTanStackColumnHelper,
|
|
20
|
+
} from '../../elements/tanstack_table/index.ts';
|
|
17
21
|
import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
18
22
|
import { formatNumber } from '../../utility/formatNumber.js';
|
|
19
23
|
import { NoDataForFid } from '../extra/placeholder/NoDataForFid.js';
|
|
@@ -27,14 +31,21 @@ function getFormattedNumber(
|
|
|
27
31
|
return typeof value === 'number' ? formatNumber(value, format) : '';
|
|
28
32
|
}
|
|
29
33
|
|
|
30
|
-
|
|
34
|
+
interface UsePeaksTableColumnsReturn {
|
|
35
|
+
tableColumns: Array<TanStackTableColumn<PeakRecord>>;
|
|
36
|
+
peak: Peak1D | undefined;
|
|
37
|
+
setEditedPeak: Dispatch<SetStateAction<Peak1D | undefined>>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function usePeaksTableColumns(
|
|
41
|
+
activeTab: string,
|
|
42
|
+
): UsePeaksTableColumnsReturn {
|
|
31
43
|
const dispatch = useDispatch();
|
|
32
44
|
const { tablePreferences } = usePanelPreferences('peaks', activeTab);
|
|
33
45
|
const [peak, setEditedPeak] = useState<Peak1D | undefined>();
|
|
34
46
|
|
|
35
47
|
const deletePeakHandler = useCallback(
|
|
36
|
-
(
|
|
37
|
-
const params = row.original;
|
|
48
|
+
(params: PeakRecord) => {
|
|
38
49
|
dispatch({
|
|
39
50
|
type: 'DELETE_PEAK',
|
|
40
51
|
payload: { id: params.id },
|
|
@@ -43,8 +54,8 @@ export function usePeaksTableColumns(activeTab: string) {
|
|
|
43
54
|
[dispatch],
|
|
44
55
|
);
|
|
45
56
|
|
|
46
|
-
const editPeakHandler = useCallback((row:
|
|
47
|
-
setEditedPeak(row
|
|
57
|
+
const editPeakHandler = useCallback((row: PeakRecord) => {
|
|
58
|
+
setEditedPeak(row);
|
|
48
59
|
}, []);
|
|
49
60
|
|
|
50
61
|
const saveDeltaPPMRefsHandler = useCallback(
|
|
@@ -65,19 +76,21 @@ export function usePeaksTableColumns(activeTab: string) {
|
|
|
65
76
|
[dispatch],
|
|
66
77
|
);
|
|
67
78
|
|
|
68
|
-
const COLUMNS = useMemo
|
|
69
|
-
()
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
const COLUMNS = useMemo(() => {
|
|
80
|
+
const columnHelper = createTanStackColumnHelper<PeakRecord>();
|
|
81
|
+
const columns = columnHelper.columns([]);
|
|
82
|
+
// TODO: Use column visibility feature instead.
|
|
83
|
+
if (dlv(tablePreferences, 'showSerialNumber')) {
|
|
84
|
+
columns.push({
|
|
85
|
+
id: 'rowNumber',
|
|
86
|
+
header: '#',
|
|
87
|
+
accessorFn: (_, index) => index + 1,
|
|
88
|
+
meta: { style: { width: '1%', maxWidth: '40px', minWidth: '40px' } },
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
if (dlv(tablePreferences, 'deltaPPM.show')) {
|
|
92
|
+
columns.push({
|
|
93
|
+
header: () => {
|
|
81
94
|
return (
|
|
82
95
|
<TableHeaderLabel
|
|
83
96
|
text="δ (ppm)"
|
|
@@ -87,8 +100,8 @@ export function usePeaksTableColumns(activeTab: string) {
|
|
|
87
100
|
/>
|
|
88
101
|
);
|
|
89
102
|
},
|
|
90
|
-
|
|
91
|
-
|
|
103
|
+
accessorKey: 'x',
|
|
104
|
+
cell: ({ row }) => (
|
|
92
105
|
<EditableColumn
|
|
93
106
|
value={formatNumber(
|
|
94
107
|
row.original.x,
|
|
@@ -99,91 +112,91 @@ export function usePeaksTableColumns(activeTab: string) {
|
|
|
99
112
|
validate={(val) => val !== ''}
|
|
100
113
|
/>
|
|
101
114
|
),
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
if (dlv(tablePreferences, 'deltaHz.show')) {
|
|
118
|
+
columns.push({
|
|
119
|
+
header: 'δ (Hz)',
|
|
120
|
+
accessorKey: 'xHz',
|
|
121
|
+
cell: ({ row }) =>
|
|
109
122
|
formatNumber(row.original.xHz, tablePreferences.deltaHz.format),
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
style: { maxWidth: '80px' },
|
|
116
|
-
|
|
117
|
-
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
if (dlv(tablePreferences, 'intensity.show')) {
|
|
126
|
+
columns.push({
|
|
127
|
+
header: 'Intensity',
|
|
128
|
+
meta: { style: { maxWidth: '80px' } },
|
|
129
|
+
accessorKey: 'y',
|
|
130
|
+
cell: ({ row }) =>
|
|
118
131
|
formatNumber(row.original.y, tablePreferences.intensity.format),
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
if (dlv(tablePreferences, 'peakWidth.show')) {
|
|
135
|
+
columns.push({
|
|
136
|
+
header: 'Width (Hz)',
|
|
137
|
+
accessorKey: 'width',
|
|
138
|
+
cell: ({ row }) =>
|
|
126
139
|
formatNumber(row.original.width, tablePreferences.peakWidth.format),
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
if (dlv(tablePreferences, 'showKind')) {
|
|
143
|
+
columns.push({
|
|
144
|
+
header: 'Kind',
|
|
145
|
+
accessorFn: (row) => row.shape?.kind || '',
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
if (dlv(tablePreferences, 'fwhm.show')) {
|
|
149
|
+
columns.push({
|
|
150
|
+
header: 'fwhm',
|
|
151
|
+
accessorFn: (row) => row?.shape?.fwhm ?? '',
|
|
152
|
+
cell: ({ row }) =>
|
|
140
153
|
getFormattedNumber(
|
|
141
154
|
row.original?.shape?.fwhm,
|
|
142
155
|
tablePreferences.fwhm.format,
|
|
143
156
|
),
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
if (dlv(tablePreferences, 'mu.show')) {
|
|
160
|
+
columns.push({
|
|
161
|
+
header: 'mu',
|
|
162
|
+
accessorFn: (row) =>
|
|
150
163
|
row?.shape?.kind === 'pseudoVoigt' ? (row.shape.mu ?? '') : '',
|
|
151
|
-
|
|
164
|
+
cell: ({ row }) => {
|
|
152
165
|
const shape = row.original?.shape;
|
|
153
166
|
const mu = shape?.kind === 'pseudoVoigt' ? shape.mu : undefined;
|
|
154
167
|
return getFormattedNumber(mu, tablePreferences.mu.format);
|
|
155
168
|
},
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
if (dlv(tablePreferences, 'gamma.show')) {
|
|
172
|
+
columns.push({
|
|
173
|
+
header: 'gamma',
|
|
174
|
+
accessorFn: (row) =>
|
|
162
175
|
row?.shape?.kind === 'generalizedLorentzian'
|
|
163
176
|
? (row.shape.gamma ?? '')
|
|
164
177
|
: '',
|
|
165
|
-
|
|
178
|
+
cell: ({ row }) => {
|
|
166
179
|
const shape = row.original?.shape;
|
|
167
180
|
const gamma =
|
|
168
181
|
shape?.kind === 'generalizedLorentzian' ? shape.gamma : undefined;
|
|
169
182
|
return getFormattedNumber(gamma, tablePreferences.gamma.format);
|
|
170
183
|
},
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
if (dlv(tablePreferences, 'absoluteArea.show')) {
|
|
187
|
+
columns.push({
|
|
188
|
+
header: 'Absolute area',
|
|
189
|
+
accessorFn: (row) => getPeakAbsoluteArea(row) ?? '',
|
|
190
|
+
cell: ({ row }) =>
|
|
178
191
|
getFormattedNumber(
|
|
179
192
|
getPeakAbsoluteArea(row.original),
|
|
180
193
|
tablePreferences.absoluteArea.format,
|
|
181
194
|
),
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
if (dlv(tablePreferences, 'relativeArea.show')) {
|
|
198
|
+
columns.push({
|
|
199
|
+
header: () => {
|
|
187
200
|
return (
|
|
188
201
|
<TableHeaderLabel
|
|
189
202
|
text="Relative area"
|
|
@@ -193,8 +206,8 @@ export function usePeaksTableColumns(activeTab: string) {
|
|
|
193
206
|
/>
|
|
194
207
|
);
|
|
195
208
|
},
|
|
196
|
-
|
|
197
|
-
|
|
209
|
+
accessorKey: 'relativeArea',
|
|
210
|
+
cell: ({ row }) => {
|
|
198
211
|
const value = formatNumber(
|
|
199
212
|
row.original.relativeArea || 0,
|
|
200
213
|
tablePreferences.relativeArea.format,
|
|
@@ -212,59 +225,48 @@ export function usePeaksTableColumns(activeTab: string) {
|
|
|
212
225
|
/>
|
|
213
226
|
);
|
|
214
227
|
},
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
if (dlv(tablePreferences, 'showEditPeakShapeAction')) {
|
|
231
|
+
columns.push(
|
|
232
|
+
createActionColumn<PeakRecord>({
|
|
233
|
+
id: 'edit-peak',
|
|
220
234
|
icon: <FaEdit />,
|
|
221
235
|
onClick: editPeakHandler,
|
|
222
236
|
style: {
|
|
223
237
|
borderRight: '0px',
|
|
224
238
|
},
|
|
225
239
|
}),
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
if (dlv(tablePreferences, 'showDeleteAction')) {
|
|
243
|
+
columns.push(
|
|
244
|
+
createActionColumn<PeakRecord>({
|
|
245
|
+
id: 'delete-peak',
|
|
231
246
|
icon: <FaRegTrashAlt />,
|
|
232
247
|
onClick: deletePeakHandler,
|
|
233
248
|
}),
|
|
234
|
-
|
|
235
|
-
],
|
|
236
|
-
[
|
|
237
|
-
editPeakHandler,
|
|
238
|
-
deletePeakHandler,
|
|
239
|
-
tablePreferences,
|
|
240
|
-
saveDeltaPPMRefsHandler,
|
|
241
|
-
saveRelativeAreaHandler,
|
|
242
|
-
],
|
|
243
|
-
);
|
|
244
|
-
|
|
245
|
-
const tableColumns = useMemo(() => {
|
|
246
|
-
const columns: Array<ControlCustomColumn<PeakRecord>> = [];
|
|
247
|
-
for (const col of COLUMNS) {
|
|
248
|
-
const { showWhen, ...colParams } = col;
|
|
249
|
-
if (dlv(tablePreferences, showWhen)) {
|
|
250
|
-
addCustomColumn(columns, colParams);
|
|
251
|
-
}
|
|
249
|
+
);
|
|
252
250
|
}
|
|
253
|
-
|
|
254
|
-
columns.sort((object1, object2) => object1.index - object2.index);
|
|
255
251
|
return columns;
|
|
256
|
-
}, [
|
|
252
|
+
}, [
|
|
253
|
+
editPeakHandler,
|
|
254
|
+
deletePeakHandler,
|
|
255
|
+
tablePreferences,
|
|
256
|
+
saveDeltaPPMRefsHandler,
|
|
257
|
+
saveRelativeAreaHandler,
|
|
258
|
+
]);
|
|
257
259
|
|
|
258
|
-
return { tableColumns, peak, setEditedPeak };
|
|
260
|
+
return { tableColumns: COLUMNS, peak, setEditedPeak };
|
|
259
261
|
}
|
|
260
262
|
|
|
261
263
|
interface PeaksTableProps {
|
|
262
|
-
tableColumns: Array<
|
|
264
|
+
tableColumns: Array<TanStackTableColumn<PeakRecord>>;
|
|
263
265
|
data: PeakRecord[];
|
|
264
266
|
info: Info1D;
|
|
265
267
|
}
|
|
266
268
|
|
|
267
|
-
function handleActiveRow(row:
|
|
269
|
+
function handleActiveRow(row: TanStackTableRow<PeakRecord>) {
|
|
268
270
|
return row.original.isConstantlyHighlighted;
|
|
269
271
|
}
|
|
270
272
|
|
|
@@ -280,7 +282,7 @@ function PeaksTable(props: PeaksTableProps) {
|
|
|
280
282
|
}
|
|
281
283
|
|
|
282
284
|
return (
|
|
283
|
-
<
|
|
285
|
+
<TanStackTable
|
|
284
286
|
activeRow={handleActiveRow}
|
|
285
287
|
rowStyle={{ activated: { backgroundColor: '#f5f5dc' } }}
|
|
286
288
|
data={data}
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
import dlv from 'dlv';
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { TanStackTableColumn } from '../../elements/tanstack_table/index.ts';
|
|
4
4
|
|
|
5
5
|
import type { PeakRecord } from './PeaksPanel.tsx';
|
|
6
6
|
|
|
7
|
+
type ExportCellValue = boolean | null | number | string | undefined;
|
|
8
|
+
|
|
9
|
+
function formatCellValue(value: ExportCellValue) {
|
|
10
|
+
return value === null || value === undefined ? '' : String(value);
|
|
11
|
+
}
|
|
12
|
+
|
|
7
13
|
export function exportPeaksToTSV(
|
|
8
14
|
data: PeakRecord[],
|
|
9
|
-
tableColumns: Array<
|
|
15
|
+
tableColumns: Array<TanStackTableColumn<PeakRecord>>,
|
|
10
16
|
) {
|
|
11
17
|
const exportColumns = tableColumns.filter(
|
|
12
|
-
(col) => col.
|
|
18
|
+
(col) => col.header && typeof col.header === 'string',
|
|
13
19
|
);
|
|
14
20
|
|
|
15
21
|
const headers: string[] = [];
|
|
16
22
|
for (const col of exportColumns) {
|
|
17
|
-
headers.push(col.
|
|
23
|
+
headers.push(col.header as string);
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
const rows: string[] = [];
|
|
@@ -22,18 +28,11 @@ export function exportPeaksToTSV(
|
|
|
22
28
|
const record = data[i];
|
|
23
29
|
const cells: string[] = [];
|
|
24
30
|
for (const col of exportColumns) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} else if (typeof accessor === 'function') {
|
|
31
|
+
if ('accessorKey' in col) {
|
|
32
|
+
cells.push(formatCellValue(dlv(record, col.accessorKey)));
|
|
33
|
+
} else if ('accessorFn' in col) {
|
|
29
34
|
cells.push(
|
|
30
|
-
|
|
31
|
-
accessor(record, i, {
|
|
32
|
-
subRows: [],
|
|
33
|
-
depth: 0,
|
|
34
|
-
data: [],
|
|
35
|
-
}) ?? '',
|
|
36
|
-
),
|
|
35
|
+
formatCellValue(col.accessorFn(record, i) as ExportCellValue),
|
|
37
36
|
);
|
|
38
37
|
} else {
|
|
39
38
|
cells.push('');
|
|
@@ -5,7 +5,7 @@ import { FaLink } from 'react-icons/fa';
|
|
|
5
5
|
|
|
6
6
|
import { withDialog } from '../../elements/DialogManager.js';
|
|
7
7
|
import { EmptyText } from '../../elements/EmptyText.js';
|
|
8
|
-
import type {
|
|
8
|
+
import type { TanStackTableContextMenuProps } from '../../elements/tanstack_table/index.ts';
|
|
9
9
|
import useTableSortBy from '../../hooks/useTableSortBy.js';
|
|
10
10
|
import { EditRangeModal } from '../../modal/editRange/EditRangeModal.js';
|
|
11
11
|
import { extractChemicalElement } from '../../utility/extractChemicalElement.js';
|
|
@@ -13,6 +13,7 @@ import { NoDataForFid } from '../extra/placeholder/NoDataForFid.js';
|
|
|
13
13
|
|
|
14
14
|
import type { RangesTableDataRow } from './RangesPanel.js';
|
|
15
15
|
import RangesTableRow from './RangesTableRow.js';
|
|
16
|
+
import type { RangeData } from './hooks/useMapRanges.js';
|
|
16
17
|
import useMapRanges from './hooks/useMapRanges.js';
|
|
17
18
|
|
|
18
19
|
const Table = styled.table`
|
|
@@ -60,7 +61,7 @@ const Table = styled.table`
|
|
|
60
61
|
}
|
|
61
62
|
`;
|
|
62
63
|
|
|
63
|
-
interface RangesTableProps extends
|
|
64
|
+
interface RangesTableProps extends TanStackTableContextMenuProps<RangeData> {
|
|
64
65
|
preferences: WorkspacePanelPreferences['ranges'];
|
|
65
66
|
tableData: RangesTableDataRow[];
|
|
66
67
|
activeTab: string;
|