nmrium 1.10.1 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +7 -0
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +170 -109
- package/lib/component/1d/FloatPublicationString.js.map +1 -1
- package/lib/component/1d/FloatingRanges.d.ts.map +1 -1
- package/lib/component/1d/FloatingRanges.js +3 -3
- package/lib/component/1d/FloatingRanges.js.map +1 -1
- package/lib/component/1d/SVGContent1D.js +1 -1
- package/lib/component/1d/SVGContent1D.js.map +1 -1
- package/lib/component/1d/inset/DraggableInset.d.ts.map +1 -1
- package/lib/component/1d/inset/DraggableInset.js +4 -4
- package/lib/component/1d/inset/DraggableInset.js.map +1 -1
- package/lib/component/1d/matrix/Boxplot.js +1 -1
- package/lib/component/1d/matrix/Stocsy.js +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +2 -2
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.js +2 -2
- package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.js +2 -2
- package/lib/component/1d/peaks/Peaks.js.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts +1 -1
- package/lib/component/1d/ranges/Range.js +3 -3
- package/lib/component/1d/ranges/Range.js.map +1 -1
- package/lib/component/1d/ranges/Ranges.js +2 -2
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d/ranges/RangesIntegrals.js +1 -1
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.d.ts +1 -1
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.d.ts.map +1 -1
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.js +4 -4
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +14 -5
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js +2 -2
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
- package/lib/component/2d/FooterBanner.d.ts +1 -1
- package/lib/component/2d/SVGContent2D.d.ts +1 -1
- package/lib/component/2d/YAxis.js +3 -3
- package/lib/component/2d/YAxis.js.map +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts +1 -1
- package/lib/component/2d/tools/XYLabelPointer.d.ts +1 -1
- package/lib/component/2d/useTracesSpectra.js +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +5 -5
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/Zone.js +1 -1
- package/lib/component/2d/zones/Zone.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js +9 -3
- package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
- package/lib/component/context/LoggerContext.d.ts +1 -0
- package/lib/component/context/LoggerContext.d.ts.map +1 -1
- package/lib/component/context/LoggerContext.js.map +1 -1
- package/lib/component/context/PreferencesContext.d.ts +1 -1
- package/lib/component/context/PreferencesContext.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.d.ts +9 -5
- package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js +42 -10
- package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
- package/lib/component/elements/Alert.d.ts.map +1 -1
- package/lib/component/elements/Alert.js +3 -2
- package/lib/component/elements/Alert.js.map +1 -1
- package/lib/component/elements/DraggableDialog.d.ts +1 -1
- package/lib/component/elements/DraggableDialog.d.ts.map +1 -1
- package/lib/component/elements/NextPrev.d.ts.map +1 -1
- package/lib/component/elements/NextPrev.js +23 -4
- package/lib/component/elements/NextPrev.js.map +1 -1
- package/lib/component/elements/StandardDialog.d.ts +3 -0
- package/lib/component/elements/StandardDialog.d.ts.map +1 -0
- package/lib/component/elements/StandardDialog.js +7 -0
- package/lib/component/elements/StandardDialog.js.map +1 -0
- package/lib/component/elements/ToolbarPopoverItem.d.ts +7 -2
- package/lib/component/elements/ToolbarPopoverItem.d.ts.map +1 -1
- package/lib/component/elements/ToolbarPopoverItem.js +6 -2
- package/lib/component/elements/ToolbarPopoverItem.js.map +1 -1
- package/lib/component/elements/export/ExportManager.js +1 -1
- package/lib/component/elements/export/ExportManager.js.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.js +3 -2
- package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts +1 -1
- package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
- package/lib/component/elements/print/PrintContent.js +3 -2
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/header/Header.js +1 -1
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/hooks/useActiveNucleusTab.js +1 -1
- package/lib/component/hooks/useActiveNucleusTab.js.map +1 -1
- package/lib/component/hooks/useActiveSpectrumRangesViewState.js +1 -1
- package/lib/component/hooks/useDatumWithSpectraStatistics.js +1 -1
- package/lib/component/hooks/useDatumWithSpectraStatistics.js.map +1 -1
- package/lib/component/hooks/useExport.d.ts +7 -7
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +23 -43
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/useSVGUnitConverter.d.ts.map +1 -1
- package/lib/component/hooks/useSVGUnitConverter.js +12 -9
- package/lib/component/hooks/useSVGUnitConverter.js.map +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
- package/lib/component/hooks/useSaveSettings.js +3 -2
- package/lib/component/hooks/useSaveSettings.js.map +1 -1
- package/lib/component/hooks/useSetActiveSpectrumAction.d.ts.map +1 -1
- package/lib/component/hooks/useSetActiveSpectrumAction.js +3 -1
- package/lib/component/hooks/useSetActiveSpectrumAction.js.map +1 -1
- package/lib/component/hooks/useTextMetrics.d.ts +16 -1
- package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
- package/lib/component/hooks/useTextMetrics.js +43 -15
- package/lib/component/hooks/useTextMetrics.js.map +1 -1
- package/lib/component/hooks/useToggleSpectraVisibility.js +1 -1
- package/lib/component/hooks/use_acs_settings.d.ts +4 -0
- package/lib/component/hooks/use_acs_settings.d.ts.map +1 -0
- package/lib/component/hooks/use_acs_settings.js +21 -0
- package/lib/component/hooks/use_acs_settings.js.map +1 -0
- package/lib/component/hooks/use_publication_strings.d.ts +9 -0
- package/lib/component/hooks/use_publication_strings.d.ts.map +1 -0
- package/lib/component/hooks/use_publication_strings.js +42 -0
- package/lib/component/hooks/use_publication_strings.js.map +1 -0
- package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
- package/lib/component/loader/useLoadFiles.js +81 -86
- package/lib/component/loader/useLoadFiles.js.map +1 -1
- package/lib/component/main/ErrorOverlay.d.ts.map +1 -1
- package/lib/component/main/ErrorOverlay.js +6 -1
- package/lib/component/main/ErrorOverlay.js.map +1 -1
- package/lib/component/main/InnerNMRiumContents.d.ts.map +1 -1
- package/lib/component/main/InnerNMRiumContents.js +1 -2
- package/lib/component/main/InnerNMRiumContents.js.map +1 -1
- package/lib/component/main/NMRiumViewer.js +2 -2
- package/lib/component/main/NMRiumViewer.js.map +1 -1
- package/lib/component/main/NMRiumViewerWrapper.d.ts.map +1 -1
- package/lib/component/main/NMRiumViewerWrapper.js +9 -3
- package/lib/component/main/NMRiumViewerWrapper.js.map +1 -1
- package/lib/component/modal/AboutPredictionModal.js +2 -2
- package/lib/component/modal/AboutPredictionModal.js.map +1 -1
- package/lib/component/modal/AboutSpectrumSimulationModal.js +2 -2
- package/lib/component/modal/AboutSpectrumSimulationModal.js.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.d.ts.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.js +4 -3
- package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
- package/lib/component/modal/ExportAsJcampModal.d.ts.map +1 -1
- package/lib/component/modal/ExportAsJcampModal.js +3 -2
- package/lib/component/modal/ExportAsJcampModal.js.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.js +3 -2
- package/lib/component/modal/ImportPublicationStringModal.js.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.d.ts.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.js +3 -2
- package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
- package/lib/component/modal/LogsHistoryModal.d.ts.map +1 -1
- package/lib/component/modal/LogsHistoryModal.js +3 -2
- package/lib/component/modal/LogsHistoryModal.js.map +1 -1
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.d.ts +6 -0
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.d.ts.map +1 -0
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js +128 -0
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js.map +1 -0
- package/lib/component/modal/MoleculeStructureEditorModal.d.ts.map +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.js +4 -3
- package/lib/component/modal/MoleculeStructureEditorModal.js.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.d.ts.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.js +2 -2
- package/lib/component/modal/MultipletAnalysisModal.js.map +1 -1
- package/lib/component/modal/PredictSpectraModal.d.ts.map +1 -1
- package/lib/component/modal/PredictSpectraModal.js +3 -2
- package/lib/component/modal/PredictSpectraModal.js.map +1 -1
- package/lib/component/modal/PublicationStringModal.d.ts +10 -1
- package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/PublicationStringModal.js +89 -77
- package/lib/component/modal/PublicationStringModal.js.map +1 -1
- package/lib/component/modal/SaveAsModal.d.ts.map +1 -1
- package/lib/component/modal/SaveAsModal.js +6 -9
- package/lib/component/modal/SaveAsModal.js.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.js +2 -2
- package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts.map +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.js +2 -2
- package/lib/component/modal/changeSum/ChangeSumModal.js.map +1 -1
- package/lib/component/modal/changeSum/SelectMolecule.js +4 -1
- package/lib/component/modal/changeSum/SelectMolecule.js.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.d.ts.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js +3 -2
- package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
- package/lib/component/modal/setting/{GeneralSettings.d.ts → general_settings.d.ts} +1 -1
- package/lib/component/modal/setting/general_settings.d.ts.map +1 -0
- package/lib/component/modal/setting/{GeneralSettings.js → general_settings.js} +11 -5
- package/lib/component/modal/setting/general_settings.js.map +1 -0
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts +8 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.js +65 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +624 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js +42 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +624 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js +22 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +7 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js +50 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts +7 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js +105 -0
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +622 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +55 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +123 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.js +11 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +622 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js +34 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +622 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.js +26 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +622 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js +123 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +622 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js +40 -0
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.d.ts +10 -0
- package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.js +40 -0
- package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +166 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +58 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +40 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js +37 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts +37 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.js +26 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts +9 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js +18 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts +167 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js +69 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +342 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation.js +51 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation.js.map +1 -0
- package/lib/component/panels/MoleculesPanel/MoleculeOptionsPanel.js +2 -2
- package/lib/component/panels/MoleculesPanel/MoleculeOptionsPanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +2 -2
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +75 -20
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.js +4 -4
- package/lib/component/panels/MoleculesPanel/MoleculeStructure.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +17 -17
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/extractFromAtom.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getUniqueDiaIDs.d.ts +1 -1
- package/lib/component/panels/Panels.d.ts +0 -9
- package/lib/component/panels/Panels.d.ts.map +1 -1
- package/lib/component/panels/Panels.js +13 -54
- package/lib/component/panels/Panels.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js +23 -15
- package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +1 -1
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +3 -2
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +3 -2
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseInfo.js +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js +2 -2
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.d.ts.map +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.js +2 -1
- package/lib/component/panels/header/DefaultPanelHeader.js.map +1 -1
- package/lib/component/panels/hooks/useMoleculeAnnotationCore.js +1 -1
- package/lib/component/panels/hooks/useMoleculeAnnotationCore.js.map +1 -1
- package/lib/component/panels/hooks/useTogglePanel.d.ts.map +1 -1
- package/lib/component/panels/hooks/useTogglePanel.js +4 -3
- package/lib/component/panels/hooks/useTogglePanel.js.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.js +3 -2
- package/lib/component/panels/informationPanel/InformationEditionModal.js.map +1 -1
- package/lib/component/panels/informationPanel/InformationPanel.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/InformationPanel.js +38 -3
- package/lib/component/panels/informationPanel/InformationPanel.js.map +1 -1
- package/lib/component/reducer/actions/AssignmentsActions.js +3 -3
- package/lib/component/reducer/actions/CorrelationsActions.js +2 -2
- package/lib/component/reducer/actions/DatabaseActions.js +1 -1
- package/lib/component/reducer/actions/DomainActions.js +1 -1
- package/lib/component/reducer/actions/InsetActions.js +2 -2
- package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadAction.js +8 -2
- package/lib/component/reducer/actions/LoadAction.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +23 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +5 -5
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.js +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +1 -1
- package/lib/component/reducer/actions/RangesActions.js +2 -2
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +2 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +3 -3
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +2 -2
- package/lib/component/reducer/actions/ZonesActions.d.ts +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +2 -2
- package/lib/component/reducer/helper/get2DRange.d.ts +1 -1
- package/lib/component/reducer/preferences/actions/analyzeSpectra.d.ts +2 -1
- package/lib/component/reducer/preferences/actions/analyzeSpectra.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/analyzeSpectra.js +10 -0
- package/lib/component/reducer/preferences/actions/analyzeSpectra.js.map +1 -1
- package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.d.ts +4 -0
- package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.d.ts.map +1 -0
- package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.js +9 -0
- package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.js.map +1 -0
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +8 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js +8 -3
- package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
- package/lib/component/toolbar/ToolBar.d.ts.map +1 -1
- package/lib/component/toolbar/ToolBar.js +11 -8
- package/lib/component/toolbar/ToolBar.js.map +1 -1
- package/lib/component/toolbar/toolbarMenu.d.ts +5 -1
- package/lib/component/toolbar/toolbarMenu.d.ts.map +1 -1
- package/lib/component/toolbar/toolbarMenu.js +1 -1
- package/lib/component/toolbar/toolbarMenu.js.map +1 -1
- package/lib/component/utility/export.d.ts +2 -1
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js +6 -2
- package/lib/component/utility/export.js.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +3 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/data/PredictionManager.js +1 -1
- package/lib/data/SpectraManager.d.ts +1 -1
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +1 -0
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +14 -0
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +13 -6
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +6 -1
- package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.js +3 -2
- package/lib/data/molecules/MoleculeManager.js.map +1 -1
- package/lib/data/utilities/FindUtilities.js +2 -2
- package/lib/utils/clipboard/clipboardComponents.js +2 -2
- package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +45 -45
- package/src/component/1d/BrushTracker1D.tsx +8 -0
- package/src/component/1d/FloatPublicationString.tsx +275 -177
- package/src/component/1d/FloatingRanges.tsx +1 -3
- package/src/component/1d/SVGContent1D.tsx +1 -1
- package/src/component/1d/inset/DraggableInset.tsx +2 -4
- package/src/component/1d/integral/IntegralResizable.tsx +1 -1
- package/src/component/1d/matrix/Boxplot.tsx +1 -1
- package/src/component/1d/matrix/Stocsy.tsx +1 -1
- package/src/component/1d/multiAnalysis/AnalysisRange.tsx +1 -1
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +2 -2
- package/src/component/1d/peaks/PeakAnnotations.tsx +2 -2
- package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +2 -2
- package/src/component/1d/peaks/Peaks.tsx +2 -2
- package/src/component/1d/ranges/Range.tsx +5 -5
- package/src/component/1d/ranges/Ranges.tsx +2 -2
- package/src/component/1d/ranges/RangesIntegrals.tsx +1 -1
- package/src/component/1d/ranges/useAssignmentsPopoverActionsButtons.tsx +5 -5
- package/src/component/1d/tool/BaseLineZones.tsx +1 -1
- package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +14 -6
- package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +1 -2
- package/src/component/2d/FooterBanner.tsx +1 -1
- package/src/component/2d/SVGContent2D.tsx +1 -1
- package/src/component/2d/YAxis.tsx +3 -3
- package/src/component/2d/ft/FTContainer.tsx +1 -1
- package/src/component/2d/tools/XYLabelPointer.tsx +1 -1
- package/src/component/2d/useTracesSpectra.ts +1 -1
- package/src/component/2d/zones/SignalsGuideLines.tsx +5 -5
- package/src/component/2d/zones/Zone.tsx +1 -1
- package/src/component/EventsTrackers/BrushTracker.tsx +1 -1
- package/src/component/EventsTrackers/KeysListenerTracker.tsx +9 -3
- package/src/component/context/LoggerContext.tsx +9 -0
- package/src/component/context/PreferencesContext.tsx +1 -1
- package/src/component/elements/ActionsButtonsPopover.tsx +80 -24
- package/src/component/elements/Alert.tsx +4 -2
- package/src/component/elements/DraggableDialog.tsx +2 -2
- package/src/component/elements/NextPrev.tsx +28 -4
- package/src/component/elements/StandardDialog.tsx +11 -0
- package/src/component/elements/ToolbarPopoverItem.tsx +16 -3
- package/src/component/elements/export/ExportManager.tsx +1 -1
- package/src/component/elements/export/ExportOptionsModal.tsx +3 -3
- package/src/component/elements/print/PrintContent.tsx +4 -9
- package/src/component/header/Header.tsx +1 -1
- package/src/component/hooks/useActiveNucleusTab.ts +1 -1
- package/src/component/hooks/useActiveSpectrumRangesViewState.ts +1 -1
- package/src/component/hooks/useDatumWithSpectraStatistics.ts +1 -1
- package/src/component/hooks/useExport.tsx +36 -66
- package/src/component/hooks/useSVGUnitConverter.ts +13 -9
- package/src/component/hooks/useSaveSettings.tsx +4 -3
- package/src/component/hooks/useSetActiveSpectrumAction.ts +3 -2
- package/src/component/hooks/useTextMetrics.ts +66 -18
- package/src/component/hooks/useToggleSpectraVisibility.tsx +1 -1
- package/src/component/hooks/use_acs_settings.ts +27 -0
- package/src/component/hooks/use_publication_strings.ts +67 -0
- package/src/component/loader/useLoadFiles.ts +134 -111
- package/src/component/main/ErrorOverlay.tsx +11 -2
- package/src/component/main/InnerNMRiumContents.tsx +6 -9
- package/src/component/main/NMRiumViewer.tsx +3 -3
- package/src/component/main/NMRiumViewerWrapper.tsx +12 -6
- package/src/component/modal/AboutPredictionModal.tsx +3 -3
- package/src/component/modal/AboutSpectrumSimulationModal.tsx +3 -3
- package/src/component/modal/EditPeakShapeModal.tsx +5 -4
- package/src/component/modal/ExportAsJcampModal.tsx +4 -3
- package/src/component/modal/ImportPublicationStringModal.tsx +4 -3
- package/src/component/modal/LoadJCAMPModal.tsx +4 -3
- package/src/component/modal/LogsHistoryModal.tsx +4 -3
- package/src/component/modal/MoleculeAutoLabelsDatabaseModal.tsx +220 -0
- package/src/component/modal/MoleculeStructureEditorModal.tsx +9 -4
- package/src/component/modal/MultipletAnalysisModal.tsx +3 -3
- package/src/component/modal/PredictSpectraModal.tsx +4 -3
- package/src/component/modal/PublicationStringModal.tsx +234 -134
- package/src/component/modal/SaveAsModal.tsx +18 -50
- package/src/component/modal/aboutUs/AboutUsModal.tsx +3 -3
- package/src/component/modal/changeSum/ChangeSumModal.tsx +5 -4
- package/src/component/modal/changeSum/SelectMolecule.tsx +23 -23
- package/src/component/modal/editRange/EditRangeModal.tsx +1 -1
- package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +1 -1
- package/src/component/modal/metaImportation/MetaImportationModal.tsx +4 -3
- package/src/component/modal/setting/{GeneralSettings.tsx → general_settings.tsx} +34 -4
- package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/ExternalAPIsTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/GeneralTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/NucleiTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +1 -1
- package/src/component/modal/setting/tanstack_general_settings/general_settings.tsx +106 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +69 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.tsx +39 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx +98 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.tsx +218 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +231 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.tsx +24 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/general_tab.tsx +94 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.tsx +72 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.tsx +261 -0
- package/src/component/modal/setting/tanstack_general_settings/tabs/panels_tab.tsx +150 -0
- package/src/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.ts +55 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +63 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.ts +42 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.ts +26 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts +21 -0
- package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts +80 -0
- package/src/component/modal/setting/tanstack_general_settings/validation.ts +66 -0
- package/src/component/panels/MoleculesPanel/MoleculeOptionsPanel.tsx +2 -2
- package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +2 -2
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +106 -21
- package/src/component/panels/MoleculesPanel/MoleculeStructure.tsx +5 -5
- package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +21 -21
- package/src/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.ts +1 -1
- package/src/component/panels/MoleculesPanel/utilities/extractFromAtom.ts +1 -1
- package/src/component/panels/MoleculesPanel/utilities/getAssignIds.ts +1 -1
- package/src/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.ts +1 -1
- package/src/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.ts +2 -2
- package/src/component/panels/MoleculesPanel/utilities/getUniqueDiaIDs.ts +1 -1
- package/src/component/panels/Panels.tsx +5 -93
- package/src/component/panels/RangesPanel/RangesHeader.tsx +34 -29
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +1 -1
- package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +3 -3
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +1 -1
- package/src/component/panels/SummaryPanel/SetMolecularFormulaModal.tsx +4 -3
- package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +4 -3
- package/src/component/panels/databasePanel/DatabaseInfo.tsx +1 -1
- package/src/component/panels/databasePanel/DatabasePanel.tsx +1 -1
- package/src/component/panels/databasePanel/DatabaseStructureSearchModal.tsx +3 -3
- package/src/component/panels/databasePanel/DatabaseTable.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +1 -1
- package/src/component/panels/header/DefaultPanelHeader.tsx +2 -1
- package/src/component/panels/hooks/useMoleculeAnnotationCore.ts +1 -1
- package/src/component/panels/hooks/useTogglePanel.ts +4 -3
- package/src/component/panels/informationPanel/InformationEditionModal.tsx +4 -3
- package/src/component/panels/informationPanel/InformationPanel.tsx +83 -2
- package/src/component/reducer/actions/AssignmentsActions.ts +3 -3
- package/src/component/reducer/actions/CorrelationsActions.ts +2 -2
- package/src/component/reducer/actions/DatabaseActions.ts +1 -1
- package/src/component/reducer/actions/DomainActions.ts +1 -1
- package/src/component/reducer/actions/InsetActions.ts +2 -2
- package/src/component/reducer/actions/LoadAction.ts +17 -3
- package/src/component/reducer/actions/MoleculeActions.ts +7 -5
- package/src/component/reducer/actions/PreferencesActions.ts +1 -1
- package/src/component/reducer/actions/RangesActions.ts +4 -4
- package/src/component/reducer/actions/SpectraActions.ts +7 -3
- package/src/component/reducer/actions/ToolsActions.ts +2 -2
- package/src/component/reducer/actions/ZonesActions.ts +3 -3
- package/src/component/reducer/helper/get2DRange.ts +1 -1
- package/src/component/reducer/preferences/actions/analyzeSpectra.ts +16 -0
- package/src/component/reducer/preferences/actions/toggleOpenSplitPanel.ts +18 -0
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +1 -1
- package/src/component/reducer/preferences/preferencesReducer.ts +24 -3
- package/src/component/toolbar/ToolBar.tsx +15 -10
- package/src/component/toolbar/toolbarMenu.tsx +13 -2
- package/src/component/utility/export.ts +7 -1
- package/src/component/workspaces/workspaceDefaultProperties.ts +5 -1
- package/src/data/PredictionManager.ts +1 -1
- package/src/data/SpectraManager.ts +2 -2
- package/src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/detectRanges.ts +1 -1
- package/src/data/data1d/multipleSpectraAnalysis.ts +20 -0
- package/src/data/data2d/Spectrum2D/contours.ts +16 -6
- package/src/data/molecules/MoleculeManager.ts +7 -2
- package/src/data/utilities/FindUtilities.ts +2 -2
- package/src/utils/clipboard/clipboardComponents.tsx +3 -3
- package/src/versionInfo.ts +1 -1
- package/lib/component/modal/setting/GeneralSettings.d.ts.map +0 -1
- package/lib/component/modal/setting/GeneralSettings.js.map +0 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { withFieldGroup, withForm } from 'react-science/ui';
|
|
3
|
+
import { displayPanelsStatus } from '../validation/panels_tab_validation.js';
|
|
4
|
+
import { defaultGeneralSettingsFormValues } from '../validation.js';
|
|
5
|
+
export const PanelsTab = withForm({
|
|
6
|
+
defaultValues: defaultGeneralSettingsFormValues,
|
|
7
|
+
render: ({ form }) => {
|
|
8
|
+
const { Section, AppField } = form;
|
|
9
|
+
return (_jsxs(_Fragment, { children: [_jsx(Section, { title: "Panels bar", children: _jsx(AppField, { name: "display.general.hidePanelsBar", children: ({ Checkbox }) => _jsx(Checkbox, { label: "Hide panels bar" }) }) }), _jsx(SpectraSettings, { form: form, fields: "display.panels" }), _jsx(Spectra1dSettings, { form: form, fields: "display.panels" }), _jsx(Spectra2dSettings, { form: form, fields: "display.panels" }), _jsx(ChemicalSettings, { form: form, fields: "display.panels" })] }));
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
const SpectraSettings = withFieldGroup({
|
|
13
|
+
defaultValues: defaultGeneralSettingsFormValues.display.panels,
|
|
14
|
+
render: ({ group }) => {
|
|
15
|
+
const { Section, AppField } = group;
|
|
16
|
+
return (_jsxs(Section, { title: "Spectra", children: [_jsx(AppField, { name: "spectraPanel", children: ({ Select }) => (_jsx(Select, { label: "Spectra selection", items: displayPanelsStatus })) }), _jsx(AppField, { name: "informationPanel", children: ({ Select }) => (_jsx(Select, { label: "Information", items: displayPanelsStatus })) }), _jsx(AppField, { name: "processingsPanel", children: ({ Select }) => (_jsx(Select, { label: "Processing", items: displayPanelsStatus })) }), _jsx(AppField, { name: "multipleSpectraAnalysisPanel", children: ({ Select }) => (_jsx(Select, { label: "Multiple spectra analysis", items: displayPanelsStatus })) })] }));
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
const Spectra1dSettings = withFieldGroup({
|
|
20
|
+
defaultValues: defaultGeneralSettingsFormValues.display.panels,
|
|
21
|
+
render: ({ group }) => {
|
|
22
|
+
const { Section, AppField } = group;
|
|
23
|
+
return (_jsxs(Section, { title: "Spectra 1D", children: [_jsx(AppField, { name: "peaksPanel", children: ({ Select }) => _jsx(Select, { label: "Peaks", items: displayPanelsStatus }) }), _jsx(AppField, { name: "integralsPanel", children: ({ Select }) => (_jsx(Select, { label: "Integrals", items: displayPanelsStatus })) }), _jsx(AppField, { name: "rangesPanel", children: ({ Select }) => (_jsx(Select, { label: "Ranges / Multiplet analysis", items: displayPanelsStatus })) }), _jsx(AppField, { name: "matrixGenerationPanel", children: ({ Select }) => (_jsx(Select, { label: "Matrix generation", items: displayPanelsStatus })) }), _jsx(AppField, { name: "simulationPanel", children: ({ Select }) => (_jsx(Select, { label: "Spectrum simulation", items: displayPanelsStatus })) })] }));
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
const Spectra2dSettings = withFieldGroup({
|
|
27
|
+
defaultValues: defaultGeneralSettingsFormValues.display.panels,
|
|
28
|
+
render: ({ group }) => {
|
|
29
|
+
const { Section, AppField } = group;
|
|
30
|
+
return (_jsx(Section, { title: "Spectra 2D", children: _jsx(AppField, { name: "zonesPanel", children: ({ Select }) => _jsx(Select, { label: "Zones", items: displayPanelsStatus }) }) }));
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
const ChemicalSettings = withFieldGroup({
|
|
34
|
+
defaultValues: defaultGeneralSettingsFormValues.display.panels,
|
|
35
|
+
render: ({ group }) => {
|
|
36
|
+
const { Section, AppField } = group;
|
|
37
|
+
return (_jsxs(Section, { title: "Chemicals", children: [_jsx(AppField, { name: "structuresPanel", children: ({ Select }) => (_jsx(Select, { label: "Chemical structures", items: displayPanelsStatus })) }), _jsx(AppField, { name: "summaryPanel", children: ({ Select }) => (_jsx(Select, { label: "Summary", items: displayPanelsStatus })) }), _jsx(AppField, { name: "databasePanel", children: ({ Select }) => (_jsx(Select, { label: "Databases", items: displayPanelsStatus })) }), _jsx(AppField, { name: "predictionPanel", children: ({ Select }) => (_jsx(Select, { label: "Prediction", items: displayPanelsStatus })) }), _jsx(AppField, { name: "automaticAssignmentPanel", children: ({ Select }) => (_jsx(Select, { label: "Automatic assignment", items: displayPanelsStatus })) })] }));
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=panels_tab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panels_tab.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/tabs/panels_tab.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RefinementCtx } from 'zod';
|
|
2
|
+
interface CheckUniqueByKeyOptions<T> {
|
|
3
|
+
data?: T[];
|
|
4
|
+
checkKey: keyof T;
|
|
5
|
+
basePath?: string;
|
|
6
|
+
context: RefinementCtx;
|
|
7
|
+
}
|
|
8
|
+
export declare function checkUniqueByKey<T>(options: CheckUniqueByKeyOptions<T>): boolean;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=checkUniqueByKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkUniqueByKey.d.ts","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEzC,UAAU,uBAAuB,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,aAAa,CAAC;CACxB;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE,uBAAuB,CAAC,CAAC,CAAC,WA6CtE"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export function checkUniqueByKey(options) {
|
|
2
|
+
const { data, checkKey, context, basePath = '' } = options;
|
|
3
|
+
if (!data)
|
|
4
|
+
return true;
|
|
5
|
+
const matchesFrequencies = {};
|
|
6
|
+
let index = 0;
|
|
7
|
+
for (const datum of data) {
|
|
8
|
+
let key;
|
|
9
|
+
const matchValue = datum[checkKey];
|
|
10
|
+
if (typeof matchValue === 'string') {
|
|
11
|
+
key = matchValue.toLowerCase();
|
|
12
|
+
}
|
|
13
|
+
if (key) {
|
|
14
|
+
if (matchesFrequencies[key]) {
|
|
15
|
+
++matchesFrequencies[key].value;
|
|
16
|
+
matchesFrequencies[key].fieldsIndexes.push(index);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
matchesFrequencies[key] = { value: 1, fieldsIndexes: [index] };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
index++;
|
|
23
|
+
}
|
|
24
|
+
for (const key in matchesFrequencies) {
|
|
25
|
+
const { value, fieldsIndexes } = matchesFrequencies[key];
|
|
26
|
+
if (value > 1) {
|
|
27
|
+
for (const index of fieldsIndexes) {
|
|
28
|
+
context.addIssue({
|
|
29
|
+
code: 'custom',
|
|
30
|
+
message: `${key} must be unique`,
|
|
31
|
+
path: basePath
|
|
32
|
+
? [basePath, index, String(checkKey)]
|
|
33
|
+
: [index, String(checkKey)],
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=checkUniqueByKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkUniqueByKey.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,gBAAgB,CAAI,OAAmC;IACrE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC;IAE3D,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IAEvB,MAAM,kBAAkB,GAGpB,EAAE,CAAC;IACP,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,KAAK,MAAM,KAAK,IAAI,IAAI,EAAE,CAAC;QACzB,IAAI,GAAG,CAAC;QACR,MAAM,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;QAEnC,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;YACnC,GAAG,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC;QACjC,CAAC;QAED,IAAI,GAAG,EAAE,CAAC;YACR,IAAI,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC5B,EAAE,kBAAkB,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC;gBAChC,kBAAkB,CAAC,GAAG,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACpD,CAAC;iBAAM,CAAC;gBACN,kBAAkB,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;YACjE,CAAC;QACH,CAAC;QACD,KAAK,EAAE,CAAC;IACV,CAAC;IAED,KAAK,MAAM,GAAG,IAAI,kBAAkB,EAAE,CAAC;QACrC,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;QACzD,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACd,KAAK,MAAM,KAAK,IAAI,aAAa,EAAE,CAAC;gBAClC,OAAO,CAAC,QAAQ,CAAC;oBACf,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,GAAG,GAAG,iBAAiB;oBAChC,IAAI,EAAE,QAAQ;wBACZ,CAAC,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;wBACrC,CAAC,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;iBAC9B,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* @see {import("@zakodium/nmrium-core").ExportSettings}
|
|
4
|
+
*/
|
|
5
|
+
export declare const exportSettingsValidation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
|
+
size: z.ZodEnum<{
|
|
7
|
+
Letter: "Letter";
|
|
8
|
+
Legal: "Legal";
|
|
9
|
+
Tabloid: "Tabloid";
|
|
10
|
+
Executive: "Executive";
|
|
11
|
+
Statement: "Statement";
|
|
12
|
+
Folio: "Folio";
|
|
13
|
+
A3: "A3";
|
|
14
|
+
A4: "A4";
|
|
15
|
+
A5: "A5";
|
|
16
|
+
B4: "B4";
|
|
17
|
+
B5: "B5";
|
|
18
|
+
}>;
|
|
19
|
+
layout: z.ZodEnum<{
|
|
20
|
+
portrait: "portrait";
|
|
21
|
+
landscape: "landscape";
|
|
22
|
+
}>;
|
|
23
|
+
useDefaultSettings: z.ZodBoolean;
|
|
24
|
+
dpi: z.ZodCoercedNumber<string>;
|
|
25
|
+
mode: z.ZodLiteral<"basic">;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
width: z.ZodCoercedNumber<string>;
|
|
28
|
+
height: z.ZodCoercedNumber<string>;
|
|
29
|
+
unit: z.ZodEnum<{
|
|
30
|
+
in: "in";
|
|
31
|
+
ft: "ft";
|
|
32
|
+
m: "m";
|
|
33
|
+
px: "px";
|
|
34
|
+
yd: "yd";
|
|
35
|
+
cm: "cm";
|
|
36
|
+
mm: "mm";
|
|
37
|
+
pt: "pt";
|
|
38
|
+
pc: "pc";
|
|
39
|
+
}>;
|
|
40
|
+
useDefaultSettings: z.ZodBoolean;
|
|
41
|
+
dpi: z.ZodCoercedNumber<string>;
|
|
42
|
+
mode: z.ZodLiteral<"advance">;
|
|
43
|
+
}, z.core.$strip>], "mode">;
|
|
44
|
+
/**
|
|
45
|
+
* @see {import("@zakodium/nmrium-core").ExportPreferences}
|
|
46
|
+
*/
|
|
47
|
+
export declare const exportPreferencesValidation: z.ZodObject<{
|
|
48
|
+
png: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
49
|
+
size: z.ZodEnum<{
|
|
50
|
+
Letter: "Letter";
|
|
51
|
+
Legal: "Legal";
|
|
52
|
+
Tabloid: "Tabloid";
|
|
53
|
+
Executive: "Executive";
|
|
54
|
+
Statement: "Statement";
|
|
55
|
+
Folio: "Folio";
|
|
56
|
+
A3: "A3";
|
|
57
|
+
A4: "A4";
|
|
58
|
+
A5: "A5";
|
|
59
|
+
B4: "B4";
|
|
60
|
+
B5: "B5";
|
|
61
|
+
}>;
|
|
62
|
+
layout: z.ZodEnum<{
|
|
63
|
+
portrait: "portrait";
|
|
64
|
+
landscape: "landscape";
|
|
65
|
+
}>;
|
|
66
|
+
useDefaultSettings: z.ZodBoolean;
|
|
67
|
+
dpi: z.ZodCoercedNumber<string>;
|
|
68
|
+
mode: z.ZodLiteral<"basic">;
|
|
69
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
+
width: z.ZodCoercedNumber<string>;
|
|
71
|
+
height: z.ZodCoercedNumber<string>;
|
|
72
|
+
unit: z.ZodEnum<{
|
|
73
|
+
in: "in";
|
|
74
|
+
ft: "ft";
|
|
75
|
+
m: "m";
|
|
76
|
+
px: "px";
|
|
77
|
+
yd: "yd";
|
|
78
|
+
cm: "cm";
|
|
79
|
+
mm: "mm";
|
|
80
|
+
pt: "pt";
|
|
81
|
+
pc: "pc";
|
|
82
|
+
}>;
|
|
83
|
+
useDefaultSettings: z.ZodBoolean;
|
|
84
|
+
dpi: z.ZodCoercedNumber<string>;
|
|
85
|
+
mode: z.ZodLiteral<"advance">;
|
|
86
|
+
}, z.core.$strip>], "mode">;
|
|
87
|
+
svg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
88
|
+
size: z.ZodEnum<{
|
|
89
|
+
Letter: "Letter";
|
|
90
|
+
Legal: "Legal";
|
|
91
|
+
Tabloid: "Tabloid";
|
|
92
|
+
Executive: "Executive";
|
|
93
|
+
Statement: "Statement";
|
|
94
|
+
Folio: "Folio";
|
|
95
|
+
A3: "A3";
|
|
96
|
+
A4: "A4";
|
|
97
|
+
A5: "A5";
|
|
98
|
+
B4: "B4";
|
|
99
|
+
B5: "B5";
|
|
100
|
+
}>;
|
|
101
|
+
layout: z.ZodEnum<{
|
|
102
|
+
portrait: "portrait";
|
|
103
|
+
landscape: "landscape";
|
|
104
|
+
}>;
|
|
105
|
+
useDefaultSettings: z.ZodBoolean;
|
|
106
|
+
dpi: z.ZodCoercedNumber<string>;
|
|
107
|
+
mode: z.ZodLiteral<"basic">;
|
|
108
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
109
|
+
width: z.ZodCoercedNumber<string>;
|
|
110
|
+
height: z.ZodCoercedNumber<string>;
|
|
111
|
+
unit: z.ZodEnum<{
|
|
112
|
+
in: "in";
|
|
113
|
+
ft: "ft";
|
|
114
|
+
m: "m";
|
|
115
|
+
px: "px";
|
|
116
|
+
yd: "yd";
|
|
117
|
+
cm: "cm";
|
|
118
|
+
mm: "mm";
|
|
119
|
+
pt: "pt";
|
|
120
|
+
pc: "pc";
|
|
121
|
+
}>;
|
|
122
|
+
useDefaultSettings: z.ZodBoolean;
|
|
123
|
+
dpi: z.ZodCoercedNumber<string>;
|
|
124
|
+
mode: z.ZodLiteral<"advance">;
|
|
125
|
+
}, z.core.$strip>], "mode">;
|
|
126
|
+
clipboard: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
127
|
+
size: z.ZodEnum<{
|
|
128
|
+
Letter: "Letter";
|
|
129
|
+
Legal: "Legal";
|
|
130
|
+
Tabloid: "Tabloid";
|
|
131
|
+
Executive: "Executive";
|
|
132
|
+
Statement: "Statement";
|
|
133
|
+
Folio: "Folio";
|
|
134
|
+
A3: "A3";
|
|
135
|
+
A4: "A4";
|
|
136
|
+
A5: "A5";
|
|
137
|
+
B4: "B4";
|
|
138
|
+
B5: "B5";
|
|
139
|
+
}>;
|
|
140
|
+
layout: z.ZodEnum<{
|
|
141
|
+
portrait: "portrait";
|
|
142
|
+
landscape: "landscape";
|
|
143
|
+
}>;
|
|
144
|
+
useDefaultSettings: z.ZodBoolean;
|
|
145
|
+
dpi: z.ZodCoercedNumber<string>;
|
|
146
|
+
mode: z.ZodLiteral<"basic">;
|
|
147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
148
|
+
width: z.ZodCoercedNumber<string>;
|
|
149
|
+
height: z.ZodCoercedNumber<string>;
|
|
150
|
+
unit: z.ZodEnum<{
|
|
151
|
+
in: "in";
|
|
152
|
+
ft: "ft";
|
|
153
|
+
m: "m";
|
|
154
|
+
px: "px";
|
|
155
|
+
yd: "yd";
|
|
156
|
+
cm: "cm";
|
|
157
|
+
mm: "mm";
|
|
158
|
+
pt: "pt";
|
|
159
|
+
pc: "pc";
|
|
160
|
+
}>;
|
|
161
|
+
useDefaultSettings: z.ZodBoolean;
|
|
162
|
+
dpi: z.ZodCoercedNumber<string>;
|
|
163
|
+
mode: z.ZodLiteral<"advance">;
|
|
164
|
+
}, z.core.$strip>], "mode">;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
//# sourceMappingURL=export_tab_validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export_tab_validation.d.ts","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6CxB;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAGnC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAItC,CAAC"}
|
package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { units } from '@zakodium/nmrium-core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
const exportSizes = [
|
|
4
|
+
'Letter',
|
|
5
|
+
'Legal',
|
|
6
|
+
'Tabloid',
|
|
7
|
+
'Executive',
|
|
8
|
+
'Statement',
|
|
9
|
+
'Folio',
|
|
10
|
+
'A3',
|
|
11
|
+
'A4',
|
|
12
|
+
'A5',
|
|
13
|
+
'B4',
|
|
14
|
+
'B5',
|
|
15
|
+
];
|
|
16
|
+
const exportLayouts = ['portrait', 'landscape'];
|
|
17
|
+
/**
|
|
18
|
+
* @see {import("@zakodium/nmrium-core").BaseExportSettings}
|
|
19
|
+
*/
|
|
20
|
+
const baseExportSettings = z.object({
|
|
21
|
+
useDefaultSettings: z.boolean(),
|
|
22
|
+
dpi: z.coerce.number(),
|
|
23
|
+
});
|
|
24
|
+
/**
|
|
25
|
+
* @see {import("@zakodium/nmrium-core").BasicExportSettings}
|
|
26
|
+
*/
|
|
27
|
+
const basicExportSettings = z.object({
|
|
28
|
+
mode: z.literal('basic'),
|
|
29
|
+
...baseExportSettings.shape,
|
|
30
|
+
size: z.enum(exportSizes),
|
|
31
|
+
layout: z.enum(exportLayouts),
|
|
32
|
+
});
|
|
33
|
+
/**
|
|
34
|
+
* @see {import("@zakodium/nmrium-core").AdvanceExportSettings}
|
|
35
|
+
*/
|
|
36
|
+
const advancedExportSettings = z.object({
|
|
37
|
+
mode: z.literal('advance'),
|
|
38
|
+
...baseExportSettings.shape,
|
|
39
|
+
width: z.coerce.number(),
|
|
40
|
+
height: z.coerce.number(),
|
|
41
|
+
unit: z.enum(units.map((u) => u.unit)),
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* @see {import("@zakodium/nmrium-core").ExportSettings}
|
|
45
|
+
*/
|
|
46
|
+
export const exportSettingsValidation = z.discriminatedUnion('mode', [
|
|
47
|
+
basicExportSettings,
|
|
48
|
+
advancedExportSettings,
|
|
49
|
+
]);
|
|
50
|
+
/**
|
|
51
|
+
* @see {import("@zakodium/nmrium-core").ExportPreferences}
|
|
52
|
+
*/
|
|
53
|
+
export const exportPreferencesValidation = z.object({
|
|
54
|
+
png: exportSettingsValidation,
|
|
55
|
+
svg: exportSettingsValidation,
|
|
56
|
+
clipboard: exportSettingsValidation,
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=export_tab_validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export_tab_validation.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,GAAmB;IAClC,QAAQ;IACR,OAAO;IACP,SAAS;IACT,WAAW;IACX,WAAW;IACX,OAAO;IACP,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACL,CAAC;AACF,MAAM,aAAa,GAAa,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AAE1D;;GAEG;AACH,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC/B,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAU;CAC/B,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACxB,GAAG,kBAAkB,CAAC,KAAK;IAC3B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;IACzB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;CAC9B,CAAC,CAAC;AACH;;GAEG;AACH,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC1B,GAAG,kBAAkB,CAAC,KAAK;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAU;IAChC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAU;IACjC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;CACvC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACnE,mBAAmB;IACnB,sBAAsB;CACvB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,GAAG,EAAE,wBAAwB;IAC7B,GAAG,EAAE,wBAAwB;IAC7B,SAAS,EAAE,wBAAwB;CACpC,CAAC,CAAC"}
|
package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const peaksLabelValidation: z.ZodObject<{
|
|
3
|
+
marginTop: z.ZodCoercedNumber<unknown>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export declare const generalValidation: z.ZodObject<{
|
|
6
|
+
dimmedSpectraOpacity: z.ZodCoercedNumber<unknown>;
|
|
7
|
+
invert: z.ZodBoolean;
|
|
8
|
+
invertScroll: z.ZodBoolean;
|
|
9
|
+
spectraRendering: z.ZodEnum<{
|
|
10
|
+
auto: "auto";
|
|
11
|
+
crispEdges: "crispEdges";
|
|
12
|
+
geometricPrecision: "geometricPrecision";
|
|
13
|
+
optimizeSpeed: "optimizeSpeed";
|
|
14
|
+
}>;
|
|
15
|
+
popupLoggingLevel: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
error: "error";
|
|
17
|
+
info: "info";
|
|
18
|
+
fatal: "fatal";
|
|
19
|
+
warn: "warn";
|
|
20
|
+
debug: "debug";
|
|
21
|
+
trace: "trace";
|
|
22
|
+
silent: "silent";
|
|
23
|
+
}>>;
|
|
24
|
+
loggingLevel: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
error: "error";
|
|
26
|
+
info: "info";
|
|
27
|
+
fatal: "fatal";
|
|
28
|
+
warn: "warn";
|
|
29
|
+
debug: "debug";
|
|
30
|
+
trace: "trace";
|
|
31
|
+
silent: "silent";
|
|
32
|
+
}>>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export declare const displayGeneralValidation: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
experimentalFeatures: z.ZodOptional<z.ZodObject<{
|
|
36
|
+
display: z.ZodBoolean;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
hidePanelsBar: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
//# sourceMappingURL=general_tab_validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"general_tab_validation.d.ts","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAY5B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;kBASxB,CAAC"}
|
package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
const loggingLevel = [
|
|
3
|
+
'fatal',
|
|
4
|
+
'error',
|
|
5
|
+
'warn',
|
|
6
|
+
'info',
|
|
7
|
+
'debug',
|
|
8
|
+
'trace',
|
|
9
|
+
'silent',
|
|
10
|
+
];
|
|
11
|
+
export const peaksLabelValidation = z.object({
|
|
12
|
+
marginTop: z.coerce.number().int().min(0),
|
|
13
|
+
});
|
|
14
|
+
export const generalValidation = z.object({
|
|
15
|
+
dimmedSpectraOpacity: z.coerce.number().min(0).max(1),
|
|
16
|
+
invert: z.boolean(),
|
|
17
|
+
invertScroll: z.boolean(),
|
|
18
|
+
spectraRendering: z.enum([
|
|
19
|
+
'auto',
|
|
20
|
+
'optimizeSpeed',
|
|
21
|
+
'crispEdges',
|
|
22
|
+
'geometricPrecision',
|
|
23
|
+
]),
|
|
24
|
+
popupLoggingLevel: z.enum(loggingLevel).optional(),
|
|
25
|
+
loggingLevel: z.enum(loggingLevel).optional(),
|
|
26
|
+
});
|
|
27
|
+
export const displayGeneralValidation = z
|
|
28
|
+
.object({
|
|
29
|
+
experimentalFeatures: z
|
|
30
|
+
.object({
|
|
31
|
+
display: z.boolean(),
|
|
32
|
+
})
|
|
33
|
+
.optional(),
|
|
34
|
+
hidePanelsBar: z.boolean().optional(),
|
|
35
|
+
})
|
|
36
|
+
.optional();
|
|
37
|
+
//# sourceMappingURL=general_tab_validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"general_tab_validation.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,YAAY,GAAiB;IACjC,OAAO;IACP,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,QAAQ;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC1C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,oBAAoB,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACrD,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;IACzB,gBAAgB,EAAE,CAAC,CAAC,IAAI,CAAC;QACvB,MAAM;QACN,eAAe;QACf,YAAY;QACZ,oBAAoB;KACrB,CAAC;IACF,iBAAiB,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;IAClD,YAAY,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,CAAC;IACN,oBAAoB,EAAE,CAAC;SACpB,MAAM,CAAC;QACN,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;KACrB,CAAC;SACD,QAAQ,EAAE;IACb,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC;KACD,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const nmrLoadersGeneralDataSelection: ({
|
|
3
|
+
readonly label: "FT";
|
|
4
|
+
readonly value: "ft";
|
|
5
|
+
} | {
|
|
6
|
+
readonly label: "FID";
|
|
7
|
+
readonly value: "fid";
|
|
8
|
+
} | {
|
|
9
|
+
readonly label: "Both";
|
|
10
|
+
readonly value: "both";
|
|
11
|
+
} | {
|
|
12
|
+
readonly label: "Prefer FT";
|
|
13
|
+
readonly value: "preferFT";
|
|
14
|
+
} | {
|
|
15
|
+
readonly label: "Prefer FID";
|
|
16
|
+
readonly value: "preferFID";
|
|
17
|
+
})[];
|
|
18
|
+
export declare const nmrLoadersValidation: z.ZodObject<{
|
|
19
|
+
general: z.ZodObject<{
|
|
20
|
+
dataSelection: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
both: "both";
|
|
22
|
+
ft: "ft";
|
|
23
|
+
fid: "fid";
|
|
24
|
+
preferFT: "preferFT";
|
|
25
|
+
preferFID: "preferFID";
|
|
26
|
+
}>>;
|
|
27
|
+
keep1D: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
keep2D: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
onlyReal: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
bruker: z.ZodObject<{
|
|
32
|
+
processingNumbers: z.ZodOptional<z.ZodString>;
|
|
33
|
+
experimentNumbers: z.ZodOptional<z.ZodString>;
|
|
34
|
+
onlyFirstProcessedData: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
//# sourceMappingURL=import_filters_tab_validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import_filters_tab_validation.d.ts","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;IAM1C,CAAC;AAcF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;iBAG/B,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const nmrLoadersGeneralDataSelection = [
|
|
3
|
+
{ label: 'FT', value: 'ft' },
|
|
4
|
+
{ label: 'FID', value: 'fid' },
|
|
5
|
+
{ label: 'Both', value: 'both' },
|
|
6
|
+
{ label: 'Prefer FT', value: 'preferFT' },
|
|
7
|
+
{ label: 'Prefer FID', value: 'preferFID' },
|
|
8
|
+
];
|
|
9
|
+
const nmrLoadersGeneralValidation = z.object({
|
|
10
|
+
dataSelection: z
|
|
11
|
+
.enum(nmrLoadersGeneralDataSelection.map(({ value }) => value))
|
|
12
|
+
.optional(),
|
|
13
|
+
keep1D: z.boolean().optional(),
|
|
14
|
+
keep2D: z.boolean().optional(),
|
|
15
|
+
onlyReal: z.boolean().optional(),
|
|
16
|
+
});
|
|
17
|
+
const nmrLoadersBrukerValidation = z.object({
|
|
18
|
+
processingNumbers: z.string().optional(),
|
|
19
|
+
experimentNumbers: z.string().optional(),
|
|
20
|
+
onlyFirstProcessedData: z.boolean().optional(),
|
|
21
|
+
});
|
|
22
|
+
export const nmrLoadersValidation = z.object({
|
|
23
|
+
general: nmrLoadersGeneralValidation,
|
|
24
|
+
bruker: nmrLoadersBrukerValidation,
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=import_filters_tab_validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import_filters_tab_validation.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAW;IACrC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAW;IACvC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAW;IACzC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAW;IAClD,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,EAAW;CACrD,CAAC;AACF,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,aAAa,EAAE,CAAC;SACb,IAAI,CAAC,8BAA8B,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;SAC9D,QAAQ,EAAE;IACb,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AACH,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,OAAO,EAAE,2BAA2B;IACpC,MAAM,EAAE,0BAA0B;CACnC,CAAC,CAAC"}
|
package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const nucleiValidation: z.ZodArray<z.ZodObject<{
|
|
3
|
+
nucleus: z.ZodString;
|
|
4
|
+
ppmFormat: z.ZodString;
|
|
5
|
+
hzFormat: z.ZodString;
|
|
6
|
+
axisFrom: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
7
|
+
axisTo: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
//# sourceMappingURL=nuclei_tab_validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nuclei_tab_validation.d.ts","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,gBAAgB;;;;;;kBAgBzB,CAAC"}
|
package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { checkUniqueByKey } from '../utils/checkUniqueByKey.js';
|
|
3
|
+
export const nucleiValidation = z
|
|
4
|
+
.array(z.object({
|
|
5
|
+
nucleus: z.string({ error: 'Nucleus is a required field' }),
|
|
6
|
+
ppmFormat: z.string({ error: 'PPM format is a required field' }),
|
|
7
|
+
hzFormat: z.string({ error: 'Hz format is a required field' }),
|
|
8
|
+
axisFrom: z.coerce.number().optional(),
|
|
9
|
+
axisTo: z.coerce.number().optional(),
|
|
10
|
+
}))
|
|
11
|
+
.superRefine((nuclei, ctx) => {
|
|
12
|
+
checkUniqueByKey({
|
|
13
|
+
data: nuclei,
|
|
14
|
+
checkKey: 'nucleus',
|
|
15
|
+
context: ctx,
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=nuclei_tab_validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nuclei_tab_validation.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,6BAA6B,EAAE,CAAC;IAC3D,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,gCAAgC,EAAE,CAAC;IAChE,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,gCAAgC,EAAE,CAAC;IAC/D,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CACH;KACA,WAAW,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE;IAC3B,gBAAgB,CAAC;QACf,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,SAAS;QACnB,OAAO,EAAE,GAAG;KACb,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|