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
|
@@ -238,7 +238,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
238
238
|
stroke?: string | undefined;
|
|
239
239
|
strokeOpacity?: string | undefined;
|
|
240
240
|
strokeWidth?: string | undefined;
|
|
241
|
-
strokeDasharray?: "
|
|
241
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
242
242
|
};
|
|
243
243
|
};
|
|
244
244
|
secondary: {
|
|
@@ -247,7 +247,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
247
247
|
stroke?: string | undefined;
|
|
248
248
|
strokeOpacity?: string | undefined;
|
|
249
249
|
strokeWidth?: string | undefined;
|
|
250
|
-
strokeDasharray?: "
|
|
250
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
251
251
|
};
|
|
252
252
|
};
|
|
253
253
|
};
|
|
@@ -258,7 +258,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
258
258
|
stroke?: string | undefined;
|
|
259
259
|
strokeOpacity?: string | undefined;
|
|
260
260
|
strokeWidth?: string | undefined;
|
|
261
|
-
strokeDasharray?: "
|
|
261
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
262
262
|
};
|
|
263
263
|
};
|
|
264
264
|
secondary: {
|
|
@@ -267,12 +267,12 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
267
267
|
stroke?: string | undefined;
|
|
268
268
|
strokeOpacity?: string | undefined;
|
|
269
269
|
strokeWidth?: string | undefined;
|
|
270
|
-
strokeDasharray?: "
|
|
270
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
271
271
|
};
|
|
272
272
|
};
|
|
273
273
|
};
|
|
274
274
|
} | undefined;
|
|
275
|
-
}, any, any, import("@tanstack/
|
|
275
|
+
}, any, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
276
276
|
display: {
|
|
277
277
|
general?: {
|
|
278
278
|
experimentalFeatures?: {
|
|
@@ -511,7 +511,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
511
511
|
stroke?: string | undefined;
|
|
512
512
|
strokeOpacity?: string | undefined;
|
|
513
513
|
strokeWidth?: string | undefined;
|
|
514
|
-
strokeDasharray?: "
|
|
514
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
515
515
|
};
|
|
516
516
|
};
|
|
517
517
|
secondary: {
|
|
@@ -520,7 +520,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
520
520
|
stroke?: string | undefined;
|
|
521
521
|
strokeOpacity?: string | undefined;
|
|
522
522
|
strokeWidth?: string | undefined;
|
|
523
|
-
strokeDasharray?: "
|
|
523
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
524
524
|
};
|
|
525
525
|
};
|
|
526
526
|
};
|
|
@@ -531,7 +531,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
531
531
|
stroke?: string | undefined;
|
|
532
532
|
strokeOpacity?: string | undefined;
|
|
533
533
|
strokeWidth?: string | undefined;
|
|
534
|
-
strokeDasharray?: "
|
|
534
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
535
535
|
};
|
|
536
536
|
};
|
|
537
537
|
secondary: {
|
|
@@ -540,12 +540,12 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
540
540
|
stroke?: string | undefined;
|
|
541
541
|
strokeOpacity?: string | undefined;
|
|
542
542
|
strokeWidth?: string | undefined;
|
|
543
|
-
strokeDasharray?: "
|
|
543
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
544
544
|
};
|
|
545
545
|
};
|
|
546
546
|
};
|
|
547
547
|
} | undefined;
|
|
548
|
-
}> | undefined, any, import("@tanstack/
|
|
548
|
+
}> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
549
549
|
display: {
|
|
550
550
|
general?: {
|
|
551
551
|
experimentalFeatures?: {
|
|
@@ -784,7 +784,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
784
784
|
stroke?: string | undefined;
|
|
785
785
|
strokeOpacity?: string | undefined;
|
|
786
786
|
strokeWidth?: string | undefined;
|
|
787
|
-
strokeDasharray?: "
|
|
787
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
788
788
|
};
|
|
789
789
|
};
|
|
790
790
|
secondary: {
|
|
@@ -793,7 +793,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
793
793
|
stroke?: string | undefined;
|
|
794
794
|
strokeOpacity?: string | undefined;
|
|
795
795
|
strokeWidth?: string | undefined;
|
|
796
|
-
strokeDasharray?: "
|
|
796
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
797
797
|
};
|
|
798
798
|
};
|
|
799
799
|
};
|
|
@@ -804,7 +804,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
804
804
|
stroke?: string | undefined;
|
|
805
805
|
strokeOpacity?: string | undefined;
|
|
806
806
|
strokeWidth?: string | undefined;
|
|
807
|
-
strokeDasharray?: "
|
|
807
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
808
808
|
};
|
|
809
809
|
};
|
|
810
810
|
secondary: {
|
|
@@ -813,12 +813,12 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
813
813
|
stroke?: string | undefined;
|
|
814
814
|
strokeOpacity?: string | undefined;
|
|
815
815
|
strokeWidth?: string | undefined;
|
|
816
|
-
strokeDasharray?: "
|
|
816
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
817
817
|
};
|
|
818
818
|
};
|
|
819
819
|
};
|
|
820
820
|
} | undefined;
|
|
821
|
-
}> | undefined, any, import("@tanstack/
|
|
821
|
+
}> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
822
822
|
display: {
|
|
823
823
|
general?: {
|
|
824
824
|
experimentalFeatures?: {
|
|
@@ -1057,7 +1057,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
1057
1057
|
stroke?: string | undefined;
|
|
1058
1058
|
strokeOpacity?: string | undefined;
|
|
1059
1059
|
strokeWidth?: string | undefined;
|
|
1060
|
-
strokeDasharray?: "
|
|
1060
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
1061
1061
|
};
|
|
1062
1062
|
};
|
|
1063
1063
|
secondary: {
|
|
@@ -1066,7 +1066,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
1066
1066
|
stroke?: string | undefined;
|
|
1067
1067
|
strokeOpacity?: string | undefined;
|
|
1068
1068
|
strokeWidth?: string | undefined;
|
|
1069
|
-
strokeDasharray?: "
|
|
1069
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
1070
1070
|
};
|
|
1071
1071
|
};
|
|
1072
1072
|
};
|
|
@@ -1077,7 +1077,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
1077
1077
|
stroke?: string | undefined;
|
|
1078
1078
|
strokeOpacity?: string | undefined;
|
|
1079
1079
|
strokeWidth?: string | undefined;
|
|
1080
|
-
strokeDasharray?: "
|
|
1080
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
1081
1081
|
};
|
|
1082
1082
|
};
|
|
1083
1083
|
secondary: {
|
|
@@ -1086,7 +1086,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
1086
1086
|
stroke?: string | undefined;
|
|
1087
1087
|
strokeOpacity?: string | undefined;
|
|
1088
1088
|
strokeWidth?: string | undefined;
|
|
1089
|
-
strokeDasharray?: "
|
|
1089
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
1090
1090
|
};
|
|
1091
1091
|
};
|
|
1092
1092
|
};
|
|
@@ -1739,7 +1739,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
1739
1739
|
}>>;
|
|
1740
1740
|
}, import("zod/v4/core").$strip>>;
|
|
1741
1741
|
}, import("zod/v4/core").$strip>;
|
|
1742
|
-
}, import("zod/v4/core").$strip>, import("@tanstack/
|
|
1742
|
+
}, import("zod/v4/core").$strip>, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
1743
1743
|
display: {
|
|
1744
1744
|
general?: {
|
|
1745
1745
|
experimentalFeatures?: {
|
|
@@ -1978,7 +1978,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
1978
1978
|
stroke?: string | undefined;
|
|
1979
1979
|
strokeOpacity?: string | undefined;
|
|
1980
1980
|
strokeWidth?: string | undefined;
|
|
1981
|
-
strokeDasharray?: "
|
|
1981
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
1982
1982
|
};
|
|
1983
1983
|
};
|
|
1984
1984
|
secondary: {
|
|
@@ -1987,7 +1987,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
1987
1987
|
stroke?: string | undefined;
|
|
1988
1988
|
strokeOpacity?: string | undefined;
|
|
1989
1989
|
strokeWidth?: string | undefined;
|
|
1990
|
-
strokeDasharray?: "
|
|
1990
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
1991
1991
|
};
|
|
1992
1992
|
};
|
|
1993
1993
|
};
|
|
@@ -1998,7 +1998,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
1998
1998
|
stroke?: string | undefined;
|
|
1999
1999
|
strokeOpacity?: string | undefined;
|
|
2000
2000
|
strokeWidth?: string | undefined;
|
|
2001
|
-
strokeDasharray?: "
|
|
2001
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
2002
2002
|
};
|
|
2003
2003
|
};
|
|
2004
2004
|
secondary: {
|
|
@@ -2007,12 +2007,12 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
2007
2007
|
stroke?: string | undefined;
|
|
2008
2008
|
strokeOpacity?: string | undefined;
|
|
2009
2009
|
strokeWidth?: string | undefined;
|
|
2010
|
-
strokeDasharray?: "
|
|
2010
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
2011
2011
|
};
|
|
2012
2012
|
};
|
|
2013
2013
|
};
|
|
2014
2014
|
} | undefined;
|
|
2015
|
-
}> | undefined, import("@tanstack/
|
|
2015
|
+
}> | undefined, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
2016
2016
|
display: {
|
|
2017
2017
|
general?: {
|
|
2018
2018
|
experimentalFeatures?: {
|
|
@@ -2251,7 +2251,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
2251
2251
|
stroke?: string | undefined;
|
|
2252
2252
|
strokeOpacity?: string | undefined;
|
|
2253
2253
|
strokeWidth?: string | undefined;
|
|
2254
|
-
strokeDasharray?: "
|
|
2254
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
2255
2255
|
};
|
|
2256
2256
|
};
|
|
2257
2257
|
secondary: {
|
|
@@ -2260,7 +2260,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
2260
2260
|
stroke?: string | undefined;
|
|
2261
2261
|
strokeOpacity?: string | undefined;
|
|
2262
2262
|
strokeWidth?: string | undefined;
|
|
2263
|
-
strokeDasharray?: "
|
|
2263
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
2264
2264
|
};
|
|
2265
2265
|
};
|
|
2266
2266
|
};
|
|
@@ -2271,7 +2271,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
2271
2271
|
stroke?: string | undefined;
|
|
2272
2272
|
strokeOpacity?: string | undefined;
|
|
2273
2273
|
strokeWidth?: string | undefined;
|
|
2274
|
-
strokeDasharray?: "
|
|
2274
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
2275
2275
|
};
|
|
2276
2276
|
};
|
|
2277
2277
|
secondary: {
|
|
@@ -2280,7 +2280,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
|
|
|
2280
2280
|
stroke?: string | undefined;
|
|
2281
2281
|
strokeOpacity?: string | undefined;
|
|
2282
2282
|
strokeWidth?: string | undefined;
|
|
2283
|
-
strokeDasharray?: "
|
|
2283
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
2284
2284
|
};
|
|
2285
2285
|
};
|
|
2286
2286
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Callout, Collapse } from '@blueprintjs/core';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
import {
|
|
4
|
+
import { useSelector } from '@tanstack/react-store';
|
|
5
5
|
import { Button, withForm } from 'react-science/ui';
|
|
6
6
|
import { defaultGeneralSettingsFormValues, workspaceValidation, } from "../validation.js";
|
|
7
7
|
import { useErrors } from "./context.js";
|
|
@@ -10,7 +10,7 @@ export const GeneralSettingsErrorRenderer = withForm({
|
|
|
10
10
|
validators: { onDynamic: workspaceValidation },
|
|
11
11
|
render: function GeneralSettingsErrorRenderer({ form }) {
|
|
12
12
|
const { isOpen, setIsOpen } = useErrors();
|
|
13
|
-
const errors =
|
|
13
|
+
const errors = useSelector(form.store, (state) => {
|
|
14
14
|
return Object.values(state.errorMap.onDynamic ?? {}).flat();
|
|
15
15
|
});
|
|
16
16
|
return (_jsx(Collapse, { isOpen: isOpen, keepChildrenMounted: true, children: _jsxs(Callout, { title: "Errors in the form", intent: "danger", children: [_jsx(CloseButton, { icon: "cross", variant: "minimal", onClick: () => setIsOpen(false) }), _jsx("ul", { children: errors.map((error, index) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"renderer.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EACL,gCAAgC,EAChC,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAe,CAAC;AAE1C,MAAM,CAAC,MAAM,4BAA4B,GAAG,QAAQ,CAAC;IACnD,aAAa,EAAE,gCAAgC;IAC/C,UAAU,EAAE,EAAE,SAAS,EAAE,mBAAmB,EAAE;IAC9C,MAAM,EAAE,SAAS,4BAA4B,CAAC,EAAE,IAAI,EAAE;QACpD,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,CAAC;QAC1C,MAAM,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE;YAC/C,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAC9D,CAAC,CAAC,CAAC;QAEH,OAAO,CACL,KAAC,QAAQ,IAAC,MAAM,EAAE,MAAM,EAAE,mBAAmB,kBAC3C,MAAC,OAAO,IAAC,KAAK,EAAC,oBAAoB,EAAC,MAAM,EAAC,QAAQ,aACjD,KAAC,WAAW,IACV,IAAI,EAAC,OAAO,EACZ,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,GAC/B,EAEF,uBACG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;4BAC3B,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI;gCACrB,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CACb,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACnD;iCACA,IAAI,CAAC,GAAG,CAAC,CAAC;4BAEb,OAAO,CACL,yBACG,IAAI,QAAI,KAAK,CAAC,OAAO,KADf,GAAG,IAAI,IAAI,KAAK,EAAE,CAEtB,CACN,CAAC;wBACJ,CAAC,CAAC,GACC,IACG,GACD,CACZ,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;;;CAIjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general_settings.d.ts","sourceRoot":"","sources":["../../../../../src/component/modal/setting/tanstack_general_settings/general_settings.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"general_settings.d.ts","sourceRoot":"","sources":["../../../../../src/component/modal/setting/tanstack_general_settings/general_settings.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAmBvD,UAAU,0BAA0B;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAiBD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,+BAUtE"}
|
|
@@ -3,8 +3,9 @@ import { Dialog as BPDialog } from '@blueprintjs/core';
|
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
import { revalidateLogic } from '@tanstack/react-form';
|
|
5
5
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
6
|
-
import {
|
|
6
|
+
import { AppForm, useForm } from 'react-science/ui';
|
|
7
7
|
import { match } from 'ts-pattern';
|
|
8
|
+
import { z } from 'zod';
|
|
8
9
|
import { usePreferences } from '../../../context/PreferencesContext.js';
|
|
9
10
|
import ErrorOverlay from "../../../main/ErrorOverlay.js";
|
|
10
11
|
import { GeneralSettingsErrorsOpenProvider } from "./errors/context.js";
|
|
@@ -31,6 +32,8 @@ export function GeneralSettingsDialog(props) {
|
|
|
31
32
|
const { isOpen, close } = props;
|
|
32
33
|
return (_jsx(Dialog, { isOpen: isOpen, onClose: close, title: "General settings", icon: "cog", children: _jsx(ErrorBoundary, { FallbackComponent: ErrorOverlay, children: _jsx(GeneralSettings, { ...props }) }) }));
|
|
33
34
|
}
|
|
35
|
+
const metaSchema = z.enum(['apply', 'save']);
|
|
36
|
+
const onSubmitMeta = 'apply';
|
|
34
37
|
function GeneralSettings(props) {
|
|
35
38
|
const { close, height, onSave } = props;
|
|
36
39
|
const { current: currentWorkspace, dispatch } = usePreferences();
|
|
@@ -41,10 +44,11 @@ function GeneralSettings(props) {
|
|
|
41
44
|
},
|
|
42
45
|
validationLogic: revalidateLogic({ mode: 'change' }),
|
|
43
46
|
defaultValues,
|
|
44
|
-
|
|
45
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
46
|
-
onSubmitMeta: 'apply',
|
|
47
|
+
onSubmitMeta,
|
|
47
48
|
onSubmit: ({ value, meta }) => {
|
|
49
|
+
meta = metaSchema.parse(meta, {
|
|
50
|
+
error: () => 'Submit event must be attached to a submitter with "data-action" attribute with "apply" or "save" value',
|
|
51
|
+
});
|
|
48
52
|
const mergedValues = formValueToWorkspace(value, currentWorkspace);
|
|
49
53
|
match(meta)
|
|
50
54
|
.with('apply', () => {
|
|
@@ -60,14 +64,7 @@ function GeneralSettings(props) {
|
|
|
60
64
|
close();
|
|
61
65
|
},
|
|
62
66
|
});
|
|
63
|
-
return (
|
|
64
|
-
event.preventDefault();
|
|
65
|
-
const nativeEvent = event.nativeEvent;
|
|
66
|
-
const submitter = nativeEvent.submitter;
|
|
67
|
-
assert(submitter, 'form event should have a submitter');
|
|
68
|
-
const action = submitter.dataset.action;
|
|
69
|
-
void form.handleSubmit(action);
|
|
70
|
-
}, children: [_jsx(PreventImplicitSubmit, {}), _jsxs(GeneralSettingsErrorsOpenProvider, { form: form, children: [_jsx(GeneralSettingsDialogHeader, { form: form }), _jsx(GeneralSettingsDialogBody, { form: form, height: height }), _jsx(GeneralSettingsDialogFooter, { form: form, onCancel: close })] })] }) }));
|
|
67
|
+
return (_jsxs(AppForm, { form: form, layout: "inline", onSubmitMeta: (event) => event.nativeEvent.submitter?.dataset.action, children: [_jsx(PreventImplicitSubmit, {}), _jsxs(GeneralSettingsErrorsOpenProvider, { form: form, children: [_jsx(GeneralSettingsDialogHeader, { form: form }), _jsx(GeneralSettingsDialogBody, { form: form, height: height }), _jsx(GeneralSettingsDialogFooter, { form: form, onCancel: close })] })] }));
|
|
71
68
|
}
|
|
72
69
|
const InvisibleButton = styled.button `
|
|
73
70
|
display: none;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general_settings.js","sourceRoot":"","sources":["../../../../../src/component/modal/setting/tanstack_general_settings/general_settings.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"general_settings.js","sourceRoot":"","sources":["../../../../../src/component/modal/setting/tanstack_general_settings/general_settings.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,YAAY,MAAM,+BAAgC,CAAC;AAE1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAsB,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EACL,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAStD,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;;;;;;;;;;;;;CAa9B,CAAC;AAEF,MAAM,UAAU,qBAAqB,CAAC,KAAiC;IACrE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAEhC,OAAO,CACL,KAAC,MAAM,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAC,kBAAkB,EAAC,IAAI,EAAC,KAAK,YACzE,KAAC,aAAa,IAAC,iBAAiB,EAAE,YAAY,YAC5C,KAAC,eAAe,OAAK,KAAK,GAAI,GAChB,GACT,CACV,CAAC;AACJ,CAAC;AASD,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AAE7C,MAAM,YAAY,GAAa,OAAO,CAAC;AAEvC,SAAS,eAAe,CAAC,KAA2B;IAClD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAExC,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,GAAG,cAAc,EAAE,CAAC;IACjE,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IAEzC,MAAM,IAAI,GAAG,OAAO,CAAC;QACnB,UAAU,EAAE;YACV,SAAS,EAAE,mBAAmB;SAC/B;QACD,eAAe,EAAE,eAAe,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;QACpD,aAAa;QACb,YAAY;QACZ,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;YAC5B,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE;gBAC5B,KAAK,EAAE,GAAG,EAAE,CACV,wGAAwG;aAC3G,CAAC,CAAC;YACH,MAAM,YAAY,GAAG,oBAAoB,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;YAEnE,KAAK,CAAC,IAAI,CAAC;iBACR,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE;gBAClB,QAAQ,CAAC;oBACP,IAAI,EAAE,2BAA2B;oBACjC,OAAO,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;iBAChC,CAAC,CAAC;YACL,CAAC,CAAC;iBACD,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE;gBACjB,MAAM,CAAC,YAAY,CAAC,CAAC;YACvB,CAAC,CAAC;iBACD,UAAU,EAAE,CAAC;YAEhB,KAAK,EAAE,CAAC;QACV,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,CACL,MAAC,OAAO,IACN,IAAI,EAAE,IAAI,EACV,MAAM,EAAC,QAAQ,EACf,YAAY,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,EAAE,OAAO,CAAC,MAAM,aAEpE,KAAC,qBAAqB,KAAG,EAEzB,MAAC,iCAAiC,IAAC,IAAI,EAAE,IAAI,aAC3C,KAAC,2BAA2B,IAAC,IAAI,EAAE,IAAI,GAAI,EAC3C,KAAC,yBAAyB,IAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAI,EACzD,KAAC,2BAA2B,IAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,GAAI,IAC1B,IAC5B,CACX,CAAC;AACJ,CAAC;AAED,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAA;;CAEpC,CAAC;AAEF;;;;;GAKG;AACH,SAAS,qBAAqB;IAC5B,OAAO,KAAC,eAAe,IAAC,IAAI,EAAC,QAAQ,iBAAa,MAAM,EAAC,QAAQ,SAAG,CAAC;AACvE,CAAC"}
|
package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts
CHANGED
|
@@ -240,7 +240,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
240
240
|
stroke?: string | undefined;
|
|
241
241
|
strokeOpacity?: string | undefined;
|
|
242
242
|
strokeWidth?: string | undefined;
|
|
243
|
-
strokeDasharray?: "
|
|
243
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
244
244
|
};
|
|
245
245
|
};
|
|
246
246
|
secondary: {
|
|
@@ -249,7 +249,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
249
249
|
stroke?: string | undefined;
|
|
250
250
|
strokeOpacity?: string | undefined;
|
|
251
251
|
strokeWidth?: string | undefined;
|
|
252
|
-
strokeDasharray?: "
|
|
252
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
253
253
|
};
|
|
254
254
|
};
|
|
255
255
|
};
|
|
@@ -260,7 +260,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
260
260
|
stroke?: string | undefined;
|
|
261
261
|
strokeOpacity?: string | undefined;
|
|
262
262
|
strokeWidth?: string | undefined;
|
|
263
|
-
strokeDasharray?: "
|
|
263
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
264
264
|
};
|
|
265
265
|
};
|
|
266
266
|
secondary: {
|
|
@@ -269,12 +269,12 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
269
269
|
stroke?: string | undefined;
|
|
270
270
|
strokeOpacity?: string | undefined;
|
|
271
271
|
strokeWidth?: string | undefined;
|
|
272
|
-
strokeDasharray?: "
|
|
272
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
275
|
};
|
|
276
276
|
} | undefined;
|
|
277
|
-
}, any, any, import("@tanstack/
|
|
277
|
+
}, any, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
278
278
|
display: {
|
|
279
279
|
general?: {
|
|
280
280
|
experimentalFeatures?: {
|
|
@@ -513,7 +513,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
513
513
|
stroke?: string | undefined;
|
|
514
514
|
strokeOpacity?: string | undefined;
|
|
515
515
|
strokeWidth?: string | undefined;
|
|
516
|
-
strokeDasharray?: "
|
|
516
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
517
517
|
};
|
|
518
518
|
};
|
|
519
519
|
secondary: {
|
|
@@ -522,7 +522,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
522
522
|
stroke?: string | undefined;
|
|
523
523
|
strokeOpacity?: string | undefined;
|
|
524
524
|
strokeWidth?: string | undefined;
|
|
525
|
-
strokeDasharray?: "
|
|
525
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
526
526
|
};
|
|
527
527
|
};
|
|
528
528
|
};
|
|
@@ -533,7 +533,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
533
533
|
stroke?: string | undefined;
|
|
534
534
|
strokeOpacity?: string | undefined;
|
|
535
535
|
strokeWidth?: string | undefined;
|
|
536
|
-
strokeDasharray?: "
|
|
536
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
537
537
|
};
|
|
538
538
|
};
|
|
539
539
|
secondary: {
|
|
@@ -542,12 +542,12 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
542
542
|
stroke?: string | undefined;
|
|
543
543
|
strokeOpacity?: string | undefined;
|
|
544
544
|
strokeWidth?: string | undefined;
|
|
545
|
-
strokeDasharray?: "
|
|
545
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
546
546
|
};
|
|
547
547
|
};
|
|
548
548
|
};
|
|
549
549
|
} | undefined;
|
|
550
|
-
}> | undefined, any, import("@tanstack/
|
|
550
|
+
}> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
551
551
|
display: {
|
|
552
552
|
general?: {
|
|
553
553
|
experimentalFeatures?: {
|
|
@@ -786,7 +786,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
786
786
|
stroke?: string | undefined;
|
|
787
787
|
strokeOpacity?: string | undefined;
|
|
788
788
|
strokeWidth?: string | undefined;
|
|
789
|
-
strokeDasharray?: "
|
|
789
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
790
790
|
};
|
|
791
791
|
};
|
|
792
792
|
secondary: {
|
|
@@ -795,7 +795,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
795
795
|
stroke?: string | undefined;
|
|
796
796
|
strokeOpacity?: string | undefined;
|
|
797
797
|
strokeWidth?: string | undefined;
|
|
798
|
-
strokeDasharray?: "
|
|
798
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
799
799
|
};
|
|
800
800
|
};
|
|
801
801
|
};
|
|
@@ -806,7 +806,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
806
806
|
stroke?: string | undefined;
|
|
807
807
|
strokeOpacity?: string | undefined;
|
|
808
808
|
strokeWidth?: string | undefined;
|
|
809
|
-
strokeDasharray?: "
|
|
809
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
810
810
|
};
|
|
811
811
|
};
|
|
812
812
|
secondary: {
|
|
@@ -815,12 +815,12 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
815
815
|
stroke?: string | undefined;
|
|
816
816
|
strokeOpacity?: string | undefined;
|
|
817
817
|
strokeWidth?: string | undefined;
|
|
818
|
-
strokeDasharray?: "
|
|
818
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
819
819
|
};
|
|
820
820
|
};
|
|
821
821
|
};
|
|
822
822
|
} | undefined;
|
|
823
|
-
}> | undefined, any, import("@tanstack/
|
|
823
|
+
}> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
824
824
|
display: {
|
|
825
825
|
general?: {
|
|
826
826
|
experimentalFeatures?: {
|
|
@@ -1059,7 +1059,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
1059
1059
|
stroke?: string | undefined;
|
|
1060
1060
|
strokeOpacity?: string | undefined;
|
|
1061
1061
|
strokeWidth?: string | undefined;
|
|
1062
|
-
strokeDasharray?: "
|
|
1062
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
1063
1063
|
};
|
|
1064
1064
|
};
|
|
1065
1065
|
secondary: {
|
|
@@ -1068,7 +1068,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
1068
1068
|
stroke?: string | undefined;
|
|
1069
1069
|
strokeOpacity?: string | undefined;
|
|
1070
1070
|
strokeWidth?: string | undefined;
|
|
1071
|
-
strokeDasharray?: "
|
|
1071
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
1072
1072
|
};
|
|
1073
1073
|
};
|
|
1074
1074
|
};
|
|
@@ -1079,7 +1079,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
1079
1079
|
stroke?: string | undefined;
|
|
1080
1080
|
strokeOpacity?: string | undefined;
|
|
1081
1081
|
strokeWidth?: string | undefined;
|
|
1082
|
-
strokeDasharray?: "
|
|
1082
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
1083
1083
|
};
|
|
1084
1084
|
};
|
|
1085
1085
|
secondary: {
|
|
@@ -1088,7 +1088,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
1088
1088
|
stroke?: string | undefined;
|
|
1089
1089
|
strokeOpacity?: string | undefined;
|
|
1090
1090
|
strokeWidth?: string | undefined;
|
|
1091
|
-
strokeDasharray?: "
|
|
1091
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
1092
1092
|
};
|
|
1093
1093
|
};
|
|
1094
1094
|
};
|
|
@@ -1741,7 +1741,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
1741
1741
|
}>>;
|
|
1742
1742
|
}, import("zod/v4/core").$strip>>;
|
|
1743
1743
|
}, import("zod/v4/core").$strip>;
|
|
1744
|
-
}, import("zod/v4/core").$strip>, import("@tanstack/
|
|
1744
|
+
}, import("zod/v4/core").$strip>, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
1745
1745
|
display: {
|
|
1746
1746
|
general?: {
|
|
1747
1747
|
experimentalFeatures?: {
|
|
@@ -1980,7 +1980,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
1980
1980
|
stroke?: string | undefined;
|
|
1981
1981
|
strokeOpacity?: string | undefined;
|
|
1982
1982
|
strokeWidth?: string | undefined;
|
|
1983
|
-
strokeDasharray?: "
|
|
1983
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
1984
1984
|
};
|
|
1985
1985
|
};
|
|
1986
1986
|
secondary: {
|
|
@@ -1989,7 +1989,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
1989
1989
|
stroke?: string | undefined;
|
|
1990
1990
|
strokeOpacity?: string | undefined;
|
|
1991
1991
|
strokeWidth?: string | undefined;
|
|
1992
|
-
strokeDasharray?: "
|
|
1992
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
1993
1993
|
};
|
|
1994
1994
|
};
|
|
1995
1995
|
};
|
|
@@ -2000,7 +2000,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
2000
2000
|
stroke?: string | undefined;
|
|
2001
2001
|
strokeOpacity?: string | undefined;
|
|
2002
2002
|
strokeWidth?: string | undefined;
|
|
2003
|
-
strokeDasharray?: "
|
|
2003
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
2004
2004
|
};
|
|
2005
2005
|
};
|
|
2006
2006
|
secondary: {
|
|
@@ -2009,12 +2009,12 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
2009
2009
|
stroke?: string | undefined;
|
|
2010
2010
|
strokeOpacity?: string | undefined;
|
|
2011
2011
|
strokeWidth?: string | undefined;
|
|
2012
|
-
strokeDasharray?: "
|
|
2012
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
2013
2013
|
};
|
|
2014
2014
|
};
|
|
2015
2015
|
};
|
|
2016
2016
|
} | undefined;
|
|
2017
|
-
}> | undefined, import("@tanstack/
|
|
2017
|
+
}> | undefined, import("@tanstack/form-core").FormAsyncValidateOrFn<{
|
|
2018
2018
|
display: {
|
|
2019
2019
|
general?: {
|
|
2020
2020
|
experimentalFeatures?: {
|
|
@@ -2253,7 +2253,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
2253
2253
|
stroke?: string | undefined;
|
|
2254
2254
|
strokeOpacity?: string | undefined;
|
|
2255
2255
|
strokeWidth?: string | undefined;
|
|
2256
|
-
strokeDasharray?: "
|
|
2256
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
2257
2257
|
};
|
|
2258
2258
|
};
|
|
2259
2259
|
secondary: {
|
|
@@ -2262,7 +2262,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
2262
2262
|
stroke?: string | undefined;
|
|
2263
2263
|
strokeOpacity?: string | undefined;
|
|
2264
2264
|
strokeWidth?: string | undefined;
|
|
2265
|
-
strokeDasharray?: "
|
|
2265
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
2266
2266
|
};
|
|
2267
2267
|
};
|
|
2268
2268
|
};
|
|
@@ -2273,7 +2273,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
2273
2273
|
stroke?: string | undefined;
|
|
2274
2274
|
strokeOpacity?: string | undefined;
|
|
2275
2275
|
strokeWidth?: string | undefined;
|
|
2276
|
-
strokeDasharray?: "
|
|
2276
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
2277
2277
|
};
|
|
2278
2278
|
};
|
|
2279
2279
|
secondary: {
|
|
@@ -2282,7 +2282,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
|
|
|
2282
2282
|
stroke?: string | undefined;
|
|
2283
2283
|
strokeOpacity?: string | undefined;
|
|
2284
2284
|
strokeWidth?: string | undefined;
|
|
2285
|
-
strokeDasharray?: "
|
|
2285
|
+
strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
|
|
2286
2286
|
};
|
|
2287
2287
|
};
|
|
2288
2288
|
};
|
package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Classes, Tab, Tabs as BPTabs } from '@blueprintjs/core';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
import {
|
|
4
|
+
import { useSelector } from '@tanstack/react-store';
|
|
5
5
|
import { withForm } from 'react-science/ui';
|
|
6
6
|
import { StyledDialogBody } from '../../../elements/StyledDialogBody.js';
|
|
7
7
|
import { GeneralSettingsErrorRenderer } from "./errors/renderer.js";
|
|
@@ -47,7 +47,7 @@ export const GeneralSettingsDialogBody = withForm({
|
|
|
47
47
|
height: undefined,
|
|
48
48
|
},
|
|
49
49
|
render: function GeneralSettingsDialogBody({ height, form }) {
|
|
50
|
-
const isExperimentalEnabled =
|
|
50
|
+
const isExperimentalEnabled = useSelector(form.store, (state) => state.values.display.general?.experimentalFeatures?.display ?? false);
|
|
51
51
|
return (_jsxs(StyledDialogBody, { children: [_jsx(Div, { height: height, children: _jsxs(Tabs, { vertical: true, children: [_jsx(Tab, { title: "General", id: "general", panel: _jsx(GeneralTab, { form: form }) }), _jsx(Tab, { title: "Axes", id: "axis", panel: _jsx(AxisTab, { form: form }) }), _jsx(Tab, { title: "Nuclei", id: "nuclei", panel: _jsx(NucleiTab, { form: form }) }), _jsx(Tab, { id: "panels", title: "Panels", panel: _jsx(PanelsTab, { form: form }) }), _jsx(Tab, { id: "tools", title: "Tools", panel: _jsx(ToolsTab, { form: form }) }), _jsx(Tab, { title: "Databases", id: "databases", panel: _jsx(DatabaseTab, { form: form }) }), _jsx(Tab, { id: "import-filters", title: "Import filters", panel: _jsx(ImportFiltersTab, { form: form }) }), _jsx(Tab, { id: "title-block", title: "Title block", panel: _jsx(TitleBlockTab, { form: form }) }), _jsx(Tab, { title: "Auto processing", id: "on-load-processing", panel: _jsx(AutoProcessingTab, { form: form }) }), _jsx(Tab, { title: "Spectra colors", id: "spectra-colors", panel: _jsx(SpectraColorsTab, { form: form }) }), _jsx(Tab, { title: "Spectra label", id: "spectra-label", panel: _jsx(SpectraLabelTab, { form: form }) }), isExperimentalEnabled && (_jsx(Tab, { id: "external-apis", title: "External APIs", panel: _jsx(ExternalApiTab, { form: form }) })), _jsx(Tab, { id: "export", title: "Export", panel: _jsx(ExportTab, { form: form }) })] }) }), _jsx(GeneralSettingsErrorRenderer, { form: form })] }));
|
|
52
52
|
},
|
|
53
53
|
});
|