nmrium 1.12.0 → 2.0.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/database/DatabaseSpectrum.d.ts.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js +3 -17
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
- package/lib/component/2d/ft/Contours.d.ts.map +1 -1
- package/lib/component/2d/ft/Contours.js +10 -12
- package/lib/component/2d/ft/Contours.js.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
- package/lib/component/hooks/reduce2DSpectrum.d.ts +4 -0
- package/lib/component/hooks/reduce2DSpectrum.d.ts.map +1 -0
- package/lib/component/hooks/reduce2DSpectrum.js +60 -0
- package/lib/component/hooks/reduce2DSpectrum.js.map +1 -0
- package/lib/component/hooks/use2DReducer.d.ts +14 -0
- package/lib/component/hooks/use2DReducer.d.ts.map +1 -0
- package/lib/component/hooks/use2DReducer.js +30 -0
- package/lib/component/hooks/use2DReducer.js.map +1 -0
- package/lib/component/hooks/useCreateNmriumZip.d.ts +3 -0
- package/lib/component/hooks/useCreateNmriumZip.d.ts.map +1 -0
- package/lib/component/hooks/useCreateNmriumZip.js +28 -0
- package/lib/component/hooks/useCreateNmriumZip.js.map +1 -0
- package/lib/component/hooks/useExport.d.ts +8 -5
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +4 -21
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
- package/lib/component/loader/useLoadFiles.js +4 -5
- package/lib/component/loader/useLoadFiles.js.map +1 -1
- package/lib/component/main/InnerNMRium.d.ts.map +1 -1
- package/lib/component/main/InnerNMRium.js +2 -2
- package/lib/component/main/InnerNMRium.js.map +1 -1
- package/lib/component/main/NMRium.d.ts +48 -3
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRium.js.map +1 -1
- package/lib/component/main/NMRiumRefAPI.d.ts +2 -0
- package/lib/component/main/NMRiumRefAPI.d.ts.map +1 -1
- package/lib/component/main/NMRiumRefAPI.js +4 -1
- package/lib/component/main/NMRiumRefAPI.js.map +1 -1
- package/lib/component/main/NMRiumStateProvider.d.ts +5 -2
- package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
- package/lib/component/main/NMRiumStateProvider.js +36 -30
- package/lib/component/main/NMRiumStateProvider.js.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.js +4 -4
- package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
- package/lib/component/modal/setting/general_settings.d.ts.map +1 -1
- package/lib/component/modal/setting/general_settings.js +3 -3
- package/lib/component/modal/setting/general_settings.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts +4 -2
- 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 +46 -29
- 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 +920 -188
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js +10 -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 +920 -188
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +1353 -6
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js +43 -32
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts +1353 -6
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js +88 -83
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +466 -0
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.js +59 -0
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js +32 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js +80 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +920 -188
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +37 -9
- 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 +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +58 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +920 -188
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +920 -188
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +920 -188
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js +65 -112
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +920 -188
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js +3 -3
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js +142 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +112 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +1354 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js +38 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts +68 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.js +133 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.d.ts +10 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js +31 -0
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +71 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.js +67 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/{utils/checkUniqueByKey.d.ts → validation/check_unique_by_key.d.ts} +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/{utils/checkUniqueByKey.js → validation/check_unique_by_key.js} +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/check_unique_by_key.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.d.ts +11 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.js +20 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.d.ts +32 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.js +11 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +2 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js +3 -6
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts +12 -4
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js +4 -3
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts +20 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js +12 -4
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.d.ts +54 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.js +22 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.d.ts +55 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.js +18 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts +32 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js +34 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/utils.d.ts +13 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/utils.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/utils.js +20 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/utils.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +255 -39
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation.js +16 -27
- package/lib/component/modal/setting/tanstack_general_settings/validation.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.js +27 -0
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js +3 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts +2 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +8 -3
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +2 -2
- package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +26 -33
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.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/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +1 -3
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +2 -4
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +14 -5
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadAction.d.ts +1 -4
- package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadAction.js +8 -17
- package/lib/component/reducer/actions/LoadAction.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +3 -0
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +5 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +4 -2
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +1 -1
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/preferences/actions/applyGeneralPreferences.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/applyGeneralPreferences.js.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +3 -3
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +9 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/data/PredictionManager.d.ts.map +1 -1
- package/lib/data/PredictionManager.js +3 -0
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts +7 -6
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +22 -6
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +1 -10
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/data/molecules/Molecule.d.ts +5 -1
- package/lib/data/molecules/Molecule.d.ts.map +1 -1
- package/lib/data/molecules/Molecule.js +9 -7
- package/lib/data/molecules/Molecule.js.map +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +0 -6
- package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.js +25 -25
- package/lib/data/molecules/MoleculeManager.js.map +1 -1
- package/lib/versionInfo.d.ts.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/lib/versionInfo.js.map +1 -1
- package/package.json +30 -29
- package/src/component/1d/database/DatabaseSpectrum.tsx +3 -1
- package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +10 -22
- package/src/component/2d/ft/Contours.tsx +14 -27
- package/src/component/elements/ActionsButtonsPopover.tsx +1 -1
- package/src/component/hooks/reduce2DSpectrum.ts +98 -0
- package/src/component/hooks/use2DReducer.tsx +56 -0
- package/src/component/hooks/useCreateNmriumZip.ts +37 -0
- package/src/component/hooks/useExport.tsx +16 -31
- package/src/component/loader/useLoadFiles.ts +6 -10
- package/src/component/main/InnerNMRium.tsx +4 -2
- package/src/component/main/NMRium.tsx +50 -2
- package/src/component/main/NMRiumRefAPI.ts +7 -1
- package/src/component/main/NMRiumStateProvider.tsx +57 -35
- package/src/component/modal/LoadJCAMPModal.tsx +4 -4
- package/src/component/modal/setting/general_settings.tsx +4 -3
- package/src/component/modal/setting/tanstack_general_settings/general_settings.tsx +80 -54
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +48 -1
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx +75 -68
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.tsx +165 -184
- package/src/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.ts +95 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.tsx +81 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +210 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +48 -8
- package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +150 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/general_tab.tsx +3 -3
- package/src/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.tsx +164 -233
- package/src/component/modal/setting/tanstack_general_settings/tabs/panels_tab.tsx +10 -10
- package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +352 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +248 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/tools_tab.tsx +155 -0
- package/src/component/modal/setting/tanstack_general_settings/ui/table.tsx +163 -0
- package/src/component/modal/setting/tanstack_general_settings/ui/table_section.tsx +52 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.ts +73 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/database_tab_validation.ts +23 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/external_apis_validation.ts +12 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.ts +4 -6
- package/src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts +11 -8
- package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts +17 -9
- package/src/component/modal/setting/tanstack_general_settings/validation/spectra_colors_tab_validation.ts +29 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/title_block_tab_validation.ts +26 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.ts +34 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/utils.ts +30 -0
- package/src/component/modal/setting/tanstack_general_settings/validation.ts +16 -31
- package/src/component/panels/MoleculesPanel/MoleculeStructure.tsx +35 -0
- package/src/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.tsx +3 -2
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +12 -4
- package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +1 -1
- package/src/component/panels/databasePanel/DatabasePanel.tsx +6 -4
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +34 -49
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +1 -1
- package/src/component/reducer/Reducer.ts +1 -3
- package/src/component/reducer/actions/FiltersActions.ts +16 -10
- package/src/component/reducer/actions/LoadAction.ts +12 -27
- package/src/component/reducer/actions/MoleculeActions.ts +3 -0
- package/src/component/reducer/actions/SpectraActions.ts +14 -6
- package/src/component/reducer/actions/ToolsActions.ts +3 -1
- package/src/component/reducer/preferences/actions/applyGeneralPreferences.ts +1 -2
- package/src/component/reducer/preferences/preferencesReducer.ts +4 -4
- package/src/component/workspaces/workspaceDefaultProperties.ts +9 -0
- package/src/data/PredictionManager.ts +3 -0
- package/src/data/data2d/Spectrum2D/contours.ts +28 -12
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +1 -17
- package/src/data/molecules/Molecule.ts +17 -7
- package/src/data/molecules/MoleculeManager.ts +31 -29
- package/src/versionInfo.ts +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.d.ts.map +0 -1
- package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.js.map +0 -1
- /package/src/component/modal/setting/tanstack_general_settings/{utils/checkUniqueByKey.ts → validation/check_unique_by_key.ts} +0 -0
|
@@ -1,261 +1,192 @@
|
|
|
1
|
-
import { Classes
|
|
2
|
-
import
|
|
3
|
-
import { useStore } from '@tanstack/react-form';
|
|
1
|
+
import { Classes } from '@blueprintjs/core';
|
|
2
|
+
import { useField } from '@tanstack/react-form';
|
|
4
3
|
import { useCallback, useMemo } from 'react';
|
|
5
4
|
import { FaPlus, FaRegTrashAlt } from 'react-icons/fa';
|
|
6
|
-
import { Button, withForm } from 'react-science/ui';
|
|
7
|
-
import type {
|
|
5
|
+
import { Button, createTableColumnHelper, withForm } from 'react-science/ui';
|
|
6
|
+
import type { z } from 'zod';
|
|
8
7
|
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
import {
|
|
9
|
+
CellActions,
|
|
10
|
+
CellActionsButton,
|
|
11
|
+
CellInput,
|
|
12
|
+
CellNumericInput,
|
|
13
|
+
TableSettings,
|
|
14
|
+
} from '../ui/table.tsx';
|
|
15
|
+
import { TableSection } from '../ui/table_section.tsx';
|
|
16
|
+
import type { nucleiValidation } from '../validation/nuclei_tab_validation.ts';
|
|
14
17
|
import { defaultGeneralSettingsFormValues } from '../validation.js';
|
|
15
18
|
|
|
16
|
-
|
|
17
|
-
nucleus: string;
|
|
18
|
-
ppmFormat: string;
|
|
19
|
-
hzFormat: string;
|
|
20
|
-
}
|
|
19
|
+
type NucleiFormElement = z.input<typeof nucleiValidation>[number];
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
function emptyNucleiFormElement(): NucleiFormElement {
|
|
22
|
+
return {
|
|
23
|
+
nucleus: '',
|
|
24
|
+
ppmFormat: '0.00',
|
|
25
|
+
hzFormat: '0.00',
|
|
26
|
+
uuid: crypto.randomUUID(),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
27
29
|
|
|
28
30
|
export const NucleiTab = withForm({
|
|
29
31
|
defaultValues: defaultGeneralSettingsFormValues,
|
|
30
32
|
render: function Render({ form }) {
|
|
31
|
-
const
|
|
33
|
+
const nucleiField = useField({ form, name: 'nuclei', mode: 'array' });
|
|
32
34
|
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
let columns: NucleiFormElement[] = [];
|
|
35
|
+
const { Field } = form;
|
|
36
|
+
const { insertValue, removeValue, pushValue } = nucleiField;
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
emptyNucleiFormElement,
|
|
41
|
-
...data.slice(index),
|
|
42
|
-
];
|
|
43
|
-
} else {
|
|
44
|
-
columns.push(emptyNucleiFormElement);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
form.setFieldValue('nuclei', columns);
|
|
38
|
+
const insertNucleus = useCallback(
|
|
39
|
+
(index: number) => {
|
|
40
|
+
insertValue(index, emptyNucleiFormElement());
|
|
48
41
|
},
|
|
49
|
-
[
|
|
42
|
+
[insertValue],
|
|
50
43
|
);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
form.setFieldValue('nuclei', fields);
|
|
44
|
+
const pushNucleus = useCallback(() => {
|
|
45
|
+
pushValue(emptyNucleiFormElement());
|
|
46
|
+
}, [pushValue]);
|
|
47
|
+
const deleteNucleus = useCallback(
|
|
48
|
+
(index: number) => {
|
|
49
|
+
removeValue(index);
|
|
59
50
|
},
|
|
60
|
-
[
|
|
51
|
+
[removeValue],
|
|
61
52
|
);
|
|
62
53
|
|
|
63
|
-
const COLUMNS = useMemo
|
|
64
|
-
()
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
Cell: ({ row: { index } }: CellProps<NucleiFormElement>) => {
|
|
152
|
-
return (
|
|
153
|
-
<form.Field key={index} name={`nuclei[${index}].axisTo`}>
|
|
154
|
-
{(subField) => (
|
|
155
|
-
<NumericInput
|
|
156
|
-
style={{
|
|
157
|
-
backgroundColor: 'transparent',
|
|
158
|
-
boxShadow: 'none',
|
|
159
|
-
}}
|
|
160
|
-
value={Number(subField.state.value) || undefined}
|
|
161
|
-
fill
|
|
162
|
-
onValueChange={(valueAsNumber) =>
|
|
163
|
-
subField.handleChange(valueAsNumber)
|
|
164
|
-
}
|
|
165
|
-
/>
|
|
166
|
-
)}
|
|
167
|
-
</form.Field>
|
|
168
|
-
);
|
|
54
|
+
const COLUMNS = useMemo(() => {
|
|
55
|
+
const columnHelper = createTableColumnHelper<NucleiFormElement>();
|
|
56
|
+
return [
|
|
57
|
+
columnHelper.accessor('nucleus', {
|
|
58
|
+
header: 'Nucleus',
|
|
59
|
+
cell: ({ row: { index } }) => (
|
|
60
|
+
<Field key={index} name={`nuclei[${index}].nucleus`}>
|
|
61
|
+
{(subField) => (
|
|
62
|
+
<CellInput
|
|
63
|
+
value={subField.state.value}
|
|
64
|
+
onChange={subField.handleChange}
|
|
65
|
+
onBlur={subField.handleBlur}
|
|
66
|
+
/>
|
|
67
|
+
)}
|
|
68
|
+
</Field>
|
|
69
|
+
),
|
|
70
|
+
}),
|
|
71
|
+
columnHelper.accessor('ppmFormat', {
|
|
72
|
+
header: 'δ (ppm)',
|
|
73
|
+
cell: ({ row: { index } }) => (
|
|
74
|
+
<Field key={index} name={`nuclei[${index}].ppmFormat`}>
|
|
75
|
+
{(subField) => (
|
|
76
|
+
<CellInput
|
|
77
|
+
value={subField.state.value}
|
|
78
|
+
onChange={subField.handleChange}
|
|
79
|
+
onBlur={subField.handleBlur}
|
|
80
|
+
/>
|
|
81
|
+
)}
|
|
82
|
+
</Field>
|
|
83
|
+
),
|
|
84
|
+
}),
|
|
85
|
+
columnHelper.accessor('hzFormat', {
|
|
86
|
+
header: 'Coupling (Hz)',
|
|
87
|
+
cell: ({ row: { index } }) => (
|
|
88
|
+
<Field key={index} name={`nuclei[${index}].hzFormat`}>
|
|
89
|
+
{(subField) => (
|
|
90
|
+
<CellInput
|
|
91
|
+
value={subField.state.value}
|
|
92
|
+
onChange={subField.handleChange}
|
|
93
|
+
onBlur={subField.handleBlur}
|
|
94
|
+
/>
|
|
95
|
+
)}
|
|
96
|
+
</Field>
|
|
97
|
+
),
|
|
98
|
+
}),
|
|
99
|
+
columnHelper.display({
|
|
100
|
+
id: 'axisFrom',
|
|
101
|
+
header: 'Axis from',
|
|
102
|
+
cell: ({ row: { index } }) => (
|
|
103
|
+
<Field key={index} name={`nuclei[${index}].axisFrom`}>
|
|
104
|
+
{(subField) => (
|
|
105
|
+
<CellNumericInput
|
|
106
|
+
value={subField.state.value}
|
|
107
|
+
onChange={(event) =>
|
|
108
|
+
subField.handleChange(event.currentTarget.value)
|
|
109
|
+
}
|
|
110
|
+
onBlur={subField.handleBlur}
|
|
111
|
+
fill
|
|
112
|
+
/>
|
|
113
|
+
)}
|
|
114
|
+
</Field>
|
|
115
|
+
),
|
|
116
|
+
}),
|
|
117
|
+
columnHelper.display({
|
|
118
|
+
id: 'axisTo',
|
|
119
|
+
header: 'Axis to',
|
|
120
|
+
cell: ({ row: { index } }) => (
|
|
121
|
+
<Field key={index} name={`nuclei[${index}].axisTo`}>
|
|
122
|
+
{(subField) => (
|
|
123
|
+
<CellNumericInput
|
|
124
|
+
value={subField.state.value}
|
|
125
|
+
onChange={(event) =>
|
|
126
|
+
subField.handleChange(event.currentTarget.value)
|
|
127
|
+
}
|
|
128
|
+
onBlur={subField.handleBlur}
|
|
129
|
+
fill
|
|
130
|
+
/>
|
|
131
|
+
)}
|
|
132
|
+
</Field>
|
|
133
|
+
),
|
|
134
|
+
}),
|
|
135
|
+
columnHelper.display({
|
|
136
|
+
id: 'actions',
|
|
137
|
+
header: '',
|
|
138
|
+
meta: {
|
|
139
|
+
thStyle: {
|
|
140
|
+
width: '60px',
|
|
141
|
+
},
|
|
169
142
|
},
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
<FaPlus className={Classes.ICON} />
|
|
190
|
-
</Button>
|
|
191
|
-
<Button
|
|
192
|
-
size="small"
|
|
193
|
-
variant="outlined"
|
|
194
|
-
intent="danger"
|
|
195
|
-
onClick={() => handleDelete(data, original)}
|
|
196
|
-
>
|
|
197
|
-
<FaRegTrashAlt className={Classes.ICON} />
|
|
198
|
-
</Button>
|
|
199
|
-
</Buttons>
|
|
200
|
-
);
|
|
201
|
-
},
|
|
202
|
-
},
|
|
203
|
-
],
|
|
204
|
-
[form, handleAdd, handleDelete],
|
|
205
|
-
);
|
|
143
|
+
cell: ({ row: { index } }) => (
|
|
144
|
+
<CellActions>
|
|
145
|
+
<CellActionsButton
|
|
146
|
+
intent="success"
|
|
147
|
+
onClick={() => insertNucleus(index + 1)}
|
|
148
|
+
>
|
|
149
|
+
<FaPlus className={Classes.ICON} />
|
|
150
|
+
</CellActionsButton>
|
|
151
|
+
<CellActionsButton
|
|
152
|
+
intent="danger"
|
|
153
|
+
onClick={() => deleteNucleus(index)}
|
|
154
|
+
>
|
|
155
|
+
<FaRegTrashAlt className={Classes.ICON} />
|
|
156
|
+
</CellActionsButton>
|
|
157
|
+
</CellActions>
|
|
158
|
+
),
|
|
159
|
+
}),
|
|
160
|
+
];
|
|
161
|
+
}, [Field, deleteNucleus, insertNucleus]);
|
|
206
162
|
|
|
207
163
|
return (
|
|
208
|
-
<
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
164
|
+
<TableSection
|
|
165
|
+
title="Nuclei number formatting"
|
|
166
|
+
description="for crosshair, info line and axis domain"
|
|
167
|
+
actions={
|
|
168
|
+
<Button
|
|
169
|
+
size="small"
|
|
170
|
+
variant="outlined"
|
|
171
|
+
intent="success"
|
|
172
|
+
tooltipProps={{ content: '', disabled: true }}
|
|
173
|
+
onClick={pushNucleus}
|
|
174
|
+
>
|
|
175
|
+
Add nuclei preferences
|
|
176
|
+
</Button>
|
|
177
|
+
}
|
|
215
178
|
>
|
|
216
|
-
<
|
|
217
|
-
|
|
218
|
-
'thead tr th': { zIndex: 1 },
|
|
219
|
-
td: { padding: 0 },
|
|
220
|
-
}}
|
|
221
|
-
rowStyle={{
|
|
222
|
-
hover: { backgroundColor: '#f7f7f7' },
|
|
223
|
-
active: { backgroundColor: '#f5f5f5' },
|
|
224
|
-
}}
|
|
225
|
-
data={fields}
|
|
179
|
+
<TableSettings
|
|
180
|
+
data={nucleiField.state.value}
|
|
226
181
|
columns={COLUMNS}
|
|
227
|
-
|
|
182
|
+
emptyContent="No nucleus"
|
|
183
|
+
getRowId={getRowId}
|
|
228
184
|
/>
|
|
229
|
-
</
|
|
185
|
+
</TableSection>
|
|
230
186
|
);
|
|
231
187
|
},
|
|
232
188
|
});
|
|
233
189
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
text: string;
|
|
190
|
+
function getRowId(row: NucleiFormElement) {
|
|
191
|
+
return row.uuid;
|
|
237
192
|
}
|
|
238
|
-
|
|
239
|
-
function FieldsBlockHeader(props: FieldsBlockHeaderProps) {
|
|
240
|
-
const { onAdd, text } = props;
|
|
241
|
-
return (
|
|
242
|
-
<Section>
|
|
243
|
-
<p style={{ flex: 1 }}>{text}</p>
|
|
244
|
-
|
|
245
|
-
<Button
|
|
246
|
-
size="small"
|
|
247
|
-
variant="outlined"
|
|
248
|
-
intent="success"
|
|
249
|
-
tooltipProps={{ content: '', disabled: true }}
|
|
250
|
-
onClick={onAdd}
|
|
251
|
-
>
|
|
252
|
-
Add nuclei preferences
|
|
253
|
-
</Button>
|
|
254
|
-
</Section>
|
|
255
|
-
);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
const Buttons = styled.div`
|
|
259
|
-
display: flex;
|
|
260
|
-
justify-content: space-evenly;
|
|
261
|
-
`;
|
|
@@ -46,14 +46,6 @@ const SpectraSettings = withFieldGroup({
|
|
|
46
46
|
<Select label="Processing" items={displayPanelsStatus} />
|
|
47
47
|
)}
|
|
48
48
|
</AppField>
|
|
49
|
-
<AppField name="multipleSpectraAnalysisPanel">
|
|
50
|
-
{({ Select }) => (
|
|
51
|
-
<Select
|
|
52
|
-
label="Multiple spectra analysis"
|
|
53
|
-
items={displayPanelsStatus}
|
|
54
|
-
/>
|
|
55
|
-
)}
|
|
56
|
-
</AppField>
|
|
57
49
|
</Section>
|
|
58
50
|
);
|
|
59
51
|
},
|
|
@@ -65,7 +57,7 @@ const Spectra1dSettings = withFieldGroup({
|
|
|
65
57
|
const { Section, AppField } = group;
|
|
66
58
|
|
|
67
59
|
return (
|
|
68
|
-
<Section title="Spectra
|
|
60
|
+
<Section title="1D Spectra">
|
|
69
61
|
<AppField name="peaksPanel">
|
|
70
62
|
{({ Select }) => <Select label="Peaks" items={displayPanelsStatus} />}
|
|
71
63
|
</AppField>
|
|
@@ -92,6 +84,14 @@ const Spectra1dSettings = withFieldGroup({
|
|
|
92
84
|
<Select label="Spectrum simulation" items={displayPanelsStatus} />
|
|
93
85
|
)}
|
|
94
86
|
</AppField>
|
|
87
|
+
<AppField name="multipleSpectraAnalysisPanel">
|
|
88
|
+
{({ Select }) => (
|
|
89
|
+
<Select
|
|
90
|
+
label="Multiple spectra analysis"
|
|
91
|
+
items={displayPanelsStatus}
|
|
92
|
+
/>
|
|
93
|
+
)}
|
|
94
|
+
</AppField>
|
|
95
95
|
</Section>
|
|
96
96
|
);
|
|
97
97
|
},
|
|
@@ -103,7 +103,7 @@ const Spectra2dSettings = withFieldGroup({
|
|
|
103
103
|
const { Section, AppField } = group;
|
|
104
104
|
|
|
105
105
|
return (
|
|
106
|
-
<Section title="Spectra
|
|
106
|
+
<Section title="2D Spectra">
|
|
107
107
|
<AppField name="zonesPanel">
|
|
108
108
|
{({ Select }) => <Select label="Zones" items={displayPanelsStatus} />}
|
|
109
109
|
</AppField>
|