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,9 +1,19 @@
|
|
|
1
1
|
import { Molecule } from 'openchemlib';
|
|
2
2
|
import { useRef } from 'react';
|
|
3
3
|
import { useTopicMolecule } from '../../../context/TopicMoleculeContext.js';
|
|
4
|
+
function getUniqueLabels(labels) {
|
|
5
|
+
return [...new Set(labels.map((label) => label.trim()).filter(Boolean))];
|
|
6
|
+
}
|
|
7
|
+
function getCustomLabels(atomData) {
|
|
8
|
+
const { customLabels = [], heavyAtomsCustomLabels = [] } = atomData;
|
|
9
|
+
return customLabels.length > 0 ? customLabels : heavyAtomsCustomLabels;
|
|
10
|
+
}
|
|
11
|
+
function getCustomLabel(atomData) {
|
|
12
|
+
return getCustomLabels(atomData).find((label) => label.trim());
|
|
13
|
+
}
|
|
4
14
|
export function useExtractAtomAssignmentLabel() {
|
|
5
15
|
const topicMolecule = useTopicMolecule();
|
|
6
|
-
const lastHoverAtomIdRef = useRef();
|
|
16
|
+
const lastHoverAtomIdRef = useRef(undefined);
|
|
7
17
|
function getLastHoverAtom() {
|
|
8
18
|
return lastHoverAtomIdRef.current;
|
|
9
19
|
}
|
|
@@ -31,13 +41,26 @@ export function useExtractAtomAssignmentLabel() {
|
|
|
31
41
|
const atomData = getTopicAtom(moleculeId, oclID, molfile);
|
|
32
42
|
if (!atomData)
|
|
33
43
|
return;
|
|
34
|
-
const
|
|
35
|
-
const labels = customLabels.length > 0 ? customLabels : heavyAtomsCustomLabels;
|
|
36
|
-
const uniqueLabels = [
|
|
37
|
-
...new Set(labels.map((l) => l.trim()).filter(Boolean)),
|
|
38
|
-
];
|
|
44
|
+
const uniqueLabels = getUniqueLabels(getCustomLabels(atomData));
|
|
39
45
|
return uniqueLabels.join(',');
|
|
40
46
|
}
|
|
47
|
+
function getAssignmentLabelByDiaIDs(diaIDs) {
|
|
48
|
+
if (!diaIDs || diaIDs.length === 0)
|
|
49
|
+
return;
|
|
50
|
+
const moleculeObjects = Object.values(topicMolecule);
|
|
51
|
+
for (const topicMoleculeObject of moleculeObjects) {
|
|
52
|
+
const diaIDsObject = topicMoleculeObject.getDiaIDsObject();
|
|
53
|
+
for (const diaID of diaIDs) {
|
|
54
|
+
const atomData = diaIDsObject?.[diaID];
|
|
55
|
+
if (!atomData)
|
|
56
|
+
continue;
|
|
57
|
+
const label = getCustomLabel(atomData);
|
|
58
|
+
if (label)
|
|
59
|
+
return label;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
41
64
|
function getAssignmentLabelByHover(moleculeId, molfile) {
|
|
42
65
|
const diaId = lastHoverAtomIdRef.current?.idCode;
|
|
43
66
|
if (!diaId)
|
|
@@ -49,6 +72,7 @@ export function useExtractAtomAssignmentLabel() {
|
|
|
49
72
|
}
|
|
50
73
|
return {
|
|
51
74
|
getAssignmentLabelByHover,
|
|
75
|
+
getAssignmentLabelByDiaIDs,
|
|
52
76
|
getAssignmentLabelById,
|
|
53
77
|
onAtomHover,
|
|
54
78
|
getLastHoverAtom,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExtractAtomAssignmentLabel.js","sourceRoot":"","sources":["../../../../../src/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAE5E,MAAM,UAAU,6BAA6B;IAC3C,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IACzC,MAAM,kBAAkB,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"useExtractAtomAssignmentLabel.js","sourceRoot":"","sources":["../../../../../src/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.ts"],"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AC;gBAC3B,MAAM,QAAQ,GAAG,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC;gBACvC,IAAI,CAAC,QAAQ;oBAAE,SAAS;gBAExB,MAAM,KAAK,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;gBACvC,IAAI,KAAK;oBAAE,OAAO,KAAK,CAAC;YAC1B,CAAC;QACH,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,SAAS,yBAAyB,CAAC,UAAkB,EAAE,OAAgB;QACrE,MAAM,KAAK,GAAG,kBAAkB,CAAC,OAAO,EAAE,MAAM,CAAC;QACjD,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,OAAO;YACL,UAAU,EAAE,sBAAsB,CAAC,UAAU,EAAE,KAAK,EAAE,OAAO,CAAC;YAC9D,kBAAkB,EAAE,sBAAsB,CAAC,UAAU,EAAE,KAAK,CAAC;SAC9D,CAAC;IACJ,CAAC;IAED,OAAO;QACL,yBAAyB;QACzB,0BAA0B;QAC1B,sBAAsB;QACtB,WAAW;QACX,gBAAgB;QAChB,mBAAmB;KACpB,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { SettingsRef } from '../extra/utilities/settingImperativeHandle.js';
|
|
2
|
-
declare const _default: import("react").
|
|
2
|
+
declare const _default: import("react").NamedExoticComponent<import("react").RefAttributes<SettingsRef | null>>;
|
|
3
3
|
export default _default;
|
|
4
4
|
//# sourceMappingURL=PeaksPreferences.d.ts.map
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import type { Info1D, Peak1D } from '@zakodium/nmr-types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Dispatch, SetStateAction } from 'react';
|
|
3
|
+
import type { TanStackTableColumn } from '../../elements/tanstack_table/index.ts';
|
|
3
4
|
import type { PeakRecord } from './PeaksPanel.js';
|
|
4
|
-
|
|
5
|
-
tableColumns:
|
|
5
|
+
interface UsePeaksTableColumnsReturn {
|
|
6
|
+
tableColumns: Array<TanStackTableColumn<PeakRecord>>;
|
|
6
7
|
peak: Peak1D | undefined;
|
|
7
|
-
setEditedPeak:
|
|
8
|
-
}
|
|
8
|
+
setEditedPeak: Dispatch<SetStateAction<Peak1D | undefined>>;
|
|
9
|
+
}
|
|
10
|
+
export declare function usePeaksTableColumns(activeTab: string): UsePeaksTableColumnsReturn;
|
|
9
11
|
interface PeaksTableProps {
|
|
10
|
-
tableColumns: Array<
|
|
12
|
+
tableColumns: Array<TanStackTableColumn<PeakRecord>>;
|
|
11
13
|
data: PeakRecord[];
|
|
12
14
|
info: Info1D;
|
|
13
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PeaksTable.d.ts","sourceRoot":"","sources":["../../../../src/component/panels/PeaksPanel/PeaksTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"PeaksTable.d.ts","sourceRoot":"","sources":["../../../../src/component/panels/PeaksPanel/PeaksTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAStD,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,wCAAwC,CAAC;AAUhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AASlD,UAAU,0BAA0B;IAClC,YAAY,EAAE,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAC;IACrD,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,aAAa,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;CAC7D;AAED,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,GAChB,0BAA0B,CA2N5B;AAED,UAAU,eAAe;IACvB,YAAY,EAAE,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAC;IACrD,IAAI,EAAE,UAAU,EAAE,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAMD,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,+BAqBzC;;AAED,wBAAgC"}
|
|
@@ -6,9 +6,8 @@ import { getPeakAbsoluteArea } from "../../../data/utilities/getPeakAbsoluteArea
|
|
|
6
6
|
import { useDispatch } from '../../context/DispatchContext.js';
|
|
7
7
|
import { EditableColumn } from '../../elements/EditableColumn.js';
|
|
8
8
|
import { EmptyText } from '../../elements/EmptyText.js';
|
|
9
|
-
import ReactTable from '../../elements/ReactTable/ReactTable.js';
|
|
10
|
-
import addCustomColumn, { createActionColumn, } from '../../elements/ReactTable/utility/addCustomColumn.js';
|
|
11
9
|
import { TableHeaderLabel } from "../../elements/TableHeaderLabel.js";
|
|
10
|
+
import { TanStackTable, createActionColumn, createTanStackColumnHelper, } from "../../elements/tanstack_table/index.js";
|
|
12
11
|
import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
13
12
|
import { formatNumber } from '../../utility/formatNumber.js';
|
|
14
13
|
import { NoDataForFid } from '../extra/placeholder/NoDataForFid.js';
|
|
@@ -19,15 +18,14 @@ export function usePeaksTableColumns(activeTab) {
|
|
|
19
18
|
const dispatch = useDispatch();
|
|
20
19
|
const { tablePreferences } = usePanelPreferences('peaks', activeTab);
|
|
21
20
|
const [peak, setEditedPeak] = useState();
|
|
22
|
-
const deletePeakHandler = useCallback((
|
|
23
|
-
const params = row.original;
|
|
21
|
+
const deletePeakHandler = useCallback((params) => {
|
|
24
22
|
dispatch({
|
|
25
23
|
type: 'DELETE_PEAK',
|
|
26
24
|
payload: { id: params.id },
|
|
27
25
|
});
|
|
28
26
|
}, [dispatch]);
|
|
29
27
|
const editPeakHandler = useCallback((row) => {
|
|
30
|
-
setEditedPeak(row
|
|
28
|
+
setEditedPeak(row);
|
|
31
29
|
}, []);
|
|
32
30
|
const saveDeltaPPMRefsHandler = useCallback((value, peak) => {
|
|
33
31
|
const shift = Number(value) - peak.x;
|
|
@@ -39,139 +37,131 @@ export function usePeaksTableColumns(activeTab) {
|
|
|
39
37
|
payload: { value: Number(value), id },
|
|
40
38
|
});
|
|
41
39
|
}, [dispatch]);
|
|
42
|
-
const COLUMNS = useMemo(() =>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
: '',
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
40
|
+
const COLUMNS = useMemo(() => {
|
|
41
|
+
const columnHelper = createTanStackColumnHelper();
|
|
42
|
+
const columns = columnHelper.columns([]);
|
|
43
|
+
// TODO: Use column visibility feature instead.
|
|
44
|
+
if (dlv(tablePreferences, 'showSerialNumber')) {
|
|
45
|
+
columns.push({
|
|
46
|
+
id: 'rowNumber',
|
|
47
|
+
header: '#',
|
|
48
|
+
accessorFn: (_, index) => index + 1,
|
|
49
|
+
meta: { style: { width: '1%', maxWidth: '40px', minWidth: '40px' } },
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
if (dlv(tablePreferences, 'deltaPPM.show')) {
|
|
53
|
+
columns.push({
|
|
54
|
+
header: () => {
|
|
55
|
+
return (_jsx(TableHeaderLabel, { text: "\u03B4 (ppm)", shortText: "\u03B4", fontSize: 12, fontWeight: "bold" }));
|
|
56
|
+
},
|
|
57
|
+
accessorKey: 'x',
|
|
58
|
+
cell: ({ row }) => (_jsx(EditableColumn, { value: formatNumber(row.original.x, tablePreferences.deltaPPM.format), onSave: (value) => saveDeltaPPMRefsHandler(value, row.original), type: "number", validate: (val) => val !== '' })),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
if (dlv(tablePreferences, 'deltaHz.show')) {
|
|
62
|
+
columns.push({
|
|
63
|
+
header: 'δ (Hz)',
|
|
64
|
+
accessorKey: 'xHz',
|
|
65
|
+
cell: ({ row }) => formatNumber(row.original.xHz, tablePreferences.deltaHz.format),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
if (dlv(tablePreferences, 'intensity.show')) {
|
|
69
|
+
columns.push({
|
|
70
|
+
header: 'Intensity',
|
|
71
|
+
meta: { style: { maxWidth: '80px' } },
|
|
72
|
+
accessorKey: 'y',
|
|
73
|
+
cell: ({ row }) => formatNumber(row.original.y, tablePreferences.intensity.format),
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
if (dlv(tablePreferences, 'peakWidth.show')) {
|
|
77
|
+
columns.push({
|
|
78
|
+
header: 'Width (Hz)',
|
|
79
|
+
accessorKey: 'width',
|
|
80
|
+
cell: ({ row }) => formatNumber(row.original.width, tablePreferences.peakWidth.format),
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
if (dlv(tablePreferences, 'showKind')) {
|
|
84
|
+
columns.push({
|
|
85
|
+
header: 'Kind',
|
|
86
|
+
accessorFn: (row) => row.shape?.kind || '',
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
if (dlv(tablePreferences, 'fwhm.show')) {
|
|
90
|
+
columns.push({
|
|
91
|
+
header: 'fwhm',
|
|
92
|
+
accessorFn: (row) => row?.shape?.fwhm ?? '',
|
|
93
|
+
cell: ({ row }) => getFormattedNumber(row.original?.shape?.fwhm, tablePreferences.fwhm.format),
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
if (dlv(tablePreferences, 'mu.show')) {
|
|
97
|
+
columns.push({
|
|
98
|
+
header: 'mu',
|
|
99
|
+
accessorFn: (row) => row?.shape?.kind === 'pseudoVoigt' ? (row.shape.mu ?? '') : '',
|
|
100
|
+
cell: ({ row }) => {
|
|
101
|
+
const shape = row.original?.shape;
|
|
102
|
+
const mu = shape?.kind === 'pseudoVoigt' ? shape.mu : undefined;
|
|
103
|
+
return getFormattedNumber(mu, tablePreferences.mu.format);
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
if (dlv(tablePreferences, 'gamma.show')) {
|
|
108
|
+
columns.push({
|
|
109
|
+
header: 'gamma',
|
|
110
|
+
accessorFn: (row) => row?.shape?.kind === 'generalizedLorentzian'
|
|
111
|
+
? (row.shape.gamma ?? '')
|
|
112
|
+
: '',
|
|
113
|
+
cell: ({ row }) => {
|
|
114
|
+
const shape = row.original?.shape;
|
|
115
|
+
const gamma = shape?.kind === 'generalizedLorentzian' ? shape.gamma : undefined;
|
|
116
|
+
return getFormattedNumber(gamma, tablePreferences.gamma.format);
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
if (dlv(tablePreferences, 'absoluteArea.show')) {
|
|
121
|
+
columns.push({
|
|
122
|
+
header: 'Absolute area',
|
|
123
|
+
accessorFn: (row) => getPeakAbsoluteArea(row) ?? '',
|
|
124
|
+
cell: ({ row }) => getFormattedNumber(getPeakAbsoluteArea(row.original), tablePreferences.absoluteArea.format),
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
if (dlv(tablePreferences, 'relativeArea.show')) {
|
|
128
|
+
columns.push({
|
|
129
|
+
header: () => {
|
|
130
|
+
return (_jsx(TableHeaderLabel, { text: "Relative area", shortText: "Area", fontSize: 12, fontWeight: "bold" }));
|
|
131
|
+
},
|
|
132
|
+
accessorKey: 'relativeArea',
|
|
133
|
+
cell: ({ row }) => {
|
|
134
|
+
const value = formatNumber(row.original.relativeArea || 0, tablePreferences.relativeArea.format);
|
|
135
|
+
return (_jsx(EditableColumn, { value: value, onSave: (newValue) => saveRelativeAreaHandler(newValue, row.original.id), validate: (val) => val !== '', type: "number", style: { padding: '0.1rem 0.4rem' } }));
|
|
136
|
+
},
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
if (dlv(tablePreferences, 'showEditPeakShapeAction')) {
|
|
140
|
+
columns.push(createActionColumn({
|
|
141
|
+
id: 'edit-peak',
|
|
141
142
|
icon: _jsx(FaEdit, {}),
|
|
142
143
|
onClick: editPeakHandler,
|
|
143
144
|
style: {
|
|
144
145
|
borderRight: '0px',
|
|
145
146
|
},
|
|
146
|
-
})
|
|
147
|
-
}
|
|
148
|
-
{
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
index: 21,
|
|
147
|
+
}));
|
|
148
|
+
}
|
|
149
|
+
if (dlv(tablePreferences, 'showDeleteAction')) {
|
|
150
|
+
columns.push(createActionColumn({
|
|
151
|
+
id: 'delete-peak',
|
|
152
152
|
icon: _jsx(FaRegTrashAlt, {}),
|
|
153
153
|
onClick: deletePeakHandler,
|
|
154
|
-
})
|
|
155
|
-
}
|
|
156
|
-
|
|
154
|
+
}));
|
|
155
|
+
}
|
|
156
|
+
return columns;
|
|
157
|
+
}, [
|
|
157
158
|
editPeakHandler,
|
|
158
159
|
deletePeakHandler,
|
|
159
160
|
tablePreferences,
|
|
160
161
|
saveDeltaPPMRefsHandler,
|
|
161
162
|
saveRelativeAreaHandler,
|
|
162
163
|
]);
|
|
163
|
-
|
|
164
|
-
const columns = [];
|
|
165
|
-
for (const col of COLUMNS) {
|
|
166
|
-
const { showWhen, ...colParams } = col;
|
|
167
|
-
if (dlv(tablePreferences, showWhen)) {
|
|
168
|
-
addCustomColumn(columns, colParams);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
columns.sort((object1, object2) => object1.index - object2.index);
|
|
172
|
-
return columns;
|
|
173
|
-
}, [COLUMNS, tablePreferences]);
|
|
174
|
-
return { tableColumns, peak, setEditedPeak };
|
|
164
|
+
return { tableColumns: COLUMNS, peak, setEditedPeak };
|
|
175
165
|
}
|
|
176
166
|
function handleActiveRow(row) {
|
|
177
167
|
return row.original.isConstantlyHighlighted;
|
|
@@ -184,7 +174,7 @@ function PeaksTable(props) {
|
|
|
184
174
|
if (data.length === 0) {
|
|
185
175
|
return _jsx(EmptyText, { text: "No data" });
|
|
186
176
|
}
|
|
187
|
-
return (_jsx(
|
|
177
|
+
return (_jsx(TanStackTable, { activeRow: handleActiveRow, rowStyle: { activated: { backgroundColor: '#f5f5dc' } }, data: data, columns: tableColumns, approxItemHeight: 24, enableVirtualScroll: true }));
|
|
188
178
|
}
|
|
189
179
|
export default memo(PeaksTable);
|
|
190
180
|
//# sourceMappingURL=PeaksTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PeaksTable.js","sourceRoot":"","sources":["../../../../src/component/panels/PeaksPanel/PeaksTable.tsx"],"names":[],"mappings":";AACA,OAAO,GAAG,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"PeaksTable.js","sourceRoot":"","sources":["../../../../src/component/panels/PeaksPanel/PeaksTable.tsx"],"names":[],"mappings":";AACA,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAqC,CAAC;AAKvE,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAIpE,SAAS,kBAAkB,CACzB,KAAc,EACd,MAA0C;IAE1C,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACtE,CAAC;AAQD,MAAM,UAAU,oBAAoB,CAClC,SAAiB;IAEjB,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,EAAE,gBAAgB,EAAE,G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BAAuB,CAAC;AAC9C,CAAC;AAED,SAAS,UAAU,CAAC,KAAsB;IACxC,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAE3C,IAAI,IAAI,EAAE,KAAK,EAAE,CAAC;QAChB,OAAO,KAAC,YAAY,KAAG,CAAC;IAC1B,CAAC;IAED,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,KAAC,SAAS,IAAC,IAAI,EAAC,SAAS,GAAG,CAAC;IACtC,CAAC;IAED,OAAO,CACL,KAAC,aAAa,IACZ,SAAS,EAAE,eAAe,EAC1B,QAAQ,EAAE,EAAE,SAAS,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,EAAE,EACvD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,YAAY,EACrB,gBAAgB,EAAE,EAAE,EACpB,mBAAmB,SACnB,CACH,CAAC;AACJ,CAAC;AAED,eAAe,IAAI,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TanStackTableColumn } from '../../elements/tanstack_table/index.ts';
|
|
2
2
|
import type { PeakRecord } from './PeaksPanel.tsx';
|
|
3
|
-
export declare function exportPeaksToTSV(data: PeakRecord[], tableColumns: Array<
|
|
3
|
+
export declare function exportPeaksToTSV(data: PeakRecord[], tableColumns: Array<TanStackTableColumn<PeakRecord>>): string;
|
|
4
4
|
//# sourceMappingURL=peaksToTSV.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peaksToTSV.d.ts","sourceRoot":"","sources":["../../../../src/component/panels/PeaksPanel/peaksToTSV.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"peaksToTSV.d.ts","sourceRoot":"","sources":["../../../../src/component/panels/PeaksPanel/peaksToTSV.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAElF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAQnD,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,UAAU,EAAE,EAClB,YAAY,EAAE,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,UA6BrD"}
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
import dlv from 'dlv';
|
|
2
|
+
function formatCellValue(value) {
|
|
3
|
+
return value === null || value === undefined ? '' : String(value);
|
|
4
|
+
}
|
|
2
5
|
export function exportPeaksToTSV(data, tableColumns) {
|
|
3
|
-
const exportColumns = tableColumns.filter((col) => col.
|
|
6
|
+
const exportColumns = tableColumns.filter((col) => col.header && typeof col.header === 'string');
|
|
4
7
|
const headers = [];
|
|
5
8
|
for (const col of exportColumns) {
|
|
6
|
-
headers.push(col.
|
|
9
|
+
headers.push(col.header);
|
|
7
10
|
}
|
|
8
11
|
const rows = [];
|
|
9
12
|
for (let i = 0; i < data.length; i++) {
|
|
10
13
|
const record = data[i];
|
|
11
14
|
const cells = [];
|
|
12
15
|
for (const col of exportColumns) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
cells.push(String(dlv(record, accessor) ?? ''));
|
|
16
|
+
if ('accessorKey' in col) {
|
|
17
|
+
cells.push(formatCellValue(dlv(record, col.accessorKey)));
|
|
16
18
|
}
|
|
17
|
-
else if (
|
|
18
|
-
cells.push(
|
|
19
|
-
subRows: [],
|
|
20
|
-
depth: 0,
|
|
21
|
-
data: [],
|
|
22
|
-
}) ?? ''));
|
|
19
|
+
else if ('accessorFn' in col) {
|
|
20
|
+
cells.push(formatCellValue(col.accessorFn(record, i)));
|
|
23
21
|
}
|
|
24
22
|
else {
|
|
25
23
|
cells.push('');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peaksToTSV.js","sourceRoot":"","sources":["../../../../src/component/panels/PeaksPanel/peaksToT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K,CAAC,IAAI,CACR,eAAe,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAoB,CAAC,CAC9D,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACjB,CAAC;QACH,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC9B,CAAC;IACD,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AACrD,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Info1D } from '@zakodium/nmr-types';
|
|
2
2
|
import type { WorkspacePanelPreferences } from '@zakodium/nmrium-core';
|
|
3
|
-
import type {
|
|
3
|
+
import type { TanStackTableContextMenuProps } from '../../elements/tanstack_table/index.ts';
|
|
4
4
|
import type { RangesTableDataRow } from './RangesPanel.js';
|
|
5
|
-
|
|
5
|
+
import type { RangeData } from './hooks/useMapRanges.js';
|
|
6
|
+
interface RangesTableProps extends TanStackTableContextMenuProps<RangeData> {
|
|
6
7
|
preferences: WorkspacePanelPreferences['ranges'];
|
|
7
8
|
tableData: RangesTableDataRow[];
|
|
8
9
|
activeTab: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangesTable.d.ts","sourceRoot":"","sources":["../../../../src/component/panels/RangesPanel/RangesTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAKvE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"RangesTable.d.ts","sourceRoot":"","sources":["../../../../src/component/panels/RangesPanel/RangesTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAKvE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AAM5F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAgDzD,UAAU,gBAAiB,SAAQ,6BAA6B,CAAC,SAAS,CAAC;IACzE,WAAW,EAAE,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IACjD,SAAS,EAAE,kBAAkB,EAAE,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd;AAID,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BA4F1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangesTable.js","sourceRoot":"","sources":["../../../../src/component/panels/RangesPanel/RangesTable.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAGrC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAGpE,OAAO,cAAc,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"RangesTable.js","sourceRoot":"","sources":["../../../../src/component/panels/RangesPanel/RangesTable.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAG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,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAI,GAChD,CACN,EACA,gBAAgB,CAAC,QAAQ,IAAI,gCAAa,EAC1C,WAAW,IAAI,uBAAK,EAAE,GAAM,IAC1B,GACC,EACR,0BACG,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;4BAClB,OAAO,CACL,KAAC,cAAc,IAEb,OAAO,EAAE,KAAK,EACd,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,EACxB,mBAAmB,EAAE,mBAAmB,IALnC,KAAK,CAAC,MAAM,CAMjB,CACH,CAAC;wBACJ,CAAC,CAAC,GACI,IACF,IACP,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Info1D } from '@zakodium/nmr-types';
|
|
2
2
|
import type { WorkspacePanelPreferences } from '@zakodium/nmrium-core';
|
|
3
3
|
import type { CSSProperties } from 'react';
|
|
4
|
-
import type {
|
|
4
|
+
import type { TanStackTableContextMenuProps } from '../../elements/tanstack_table/index.ts';
|
|
5
5
|
import type { RangeData } from './hooks/useMapRanges.js';
|
|
6
|
-
interface RangesTableRowProps extends
|
|
6
|
+
interface RangesTableRowProps extends TanStackTableContextMenuProps<RangeData> {
|
|
7
7
|
rowData: RangeData;
|
|
8
8
|
preferences: WorkspacePanelPreferences['ranges'];
|
|
9
9
|
info: Info1D;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangesTableRow.d.ts","sourceRoot":"","sources":["../../../../src/component/panels/RangesPanel/RangesTableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAc,MAAM,OAAO,CAAC;AAWvD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"RangesTableRow.d.ts","sourceRoot":"","sources":["../../../../src/component/panels/RangesPanel/RangesTableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAc,MAAM,OAAO,CAAC;AAWvD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AAY5F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAUzD,UAAU,mBAAoB,SAAQ,6BAA6B,CAAC,SAAS,CAAC;IAC5E,OAAO,EAAE,SAAS,CAAC;IACnB,WAAW,EAAE,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IACjD,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,SAAS,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE;QACP,YAAY,EAAE,MAAM,IAAI,CAAC;QACzB,YAAY,EAAE,MAAM,IAAI,CAAC;KAC1B,CAAC;CACH;AAED,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE;QACX,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,aAAa,CAAC;KACvB,CAAC;CACH;AAED,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GACjD,YAAY,GACZ,WAAW,CAAC;AAEd,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,mBAAmB,+BA6NhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignalAssignmentColumn.d.ts","sourceRoot":"","sources":["../../../../../src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SignalAssignmentColumn.d.ts","sourceRoot":"","sources":["../../../../../src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE/E,UAAU,2BACR,SAAQ,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,EAAE,YAAY;IAC1D,SAAS,EAAE;QACT,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;CACH;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,+BAuExE"}
|