nmrium 2.8.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +138 -133
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/ExclusionZoneAnnotation.js +1 -1
- package/lib/component/1d/ExclusionZoneAnnotation.js.map +1 -1
- package/lib/component/1d/ExclusionZonesAnnotations.js.map +1 -1
- package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +20 -21
- package/lib/component/1d/FloatPublicationString.js.map +1 -1
- package/lib/component/1d/FooterBanner.js +2 -2
- package/lib/component/1d/FooterBanner.js.map +1 -1
- package/lib/component/1d/Line.js +1 -1
- package/lib/component/1d/Line.js.map +1 -1
- package/lib/component/1d/SVGContent1D.js +3 -3
- package/lib/component/1d/SVGContent1D.js.map +1 -1
- package/lib/component/1d/SimilarityTree.js +2 -2
- package/lib/component/1d/SimilarityTree.js.map +1 -1
- package/lib/component/1d/SpectraLegends.d.ts +1 -2
- package/lib/component/1d/SpectraLegends.d.ts.map +1 -1
- package/lib/component/1d/SpectraLegends.js +3 -4
- package/lib/component/1d/SpectraLegends.js.map +1 -1
- package/lib/component/1d/baseline/BaselinePreview.js +4 -4
- package/lib/component/1d/baseline/BaselinePreview.js.map +1 -1
- package/lib/component/1d/database/DatabaseElements.d.ts +1 -2
- package/lib/component/1d/database/DatabaseElements.d.ts.map +1 -1
- package/lib/component/1d/database/DatabaseElements.js +1 -2
- package/lib/component/1d/database/DatabaseElements.js.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +3 -3
- package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
- package/lib/component/1d/inset/DraggableInset.d.ts +1 -1
- package/lib/component/1d/inset/DraggableInset.d.ts.map +1 -1
- package/lib/component/1d/inset/DraggableInset.js +4 -4
- package/lib/component/1d/inset/DraggableInset.js.map +1 -1
- package/lib/component/1d/inset/InsetProvider.d.ts +1 -1
- package/lib/component/1d/inset/InsetProvider.d.ts.map +1 -1
- package/lib/component/1d/inset/InsetProvider.js +4 -4
- package/lib/component/1d/inset/InsetProvider.js.map +1 -1
- package/lib/component/1d/inset/InsetViewerRoot.js +3 -3
- package/lib/component/1d/inset/InsetViewerRoot.js.map +1 -1
- package/lib/component/1d/inset/SpectraInsets.d.ts +0 -23
- package/lib/component/1d/inset/SpectraInsets.d.ts.map +1 -1
- package/lib/component/1d/inset/SpectraInsets.js +1 -1
- package/lib/component/1d/inset/SpectraInsets.js.map +1 -1
- package/lib/component/1d/integral/IntegralsSeries.js +1 -1
- package/lib/component/1d/integral/IntegralsSeries.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraph.js +2 -2
- package/lib/component/1d/jCouplingGraph/JGraph.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphContext.d.ts +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphContext.d.ts.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphContext.js +3 -4
- package/lib/component/1d/jCouplingGraph/JGraphContext.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.d.ts.map +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.js +1 -4
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplings.js +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplings.js.map +1 -1
- package/lib/component/1d/matrix/Stocsy.js +1 -2
- package/lib/component/1d/matrix/Stocsy.js.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.d.ts +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.js +6 -7
- package/lib/component/1d/peaks/PeakEditionManager.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
- package/lib/component/1d/peaks/Peaks.js +12 -15
- package/lib/component/1d/peaks/Peaks.js.map +1 -1
- package/lib/component/1d/peaks/PeaksShapes.d.ts +1 -2
- package/lib/component/1d/peaks/PeaksShapes.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeaksShapes.js +31 -17
- package/lib/component/1d/peaks/PeaksShapes.js.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts +1 -2
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js +2 -3
- package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
- package/lib/component/1d/plugin_chart_brush_tracker.js +1 -1
- package/lib/component/1d/plugin_chart_brush_tracker.js.map +1 -1
- package/lib/component/1d/plugin_svg_chart.d.ts +1 -1
- package/lib/component/1d/plugin_svg_chart.d.ts.map +1 -1
- package/lib/component/1d/plugin_svg_chart.js +16 -11
- package/lib/component/1d/plugin_svg_chart.js.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.js +4 -3
- package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
- package/lib/component/1d/ranges/Atoms.js +18 -17
- package/lib/component/1d/ranges/Atoms.js.map +1 -1
- package/lib/component/1d/ranges/FloatingRanges.d.ts.map +1 -1
- package/lib/component/1d/ranges/FloatingRanges.js +12 -14
- package/lib/component/1d/ranges/FloatingRanges.js.map +1 -1
- package/lib/component/1d/ranges/RangesIntegrals.d.ts +1 -2
- package/lib/component/1d/ranges/RangesIntegrals.d.ts.map +1 -1
- package/lib/component/1d/ranges/RangesIntegrals.js +2 -3
- package/lib/component/1d/ranges/RangesIntegrals.js.map +1 -1
- package/lib/component/1d/tool/BaseLine.d.ts +1 -2
- package/lib/component/1d/tool/BaseLine.d.ts.map +1 -1
- package/lib/component/1d/tool/BaseLine.js +2 -3
- package/lib/component/1d/tool/BaseLine.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.d.ts.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js +3 -3
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js.map +1 -1
- package/lib/component/1d-2d/components/RangeIndicator.d.ts +2 -1
- package/lib/component/1d-2d/components/RangeIndicator.d.ts.map +1 -1
- package/lib/component/1d-2d/components/RangeIndicator.js +2 -2
- package/lib/component/1d-2d/components/RangeIndicator.js.map +1 -1
- package/lib/component/1d-2d/components/SVGRootContainer.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SVGRootContainer.js +2 -2
- package/lib/component/1d-2d/components/SVGRootContainer.js.map +1 -1
- package/lib/component/1d-2d/components/Signals1D.js.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts +1 -2
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js +17 -16
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.js +2 -2
- package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
- package/lib/component/1d-2d/tools/CursorToolIcon.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/CursorToolIcon.js +21 -6
- package/lib/component/1d-2d/tools/CursorToolIcon.js.map +1 -1
- package/lib/component/1d-2d/tools/DistanceLine.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/DistanceLine.js +2 -4
- package/lib/component/1d-2d/tools/DistanceLine.js.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.js +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/Ranges1D.d.ts +0 -1
- package/lib/component/2d/1d-tracer/Ranges1D.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Ranges1D.js.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/Top1DChart.js +5 -5
- package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.js.map +1 -1
- package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.js +1 -1
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/FooterBanner.d.ts.map +1 -1
- package/lib/component/2d/FooterBanner.js +1 -1
- package/lib/component/2d/FooterBanner.js.map +1 -1
- package/lib/component/2d/IndirectAxis2D.js +1 -1
- package/lib/component/2d/IndirectAxis2D.js.map +1 -1
- package/lib/component/2d/SlicingView.js +2 -2
- package/lib/component/2d/SlicingView.js.map +1 -1
- package/lib/component/2d/Viewer2D.js +1 -1
- package/lib/component/2d/Viewer2D.js.map +1 -1
- package/lib/component/2d/tools/PivotIndicator.d.ts.map +1 -1
- package/lib/component/2d/tools/PivotIndicator.js +1 -1
- package/lib/component/2d/tools/PivotIndicator.js.map +1 -1
- package/lib/component/2d/utilities/scale.js +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +6 -6
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/Zone.js +4 -4
- package/lib/component/2d/zones/Zone.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js +21 -17
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +10 -10
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.d.ts +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js +5 -6
- package/lib/component/EventsTrackers/MouseTracker.js.map +1 -1
- package/lib/component/EventsTrackers/brush_tracker.types.d.ts +12 -4
- package/lib/component/EventsTrackers/brush_tracker.types.d.ts.map +1 -1
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.d.ts +1 -1
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.d.ts.map +1 -1
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.js +3 -4
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.js.map +1 -1
- package/lib/component/SVGTable.d.ts.map +1 -1
- package/lib/component/SVGTable.js +4 -4
- package/lib/component/SVGTable.js.map +1 -1
- package/lib/component/assignment/AssignmentProvider.d.ts.map +1 -1
- package/lib/component/assignment/AssignmentProvider.js +3 -5
- package/lib/component/assignment/AssignmentProvider.js.map +1 -1
- package/lib/component/assignment/AssignmentsContext.d.ts +3 -3
- package/lib/component/assignment/AssignmentsContext.d.ts.map +1 -1
- package/lib/component/assignment/AssignmentsContext.js +3 -3
- package/lib/component/assignment/AssignmentsContext.js.map +1 -1
- package/lib/component/assignment/utilities/getAssignments.js +4 -10
- package/lib/component/assignment/utilities/getAssignments.js.map +1 -1
- package/lib/component/context/ChartContext.d.ts +1 -1
- package/lib/component/context/ChartContext.d.ts.map +1 -1
- package/lib/component/context/ChartContext.js +3 -4
- package/lib/component/context/ChartContext.js.map +1 -1
- package/lib/component/context/CoreContext.d.ts +1 -1
- package/lib/component/context/CoreContext.d.ts.map +1 -1
- package/lib/component/context/CoreContext.js +3 -4
- package/lib/component/context/CoreContext.js.map +1 -1
- package/lib/component/context/DispatchContext.d.ts +1 -1
- package/lib/component/context/DispatchContext.d.ts.map +1 -1
- package/lib/component/context/DispatchContext.js +3 -4
- package/lib/component/context/DispatchContext.js.map +1 -1
- package/lib/component/context/FilterSyncOptionsContext.js +3 -3
- package/lib/component/context/FilterSyncOptionsContext.js.map +1 -1
- package/lib/component/context/GlobalContext.d.ts +1 -1
- package/lib/component/context/GlobalContext.d.ts.map +1 -1
- package/lib/component/context/GlobalContext.js +3 -4
- package/lib/component/context/GlobalContext.js.map +1 -1
- package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
- package/lib/component/context/KeyModifierContext.js +3 -3
- package/lib/component/context/KeyModifierContext.js.map +1 -1
- package/lib/component/context/LoaderContext.d.ts +1 -1
- package/lib/component/context/LoaderContext.d.ts.map +1 -1
- package/lib/component/context/LoaderContext.js +4 -7
- package/lib/component/context/LoaderContext.js.map +1 -1
- package/lib/component/context/LoggerContext.js +4 -4
- package/lib/component/context/LoggerContext.js.map +1 -1
- package/lib/component/context/PreferencesContext.d.ts +1 -1
- package/lib/component/context/PreferencesContext.d.ts.map +1 -1
- package/lib/component/context/PreferencesContext.js +4 -5
- package/lib/component/context/PreferencesContext.js.map +1 -1
- package/lib/component/context/ScaleContext.d.ts +1 -1
- package/lib/component/context/ScaleContext.d.ts.map +1 -1
- package/lib/component/context/ScaleContext.js +3 -3
- package/lib/component/context/ScaleContext.js.map +1 -1
- package/lib/component/context/ShareDataContext.d.ts.map +1 -1
- package/lib/component/context/ShareDataContext.js +3 -3
- package/lib/component/context/ShareDataContext.js.map +1 -1
- package/lib/component/context/SortSpectraContext.d.ts.map +1 -1
- package/lib/component/context/SortSpectraContext.js +7 -8
- package/lib/component/context/SortSpectraContext.js.map +1 -1
- package/lib/component/context/ToasterContext.d.ts.map +1 -1
- package/lib/component/context/ToasterContext.js +3 -3
- package/lib/component/context/ToasterContext.js.map +1 -1
- package/lib/component/context/TopicMoleculeContext.js +3 -3
- package/lib/component/context/TopicMoleculeContext.js.map +1 -1
- package/lib/component/context/processings_mutations_context.api.d.ts +3 -2
- package/lib/component/context/processings_mutations_context.api.d.ts.map +1 -1
- package/lib/component/context/processings_mutations_context.api.js +86 -16
- package/lib/component/context/processings_mutations_context.api.js.map +1 -1
- package/lib/component/context/processings_mutations_context.js +3 -3
- package/lib/component/context/processings_mutations_context.js.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js +13 -13
- package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
- package/lib/component/elements/Alert.d.ts.map +1 -1
- package/lib/component/elements/Alert.js +6 -4
- package/lib/component/elements/Alert.js.map +1 -1
- package/lib/component/elements/Anchor.d.ts +36 -12
- package/lib/component/elements/Anchor.d.ts.map +1 -1
- package/lib/component/elements/Anchor.js.map +1 -1
- package/lib/component/elements/Button.js +1 -1
- package/lib/component/elements/Button.js.map +1 -1
- package/lib/component/elements/D3Axis.d.ts +3 -2
- package/lib/component/elements/D3Axis.d.ts.map +1 -1
- package/lib/component/elements/D3Axis.js +3 -4
- package/lib/component/elements/D3Axis.js.map +1 -1
- package/lib/component/elements/DialogManager.d.ts +3 -1
- package/lib/component/elements/DialogManager.d.ts.map +1 -1
- package/lib/component/elements/DialogManager.js +5 -5
- package/lib/component/elements/DialogManager.js.map +1 -1
- package/lib/component/elements/DraggableDialog.js +11 -11
- package/lib/component/elements/DraggableDialog.js.map +1 -1
- package/lib/component/elements/EditableColumn.d.ts +8 -3
- package/lib/component/elements/EditableColumn.d.ts.map +1 -1
- package/lib/component/elements/EditableColumn.js +40 -28
- package/lib/component/elements/EditableColumn.js.map +1 -1
- package/lib/component/elements/Footer.d.ts +9 -3
- package/lib/component/elements/Footer.d.ts.map +1 -1
- package/lib/component/elements/Footer.js.map +1 -1
- package/lib/component/elements/Input.d.ts +4 -3
- package/lib/component/elements/Input.d.ts.map +1 -1
- package/lib/component/elements/Input.js +9 -10
- package/lib/component/elements/Input.js.map +1 -1
- package/lib/component/elements/Input2.d.ts +4 -3
- package/lib/component/elements/Input2.d.ts.map +1 -1
- package/lib/component/elements/Input2.js +7 -9
- package/lib/component/elements/Input2.js.map +1 -1
- package/lib/component/elements/InputRange.d.ts +4 -3
- package/lib/component/elements/InputRange.d.ts.map +1 -1
- package/lib/component/elements/InputRange.js +10 -10
- package/lib/component/elements/InputRange.js.map +1 -1
- package/lib/component/elements/IsotopesViewer.js +1 -1
- package/lib/component/elements/IsotopesViewer.js.map +1 -1
- package/lib/component/elements/NumberInput2.d.ts +4 -3
- package/lib/component/elements/NumberInput2.d.ts.map +1 -1
- package/lib/component/elements/NumberInput2.js +5 -7
- package/lib/component/elements/NumberInput2.js.map +1 -1
- package/lib/component/elements/NumberInput2Controller.d.ts.map +1 -1
- package/lib/component/elements/NumberInput2Controller.js +17 -9
- package/lib/component/elements/NumberInput2Controller.js.map +1 -1
- package/lib/component/elements/ResizerWithScale.js +1 -1
- package/lib/component/elements/ResizerWithScale.js.map +1 -1
- package/lib/component/elements/SVGGroup.d.ts.map +1 -1
- package/lib/component/elements/SVGGroup.js +16 -15
- package/lib/component/elements/SVGGroup.js.map +1 -1
- package/lib/component/elements/Scroller.d.ts.map +1 -1
- package/lib/component/elements/Scroller.js +3 -4
- package/lib/component/elements/Scroller.js.map +1 -1
- package/lib/component/elements/Sections.js +3 -3
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/Select.d.ts +4 -3
- package/lib/component/elements/Select.d.ts.map +1 -1
- package/lib/component/elements/Select.js +3 -5
- package/lib/component/elements/Select.js.map +1 -1
- package/lib/component/elements/Select2.d.ts +3 -5
- package/lib/component/elements/Select2.d.ts.map +1 -1
- package/lib/component/elements/Select2.js +3 -4
- package/lib/component/elements/Select2.js.map +1 -1
- package/lib/component/elements/Tab/Tab.d.ts.map +1 -1
- package/lib/component/elements/Tab/Tab.js +2 -2
- package/lib/component/elements/Tab/Tab.js.map +1 -1
- package/lib/component/elements/Tab/Tabs.d.ts.map +1 -1
- package/lib/component/elements/Tab/Tabs.js +0 -2
- package/lib/component/elements/Tab/Tabs.js.map +1 -1
- package/lib/component/elements/TabsProvider.d.ts.map +1 -1
- package/lib/component/elements/TabsProvider.js +3 -3
- package/lib/component/elements/TabsProvider.js.map +1 -1
- package/lib/component/elements/custom-color-picker.d.ts +3 -0
- package/lib/component/elements/custom-color-picker.d.ts.map +1 -0
- package/lib/component/elements/custom-color-picker.js +158 -0
- package/lib/component/elements/custom-color-picker.js.map +1 -0
- package/lib/component/elements/draggable/useDraggable.js +4 -4
- package/lib/component/elements/draggable/useDraggable.js.map +1 -1
- package/lib/component/elements/export/ExportManager.d.ts +1 -1
- package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
- package/lib/component/elements/export/ExportManager.js +5 -5
- package/lib/component/elements/export/ExportManager.js.map +1 -1
- package/lib/component/elements/export/ExportSettingsProvider.d.ts.map +1 -1
- package/lib/component/elements/export/ExportSettingsProvider.js +3 -3
- package/lib/component/elements/export/ExportSettingsProvider.js.map +1 -1
- package/lib/component/elements/export/RenderDetector.d.ts.map +1 -1
- package/lib/component/elements/export/RenderDetector.js +1 -0
- package/lib/component/elements/export/RenderDetector.js.map +1 -1
- package/lib/component/elements/print/PrintContent.js +3 -2
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/elements/print/PrintProvider.d.ts.map +1 -1
- package/lib/component/elements/print/PrintProvider.js +6 -6
- package/lib/component/elements/print/PrintProvider.js.map +1 -1
- package/lib/component/elements/resizer/SVGResizer.d.ts.map +1 -1
- package/lib/component/elements/resizer/SVGResizer.js +0 -1
- package/lib/component/elements/resizer/SVGResizer.js.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_context.d.ts +1 -1
- package/lib/component/elements/tanstack_table/elements/table_context.d.ts.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_context.js +3 -4
- package/lib/component/elements/tanstack_table/elements/table_context.js.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_header.d.ts +1 -0
- package/lib/component/elements/tanstack_table/elements/table_header.d.ts.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_header.js +2 -2
- package/lib/component/elements/tanstack_table/elements/table_header.js.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_row.d.ts +2 -2
- package/lib/component/elements/tanstack_table/elements/table_row.d.ts.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_row.js +41 -21
- package/lib/component/elements/tanstack_table/elements/table_row.js.map +1 -1
- package/lib/component/elements/tanstack_table/elements/useRowReorder.d.ts +10 -0
- package/lib/component/elements/tanstack_table/elements/useRowReorder.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/elements/useRowReorder.js +87 -0
- package/lib/component/elements/tanstack_table/elements/useRowReorder.js.map +1 -0
- package/lib/component/elements/tanstack_table/table.d.ts +6 -5
- package/lib/component/elements/tanstack_table/table.d.ts.map +1 -1
- package/lib/component/elements/tanstack_table/table.js +11 -9
- package/lib/component/elements/tanstack_table/table.js.map +1 -1
- package/lib/component/elements/tanstack_table/types.d.ts +3 -0
- package/lib/component/elements/tanstack_table/types.d.ts.map +1 -1
- package/lib/component/elements/utilities/transferStyles.d.ts.map +1 -1
- package/lib/component/elements/utilities/transferStyles.js +1 -3
- package/lib/component/elements/utilities/transferStyles.js.map +1 -1
- package/lib/component/header/Header.d.ts.map +1 -1
- package/lib/component/header/Header.js +4 -4
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/highlight/index.d.ts +6 -3
- package/lib/component/highlight/index.d.ts.map +1 -1
- package/lib/component/highlight/index.js +12 -9
- package/lib/component/highlight/index.js.map +1 -1
- package/lib/component/hooks/reduce2DSpectrum.js +3 -3
- package/lib/component/hooks/reduce2DSpectrum.js.map +1 -1
- package/lib/component/hooks/useCombinedRefs.d.ts +2 -2
- package/lib/component/hooks/useCombinedRefs.d.ts.map +1 -1
- package/lib/component/hooks/useCombinedRefs.js +1 -4
- package/lib/component/hooks/useCombinedRefs.js.map +1 -1
- package/lib/component/hooks/useDialogToggle.js +1 -1
- package/lib/component/hooks/useDialogToggle.js.map +1 -1
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +4 -6
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/useSaveSettings.js +1 -1
- package/lib/component/hooks/useSaveSettings.js.map +1 -1
- package/lib/component/hooks/useSelectedSpectra.d.ts.map +1 -1
- package/lib/component/hooks/useSelectedSpectra.js +1 -1
- package/lib/component/hooks/useSelectedSpectra.js.map +1 -1
- package/lib/component/hooks/useTableSortBy.d.ts.map +1 -1
- package/lib/component/hooks/useTableSortBy.js +1 -1
- package/lib/component/hooks/useTableSortBy.js.map +1 -1
- package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
- package/lib/component/hooks/useTextMetrics.js +1 -0
- package/lib/component/hooks/useTextMetrics.js.map +1 -1
- package/lib/component/hooks/use_axis_unit.d.ts +3 -3
- package/lib/component/hooks/use_gridlines_config.d.ts.map +1 -1
- package/lib/component/hooks/use_gridlines_config.js +2 -4
- package/lib/component/hooks/use_gridlines_config.js.map +1 -1
- package/lib/component/loader/DropZone.js +2 -2
- package/lib/component/loader/DropZone.js.map +1 -1
- package/lib/component/loader/Spinner.js +3 -3
- package/lib/component/loader/Spinner.js.map +1 -1
- package/lib/component/loader/SpinnerContext.d.ts +1 -2
- package/lib/component/loader/SpinnerContext.d.ts.map +1 -1
- package/lib/component/loader/SpinnerContext.js +1 -2
- package/lib/component/loader/SpinnerContext.js.map +1 -1
- package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
- package/lib/component/loader/useLoadFiles.js +7 -9
- package/lib/component/loader/useLoadFiles.js.map +1 -1
- package/lib/component/main/InnerNMRium.d.ts +2 -2
- package/lib/component/main/InnerNMRium.d.ts.map +1 -1
- package/lib/component/main/InnerNMRium.js +15 -11
- package/lib/component/main/InnerNMRium.js.map +1 -1
- package/lib/component/main/InnerNMRiumContents.d.ts +6 -6
- package/lib/component/main/InnerNMRiumContents.d.ts.map +1 -1
- package/lib/component/main/NMRium.d.ts +10 -2
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRium.js +4 -4
- package/lib/component/main/NMRium.js.map +1 -1
- package/lib/component/main/NMRiumRefAPI.d.ts +2 -2
- package/lib/component/main/NMRiumRefAPI.d.ts.map +1 -1
- package/lib/component/main/NMRiumRefAPI.js.map +1 -1
- package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
- package/lib/component/main/NMRiumStateProvider.js +7 -5
- package/lib/component/main/NMRiumStateProvider.js.map +1 -1
- package/lib/component/main/NMRiumViewer.d.ts +1 -1
- package/lib/component/main/NMRiumViewer.d.ts.map +1 -1
- package/lib/component/main/NMRiumViewer.js +2 -1
- 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/main/types.d.ts +2 -2
- package/lib/component/main/types.d.ts.map +1 -1
- package/lib/component/modal/AboutPredictionModal.d.ts +1 -2
- package/lib/component/modal/AboutPredictionModal.d.ts.map +1 -1
- package/lib/component/modal/AboutPredictionModal.js +1 -2
- package/lib/component/modal/AboutPredictionModal.js.map +1 -1
- package/lib/component/modal/AboutSpectrumSimulationModal.d.ts +1 -2
- package/lib/component/modal/AboutSpectrumSimulationModal.d.ts.map +1 -1
- package/lib/component/modal/AboutSpectrumSimulationModal.js +1 -2
- package/lib/component/modal/AboutSpectrumSimulationModal.js.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.js +5 -0
- package/lib/component/modal/ImportPublicationStringModal.js.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.map +1 -1
- package/lib/component/modal/LogsHistoryModal.js +2 -2
- package/lib/component/modal/LogsHistoryModal.js.map +1 -1
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js +1 -1
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.d.ts +1 -2
- package/lib/component/modal/aboutUs/AboutUsModal.d.ts.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.js +1 -2
- package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
- package/lib/component/modal/changeSum/SelectMolecule.js +2 -2
- package/lib/component/modal/changeSum/SelectMolecule.js.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +4 -7
- package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.js +4 -4
- package/lib/component/modal/editRange/forms/components/SignalsContent.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js +2 -6
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
- package/lib/component/modal/editZone/SignalsForm.js +2 -2
- package/lib/component/modal/editZone/SignalsForm.js.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js +2 -5
- package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +81 -81
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.js +3 -3
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +81 -81
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +81 -81
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +56 -55
- 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_footer.js +2 -3
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +9 -9
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js +5 -2
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +3 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +5 -2
- 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 +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js +2 -4
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js +2 -3
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +2 -3
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +28 -28
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +13 -11
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +9 -4
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +6 -6
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +27 -27
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.js.map +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.d.ts +1 -2
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.d.ts.map +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +1 -2
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js.map +1 -1
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +1 -1
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +6 -6
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts +5 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +4 -3
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js +6 -6
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +0 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +11 -14
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.d.ts +1 -0
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js +30 -6
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.d.ts +2 -2
- package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts +2 -2
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js +2 -2
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts +5 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +4 -3
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
- package/lib/component/panels/PeaksPanel/peaksToTSV.js +1 -4
- package/lib/component/panels/PeaksPanel/peaksToTSV.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js +2 -2
- package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.d.ts +6 -2
- package/lib/component/panels/RangesPanel/RangesPreferences.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.js +4 -3
- package/lib/component/panels/RangesPanel/RangesPreferences.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts +0 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts +0 -3
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js +33 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPreferences.d.ts +7 -1
- package/lib/component/panels/SpectraPanel/SpectraPreferences.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPreferences.js +6 -5
- package/lib/component/panels/SpectraPanel/SpectraPreferences.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +19 -12
- package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTabs.js +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTabs.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectrumListPanel.js +1 -1
- package/lib/component/panels/SpectraPanel/SpectrumListPanel.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.js +15 -7
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js +10 -7
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.js +12 -8
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +18 -19
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +9 -11
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +22 -19
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +6 -7
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +2 -2
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +10 -13
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +8 -10
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js +3 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +8 -9
- package/lib/component/panels/ZonesPanel/ZonesPanel.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts +5 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js +4 -3
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js.map +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/ZonesTable.js +3 -3
- package/lib/component/panels/ZonesPanel/ZonesTable.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +2 -2
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +4 -5
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js.map +1 -1
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.js +1 -1
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseInfo.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseInfo.js +2 -0
- package/lib/component/panels/databasePanel/DatabaseInfo.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +5 -4
- package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.d.ts +6 -2
- package/lib/component/panels/databasePanel/DatabasePreferences.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.js +4 -3
- package/lib/component/panels/databasePanel/DatabasePreferences.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts.map +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +3 -3
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +12 -12
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.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 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.d.ts +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js +2 -4
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js +4 -7
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +3 -5
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
- package/lib/component/panels/filtersPanel/processings/processing_item.js +1 -1
- package/lib/component/panels/filtersPanel/processings/processing_item.js.map +1 -1
- package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts +2 -6
- package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/processings/use_live_edit.js +9 -9
- package/lib/component/panels/filtersPanel/processings/use_live_edit.js.map +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.d.ts.map +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.js +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.js.map +1 -1
- package/lib/component/panels/hooks/useGetPanelOptions.js +5 -5
- package/lib/component/panels/hooks/useGetPanelOptions.js.map +1 -1
- package/lib/component/panels/informationPanel/SpectraPicker.js +1 -1
- package/lib/component/panels/informationPanel/SpectraPicker.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js +22 -17
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.d.ts +5 -2
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js +4 -5
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.d.ts +4 -2
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js +4 -8
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +5 -5
- package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPreferences.d.ts +6 -2
- package/lib/component/panels/predictionPanel/PredictionPreferences.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPreferences.js +4 -3
- package/lib/component/panels/predictionPanel/PredictionPreferences.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.d.ts +5 -2
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.d.ts.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js +2 -3
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js.map +1 -1
- package/lib/component/reducer/IgnoreActions.d.ts +1 -2
- package/lib/component/reducer/IgnoreActions.d.ts.map +1 -1
- package/lib/component/reducer/IgnoreActions.js +2 -5
- package/lib/component/reducer/IgnoreActions.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts +6 -7
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +3 -1
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.d.ts +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.js +15 -34
- package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js +4 -4
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +43 -43
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +48 -52
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts +1 -2
- package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/InsetActions.js +5 -6
- package/lib/component/reducer/actions/InsetActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadAction.d.ts +1 -1
- package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadAction.js +37 -71
- package/lib/component/reducer/actions/LoadAction.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +13 -13
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +14 -18
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts +11 -11
- package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.js +12 -14
- package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.d.ts +4 -4
- package/lib/component/reducer/actions/PreferencesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.js +4 -5
- package/lib/component/reducer/actions/PreferencesActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +1 -0
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +36 -12
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +20 -16
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +35 -30
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts +18 -18
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +18 -19
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts +4 -4
- package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +26 -26
- package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
- package/lib/component/reducer/actions/processings_actions.d.ts +1 -0
- package/lib/component/reducer/actions/processings_actions.d.ts.map +1 -1
- package/lib/component/reducer/actions/processings_actions.js +10 -8
- package/lib/component/reducer/actions/processings_actions.js.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +2 -2
- package/lib/component/reducer/helper/Zoom1DManager.js.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js +1 -1
- package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +3 -5
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
- package/lib/component/useWatchForm.d.ts.map +1 -1
- package/lib/component/useWatchForm.js +0 -1
- package/lib/component/useWatchForm.js.map +1 -1
- package/lib/component/utility/Events.d.ts +4 -4
- package/lib/component/utility/Events.d.ts.map +1 -1
- package/lib/component/utility/Events.js +0 -1
- package/lib/component/utility/Events.js.map +1 -1
- package/lib/component/utility/core_slots/core_operator_chart_mouse_icon.d.ts +9 -0
- package/lib/component/utility/core_slots/core_operator_chart_mouse_icon.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_mouse_icon.js +14 -0
- package/lib/component/utility/core_slots/core_operator_chart_mouse_icon.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_expanded.d.ts +1 -1
- package/lib/component/utility/core_slots/core_operator_expanded.d.ts.map +1 -1
- package/lib/component/utility/core_slots/core_slot.d.ts +1 -1
- package/lib/component/utility/core_slots/core_slot.d.ts.map +1 -1
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js +15 -18
- package/lib/component/utility/export.js.map +1 -1
- package/lib/component/utility/filterDatabaseInfoEntry.js +1 -1
- package/lib/component/utility/filterDatabaseInfoEntry.js.map +1 -1
- package/lib/data/PredictionManager.js +7 -8
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/SpectraManager.d.ts +3 -1
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.js +1 -1
- package/lib/data/SpectraManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.js +7 -4
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +9 -9
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +2 -0
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts +1 -0
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js.map +1 -1
- package/lib/data/data1d/database.js +3 -3
- package/lib/data/data1d/database.js.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +7 -7
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +6 -5
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js +2 -2
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js +1 -2
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js +2 -2
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.js +5 -5
- package/lib/data/data2d/Spectrum2D/get2DColor.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +2 -0
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/data/matrixGeneration.d.ts.map +1 -1
- package/lib/data/matrixGeneration.js +3 -6
- package/lib/data/matrixGeneration.js.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.js +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.js.map +1 -1
- package/lib/data/utilities/RangeUtilities.d.ts +1 -1
- package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts.map +1 -1
- package/lib/data/utilities/ZoneUtilities.js +7 -31
- package/lib/data/utilities/ZoneUtilities.js.map +1 -1
- package/lib/data/utilities/generateNumbersPowerOfX.js +1 -1
- package/lib/data/utilities/generateNumbersPowerOfX.js.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +51 -51
- package/src/component/1d/BrushTracker1D.tsx +153 -151
- package/src/component/1d/ExclusionZoneAnnotation.tsx +1 -1
- package/src/component/1d/ExclusionZonesAnnotations.tsx +2 -2
- package/src/component/1d/FloatPublicationString.tsx +34 -30
- package/src/component/1d/FooterBanner.tsx +4 -4
- package/src/component/1d/Line.tsx +1 -1
- package/src/component/1d/SVGContent1D.tsx +3 -3
- package/src/component/1d/SimilarityTree.tsx +2 -2
- package/src/component/1d/SpectraLegends.tsx +6 -7
- package/src/component/1d/baseline/BaselinePreview.tsx +5 -5
- package/src/component/1d/database/DatabaseElements.tsx +1 -3
- package/src/component/1d/database/DatabaseSpectrum.tsx +3 -3
- package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +2 -2
- package/src/component/1d/inset/DraggableInset.tsx +6 -5
- package/src/component/1d/inset/InsetProvider.tsx +5 -8
- package/src/component/1d/inset/InsetViewerRoot.tsx +4 -4
- package/src/component/1d/inset/SpectraInsets.tsx +1 -32
- package/src/component/1d/integral/IntegralsSeries.tsx +1 -1
- package/src/component/1d/jCouplingGraph/JGraph.tsx +3 -3
- package/src/component/1d/jCouplingGraph/JGraphContext.tsx +3 -5
- package/src/component/1d/jCouplingGraph/JsCouplingLinks.tsx +4 -5
- package/src/component/1d/jCouplingGraph/JsCouplings.tsx +1 -1
- package/src/component/1d/matrix/Stocsy.tsx +1 -2
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +2 -1
- package/src/component/1d/peaks/PeakEditionManager.tsx +7 -14
- package/src/component/1d/peaks/Peaks.tsx +14 -32
- package/src/component/1d/peaks/PeaksShapes.tsx +62 -40
- package/src/component/1d/peaks/usePeakShapesPath.ts +2 -4
- package/src/component/1d/plugin_chart_brush_tracker.tsx +1 -1
- package/src/component/1d/plugin_svg_chart.tsx +26 -15
- package/src/component/1d/ranges/AssignmentLabel.tsx +4 -3
- package/src/component/1d/ranges/Atoms.tsx +19 -19
- package/src/component/1d/ranges/FloatingRanges.tsx +12 -13
- package/src/component/1d/ranges/RangesIntegrals.tsx +7 -10
- package/src/component/1d/tool/BaseLine.tsx +4 -4
- package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +3 -10
- package/src/component/1d-2d/components/RangeIndicator.tsx +4 -3
- package/src/component/1d-2d/components/SVGRootContainer.tsx +2 -6
- package/src/component/1d-2d/components/Signals1D.tsx +3 -3
- package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +32 -24
- package/src/component/1d-2d/tools/BrushXY.tsx +2 -2
- package/src/component/1d-2d/tools/CursorToolIcon.tsx +36 -16
- package/src/component/1d-2d/tools/DistanceLine.tsx +2 -4
- package/src/component/2d/1d-tracer/Left1DChart.tsx +1 -5
- package/src/component/2d/1d-tracer/Ranges1D.tsx +0 -1
- package/src/component/2d/1d-tracer/Top1DChart.tsx +6 -9
- package/src/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.tsx +4 -2
- package/src/component/2d/BrushTracker2D.tsx +2 -1
- package/src/component/2d/FooterBanner.tsx +3 -2
- package/src/component/2d/IndirectAxis2D.tsx +1 -1
- package/src/component/2d/SlicingView.tsx +2 -2
- package/src/component/2d/Viewer2D.tsx +2 -2
- package/src/component/2d/tools/PivotIndicator.tsx +1 -3
- package/src/component/2d/utilities/scale.ts +1 -1
- package/src/component/2d/zones/SignalsGuideLines.tsx +6 -6
- package/src/component/2d/zones/Zone.tsx +4 -4
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +30 -19
- package/src/component/EventsTrackers/BrushTracker.tsx +15 -18
- package/src/component/EventsTrackers/KeysListenerTracker.tsx +1 -1
- package/src/component/EventsTrackers/MouseTracker.tsx +6 -7
- package/src/component/EventsTrackers/brush_tracker.types.ts +12 -4
- package/src/component/EventsTrackers/brush_tracker_events_listeners.ts +3 -6
- package/src/component/SVGTable.tsx +6 -5
- package/src/component/assignment/AssignmentProvider.tsx +5 -11
- package/src/component/assignment/AssignmentsContext.ts +7 -4
- package/src/component/assignment/utilities/getAssignments.ts +4 -9
- package/src/component/context/ChartContext.tsx +3 -4
- package/src/component/context/CoreContext.tsx +4 -4
- package/src/component/context/DispatchContext.tsx +3 -5
- package/src/component/context/FilterSyncOptionsContext.tsx +4 -4
- package/src/component/context/GlobalContext.tsx +3 -5
- package/src/component/context/KeyModifierContext.tsx +3 -7
- package/src/component/context/LoaderContext.tsx +4 -9
- package/src/component/context/LoggerContext.tsx +5 -5
- package/src/component/context/PreferencesContext.tsx +6 -5
- package/src/component/context/ScaleContext.tsx +5 -6
- package/src/component/context/ShareDataContext.tsx +3 -7
- package/src/component/context/SortSpectraContext.tsx +7 -20
- package/src/component/context/ToasterContext.tsx +3 -5
- package/src/component/context/TopicMoleculeContext.tsx +4 -4
- package/src/component/context/processings_mutations_context.api.ts +122 -21
- package/src/component/context/processings_mutations_context.tsx +4 -4
- package/src/component/elements/ActionsButtonsPopover.tsx +14 -13
- package/src/component/elements/Alert.tsx +4 -5
- package/src/component/elements/Anchor.tsx +43 -14
- package/src/component/elements/Button.tsx +1 -1
- package/src/component/elements/D3Axis.tsx +65 -66
- package/src/component/elements/DialogManager.tsx +10 -10
- package/src/component/elements/DraggableDialog.tsx +13 -14
- package/src/component/elements/EditableColumn.tsx +99 -70
- package/src/component/elements/Footer.tsx +9 -3
- package/src/component/elements/Input.tsx +101 -107
- package/src/component/elements/Input2.tsx +17 -21
- package/src/component/elements/InputRange.tsx +11 -11
- package/src/component/elements/IsotopesViewer.tsx +1 -1
- package/src/component/elements/NumberInput2.tsx +9 -18
- package/src/component/elements/NumberInput2Controller.tsx +23 -10
- package/src/component/elements/ResizerWithScale.tsx +1 -1
- package/src/component/elements/SVGGroup.tsx +18 -15
- package/src/component/elements/Scroller.tsx +3 -5
- package/src/component/elements/Sections.tsx +4 -4
- package/src/component/elements/Select.tsx +5 -10
- package/src/component/elements/Select2.tsx +5 -10
- package/src/component/elements/Tab/Tab.tsx +2 -2
- package/src/component/elements/Tab/Tabs.tsx +0 -2
- package/src/component/elements/TabsProvider.tsx +3 -5
- package/src/component/elements/custom-color-picker.tsx +230 -0
- package/src/component/elements/draggable/useDraggable.ts +4 -4
- package/src/component/elements/export/ExportManager.tsx +6 -10
- package/src/component/elements/export/ExportSettingsProvider.tsx +3 -5
- package/src/component/elements/export/RenderDetector.tsx +1 -0
- package/src/component/elements/print/PrintContent.tsx +3 -2
- package/src/component/elements/print/PrintProvider.tsx +6 -8
- package/src/component/elements/resizer/SVGResizer.tsx +0 -1
- package/src/component/elements/tanstack_table/elements/table_context.ts +4 -5
- package/src/component/elements/tanstack_table/elements/table_header.tsx +3 -1
- package/src/component/elements/tanstack_table/elements/table_row.tsx +44 -4
- package/src/component/elements/tanstack_table/elements/useRowReorder.ts +130 -0
- package/src/component/elements/tanstack_table/table.tsx +21 -11
- package/src/component/elements/tanstack_table/types.ts +9 -0
- package/src/component/elements/utilities/transferStyles.ts +1 -3
- package/src/component/header/Header.tsx +6 -5
- package/src/component/highlight/index.tsx +24 -16
- package/src/component/hooks/reduce2DSpectrum.ts +3 -3
- package/src/component/hooks/useCombinedRefs.ts +3 -6
- package/src/component/hooks/useDialogToggle.ts +1 -1
- package/src/component/hooks/useExport.tsx +4 -6
- package/src/component/hooks/useSaveSettings.tsx +1 -1
- package/src/component/hooks/useSelectedSpectra.ts +1 -2
- package/src/component/hooks/useTableSortBy.tsx +2 -1
- package/src/component/hooks/useTextMetrics.ts +1 -0
- package/src/component/hooks/use_gridlines_config.ts +2 -4
- package/src/component/loader/DropZone.tsx +3 -3
- package/src/component/loader/Spinner.tsx +3 -3
- package/src/component/loader/SpinnerContext.tsx +1 -3
- package/src/component/loader/useLoadFiles.ts +8 -9
- package/src/component/main/InnerNMRium.tsx +30 -25
- package/src/component/main/InnerNMRiumContents.tsx +6 -6
- package/src/component/main/NMRium.tsx +12 -8
- package/src/component/main/NMRiumRefAPI.ts +3 -3
- package/src/component/main/NMRiumStateProvider.tsx +10 -8
- package/src/component/main/NMRiumViewer.tsx +4 -2
- package/src/component/main/NMRiumViewerWrapper.tsx +1 -1
- package/src/component/main/types.ts +3 -3
- package/src/component/modal/AboutPredictionModal.tsx +1 -3
- package/src/component/modal/AboutSpectrumSimulationModal.tsx +1 -3
- package/src/component/modal/ImportPublicationStringModal.tsx +7 -0
- package/src/component/modal/LoadJCAMPModal.tsx +1 -1
- package/src/component/modal/LogsHistoryModal.tsx +4 -2
- package/src/component/modal/MoleculeAutoLabelsDatabaseModal.tsx +1 -1
- package/src/component/modal/MultipletAnalysisModal.tsx +1 -1
- package/src/component/modal/PublicationStringModal.tsx +1 -1
- package/src/component/modal/aboutUs/AboutUsModal.tsx +1 -3
- package/src/component/modal/changeSum/SelectMolecule.tsx +2 -2
- package/src/component/modal/editRange/EditRangeModal.tsx +8 -7
- package/src/component/modal/editRange/forms/components/SignalsContent.tsx +4 -8
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +3 -13
- package/src/component/modal/editZone/SignalsForm.tsx +2 -2
- package/src/component/modal/metaImportation/MetaImportationModal.tsx +3 -6
- package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +4 -4
- package/src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx +1 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.tsx +2 -3
- package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +5 -2
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +3 -1
- package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +5 -2
- package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +2 -4
- package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.tsx +2 -3
- package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +2 -3
- package/src/component/modal/setting/tanstack_general_settings/ui/table_section.tsx +2 -2
- package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +9 -4
- package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts +2 -5
- package/src/component/modal/setting/tanstack_general_settings/workspaces/actions.tsx +7 -9
- package/src/component/panels/AutomaticAssignment/AutomaticAssignment.tsx +1 -3
- package/src/component/panels/AutomaticAssignment/useAutoAssignments.ts +1 -1
- package/src/component/panels/IntegralsPanel/IntegralPanel.tsx +6 -6
- package/src/component/panels/IntegralsPanel/IntegralsPreferences.tsx +67 -64
- package/src/component/panels/MatrixGenerationPanel/FiltersOptions.tsx +7 -7
- package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +0 -1
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +1 -1
- package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +15 -14
- package/src/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.ts +40 -8
- package/src/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.ts +4 -2
- package/src/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.ts +4 -4
- package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +86 -82
- package/src/component/panels/PeaksPanel/peaksToTSV.ts +4 -4
- package/src/component/panels/RangesPanel/RangesPanel.tsx +2 -2
- package/src/component/panels/RangesPanel/RangesPreferences.tsx +52 -46
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +1 -6
- package/src/component/panels/RangesPanel/TableColumns/ActionsColumn.tsx +0 -1
- package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +53 -7
- package/src/component/panels/SpectraPanel/SpectraPreferences.tsx +11 -11
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +22 -14
- package/src/component/panels/SpectraPanel/SpectraTabs.tsx +2 -2
- package/src/component/panels/SpectraPanel/SpectrumListPanel.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +3 -2
- package/src/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.tsx +46 -27
- package/src/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.tsx +12 -10
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.tsx +38 -29
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +54 -59
- package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.tsx +9 -11
- package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.tsx +24 -22
- package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.tsx +8 -12
- package/src/component/panels/SummaryPanel/Overview.tsx +1 -1
- package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +2 -2
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +5 -9
- package/src/component/panels/SummaryPanel/utilities/Utilities.ts +4 -8
- package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.tsx +1 -1
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.tsx +4 -1
- package/src/component/panels/ZonesPanel/ZonesPanel.tsx +7 -9
- package/src/component/panels/ZonesPanel/ZonesPreferences.tsx +62 -58
- package/src/component/panels/ZonesPanel/ZonesTable.tsx +8 -16
- package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +5 -25
- package/src/component/panels/ZonesPanel/hooks/useMapZones.ts +1 -1
- package/src/component/panels/databasePanel/DatabaseInfo.tsx +2 -0
- package/src/component/panels/databasePanel/DatabasePanel.tsx +9 -6
- package/src/component/panels/databasePanel/DatabasePreferences.tsx +118 -114
- package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +3 -4
- package/src/component/panels/databasePanel/DatabaseTable.tsx +1 -1
- package/src/component/panels/extra/utilities/settingImperativeHandle.ts +1 -1
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +3 -3
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +15 -15
- package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +1 -4
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.tsx +2 -4
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.tsx +5 -8
- package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +4 -6
- package/src/component/panels/filtersPanel/processings/processing_item.tsx +1 -1
- package/src/component/panels/filtersPanel/processings/use_live_edit.ts +9 -17
- package/src/component/panels/header/DefaultPanelHeader.tsx +4 -3
- package/src/component/panels/hooks/useGetPanelOptions.ts +6 -6
- package/src/component/panels/informationPanel/SpectraPicker.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +29 -26
- package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/preferences/index.tsx +12 -10
- package/src/component/panels/predictionPanel/PredictionOptionsPanel.tsx +113 -142
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +5 -5
- package/src/component/panels/predictionPanel/PredictionPreferences.tsx +42 -36
- package/src/component/panels/spectrumSimulation/SpectrumSimulationPreferences.tsx +7 -6
- package/src/component/reducer/IgnoreActions.ts +2 -5
- package/src/component/reducer/Reducer.ts +10 -5
- package/src/component/reducer/actions/CorrelationsActions.ts +18 -34
- package/src/component/reducer/actions/DomainActions.ts +4 -4
- package/src/component/reducer/actions/FiltersActions.ts +75 -109
- package/src/component/reducer/actions/InsetActions.ts +8 -10
- package/src/component/reducer/actions/LoadAction.ts +50 -91
- package/src/component/reducer/actions/MoleculeActions.ts +24 -33
- package/src/component/reducer/actions/PeaksActions.ts +20 -26
- package/src/component/reducer/actions/PreferencesActions.ts +4 -10
- package/src/component/reducer/actions/RangesActions.ts +81 -21
- package/src/component/reducer/actions/SpectraActions.ts +52 -47
- package/src/component/reducer/actions/ToolsActions.ts +35 -38
- package/src/component/reducer/actions/ZonesActions.ts +36 -30
- package/src/component/reducer/actions/processings_actions.ts +11 -8
- package/src/component/reducer/helper/Zoom1DManager.ts +2 -2
- package/src/component/reducer/helper/ZoomHistoryManager.ts +1 -1
- package/src/component/reducer/helper/removeSpectrumRelatedObjectsById.ts +1 -1
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +5 -8
- package/src/component/useWatchForm.tsx +0 -1
- package/src/component/utility/Events.tsx +1 -3
- package/src/component/utility/core_slots/core_operator_chart_mouse_icon.tsx +32 -0
- package/src/component/utility/export.ts +17 -20
- package/src/component/utility/filterDatabaseInfoEntry.ts +1 -1
- package/src/data/PredictionManager.ts +7 -12
- package/src/data/SpectraManager.ts +4 -2
- package/src/data/data1d/Spectrum1D/convertDataToFloat64Array.ts +7 -4
- package/src/data/data1d/Spectrum1D/generateJGraphData.ts +8 -9
- package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +3 -0
- package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +2 -2
- package/src/data/data1d/database.ts +3 -3
- package/src/data/data1d/multipleSpectraAnalysis.ts +7 -7
- package/src/data/data2d/Spectrum2D/contours.ts +22 -22
- package/src/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.ts +1 -1
- package/src/data/data2d/Spectrum2D/findBestMinContour/evaluation.ts +3 -2
- package/src/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.ts +1 -2
- package/src/data/data2d/Spectrum2D/findBestMinContour/math.ts +2 -2
- package/src/data/data2d/Spectrum2D/get2DColor.ts +5 -5
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +4 -0
- package/src/data/matrixGeneration.ts +3 -6
- package/src/data/parseMeta/linkMetaWithSpectra.ts +1 -3
- package/src/data/utilities/RangeUtilities.ts +3 -3
- package/src/data/utilities/ZoneUtilities.ts +8 -34
- package/src/data/utilities/generateNumbersPowerOfX.ts +2 -2
- package/src/utils/clipboard/clipboardComponents.tsx +5 -5
- package/src/versionInfo.ts +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts +0 -9
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts.map +0 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +0 -80
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js.map +0 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts +0 -7
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts.map +0 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +0 -7
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js.map +0 -1
- package/lib/component/utility/colorToHexWithAlpha.d.ts +0 -10
- package/lib/component/utility/colorToHexWithAlpha.d.ts.map +0 -1
- package/lib/component/utility/colorToHexWithAlpha.js +0 -5
- package/lib/component/utility/colorToHexWithAlpha.js.map +0 -1
- package/lib/component/utility/forwardRef.d.ts +0 -3
- package/lib/component/utility/forwardRef.d.ts.map +0 -1
- package/lib/component/utility/forwardRef.js +0 -6
- package/lib/component/utility/forwardRef.js.map +0 -1
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.tsx +0 -130
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.tsx +0 -32
- package/src/component/utility/colorToHexWithAlpha.ts +0 -7
- package/src/component/utility/forwardRef.ts +0 -10
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
/** @jsxImportSource @emotion/react */
|
|
3
|
+
import { Icon } from '@blueprintjs/core';
|
|
2
4
|
import { css } from '@emotion/react';
|
|
3
5
|
import { useCallback, useEffect, useMemo } from 'react';
|
|
4
6
|
import { useHighlight } from '../../../highlight/index.js';
|
|
5
7
|
import { ContextMenu } from '../../ContextMenuBluePrint.js';
|
|
6
|
-
|
|
8
|
+
import { useRowReorder } from "./useRowReorder.js";
|
|
9
|
+
const draggingStyle = { backgroundColor: '#e8f3f9' };
|
|
10
|
+
const dropLineColor = '#137cbd';
|
|
11
|
+
function getRowStyle(isActive, rowStyle = {}, disableDefaultRowStyle, closestEdge, isDragging = false) {
|
|
7
12
|
const { hover = {}, active = {}, base = {}, activated = {} } = rowStyle;
|
|
8
13
|
const hoverStyle = disableDefaultRowStyle
|
|
9
14
|
? hover
|
|
@@ -18,8 +23,22 @@ function getRowStyle(isActive, rowStyle = {}, disableDefaultRowStyle) {
|
|
|
18
23
|
{
|
|
19
24
|
...baseStyle,
|
|
20
25
|
...(isActive && { backgroundColor: '#ff6f0070', ...activated }),
|
|
26
|
+
...(isDragging && { opacity: 1, ...draggingStyle }),
|
|
27
|
+
...(closestEdge && {
|
|
28
|
+
[closestEdge === 'top' ? '> td' : '+ tr > td']: {
|
|
29
|
+
boxShadow: `inset 0 2px ${dropLineColor}`,
|
|
30
|
+
},
|
|
31
|
+
}),
|
|
32
|
+
...(closestEdge === 'bottom' && {
|
|
33
|
+
':last-child > td': {
|
|
34
|
+
boxShadow: `inset 0 -2px ${dropLineColor}`,
|
|
35
|
+
},
|
|
36
|
+
}),
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
':hover': isDragging ? draggingStyle : hoverStyle,
|
|
40
|
+
':active': isDragging ? draggingStyle : activeStyle,
|
|
21
41
|
},
|
|
22
|
-
{ ':hover': hoverStyle, ':active': activeStyle },
|
|
23
42
|
]);
|
|
24
43
|
}
|
|
25
44
|
function getIDs(row) {
|
|
@@ -35,7 +54,8 @@ function getIDs(row) {
|
|
|
35
54
|
return [''];
|
|
36
55
|
}
|
|
37
56
|
export default function TableRow(props) {
|
|
38
|
-
const { row, table, highlightedSource = 'UNKNOWN', getHighlightExtra, onContextMenuSelect, contextMenu
|
|
57
|
+
const { row, table, highlightedSource = 'UNKNOWN', getHighlightExtra, onContextMenuSelect, contextMenu, onClick, onReorder, isRowActive = false, rowStyle, disableDefaultRowStyle, } = props;
|
|
58
|
+
const { rowRef, handleRef, isReorderActive, isDragging, closestEdge } = useRowReorder(row, onReorder);
|
|
39
59
|
const data = useMemo(() => ({
|
|
40
60
|
type: highlightedSource,
|
|
41
61
|
extra: getHighlightExtra?.(row.original),
|
|
@@ -46,26 +66,26 @@ export default function TableRow(props) {
|
|
|
46
66
|
highlight.hide();
|
|
47
67
|
};
|
|
48
68
|
// TODO: avoid this hack.
|
|
49
|
-
// eslint-disable-next-line react
|
|
69
|
+
// eslint-disable-next-line @eslint-react/exhaustive-deps
|
|
50
70
|
}, []);
|
|
51
71
|
const clickHandler = useCallback((event) => {
|
|
52
72
|
onClick?.(event, row);
|
|
53
73
|
}, [onClick, row]);
|
|
54
|
-
return (
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
74
|
+
return (_jsxs(ContextMenu, { data: row.original, options: contextMenu, onSelect: (selected) => onContextMenuSelect?.(selected, row.original), as: "tr", ref: rowRef, style: { position: 'static' }, css: getRowStyle(highlight.isActive || isRowActive, rowStyle, disableDefaultRowStyle, closestEdge, isDragging), ...highlight.onHover, children: [isReorderActive && (_jsx("td", { style: { width: '16px', padding: '0px' }, children: _jsx("div", { ref: handleRef, style: { cursor: 'grab', display: 'flex' }, children: _jsx(Icon, { icon: "drag-handle-vertical" }) }) })), row.getAllCells().map((cell) => {
|
|
75
|
+
const rowSpan = cell.getRowSpan();
|
|
76
|
+
const colSpan = cell.getColSpan();
|
|
77
|
+
// When span is 0, it means that the cell is covered by another one,
|
|
78
|
+
// so it should not be rendered.
|
|
79
|
+
if (rowSpan === 0 || colSpan === 0)
|
|
80
|
+
return null;
|
|
81
|
+
const meta = cell.column.columnDef.meta;
|
|
82
|
+
return (_jsx("td", { rowSpan: rowSpan, colSpan: colSpan, onContextMenu: (e) => {
|
|
83
|
+
e.preventDefault();
|
|
84
|
+
return false;
|
|
85
|
+
}, style: {
|
|
86
|
+
...meta?.style,
|
|
87
|
+
...meta?.tdStyle,
|
|
88
|
+
}, onClick: clickHandler, children: _jsx(table.FlexRender, { cell: cell }) }, cell.id));
|
|
89
|
+
})] }));
|
|
70
90
|
}
|
|
71
91
|
//# sourceMappingURL=table_row.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table_row.js","sourceRoot":"","sources":["../../../../../src/component/elements/tanstack_table/elements/table_row.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"table_row.js","sourceRoot":"","sources":["../../../../../src/component/elements/tanstack_table/elements/table_row.tsx"],"names":[],"mappings":";AAAA,sCAAsC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAGrC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAY5D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,aAAa,GAAG,EAAE,eAAe,EAAE,SAAS,EAAE,CAAC;AACrD,MAAM,aAAa,GAAG,SAAS,CAAC;AAEhC,SAAS,WAAW,CAClB,QAAiB,EACjB,WAAkC,EAAE,EACpC,sBAAgC,EAChC,WAAyB,EACzB,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SAAS,CAAC,IAAI,CAAC;gBACxC,OAAO,CACL,aAEE,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,CAAC,CAAC,EAAE,EAAE;wBACnB,CAAC,CAAC,cAAc,EAAE,CAAC;wBAEnB,OAAO,KAAK,CAAC;oBACf,CAAC,EACD,KAAK,EAAE;wBACL,GAAG,IAAI,EAAE,KAAK;wBACd,GAAG,IAAI,EAAE,OAAO;qBACjB,EACD,OAAO,EAAE,YAAY,YAErB,KAAC,KAAK,CAAC,UAAU,IAAC,IAAI,EAAE,IAAI,GAAI,IAd3B,IAAI,CAAC,EAAE,CAeT,CACN,CAAC;YACJ,CAAC,CAAC,IACU,CACf,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Edge } from '@zakodium/pdnd-esm';
|
|
2
|
+
import type { TanStackRowData, TanStackTableReorderEvent, TanStackTableRow } from '../types.ts';
|
|
3
|
+
export declare function useRowReorder<TData extends TanStackRowData>(row: TanStackTableRow<TData>, onReorder: TanStackTableReorderEvent<TData>['onReorder']): {
|
|
4
|
+
rowRef: import("react").RefObject<HTMLTableRowElement | null>;
|
|
5
|
+
handleRef: import("react").RefObject<HTMLDivElement | null>;
|
|
6
|
+
isReorderActive: boolean;
|
|
7
|
+
isDragging: boolean;
|
|
8
|
+
closestEdge: Edge | null;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useRowReorder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRowReorder.d.ts","sourceRoot":"","sources":["../../../../../src/component/elements/tanstack_table/elements/useRowReorder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EAEL,MAAM,oBAAoB,CAAC;AAW5B,OAAO,KAAK,EACV,eAAe,EACf,yBAAyB,EACzB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,wBAAgB,aAAa,CAAC,KAAK,SAAS,eAAe,EACzD,GAAG,EAAE,gBAAgB,CAAC,KAAK,CAAC,EAC5B,SAAS,EAAE,yBAAyB,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC;;;;;;EA2GzD"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { attachClosestEdge, combine, draggable, dropTargetForElements, extractClosestEdge, getReorderDestinationIndex, } from '@zakodium/pdnd-esm';
|
|
2
|
+
import { useEffect, useRef, useState } from 'react';
|
|
3
|
+
export function useRowReorder(row, onReorder) {
|
|
4
|
+
const rowRef = useRef(null);
|
|
5
|
+
const handleRef = useRef(null);
|
|
6
|
+
const isReorderActive = typeof onReorder === 'function';
|
|
7
|
+
const [isDragging, setIsDragging] = useState(false);
|
|
8
|
+
const [closestEdge, setClosestEdge] = useState(null);
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
const element = rowRef.current;
|
|
11
|
+
const dragHandle = handleRef.current;
|
|
12
|
+
if (!element || !dragHandle || !onReorder)
|
|
13
|
+
return;
|
|
14
|
+
const data = { id: row.id, index: row.index, row: row.original };
|
|
15
|
+
function handleNativeDragStart(event) {
|
|
16
|
+
if (event.target === element && event.dataTransfer) {
|
|
17
|
+
event.dataTransfer.effectAllowed = 'move';
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function canDrop({ source, }) {
|
|
21
|
+
return source.data.id !== data.id;
|
|
22
|
+
}
|
|
23
|
+
function handleDrag({ source, self, }) {
|
|
24
|
+
if (source.element === element) {
|
|
25
|
+
setClosestEdge(null);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const edge = extractClosestEdge(self.data);
|
|
29
|
+
const targetIndex = getReorderDestinationIndex({
|
|
30
|
+
startIndex: source.data.index,
|
|
31
|
+
indexOfTarget: data.index,
|
|
32
|
+
closestEdgeOfTarget: edge,
|
|
33
|
+
axis: 'vertical',
|
|
34
|
+
});
|
|
35
|
+
setClosestEdge(targetIndex === source.data.index ? null : edge);
|
|
36
|
+
}
|
|
37
|
+
element.addEventListener('dragstart', handleNativeDragStart);
|
|
38
|
+
return combine(() => element.removeEventListener('dragstart', handleNativeDragStart), draggable({
|
|
39
|
+
element,
|
|
40
|
+
dragHandle,
|
|
41
|
+
getInitialData: () => data,
|
|
42
|
+
onGenerateDragPreview() {
|
|
43
|
+
element.style.backgroundColor = '#e8f3f9';
|
|
44
|
+
},
|
|
45
|
+
onDragStart() {
|
|
46
|
+
element.style.removeProperty('background-color');
|
|
47
|
+
setIsDragging(true);
|
|
48
|
+
},
|
|
49
|
+
onDrop() {
|
|
50
|
+
element.style.removeProperty('background-color');
|
|
51
|
+
setIsDragging(false);
|
|
52
|
+
},
|
|
53
|
+
}), dropTargetForElements({
|
|
54
|
+
element,
|
|
55
|
+
canDrop,
|
|
56
|
+
getData({ input }) {
|
|
57
|
+
return attachClosestEdge(data, {
|
|
58
|
+
element,
|
|
59
|
+
input,
|
|
60
|
+
allowedEdges: ['top', 'bottom'],
|
|
61
|
+
});
|
|
62
|
+
},
|
|
63
|
+
onDrag: handleDrag,
|
|
64
|
+
onDragLeave() {
|
|
65
|
+
setClosestEdge(null);
|
|
66
|
+
},
|
|
67
|
+
onDrop({ location, source }) {
|
|
68
|
+
const target = location.current.dropTargets[0];
|
|
69
|
+
if (!target)
|
|
70
|
+
return;
|
|
71
|
+
const edge = extractClosestEdge(target.data);
|
|
72
|
+
const targetIndex = getReorderDestinationIndex({
|
|
73
|
+
startIndex: source.data.index,
|
|
74
|
+
indexOfTarget: target.data.index,
|
|
75
|
+
closestEdgeOfTarget: edge,
|
|
76
|
+
axis: 'vertical',
|
|
77
|
+
});
|
|
78
|
+
setClosestEdge(null);
|
|
79
|
+
if (targetIndex !== source.data.index) {
|
|
80
|
+
onReorder(source.data.index, targetIndex, source.data.row, target.data.row);
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
}));
|
|
84
|
+
}, [onReorder, row.id, row.index, row.original]);
|
|
85
|
+
return { rowRef, handleRef, isReorderActive, isDragging, closestEdge };
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=useRowReorder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRowReorder.js","sourceRoot":"","sources":["../../../../../src/component/elements/tanstack_table/elements/useRowReorder.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,iBAAiB,EACjB,OAAO,EACP,SAAS,EACT,qBAAqB,EACrB,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAQpD,MAAM,UAAU,aAAa,CAC3B,GAA4B,EAC5B,SAAwD;IAExD,MAAM,MAAM,GAAG,MAAM,CAAsB,IAAI,CAAC,CAAC;IACjD,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC/C,MAAM,eAAe,GAAG,OAAO,SAAS,KAAK,UAAU,CAAC;IACxD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAc,IAAI,CAAC,CAAC;IAElE,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC/B,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,CAAC;QACrC,IAAI,CAAC,OAAO,IAAI,CAAC,UAAU,IAAI,CAAC,SAAS;YAAE,OAAO;QAElD,MAAM,IAAI,GAAG,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC;QAEjE,SAAS,qBAAqB,CAAC,KAAgB;YAC7C,IAAI,KAAK,CAAC,MAAM,KAAK,OAAO,IAAI,KAAK,CAAC,YAAY,EAAE,CAAC;gBACnD,KAAK,CAAC,YAAY,CAAC,a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C,QAAQ,CAAC,CAAC,CAAC;IAEjD,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC;AACzE,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
2
|
import type { CSSObject, SerializedStyles } from '@emotion/react';
|
|
3
3
|
import type { ReactElement } from 'react';
|
|
4
|
-
import type { TanStackRowData, TanStackTableClickEvent, TanStackTableColumn, TanStackTableContextMenuProps, TanStackTableHighlightSourceProps, TanStackTableRow, TanStackTableRowStyle, TanStackTableSortEvent } from './types.ts';
|
|
5
|
-
interface TanStackTableProps<TData extends TanStackRowData> extends TanStackTableContextMenuProps<TData>, TanStackTableClickEvent<TData>, TanStackTableSortEvent<TData> {
|
|
4
|
+
import type { TanStackRowData, TanStackTableClickEvent, TanStackTableColumn, TanStackTableContextMenuProps, TanStackTableHighlightSourceProps, TanStackTableReorderEvent, TanStackTableRow, TanStackTableRowStyle, TanStackTableSortEvent } from './types.ts';
|
|
5
|
+
interface TanStackTableProps<TData extends TanStackRowData> extends TanStackTableContextMenuProps<TData>, TanStackTableClickEvent<TData>, TanStackTableSortEvent<TData>, TanStackTableReorderEvent<TData> {
|
|
6
6
|
data: readonly TData[];
|
|
7
7
|
columns: ReadonlyArray<TanStackTableColumn<TData, any>>;
|
|
8
8
|
approxItemHeight?: number;
|
|
9
9
|
approxColumnWidth?: number;
|
|
10
|
-
groupKey?: keyof TData;
|
|
11
10
|
indexKey?: string;
|
|
12
11
|
enableVirtualScroll?: boolean;
|
|
13
12
|
enableColumnsVirtualScroll?: boolean;
|
|
@@ -16,11 +15,13 @@ interface TanStackTableProps<TData extends TanStackRowData> extends TanStackTabl
|
|
|
16
15
|
totalCount?: number;
|
|
17
16
|
emptyDataRowText?: string;
|
|
18
17
|
rowStyle?: TanStackTableRowStyle | ((row: TanStackTableRow<TData>) => TanStackTableRowStyle | undefined);
|
|
19
|
-
style?: CSSObject | SerializedStyles;
|
|
20
18
|
disableDefaultRowStyle?: boolean;
|
|
21
19
|
enableCellSpanning?: boolean;
|
|
22
20
|
}
|
|
23
|
-
type ReactTableOuterProps<TData extends TanStackRowData> = TanStackTableProps<TData> & TanStackTableHighlightSourceProps<TData
|
|
21
|
+
type ReactTableOuterProps<TData extends TanStackRowData> = TanStackTableProps<TData> & TanStackTableHighlightSourceProps<TData> & {
|
|
22
|
+
groupKey?: keyof TData;
|
|
23
|
+
style?: CSSObject | SerializedStyles;
|
|
24
|
+
};
|
|
24
25
|
declare const _default: <TData extends TanStackRowData>(props: ReactTableOuterProps<TData>) => ReactElement;
|
|
25
26
|
export default _default;
|
|
26
27
|
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/component/elements/tanstack_table/table.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlE,OAAO,KAAK,EAGV,YAAY,EAGb,MAAM,OAAO,CAAC;AAoBf,OAAO,KAAK,EACV,eAAe,EACf,uBAAuB,EACvB,mBAAmB,EACnB,6BAA6B,EAC7B,iCAAiC,EACjC,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EAEvB,MAAM,YAAY,CAAC;AAEpB,UAAU,kBAAkB,CAAC,KAAK,SAAS,eAAe,CACxD,SACE,6BAA6B,CAAC,KAAK,CAAC,EACpC,uBAAuB,CAAC,KAAK,CAAC,EAC9B,sBAAsB,CAAC,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/component/elements/tanstack_table/table.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlE,OAAO,KAAK,EAGV,YAAY,EAG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,CAAC,EAAE,MAAM,KAAK,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,GAAG,gBAAgB,CAAC;CACtC,CAAC;wBA6YgC,CAAC,KAAK,SAAS,eAAe,EAClE,KAAK,EAAE,oBAAoB,CAAC,KAAK,CAAC,KAC/B,YAAY;AAFjB,wBAEkB"}
|
|
@@ -5,7 +5,7 @@ import { memo, useEffect, useLayoutEffect, useMemo, useRef, useState, } from 're
|
|
|
5
5
|
import { useResizeObserver } from 'react-d3-utils';
|
|
6
6
|
import { BaseReactTable } from "./elements/base_react_table.js";
|
|
7
7
|
import { EmptyDataRow } from "./elements/empty_data_row.js";
|
|
8
|
-
import {
|
|
8
|
+
import { TanStackTableContext, useTanStackTableContext, } from "./elements/table_context.js";
|
|
9
9
|
import TableHeader from "./elements/table_header.js";
|
|
10
10
|
import TableRow from "./elements/table_row.js";
|
|
11
11
|
import { tanStackTableFeatures } from "./features.js";
|
|
@@ -35,11 +35,11 @@ const counterStyle = {
|
|
|
35
35
|
fontSize: '1.4em',
|
|
36
36
|
};
|
|
37
37
|
function TanStackTableInner(props) {
|
|
38
|
-
const { data, columns, highlightedSource, getHighlightExtra, contextMenu = [], onContextMenuSelect, onScroll, approxItemHeight = 40, enableVirtualScroll = false, enableColumnsVirtualScroll = false, approxColumnWidth = 40, onClick, activeRow, totalCount, indexKey = 'index', onSortEnd, rowStyle, disableDefaultRowStyle = false, enableDefaultActiveRow = false, emptyDataRowText = 'No Data', containerRef, enableCellSpanning, } = props;
|
|
38
|
+
const { data, columns, highlightedSource, getHighlightExtra, contextMenu = [], onContextMenuSelect, onScroll, approxItemHeight = 40, enableVirtualScroll = false, enableColumnsVirtualScroll = false, approxColumnWidth = 40, onClick, onReorder, activeRow, totalCount, indexKey = 'index', onSortEnd, rowStyle, disableDefaultRowStyle = false, enableDefaultActiveRow = false, emptyDataRowText = 'No Data', containerRef, enableCellSpanning, } = props;
|
|
39
39
|
const isSortedEventTriggered = useRef(false);
|
|
40
40
|
const virtualBoundary = useTanStackTableContext();
|
|
41
41
|
const [rowIndex, setRowIndex] = useState();
|
|
42
|
-
const timeoutIdRef = useRef();
|
|
42
|
+
const timeoutIdRef = useRef(undefined);
|
|
43
43
|
const [isCounterVisible, setCounterVisibility] = useState(false);
|
|
44
44
|
const memoColumns = useMemo(() => {
|
|
45
45
|
const end = virtualBoundary.columns.end === columns.length - 1
|
|
@@ -84,6 +84,10 @@ function TanStackTableInner(props) {
|
|
|
84
84
|
function headerClickHandler() {
|
|
85
85
|
isSortedEventTriggered.current = true;
|
|
86
86
|
}
|
|
87
|
+
function handleReorder(...args) {
|
|
88
|
+
onReorder?.(...args);
|
|
89
|
+
table.setSorting([]);
|
|
90
|
+
}
|
|
87
91
|
const end = virtualBoundary.rows.end === rows.length - 1
|
|
88
92
|
? virtualBoundary.rows.end + 1
|
|
89
93
|
: virtualBoundary.rows.end;
|
|
@@ -108,7 +112,7 @@ function TanStackTableInner(props) {
|
|
|
108
112
|
? approxColumnWidth * (columns.length + 1)
|
|
109
113
|
: '100%',
|
|
110
114
|
pointerEvents: 'none',
|
|
111
|
-
} }), _jsxs(BaseReactTable, { style: styles.table(enableVirtualScroll, enableColumnsVirtualScroll), children: [_jsx(TableHeader, { headerGroups: table.getHeaderGroups(), table: table, onClick: headerClickHandler }), _jsxs("tbody", { children: [!data ||
|
|
115
|
+
} }), _jsxs(BaseReactTable, { style: styles.table(enableVirtualScroll, enableColumnsVirtualScroll), children: [_jsx(TableHeader, { headerGroups: table.getHeaderGroups(), table: table, onClick: headerClickHandler, enableRowReordering: typeof onReorder === 'function' }), _jsxs("tbody", { children: [!data ||
|
|
112
116
|
(data?.length === 0 && (_jsx(EmptyDataRow, { numColumns: columns.length, text: emptyDataRowText }))), rowsData.map((row, index) => {
|
|
113
117
|
const highlightSourceProps = {
|
|
114
118
|
highlightedSource,
|
|
@@ -116,10 +120,8 @@ function TanStackTableInner(props) {
|
|
|
116
120
|
};
|
|
117
121
|
return (_jsx(TableRow, { row: row, table: table, contextMenu: contextMenu, onContextMenuSelect: onContextMenuSelect, onClick: !activeRow && enableDefaultActiveRow
|
|
118
122
|
? clickHandler
|
|
119
|
-
: onClick, isRowActive: !activeRow
|
|
120
|
-
? enableDefaultActiveRow
|
|
121
|
-
? rowIndex === index
|
|
122
|
-
: false
|
|
123
|
+
: onClick, onReorder: onReorder ? handleReorder : undefined, isRowActive: !activeRow
|
|
124
|
+
? enableDefaultActiveRow && rowIndex === index
|
|
123
125
|
: activeRow(row), rowStyle: typeof rowStyle === 'function' ? rowStyle(row) : rowStyle, disableDefaultRowStyle: disableDefaultRowStyle, ...highlightSourceProps }, row.id));
|
|
124
126
|
})] })] })] }), (enableVirtualScroll || enableColumnsVirtualScroll) && (_jsxs("p", { style: {
|
|
125
127
|
...counterStyle,
|
|
@@ -228,7 +230,7 @@ function TanStackTable(props) {
|
|
|
228
230
|
});
|
|
229
231
|
}
|
|
230
232
|
}
|
|
231
|
-
return (_jsx(
|
|
233
|
+
return (_jsx(TanStackTableContext, { value: tableVirtualBoundary, children: _jsx("div", { ref: mRef, css: css({
|
|
232
234
|
position: 'relative',
|
|
233
235
|
height: '100%',
|
|
234
236
|
}, style), children: _jsx(TanStackTableInner, { onScroll: scrollHandler, onSortEnd: onSortEnd, containerRef: containerRef, ...props }) }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../src/component/elements/tanstack_table/table.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAQjD,OAAO,EACL,IAAI,EACJ,SAAS,EACT,eAAe,EACf,OAAO,EACP,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAiC,CAAC;AACjE,OAAO,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uBAAuB,CAAC;gBACtB,IAAI,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE;gBACtC,OAAO,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE;aAChD,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,CACL,KAAC,qBAAqB,IAAC,KAAK,EAAE,oBAAoB,YAChD,cACE,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,GAAG,CACN;gBACE,QAAQ,EAAE,UAAU;gBACpB,MAAM,EAAE,MAAM;aACf,EACD,KAAK,CACN,YAED,KAAC,kBAAkB,IACjB,QAAQ,EAAE,aAAa,EACvB,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,KACtB,KAAK,GACT,GACE,GACgB,CACzB,CAAC;AACJ,CAAC;AAED,eAAe,IAAI,CAAC,aAAa,CAEhB,CAAC"}
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../src/component/elements/tanstack_table/table.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAQjD,OAAO,EACL,IAAI,EACJ,SAAS,EACT,eAAe,EACf,OAAO,EACP,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA+B,CAAC;AAC7D,OAAO,EACL,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,WAAW,MAAM,4BAA6B,CAAC;AACtD,OAAO,QAAQ,MAAM,yBAA0B,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAoDtD,MAAM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BAAuB,CAAC;gBACtB,IAAI,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE;gBACtC,OAAO,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE;aAChD,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,CACL,KAAC,oBAAoB,IAAC,KAAK,EAAE,oBAAoB,YAC/C,cACE,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,GAAG,CACN;gBACE,QAAQ,EAAE,UAAU;gBACpB,MAAM,EAAE,MAAM;aACf,EACD,KAAK,CACN,YAED,KAAC,kBAAkB,IACjB,QAAQ,EAAE,aAAa,EACvB,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,KACtB,KAAK,GACT,GACE,GACe,CACxB,CAAC;AACJ,CAAC;AAED,eAAe,IAAI,CAAC,aAAa,CAEhB,CAAC"}
|
|
@@ -35,6 +35,9 @@ export interface TanStackTableClickEvent<TData extends TanStackRowData> {
|
|
|
35
35
|
export interface TanStackTableSortEvent<TData extends TanStackRowData> {
|
|
36
36
|
onSortEnd?: (data: TData[], isTableSorted?: boolean) => void;
|
|
37
37
|
}
|
|
38
|
+
export interface TanStackTableReorderEvent<TData extends TanStackRowData> {
|
|
39
|
+
onReorder?: (sourceIndex: number, targetIndex: number, source: TData, target: TData) => void;
|
|
40
|
+
}
|
|
38
41
|
interface VirtualBoundary {
|
|
39
42
|
start: number;
|
|
40
43
|
end: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/component/elements/tanstack_table/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,WAAW,EACX,UAAU,EACV,GAAG,EACH,OAAO,EACR,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE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CACN,CAAC,wBAAwB,CAAC,CAAC;AAE5B,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AAED,MAAM,WAAW,6BAA6B,CAAC,KAAK,SAAS,eAAe;IAC1E,WAAW,CAAC,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;IAC9C,mBAAmB,CAAC,EAAE,CACpB,QAAQ,EAAE,UAAU,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,EACzD,IAAI,EAAE,KAAK,KACR,IAAI,CAAC;CACX;AAED,MAAM,WAAW,uBAAuB,CAAC,KAAK,SAAS,eAAe;IACpE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,gBAAgB,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;CACrE;AAED,MAAM,WAAW,sBAAsB,CAAC,KAAK,SAAS,eAAe;IACnE,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9D;AAED,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,EAAE,eAAe,CAAC;CAC1B"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/component/elements/tanstack_table/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,WAAW,EACX,UAAU,EACV,GAAG,EACH,OAAO,EACR,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAA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"transferStyles.d.ts","sourceRoot":"","sources":["../../../../src/component/elements/utilities/transferStyles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transferStyles.d.ts","sourceRoot":"","sources":["../../../../src/component/elements/utilities/transferStyles.ts"],"names":[],"mappings":"AAiBA,wBAAgB,wBAAwB,CAAC,cAAc,EAAE,QAAQ,QAYhE"}
|
|
@@ -2,9 +2,7 @@ function getCssTextFromStyleSheet(styleSheet) {
|
|
|
2
2
|
try {
|
|
3
3
|
if (!styleSheet.cssRules)
|
|
4
4
|
return undefined;
|
|
5
|
-
return Array.from(styleSheet.cssRules)
|
|
6
|
-
.map((rule) => rule.cssText)
|
|
7
|
-
.join('\n');
|
|
5
|
+
return Array.from(styleSheet.cssRules, (rule) => rule.cssText).join('\n');
|
|
8
6
|
}
|
|
9
7
|
catch (error) {
|
|
10
8
|
if (error instanceof DOMException &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferStyles.js","sourceRoot":"","sources":["../../../../src/component/elements/utilities/transferStyles.ts"],"names":[],"mappings":"AAAA,SAAS,wBAAwB,CAC/B,UAA2C;IAE3C,IAAI,CAAC;QACH,IAAI,CAAC,UAAU,CAAC,QAAQ;YAAE,OAAO,SAAS,CAAC;QAC3C,OAAO,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"transferStyles.js","sourceRoot":"","sources":["../../../../src/component/elements/utilities/transferStyles.ts"],"names":[],"mappings":"AAAA,SAAS,wBAAwB,CAC/B,UAA2C;IAE3C,IAAI,CAAC;QACH,IAAI,CAAC,UAAU,CAAC,QAAQ;YAAE,OAAO,SAAS,CAAC;QAC3C,OAAO,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5E,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IACE,KAAK,YAAY,YAAY;YAC7B,CAAC,KAAK,CAAC,IAAI,KAAK,eAAe,IAAI,KAAK,CAAC,IAAI,KAAK,iBAAiB,CAAC,EACpE,CAAC;YACD,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,cAAwB;IAC/D,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IACrD,MAAM,UAAU,GAAG,cAAc,CAAC,IAAI,CAAC;IAEvC,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;QACrC,MAAM,OAAO,GAAG,wBAAwB,CAAC,UAAU,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO;YAAE,SAAS;QAEvB,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACnD,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;QACpD,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAChC,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/component/header/Header.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AA+BvD,eAAO,MAAM,gBAAgB,EAAE,UAW9B,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/component/header/Header.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AA+BvD,eAAO,MAAM,gBAAgB,EAAE,UAW9B,CAAC;AAuLF,wBAAgB,MAAM,gCASrB"}
|
|
@@ -52,6 +52,9 @@ export const headerLabelStyle = {
|
|
|
52
52
|
alignItems: 'center',
|
|
53
53
|
},
|
|
54
54
|
};
|
|
55
|
+
function renderItem(item) {
|
|
56
|
+
return _jsx(WorkspaceItem, { item: item });
|
|
57
|
+
}
|
|
55
58
|
function HeaderInner(props) {
|
|
56
59
|
const { selectedOptionPanel, height } = props;
|
|
57
60
|
const { current: { display: { general }, }, workspace, } = usePreferences();
|
|
@@ -94,9 +97,6 @@ function HeaderInner(props) {
|
|
|
94
97
|
function changeWorkspaceHandler(option) {
|
|
95
98
|
setActiveWorkspace(option.key);
|
|
96
99
|
}
|
|
97
|
-
function renderItem(item) {
|
|
98
|
-
return _jsx(WorkspaceItem, { item: item });
|
|
99
|
-
}
|
|
100
100
|
return (_jsx(ContainerQueryWrapper, { widthThreshold: 1200, narrowClassName: "small-label", wideClassName: "large-label", children: _jsxs(HeaderContainer, { style: { leftStyle: { flex: 1 }, containerStyle: { padding: '2px' } }, children: [_jsxs(HeaderWrapper, { style: {
|
|
101
101
|
alignItems: 'center',
|
|
102
102
|
}, children: [_jsx("div", { children: _jsx(Toolbar, { children: _jsx(AboutUsModal, {}) }) }), isExperimental && _jsx(PluginTopBarTool, {}), _jsx("div", { className: "toolOptionsPanel", style: { flex: 1 }, children: selectedPanel })] }), _jsxs(HeaderWrapper, { style: {
|
|
@@ -138,7 +138,7 @@ function PluginTopBarTool() {
|
|
|
138
138
|
const core = useCore();
|
|
139
139
|
const stableSpectrum = useStableSpectrum();
|
|
140
140
|
const [liveOperation, setLiveOperation] = useLiveOperation();
|
|
141
|
-
const liveEdit = useLiveEdit(liveOperation);
|
|
141
|
+
const liveEdit = useLiveEdit(liveOperation?.uid);
|
|
142
142
|
const processingsMutations = useProcessingsMutations();
|
|
143
143
|
const dispatch = useDispatch();
|
|
144
144
|
if (!liveOperation)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/component/header/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;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aAAa,EACb,QAAQ,CAAC,KAAK,EAAE,iBAAiB,IAAI,KAAK,CAC3C,CAAC;YACJ,CAAC,EACD,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE;gBACtB,IAAI,CAAC,UAAU;oBAAE,OAAO;gBAExB,aAAa,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;gBAC3C,MAAM,cAAc,GAAG,cAAc,CAAC,WAAW,CAAC,SAAS,CACzD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,aAAa,CAAC,GAAG,CACnC,CAAC;gBAEF,eAAe,EAAE,CAAC;gBAClB,KAAK,oBAAoB,CAAC,KAAK;gBAC7B,qCAAqC;gBACrC,mCAAmC;gBACnC,EAAE,GAAG,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,EACpC,cAAc,CACf,CAAC;YACJ,CAAC,YAEA,CAAC,QAAQ,EAAE,EAAE,CACZ,UAAU,IAAI,CACZ,8BACG,QAAQ,EACT,KAAC,QAAQ,IACP,OAAO,EAAC,SAAS,EACjB,MAAM,EAAC,QAAQ,EACf,OAAO,EAAE,eAAe,EACxB,IAAI,EAAC,OAAO,uBAGH,IACV,CACJ,GAEgB,GACK,CAC7B,CAAC;AACJ,CAAC"}
|
|
@@ -66,16 +66,19 @@ interface HighlightPayload {
|
|
|
66
66
|
id?: number | string;
|
|
67
67
|
sourceData?: HighlightEventSource | null;
|
|
68
68
|
}
|
|
69
|
-
interface
|
|
69
|
+
interface HighlightContextValue {
|
|
70
70
|
highlight: HighlightState;
|
|
71
|
+
externalHighlightedIds: ReadonlySet<string>;
|
|
71
72
|
dispatch: (props: {
|
|
72
73
|
type: HighlightActions;
|
|
73
74
|
payload?: HighlightPayload;
|
|
74
75
|
}) => void;
|
|
75
76
|
remove: () => void;
|
|
76
77
|
}
|
|
77
|
-
export declare function HighlightProvider(props: PropsWithChildren
|
|
78
|
-
|
|
78
|
+
export declare function HighlightProvider(props: PropsWithChildren<{
|
|
79
|
+
highlightedIds?: readonly string[];
|
|
80
|
+
}>): import("react").JSX.Element;
|
|
81
|
+
export declare function useHighlightData(): HighlightContextValue;
|
|
79
82
|
/**
|
|
80
83
|
* @param highlights
|
|
81
84
|
* @param sourceData
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component/highlight/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAU1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAE9E,UAAU,UAAU;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,mBAAmB;IAC3B,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,uBAAuB;IAC/B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,UAAU,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC;IACd,SAAS,EAAE,UAAU,GAAG;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,KAAK,EAAE,UAAU,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACrB,aAAa,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9B,sBAAsB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,cAAc,EAAE,mBAAmB,CAAC;IACpC,gCAAgC,EAAE,mBAAmB,CAAC;IACtD,sBAAsB,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,QAAQ,EAAE;QAAE,MAAM,EAAE,KAAK,EAAE,CA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