nmrium 2.1.0 → 2.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/ApodizationLine.d.ts +1 -1
- package/lib/component/1d/ApodizationLine.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.d.ts +1 -1
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +12 -7
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/ExclusionZoneAnnotation.d.ts +1 -1
- package/lib/component/1d/ExclusionZoneAnnotation.d.ts.map +1 -1
- package/lib/component/1d/ExclusionZonesAnnotations.d.ts +1 -1
- package/lib/component/1d/ExclusionZonesAnnotations.d.ts.map +1 -1
- package/lib/component/1d/FloatPublicationString.d.ts +1 -1
- package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
- package/lib/component/1d/FloatingRanges.d.ts +1 -1
- package/lib/component/1d/FloatingRanges.d.ts.map +1 -1
- package/lib/component/1d/FooterBanner.d.ts +1 -1
- package/lib/component/1d/FooterBanner.d.ts.map +1 -1
- package/lib/component/1d/FooterBanner.js +12 -2
- package/lib/component/1d/FooterBanner.js.map +1 -1
- package/lib/component/1d/HorizontalAxis1D.d.ts +1 -1
- package/lib/component/1d/HorizontalAxis1D.d.ts.map +1 -1
- package/lib/component/1d/Line.d.ts +1 -1
- package/lib/component/1d/Line.d.ts.map +1 -1
- package/lib/component/1d/LinesSeries.d.ts +1 -1
- package/lib/component/1d/LinesSeries.d.ts.map +1 -1
- package/lib/component/1d/LinesSeries.js +2 -1
- package/lib/component/1d/LinesSeries.js.map +1 -1
- package/lib/component/1d/PredictionErrorsNotations.d.ts +1 -1
- package/lib/component/1d/PredictionErrorsNotations.d.ts.map +1 -1
- package/lib/component/1d/SVGContent1D.d.ts +1 -1
- package/lib/component/1d/SVGContent1D.d.ts.map +1 -1
- package/lib/component/1d/SimilarityTree.d.ts +1 -1
- package/lib/component/1d/SimilarityTree.d.ts.map +1 -1
- package/lib/component/1d/SpectraLegends.d.ts +1 -1
- package/lib/component/1d/SpectraLegends.d.ts.map +1 -1
- package/lib/component/1d/SpectraLegends.js +9 -1
- package/lib/component/1d/SpectraLegends.js.map +1 -1
- package/lib/component/1d/SpectrumLabel.d.ts +6 -0
- package/lib/component/1d/SpectrumLabel.d.ts.map +1 -0
- package/lib/component/1d/SpectrumLabel.js +31 -0
- package/lib/component/1d/SpectrumLabel.js.map +1 -0
- package/lib/component/1d/Viewer1D.d.ts +1 -1
- package/lib/component/1d/Viewer1D.d.ts.map +1 -1
- package/lib/component/1d/baseline/BaselinePreview.d.ts +1 -1
- package/lib/component/1d/baseline/BaselinePreview.d.ts.map +1 -1
- package/lib/component/1d/database/DatabaseElements.d.ts +1 -1
- package/lib/component/1d/database/DatabaseElements.d.ts.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.d.ts +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.d.ts.map +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.d.ts +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.d.ts.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/InsetProvider.d.ts +1 -1
- package/lib/component/1d/inset/InsetProvider.d.ts.map +1 -1
- package/lib/component/1d/inset/InsetViewerRoot.d.ts +1 -1
- package/lib/component/1d/inset/InsetViewerRoot.d.ts.map +1 -1
- package/lib/component/1d/inset/SpectraInsets.d.ts +1 -1
- package/lib/component/1d/inset/SpectraInsets.d.ts.map +1 -1
- package/lib/component/1d/integral/IntegralIndicator.d.ts +1 -1
- package/lib/component/1d/integral/IntegralIndicator.d.ts.map +1 -1
- package/lib/component/1d/integral/IntegralResizable.d.ts +1 -1
- package/lib/component/1d/integral/IntegralResizable.d.ts.map +1 -1
- package/lib/component/1d/integral/IntegralsSeries.d.ts +1 -1
- package/lib/component/1d/integral/IntegralsSeries.d.ts.map +1 -1
- package/lib/component/1d/integral/Integration.d.ts +1 -1
- package/lib/component/1d/integral/Integration.d.ts.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraph.d.ts +1 -1
- package/lib/component/1d/jCouplingGraph/JGraph.d.ts.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.d.ts +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.d.ts.map +1 -1
- package/lib/component/1d/jCouplingGraph/JsCoupling.d.ts +1 -1
- package/lib/component/1d/jCouplingGraph/JsCoupling.d.ts.map +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.d.ts +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.d.ts.map +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts.map +1 -1
- package/lib/component/1d/matrix/Boxplot.d.ts +1 -1
- package/lib/component/1d/matrix/Boxplot.d.ts.map +1 -1
- package/lib/component/1d/matrix/Stocsy.d.ts +1 -1
- package/lib/component/1d/matrix/Stocsy.d.ts.map +1 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.d.ts +1 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.d.ts.map +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.d.ts +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.d.ts.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTrees.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTrees.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.d.ts +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.d.ts +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.d.ts +2 -2
- package/lib/component/1d/peaks/PeakEditionManager.d.ts.map +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeaksShapes.d.ts +1 -1
- package/lib/component/1d/peaks/PeaksShapes.d.ts.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js +2 -2
- package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
- package/lib/component/1d/ranges/Atoms.d.ts +1 -1
- package/lib/component/1d/ranges/Atoms.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts +1 -1
- package/lib/component/1d/ranges/Range.d.ts.map +1 -1
- package/lib/component/1d/ranges/Ranges.d.ts +1 -1
- package/lib/component/1d/ranges/Ranges.d.ts.map +1 -1
- package/lib/component/1d/ranges/RangesIntegrals.d.ts +1 -1
- package/lib/component/1d/ranges/RangesIntegrals.d.ts.map +1 -1
- package/lib/component/1d/tool/BaseLine.d.ts +1 -1
- package/lib/component/1d/tool/BaseLine.d.ts.map +1 -1
- package/lib/component/1d/tool/PeakPointer.d.ts +1 -1
- package/lib/component/1d/tool/PeakPointer.d.ts.map +1 -1
- package/lib/component/1d/tool/PivotIndicator1D.d.ts +1 -1
- package/lib/component/1d/tool/PivotIndicator1D.d.ts.map +1 -1
- package/lib/component/1d/tool/XLabelPointer.d.ts +1 -1
- package/lib/component/1d/tool/XLabelPointer.d.ts.map +1 -1
- package/lib/component/1d-2d/FieldEdition.d.ts +1 -1
- package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
- package/lib/component/1d-2d/components/ClipPathContainer.d.ts +1 -1
- package/lib/component/1d-2d/components/ClipPathContainer.d.ts.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.d.ts +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SVGRootContainer.d.ts +1 -1
- package/lib/component/1d-2d/components/SVGRootContainer.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js +2 -4
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
- package/lib/component/1d-2d/components/axis_unit_picker.d.ts +1 -1
- package/lib/component/1d-2d/components/axis_unit_picker.d.ts.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/CrossLinePointer.d.ts +1 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/HorizontalSliceChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/HorizontalSliceChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/PhaseTraceWithMouse.d.ts +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/PhaseTraceWithMouse.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/PhaseTraces.d.ts +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/PhaseTraces.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.d.ts +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.d.ts +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.d.ts +1 -1
- package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
- package/lib/component/2d/DirectAxis2D.d.ts +1 -1
- package/lib/component/2d/DirectAxis2D.d.ts.map +1 -1
- package/lib/component/2d/FooterBanner.d.ts +1 -1
- package/lib/component/2d/FooterBanner.d.ts.map +1 -1
- package/lib/component/2d/IndirectAxis2D.d.ts +1 -1
- package/lib/component/2d/IndirectAxis2D.d.ts.map +1 -1
- package/lib/component/2d/SVGContent2D.d.ts +1 -1
- package/lib/component/2d/SVGContent2D.d.ts.map +1 -1
- package/lib/component/2d/SignalDeltaLine.d.ts +1 -1
- package/lib/component/2d/SignalDeltaLine.d.ts.map +1 -1
- package/lib/component/2d/SlicingView.d.ts +1 -1
- package/lib/component/2d/SlicingView.d.ts.map +1 -1
- package/lib/component/2d/Viewer2D.d.ts +1 -1
- package/lib/component/2d/Viewer2D.d.ts.map +1 -1
- package/lib/component/2d/fid/FidCanvas.d.ts +1 -1
- package/lib/component/2d/fid/FidCanvas.d.ts.map +1 -1
- package/lib/component/2d/fid/FidContainer.d.ts +1 -1
- package/lib/component/2d/fid/FidContainer.d.ts.map +1 -1
- package/lib/component/2d/ft/Contours.d.ts +1 -1
- package/lib/component/2d/ft/Contours.d.ts.map +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
- package/lib/component/2d/tools/PivotIndicator.d.ts +1 -1
- package/lib/component/2d/tools/PivotIndicator.d.ts.map +1 -1
- package/lib/component/2d/tools/XYLabelPointer.d.ts +1 -1
- package/lib/component/2d/tools/XYLabelPointer.d.ts.map +1 -1
- package/lib/component/2d/zones/Signal.d.ts +1 -1
- package/lib/component/2d/zones/Signal.d.ts.map +1 -1
- package/lib/component/2d/zones/SignalCrosshair.d.ts +1 -1
- package/lib/component/2d/zones/SignalCrosshair.d.ts.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.d.ts +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -1
- package/lib/component/2d/zones/Zone.d.ts +1 -1
- package/lib/component/2d/zones/Zone.d.ts.map +1 -1
- package/lib/component/2d/zones/Zones.d.ts +1 -1
- package/lib/component/2d/zones/Zones.d.ts.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts.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/MouseTracker.d.ts +1 -1
- package/lib/component/EventsTrackers/MouseTracker.d.ts.map +1 -1
- package/lib/component/SVGTable.d.ts +1 -1
- package/lib/component/SVGTable.d.ts.map +1 -1
- package/lib/component/assignment/AssignmentProvider.d.ts +1 -1
- package/lib/component/assignment/AssignmentProvider.d.ts.map +1 -1
- package/lib/component/context/FilterSyncOptionsContext.d.ts +1 -1
- package/lib/component/context/FilterSyncOptionsContext.d.ts.map +1 -1
- package/lib/component/context/KeyModifierContext.d.ts +1 -1
- package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
- package/lib/component/context/LoggerContext.d.ts +1 -1
- package/lib/component/context/LoggerContext.d.ts.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/ShareDataContext.d.ts +1 -1
- package/lib/component/context/ShareDataContext.d.ts.map +1 -1
- package/lib/component/context/SortSpectraContext.d.ts +1 -1
- package/lib/component/context/SortSpectraContext.d.ts.map +1 -1
- package/lib/component/context/ToasterContext.d.ts +1 -1
- package/lib/component/context/ToasterContext.d.ts.map +1 -1
- package/lib/component/context/TopicMoleculeContext.d.ts +1 -1
- package/lib/component/context/TopicMoleculeContext.d.ts.map +1 -1
- package/lib/component/elements/ActionButtons.d.ts +1 -1
- package/lib/component/elements/ActionButtons.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.d.ts +1 -1
- package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
- package/lib/component/elements/Alert.d.ts +1 -1
- package/lib/component/elements/Alert.d.ts.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/AssignmentsCell.d.ts +1 -1
- package/lib/component/elements/AssignmentsCell.d.ts.map +1 -1
- package/lib/component/elements/Button.js +2 -2
- package/lib/component/elements/CheckController.d.ts +1 -1
- package/lib/component/elements/CheckController.d.ts.map +1 -1
- package/lib/component/elements/CloseButton.d.ts +1 -1
- package/lib/component/elements/CloseButton.d.ts.map +1 -1
- package/lib/component/elements/CloseButton.js +2 -2
- package/lib/component/elements/CloseButton.js.map +1 -1
- package/lib/component/elements/ColorDot.d.ts +4 -0
- package/lib/component/elements/ColorDot.d.ts.map +1 -0
- package/lib/component/elements/ColorDot.js +32 -0
- package/lib/component/elements/ColorDot.js.map +1 -0
- package/lib/component/elements/ColorPickerDropdownController.d.ts +1 -1
- package/lib/component/elements/ColorPickerDropdownController.d.ts.map +1 -1
- package/lib/component/elements/ColumnWrapper.d.ts +1 -1
- package/lib/component/elements/ColumnWrapper.d.ts.map +1 -1
- package/lib/component/elements/ContextMenuBluePrint.d.ts +1 -1
- package/lib/component/elements/ContextMenuBluePrint.d.ts.map +1 -1
- package/lib/component/elements/DialogManager.d.ts +2 -2
- package/lib/component/elements/DialogManager.d.ts.map +1 -1
- package/lib/component/elements/DraggableDialog.d.ts +1 -1
- package/lib/component/elements/DraggableDialog.d.ts.map +1 -1
- package/lib/component/elements/EmptyText.d.ts +1 -1
- package/lib/component/elements/EmptyText.d.ts.map +1 -1
- package/lib/component/elements/Footer.d.ts +1 -1
- package/lib/component/elements/Footer.d.ts.map +1 -1
- package/lib/component/elements/Footer.js +1 -0
- package/lib/component/elements/Footer.js.map +1 -1
- package/lib/component/elements/FormatField.d.ts +1 -1
- package/lib/component/elements/FormatField.d.ts.map +1 -1
- package/lib/component/elements/GroupPane.d.ts +1 -1
- package/lib/component/elements/GroupPane.d.ts.map +1 -1
- package/lib/component/elements/HeaderContainer.d.ts +1 -1
- package/lib/component/elements/HeaderContainer.d.ts.map +1 -1
- package/lib/component/elements/Input2Controller.d.ts +1 -1
- package/lib/component/elements/Input2Controller.d.ts.map +1 -1
- package/lib/component/elements/IsotopesViewer.d.ts +1 -1
- package/lib/component/elements/IsotopesViewer.d.ts.map +1 -1
- package/lib/component/elements/Label.d.ts +1 -1
- package/lib/component/elements/Label.d.ts.map +1 -1
- package/lib/component/elements/Logo.d.ts +1 -1
- package/lib/component/elements/Logo.d.ts.map +1 -1
- package/lib/component/elements/MoleculeSelection.d.ts +1 -1
- package/lib/component/elements/MoleculeSelection.d.ts.map +1 -1
- package/lib/component/elements/NextPrev.d.ts +1 -1
- package/lib/component/elements/NextPrev.d.ts.map +1 -1
- package/lib/component/elements/NumberInput2Controller.d.ts +1 -1
- package/lib/component/elements/NumberInput2Controller.d.ts.map +1 -1
- package/lib/component/elements/NumberInputField.d.ts +1 -1
- package/lib/component/elements/NumberInputField.d.ts.map +1 -1
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts +1 -1
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts.map +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.d.ts +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.d.ts.map +1 -1
- package/lib/component/elements/ReadOnly.d.ts +1 -1
- package/lib/component/elements/ReadOnly.d.ts.map +1 -1
- package/lib/component/elements/ResizerWithScale.d.ts +1 -1
- package/lib/component/elements/ResizerWithScale.d.ts.map +1 -1
- package/lib/component/elements/SVGButton.d.ts +1 -1
- package/lib/component/elements/SVGButton.d.ts.map +1 -1
- package/lib/component/elements/SVGGroup.d.ts +1 -1
- package/lib/component/elements/SVGGroup.d.ts.map +1 -1
- package/lib/component/elements/SVGText.d.ts +1 -1
- package/lib/component/elements/SVGText.d.ts.map +1 -1
- package/lib/component/elements/SaveButton.d.ts +1 -1
- package/lib/component/elements/SaveButton.d.ts.map +1 -1
- package/lib/component/elements/SaveButton.js +2 -2
- package/lib/component/elements/SaveButton.js.map +1 -1
- package/lib/component/elements/Scroller.d.ts +2 -2
- package/lib/component/elements/Scroller.d.ts.map +1 -1
- package/lib/component/elements/Sections.d.ts +4 -4
- package/lib/component/elements/Sections.d.ts.map +1 -1
- package/lib/component/elements/Sections.js +1 -1
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/Select2.d.ts +1 -1
- package/lib/component/elements/Select2.d.ts.map +1 -1
- package/lib/component/elements/Select2Controller.d.ts +1 -1
- package/lib/component/elements/Select2Controller.d.ts.map +1 -1
- package/lib/component/elements/StandardDialog.d.ts +1 -1
- package/lib/component/elements/StandardDialog.d.ts.map +1 -1
- package/lib/component/elements/Tab/DeleteButton.d.ts +1 -1
- package/lib/component/elements/Tab/DeleteButton.d.ts.map +1 -1
- package/lib/component/elements/TabTitle.d.ts +1 -1
- package/lib/component/elements/TabTitle.d.ts.map +1 -1
- package/lib/component/elements/TabsProvider.d.ts +1 -1
- package/lib/component/elements/TabsProvider.d.ts.map +1 -1
- package/lib/component/elements/ToolbarPopoverItem.d.ts +1 -1
- package/lib/component/elements/ToolbarPopoverItem.d.ts.map +1 -1
- package/lib/component/elements/ToolbarPopoverItem.js +7 -3
- package/lib/component/elements/ToolbarPopoverItem.js.map +1 -1
- package/lib/component/elements/dropDownButton/DropDownButton.d.ts +1 -1
- package/lib/component/elements/dropDownButton/DropDownButton.d.ts.map +1 -1
- package/lib/component/elements/dropDownButton/DropDownList.d.ts +1 -1
- package/lib/component/elements/dropDownButton/DropDownList.d.ts.map +1 -1
- package/lib/component/elements/export/ExportContent.d.ts +1 -1
- package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
- package/lib/component/elements/export/ExportManager.d.ts +2 -2
- package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
- package/lib/component/elements/export/ExportManager.js +2 -2
- package/lib/component/elements/export/ExportOptionsModal.d.ts +1 -1
- package/lib/component/elements/export/ExportOptionsModal.d.ts.map +1 -1
- package/lib/component/elements/export/ExportSettingsProvider.d.ts +1 -1
- package/lib/component/elements/export/ExportSettingsProvider.d.ts.map +1 -1
- package/lib/component/elements/export/RenderDetector.d.ts +1 -1
- package/lib/component/elements/export/RenderDetector.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.js +4 -10
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.js.map +1 -1
- package/lib/component/elements/print/PrintContent.d.ts +1 -1
- package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
- package/lib/component/elements/print/PrintProvider.d.ts +1 -1
- package/lib/component/elements/print/PrintProvider.d.ts.map +1 -1
- package/lib/component/elements/resizer/SVGResizer.d.ts +1 -1
- package/lib/component/elements/resizer/SVGResizer.d.ts.map +1 -1
- package/lib/component/elements/toolbar_button.d.ts +3 -0
- package/lib/component/elements/toolbar_button.d.ts.map +1 -0
- package/lib/component/elements/{ToolBarButton.js → toolbar_button.js} +2 -2
- package/lib/component/elements/toolbar_button.js.map +1 -0
- package/lib/component/header/AutoPeakPickingOptionPanel.d.ts +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.d.ts.map +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.js +23 -8
- package/lib/component/header/AutoPeakPickingOptionPanel.js.map +1 -1
- package/lib/component/header/Header.d.ts +1 -1
- package/lib/component/header/Header.d.ts.map +1 -1
- package/lib/component/header/HeaderWrapper.d.ts +1 -1
- package/lib/component/header/HeaderWrapper.d.ts.map +1 -1
- package/lib/component/header/RangesPickingOptionPanel.d.ts +1 -1
- package/lib/component/header/RangesPickingOptionPanel.d.ts.map +1 -1
- package/lib/component/header/RangesPickingOptionPanel.js +2 -2
- package/lib/component/header/RangesPickingOptionPanel.js.map +1 -1
- package/lib/component/header/SimpleApodizationDimensionOneOptionsPanel.d.ts +1 -1
- package/lib/component/header/SimpleApodizationDimensionOneOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/SimpleApodizationDimensionTwoOptionsPanel.d.ts +1 -1
- package/lib/component/header/SimpleApodizationDimensionTwoOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/SimpleApodizationOptionsPanel.d.ts +1 -1
- package/lib/component/header/SimpleApodizationOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.d.ts +1 -1
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/SimplePhaseCorrectionOptionsPanel.d.ts +1 -1
- package/lib/component/header/SimplePhaseCorrectionOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/SimplePhaseCorrectionTwoDimensionsPanel.d.ts +1 -1
- package/lib/component/header/SimplePhaseCorrectionTwoDimensionsPanel.d.ts.map +1 -1
- package/lib/component/header/SimpleZeroFillingDimensionOneOptionsPanel.d.ts +1 -1
- package/lib/component/header/SimpleZeroFillingDimensionOneOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/SimpleZeroFillingDimensionTwoOptionsPanel.d.ts +1 -1
- package/lib/component/header/SimpleZeroFillingDimensionTwoOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/SimpleZeroFillingOptionsPanel.d.ts +1 -1
- package/lib/component/header/SimpleZeroFillingOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/Zones2DOptionPanel.d.ts +1 -1
- package/lib/component/header/Zones2DOptionPanel.d.ts.map +1 -1
- package/lib/component/header/base/BaseSimpleApodizationOptionsPanel.d.ts +1 -1
- package/lib/component/header/base/BaseSimpleApodizationOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.d.ts +1 -1
- package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.d.ts.map +1 -1
- package/lib/component/highlight/index.d.ts +1 -1
- package/lib/component/highlight/index.d.ts.map +1 -1
- package/lib/component/hooks/use2DReducer.d.ts.map +1 -1
- package/lib/component/hooks/use2DReducer.js +5 -1
- package/lib/component/hooks/use2DReducer.js.map +1 -1
- package/lib/component/hooks/useActiveSpectra.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectra.js +3 -2
- package/lib/component/hooks/useActiveSpectra.js.map +1 -1
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.d.ts +2 -1
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.d.ts.map +1 -1
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.js +26 -9
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.js.map +1 -1
- package/lib/component/hooks/useCheckToolsVisibility.d.ts +1 -9
- package/lib/component/hooks/useCheckToolsVisibility.d.ts.map +1 -1
- package/lib/component/hooks/useCheckToolsVisibility.js +52 -43
- package/lib/component/hooks/useCheckToolsVisibility.js.map +1 -1
- package/lib/component/hooks/useExport.d.ts +1 -1
- package/lib/component/hooks/useExport.js +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts +1 -1
- package/lib/component/hooks/useSelectedSpectra.d.ts +3 -0
- package/lib/component/hooks/useSelectedSpectra.d.ts.map +1 -0
- package/lib/component/hooks/useSelectedSpectra.js +20 -0
- package/lib/component/hooks/useSelectedSpectra.js.map +1 -0
- package/lib/component/hooks/useWorkspaceAction.js +4 -4
- package/lib/component/loader/DefaultSpinnerComponent.d.ts +1 -1
- package/lib/component/loader/DefaultSpinnerComponent.d.ts.map +1 -1
- package/lib/component/loader/DropZone.d.ts +1 -1
- package/lib/component/loader/DropZone.d.ts.map +1 -1
- package/lib/component/loader/NoData.d.ts +1 -1
- package/lib/component/loader/NoData.d.ts.map +1 -1
- package/lib/component/loader/Spinner.d.ts +1 -1
- package/lib/component/loader/Spinner.d.ts.map +1 -1
- package/lib/component/loader/SpinnerContext.d.ts +1 -1
- package/lib/component/loader/SpinnerContext.d.ts.map +1 -1
- package/lib/component/main/ErrorOverlay.d.ts +1 -1
- package/lib/component/main/ErrorOverlay.d.ts.map +1 -1
- package/lib/component/main/InnerNMRium.d.ts +1 -1
- package/lib/component/main/InnerNMRium.d.ts.map +1 -1
- package/lib/component/main/InnerNMRiumContents.d.ts +1 -1
- package/lib/component/main/InnerNMRiumContents.d.ts.map +1 -1
- package/lib/component/main/InnerNMRiumContents.js +2 -2
- package/lib/component/main/InnerNMRiumContents.js.map +1 -1
- package/lib/component/main/NMRiumStateProvider.d.ts +1 -1
- package/lib/component/main/NMRiumStateProvider.d.ts.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/NMRiumViewer.js +2 -2
- package/lib/component/main/NMRiumViewer.js.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/modal/AboutPredictionModal.d.ts +1 -1
- package/lib/component/modal/AboutPredictionModal.d.ts.map +1 -1
- package/lib/component/modal/AboutPredictionModal.js +1 -1
- package/lib/component/modal/AboutPredictionModal.js.map +1 -1
- package/lib/component/modal/AboutSpectrumSimulationModal.d.ts +1 -1
- package/lib/component/modal/AboutSpectrumSimulationModal.d.ts.map +1 -1
- package/lib/component/modal/AboutSpectrumSimulationModal.js +1 -1
- package/lib/component/modal/AboutSpectrumSimulationModal.js.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.d.ts +7 -1
- package/lib/component/modal/EditPeakShapeModal.d.ts.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.js +21 -13
- package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
- package/lib/component/modal/ExportAsJcampModal.d.ts +1 -1
- package/lib/component/modal/ExportAsJcampModal.d.ts.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.d.ts +1 -1
- package/lib/component/modal/ImportPublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.d.ts +1 -1
- package/lib/component/modal/LoadJCAMPModal.d.ts.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.js +1 -1
- package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
- package/lib/component/modal/LogsHistoryModal.d.ts +1 -1
- package/lib/component/modal/LogsHistoryModal.d.ts.map +1 -1
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.d.ts +1 -1
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.d.ts.map +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.d.ts +1 -1
- package/lib/component/modal/MultipletAnalysisModal.d.ts +1 -3
- package/lib/component/modal/MultipletAnalysisModal.d.ts.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.js +58 -65
- package/lib/component/modal/MultipletAnalysisModal.js.map +1 -1
- package/lib/component/modal/PredictSpectraModal.d.ts +1 -1
- package/lib/component/modal/PredictSpectraModal.d.ts.map +1 -1
- package/lib/component/modal/PublicationStringModal.d.ts +1 -1
- package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/SaveAsModal.d.ts +1 -1
- package/lib/component/modal/SaveAsModal.d.ts.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.d.ts +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.d.ts.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsZakodium.d.ts +1 -1
- package/lib/component/modal/aboutUs/AboutUsZakodium.d.ts.map +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts.map +1 -1
- package/lib/component/modal/changeSum/ChangeSumModalContents.d.ts +1 -1
- package/lib/component/modal/changeSum/ChangeSumModalContents.d.ts.map +1 -1
- package/lib/component/modal/changeSum/SelectMolecule.d.ts +1 -1
- package/lib/component/modal/changeSum/SelectMolecule.d.ts.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.d.ts +1 -1
- package/lib/component/modal/editRange/EditRangeModal.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/InfoBlock.d.ts +1 -1
- package/lib/component/modal/editRange/forms/components/InfoBlock.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js +2 -3
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalTab.d.ts +1 -1
- package/lib/component/modal/editRange/forms/components/SignalTab.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.d.ts +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/SignalPeaksTable.d.ts +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +6 -7
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js.map +1 -1
- package/lib/component/modal/editZone/EditZoneModal.d.ts +1 -1
- package/lib/component/modal/editZone/EditZoneModal.d.ts.map +1 -1
- package/lib/component/modal/editZone/EditZoneModal.js +3 -1
- package/lib/component/modal/editZone/EditZoneModal.js.map +1 -1
- package/lib/component/modal/editZone/SignalsForm.d.ts +1 -1
- package/lib/component/modal/editZone/SignalsForm.d.ts.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.d.ts +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.d.ts.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js +2 -2
- package/lib/component/modal/setting/WorkspaceItem.d.ts +1 -1
- package/lib/component/modal/setting/WorkspaceItem.d.ts.map +1 -1
- package/lib/component/modal/setting/WorkspaceItem.js +2 -2
- package/lib/component/modal/setting/general_settings.d.ts +1 -1
- package/lib/component/modal/setting/general_settings.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +158 -24
- 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 +158 -24
- 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.d.ts +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +158 -24
- 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_body.js +2 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +120 -18
- 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 +120 -18
- 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 +20 -3
- 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 +120 -18
- 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 +120 -18
- 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 +120 -18
- 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 +120 -18
- 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 +120 -18
- 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/external_api_tab.js +25 -7
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +120 -18
- 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 +120 -18
- 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 +120 -18
- 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 +120 -18
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +120 -18
- 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 +1654 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js +105 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +120 -18
- 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 +120 -18
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_actions.d.ts +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_actions.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.d.ts +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.d.ts +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_input.d.ts +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/ui/cell_input.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.d.ts +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.d.ts +24 -12
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.js +4 -2
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_label_tab_validation.d.ts +39 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_label_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_label_tab_validation.js +16 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_label_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +38 -6
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation.js +4 -2
- package/lib/component/modal/setting/tanstack_general_settings/validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.d.ts +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/picker.d.ts +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/picker.d.ts.map +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.d.ts +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.d.ts.map +1 -1
- 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/IntegralsPanel/IntegralPanel.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.d.ts +1 -1
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.d.ts.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.d.ts +1 -1
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.d.ts.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js +1 -5
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.d.ts +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeOptionsPanel.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts.map +1 -1
- package/lib/component/panels/PanelNoData.d.ts +1 -1
- package/lib/component/panels/PanelNoData.d.ts.map +1 -1
- package/lib/component/panels/Panels.d.ts +1 -1
- package/lib/component/panels/Panels.d.ts.map +1 -1
- package/lib/component/panels/PanelsBar.d.ts +1 -1
- package/lib/component/panels/PanelsBar.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +44 -27
- package/lib/component/panels/PeaksPanel/PeaksPanel.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +22 -3
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts +9 -3
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.js +10 -8
- package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
- package/lib/component/panels/PeaksPanel/peaksToTSV.d.ts +4 -0
- package/lib/component/panels/PeaksPanel/peaksToTSV.d.ts.map +1 -0
- package/lib/component/panels/PeaksPanel/peaksToTSV.js +32 -0
- package/lib/component/panels/PeaksPanel/peaksToTSV.js.map +1 -0
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js +143 -4
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPreferences.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPreferences.js +1 -0
- package/lib/component/panels/SpectraPanel/SpectraPreferences.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +5 -19
- package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTabs.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTabs.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectrumListPanel.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/SpectrumListPanel.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/ShowHideSpectrumButton.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/ShowHideSpectrumButton.d.ts.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 +9 -0
- package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.d.ts +2 -0
- package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.d.ts.map +1 -0
- package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.js +66 -0
- package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.js.map +1 -0
- package/lib/component/panels/SpectraPanel/base/setting/PlotChart.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/PlotChart.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.js +4 -0
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js +12 -10
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.js +4 -0
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +7 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js +8 -2
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/Overview.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/Overview.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +3 -7
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTable.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTable.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.d.ts +2 -2
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseInfo.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabaseInfo.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts +2 -2
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts +3 -3
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js +2 -2
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.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/extra/placeholder/NoDataForFid.d.ts +1 -1
- package/lib/component/panels/extra/placeholder/NoDataForFid.d.ts.map +1 -1
- package/lib/component/panels/extra/preferences/NucleusGroup.d.ts +1 -1
- package/lib/component/panels/extra/preferences/NucleusGroup.d.ts.map +1 -1
- package/lib/component/panels/extra/preferences/NucleusPreferences.d.ts +1 -1
- package/lib/component/panels/extra/preferences/NucleusPreferences.d.ts.map +1 -1
- package/lib/component/panels/extra/preferences/PreferencesContainer.d.ts +1 -1
- package/lib/component/panels/extra/preferences/PreferencesContainer.d.ts.map +1 -1
- package/lib/component/panels/extra/preferences/PreferencesGroup.d.ts +1 -1
- package/lib/component/panels/extra/preferences/PreferencesGroup.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/FilterPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/FilterPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/FilterPanel.js +1 -1
- package/lib/component/panels/filtersPanel/Filters/ApodizationDimensionOneOptionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/ApodizationDimensionOneOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ApodizationDimensionTwoOptionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/ApodizationDimensionTwoOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ApodizationOptionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/ApodizationOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FilterActionButtons.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/FilterActionButtons.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/PhaseCorrectionOptionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/PhaseCorrectionOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/PhaseCorrectionTwoDimensionsOptionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/PhaseCorrectionTwoDimensionsOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ShiftOptionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/ShiftOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ZeroFillingDimensionOneOptionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/ZeroFillingDimensionOneOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ZeroFillingDimensionTwoOptionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/ZeroFillingDimensionTwoOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ZeroFillingOptionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/ZeroFillingOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js +1 -0
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +1 -0
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js +2 -0
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js +2 -0
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js.map +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.d.ts +3 -3
- package/lib/component/panels/header/DefaultPanelHeader.d.ts.map +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.js +2 -2
- package/lib/component/panels/header/PreferencesHeader.d.ts +1 -1
- package/lib/component/panels/header/PreferencesHeader.d.ts.map +1 -1
- package/lib/component/panels/header/SpectraAutomaticPickingButton.d.ts +1 -1
- package/lib/component/panels/header/SpectraAutomaticPickingButton.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.d.ts +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.js +222 -33
- package/lib/component/panels/informationPanel/InformationEditionModal.js.map +1 -1
- package/lib/component/panels/informationPanel/InformationPanel.d.ts +1 -1
- package/lib/component/panels/informationPanel/InformationPanel.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/InformationPanel.js +8 -8
- package/lib/component/panels/informationPanel/InformationPanel.js.map +1 -1
- package/lib/component/panels/informationPanel/MixedValuesBadge.d.ts +6 -0
- package/lib/component/panels/informationPanel/MixedValuesBadge.d.ts.map +1 -0
- package/lib/component/panels/informationPanel/MixedValuesBadge.js +47 -0
- package/lib/component/panels/informationPanel/MixedValuesBadge.js.map +1 -0
- package/lib/component/panels/informationPanel/SpectraPicker.d.ts +6 -0
- package/lib/component/panels/informationPanel/SpectraPicker.d.ts.map +1 -0
- package/lib/component/panels/informationPanel/SpectraPicker.js +148 -0
- package/lib/component/panels/informationPanel/SpectraPicker.js.map +1 -0
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.d.ts +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.d.ts +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js +9 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.d.ts +2 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js +25 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisCell.d.ts +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisCell.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.d.ts +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.d.ts +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.d.ts +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/MultipleAnalysisCodeEditor.d.ts +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/MultipleAnalysisCodeEditor.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js +5 -9
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.d.ts +1 -1
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.d.ts.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.d.ts +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.d.ts.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationSimpleOptions.d.ts +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationSimpleOptions.d.ts.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.d.ts +1 -1
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.d.ts.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js +3 -3
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +4 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +5 -1
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts +10 -5
- package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.js +39 -31
- package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +4 -1
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +3 -3
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +29 -21
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +5 -3
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectra.d.ts +2 -2
- package/lib/component/reducer/helper/getActiveSpectra.d.ts.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectra.js +2 -2
- package/lib/component/reducer/helper/getActiveSpectra.js.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectraAsObject.d.ts.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectraAsObject.js +2 -1
- package/lib/component/reducer/helper/getActiveSpectraAsObject.js.map +1 -1
- package/lib/component/reducer/preferences/actions/toggleSpectraLabel.d.ts +4 -0
- package/lib/component/reducer/preferences/actions/toggleSpectraLabel.d.ts.map +1 -0
- package/lib/component/reducer/preferences/actions/toggleSpectraLabel.js +10 -0
- package/lib/component/reducer/preferences/actions/toggleSpectraLabel.js.map +1 -0
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +6 -0
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +4 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js +3 -0
- package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts +14 -4
- package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
- package/lib/component/toolbar/ToolTypes.js +31 -60
- package/lib/component/toolbar/ToolTypes.js.map +1 -1
- package/lib/component/toolbar/nmr_toolbar.d.ts +2 -0
- package/lib/component/toolbar/nmr_toolbar.d.ts.map +1 -0
- package/lib/component/toolbar/{ToolBar.js → nmr_toolbar.js} +4 -7
- package/lib/component/toolbar/nmr_toolbar.js.map +1 -0
- package/lib/component/useWatchForm.d.ts.map +1 -1
- package/lib/component/useWatchForm.js +1 -0
- package/lib/component/useWatchForm.js.map +1 -1
- package/lib/component/utility/getValueByPath.d.ts +2 -0
- package/lib/component/utility/getValueByPath.d.ts.map +1 -0
- package/lib/component/utility/getValueByPath.js +21 -0
- package/lib/component/utility/getValueByPath.js.map +1 -0
- package/lib/component/utility/pathToString.d.ts +2 -0
- package/lib/component/utility/pathToString.d.ts.map +1 -0
- package/lib/component/utility/pathToString.js +4 -0
- package/lib/component/utility/pathToString.js.map +1 -0
- package/lib/component/workspaces/prediction.d.ts.map +1 -1
- package/lib/component/workspaces/prediction.js +20 -0
- package/lib/component/workspaces/prediction.js.map +1 -1
- package/lib/component/workspaces/simulation.d.ts.map +1 -1
- package/lib/component/workspaces/simulation.js +3 -0
- package/lib/component/workspaces/simulation.js.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +8 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.js +4 -7
- package/lib/data/SpectraManager.js.map +1 -1
- package/lib/data/constants/defaultPeakShape.d.ts +6 -0
- package/lib/data/constants/defaultPeakShape.d.ts.map +1 -0
- package/lib/data/constants/defaultPeakShape.js +6 -0
- package/lib/data/constants/defaultPeakShape.js.map +1 -0
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts +3 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +3 -2
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +108 -3
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts +3 -3
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.d.ts +3 -3
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js.map +1 -1
- package/lib/data/data1d/database.d.ts +5 -5
- package/lib/data/data1d/database.js +2 -2
- package/lib/data/data2d/Spectrum2D/get2DColor.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.js +3 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.js.map +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +5 -1
- package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.js +5 -3
- package/lib/data/molecules/MoleculeManager.js.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.d.ts +1 -1
- package/lib/utils/clipboard/clipboardComponents.d.ts.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +36 -36
- package/src/component/1d/BrushTracker1D.tsx +12 -8
- package/src/component/1d/FooterBanner.tsx +19 -3
- package/src/component/1d/LinesSeries.tsx +2 -0
- package/src/component/1d/SpectraLegends.tsx +7 -2
- package/src/component/1d/SpectrumLabel.tsx +59 -0
- package/src/component/1d/peaks/usePeakShapesPath.ts +4 -2
- package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +2 -4
- package/src/component/elements/Button.tsx +2 -2
- package/src/component/elements/CloseButton.tsx +2 -2
- package/src/component/elements/ColorDot.tsx +38 -0
- package/src/component/elements/Footer.tsx +1 -0
- package/src/component/elements/SaveButton.tsx +2 -2
- package/src/component/elements/Sections.tsx +1 -1
- package/src/component/elements/ToolbarPopoverItem.tsx +17 -10
- package/src/component/elements/export/ExportManager.tsx +2 -2
- package/src/component/elements/export/utilities/exportOptionValidationSchema.ts +4 -8
- package/src/component/elements/{ToolBarButton.tsx → toolbar_button.tsx} +1 -1
- package/src/component/header/AutoPeakPickingOptionPanel.tsx +32 -10
- package/src/component/header/RangesPickingOptionPanel.tsx +2 -2
- package/src/component/hooks/use2DReducer.tsx +6 -3
- package/src/component/hooks/useActiveSpectra.ts +6 -2
- package/src/component/hooks/useCheckPointsNumberInWindowArea.ts +41 -13
- package/src/component/hooks/useCheckToolsVisibility.ts +69 -74
- package/src/component/hooks/useExport.tsx +1 -1
- package/src/component/hooks/useSelectedSpectra.ts +25 -0
- package/src/component/hooks/useWorkspaceAction.ts +5 -5
- package/src/component/main/InnerNMRiumContents.tsx +2 -2
- package/src/component/main/NMRiumViewer.tsx +2 -2
- package/src/component/modal/AboutPredictionModal.tsx +5 -5
- package/src/component/modal/AboutSpectrumSimulationModal.tsx +1 -1
- package/src/component/modal/EditPeakShapeModal.tsx +42 -26
- package/src/component/modal/LoadJCAMPModal.tsx +1 -1
- package/src/component/modal/MultipletAnalysisModal.tsx +81 -82
- package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +2 -3
- package/src/component/modal/editRange/forms/validation/EditRangeValidation.ts +6 -7
- package/src/component/modal/editZone/EditZoneModal.tsx +3 -1
- package/src/component/modal/metaImportation/MetaImportationModal.tsx +2 -2
- package/src/component/modal/setting/WorkspaceItem.tsx +2 -2
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +7 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +34 -7
- package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.tsx +201 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.ts +4 -2
- package/src/component/modal/setting/tanstack_general_settings/validation/spectra_label_tab_validation.ts +24 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.ts +1 -1
- package/src/component/modal/setting/tanstack_general_settings/validation.ts +4 -2
- package/src/component/modal/setting/tanstack_general_settings/workspaces/actions.tsx +2 -2
- package/src/component/panels/IntegralsPanel/IntegralPanel.tsx +2 -2
- package/src/component/panels/MatrixGenerationPanel/FiltersOptions.tsx +1 -14
- package/src/component/panels/PeaksPanel/PeaksPanel.tsx +90 -58
- package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +73 -9
- package/src/component/panels/PeaksPanel/PeaksTable.tsx +25 -27
- package/src/component/panels/PeaksPanel/peaksToTSV.ts +45 -0
- package/src/component/panels/RangesPanel/RangesHeader.tsx +2 -2
- package/src/component/panels/SpectraPanel/SpectraPanelHeader.tsx +206 -3
- package/src/component/panels/SpectraPanel/SpectraPreferences.tsx +1 -0
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +5 -26
- package/src/component/panels/SpectraPanel/base/SpectraColumnsManager.tsx +17 -0
- package/src/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.tsx +112 -0
- package/src/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.tsx +5 -0
- package/src/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.tsx +33 -25
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.tsx +5 -0
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +19 -11
- package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +10 -2
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +3 -7
- package/src/component/panels/SummaryPanel/utilities/Utilities.ts +1 -1
- package/src/component/panels/ZonesPanel/ZonesPanel.tsx +2 -2
- package/src/component/panels/ZonesPanel/hooks/useMapZones.ts +2 -2
- package/src/component/panels/databasePanel/DatabasePanel.tsx +2 -2
- package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +5 -5
- package/src/component/panels/filtersPanel/FilterPanel.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +1 -0
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.tsx +2 -0
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.tsx +2 -0
- package/src/component/panels/header/DefaultPanelHeader.tsx +6 -6
- package/src/component/panels/informationPanel/InformationEditionModal.tsx +324 -44
- package/src/component/panels/informationPanel/InformationPanel.tsx +13 -12
- package/src/component/panels/informationPanel/MixedValuesBadge.tsx +77 -0
- package/src/component/panels/informationPanel/SpectraPicker.tsx +260 -0
- package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.tsx +12 -1
- package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.tsx +38 -1
- package/src/component/panels/multipleAnalysisPanel/preferences/index.tsx +10 -9
- package/src/component/reducer/actions/CorrelationsActions.ts +4 -4
- package/src/component/reducer/actions/DomainActions.ts +8 -3
- package/src/component/reducer/actions/IntegralsActions.ts +1 -1
- package/src/component/reducer/actions/MoleculeActions.ts +11 -5
- package/src/component/reducer/actions/PeaksActions.ts +71 -42
- package/src/component/reducer/actions/RangesActions.ts +4 -1
- package/src/component/reducer/actions/SpectraActions.ts +38 -24
- package/src/component/reducer/actions/ToolsActions.ts +7 -6
- package/src/component/reducer/helper/getActiveSpectra.ts +5 -4
- package/src/component/reducer/helper/getActiveSpectraAsObject.ts +4 -1
- package/src/component/reducer/preferences/actions/toggleSpectraLabel.ts +19 -0
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +8 -2
- package/src/component/reducer/preferences/preferencesReducer.ts +8 -1
- package/src/component/toolbar/ToolTypes.ts +47 -67
- package/src/component/toolbar/{ToolBar.tsx → nmr_toolbar.tsx} +3 -8
- package/src/component/useWatchForm.tsx +1 -0
- package/src/component/utility/getValueByPath.ts +26 -0
- package/src/component/utility/pathToString.ts +3 -0
- package/src/component/workspaces/prediction.ts +20 -0
- package/src/component/workspaces/simulation.ts +3 -0
- package/src/component/workspaces/workspaceDefaultProperties.ts +8 -0
- package/src/data/SpectraManager.ts +4 -8
- package/src/data/constants/defaultPeakShape.ts +5 -0
- package/src/data/data1d/Spectrum1D/peaks/autoPeakPicking.ts +6 -1
- package/src/data/data1d/Spectrum1D/peaks/optimizePeaks.ts +109 -3
- package/src/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.ts +6 -3
- package/src/data/data1d/database.ts +7 -7
- package/src/data/data2d/Spectrum2D/get2DColor.ts +3 -1
- package/src/data/molecules/MoleculeManager.ts +4 -3
- package/src/versionInfo.ts +1 -1
- package/lib/component/elements/ToolBarButton.d.ts +0 -3
- package/lib/component/elements/ToolBarButton.d.ts.map +0 -1
- package/lib/component/elements/ToolBarButton.js.map +0 -1
- package/lib/component/toolbar/ToolBar.d.ts +0 -2
- package/lib/component/toolbar/ToolBar.d.ts.map +0 -1
- package/lib/component/toolbar/ToolBar.js.map +0 -1
|
@@ -1,26 +1,107 @@
|
|
|
1
|
-
import { Classes, DialogFooter } from '@blueprintjs/core';
|
|
1
|
+
import { Classes, DialogFooter, Icon } from '@blueprintjs/core';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
4
|
+
import type { Spectrum } from '@zakodium/nmrium-core';
|
|
4
5
|
import { useCallback, useMemo } from 'react';
|
|
5
|
-
import { useForm } from 'react-hook-form';
|
|
6
|
+
import { Controller, useForm, useWatch } from 'react-hook-form';
|
|
6
7
|
import { FaPlus, FaRegTrashAlt } from 'react-icons/fa';
|
|
7
8
|
import { Button } from 'react-science/ui';
|
|
8
9
|
import type { CellProps } from 'react-table';
|
|
9
|
-
import { array, object, string } from 'yup';
|
|
10
|
+
import { array, mixed, object, string } from 'yup';
|
|
10
11
|
|
|
11
12
|
import { useDispatch } from '../../context/DispatchContext.js';
|
|
12
13
|
import { Input2Controller } from '../../elements/Input2Controller.js';
|
|
13
14
|
import type { Column } from '../../elements/ReactTable/ReactTable.js';
|
|
14
15
|
import ReactTable from '../../elements/ReactTable/ReactTable.js';
|
|
16
|
+
import { Select2Controller } from '../../elements/Select2Controller.tsx';
|
|
15
17
|
import { StandardDialog } from '../../elements/StandardDialog.tsx';
|
|
16
18
|
import { StyledDialogBody } from '../../elements/StyledDialogBody.js';
|
|
17
|
-
import
|
|
19
|
+
import { useSelectedSpectra } from '../../hooks/useSelectedSpectra.ts';
|
|
18
20
|
import { checkUniqueByKey } from '../../utility/checkUniqueByKey.js';
|
|
19
21
|
|
|
22
|
+
import { MixedValuesBadge } from './MixedValuesBadge.tsx';
|
|
23
|
+
import { SpectraPicker } from './SpectraPicker.tsx';
|
|
24
|
+
|
|
25
|
+
type Scope = 'all' | 'override' | 'missing';
|
|
26
|
+
|
|
27
|
+
interface ScopeItem {
|
|
28
|
+
value: Scope;
|
|
29
|
+
label: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const SCOPES: ScopeItem[] = [
|
|
33
|
+
{ value: 'all', label: 'All spectra' },
|
|
34
|
+
{ value: 'override', label: 'Override existing' },
|
|
35
|
+
{ value: 'missing', label: 'Fill missing only' },
|
|
36
|
+
];
|
|
37
|
+
|
|
20
38
|
const Container = styled.div`
|
|
21
39
|
display: flex;
|
|
22
40
|
flex-direction: column;
|
|
23
|
-
height: calc(100% -
|
|
41
|
+
height: calc(100% - 40px);
|
|
42
|
+
width: 100%;
|
|
43
|
+
`;
|
|
44
|
+
|
|
45
|
+
const Footer = styled(DialogFooter)`
|
|
46
|
+
div {
|
|
47
|
+
padding: 10px;
|
|
48
|
+
background: #f8fafc;
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
|
|
55
|
+
const CardHeader = styled.div`
|
|
56
|
+
padding: 18px 22px 16px;
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: flex-start;
|
|
59
|
+
gap: 14px;
|
|
60
|
+
`;
|
|
61
|
+
|
|
62
|
+
const CardHeaderText = styled.div`
|
|
63
|
+
flex: 1;
|
|
64
|
+
`;
|
|
65
|
+
|
|
66
|
+
const CardTitle = styled.h2`
|
|
67
|
+
font-size: 15px;
|
|
68
|
+
font-weight: 600;
|
|
69
|
+
color: #1c2127;
|
|
70
|
+
margin: 0 0 3px;
|
|
71
|
+
`;
|
|
72
|
+
|
|
73
|
+
const CardSubtitle = styled.p`
|
|
74
|
+
font-size: 12px;
|
|
75
|
+
color: #8f99a8;
|
|
76
|
+
margin: 0;
|
|
77
|
+
line-height: 1.5;
|
|
78
|
+
`;
|
|
79
|
+
|
|
80
|
+
const FooterHint = styled.div`
|
|
81
|
+
font-size: 12px;
|
|
82
|
+
color: #8f99a8;
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
gap: 6px;
|
|
86
|
+
`;
|
|
87
|
+
|
|
88
|
+
const Toolbar = styled.div`
|
|
89
|
+
padding: 12px 0;
|
|
90
|
+
border-bottom: 1px solid #edf0f3;
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
gap: 10px;
|
|
94
|
+
`;
|
|
95
|
+
|
|
96
|
+
const RowCount = styled.span`
|
|
97
|
+
margin-left: auto;
|
|
98
|
+
font-size: 12px;
|
|
99
|
+
color: #8f99a8;
|
|
100
|
+
`;
|
|
101
|
+
const ValueCellWrapper = styled.div`
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
gap: 5px;
|
|
24
105
|
width: 100%;
|
|
25
106
|
`;
|
|
26
107
|
|
|
@@ -28,7 +109,9 @@ const metaInfoArraySchema = array()
|
|
|
28
109
|
.of(
|
|
29
110
|
object({
|
|
30
111
|
key: string().required().trim(),
|
|
31
|
-
value: string().
|
|
112
|
+
value: string().trim(),
|
|
113
|
+
scope: mixed<Scope>().oneOf(['all', 'missing', 'override']).required(),
|
|
114
|
+
spectra: array().of(string().required()).required(),
|
|
32
115
|
}),
|
|
33
116
|
)
|
|
34
117
|
.required();
|
|
@@ -37,15 +120,10 @@ const metaInfoValidationSchema = object()
|
|
|
37
120
|
.shape({
|
|
38
121
|
metaInfo: metaInfoArraySchema,
|
|
39
122
|
})
|
|
40
|
-
.test('Unique', 'Key need te be unique', function check(values) {
|
|
41
|
-
|
|
42
|
-
return checkUniqueByKey(values.metaInfo, 'key', this, 'metaInfo');
|
|
123
|
+
.test('Unique', 'Key need te be unique', function check(values, context) {
|
|
124
|
+
return checkUniqueByKey(values.metaInfo, 'key', context, 'metaInfo');
|
|
43
125
|
});
|
|
44
126
|
|
|
45
|
-
interface MetaInfoItem {
|
|
46
|
-
key: string;
|
|
47
|
-
value: string;
|
|
48
|
-
}
|
|
49
127
|
interface InformationEditionModalProps {
|
|
50
128
|
onCloseDialog: () => void;
|
|
51
129
|
isOpen: boolean;
|
|
@@ -58,21 +136,143 @@ interface InnerInformationPanelProps extends Omit<
|
|
|
58
136
|
metaInfo: MetaInfoItem[];
|
|
59
137
|
}
|
|
60
138
|
|
|
139
|
+
interface MetaInfoItem {
|
|
140
|
+
key: string;
|
|
141
|
+
value?: string;
|
|
142
|
+
values?: Record<string, string>;
|
|
143
|
+
scope: Scope;
|
|
144
|
+
spectra: string[];
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
function generateMetaInfo(selectedSpectra: Spectrum[]): MetaInfoItem[] {
|
|
148
|
+
if (selectedSpectra.length === 0) return [];
|
|
149
|
+
|
|
150
|
+
const keyData = new Map<
|
|
151
|
+
string,
|
|
152
|
+
{
|
|
153
|
+
spectra: string[];
|
|
154
|
+
valueMap: Map<string, string | undefined>;
|
|
155
|
+
}
|
|
156
|
+
>();
|
|
157
|
+
|
|
158
|
+
for (const spectrum of selectedSpectra) {
|
|
159
|
+
if (!spectrum.customInfo) continue;
|
|
160
|
+
|
|
161
|
+
for (const [key, value] of Object.entries(spectrum.customInfo)) {
|
|
162
|
+
let data = keyData.get(key);
|
|
163
|
+
if (!data) {
|
|
164
|
+
data = { spectra: [], valueMap: new Map() };
|
|
165
|
+
keyData.set(key, data);
|
|
166
|
+
}
|
|
167
|
+
data.spectra.push(spectrum.id);
|
|
168
|
+
data.valueMap.set(spectrum.id, value as string | undefined);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
const result: MetaInfoItem[] = [];
|
|
173
|
+
for (const [key, data] of keyData) {
|
|
174
|
+
const values = Array.from(data.valueMap.values());
|
|
175
|
+
const uniqueValues = new Set(values);
|
|
176
|
+
const valuesObj: Record<string, string> = {};
|
|
177
|
+
for (const [id, val] of data.valueMap) {
|
|
178
|
+
if (val !== undefined) {
|
|
179
|
+
valuesObj[id] = val;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
if (uniqueValues.size === 1) {
|
|
183
|
+
const singleValue = values[0];
|
|
184
|
+
|
|
185
|
+
// Skip if all values are undefined
|
|
186
|
+
if (singleValue === undefined) continue;
|
|
187
|
+
|
|
188
|
+
result.push({
|
|
189
|
+
key,
|
|
190
|
+
value: singleValue,
|
|
191
|
+
scope: 'all',
|
|
192
|
+
values: valuesObj,
|
|
193
|
+
spectra: data.spectra,
|
|
194
|
+
});
|
|
195
|
+
} else {
|
|
196
|
+
result.push({
|
|
197
|
+
key,
|
|
198
|
+
value: '',
|
|
199
|
+
values: valuesObj,
|
|
200
|
+
scope: 'missing',
|
|
201
|
+
spectra: data.spectra,
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
return result;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
function metaToSpectraMap(
|
|
210
|
+
metaInfo: MetaInfoItem[],
|
|
211
|
+
allSpectraIds: string[],
|
|
212
|
+
): Record<string, Record<string, string>> {
|
|
213
|
+
const result: Record<string, Record<string, string>> = {};
|
|
214
|
+
|
|
215
|
+
for (const id of allSpectraIds) {
|
|
216
|
+
result[id] = {};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
for (const meta of metaInfo) {
|
|
220
|
+
const { scope, spectra, key, value, values } = meta;
|
|
221
|
+
for (const spectrumId of spectra) {
|
|
222
|
+
if (!(spectrumId in result)) continue;
|
|
223
|
+
|
|
224
|
+
const hasExistingKey = values && spectrumId in values;
|
|
225
|
+
const hasValue = typeof value === 'string';
|
|
226
|
+
|
|
227
|
+
if (scope === 'all' && hasValue) {
|
|
228
|
+
result[spectrumId][key] = value;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if (scope === 'missing') {
|
|
232
|
+
if (hasExistingKey) {
|
|
233
|
+
result[spectrumId][key] = values?.[spectrumId] || '';
|
|
234
|
+
} else if (hasValue) {
|
|
235
|
+
result[spectrumId][key] = value;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (
|
|
240
|
+
scope === 'override' && // Only update spectra that have this key in meta.values
|
|
241
|
+
hasExistingKey &&
|
|
242
|
+
hasValue
|
|
243
|
+
) {
|
|
244
|
+
// Overwrite with the new value meta.value
|
|
245
|
+
result[spectrumId][key] = value;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
return result;
|
|
251
|
+
}
|
|
252
|
+
|
|
61
253
|
export function InformationEditionModal(props: InformationEditionModalProps) {
|
|
62
254
|
const { isOpen, onCloseDialog } = props;
|
|
63
|
-
const
|
|
255
|
+
const spectra = useSelectedSpectra();
|
|
64
256
|
|
|
65
|
-
if (!isOpen || !
|
|
257
|
+
if (!isOpen || !spectra) return null;
|
|
66
258
|
|
|
67
|
-
const metaInfo =
|
|
68
|
-
key,
|
|
69
|
-
value: spectrum.customInfo[key],
|
|
70
|
-
}));
|
|
259
|
+
const metaInfo: MetaInfoItem[] = generateMetaInfo(spectra);
|
|
71
260
|
|
|
72
261
|
return (
|
|
73
262
|
<StandardDialog
|
|
74
263
|
isOpen
|
|
75
|
-
title=
|
|
264
|
+
title={
|
|
265
|
+
<CardHeader>
|
|
266
|
+
<CardHeaderText>
|
|
267
|
+
<CardTitle>Meta information</CardTitle>
|
|
268
|
+
<CardSubtitle>
|
|
269
|
+
Define keys and values to apply across spectra. Control scope and
|
|
270
|
+
target spectra per row.
|
|
271
|
+
</CardSubtitle>
|
|
272
|
+
</CardHeaderText>
|
|
273
|
+
</CardHeader>
|
|
274
|
+
}
|
|
275
|
+
canOutsideClickClose
|
|
76
276
|
onClose={onCloseDialog}
|
|
77
277
|
style={{ width: 700, height: 500 }}
|
|
78
278
|
>
|
|
@@ -87,7 +287,9 @@ export function InformationEditionModal(props: InformationEditionModalProps) {
|
|
|
87
287
|
function InnerInformationPanel(props: InnerInformationPanelProps) {
|
|
88
288
|
const { metaInfo = [], onCloseDialog } = props;
|
|
89
289
|
const dispatch = useDispatch();
|
|
90
|
-
const
|
|
290
|
+
const spectra = useSelectedSpectra();
|
|
291
|
+
const disabled = (spectra?.length ?? 0) < 2;
|
|
292
|
+
const { handleSubmit, reset, control } = useForm<{
|
|
91
293
|
metaInfo: MetaInfoItem[];
|
|
92
294
|
}>({
|
|
93
295
|
defaultValues: { metaInfo },
|
|
@@ -96,12 +298,17 @@ function InnerInformationPanel(props: InnerInformationPanelProps) {
|
|
|
96
298
|
|
|
97
299
|
const addHandler = useCallback(
|
|
98
300
|
(data: any, index = 0) => {
|
|
99
|
-
const meta = {
|
|
301
|
+
const meta = {
|
|
302
|
+
key: '',
|
|
303
|
+
value: '',
|
|
304
|
+
scope: 'all',
|
|
305
|
+
spectra: spectra?.map(({ id }) => id),
|
|
306
|
+
};
|
|
100
307
|
reset({
|
|
101
308
|
metaInfo: [...data.slice(0, index), meta, ...data.slice(index)],
|
|
102
309
|
});
|
|
103
310
|
},
|
|
104
|
-
[reset],
|
|
311
|
+
[reset, spectra],
|
|
105
312
|
);
|
|
106
313
|
|
|
107
314
|
const deleteHandler = useCallback(
|
|
@@ -116,12 +323,7 @@ function InnerInformationPanel(props: InnerInformationPanelProps) {
|
|
|
116
323
|
|
|
117
324
|
function saveHandler(values: any) {
|
|
118
325
|
const { metaInfo } = values;
|
|
119
|
-
const meta
|
|
120
|
-
|
|
121
|
-
for (const { key, value } of metaInfo) {
|
|
122
|
-
meta[key] = value;
|
|
123
|
-
}
|
|
124
|
-
|
|
326
|
+
const meta = metaToSpectraMap(metaInfo, spectra?.map(({ id }) => id) || []);
|
|
125
327
|
dispatch({ type: 'UPDATE_SPECTRUM_META', payload: { meta } });
|
|
126
328
|
onCloseDialog();
|
|
127
329
|
}
|
|
@@ -141,6 +343,7 @@ function InnerInformationPanel(props: InnerInformationPanelProps) {
|
|
|
141
343
|
<Input2Controller
|
|
142
344
|
control={control}
|
|
143
345
|
name={`metaInfo.${row.index}.key`}
|
|
346
|
+
placeholder="e.g. solvent"
|
|
144
347
|
noShadowBox
|
|
145
348
|
/>
|
|
146
349
|
);
|
|
@@ -150,12 +353,70 @@ function InnerInformationPanel(props: InnerInformationPanelProps) {
|
|
|
150
353
|
Header: 'Value',
|
|
151
354
|
style: { padding: 0 },
|
|
152
355
|
Cell: ({ row }: CellProps<MetaInfoItem>) => {
|
|
356
|
+
const values = Object.values(row.original.values || {});
|
|
357
|
+
const uniqueValues = new Set(values);
|
|
358
|
+
const isMixed = uniqueValues.size > 1;
|
|
153
359
|
return (
|
|
154
|
-
<
|
|
360
|
+
<ValueCellWrapper>
|
|
361
|
+
<Input2Controller
|
|
362
|
+
control={control}
|
|
363
|
+
name={`metaInfo.${row.index}.value`}
|
|
364
|
+
placeholder={
|
|
365
|
+
isMixed
|
|
366
|
+
? `e.g., "${uniqueValues.size} different values"`
|
|
367
|
+
: 'Value'
|
|
368
|
+
}
|
|
369
|
+
mapValue={String}
|
|
370
|
+
noShadowBox
|
|
371
|
+
fill
|
|
372
|
+
/>
|
|
373
|
+
{isMixed && row.original.values && (
|
|
374
|
+
<MixedValuesBadge values={row.original.values} />
|
|
375
|
+
)}
|
|
376
|
+
</ValueCellWrapper>
|
|
377
|
+
);
|
|
378
|
+
},
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
Header: 'Scope',
|
|
382
|
+
style: { padding: 0 },
|
|
383
|
+
Cell: ({ row }: CellProps<MetaInfoItem>) => {
|
|
384
|
+
return (
|
|
385
|
+
<Select2Controller
|
|
386
|
+
disabled={disabled}
|
|
387
|
+
name={`metaInfo.${row.index}.scope`}
|
|
155
388
|
control={control}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
389
|
+
items={SCOPES}
|
|
390
|
+
getSelectedText={(item) =>
|
|
391
|
+
item.value.charAt(0).toUpperCase() + item.value.slice(1)
|
|
392
|
+
}
|
|
393
|
+
selectedButtonProps={{
|
|
394
|
+
variant: 'minimal',
|
|
395
|
+
size: 'small',
|
|
396
|
+
disabled,
|
|
397
|
+
}}
|
|
398
|
+
/>
|
|
399
|
+
);
|
|
400
|
+
},
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
Header: 'Spectra',
|
|
404
|
+
style: { padding: 0 },
|
|
405
|
+
Cell: ({ row }: CellProps<MetaInfoItem>) => {
|
|
406
|
+
return (
|
|
407
|
+
<Controller
|
|
408
|
+
name={`metaInfo.${row.index}.spectra`}
|
|
409
|
+
control={control}
|
|
410
|
+
render={({ field }) => {
|
|
411
|
+
const { value, onChange } = field;
|
|
412
|
+
return (
|
|
413
|
+
<SpectraPicker
|
|
414
|
+
disabled={disabled}
|
|
415
|
+
selected={value}
|
|
416
|
+
onChange={(ids) => onChange(ids)}
|
|
417
|
+
/>
|
|
418
|
+
);
|
|
419
|
+
}}
|
|
159
420
|
/>
|
|
160
421
|
);
|
|
161
422
|
},
|
|
@@ -169,7 +430,7 @@ function InnerInformationPanel(props: InnerInformationPanelProps) {
|
|
|
169
430
|
<div style={{ display: 'flex', justifyContent: 'space-evenly' }}>
|
|
170
431
|
<Button
|
|
171
432
|
size="small"
|
|
172
|
-
variant="
|
|
433
|
+
variant="minimal"
|
|
173
434
|
intent="success"
|
|
174
435
|
tooltipProps={{ content: '', disabled: true }}
|
|
175
436
|
onClick={(e) => {
|
|
@@ -181,7 +442,7 @@ function InnerInformationPanel(props: InnerInformationPanelProps) {
|
|
|
181
442
|
</Button>
|
|
182
443
|
<Button
|
|
183
444
|
size="small"
|
|
184
|
-
variant="
|
|
445
|
+
variant="minimal"
|
|
185
446
|
intent="danger"
|
|
186
447
|
tooltipProps={{ content: '', disabled: true }}
|
|
187
448
|
onClick={(e) => {
|
|
@@ -196,34 +457,49 @@ function InnerInformationPanel(props: InnerInformationPanelProps) {
|
|
|
196
457
|
},
|
|
197
458
|
},
|
|
198
459
|
],
|
|
199
|
-
[addHandler, control, deleteHandler],
|
|
460
|
+
[addHandler, control, deleteHandler, disabled],
|
|
200
461
|
);
|
|
201
462
|
|
|
202
|
-
const values =
|
|
463
|
+
const values = useWatch({ name: 'metaInfo', control });
|
|
203
464
|
|
|
204
465
|
return (
|
|
205
466
|
<>
|
|
206
467
|
<StyledDialogBody>
|
|
207
468
|
<Container>
|
|
208
|
-
<
|
|
469
|
+
<Toolbar>
|
|
209
470
|
<Button
|
|
210
471
|
intent="success"
|
|
211
|
-
size="
|
|
472
|
+
size="medium"
|
|
212
473
|
variant="outlined"
|
|
474
|
+
icon="plus"
|
|
213
475
|
onClick={() => addHandler(values)}
|
|
214
476
|
tooltipProps={{ content: '', disabled: true }}
|
|
215
477
|
>
|
|
216
478
|
Add a new meta
|
|
217
479
|
</Button>
|
|
218
|
-
|
|
480
|
+
<RowCount>{spectra?.length} spectra selected</RowCount>
|
|
481
|
+
</Toolbar>
|
|
219
482
|
|
|
220
483
|
<ReactTable<MetaInfoItem>
|
|
221
484
|
data={values}
|
|
222
485
|
columns={COLUMNS}
|
|
223
486
|
emptyDataRowText="No meta"
|
|
224
487
|
style={{
|
|
225
|
-
'thead
|
|
226
|
-
|
|
488
|
+
'thead th': {
|
|
489
|
+
textAlign: 'center',
|
|
490
|
+
padding: '5px 0px',
|
|
491
|
+
fontWeight: '600',
|
|
492
|
+
fontSize: '11px',
|
|
493
|
+
letterSpacing: '0.5px',
|
|
494
|
+
color: '#6b7280',
|
|
495
|
+
border: 'none',
|
|
496
|
+
borderBottom: '2px solid #e5e7eb',
|
|
497
|
+
background: '#f9fafb',
|
|
498
|
+
zIndex: 1,
|
|
499
|
+
},
|
|
500
|
+
'tr td': {
|
|
501
|
+
borderRight: 'none',
|
|
502
|
+
},
|
|
227
503
|
}}
|
|
228
504
|
rowStyle={{
|
|
229
505
|
hover: { backgroundColor: '#f7f7f7' },
|
|
@@ -232,7 +508,11 @@ function InnerInformationPanel(props: InnerInformationPanelProps) {
|
|
|
232
508
|
/>
|
|
233
509
|
</Container>
|
|
234
510
|
</StyledDialogBody>
|
|
235
|
-
<
|
|
511
|
+
<Footer style={{ padding: 0 }}>
|
|
512
|
+
<FooterHint>
|
|
513
|
+
<Icon icon="info-sign" size={13} color="#8F99A8" />
|
|
514
|
+
Click the spectra badge to choose which spectra each row targets
|
|
515
|
+
</FooterHint>
|
|
236
516
|
<Button
|
|
237
517
|
intent="success"
|
|
238
518
|
onClick={() => handleSubmit(saveHandler)()}
|
|
@@ -240,7 +520,7 @@ function InnerInformationPanel(props: InnerInformationPanelProps) {
|
|
|
240
520
|
>
|
|
241
521
|
Save meta
|
|
242
522
|
</Button>
|
|
243
|
-
</
|
|
523
|
+
</Footer>
|
|
244
524
|
</>
|
|
245
525
|
);
|
|
246
526
|
}
|
|
@@ -6,7 +6,7 @@ import type { InfoPanelData } from 'react-science/ui';
|
|
|
6
6
|
import { InfoPanel, Toolbar } from 'react-science/ui';
|
|
7
7
|
|
|
8
8
|
import { usePreferences } from '../../context/PreferencesContext.js';
|
|
9
|
-
import {
|
|
9
|
+
import { useActiveSpectra } from '../../hooks/useActiveSpectra.ts';
|
|
10
10
|
import { useDialogToggle } from '../../hooks/useDialogToggle.js';
|
|
11
11
|
import useSpectrum from '../../hooks/useSpectrum.js';
|
|
12
12
|
import { booleanToString } from '../../utility/booleanToString.js';
|
|
@@ -28,14 +28,15 @@ function getToggleInformationBlock(
|
|
|
28
28
|
|
|
29
29
|
function getEditTooltip(isSpectrumSelected: boolean) {
|
|
30
30
|
if (!isSpectrumSelected) {
|
|
31
|
-
return 'Select a
|
|
31
|
+
return 'Select a one or more spectra to edit their metadata';
|
|
32
32
|
}
|
|
33
|
-
return 'Edit
|
|
33
|
+
return 'Edit metadata for the selected spectra';
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export function InformationPanel() {
|
|
37
37
|
const { info, meta, customInfo } = useSpectrum(emptyData);
|
|
38
|
-
const
|
|
38
|
+
const activeSpectra = useActiveSpectra();
|
|
39
|
+
|
|
39
40
|
const {
|
|
40
41
|
dispatch,
|
|
41
42
|
current: { infoBlock },
|
|
@@ -52,8 +53,8 @@ export function InformationPanel() {
|
|
|
52
53
|
[customInfo, info, meta],
|
|
53
54
|
);
|
|
54
55
|
|
|
55
|
-
const
|
|
56
|
-
intent: !
|
|
56
|
+
const tooltipProps: Omit<TooltipProps, 'content'> = {
|
|
57
|
+
intent: !activeSpectra ? 'danger' : 'none',
|
|
57
58
|
};
|
|
58
59
|
|
|
59
60
|
function handleToggleInformationBlock() {
|
|
@@ -73,24 +74,24 @@ export function InformationPanel() {
|
|
|
73
74
|
leftElement={
|
|
74
75
|
<Toolbar>
|
|
75
76
|
<Toolbar.Item
|
|
76
|
-
disabled={!
|
|
77
|
-
tooltipProps={
|
|
77
|
+
disabled={!activeSpectra || activeSpectra.length > 1}
|
|
78
|
+
tooltipProps={tooltipProps}
|
|
78
79
|
icon={<TbTableShortcut />}
|
|
79
80
|
onClick={handleToggleInformationBlock}
|
|
80
81
|
active={infoBlock.visible}
|
|
81
82
|
tooltip={getToggleInformationBlock(
|
|
82
83
|
infoBlock.visible,
|
|
83
|
-
!!
|
|
84
|
+
!!activeSpectra,
|
|
84
85
|
)}
|
|
85
86
|
/>
|
|
86
87
|
<Toolbar.Item
|
|
87
|
-
disabled={!
|
|
88
|
-
tooltipProps={
|
|
88
|
+
disabled={!activeSpectra || activeSpectra.length === 0}
|
|
89
|
+
tooltipProps={tooltipProps}
|
|
89
90
|
icon={<FaRegEdit />}
|
|
90
91
|
onClick={() => {
|
|
91
92
|
openDialog('informationModal');
|
|
92
93
|
}}
|
|
93
|
-
tooltip={getEditTooltip(!!
|
|
94
|
+
tooltip={getEditTooltip(!!activeSpectra)}
|
|
94
95
|
/>
|
|
95
96
|
</Toolbar>
|
|
96
97
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Icon, Popover } from '@blueprintjs/core';
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
|
+
|
|
4
|
+
const MixedBadge = styled.div`
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
height: 100%;
|
|
9
|
+
color: #854f0b;
|
|
10
|
+
background: #faeeda;
|
|
11
|
+
border: 0.5px solid #ef9f27;
|
|
12
|
+
border-radius: 5px;
|
|
13
|
+
padding: 3px 5px;
|
|
14
|
+
cursor: default;
|
|
15
|
+
flex-shrink: 0;
|
|
16
|
+
`;
|
|
17
|
+
|
|
18
|
+
const MixedTooltipRow = styled.div`
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
gap: 8px;
|
|
22
|
+
padding: 3px 0;
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
border-bottom: 0.5px solid #f0f0f0;
|
|
25
|
+
|
|
26
|
+
&:last-child {
|
|
27
|
+
border-bottom: none;
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
|
|
31
|
+
const MixedTooltipValue = styled.span`
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
`;
|
|
34
|
+
|
|
35
|
+
const MixedTooltipHeader = styled.div`
|
|
36
|
+
font-size: 11px;
|
|
37
|
+
font-weight: 600;
|
|
38
|
+
color: #8f99a8;
|
|
39
|
+
margin-bottom: 6px;
|
|
40
|
+
`;
|
|
41
|
+
|
|
42
|
+
const MixedTooltipContent = styled.div`
|
|
43
|
+
padding: 8px 12px;
|
|
44
|
+
min-width: 200px;
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
interface MixedValuesBadgeProps {
|
|
48
|
+
values: Record<string, string>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function MixedValuesBadge({ values }: MixedValuesBadgeProps) {
|
|
52
|
+
if (!values) return null;
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<Popover
|
|
56
|
+
placement="bottom"
|
|
57
|
+
interactionKind="hover"
|
|
58
|
+
renderTarget={({ ref, ...targetProps }) => (
|
|
59
|
+
<MixedBadge ref={ref} {...targetProps}>
|
|
60
|
+
<Icon icon="changes" size={12} />
|
|
61
|
+
</MixedBadge>
|
|
62
|
+
)}
|
|
63
|
+
content={
|
|
64
|
+
<MixedTooltipContent>
|
|
65
|
+
<MixedTooltipHeader>Current values per spectrum</MixedTooltipHeader>
|
|
66
|
+
{Object.entries(values).map(([spectrumId, val]) => (
|
|
67
|
+
<MixedTooltipRow key={spectrumId}>
|
|
68
|
+
<MixedTooltipValue>
|
|
69
|
+
{val || <em style={{ color: '#adb5bd' }}>not set</em>}
|
|
70
|
+
</MixedTooltipValue>
|
|
71
|
+
</MixedTooltipRow>
|
|
72
|
+
))}
|
|
73
|
+
</MixedTooltipContent>
|
|
74
|
+
}
|
|
75
|
+
/>
|
|
76
|
+
);
|
|
77
|
+
}
|