nmrium 3.1.0 → 3.2.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 +5 -2
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +28 -24
- package/lib/component/1d/FloatPublicationString.js.map +1 -1
- package/lib/component/1d/plugin_chart_brush_tracker.d.ts.map +1 -1
- package/lib/component/1d/plugin_chart_brush_tracker.js +2 -1
- package/lib/component/1d/plugin_chart_brush_tracker.js.map +1 -1
- package/lib/component/1d/plugin_svg_chart.d.ts.map +1 -1
- package/lib/component/1d/plugin_svg_chart.js +15 -2
- package/lib/component/1d/plugin_svg_chart.js.map +1 -1
- package/lib/component/1d/ranges/FloatingRanges.js +2 -2
- package/lib/component/1d/ranges/FloatingRanges.js.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.js +1 -1
- package/lib/component/1d/ranges/Range.js.map +1 -1
- package/lib/component/1d-2d/FieldEdition.d.ts +2 -1
- package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
- package/lib/component/1d-2d/FieldEdition.js +3 -3
- package/lib/component/1d-2d/FieldEdition.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +3 -3
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
- package/lib/component/2d/1d-tracer/HorizontalSliceChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/HorizontalSliceChart.js +2 -1
- package/lib/component/2d/1d-tracer/HorizontalSliceChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.js +2 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.js.map +1 -1
- package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.js +5 -1
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/SVGContent2D.d.ts.map +1 -1
- package/lib/component/2d/SVGContent2D.js +2 -1
- package/lib/component/2d/SVGContent2D.js.map +1 -1
- package/lib/component/2d/SignalDeltaLine.d.ts +3 -0
- package/lib/component/2d/SignalDeltaLine.d.ts.map +1 -1
- package/lib/component/2d/SignalDeltaLine.js +3 -4
- package/lib/component/2d/SignalDeltaLine.js.map +1 -1
- package/lib/component/2d/linked-signals/LinkedSignal.d.ts +7 -0
- package/lib/component/2d/linked-signals/LinkedSignal.d.ts.map +1 -0
- package/lib/component/2d/linked-signals/LinkedSignal.js +42 -0
- package/lib/component/2d/linked-signals/LinkedSignal.js.map +1 -0
- package/lib/component/2d/linked-signals/LinkedSignalAssignmentLabel.d.ts +8 -0
- package/lib/component/2d/linked-signals/LinkedSignalAssignmentLabel.d.ts.map +1 -0
- package/lib/component/2d/linked-signals/LinkedSignalAssignmentLabel.js +152 -0
- package/lib/component/2d/linked-signals/LinkedSignalAssignmentLabel.js.map +1 -0
- package/lib/component/2d/linked-signals/LinkedSignals.d.ts +2 -0
- package/lib/component/2d/linked-signals/LinkedSignals.d.ts.map +1 -0
- package/lib/component/2d/linked-signals/LinkedSignals.js +32 -0
- package/lib/component/2d/linked-signals/LinkedSignals.js.map +1 -0
- package/lib/component/2d/linked-signals/SignalCrossingIndicator.d.ts +3 -0
- package/lib/component/2d/linked-signals/SignalCrossingIndicator.d.ts.map +1 -0
- package/lib/component/2d/linked-signals/SignalCrossingIndicator.js +36 -0
- package/lib/component/2d/linked-signals/SignalCrossingIndicator.js.map +1 -0
- package/lib/component/2d/linked-signals/useClassifyCorrelation.d.ts +5 -0
- package/lib/component/2d/linked-signals/useClassifyCorrelation.d.ts.map +1 -0
- package/lib/component/2d/linked-signals/useClassifyCorrelation.js +16 -0
- package/lib/component/2d/linked-signals/useClassifyCorrelation.js.map +1 -0
- package/lib/component/2d/linked-signals/useNearestSignalCrossing.d.ts +13 -0
- package/lib/component/2d/linked-signals/useNearestSignalCrossing.d.ts.map +1 -0
- package/lib/component/2d/linked-signals/useNearestSignalCrossing.js +41 -0
- package/lib/component/2d/linked-signals/useNearestSignalCrossing.js.map +1 -0
- package/lib/component/2d/linked-signals/utilities/getCorrelationColor.d.ts +5 -0
- package/lib/component/2d/linked-signals/utilities/getCorrelationColor.d.ts.map +1 -0
- package/lib/component/2d/linked-signals/utilities/getCorrelationColor.js +31 -0
- package/lib/component/2d/linked-signals/utilities/getCorrelationColor.js.map +1 -0
- package/lib/component/2d/linked-signals/utilities/getCouplingLength.d.ts +3 -0
- package/lib/component/2d/linked-signals/utilities/getCouplingLength.d.ts.map +1 -0
- package/lib/component/2d/linked-signals/utilities/getCouplingLength.js +41 -0
- package/lib/component/2d/linked-signals/utilities/getCouplingLength.js.map +1 -0
- package/lib/component/2d/linked-signals/utilities/signalCrossings.d.ts +45 -0
- package/lib/component/2d/linked-signals/utilities/signalCrossings.d.ts.map +1 -0
- package/lib/component/2d/linked-signals/utilities/signalCrossings.js +73 -0
- package/lib/component/2d/linked-signals/utilities/signalCrossings.js.map +1 -0
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts +5 -0
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.js +15 -0
- package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -1
- package/lib/component/2d/utilities/useAssignmentLabelLinkPath.d.ts +17 -0
- package/lib/component/2d/utilities/useAssignmentLabelLinkPath.d.ts.map +1 -0
- package/lib/component/2d/utilities/useAssignmentLabelLinkPath.js +99 -0
- package/lib/component/2d/utilities/useAssignmentLabelLinkPath.js.map +1 -0
- package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +3 -2
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/Zone.d.ts.map +1 -1
- package/lib/component/2d/zones/Zone.js +47 -1
- package/lib/component/2d/zones/Zone.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js +4 -148
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +101 -16
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js +6 -0
- package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
- package/lib/component/EventsTrackers/brush_tracker.types.d.ts +40 -0
- package/lib/component/EventsTrackers/brush_tracker.types.d.ts.map +1 -1
- package/lib/component/EventsTrackers/brush_tracker_drag_gesture.d.ts +42 -0
- package/lib/component/EventsTrackers/brush_tracker_drag_gesture.d.ts.map +1 -0
- package/lib/component/EventsTrackers/brush_tracker_drag_gesture.js +46 -0
- package/lib/component/EventsTrackers/brush_tracker_drag_gesture.js.map +1 -0
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.d.ts +1 -1
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.d.ts.map +1 -1
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.js.map +1 -1
- package/lib/component/context/DispatchContext.d.ts +2 -1
- package/lib/component/context/DispatchContext.d.ts.map +1 -1
- package/lib/component/context/DispatchContext.js.map +1 -1
- package/lib/component/context/processings_mutations_context.api.d.ts.map +1 -1
- package/lib/component/context/processings_mutations_context.api.js +5 -2
- package/lib/component/context/processings_mutations_context.api.js.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.d.ts +1 -0
- package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js +14 -6
- package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
- package/lib/component/elements/export/ExportContent.js +1 -1
- package/lib/component/elements/export/ExportContent.js.map +1 -1
- package/lib/component/elements/print/PrintContent.js +1 -1
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_row.d.ts.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_row.js +2 -2
- package/lib/component/elements/tanstack_table/elements/table_row.js.map +1 -1
- package/lib/component/elements/tanstack_table/table.d.ts.map +1 -1
- package/lib/component/elements/tanstack_table/table.js +2 -1
- package/lib/component/elements/tanstack_table/table.js.map +1 -1
- package/lib/component/elements/tanstack_table/types.d.ts +2 -0
- package/lib/component/elements/tanstack_table/types.d.ts.map +1 -1
- package/lib/component/highlight/index.d.ts +2 -0
- package/lib/component/highlight/index.d.ts.map +1 -1
- package/lib/component/highlight/index.js.map +1 -1
- package/lib/component/hooks/usePanelPreferences.d.ts +2 -2
- package/lib/component/hooks/usePanelPreferences.d.ts.map +1 -1
- package/lib/component/hooks/usePanelPreferences.js +5 -1
- package/lib/component/hooks/usePanelPreferences.js.map +1 -1
- package/lib/component/hooks/useToolsFunctions.d.ts.map +1 -1
- package/lib/component/hooks/useToolsFunctions.js +8 -5
- package/lib/component/hooks/useToolsFunctions.js.map +1 -1
- package/lib/component/hooks/use_publication_strings.d.ts +3 -1
- package/lib/component/hooks/use_publication_strings.d.ts.map +1 -1
- package/lib/component/hooks/use_publication_strings.js +10 -6
- package/lib/component/hooks/use_publication_strings.js.map +1 -1
- package/lib/component/modal/PredictSpectraModal.d.ts.map +1 -1
- package/lib/component/modal/PredictSpectraModal.js +5 -2
- package/lib/component/modal/PredictSpectraModal.js.map +1 -1
- package/lib/component/modal/PredictionLimitModal.d.ts +10 -0
- package/lib/component/modal/PredictionLimitModal.d.ts.map +1 -0
- package/lib/component/modal/PredictionLimitModal.js +31 -0
- package/lib/component/modal/PredictionLimitModal.js.map +1 -0
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +24 -0
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +24 -0
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +24 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +12 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +12 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +2 -0
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +12 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +12 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +12 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +12 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +12 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +12 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +12 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +12 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +12 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +12 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +12 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +12 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +12 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts +11 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +12 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +2 -2
- package/lib/component/panels/IntegralsPanel/IntegralTable.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +5 -5
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.js +11 -9
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +7 -2
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.d.ts +3 -0
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js +31 -17
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useSignalAssignmentUpdates.d.ts +18 -0
- package/lib/component/panels/MoleculesPanel/hooks/useSignalAssignmentUpdates.d.ts.map +1 -0
- package/lib/component/panels/MoleculesPanel/hooks/useSignalAssignmentUpdates.js +113 -0
- package/lib/component/panels/MoleculesPanel/hooks/useSignalAssignmentUpdates.js.map +1 -0
- package/lib/component/panels/MoleculesPanel/utilities/sortAssignmentLabels.d.ts +11 -0
- package/lib/component/panels/MoleculesPanel/utilities/sortAssignmentLabels.d.ts.map +1 -0
- package/lib/component/panels/MoleculesPanel/utilities/sortAssignmentLabels.js +28 -0
- package/lib/component/panels/MoleculesPanel/utilities/sortAssignmentLabels.js.map +1 -0
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +1 -3
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js +40 -4
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +17 -5
- package/lib/component/panels/ZonesPanel/ZonesPanel.js.map +1 -1
- package/lib/component/panels/accordionItems.d.ts.map +1 -1
- package/lib/component/panels/accordionItems.js +7 -0
- package/lib/component/panels/accordionItems.js.map +1 -1
- package/lib/component/panels/assignment-summary/AssignmentSummaryPanel.d.ts +2 -0
- package/lib/component/panels/assignment-summary/AssignmentSummaryPanel.d.ts.map +1 -0
- package/lib/component/panels/assignment-summary/AssignmentSummaryPanel.js +136 -0
- package/lib/component/panels/assignment-summary/AssignmentSummaryPanel.js.map +1 -0
- package/lib/component/panels/assignment-summary/AssignmentsExportModal.d.ts +10 -0
- package/lib/component/panels/assignment-summary/AssignmentsExportModal.d.ts.map +1 -0
- package/lib/component/panels/assignment-summary/AssignmentsExportModal.js +128 -0
- package/lib/component/panels/assignment-summary/AssignmentsExportModal.js.map +1 -0
- package/lib/component/panels/assignment-summary/MoleculeAssignmentTable.d.ts +11 -0
- package/lib/component/panels/assignment-summary/MoleculeAssignmentTable.d.ts.map +1 -0
- package/lib/component/panels/assignment-summary/MoleculeAssignmentTable.js +113 -0
- package/lib/component/panels/assignment-summary/MoleculeAssignmentTable.js.map +1 -0
- package/lib/component/panels/assignment-summary/table-cells/AssignmentAtomCell.d.ts +8 -0
- package/lib/component/panels/assignment-summary/table-cells/AssignmentAtomCell.d.ts.map +1 -0
- package/lib/component/panels/assignment-summary/table-cells/AssignmentAtomCell.js +16 -0
- package/lib/component/panels/assignment-summary/table-cells/AssignmentAtomCell.js.map +1 -0
- package/lib/component/panels/assignment-summary/table-cells/AssignmentChemicalShiftCell.d.ts +7 -0
- package/lib/component/panels/assignment-summary/table-cells/AssignmentChemicalShiftCell.d.ts.map +1 -0
- package/lib/component/panels/assignment-summary/table-cells/AssignmentChemicalShiftCell.js +22 -0
- package/lib/component/panels/assignment-summary/table-cells/AssignmentChemicalShiftCell.js.map +1 -0
- package/lib/component/panels/assignment-summary/table-cells/AssignmentCorrelationCell.d.ts +7 -0
- package/lib/component/panels/assignment-summary/table-cells/AssignmentCorrelationCell.d.ts.map +1 -0
- package/lib/component/panels/assignment-summary/table-cells/AssignmentCorrelationCell.js +5 -0
- package/lib/component/panels/assignment-summary/table-cells/AssignmentCorrelationCell.js.map +1 -0
- package/lib/component/panels/assignment-summary/table-cells/AssignmentLabelCell.d.ts +9 -0
- package/lib/component/panels/assignment-summary/table-cells/AssignmentLabelCell.d.ts.map +1 -0
- package/lib/component/panels/assignment-summary/table-cells/AssignmentLabelCell.js +10 -0
- package/lib/component/panels/assignment-summary/table-cells/AssignmentLabelCell.js.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/atomGroupsToAssignmentRows.d.ts +54 -0
- package/lib/component/panels/assignment-summary/utilities/atomGroupsToAssignmentRows.d.ts.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/atomGroupsToAssignmentRows.js +161 -0
- package/lib/component/panels/assignment-summary/utilities/atomGroupsToAssignmentRows.js.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/exportAssignments.d.ts +19 -0
- package/lib/component/panels/assignment-summary/utilities/exportAssignments.d.ts.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/exportAssignments.js +74 -0
- package/lib/component/panels/assignment-summary/utilities/exportAssignments.js.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/formatAssignmentACS.d.ts +7 -0
- package/lib/component/panels/assignment-summary/utilities/formatAssignmentACS.d.ts.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/formatAssignmentACS.js +28 -0
- package/lib/component/panels/assignment-summary/utilities/formatAssignmentACS.js.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/formatAssignmentShifts.d.ts +12 -0
- package/lib/component/panels/assignment-summary/utilities/formatAssignmentShifts.d.ts.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/formatAssignmentShifts.js +14 -0
- package/lib/component/panels/assignment-summary/utilities/formatAssignmentShifts.js.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/getAssignedAtomCounts.d.ts +9 -0
- package/lib/component/panels/assignment-summary/utilities/getAssignedAtomCounts.d.ts.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/getAssignedAtomCounts.js +23 -0
- package/lib/component/panels/assignment-summary/utilities/getAssignedAtomCounts.js.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/getAssignmentSignals.d.ts +7 -0
- package/lib/component/panels/assignment-summary/utilities/getAssignmentSignals.d.ts.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/getAssignmentSignals.js +41 -0
- package/lib/component/panels/assignment-summary/utilities/getAssignmentSignals.js.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/getLinkedCorrelationsByExperiment.d.ts +18 -0
- package/lib/component/panels/assignment-summary/utilities/getLinkedCorrelationsByExperiment.d.ts.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/getLinkedCorrelationsByExperiment.js +121 -0
- package/lib/component/panels/assignment-summary/utilities/getLinkedCorrelationsByExperiment.js.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/getSignalsByNucleus.d.ts +16 -0
- package/lib/component/panels/assignment-summary/utilities/getSignalsByNucleus.d.ts.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/getSignalsByNucleus.js +53 -0
- package/lib/component/panels/assignment-summary/utilities/getSignalsByNucleus.js.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/types.d.ts +39 -0
- package/lib/component/panels/assignment-summary/utilities/types.d.ts.map +1 -0
- package/lib/component/panels/assignment-summary/utilities/types.js +2 -0
- package/lib/component/panels/assignment-summary/utilities/types.js.map +1 -0
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.js +2 -2
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.js.map +1 -1
- package/lib/component/panels/filtersPanel/processings/operator_edit_banner.d.ts +6 -0
- package/lib/component/panels/filtersPanel/processings/operator_edit_banner.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/processings/operator_edit_banner.js +2 -2
- package/lib/component/panels/filtersPanel/processings/operator_edit_banner.js.map +1 -1
- package/lib/component/panels/filtersPanel/processings/processing_item.d.ts.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/predictionPanel/PredictionPanel.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +4 -2
- package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +14 -2
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +5 -2
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/LinkedSignalsActions.d.ts +29 -0
- package/lib/component/reducer/actions/LinkedSignalsActions.d.ts.map +1 -0
- package/lib/component/reducer/actions/LinkedSignalsActions.js +62 -0
- package/lib/component/reducer/actions/LinkedSignalsActions.js.map +1 -0
- package/lib/component/reducer/actions/MoleculeActions.d.ts +7 -28
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +78 -10
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +2 -8
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +3 -43
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +10 -0
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts +16 -2
- package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +57 -14
- package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +19 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +19 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts +3 -2
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +4 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
- package/lib/component/toolbar/ToolTypes.js +15 -0
- package/lib/component/toolbar/ToolTypes.js.map +1 -1
- package/lib/component/toolbar/nmr_toolbar.d.ts.map +1 -1
- package/lib/component/toolbar/nmr_toolbar.js +15 -7
- package/lib/component/toolbar/nmr_toolbar.js.map +1 -1
- package/lib/component/utility/core_slots/core_operator_chart_brush.commons.d.ts.map +1 -1
- package/lib/component/utility/core_slots/core_operator_chart_brush.commons.js +62 -4
- package/lib/component/utility/core_slots/core_operator_chart_brush.commons.js.map +1 -1
- package/lib/component/utility/core_slots/core_operator_chart_svg.d.ts.map +1 -1
- package/lib/component/utility/core_slots/core_operator_chart_svg.js +2 -2
- package/lib/component/utility/core_slots/core_operator_chart_svg.js.map +1 -1
- package/lib/component/workspaces/assignment.d.ts.map +1 -1
- package/lib/component/workspaces/assignment.js +5 -3
- package/lib/component/workspaces/assignment.js.map +1 -1
- package/lib/component/workspaces/basic.d.ts.map +1 -1
- package/lib/component/workspaces/basic.js +7 -5
- package/lib/component/workspaces/basic.js.map +1 -1
- package/lib/component/workspaces/embedded.d.ts.map +1 -1
- package/lib/component/workspaces/embedded.js +1 -0
- package/lib/component/workspaces/embedded.js.map +1 -1
- package/lib/component/workspaces/prediction.d.ts.map +1 -1
- package/lib/component/workspaces/prediction.js +1 -0
- package/lib/component/workspaces/prediction.js.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +2 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/data/PredictionManager.d.ts +5 -0
- package/lib/data/PredictionManager.d.ts.map +1 -1
- package/lib/data/PredictionManager.js +11 -1
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/constants/Multiplets.js +2 -2
- package/lib/data/constants/Multiplets.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +1 -0
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +1 -1
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +9 -10
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js.map +1 -1
- package/lib/data/molecules/Molecule.d.ts +1 -0
- package/lib/data/molecules/Molecule.d.ts.map +1 -1
- package/lib/data/molecules/Molecule.js +18 -3
- package/lib/data/molecules/Molecule.js.map +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +5 -2
- package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.js +10 -7
- package/lib/data/molecules/MoleculeManager.js.map +1 -1
- package/lib/utils/clipboard/clipboardHooks.d.ts +3 -1
- package/lib/utils/clipboard/clipboardHooks.d.ts.map +1 -1
- package/lib/utils/clipboard/clipboardHooks.js +15 -9
- package/lib/utils/clipboard/clipboardHooks.js.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +48 -48
- package/src/component/1d/BrushTracker1D.tsx +5 -2
- package/src/component/1d/FloatPublicationString.tsx +39 -33
- package/src/component/1d/plugin_chart_brush_tracker.tsx +2 -0
- package/src/component/1d/plugin_svg_chart.tsx +20 -1
- package/src/component/1d/ranges/FloatingRanges.tsx +2 -2
- package/src/component/1d/ranges/Range.tsx +1 -2
- package/src/component/1d-2d/FieldEdition.tsx +14 -4
- package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +3 -3
- package/src/component/2d/1d-tracer/HorizontalSliceChart.tsx +6 -1
- package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +6 -1
- package/src/component/2d/BrushTracker2D.tsx +7 -1
- package/src/component/2d/SVGContent2D.tsx +2 -0
- package/src/component/2d/SignalDeltaLine.tsx +8 -2
- package/src/component/2d/linked-signals/LinkedSignal.tsx +68 -0
- package/src/component/2d/linked-signals/LinkedSignalAssignmentLabel.tsx +248 -0
- package/src/component/2d/linked-signals/LinkedSignals.tsx +56 -0
- package/src/component/2d/linked-signals/SignalCrossingIndicator.tsx +63 -0
- package/src/component/2d/linked-signals/useClassifyCorrelation.ts +24 -0
- package/src/component/2d/linked-signals/useNearestSignalCrossing.ts +68 -0
- package/src/component/2d/linked-signals/utilities/getCorrelationColor.ts +46 -0
- package/src/component/2d/linked-signals/utilities/getCouplingLength.ts +58 -0
- package/src/component/2d/linked-signals/utilities/signalCrossings.ts +167 -0
- package/src/component/2d/utilities/extractSpectrumSignals.ts +22 -0
- package/src/component/2d/utilities/useAssignmentLabelLinkPath.ts +138 -0
- package/src/component/2d/zones/SignalsGuideLines.tsx +9 -2
- package/src/component/2d/zones/Zone.tsx +58 -1
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +5 -198
- package/src/component/EventsTrackers/BrushTracker.tsx +135 -25
- package/src/component/EventsTrackers/KeysListenerTracker.tsx +6 -0
- package/src/component/EventsTrackers/brush_tracker.types.ts +43 -0
- package/src/component/EventsTrackers/brush_tracker_drag_gesture.ts +84 -0
- package/src/component/EventsTrackers/brush_tracker_events_listeners.ts +7 -1
- package/src/component/context/DispatchContext.tsx +2 -0
- package/src/component/context/processings_mutations_context.api.ts +6 -2
- package/src/component/elements/ActionsButtonsPopover.tsx +22 -3
- package/src/component/elements/export/ExportContent.tsx +1 -0
- package/src/component/elements/print/PrintContent.tsx +1 -0
- package/src/component/elements/tanstack_table/elements/table_row.tsx +5 -1
- package/src/component/elements/tanstack_table/table.tsx +2 -0
- package/src/component/elements/tanstack_table/types.ts +2 -0
- package/src/component/highlight/index.tsx +2 -0
- package/src/component/hooks/usePanelPreferences.ts +15 -5
- package/src/component/hooks/useToolsFunctions.ts +8 -4
- package/src/component/hooks/use_publication_strings.ts +19 -7
- package/src/component/modal/PredictSpectraModal.tsx +8 -2
- package/src/component/modal/PredictionLimitModal.tsx +88 -0
- package/src/component/modal/editRange/forms/validation/EditRangeValidation.ts +1 -1
- package/src/component/modal/setting/tanstack_general_settings/tabs/panels_tab.tsx +6 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/tools_tab.tsx +3 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts +1 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.ts +1 -0
- package/src/component/panels/IntegralsPanel/IntegralTable.tsx +2 -2
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +7 -5
- package/src/component/panels/MoleculesPanel/MoleculeStructure.tsx +14 -12
- package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +12 -2
- package/src/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.ts +57 -20
- package/src/component/panels/MoleculesPanel/hooks/useSignalAssignmentUpdates.ts +191 -0
- package/src/component/panels/MoleculesPanel/utilities/sortAssignmentLabels.ts +29 -0
- package/src/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.tsx +2 -2
- package/src/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.tsx +2 -2
- package/src/component/panels/SpectraPanel/SpectraPanelHeader.tsx +1 -1
- package/src/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.tsx +3 -3
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.tsx +57 -4
- package/src/component/panels/ZonesPanel/ZonesPanel.tsx +19 -8
- package/src/component/panels/accordionItems.tsx +7 -0
- package/src/component/panels/assignment-summary/AssignmentSummaryPanel.tsx +263 -0
- package/src/component/panels/assignment-summary/AssignmentsExportModal.tsx +249 -0
- package/src/component/panels/assignment-summary/MoleculeAssignmentTable.tsx +223 -0
- package/src/component/panels/assignment-summary/table-cells/AssignmentAtomCell.tsx +36 -0
- package/src/component/panels/assignment-summary/table-cells/AssignmentChemicalShiftCell.tsx +57 -0
- package/src/component/panels/assignment-summary/table-cells/AssignmentCorrelationCell.tsx +23 -0
- package/src/component/panels/assignment-summary/table-cells/AssignmentLabelCell.tsx +16 -0
- package/src/component/panels/assignment-summary/utilities/atomGroupsToAssignmentRows.ts +254 -0
- package/src/component/panels/assignment-summary/utilities/exportAssignments.ts +135 -0
- package/src/component/panels/assignment-summary/utilities/formatAssignmentACS.ts +35 -0
- package/src/component/panels/assignment-summary/utilities/formatAssignmentShifts.ts +26 -0
- package/src/component/panels/assignment-summary/utilities/getAssignedAtomCounts.ts +32 -0
- package/src/component/panels/assignment-summary/utilities/getAssignmentSignals.ts +55 -0
- package/src/component/panels/assignment-summary/utilities/getLinkedCorrelationsByExperiment.ts +175 -0
- package/src/component/panels/assignment-summary/utilities/getSignalsByNucleus.ts +60 -0
- package/src/component/panels/assignment-summary/utilities/types.ts +47 -0
- package/src/component/panels/extra/utilities/MultiplicityUtilities.ts +2 -2
- package/src/component/panels/filtersPanel/processings/operator_edit_banner.tsx +8 -1
- package/src/component/panels/filtersPanel/processings/processing_item.tsx +2 -1
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +6 -2
- package/src/component/reducer/Reducer.ts +23 -5
- package/src/component/reducer/actions/FiltersActions.ts +6 -2
- package/src/component/reducer/actions/LinkedSignalsActions.ts +128 -0
- package/src/component/reducer/actions/MoleculeActions.ts +139 -11
- package/src/component/reducer/actions/RangesActions.ts +3 -85
- package/src/component/reducer/actions/ToolsActions.ts +13 -0
- package/src/component/reducer/actions/ZonesActions.ts +95 -13
- package/src/component/reducer/helper/ZoomHistoryManager.ts +41 -1
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +7 -0
- package/src/component/toolbar/ToolTypes.ts +15 -0
- package/src/component/toolbar/nmr_toolbar.tsx +17 -21
- package/src/component/utility/core_slots/core_operator_chart_brush.commons.ts +99 -3
- package/src/component/utility/core_slots/core_operator_chart_svg.tsx +4 -0
- package/src/component/workspaces/assignment.ts +5 -3
- package/src/component/workspaces/basic.ts +7 -5
- package/src/component/workspaces/embedded.ts +1 -0
- package/src/component/workspaces/prediction.ts +1 -0
- package/src/component/workspaces/workspaceDefaultProperties.ts +2 -0
- package/src/data/PredictionManager.ts +11 -1
- package/src/data/constants/Multiplets.ts +2 -2
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +1 -0
- package/src/data/data2d/Spectrum2D/zones/detectZonesManual.ts +1 -1
- package/src/data/data2d/Spectrum2D/zones/getDetectionZones.ts +7 -8
- package/src/data/molecules/Molecule.ts +22 -6
- package/src/data/molecules/MoleculeManager.ts +11 -9
- package/src/utils/clipboard/clipboardHooks.ts +19 -16
- package/src/versionInfo.ts +1 -1
- package/lib/utils/clipboard/clipboard.d.ts +0 -15
- package/lib/utils/clipboard/clipboard.d.ts.map +0 -1
- package/lib/utils/clipboard/clipboard.js +0 -19
- package/lib/utils/clipboard/clipboard.js.map +0 -1
- package/src/utils/clipboard/clipboard.ts +0 -36
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Classes, DialogFooter, RadioCard } from '@blueprintjs/core';
|
|
3
|
+
import styled from '@emotion/styled';
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { FaCopy, FaDownload, FaFileExport } from 'react-icons/fa';
|
|
6
|
+
import { AppForm, Button, useForm } from 'react-science/ui';
|
|
7
|
+
import { ClipboardFallbackModal } from '../../../utils/clipboard/clipboardComponents.js';
|
|
8
|
+
import { useClipboard } from '../../../utils/clipboard/clipboardHooks.js';
|
|
9
|
+
import { useChartData } from '../../context/ChartContext.js';
|
|
10
|
+
import { usePreferences } from '../../context/PreferencesContext.js';
|
|
11
|
+
import { useToaster } from '../../context/ToasterContext.js';
|
|
12
|
+
import { useTopicMolecule } from '../../context/TopicMoleculeContext.js';
|
|
13
|
+
import { StandardDialog } from '../../elements/StandardDialog.js';
|
|
14
|
+
import { StyledDialogBody } from '../../elements/StyledDialogBody.js';
|
|
15
|
+
import { ToolbarPopoverItem } from '../../elements/ToolbarPopoverItem.js';
|
|
16
|
+
import { useDialogToggle } from '../../hooks/useDialogToggle.js';
|
|
17
|
+
import { useACSSettings } from '../../hooks/use_acs_settings.js';
|
|
18
|
+
import { saveAs } from '../../utility/save_as.js';
|
|
19
|
+
import { exportAssignments } from './utilities/exportAssignments.js';
|
|
20
|
+
const EXPORT_MENU = [
|
|
21
|
+
{ text: 'Copy as TSV', icon: _jsx(FaCopy, {}), data: 'copy' },
|
|
22
|
+
{ text: 'Export as CSV', icon: _jsx(FaDownload, {}), data: 'export' },
|
|
23
|
+
];
|
|
24
|
+
const ROW_OPTIONS = [
|
|
25
|
+
{
|
|
26
|
+
label: 'Current table view',
|
|
27
|
+
description: 'Keep the rows exactly as they are currently shown.',
|
|
28
|
+
value: 'current',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: 'Expanded view',
|
|
32
|
+
description: 'Show each hydrogen group on a separate row below its parent atom.',
|
|
33
|
+
value: 'expanded',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
label: 'Collapsed view',
|
|
37
|
+
description: 'Include hydrogen numbers and labels in parentheses on the parent row.',
|
|
38
|
+
value: 'collapsed',
|
|
39
|
+
},
|
|
40
|
+
];
|
|
41
|
+
const INITIAL_VALUES = { rows: 'current' };
|
|
42
|
+
export function AssignmentsExportModal(props) {
|
|
43
|
+
const { groups, expandedGroups, molecule } = props;
|
|
44
|
+
const { data } = useChartData();
|
|
45
|
+
const topicMolecules = useTopicMolecule();
|
|
46
|
+
const { current } = usePreferences();
|
|
47
|
+
const defaultACSOptions = useACSSettings(undefined);
|
|
48
|
+
const toaster = useToaster();
|
|
49
|
+
const [action, setAction] = useState('copy');
|
|
50
|
+
const { dialog, openDialog, closeDialog } = useDialogToggle({
|
|
51
|
+
exportAssignments: false,
|
|
52
|
+
});
|
|
53
|
+
const { rawWriteWithType, shouldFallback, cleanShouldFallback, text } = useClipboard();
|
|
54
|
+
const exportMenu = EXPORT_MENU.map((option) => ({
|
|
55
|
+
...option,
|
|
56
|
+
onClick: () => handleOpenDialog(option.data),
|
|
57
|
+
}));
|
|
58
|
+
function handleOpenDialog(exportAction) {
|
|
59
|
+
setAction(exportAction);
|
|
60
|
+
openDialog('exportAssignments');
|
|
61
|
+
}
|
|
62
|
+
async function handleExport(exportAction, rowMode) {
|
|
63
|
+
const isCopy = exportAction === 'copy';
|
|
64
|
+
try {
|
|
65
|
+
const topicMolecule = topicMolecules[molecule.id];
|
|
66
|
+
if (!topicMolecule) {
|
|
67
|
+
return toaster.show({
|
|
68
|
+
message: `Molecule "${molecule.label}" is not ready yet`,
|
|
69
|
+
intent: 'danger',
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
const delimitedText = exportAssignments({
|
|
73
|
+
groups,
|
|
74
|
+
topicMolecule,
|
|
75
|
+
spectra: data,
|
|
76
|
+
expandedGroups,
|
|
77
|
+
rowMode,
|
|
78
|
+
acsExportSettings: current.acsExportSettings,
|
|
79
|
+
defaultACSOptions,
|
|
80
|
+
delimiter: isCopy ? '\t' : ',',
|
|
81
|
+
});
|
|
82
|
+
if (isCopy) {
|
|
83
|
+
await rawWriteWithType(delimitedText, 'text/plain');
|
|
84
|
+
return closeDialog();
|
|
85
|
+
}
|
|
86
|
+
saveAs({
|
|
87
|
+
blob: new Blob([delimitedText], { type: 'text/csv;charset=utf-8' }),
|
|
88
|
+
name: `${molecule.label}-assignments`,
|
|
89
|
+
extension: '.csv',
|
|
90
|
+
});
|
|
91
|
+
closeDialog();
|
|
92
|
+
}
|
|
93
|
+
catch (error) {
|
|
94
|
+
toaster.show({
|
|
95
|
+
message: `Could not ${exportAction} assignments as ${isCopy ? 'TSV' : 'CSV'}: ${error instanceof Error ? error.message : String(error)}`,
|
|
96
|
+
intent: 'danger',
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return (_jsxs(_Fragment, { children: [_jsx(ToolbarPopoverItem, { id: "assignment-export", icon: _jsx(FaFileExport, {}), tooltip: "Export", options: exportMenu, disabled: groups.length === 0 }), dialog.exportAssignments && (_jsx(AssignmentsExportModalContent, { action: action, onClose: closeDialog, onSubmit: (rowMode) => handleExport(action, rowMode) })), _jsx(ClipboardFallbackModal, { mode: shouldFallback, onDismiss: cleanShouldFallback, text: text, label: "Assignments as TSV" })] }));
|
|
101
|
+
}
|
|
102
|
+
const ExportDialogBody = styled(StyledDialogBody) `
|
|
103
|
+
.${Classes.FORM_GROUP} > div {
|
|
104
|
+
width: 100%;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
padding: 20px;
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
gap: 16px;
|
|
111
|
+
`;
|
|
112
|
+
const Description = styled.p `
|
|
113
|
+
margin: 4px 0 0;
|
|
114
|
+
font-size: 12px;
|
|
115
|
+
line-height: 1.5;
|
|
116
|
+
`;
|
|
117
|
+
function AssignmentsExportModalContent(props) {
|
|
118
|
+
const { action, onClose, onSubmit } = props;
|
|
119
|
+
const isCopy = action === 'copy';
|
|
120
|
+
const actionLabel = isCopy ? 'Copy' : 'Export';
|
|
121
|
+
const formatLabel = isCopy ? 'TSV' : 'CSV';
|
|
122
|
+
const form = useForm({
|
|
123
|
+
defaultValues: INITIAL_VALUES,
|
|
124
|
+
onSubmit: ({ value }) => onSubmit(value.rows),
|
|
125
|
+
});
|
|
126
|
+
return (_jsx(StandardDialog, { isOpen: true, title: `${actionLabel} assignment table as ${formatLabel}`, icon: isCopy ? 'clipboard' : 'export', onClose: onClose, style: { width: 520 }, children: _jsxs(AppForm, { form: form, children: [_jsx(ExportDialogBody, { children: _jsx(form.AppField, { name: "rows", children: (field) => (_jsx(field.RadioGroup, { label: `${formatLabel} layout`, style: { display: 'grid', gap: 10 }, children: ROW_OPTIONS.map((option) => (_jsxs(RadioCard, { value: option.value, alignIndicator: "start", children: [_jsx("strong", { children: option.label }), _jsx(Description, { className: Classes.TEXT_MUTED, children: option.description })] }, option.value))) })) }) }), _jsx(DialogFooter, { actions: _jsxs(_Fragment, { children: [_jsx(Button, { variant: "outlined", onClick: onClose, children: "Cancel" }), _jsx(form.SubmitButton, { intent: "primary", icon: isCopy ? _jsx(FaCopy, {}) : _jsx(FaDownload, {}), children: `${isCopy ? 'Copy' : 'Download'} ${formatLabel}` })] }) })] }) }));
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=AssignmentsExportModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssignmentsExportModal.js","sourceRoot":"","sources":["../../../../src/component/panels/assignment-summary/AssignmentsExportModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,gBAAgB,EA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AG,EAAE,EAAE,EAAE,YAElC,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAC3B,MAAC,SAAS,IAER,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,cAAc,EAAC,OAAO,aAEtB,2BAAS,MAAM,CAAC,KAAK,GAAU,EAC/B,KAAC,WAAW,IAAC,SAAS,EAAE,OAAO,CAAC,UAAU,YACvC,MAAM,CAAC,WAAW,GACP,KAPT,MAAM,CAAC,KAAK,CAQP,CACb,CAAC,GACe,CACpB,GACa,GACC,EACnB,KAAC,YAAY,IACX,OAAO,EACL,8BACE,KAAC,MAAM,IAAC,OAAO,EAAC,UAAU,EAAC,OAAO,EAAE,OAAO,uBAElC,EACT,KAAC,IAAI,CAAC,YAAY,IAChB,MAAM,EAAC,SAAS,EAChB,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,KAAC,MAAM,KAAG,CAAC,CAAC,CAAC,KAAC,UAAU,KAAG,YAEzC,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,IAAI,WAAW,EAAE,GAC/B,IACnB,GAEL,IACM,GACK,CAClB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { GroupedDiaID } from 'openchemlib-utils';
|
|
2
|
+
interface MoleculeAssignmentTableProps {
|
|
3
|
+
groups: GroupedDiaID[];
|
|
4
|
+
moleculeId: string;
|
|
5
|
+
expandedGroups: Set<string>;
|
|
6
|
+
onToggleRow: (id: string) => void;
|
|
7
|
+
showAtomNumbers: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function MoleculeAssignmentTable(props: MoleculeAssignmentTableProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=MoleculeAssignmentTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoleculeAssignmentTable.d.ts","sourceRoot":"","sources":["../../../../src/component/panels/assignment-summary/MoleculeAssignmentTable.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AA6BtD,UAAU,4BAA4B;IACpC,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,eAAe,EAAE,OAAO,CAAC;CAC1B;AA0CD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,+BA+I1E"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Tag } from '@blueprintjs/core';
|
|
3
|
+
import styled from '@emotion/styled';
|
|
4
|
+
import { useMemo } from 'react';
|
|
5
|
+
import { useChartData } from '../../context/ChartContext.js';
|
|
6
|
+
import { useTopicMolecule } from '../../context/TopicMoleculeContext.js';
|
|
7
|
+
import IsotopesViewer from '../../elements/IsotopesViewer.js';
|
|
8
|
+
import { TanStackTable, createTanStackColumnHelper, } from '../../elements/tanstack_table/index.js';
|
|
9
|
+
import { AssignmentAtomCell } from './table-cells/AssignmentAtomCell.js';
|
|
10
|
+
import { AssignmentChemicalShiftCell } from './table-cells/AssignmentChemicalShiftCell.js';
|
|
11
|
+
import { AssignmentCorrelationCell } from './table-cells/AssignmentCorrelationCell.js';
|
|
12
|
+
import { AssignmentLabelCell } from './table-cells/AssignmentLabelCell.js';
|
|
13
|
+
import { atomGroupsToAssignmentRows, getHydrogenIDsByParent, getVisibleAssignmentRows, } from './utilities/atomGroupsToAssignmentRows.js';
|
|
14
|
+
import { getAssignedAtomCounts } from './utilities/getAssignedAtomCounts.js';
|
|
15
|
+
import { formatLinkedCorrelations, getLinkedCorrelationsByExperiment, } from './utilities/getLinkedCorrelationsByExperiment.js';
|
|
16
|
+
import { getSignalsByNucleus } from './utilities/getSignalsByNucleus.js';
|
|
17
|
+
const columnHelper = createTanStackColumnHelper();
|
|
18
|
+
const SpectrumHeader = styled.div `
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
gap: 5px;
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
`;
|
|
25
|
+
function SpectrumColumnHeader({ nucleus, groups, signalsByOclID, }) {
|
|
26
|
+
const counts = getAssignedAtomCounts(groups, signalsByOclID, nucleus);
|
|
27
|
+
const atomLabel = nucleus.replace(/^\d+/, '');
|
|
28
|
+
const tooltip = `${counts.assigned} of ${counts.total} ${atomLabel} atoms assigned.`;
|
|
29
|
+
// Green means every atom has an assignment link, not a verified assignment.
|
|
30
|
+
const isFullyAssigned = counts.total > 0 && counts.assigned === counts.total;
|
|
31
|
+
return (_jsxs(SpectrumHeader, { children: [_jsx(IsotopesViewer, { value: nucleus }), _jsxs(Tag, { minimal: true, intent: isFullyAssigned ? 'success' : 'danger', title: tooltip, children: [counts.assigned, "/", counts.total] })] }));
|
|
32
|
+
}
|
|
33
|
+
export function MoleculeAssignmentTable(props) {
|
|
34
|
+
const { groups, moleculeId, expandedGroups, onToggleRow, showAtomNumbers } = props;
|
|
35
|
+
const { data } = useChartData();
|
|
36
|
+
const topicMolecule = useTopicMolecule();
|
|
37
|
+
// Build once per data change.
|
|
38
|
+
// headers and cells share the same nucleus lookup.
|
|
39
|
+
const signalsByNucleus = useMemo(() => getSignalsByNucleus(data), [data]);
|
|
40
|
+
const linkedAssignmentsByExperiment = useMemo(() => topicMolecule?.[moleculeId]
|
|
41
|
+
? getLinkedCorrelationsByExperiment(data, topicMolecule[moleculeId])
|
|
42
|
+
: new Map(), [data, topicMolecule, moleculeId]);
|
|
43
|
+
// Keep the complete hierarchy for assignments.
|
|
44
|
+
// Expansion Only hides rows.
|
|
45
|
+
const allRows = useMemo(() => atomGroupsToAssignmentRows(groups, true), [groups]);
|
|
46
|
+
const hydrogenIDsByParent = useMemo(() => getHydrogenIDsByParent(allRows), [allRows]);
|
|
47
|
+
const rows = useMemo(() => getVisibleAssignmentRows(allRows, expandedGroups), [allRows, expandedGroups]);
|
|
48
|
+
const columns = useMemo(() => {
|
|
49
|
+
return columnHelper.columns([
|
|
50
|
+
{
|
|
51
|
+
header: 'Atom',
|
|
52
|
+
accessorKey: 'atomLabel',
|
|
53
|
+
meta: { style: { width: '50px' } },
|
|
54
|
+
enableSorting: false,
|
|
55
|
+
cell: ({ row }) => (_jsx(AssignmentAtomCell, { row: row.original, onToggle: onToggleRow })),
|
|
56
|
+
},
|
|
57
|
+
...(showAtomNumbers
|
|
58
|
+
? columnHelper.columns([
|
|
59
|
+
{
|
|
60
|
+
header: 'Atom numbers',
|
|
61
|
+
accessorKey: 'atomNumbers',
|
|
62
|
+
enableSorting: false,
|
|
63
|
+
cell: ({ row }) => (_jsx(AssignmentLabelCell, { value: row.original.atomNumbers, hydrogenValue: row.original.hydrogenAtomNumbers, isExpanded: row.original.isExpanded })),
|
|
64
|
+
},
|
|
65
|
+
])
|
|
66
|
+
: []),
|
|
67
|
+
{
|
|
68
|
+
header: 'Atom labels',
|
|
69
|
+
accessorKey: 'atomLabels',
|
|
70
|
+
enableSorting: false,
|
|
71
|
+
cell: ({ row }) => (_jsx(AssignmentLabelCell, { value: row.original.atomLabels, hydrogenValue: row.original.hydrogenAtomLabels, isExpanded: row.original.isExpanded })),
|
|
72
|
+
},
|
|
73
|
+
// One column per nucleus, combining assignments from all of its spectra.
|
|
74
|
+
...Array.from(signalsByNucleus).flatMap(([nucleus, signalsByOclID]) => columnHelper.columns([
|
|
75
|
+
{
|
|
76
|
+
header: () => (_jsx(SpectrumColumnHeader, { nucleus: nucleus, groups: groups, signalsByOclID: signalsByOclID })),
|
|
77
|
+
id: nucleus,
|
|
78
|
+
enableSorting: false,
|
|
79
|
+
cell: ({ row }) => (_jsx(AssignmentChemicalShiftCell, { options: {
|
|
80
|
+
row: row.original,
|
|
81
|
+
groups,
|
|
82
|
+
hydrogenIDsByParent,
|
|
83
|
+
signalsByOclID,
|
|
84
|
+
} })),
|
|
85
|
+
},
|
|
86
|
+
])),
|
|
87
|
+
...Array.from(linkedAssignmentsByExperiment).flatMap(([experiment, assignmentsByOclID]) => columnHelper.columns([
|
|
88
|
+
{
|
|
89
|
+
header: experiment,
|
|
90
|
+
id: experiment,
|
|
91
|
+
enableSorting: false,
|
|
92
|
+
cell: ({ row }) => (_jsx(AssignmentCorrelationCell, { assignments: formatLinkedCorrelations(row.original, assignmentsByOclID, hydrogenIDsByParent) })),
|
|
93
|
+
},
|
|
94
|
+
])),
|
|
95
|
+
]);
|
|
96
|
+
}, [
|
|
97
|
+
groups,
|
|
98
|
+
onToggleRow,
|
|
99
|
+
showAtomNumbers,
|
|
100
|
+
signalsByNucleus,
|
|
101
|
+
linkedAssignmentsByExperiment,
|
|
102
|
+
hydrogenIDsByParent,
|
|
103
|
+
]);
|
|
104
|
+
function getHighlightIDs(row) {
|
|
105
|
+
return [row.id, ...(hydrogenIDsByParent.get(row.id) ?? [])];
|
|
106
|
+
}
|
|
107
|
+
return (_jsx(TanStackTable, { data: rows, columns: columns, getHighlightIDs: getHighlightIDs, highlightedSource: "ASSIGNMENT_TABLE", style: { height: '100%' }, rowStyle: ({ original }) => ({
|
|
108
|
+
base: {
|
|
109
|
+
backgroundColor: !original.isHydrogen && original.isExpanded ? '#f2f2f2' : 'white',
|
|
110
|
+
},
|
|
111
|
+
}), emptyDataRowText: "No atom groups to display" }));
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=MoleculeAssignmentTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoleculeAssignmentTable.js","sourceRoot":"","sources":["../../../../src/component/panels/assignment-summary/MoleculeAssignmentTable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,MAAM,MAAM,iBAAiB,C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ACpB,CAAC,CAAC;IAEH,SAAS,eAAe,CAAC,GAAsB;QAC7C,OAAO,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED,OAAO,CACL,KAAC,aAAa,IACZ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAC,kBAAkB,EACpC,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EACzB,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC;YAC3B,IAAI,EAAE;gBACJ,eAAe,EACb,CAAC,QAAQ,CAAC,UAAU,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO;aACpE;SACF,CAAC,EACF,gBAAgB,EAAC,2BAA2B,GAC5C,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AssignmentListRow } from '../utilities/atomGroupsToAssignmentRows.js';
|
|
2
|
+
interface AssignmentAtomCellProps {
|
|
3
|
+
row: AssignmentListRow;
|
|
4
|
+
onToggle: (id: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function AssignmentAtomCell({ row, onToggle }: AssignmentAtomCellProps): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=AssignmentAtomCell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssignmentAtomCell.d.ts","sourceRoot":"","sources":["../../../../../src/component/panels/assignment-summary/table-cells/AssignmentAtomCell.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAEpF,UAAU,uBAAuB;IAC/B,GAAG,EAAE,iBAAiB,CAAC;IACvB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAOD,wBAAgB,kBAAkB,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,uBAAuB,+BAoB5E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from '@blueprintjs/core';
|
|
3
|
+
import styled from '@emotion/styled';
|
|
4
|
+
const AtomCellContainer = styled.span `
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
`;
|
|
8
|
+
export function AssignmentAtomCell({ row, onToggle }) {
|
|
9
|
+
return (_jsxs(AtomCellContainer, { children: [_jsx(Button, { variant: "minimal", size: "small", icon: row.isExpanded ? 'chevron-down' : 'chevron-right', style: {
|
|
10
|
+
visibility: row.hasChildren ? 'visible' : 'hidden',
|
|
11
|
+
}, onClick: (event) => {
|
|
12
|
+
event.stopPropagation();
|
|
13
|
+
onToggle(row.id);
|
|
14
|
+
} }), _jsx("span", { style: { paddingInlineStart: row.isHydrogen ? '0.5em' : 0 }, children: row.atomLabel })] }));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=AssignmentAtomCell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssignmentAtomCell.js","sourceRoot":"","sources":["../../../../../src/component/panels/assignment-summary/table-cells/AssignmentAtomCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AASrC,MAAM,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAA;;;CAGpC,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAAC,EAAE,GAAG,EAAE,QAAQ,EAA2B;IAC3E,OAAO,CACL,MAAC,iBAAiB,eAChB,KAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,OAAO,EACZ,IAAI,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,eAAe,EACvD,KAAK,EAAE;oBACL,UAAU,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;iBACnD,EACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;oBACjB,KAAK,CAAC,eAAe,EAAE,CAAC;oBACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBACnB,CAAC,GACD,EACF,eAAM,KAAK,EAAE,EAAE,kBAAkB,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,YAC9D,GAAG,CAAC,SAAS,GACT,IACW,CACrB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GetAssignmentSignalsOptions } from '../utilities/types.js';
|
|
2
|
+
interface AssignmentChemicalShiftCellProps {
|
|
3
|
+
options: GetAssignmentSignalsOptions;
|
|
4
|
+
}
|
|
5
|
+
export declare function AssignmentChemicalShiftCell(props: AssignmentChemicalShiftCellProps): import("react").JSX.Element[];
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=AssignmentChemicalShiftCell.d.ts.map
|
package/lib/component/panels/assignment-summary/table-cells/AssignmentChemicalShiftCell.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssignmentChemicalShiftCell.d.ts","sourceRoot":"","sources":["../../../../../src/component/panels/assignment-summary/table-cells/AssignmentChemicalShiftCell.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAEV,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AA2B/B,UAAU,gCAAgC;IACxC,OAAO,EAAE,2BAA2B,CAAC;CACtC;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,gCAAgC,iCAexC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment } from 'react';
|
|
3
|
+
import { useACSSettings } from '../../../hooks/use_acs_settings.js';
|
|
4
|
+
import { formatAssignmentACS } from '../utilities/formatAssignmentACS.js';
|
|
5
|
+
import { formatAssignmentShifts } from '../utilities/formatAssignmentShifts.js';
|
|
6
|
+
import { getAssignmentSignals } from '../utilities/getAssignmentSignals.js';
|
|
7
|
+
function AssignmentShift(options) {
|
|
8
|
+
const { assignment, shiftsOnly } = options;
|
|
9
|
+
const { spectrum } = assignment;
|
|
10
|
+
const acs = useACSSettings(spectrum.info.nucleus);
|
|
11
|
+
const value = shiftsOnly
|
|
12
|
+
? formatAssignmentShifts({ assignment, deltaFormat: acs.deltaFormat })
|
|
13
|
+
: formatAssignmentACS({ assignment, acs });
|
|
14
|
+
return (_jsx("span", { children: shiftsOnly ? (_jsxs("span", { children: [value, " ppm"] })) : (_jsx("span", { dangerouslySetInnerHTML: { __html: value } })) }));
|
|
15
|
+
}
|
|
16
|
+
export function AssignmentChemicalShiftCell(props) {
|
|
17
|
+
const { options } = props;
|
|
18
|
+
const assignments = getAssignmentSignals(options);
|
|
19
|
+
// Separate spectra's values with commas while retaining per-spectrum formatting.
|
|
20
|
+
return assignments.map((assignment, index) => (_jsxs(Fragment, { children: [index > 0 && ', ', _jsx(AssignmentShift, { assignment: assignment, shiftsOnly: options.row.isHydrogen })] }, assignment.spectrum.id)));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=AssignmentChemicalShiftCell.js.map
|
package/lib/component/panels/assignment-summary/table-cells/AssignmentChemicalShiftCell.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssignmentChemicalShiftCell.js","sourceRoot":"","sources":["../../../../../src/component/panels/assignment-summary/table-cells/AssignmentChemicalShiftCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EA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AClC,KALW,UAAU,CAAC,QAAQ,CAAC,EAAE,CAM1B,CACZ,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { LinkedAssignment } from '../utilities/getLinkedCorrelationsByExperiment.js';
|
|
2
|
+
interface AssignmentCorrelationCellProps {
|
|
3
|
+
assignments: LinkedAssignment[];
|
|
4
|
+
}
|
|
5
|
+
export declare function AssignmentCorrelationCell({ assignments, }: AssignmentCorrelationCellProps): import("react").JSX.Element[];
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=AssignmentCorrelationCell.d.ts.map
|
package/lib/component/panels/assignment-summary/table-cells/AssignmentCorrelationCell.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssignmentCorrelationCell.d.ts","sourceRoot":"","sources":["../../../../../src/component/panels/assignment-summary/table-cells/AssignmentCorrelationCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAE1F,UAAU,8BAA8B;IACtC,WAAW,EAAE,gBAAgB,EAAE,CAAC;CACjC;AAED,wBAAgB,yBAAyB,CAAC,EACxC,WAAW,GACZ,EAAE,8BAA8B,iCAchC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export function AssignmentCorrelationCell({ assignments, }) {
|
|
3
|
+
return assignments.map((assignment, index) => (_jsxs("span", { children: [index > 0 && ', ', assignment.coupling ? (_jsxs(_Fragment, { children: [_jsx("sup", { children: assignment.coupling.distance }), "J", _jsx("sub", { children: assignment.coupling.labels })] })) : (assignment.text)] }, assignment.text)));
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=AssignmentCorrelationCell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssignmentCorrelationCell.js","sourceRoot":"","sources":["../../../../../src/component/panels/assignment-summary/table-cells/AssignmentCorrelationCell.tsx"],"names":[],"mappings":";AAMA,MAAM,UAAU,yBAAyB,CAAC,EACxC,WAAW,GACoB;IAC/B,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,2BACG,KAAK,GAAG,CAAC,IAAI,IAAI,EACjB,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CACrB,8BACE,wBAAM,UAAU,CAAC,QAAQ,CAAC,QAAQ,GAAO,OACzC,wBAAM,UAAU,CAAC,QAAQ,CAAC,MAAM,GAAO,IACtC,CACJ,CAAC,CAAC,CAAC,CACF,UAAU,CAAC,IAAI,CAChB,KATQ,UAAU,CAAC,IAAI,CAUnB,CACR,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface AssignmentLabelCellProps {
|
|
2
|
+
value: string;
|
|
3
|
+
hydrogenValue: string;
|
|
4
|
+
isExpanded: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function AssignmentLabelCell(props: AssignmentLabelCellProps): string;
|
|
7
|
+
export declare function formatAssignmentLabel(options: AssignmentLabelCellProps): string;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=AssignmentLabelCell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssignmentLabelCell.d.ts","sourceRoot":"","sources":["../../../../../src/component/panels/assignment-summary/table-cells/AssignmentLabelCell.tsx"],"names":[],"mappings":"AAAA,UAAU,wBAAwB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,UAElE;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,wBAAwB,UAKtE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function AssignmentLabelCell(props) {
|
|
2
|
+
return formatAssignmentLabel(props);
|
|
3
|
+
}
|
|
4
|
+
export function formatAssignmentLabel(options) {
|
|
5
|
+
const { value, hydrogenValue, isExpanded } = options;
|
|
6
|
+
if (isExpanded || !hydrogenValue)
|
|
7
|
+
return value;
|
|
8
|
+
return value ? `${value} (${hydrogenValue})` : `(${hydrogenValue})`;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=AssignmentLabelCell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssignmentLabelCell.js","sourceRoot":"","sources":["../../../../../src/component/panels/assignment-summary/table-cells/AssignmentLabelCell.tsx"],"names":[],"mappings":"AAMA,MAAM,UAAU,mBAAmB,CAAC,KAA+B;IACjE,OAAO,qBAAqB,CAAC,KAAK,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,OAAiC;IACrE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IACrD,IAAI,UAAU,IAAI,CAAC,aAAa;QAAE,OAAO,KAAK,CAAC;IAE/C,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,KAAK,aAAa,GAAG,CAAC,CAAC,CAAC,IAAI,aAAa,GAAG,CAAC;AACtE,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { GroupedDiaID } from 'openchemlib-utils';
|
|
2
|
+
/**
|
|
3
|
+
* Controls which atoms show their attached hydrogens in the table.
|
|
4
|
+
* - `true`: show hydrogens beneath every atom group.
|
|
5
|
+
* - `false`: hide all hydrogen rows.
|
|
6
|
+
* - A set of group IDs: show hydrogens only beneath the selected groups.
|
|
7
|
+
* Hydrogens without a matching parent remain visible unless this is `false`.
|
|
8
|
+
*/
|
|
9
|
+
export type AssignmentExpansion = boolean | Set<string>;
|
|
10
|
+
export interface AssignmentListRow {
|
|
11
|
+
/**
|
|
12
|
+
* The atom group's oclID, used to look up signal assignments.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
parentOclId?: string;
|
|
16
|
+
atomLabel: string;
|
|
17
|
+
atomNumbers: string;
|
|
18
|
+
atomLabels: string;
|
|
19
|
+
hydrogenAtomNumbers: string;
|
|
20
|
+
hydrogenAtomLabels: string;
|
|
21
|
+
isHydrogen: boolean;
|
|
22
|
+
hasChildren: boolean;
|
|
23
|
+
isExpanded: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Select visible rows from the complete hierarchy and update expansion flags.
|
|
27
|
+
* Rows with no parent or whose parent is expanded remain visible.
|
|
28
|
+
*/
|
|
29
|
+
export declare function getVisibleAssignmentRows(allRows: AssignmentListRow[], expandedGroups: Set<string>): AssignmentListRow[];
|
|
30
|
+
export declare function getHydrogenIDsByParent(rows: AssignmentListRow[]): Map<string, string[]>;
|
|
31
|
+
/**
|
|
32
|
+
* Prepare the rows shown in the assignment list.
|
|
33
|
+
*
|
|
34
|
+
* Input comes from `TopicMolecule.getGroupedDiastereotopicAtomIDs()`.
|
|
35
|
+
* Each group describes equivalent atoms that belong in the same table row:
|
|
36
|
+
* - `oclID`: the group's identifier.
|
|
37
|
+
* - `atomLabel`: the element symbol, such as C or H.
|
|
38
|
+
* - `atoms`: the atom numbers in this group, starting at zero.
|
|
39
|
+
* - `customLabels`: custom names assigned to these atoms, such as "3a".
|
|
40
|
+
* - `heavyAtoms`: for hydrogens, the numbers of the atoms they are attached to.
|
|
41
|
+
*
|
|
42
|
+
* The table lists each heavy-atom group, followed by its hydrogen groups when
|
|
43
|
+
* expanded. Parents retain their attached hydrogen values for collapsed cells.
|
|
44
|
+
* for example:
|
|
45
|
+
* Input: carbon c1 contains atom 0, carbon c2 contains atom 1, and hydrogen group h1 contains atoms 2, 3, 4 attached to atom 0.
|
|
46
|
+
* atomGroupsToAssignmentRows(groups, new Set(['c1']));
|
|
47
|
+
* Output table:
|
|
48
|
+
* Atom | Atom numbers
|
|
49
|
+
* C | 0
|
|
50
|
+
* H | 2,3,4
|
|
51
|
+
* C | 1
|
|
52
|
+
*/
|
|
53
|
+
export declare function atomGroupsToAssignmentRows(groups: GroupedDiaID[], expansion: AssignmentExpansion): AssignmentListRow[];
|
|
54
|
+
//# sourceMappingURL=atomGroupsToAssignmentRows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"atomGroupsToAssignmentRows.d.ts","sourceRoot":"","sources":["../../../../../src/component/panels/assignment-summary/utilities/atomGroupsToAssignmentRows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;AAExD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;CACrB;AAWD;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,iBAAiB,EAAE,EAC5B,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,GAC1B,iBAAiB,EAAE,CAarB;AAED,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,iBAAiB,EAAE,GACxB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAYvB;AA4GD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,YAAY,EAAE,EACtB,SAAS,EAAE,mBAAmB,GAC7B,iBAAiB,EAAE,CA8CrB"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { sortAssignmentLabels } from '../../MoleculesPanel/utilities/sortAssignmentLabels.js';
|
|
2
|
+
/**
|
|
3
|
+
* Select visible rows from the complete hierarchy and update expansion flags.
|
|
4
|
+
* Rows with no parent or whose parent is expanded remain visible.
|
|
5
|
+
*/
|
|
6
|
+
export function getVisibleAssignmentRows(allRows, expandedGroups) {
|
|
7
|
+
const rows = [];
|
|
8
|
+
for (const row of allRows) {
|
|
9
|
+
if (row.parentOclId !== undefined && !expandedGroups.has(row.parentOclId)) {
|
|
10
|
+
continue;
|
|
11
|
+
}
|
|
12
|
+
rows.push(row.hasChildren
|
|
13
|
+
? { ...row, isExpanded: expandedGroups.has(row.id) }
|
|
14
|
+
: row);
|
|
15
|
+
}
|
|
16
|
+
return rows;
|
|
17
|
+
}
|
|
18
|
+
export function getHydrogenIDsByParent(rows) {
|
|
19
|
+
const hydrogenIDsByParent = new Map();
|
|
20
|
+
for (const row of rows) {
|
|
21
|
+
if (row.parentOclId === undefined)
|
|
22
|
+
continue;
|
|
23
|
+
const hydrogenIDs = hydrogenIDsByParent.get(row.parentOclId);
|
|
24
|
+
if (hydrogenIDs) {
|
|
25
|
+
hydrogenIDs.push(row.id);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
hydrogenIDsByParent.set(row.parentOclId, [row.id]);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return hydrogenIDsByParent;
|
|
32
|
+
}
|
|
33
|
+
function isHydrogenGroup(group) {
|
|
34
|
+
return group.atomLabel === 'H';
|
|
35
|
+
}
|
|
36
|
+
function compareByFirstAtomIndex(a, b) {
|
|
37
|
+
// Keep groups in molecule order using the first atom number in each group.
|
|
38
|
+
return a.atoms[0] - b.atoms[0];
|
|
39
|
+
}
|
|
40
|
+
function compareNumbers(a, b) {
|
|
41
|
+
return a - b;
|
|
42
|
+
}
|
|
43
|
+
function isGroupExpanded(expansion, parentOclId) {
|
|
44
|
+
return typeof expansion === 'boolean'
|
|
45
|
+
? expansion
|
|
46
|
+
: expansion.has(parentOclId);
|
|
47
|
+
}
|
|
48
|
+
function toAssignmentRow(group, options = {}) {
|
|
49
|
+
const { parentOclId, hasChildren = false, isExpanded = false } = options;
|
|
50
|
+
return {
|
|
51
|
+
id: group.oclID,
|
|
52
|
+
parentOclId,
|
|
53
|
+
atomLabel: group.atomLabel,
|
|
54
|
+
atomNumbers: group.atoms.toSorted(compareNumbers).join(','),
|
|
55
|
+
atomLabels: sortAssignmentLabels(group.customLabels).join(','),
|
|
56
|
+
// The molecule already provides attached H values; keep them separate from the parent's.
|
|
57
|
+
hydrogenAtomNumbers: group.attachedHydrogens
|
|
58
|
+
.toSorted(compareNumbers)
|
|
59
|
+
.join(','),
|
|
60
|
+
hydrogenAtomLabels: sortAssignmentLabels(group.attachedHydrogensCustomLabels).join(','),
|
|
61
|
+
isHydrogen: isHydrogenGroup(group),
|
|
62
|
+
hasChildren,
|
|
63
|
+
isExpanded,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Find which atom group each hydrogen group belongs beneath.
|
|
68
|
+
* A "heavy atom" means any atom other than hydrogen.
|
|
69
|
+
*
|
|
70
|
+
* Use the molecule's atom numbers to find attachments.
|
|
71
|
+
* First record the group containing each heavy atom, then use that record to place the hydrogens without repeated searches.
|
|
72
|
+
* Each heavy atom is expected to belong to only one group.
|
|
73
|
+
*/
|
|
74
|
+
function partitionHydrogenGroups(heavyAtomGroups, hydrogenGroups) {
|
|
75
|
+
const heavyGroupByAtomIndex = new Map();
|
|
76
|
+
for (const heavyGroup of heavyAtomGroups) {
|
|
77
|
+
for (const atomIndex of heavyGroup.atoms) {
|
|
78
|
+
heavyGroupByAtomIndex.set(atomIndex, heavyGroup);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
const hydrogensByParentOclId = new Map();
|
|
82
|
+
const unattachedHydrogens = [];
|
|
83
|
+
for (const hydrogenGroup of hydrogenGroups) {
|
|
84
|
+
// Several attached atoms may share one group; show its hydrogen row only once.
|
|
85
|
+
const parentGroups = new Set();
|
|
86
|
+
for (const heavyAtomIndex of hydrogenGroup.heavyAtoms) {
|
|
87
|
+
const parentGroup = heavyGroupByAtomIndex.get(heavyAtomIndex);
|
|
88
|
+
if (parentGroup)
|
|
89
|
+
parentGroups.add(parentGroup);
|
|
90
|
+
}
|
|
91
|
+
if (parentGroups.size === 0) {
|
|
92
|
+
unattachedHydrogens.push(hydrogenGroup);
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
for (const parentGroup of parentGroups) {
|
|
96
|
+
const siblings = hydrogensByParentOclId.get(parentGroup.oclID);
|
|
97
|
+
if (siblings) {
|
|
98
|
+
siblings.push(hydrogenGroup);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
hydrogensByParentOclId.set(parentGroup.oclID, [hydrogenGroup]);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return { hydrogensByParentOclId, unattachedHydrogens };
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Prepare the rows shown in the assignment list.
|
|
109
|
+
*
|
|
110
|
+
* Input comes from `TopicMolecule.getGroupedDiastereotopicAtomIDs()`.
|
|
111
|
+
* Each group describes equivalent atoms that belong in the same table row:
|
|
112
|
+
* - `oclID`: the group's identifier.
|
|
113
|
+
* - `atomLabel`: the element symbol, such as C or H.
|
|
114
|
+
* - `atoms`: the atom numbers in this group, starting at zero.
|
|
115
|
+
* - `customLabels`: custom names assigned to these atoms, such as "3a".
|
|
116
|
+
* - `heavyAtoms`: for hydrogens, the numbers of the atoms they are attached to.
|
|
117
|
+
*
|
|
118
|
+
* The table lists each heavy-atom group, followed by its hydrogen groups when
|
|
119
|
+
* expanded. Parents retain their attached hydrogen values for collapsed cells.
|
|
120
|
+
* for example:
|
|
121
|
+
* Input: carbon c1 contains atom 0, carbon c2 contains atom 1, and hydrogen group h1 contains atoms 2, 3, 4 attached to atom 0.
|
|
122
|
+
* atomGroupsToAssignmentRows(groups, new Set(['c1']));
|
|
123
|
+
* Output table:
|
|
124
|
+
* Atom | Atom numbers
|
|
125
|
+
* C | 0
|
|
126
|
+
* H | 2,3,4
|
|
127
|
+
* C | 1
|
|
128
|
+
*/
|
|
129
|
+
export function atomGroupsToAssignmentRows(groups, expansion) {
|
|
130
|
+
// 1. Put groups in molecule order and separate hydrogens from other atoms.
|
|
131
|
+
const sortedGroups = groups.toSorted(compareByFirstAtomIndex);
|
|
132
|
+
const heavyAtomGroups = sortedGroups.filter((group) => !isHydrogenGroup(group));
|
|
133
|
+
const hydrogenGroups = sortedGroups.filter(isHydrogenGroup);
|
|
134
|
+
// 2. Find the parent groups for the hydrogens.
|
|
135
|
+
const { hydrogensByParentOclId, unattachedHydrogens } = partitionHydrogenGroups(heavyAtomGroups, hydrogenGroups);
|
|
136
|
+
const rows = [];
|
|
137
|
+
// 3. Add each parent, followed by its hydrogens if the row is expanded.
|
|
138
|
+
for (const parentGroup of heavyAtomGroups) {
|
|
139
|
+
const childHydrogens = hydrogensByParentOclId.get(parentGroup.oclID) ?? [];
|
|
140
|
+
const hasChildren = childHydrogens.length > 0;
|
|
141
|
+
const isExpanded = hasChildren && isGroupExpanded(expansion, parentGroup.oclID);
|
|
142
|
+
rows.push(toAssignmentRow(parentGroup, {
|
|
143
|
+
hasChildren,
|
|
144
|
+
isExpanded,
|
|
145
|
+
}));
|
|
146
|
+
if (isExpanded) {
|
|
147
|
+
for (const hydrogenGroup of childHydrogens) {
|
|
148
|
+
rows.push(toAssignmentRow(hydrogenGroup, { parentOclId: parentGroup.oclID }));
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
// Currently this case is not exits but it is a fallback for any unattached hydrogens.
|
|
153
|
+
// 4. Keep unmatched hydrogens at the end so they are not lost from the list.
|
|
154
|
+
if (expansion !== false) {
|
|
155
|
+
for (const hydrogenGroup of unattachedHydrogens) {
|
|
156
|
+
rows.push(toAssignmentRow(hydrogenGroup));
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return rows;
|
|
160
|
+
}
|
|
161
|
+
//# sourceMappingURL=atomGroupsToAssignmentRows.js.map
|