nmrium 2.2.0 → 2.4.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/PredictionErrorsNotations.js +3 -3
- package/lib/component/1d/PredictionErrorsNotations.js.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.d.ts +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
- package/lib/component/1d/peaks/Peaks.js +2 -1
- package/lib/component/1d/peaks/Peaks.js.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.js +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
- package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.d.ts +9 -0
- package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.d.ts.map +1 -0
- package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.js +138 -0
- package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.js.map +1 -0
- package/lib/component/1d/ranges/FloatingRanges.d.ts.map +1 -0
- package/lib/component/1d/ranges/FloatingRanges.js +362 -0
- package/lib/component/1d/ranges/FloatingRanges.js.map +1 -0
- package/lib/component/1d/ranges/Ranges.js +2 -2
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d-2d/FieldEdition.d.ts +2 -2
- package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
- package/lib/component/1d-2d/FieldEdition.js +2 -2
- package/lib/component/1d-2d/FieldEdition.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +7 -7
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.js +6 -6
- package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.js +6 -2
- package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/Ranges1D.d.ts +9 -0
- package/lib/component/2d/1d-tracer/Ranges1D.d.ts.map +1 -0
- package/lib/component/2d/1d-tracer/Ranges1D.js +76 -0
- package/lib/component/2d/1d-tracer/Ranges1D.js.map +1 -0
- package/lib/component/2d/1d-tracer/Signals1D.d.ts +11 -0
- package/lib/component/2d/1d-tracer/Signals1D.d.ts.map +1 -0
- package/lib/component/2d/1d-tracer/Signals1D.js +90 -0
- package/lib/component/2d/1d-tracer/Signals1D.js.map +1 -0
- package/lib/component/2d/1d-tracer/Top1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.js +6 -2
- package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
- package/lib/component/2d/ft/FTContainer.js.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/AnchorSVG.d.ts +37 -0
- package/lib/component/AnchorSVG.d.ts.map +1 -0
- package/lib/component/AnchorSVG.js +137 -0
- package/lib/component/AnchorSVG.js.map +1 -0
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +4 -0
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/SVGTable.d.ts +5 -3
- package/lib/component/SVGTable.d.ts.map +1 -1
- package/lib/component/SVGTable.js +16 -16
- package/lib/component/SVGTable.js.map +1 -1
- package/lib/component/context/KeyModifierContext.d.ts +1 -0
- package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
- package/lib/component/context/KeyModifierContext.js +4 -0
- package/lib/component/context/KeyModifierContext.js.map +1 -1
- package/lib/component/context/LoggerContext.d.ts.map +1 -1
- package/lib/component/context/LoggerContext.js.map +1 -1
- package/lib/component/context/SortSpectraContext.d.ts.map +1 -1
- package/lib/component/context/SortSpectraContext.js.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.d.ts +2 -2
- package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js +6 -9
- package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
- package/lib/component/elements/Button.d.ts.map +1 -1
- package/lib/component/elements/Button.js.map +1 -1
- package/lib/component/elements/DraggableDialog.d.ts.map +1 -1
- package/lib/component/elements/DraggableDialog.js +1 -2
- package/lib/component/elements/DraggableDialog.js.map +1 -1
- package/lib/component/elements/Sections.d.ts +3 -3
- package/lib/component/elements/Sections.d.ts.map +1 -1
- package/lib/component/elements/Sections.js +1 -1
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/TabTitle.d.ts.map +1 -1
- package/lib/component/elements/TabTitle.js +2 -2
- package/lib/component/elements/TabTitle.js.map +1 -1
- package/lib/component/elements/ToolbarPopoverItem.d.ts +1 -0
- package/lib/component/elements/ToolbarPopoverItem.d.ts.map +1 -1
- package/lib/component/elements/ToolbarPopoverItem.js +10 -3
- package/lib/component/elements/ToolbarPopoverItem.js.map +1 -1
- package/lib/component/elements/dropDownButton/DropDownButton.d.ts.map +1 -1
- package/lib/component/elements/dropDownButton/DropDownButton.js +2 -2
- package/lib/component/elements/dropDownButton/DropDownButton.js.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.d.ts +1 -1
- package/lib/component/elements/export/ExportOptionsModal.d.ts.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.js +28 -110
- package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
- package/lib/component/elements/export/units.d.ts +0 -28
- package/lib/component/elements/export/units.d.ts.map +1 -1
- package/lib/component/elements/export/units.js +0 -5
- package/lib/component/elements/export/units.js.map +1 -1
- package/lib/component/elements/export/utilities/getExportOptions.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/getExportOptions.js.map +1 -1
- package/lib/component/elements/print/pageSize.d.ts +1 -1
- package/lib/component/elements/print/pageSize.d.ts.map +1 -1
- package/lib/component/header/Header.d.ts.map +1 -1
- package/lib/component/header/Header.js +2 -4
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/usePanelPreferences.d.ts +3 -3
- package/lib/component/hooks/usePanelPreferences.d.ts.map +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
- package/lib/component/hooks/useSaveSettings.js +3 -6
- package/lib/component/hooks/useSaveSettings.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/main/NMRiumViewer.js +1 -1
- package/lib/component/main/NMRiumViewer.js.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.js +2 -2
- package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
- package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/PublicationStringModal.js +2 -6
- package/lib/component/modal/PublicationStringModal.js.map +1 -1
- package/lib/component/modal/SaveAsModal.d.ts +2 -2
- package/lib/component/modal/SaveAsModal.d.ts.map +1 -1
- package/lib/component/modal/SaveAsModal.js +40 -35
- package/lib/component/modal/SaveAsModal.js.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.d.ts.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.js +2 -4
- package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +4 -3
- package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js +39 -37
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +29 -29
- 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 +29 -29
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.js +9 -12
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +29 -29
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +24 -24
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +29 -29
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +4 -4
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +29 -29
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +24 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +24 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +24 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +14 -14
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +2 -2
- 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 +24 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +24 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +24 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +24 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +24 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +24 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +24 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js +3 -2
- 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 +24 -24
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +3 -2
- 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 +24 -24
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +30 -3
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +1 -9
- package/lib/component/panels/PeaksPanel/PeaksPanel.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +18 -18
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.js +17 -17
- package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.js +22 -22
- package/lib/component/panels/RangesPanel/RangesPreferences.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.d.ts +2 -2
- package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.js +5 -4
- package/lib/component/panels/RangesPanel/RangesTable.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +2 -2
- package/lib/component/panels/RangesPanel/RangesTableRow.js +2 -2
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +5 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js +7 -4
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.js +5 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js +2 -2
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +7 -0
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/FilterPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/FilterPanel.js +5 -2
- package/lib/component/panels/filtersPanel/FilterPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/processings_sections_panel.d.ts +2 -0
- package/lib/component/panels/filtersPanel/processings_sections_panel.d.ts.map +1 -0
- package/lib/component/panels/filtersPanel/processings_sections_panel.js +144 -0
- package/lib/component/panels/filtersPanel/processings_sections_panel.js.map +1 -0
- package/lib/component/panels/hooks/useMoleculeAnnotationCore.d.ts +3 -2
- package/lib/component/panels/hooks/useMoleculeAnnotationCore.d.ts.map +1 -1
- package/lib/component/panels/hooks/useMoleculeAnnotationCore.js +14 -8
- package/lib/component/panels/hooks/useMoleculeAnnotationCore.js.map +1 -1
- package/lib/component/panels/informationPanel/MixedValuesBadge.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/MixedValuesBadge.js +2 -2
- package/lib/component/panels/informationPanel/MixedValuesBadge.js.map +1 -1
- package/lib/component/panels/informationPanel/SpectraPicker.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/SpectraPicker.js +2 -2
- package/lib/component/panels/informationPanel/SpectraPicker.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +2 -0
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.js +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadAction.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +9 -0
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +11 -2
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +23 -5
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +5 -17
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/helper/getTraceSpectrumID.d.ts +5 -0
- package/lib/component/reducer/helper/getTraceSpectrumID.d.ts.map +1 -0
- package/lib/component/reducer/helper/getTraceSpectrumID.js +14 -0
- package/lib/component/reducer/helper/getTraceSpectrumID.js.map +1 -0
- package/lib/component/reducer/helper/setRangesViewProperty.d.ts.map +1 -1
- package/lib/component/reducer/helper/setRangesViewProperty.js.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +35 -26
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +2 -2
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts +2 -2
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +2 -2
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts.map +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts +2 -2
- package/lib/component/toolbar/nmr_toolbar.d.ts.map +1 -1
- package/lib/component/toolbar/nmr_toolbar.js +3 -1
- package/lib/component/toolbar/nmr_toolbar.js.map +1 -1
- package/lib/component/utility/CoreSlot.d.ts +27 -0
- package/lib/component/utility/CoreSlot.d.ts.map +1 -0
- package/lib/component/utility/CoreSlot.js +56 -0
- package/lib/component/utility/CoreSlot.js.map +1 -0
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js +1 -0
- package/lib/component/utility/export.js.map +1 -1
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/constants/signalsKinds.d.ts +1 -2
- package/lib/data/constants/signalsKinds.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +1 -0
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +35 -30
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js +1 -0
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +2 -2
- package/lib/data/matrixGeneration.d.ts.map +1 -1
- package/lib/data/matrixGeneration.js.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +37 -37
- package/src/component/1d/PredictionErrorsNotations.tsx +5 -4
- package/src/component/1d/peaks/Peaks.tsx +5 -2
- package/src/component/1d/peaks/usePeakShapesPath.ts +0 -1
- package/src/component/1d/ranges/AssignmentLabel.tsx +1 -1
- package/src/component/1d/ranges/FloatingRangeTablePreferencesModal.tsx +238 -0
- package/src/component/1d/ranges/FloatingRanges.tsx +529 -0
- package/src/component/1d/ranges/Ranges.tsx +2 -2
- package/src/component/1d-2d/FieldEdition.tsx +4 -4
- package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +8 -8
- package/src/component/1d-2d/tools/BrushXY.tsx +8 -8
- package/src/component/2d/1d-tracer/Left1DChart.tsx +24 -1
- package/src/component/2d/1d-tracer/Ranges1D.tsx +134 -0
- package/src/component/2d/1d-tracer/Signals1D.tsx +145 -0
- package/src/component/2d/1d-tracer/Top1DChart.tsx +29 -2
- package/src/component/2d/ft/FTContainer.tsx +1 -0
- package/src/component/2d/zones/SignalsGuideLines.tsx +1 -1
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +1 -1
- package/src/component/AnchorSVG.tsx +370 -0
- package/src/component/EventsTrackers/BrushTracker.tsx +7 -2
- package/src/component/SVGTable.tsx +35 -33
- package/src/component/context/KeyModifierContext.tsx +6 -2
- package/src/component/context/LoggerContext.tsx +1 -7
- package/src/component/context/SortSpectraContext.tsx +1 -3
- package/src/component/elements/ActionsButtonsPopover.tsx +12 -14
- package/src/component/elements/Button.tsx +1 -6
- package/src/component/elements/DraggableDialog.tsx +1 -2
- package/src/component/elements/Sections.tsx +9 -7
- package/src/component/elements/TabTitle.tsx +7 -5
- package/src/component/elements/ToolbarPopoverItem.tsx +13 -2
- package/src/component/elements/dropDownButton/DropDownButton.tsx +7 -5
- package/src/component/elements/export/ExportOptionsModal.tsx +51 -280
- package/src/component/elements/export/units.ts +0 -6
- package/src/component/elements/export/utilities/getExportOptions.ts +1 -0
- package/src/component/elements/print/pageSize.ts +1 -1
- package/src/component/header/Header.tsx +2 -4
- package/src/component/hooks/useExport.tsx +1 -3
- package/src/component/hooks/usePanelPreferences.ts +4 -4
- package/src/component/hooks/useSaveSettings.tsx +4 -15
- package/src/component/hooks/useTextMetrics.ts +1 -0
- package/src/component/main/NMRiumViewer.tsx +1 -1
- package/src/component/modal/EditPeakShapeModal.tsx +2 -2
- package/src/component/modal/PublicationStringModal.tsx +5 -11
- package/src/component/modal/SaveAsModal.tsx +80 -82
- package/src/component/modal/aboutUs/AboutUsModal.tsx +5 -4
- package/src/component/modal/editRange/EditRangeModal.tsx +6 -4
- package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +58 -58
- package/src/component/modal/setting/WorkspaceItem.tsx +2 -2
- package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +3 -3
- package/src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx +2 -2
- package/src/component/modal/setting/tanstack_general_settings/general_settings.tsx +23 -29
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +2 -2
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx +2 -2
- package/src/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.tsx +2 -2
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +2 -2
- package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.tsx +3 -2
- package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +3 -2
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +41 -8
- package/src/component/panels/PeaksPanel/PeaksPanel.tsx +1 -8
- package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +18 -18
- package/src/component/panels/PeaksPanel/PeaksTable.tsx +19 -17
- package/src/component/panels/RangesPanel/RangesHeader.tsx +1 -2
- package/src/component/panels/RangesPanel/RangesPanel.tsx +2 -2
- package/src/component/panels/RangesPanel/RangesPreferences.tsx +22 -22
- package/src/component/panels/RangesPanel/RangesTable.tsx +19 -17
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +25 -25
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +12 -1
- package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +22 -4
- package/src/component/panels/SpectraPanel/base/SpectrumName.tsx +15 -6
- package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +3 -2
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +14 -16
- package/src/component/panels/filtersPanel/FilterPanel.tsx +10 -0
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +1 -0
- package/src/component/panels/filtersPanel/processings_sections_panel.tsx +324 -0
- package/src/component/panels/hooks/useMoleculeAnnotationCore.ts +17 -9
- package/src/component/panels/informationPanel/MixedValuesBadge.tsx +3 -2
- package/src/component/panels/informationPanel/SpectraPicker.tsx +12 -4
- package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +2 -2
- package/src/component/reducer/Reducer.ts +2 -0
- package/src/component/reducer/actions/CorrelationsActions.ts +1 -1
- package/src/component/reducer/actions/DomainActions.ts +1 -4
- package/src/component/reducer/actions/FiltersActions.ts +1 -2
- package/src/component/reducer/actions/LoadAction.ts +1 -3
- package/src/component/reducer/actions/RangesActions.ts +39 -5
- package/src/component/reducer/actions/ToolsActions.ts +5 -21
- package/src/component/reducer/helper/getTraceSpectrumID.tsx +25 -0
- package/src/component/reducer/helper/setRangesViewProperty.ts +1 -2
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +32 -19
- package/src/component/reducer/preferences/preferencesReducer.ts +2 -2
- package/src/component/reducer/preferences/utilities/initWorkspace.ts +2 -2
- package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +2 -2
- package/src/component/toolbar/ToolTypes.ts +2 -2
- package/src/component/toolbar/nmr_toolbar.tsx +3 -2
- package/src/component/utility/CoreSlot.tsx +126 -0
- package/src/component/utility/export.ts +1 -0
- package/src/data/PredictionManager.ts +4 -6
- package/src/data/constants/signalsKinds.ts +1 -1
- package/src/data/data1d/Spectrum1D/peaks/autoPeakPicking.ts +1 -0
- package/src/data/data1d/Spectrum1D/peaks/optimizePeaks.ts +35 -30
- package/src/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.ts +1 -0
- package/src/data/data1d/multipleSpectraAnalysis.ts +2 -2
- package/src/data/matrixGeneration.ts +1 -5
- package/src/versionInfo.ts +1 -1
- package/lib/component/1d/FloatingRanges.d.ts.map +0 -1
- package/lib/component/1d/FloatingRanges.js +0 -263
- package/lib/component/1d/FloatingRanges.js.map +0 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts +0 -17
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts.map +0 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.js +0 -79
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.js.map +0 -1
- package/lib/component/elements/export/utilities/getModes.d.ts +0 -4
- package/lib/component/elements/export/utilities/getModes.d.ts.map +0 -1
- package/lib/component/elements/export/utilities/getModes.js +0 -11
- package/lib/component/elements/export/utilities/getModes.js.map +0 -1
- package/lib/component/utility/renderCoreSlot.d.ts +0 -11
- package/lib/component/utility/renderCoreSlot.d.ts.map +0 -1
- package/lib/component/utility/renderCoreSlot.js +0 -13
- package/lib/component/utility/renderCoreSlot.js.map +0 -1
- package/src/component/1d/FloatingRanges.tsx +0 -378
- package/src/component/elements/export/utilities/exportOptionValidationSchema.ts +0 -106
- package/src/component/elements/export/utilities/getModes.ts +0 -14
- package/src/component/utility/renderCoreSlot.tsx +0 -21
- /package/lib/component/1d/{FloatingRanges.d.ts → ranges/FloatingRanges.d.ts} +0 -0
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import styled from '@emotion/styled';
|
|
3
|
-
import { checkMultiplicity } from 'nmr-processing';
|
|
4
|
-
import { memo, useEffect, useState } from 'react';
|
|
5
|
-
import { BsArrowsMove } from 'react-icons/bs';
|
|
6
|
-
import { FaTimes } from 'react-icons/fa';
|
|
7
|
-
import { Rnd } from 'react-rnd';
|
|
8
|
-
import { isSpectrum1D } from '../../data/data1d/Spectrum1D/index.js';
|
|
9
|
-
import { isSignalRange } from '../../data/utilities/RangeUtilities.js';
|
|
10
|
-
import { SVGTable } from '../SVGTable.js';
|
|
11
|
-
import { useChartData } from '../context/ChartContext.js';
|
|
12
|
-
import { useDispatch } from '../context/DispatchContext.js';
|
|
13
|
-
import { useGlobal } from '../context/GlobalContext.js';
|
|
14
|
-
import { ActionsButtonsPopover } from '../elements/ActionsButtonsPopover.js';
|
|
15
|
-
import { useActiveNucleusTab } from '../hooks/useActiveNucleusTab.js';
|
|
16
|
-
import { usePanelPreferences } from '../hooks/usePanelPreferences.js';
|
|
17
|
-
import { useSVGUnitConverter } from '../hooks/useSVGUnitConverter.js';
|
|
18
|
-
import useSpectraByActiveNucleus from '../hooks/useSpectraPerNucleus.js';
|
|
19
|
-
import { useCheckExportStatus } from '../hooks/useViewportSize.js';
|
|
20
|
-
import { extractChemicalElement } from '../utility/extractChemicalElement.js';
|
|
21
|
-
import { formatNumber } from '../utility/formatNumber.js';
|
|
22
|
-
const ReactRnd = styled(Rnd) `
|
|
23
|
-
border: 1px solid transparent;
|
|
24
|
-
|
|
25
|
-
:hover {
|
|
26
|
-
background-color: white;
|
|
27
|
-
border: 1px solid #ebecf1;
|
|
28
|
-
|
|
29
|
-
button {
|
|
30
|
-
visibility: visible;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
`;
|
|
34
|
-
function useMapRanges(ranges) {
|
|
35
|
-
const output = [];
|
|
36
|
-
const activeTab = useActiveNucleusTab();
|
|
37
|
-
const preferences = usePanelPreferences('ranges', activeTab);
|
|
38
|
-
for (const range of ranges) {
|
|
39
|
-
const { id, from, to, integration, signals = [] } = range;
|
|
40
|
-
const relativeFlag = isSignalRange(range);
|
|
41
|
-
const formattedValue = formatNumber(integration, preferences.relative.format);
|
|
42
|
-
const integrationValue = relativeFlag
|
|
43
|
-
? formattedValue
|
|
44
|
-
: `[ ${formattedValue} ]`;
|
|
45
|
-
const rangeText = `${formatNumber(from, preferences.from.format)} - ${formatNumber(to, preferences.to.format)}`;
|
|
46
|
-
if (signals.length > 0) {
|
|
47
|
-
for (const signal of signals) {
|
|
48
|
-
const { multiplicity, delta, js = [] } = signal;
|
|
49
|
-
const coupling = js
|
|
50
|
-
.map((jsItem) => !Number.isNaN(jsItem.coupling)
|
|
51
|
-
? formatNumber(jsItem.coupling, preferences.coupling.format)
|
|
52
|
-
: '')
|
|
53
|
-
.join(',');
|
|
54
|
-
const signalDelta = !checkMultiplicity(multiplicity, ['m'])
|
|
55
|
-
? rangeText
|
|
56
|
-
: formatNumber(delta, preferences.deltaPPM.format);
|
|
57
|
-
output.push({
|
|
58
|
-
id,
|
|
59
|
-
delta: signalDelta,
|
|
60
|
-
multiplicity,
|
|
61
|
-
integration: integrationValue,
|
|
62
|
-
coupling,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
output.push({
|
|
68
|
-
id,
|
|
69
|
-
delta: rangeText,
|
|
70
|
-
multiplicity: 'm',
|
|
71
|
-
integration: integrationValue,
|
|
72
|
-
coupling: '',
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return output;
|
|
77
|
-
}
|
|
78
|
-
function InnerSVGRangesTable(props) {
|
|
79
|
-
const { ranges } = props;
|
|
80
|
-
const { view: { spectra: { activeTab }, }, } = useChartData();
|
|
81
|
-
const data = useMapRanges(ranges);
|
|
82
|
-
if (!data)
|
|
83
|
-
return null;
|
|
84
|
-
const element = extractChemicalElement(activeTab);
|
|
85
|
-
const columns = [
|
|
86
|
-
{
|
|
87
|
-
accessorKey: 'delta',
|
|
88
|
-
header: 'δ (ppm)',
|
|
89
|
-
width: 100,
|
|
90
|
-
rowSpanGroupKey: 'id',
|
|
91
|
-
headerTextProps: { fontWeight: 'bold' },
|
|
92
|
-
cellBoxProps: { stroke: '#dedede', fill: 'white', fillOpacity: 0.8 },
|
|
93
|
-
headerBoxProps: { stroke: '#dedede', fill: '#E5E8EB' },
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
accessorKey: 'integration',
|
|
97
|
-
header: `Rel. ${element}`,
|
|
98
|
-
width: 60,
|
|
99
|
-
rowSpanGroupKey: 'id',
|
|
100
|
-
headerTextProps: { fontWeight: 'bold' },
|
|
101
|
-
cellBoxProps: { stroke: '#dedede', fill: 'white', fillOpacity: 0.8 },
|
|
102
|
-
headerBoxProps: { stroke: '#dedede', fill: '#E5E8EB' },
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
accessorKey: 'multiplicity',
|
|
106
|
-
header: 'Mult.',
|
|
107
|
-
width: 60,
|
|
108
|
-
rowSpanGroupKey: 'id',
|
|
109
|
-
headerTextProps: { fontWeight: 'bold' },
|
|
110
|
-
cellBoxProps: { stroke: '#dedede', fill: 'white', fillOpacity: 0.8 },
|
|
111
|
-
headerBoxProps: { stroke: '#dedede', fill: '#E5E8EB' },
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
accessorKey: 'coupling',
|
|
115
|
-
header: 'J (Hz)',
|
|
116
|
-
width: 120,
|
|
117
|
-
headerTextProps: { fontWeight: 'bold' },
|
|
118
|
-
cellBoxProps: { stroke: '#dedede', fill: 'white', fillOpacity: 0.8 },
|
|
119
|
-
headerBoxProps: { stroke: '#dedede', fill: '#E5E8EB' },
|
|
120
|
-
},
|
|
121
|
-
];
|
|
122
|
-
return _jsx(SVGTable, { data: data, columns: columns });
|
|
123
|
-
}
|
|
124
|
-
const SVGRangesTable = memo(InnerSVGRangesTable);
|
|
125
|
-
function DraggableRanges(props) {
|
|
126
|
-
const { ranges = [], bonding: externalBounding, spectrumKey } = props;
|
|
127
|
-
const dispatch = useDispatch();
|
|
128
|
-
const { viewerRef } = useGlobal();
|
|
129
|
-
const [bounding, setBounding] = useState(externalBounding);
|
|
130
|
-
const [isMoveActive, setIsMoveActive] = useState(false);
|
|
131
|
-
const { percentToPixel, pixelToPercent } = useSVGUnitConverter();
|
|
132
|
-
const isExportProcessStart = useCheckExportStatus();
|
|
133
|
-
useEffect(() => {
|
|
134
|
-
setBounding({ ...externalBounding });
|
|
135
|
-
}, [externalBounding]);
|
|
136
|
-
function handleResize(internalBounding) {
|
|
137
|
-
const { width = 0, height = 0 } = convertToPixel(externalBounding);
|
|
138
|
-
internalBounding.width += width;
|
|
139
|
-
internalBounding.height += height;
|
|
140
|
-
setBounding((prevBounding) => ({
|
|
141
|
-
...prevBounding,
|
|
142
|
-
...convertToPercent(internalBounding),
|
|
143
|
-
}));
|
|
144
|
-
}
|
|
145
|
-
function handleDrag(internalBounding) {
|
|
146
|
-
setBounding((prevBounding) => ({
|
|
147
|
-
...prevBounding,
|
|
148
|
-
...convertToPercent(internalBounding),
|
|
149
|
-
}));
|
|
150
|
-
}
|
|
151
|
-
function handleChangeInsetBounding(bounding) {
|
|
152
|
-
if (typeof bounding?.width === 'number' &&
|
|
153
|
-
typeof bounding?.height === 'number') {
|
|
154
|
-
const { width, height } = externalBounding;
|
|
155
|
-
bounding.width += width;
|
|
156
|
-
bounding.height += height;
|
|
157
|
-
}
|
|
158
|
-
dispatch({
|
|
159
|
-
type: 'CHANGE_RANGES_VIEW_FLOATING_BOX_BOUNDING',
|
|
160
|
-
payload: {
|
|
161
|
-
spectrumKey,
|
|
162
|
-
bounding: convertToPercent(bounding),
|
|
163
|
-
target: 'rangesBounding',
|
|
164
|
-
},
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
function convertToPixel(bounding) {
|
|
168
|
-
const { x, y, height, width } = bounding;
|
|
169
|
-
const output = {};
|
|
170
|
-
if (x) {
|
|
171
|
-
output.x = percentToPixel(x, 'x');
|
|
172
|
-
}
|
|
173
|
-
if (y) {
|
|
174
|
-
output.y = percentToPixel(y, 'y');
|
|
175
|
-
}
|
|
176
|
-
if (width) {
|
|
177
|
-
output.width = width;
|
|
178
|
-
}
|
|
179
|
-
if (height) {
|
|
180
|
-
output.height = height;
|
|
181
|
-
}
|
|
182
|
-
return output;
|
|
183
|
-
}
|
|
184
|
-
function convertToPercent(bounding) {
|
|
185
|
-
const { x, y, height, width } = bounding;
|
|
186
|
-
const output = {};
|
|
187
|
-
if (x) {
|
|
188
|
-
output.x = pixelToPercent(x, 'x');
|
|
189
|
-
}
|
|
190
|
-
if (y) {
|
|
191
|
-
output.y = pixelToPercent(y, 'y');
|
|
192
|
-
}
|
|
193
|
-
if (width) {
|
|
194
|
-
output.width = width;
|
|
195
|
-
}
|
|
196
|
-
if (height) {
|
|
197
|
-
output.height = height;
|
|
198
|
-
}
|
|
199
|
-
return output;
|
|
200
|
-
}
|
|
201
|
-
function handleRemove() {
|
|
202
|
-
dispatch({
|
|
203
|
-
type: 'TOGGLE_RANGES_VIEW_PROPERTY',
|
|
204
|
-
payload: { key: 'showRanges', spectrumKey },
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
const actionButtons = [
|
|
208
|
-
{
|
|
209
|
-
icon: _jsx(BsArrowsMove, {}),
|
|
210
|
-
intent: 'none',
|
|
211
|
-
title: 'Move ranges table',
|
|
212
|
-
style: { cursor: 'move' },
|
|
213
|
-
className: 'handle',
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
icon: _jsx(FaTimes, {}),
|
|
217
|
-
intent: 'danger',
|
|
218
|
-
title: 'Hide ranges table',
|
|
219
|
-
onClick: handleRemove,
|
|
220
|
-
},
|
|
221
|
-
];
|
|
222
|
-
if (!viewerRef || ranges.length === 0)
|
|
223
|
-
return null;
|
|
224
|
-
const { x: xInPercent, y: yInPercent } = bounding;
|
|
225
|
-
const x = percentToPixel(xInPercent, 'x');
|
|
226
|
-
const y = percentToPixel(yInPercent, 'y');
|
|
227
|
-
if (isExportProcessStart) {
|
|
228
|
-
return (_jsx("g", { transform: `translate(${x} ${y})`, children: _jsx(SVGRangesTable, { ranges: ranges }) }));
|
|
229
|
-
}
|
|
230
|
-
return (_jsx(ReactRnd, { default: { x, y, width: 'auto', height: 'auto' }, position: { x, y }, enableResizing: false, minWidth: 100, minHeight: 50, dragHandleClassName: "handle", enableUserSelectHack: false, bounds: `#${viewerRef.id}`, onDragStart: () => setIsMoveActive(true), onResize: (e, dir, eRef, size, position) => handleResize({ ...size, ...position }), onResizeStop: (e, dir, eRef, size, position) => handleChangeInsetBounding({ ...size, ...position }), onDrag: (e, { x, y }) => {
|
|
231
|
-
handleDrag({ x, y });
|
|
232
|
-
}, onDragStop: (e, { x, y }) => {
|
|
233
|
-
handleChangeInsetBounding({ x, y });
|
|
234
|
-
setIsMoveActive(false);
|
|
235
|
-
}, resizeHandleWrapperStyle: { backgroundColor: 'white' }, children: _jsx(ActionsButtonsPopover, { buttons: actionButtons, fill: true, positioningStrategy: "fixed", direction: "row", targetProps: { style: { width: '100%', height: '100%' } }, space: 2, ...(isMoveActive && { isOpen: true }), x: x, y: y, children: _jsx(SVGRangesTable, { ranges: ranges }) }) }));
|
|
236
|
-
}
|
|
237
|
-
function useSpectraRanges() {
|
|
238
|
-
const spectra = useSpectraByActiveNucleus();
|
|
239
|
-
const output = {};
|
|
240
|
-
for (const spectrum of spectra) {
|
|
241
|
-
if (!isSpectrum1D(spectrum)) {
|
|
242
|
-
continue;
|
|
243
|
-
}
|
|
244
|
-
const { id: spectrumKey, ranges } = spectrum;
|
|
245
|
-
if (!Array.isArray(ranges?.values) || ranges.values.length === 0) {
|
|
246
|
-
continue;
|
|
247
|
-
}
|
|
248
|
-
output[spectrumKey] = ranges.values;
|
|
249
|
-
}
|
|
250
|
-
return output;
|
|
251
|
-
}
|
|
252
|
-
export function FloatingRanges() {
|
|
253
|
-
const spectraRanges = useSpectraRanges();
|
|
254
|
-
const { view: { ranges }, } = useChartData();
|
|
255
|
-
const options = Object.entries(ranges);
|
|
256
|
-
return options.map(([spectrumKey, viewOptions]) => {
|
|
257
|
-
const { showRanges, rangesBounding } = viewOptions;
|
|
258
|
-
if (!showRanges)
|
|
259
|
-
return null;
|
|
260
|
-
return (_jsx(DraggableRanges, { spectrumKey: spectrumKey, bonding: rangesBounding, ranges: spectraRanges[spectrumKey] }, spectrumKey));
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
//# sourceMappingURL=FloatingRanges.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|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AAE,GAAG,WAAW,CAAC;QACnD,IAAI,CAAC,UAAU;YAAE,OAAO,IAAI,CAAC;QAE7B,OAAO,CACL,KAAC,eAAe,IAEd,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,cAAc,EACvB,MAAM,EAAE,aAAa,CAAC,WAAW,CAAC,IAH7B,WAAW,CAIhB,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Layout, PageSizeName } from '@zakodium/nmrium-core';
|
|
2
|
-
import * as Yup from 'yup';
|
|
3
|
-
export declare const exportOptionValidationSchema: Yup.Lazy<{
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
mode: NonNullable<"basic" | "advance" | undefined>;
|
|
7
|
-
dpi: number;
|
|
8
|
-
unit: NonNullable<"in" | "ft" | "m" | "px" | "yd" | "cm" | "mm" | "pt" | "pc" | undefined>;
|
|
9
|
-
useDefaultSettings: NonNullable<boolean | undefined>;
|
|
10
|
-
} | {
|
|
11
|
-
mode: NonNullable<"basic" | "advance" | undefined>;
|
|
12
|
-
layout: NonNullable<Layout | undefined>;
|
|
13
|
-
size: NonNullable<PageSizeName | undefined>;
|
|
14
|
-
dpi: number;
|
|
15
|
-
useDefaultSettings: NonNullable<boolean | undefined>;
|
|
16
|
-
}, Yup.AnyObject, any>;
|
|
17
|
-
//# sourceMappingURL=exportOptionValidationSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exportOptionValidationSchema.d.ts","sourceRoot":"","sources":["../../../../../src/component/elements/export/utilities/exportOptionValidationSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,YAAY,EAEb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AA6F3B,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;sBAMxC,CAAC"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import * as Yup from 'yup';
|
|
2
|
-
import { pageSizes } from '../../print/pageSize.js';
|
|
3
|
-
import { convertToPixels, units } from '../units.js';
|
|
4
|
-
const MAX_PIXEL = 16000;
|
|
5
|
-
const unitsKeys = units.map(({ unit }) => unit, []);
|
|
6
|
-
const pageSizesKeys = pageSizes.map(({ name }) => name, []);
|
|
7
|
-
function testSize(value, unit, dpi) {
|
|
8
|
-
const valueInPixel = convertToPixels(value, unit, dpi, {
|
|
9
|
-
precision: 2,
|
|
10
|
-
});
|
|
11
|
-
if (value) {
|
|
12
|
-
return valueInPixel <= MAX_PIXEL;
|
|
13
|
-
}
|
|
14
|
-
return true;
|
|
15
|
-
}
|
|
16
|
-
// export const exportOptionValidationSchema = Yup.object().shape({
|
|
17
|
-
// width: Yup.number()
|
|
18
|
-
// .required()
|
|
19
|
-
// .test(
|
|
20
|
-
// 'width-test',
|
|
21
|
-
// `Width should be less or equal to ${MAX_PIXEL}`,
|
|
22
|
-
// // eslint-disable-next-line func-names
|
|
23
|
-
// function (value) {
|
|
24
|
-
// // eslint-disable-next-line no-invalid-this
|
|
25
|
-
// const { unit, dpi } = this.parent;
|
|
26
|
-
// return testSize(value, unit, dpi);
|
|
27
|
-
// },
|
|
28
|
-
// ),
|
|
29
|
-
// height: Yup.number()
|
|
30
|
-
// .required()
|
|
31
|
-
// .test(
|
|
32
|
-
// 'height-test',
|
|
33
|
-
// `Height should be less or equal to ${MAX_PIXEL}`,
|
|
34
|
-
// // eslint-disable-next-line func-names
|
|
35
|
-
// function (value) {
|
|
36
|
-
// // eslint-disable-next-line no-invalid-this
|
|
37
|
-
// const { unit, dpi } = this.parent;
|
|
38
|
-
// return testSize(value, unit, dpi);
|
|
39
|
-
// },
|
|
40
|
-
// ),
|
|
41
|
-
// dpi: Yup.number().required(),
|
|
42
|
-
// unit: Yup.mixed<Unit>().oneOf(unitsKeys, 'Unit is invalid').required(),
|
|
43
|
-
// useDefaultSettings: Yup.boolean().required(),
|
|
44
|
-
// });
|
|
45
|
-
const advanceExportOptionValidationSchema = Yup.object().shape({
|
|
46
|
-
mode: Yup.string().oneOf(['basic', 'advance']).required(),
|
|
47
|
-
width: Yup.number()
|
|
48
|
-
.required()
|
|
49
|
-
.test('width-test', `Width should be less or equal to ${MAX_PIXEL}`, (value, context) => {
|
|
50
|
-
const { unit, dpi } = context.parent;
|
|
51
|
-
return testSize(value, unit, dpi);
|
|
52
|
-
}),
|
|
53
|
-
height: Yup.number()
|
|
54
|
-
.required()
|
|
55
|
-
.test('height-test', `Height should be less or equal to ${MAX_PIXEL}`, (value, context) => {
|
|
56
|
-
const { unit, dpi } = context.parent;
|
|
57
|
-
return testSize(value, unit, dpi);
|
|
58
|
-
}),
|
|
59
|
-
dpi: Yup.number().required(),
|
|
60
|
-
unit: Yup.mixed().oneOf(unitsKeys).required(),
|
|
61
|
-
useDefaultSettings: Yup.boolean().required(),
|
|
62
|
-
});
|
|
63
|
-
const basicExportOptionValidationSchema = Yup.object().shape({
|
|
64
|
-
mode: Yup.string().oneOf(['basic', 'advance']).required(),
|
|
65
|
-
size: Yup.mixed()
|
|
66
|
-
.oneOf(pageSizesKeys, 'Size is invalid')
|
|
67
|
-
.required(),
|
|
68
|
-
layout: Yup.mixed()
|
|
69
|
-
.oneOf(['portrait', 'landscape'], 'Layout is invalid')
|
|
70
|
-
.required(),
|
|
71
|
-
dpi: Yup.number().required(),
|
|
72
|
-
useDefaultSettings: Yup.boolean().required(),
|
|
73
|
-
});
|
|
74
|
-
export const exportOptionValidationSchema = Yup.lazy((values) => {
|
|
75
|
-
return values?.mode === 'advance'
|
|
76
|
-
? advanceExportOptionValidationSchema
|
|
77
|
-
: basicExportOptionValidationSchema;
|
|
78
|
-
});
|
|
79
|
-
//# sourceMappingURL=exportOptionValidationSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exportOptionValidationSchema.js","sourceRoot":"","sources":["../../../../../src/component/elements/export/utilities/exportOptionValidationSch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AAE;IACb,MAAM,EAAE,GAAG,CAAC,KAAK,EAAU;SACxB,KAAK,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,EAAE,mBAAmB,CAAC;SACrD,QAAQ,EAAE;IACb,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,kBAAkB,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,CAAC,IAAI,CAClD,CAAC,MAAsB,EAAE,EAAE;IACzB,OAAO,MAAM,EAAE,IAAI,KAAK,SAAS;QAC/B,CAAC,CAAC,mCAAmC;QACrC,CAAC,CAAC,iCAAiC,CAAC;AACxC,CAAC,CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getModes.d.ts","sourceRoot":"","sources":["../../../../../src/component/elements/export/utilities/getModes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAS5C,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getModes.js","sourceRoot":"","sources":["../../../../../src/component/elements/export/utilities/getModes.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAA+B;IAC/C;QACE,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,OAAO;KACf;IACD;QACE,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,SAAS;KACjB;CACF,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { NMRiumCore, SupportedUISlot } from '@zakodium/nmrium-core';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* Render all components registered in the given slot.
|
|
5
|
-
*
|
|
6
|
-
* @param core
|
|
7
|
-
* @param slot
|
|
8
|
-
* @param fallback - return fallback if no component is registered in the slot
|
|
9
|
-
*/
|
|
10
|
-
export declare function renderCoreSlot(core: NMRiumCore, slot: SupportedUISlot, fallback?: ReactNode): ReactNode;
|
|
11
|
-
//# sourceMappingURL=renderCoreSlot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderCoreSlot.d.ts","sourceRoot":"","sources":["../../../src/component/utility/renderCoreSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,eAAe,EACrB,QAAQ,CAAC,EAAE,SAAS,GACnB,SAAS,CAMX"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Render all components registered in the given slot.
|
|
4
|
-
*
|
|
5
|
-
* @param core
|
|
6
|
-
* @param slot
|
|
7
|
-
* @param fallback - return fallback if no component is registered in the slot
|
|
8
|
-
*/
|
|
9
|
-
export function renderCoreSlot(core, slot, fallback) {
|
|
10
|
-
const jsx = Array.from(core.slot(slot), ([key, Component]) => (_jsx(Component, { slot: slot }, key)));
|
|
11
|
-
return jsx.length > 0 ? jsx : fallback;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=renderCoreSlot.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderCoreSlot.js","sourceRoot":"","sources":["../../../src/component/utility/renderCoreSlot.tsx"],"names":[],"mappings":";AAGA;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAC5B,IAAgB,EAChB,IAAqB,EACrB,QAAoB;IAEpB,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,SAAS,CAAC,EAAE,EAAE,CAAC,CAC5D,KAAC,SAAS,IAAW,IAAI,EAAE,IAAI,IAAf,GAAG,CAAgB,CACpC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC;AACzC,CAAC"}
|