nmrium 1.11.0 → 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/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 +2 -2
- 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 +3 -3
- 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 +4 -4
- 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 +6 -0
- 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/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/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.js +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.js +1 -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/main/NMRiumViewer.js +1 -1
- 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 +3 -5
- 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.map +1 -1
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js +4 -3
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js.map +1 -1
- 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 +3 -2
- 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/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 +7 -7
- 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.map +1 -1
- package/lib/component/panels/Panels.js +12 -25
- 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/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.js +4 -4
- package/lib/component/reducer/actions/LoadAction.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +3 -3
- 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 +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +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/toggleOpenSplitPanel.d.ts +1 -1
- package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.js +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js +3 -3
- package/lib/component/toolbar/ToolBar.d.ts.map +1 -1
- package/lib/component/toolbar/ToolBar.js +5 -1
- package/lib/component/toolbar/ToolBar.js.map +1 -1
- package/lib/component/utility/export.js +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/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 +29 -29
- package/src/component/1d/FloatPublicationString.tsx +275 -176
- package/src/component/1d/FloatingRanges.tsx +1 -2
- package/src/component/1d/SVGContent1D.tsx +1 -1
- package/src/component/1d/inset/DraggableInset.tsx +2 -3
- 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 +3 -4
- 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 +6 -0
- 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/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 +1 -1
- package/src/component/hooks/useSVGUnitConverter.ts +13 -9
- package/src/component/hooks/useSaveSettings.tsx +4 -3
- package/src/component/hooks/useSetActiveSpectrumAction.ts +1 -1
- 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/main/NMRiumViewer.tsx +1 -1
- package/src/component/main/NMRiumViewerWrapper.tsx +3 -5
- 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 +5 -4
- 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 +4 -9
- package/src/component/modal/aboutUs/AboutUsModal.tsx +3 -3
- package/src/component/modal/changeSum/ChangeSumModal.tsx +4 -3
- 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 +14 -8
- 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 +4 -40
- 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/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 +4 -4
- package/src/component/reducer/actions/MoleculeActions.ts +3 -3
- package/src/component/reducer/actions/PreferencesActions.ts +1 -1
- package/src/component/reducer/actions/RangesActions.ts +3 -3
- package/src/component/reducer/actions/SpectraActions.ts +1 -1
- 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/toggleOpenSplitPanel.ts +2 -2
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +1 -1
- package/src/component/reducer/preferences/preferencesReducer.ts +3 -3
- package/src/component/toolbar/ToolBar.tsx +6 -1
- package/src/component/utility/export.ts +1 -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/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
package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const displayPanelsStatus: ({
|
|
3
|
+
readonly label: "Hidden";
|
|
4
|
+
readonly value: "hidden";
|
|
5
|
+
} | {
|
|
6
|
+
readonly label: "Available";
|
|
7
|
+
readonly value: "available";
|
|
8
|
+
} | {
|
|
9
|
+
readonly label: "Active";
|
|
10
|
+
readonly value: "active";
|
|
11
|
+
} | {
|
|
12
|
+
readonly label: "Open";
|
|
13
|
+
readonly value: "open";
|
|
14
|
+
})[];
|
|
15
|
+
export declare const displayPanelsValidation: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
spectraPanel: z.ZodCodec<z.ZodEnum<{
|
|
17
|
+
active: "active";
|
|
18
|
+
hidden: "hidden";
|
|
19
|
+
open: "open";
|
|
20
|
+
available: "available";
|
|
21
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
22
|
+
display: z.ZodBoolean;
|
|
23
|
+
visible: z.ZodBoolean;
|
|
24
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
26
|
+
informationPanel: z.ZodCodec<z.ZodEnum<{
|
|
27
|
+
active: "active";
|
|
28
|
+
hidden: "hidden";
|
|
29
|
+
open: "open";
|
|
30
|
+
available: "available";
|
|
31
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
32
|
+
display: z.ZodBoolean;
|
|
33
|
+
visible: z.ZodBoolean;
|
|
34
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
}, z.core.$strip>>>;
|
|
36
|
+
peaksPanel: z.ZodCodec<z.ZodEnum<{
|
|
37
|
+
active: "active";
|
|
38
|
+
hidden: "hidden";
|
|
39
|
+
open: "open";
|
|
40
|
+
available: "available";
|
|
41
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
42
|
+
display: z.ZodBoolean;
|
|
43
|
+
visible: z.ZodBoolean;
|
|
44
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
integralsPanel: z.ZodCodec<z.ZodEnum<{
|
|
47
|
+
active: "active";
|
|
48
|
+
hidden: "hidden";
|
|
49
|
+
open: "open";
|
|
50
|
+
available: "available";
|
|
51
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
52
|
+
display: z.ZodBoolean;
|
|
53
|
+
visible: z.ZodBoolean;
|
|
54
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
}, z.core.$strip>>>;
|
|
56
|
+
rangesPanel: z.ZodCodec<z.ZodEnum<{
|
|
57
|
+
active: "active";
|
|
58
|
+
hidden: "hidden";
|
|
59
|
+
open: "open";
|
|
60
|
+
available: "available";
|
|
61
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
62
|
+
display: z.ZodBoolean;
|
|
63
|
+
visible: z.ZodBoolean;
|
|
64
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
}, z.core.$strip>>>;
|
|
66
|
+
structuresPanel: z.ZodCodec<z.ZodEnum<{
|
|
67
|
+
active: "active";
|
|
68
|
+
hidden: "hidden";
|
|
69
|
+
open: "open";
|
|
70
|
+
available: "available";
|
|
71
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
72
|
+
display: z.ZodBoolean;
|
|
73
|
+
visible: z.ZodBoolean;
|
|
74
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
}, z.core.$strip>>>;
|
|
76
|
+
processingsPanel: z.ZodCodec<z.ZodEnum<{
|
|
77
|
+
active: "active";
|
|
78
|
+
hidden: "hidden";
|
|
79
|
+
open: "open";
|
|
80
|
+
available: "available";
|
|
81
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
82
|
+
display: z.ZodBoolean;
|
|
83
|
+
visible: z.ZodBoolean;
|
|
84
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
}, z.core.$strip>>>;
|
|
86
|
+
zonesPanel: z.ZodCodec<z.ZodEnum<{
|
|
87
|
+
active: "active";
|
|
88
|
+
hidden: "hidden";
|
|
89
|
+
open: "open";
|
|
90
|
+
available: "available";
|
|
91
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
92
|
+
display: z.ZodBoolean;
|
|
93
|
+
visible: z.ZodBoolean;
|
|
94
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
}, z.core.$strip>>>;
|
|
96
|
+
summaryPanel: z.ZodCodec<z.ZodEnum<{
|
|
97
|
+
active: "active";
|
|
98
|
+
hidden: "hidden";
|
|
99
|
+
open: "open";
|
|
100
|
+
available: "available";
|
|
101
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
102
|
+
display: z.ZodBoolean;
|
|
103
|
+
visible: z.ZodBoolean;
|
|
104
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
+
}, z.core.$strip>>>;
|
|
106
|
+
multipleSpectraAnalysisPanel: z.ZodCodec<z.ZodEnum<{
|
|
107
|
+
active: "active";
|
|
108
|
+
hidden: "hidden";
|
|
109
|
+
open: "open";
|
|
110
|
+
available: "available";
|
|
111
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
112
|
+
display: z.ZodBoolean;
|
|
113
|
+
visible: z.ZodBoolean;
|
|
114
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
}, z.core.$strip>>>;
|
|
116
|
+
databasePanel: z.ZodCodec<z.ZodEnum<{
|
|
117
|
+
active: "active";
|
|
118
|
+
hidden: "hidden";
|
|
119
|
+
open: "open";
|
|
120
|
+
available: "available";
|
|
121
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
122
|
+
display: z.ZodBoolean;
|
|
123
|
+
visible: z.ZodBoolean;
|
|
124
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
+
}, z.core.$strip>>>;
|
|
126
|
+
predictionPanel: z.ZodCodec<z.ZodEnum<{
|
|
127
|
+
active: "active";
|
|
128
|
+
hidden: "hidden";
|
|
129
|
+
open: "open";
|
|
130
|
+
available: "available";
|
|
131
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
132
|
+
display: z.ZodBoolean;
|
|
133
|
+
visible: z.ZodBoolean;
|
|
134
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
+
}, z.core.$strip>>>;
|
|
136
|
+
automaticAssignmentPanel: z.ZodCodec<z.ZodEnum<{
|
|
137
|
+
active: "active";
|
|
138
|
+
hidden: "hidden";
|
|
139
|
+
open: "open";
|
|
140
|
+
available: "available";
|
|
141
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
142
|
+
display: z.ZodBoolean;
|
|
143
|
+
visible: z.ZodBoolean;
|
|
144
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
+
}, z.core.$strip>>>;
|
|
146
|
+
matrixGenerationPanel: z.ZodCodec<z.ZodEnum<{
|
|
147
|
+
active: "active";
|
|
148
|
+
hidden: "hidden";
|
|
149
|
+
open: "open";
|
|
150
|
+
available: "available";
|
|
151
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
152
|
+
display: z.ZodBoolean;
|
|
153
|
+
visible: z.ZodBoolean;
|
|
154
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
155
|
+
}, z.core.$strip>>>;
|
|
156
|
+
simulationPanel: z.ZodCodec<z.ZodEnum<{
|
|
157
|
+
active: "active";
|
|
158
|
+
hidden: "hidden";
|
|
159
|
+
open: "open";
|
|
160
|
+
available: "available";
|
|
161
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
162
|
+
display: z.ZodBoolean;
|
|
163
|
+
visible: z.ZodBoolean;
|
|
164
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
165
|
+
}, z.core.$strip>>>;
|
|
166
|
+
}, z.core.$strip>>;
|
|
167
|
+
//# sourceMappingURL=panels_tab_validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panels_tab_validation.d.ts","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;IAK/B,CAAC;AAsDF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkBvB,CAAC"}
|
package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const displayPanelsStatus = [
|
|
3
|
+
{ label: 'Hidden', value: 'hidden' },
|
|
4
|
+
{ label: 'Available', value: 'available' },
|
|
5
|
+
{ label: 'Active', value: 'active' },
|
|
6
|
+
{ label: 'Open', value: 'open' },
|
|
7
|
+
];
|
|
8
|
+
const panelStatusValidation = z.enum(displayPanelsStatus.map((s) => s.value));
|
|
9
|
+
const panelCodec = z.codec(panelStatusValidation, z
|
|
10
|
+
.object({
|
|
11
|
+
display: z.boolean(),
|
|
12
|
+
visible: z.boolean(),
|
|
13
|
+
open: z.boolean().optional(),
|
|
14
|
+
})
|
|
15
|
+
.optional(), {
|
|
16
|
+
encode: (status) => {
|
|
17
|
+
const { display = false, visible = false, open = false } = status ?? {};
|
|
18
|
+
let value = 'hidden';
|
|
19
|
+
const isActive = visible && display;
|
|
20
|
+
if (isActive && open) {
|
|
21
|
+
value = 'open';
|
|
22
|
+
}
|
|
23
|
+
else if (isActive) {
|
|
24
|
+
value = 'active';
|
|
25
|
+
}
|
|
26
|
+
else if (visible) {
|
|
27
|
+
value = 'available';
|
|
28
|
+
}
|
|
29
|
+
return value;
|
|
30
|
+
},
|
|
31
|
+
decode: (status) => {
|
|
32
|
+
let visible = false;
|
|
33
|
+
let display = false;
|
|
34
|
+
let open = false;
|
|
35
|
+
if (status === 'available') {
|
|
36
|
+
visible = true;
|
|
37
|
+
}
|
|
38
|
+
if (status === 'active') {
|
|
39
|
+
visible = true;
|
|
40
|
+
display = true;
|
|
41
|
+
}
|
|
42
|
+
if (status === 'open') {
|
|
43
|
+
visible = true;
|
|
44
|
+
display = true;
|
|
45
|
+
open = true;
|
|
46
|
+
}
|
|
47
|
+
return { open, visible, display };
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
export const displayPanelsValidation = z
|
|
51
|
+
.object({
|
|
52
|
+
spectraPanel: panelCodec,
|
|
53
|
+
informationPanel: panelCodec,
|
|
54
|
+
peaksPanel: panelCodec,
|
|
55
|
+
integralsPanel: panelCodec,
|
|
56
|
+
rangesPanel: panelCodec,
|
|
57
|
+
structuresPanel: panelCodec,
|
|
58
|
+
processingsPanel: panelCodec,
|
|
59
|
+
zonesPanel: panelCodec,
|
|
60
|
+
summaryPanel: panelCodec,
|
|
61
|
+
multipleSpectraAnalysisPanel: panelCodec,
|
|
62
|
+
databasePanel: panelCodec,
|
|
63
|
+
predictionPanel: panelCodec,
|
|
64
|
+
automaticAssignmentPanel: panelCodec,
|
|
65
|
+
matrixGenerationPanel: panelCodec,
|
|
66
|
+
simulationPanel: panelCodec,
|
|
67
|
+
})
|
|
68
|
+
.optional();
|
|
69
|
+
//# sourceMappingURL=panels_tab_validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panels_tab_validation.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAW;IAC7C,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAW;IACnD,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAW;IAC7C,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAW;CAC1C,CAAC;AAGF,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AAE9E,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CACxB,qBAAqB,EACrB,CAAC;KACE,MAAM,CAAC;IACN,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC;KACD,QAAQ,EAAE,EACb;IACE,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;QACjB,MAAM,EAAE,OAAO,GAAG,KAAK,EAAE,OAAO,GAAG,KAAK,EAAE,IAAI,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACxE,IAAI,KAAK,GAAgB,QAAQ,CAAC;QAClC,MAAM,QAAQ,GAAG,OAAO,IAAI,OAAO,CAAC;QAEpC,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;YACrB,KAAK,GAAG,MAAM,CAAC;QACjB,CAAC;aAAM,IAAI,QAAQ,EAAE,CAAC;YACpB,KAAK,GAAG,QAAQ,CAAC;QACnB,CAAC;aAAM,IAAI,OAAO,EAAE,CAAC;YACnB,KAAK,GAAG,WAAW,CAAC;QACtB,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;QACjB,IAAI,OAAO,GAAG,KAAK,CAAC;QACpB,IAAI,OAAO,GAAG,KAAK,CAAC;QACpB,IAAI,IAAI,GAAG,KAAK,CAAC;QAEjB,IAAI,MAAM,KAAK,WAAW,EAAE,CAAC;YAC3B,OAAO,GAAG,IAAI,CAAC;QACjB,CAAC;QAED,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;YACxB,OAAO,GAAG,IAAI,CAAC;YACf,OAAO,GAAG,IAAI,CAAC;QACjB,CAAC;QACD,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;YACtB,OAAO,GAAG,IAAI,CAAC;YACf,OAAO,GAAG,IAAI,CAAC;YACf,IAAI,GAAG,IAAI,CAAC;QACd,CAAC;QAED,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IACpC,CAAC;CACF,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,YAAY,EAAE,UAAU;IACxB,gBAAgB,EAAE,UAAU;IAC5B,UAAU,EAAE,UAAU;IACtB,cAAc,EAAE,UAAU;IAC1B,WAAW,EAAE,UAAU;IACvB,eAAe,EAAE,UAAU;IAC3B,gBAAgB,EAAE,UAAU;IAC5B,UAAU,EAAE,UAAU;IACtB,YAAY,EAAE,UAAU;IACxB,4BAA4B,EAAE,UAAU;IACxC,aAAa,EAAE,UAAU;IACzB,eAAe,EAAE,UAAU;IAC3B,wBAAwB,EAAE,UAAU;IACpC,qBAAqB,EAAE,UAAU;IACjC,eAAe,EAAE,UAAU;CAC5B,CAAC;KACD,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const workspaceValidation: z.ZodObject<{
|
|
3
|
+
nuclei: z.ZodArray<z.ZodObject<{
|
|
4
|
+
nucleus: z.ZodString;
|
|
5
|
+
ppmFormat: z.ZodString;
|
|
6
|
+
hzFormat: z.ZodString;
|
|
7
|
+
axisFrom: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
8
|
+
axisTo: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
peaksLabel: z.ZodObject<{
|
|
11
|
+
marginTop: z.ZodCoercedNumber<unknown>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
general: z.ZodObject<{
|
|
14
|
+
dimmedSpectraOpacity: z.ZodCoercedNumber<unknown>;
|
|
15
|
+
invert: z.ZodBoolean;
|
|
16
|
+
invertScroll: z.ZodBoolean;
|
|
17
|
+
spectraRendering: z.ZodEnum<{
|
|
18
|
+
auto: "auto";
|
|
19
|
+
crispEdges: "crispEdges";
|
|
20
|
+
geometricPrecision: "geometricPrecision";
|
|
21
|
+
optimizeSpeed: "optimizeSpeed";
|
|
22
|
+
}>;
|
|
23
|
+
popupLoggingLevel: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
error: "error";
|
|
25
|
+
info: "info";
|
|
26
|
+
fatal: "fatal";
|
|
27
|
+
warn: "warn";
|
|
28
|
+
debug: "debug";
|
|
29
|
+
trace: "trace";
|
|
30
|
+
silent: "silent";
|
|
31
|
+
}>>;
|
|
32
|
+
loggingLevel: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
error: "error";
|
|
34
|
+
info: "info";
|
|
35
|
+
fatal: "fatal";
|
|
36
|
+
warn: "warn";
|
|
37
|
+
debug: "debug";
|
|
38
|
+
trace: "trace";
|
|
39
|
+
silent: "silent";
|
|
40
|
+
}>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
display: z.ZodObject<{
|
|
43
|
+
general: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
experimentalFeatures: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
display: z.ZodBoolean;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
hidePanelsBar: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
panels: z.ZodOptional<z.ZodObject<{
|
|
50
|
+
spectraPanel: z.ZodCodec<z.ZodEnum<{
|
|
51
|
+
active: "active";
|
|
52
|
+
hidden: "hidden";
|
|
53
|
+
open: "open";
|
|
54
|
+
available: "available";
|
|
55
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
56
|
+
display: z.ZodBoolean;
|
|
57
|
+
visible: z.ZodBoolean;
|
|
58
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
}, z.core.$strip>>>;
|
|
60
|
+
informationPanel: z.ZodCodec<z.ZodEnum<{
|
|
61
|
+
active: "active";
|
|
62
|
+
hidden: "hidden";
|
|
63
|
+
open: "open";
|
|
64
|
+
available: "available";
|
|
65
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
66
|
+
display: z.ZodBoolean;
|
|
67
|
+
visible: z.ZodBoolean;
|
|
68
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
}, z.core.$strip>>>;
|
|
70
|
+
peaksPanel: z.ZodCodec<z.ZodEnum<{
|
|
71
|
+
active: "active";
|
|
72
|
+
hidden: "hidden";
|
|
73
|
+
open: "open";
|
|
74
|
+
available: "available";
|
|
75
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
76
|
+
display: z.ZodBoolean;
|
|
77
|
+
visible: z.ZodBoolean;
|
|
78
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
}, z.core.$strip>>>;
|
|
80
|
+
integralsPanel: z.ZodCodec<z.ZodEnum<{
|
|
81
|
+
active: "active";
|
|
82
|
+
hidden: "hidden";
|
|
83
|
+
open: "open";
|
|
84
|
+
available: "available";
|
|
85
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
86
|
+
display: z.ZodBoolean;
|
|
87
|
+
visible: z.ZodBoolean;
|
|
88
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
}, z.core.$strip>>>;
|
|
90
|
+
rangesPanel: z.ZodCodec<z.ZodEnum<{
|
|
91
|
+
active: "active";
|
|
92
|
+
hidden: "hidden";
|
|
93
|
+
open: "open";
|
|
94
|
+
available: "available";
|
|
95
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
96
|
+
display: z.ZodBoolean;
|
|
97
|
+
visible: z.ZodBoolean;
|
|
98
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
}, z.core.$strip>>>;
|
|
100
|
+
structuresPanel: z.ZodCodec<z.ZodEnum<{
|
|
101
|
+
active: "active";
|
|
102
|
+
hidden: "hidden";
|
|
103
|
+
open: "open";
|
|
104
|
+
available: "available";
|
|
105
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
106
|
+
display: z.ZodBoolean;
|
|
107
|
+
visible: z.ZodBoolean;
|
|
108
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
109
|
+
}, z.core.$strip>>>;
|
|
110
|
+
processingsPanel: z.ZodCodec<z.ZodEnum<{
|
|
111
|
+
active: "active";
|
|
112
|
+
hidden: "hidden";
|
|
113
|
+
open: "open";
|
|
114
|
+
available: "available";
|
|
115
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
116
|
+
display: z.ZodBoolean;
|
|
117
|
+
visible: z.ZodBoolean;
|
|
118
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
+
}, z.core.$strip>>>;
|
|
120
|
+
zonesPanel: z.ZodCodec<z.ZodEnum<{
|
|
121
|
+
active: "active";
|
|
122
|
+
hidden: "hidden";
|
|
123
|
+
open: "open";
|
|
124
|
+
available: "available";
|
|
125
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
126
|
+
display: z.ZodBoolean;
|
|
127
|
+
visible: z.ZodBoolean;
|
|
128
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
+
}, z.core.$strip>>>;
|
|
130
|
+
summaryPanel: z.ZodCodec<z.ZodEnum<{
|
|
131
|
+
active: "active";
|
|
132
|
+
hidden: "hidden";
|
|
133
|
+
open: "open";
|
|
134
|
+
available: "available";
|
|
135
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
136
|
+
display: z.ZodBoolean;
|
|
137
|
+
visible: z.ZodBoolean;
|
|
138
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
139
|
+
}, z.core.$strip>>>;
|
|
140
|
+
multipleSpectraAnalysisPanel: z.ZodCodec<z.ZodEnum<{
|
|
141
|
+
active: "active";
|
|
142
|
+
hidden: "hidden";
|
|
143
|
+
open: "open";
|
|
144
|
+
available: "available";
|
|
145
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
146
|
+
display: z.ZodBoolean;
|
|
147
|
+
visible: z.ZodBoolean;
|
|
148
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
}, z.core.$strip>>>;
|
|
150
|
+
databasePanel: z.ZodCodec<z.ZodEnum<{
|
|
151
|
+
active: "active";
|
|
152
|
+
hidden: "hidden";
|
|
153
|
+
open: "open";
|
|
154
|
+
available: "available";
|
|
155
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
156
|
+
display: z.ZodBoolean;
|
|
157
|
+
visible: z.ZodBoolean;
|
|
158
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
159
|
+
}, z.core.$strip>>>;
|
|
160
|
+
predictionPanel: z.ZodCodec<z.ZodEnum<{
|
|
161
|
+
active: "active";
|
|
162
|
+
hidden: "hidden";
|
|
163
|
+
open: "open";
|
|
164
|
+
available: "available";
|
|
165
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
166
|
+
display: z.ZodBoolean;
|
|
167
|
+
visible: z.ZodBoolean;
|
|
168
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
169
|
+
}, z.core.$strip>>>;
|
|
170
|
+
automaticAssignmentPanel: z.ZodCodec<z.ZodEnum<{
|
|
171
|
+
active: "active";
|
|
172
|
+
hidden: "hidden";
|
|
173
|
+
open: "open";
|
|
174
|
+
available: "available";
|
|
175
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
176
|
+
display: z.ZodBoolean;
|
|
177
|
+
visible: z.ZodBoolean;
|
|
178
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
179
|
+
}, z.core.$strip>>>;
|
|
180
|
+
matrixGenerationPanel: z.ZodCodec<z.ZodEnum<{
|
|
181
|
+
active: "active";
|
|
182
|
+
hidden: "hidden";
|
|
183
|
+
open: "open";
|
|
184
|
+
available: "available";
|
|
185
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
186
|
+
display: z.ZodBoolean;
|
|
187
|
+
visible: z.ZodBoolean;
|
|
188
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
+
}, z.core.$strip>>>;
|
|
190
|
+
simulationPanel: z.ZodCodec<z.ZodEnum<{
|
|
191
|
+
active: "active";
|
|
192
|
+
hidden: "hidden";
|
|
193
|
+
open: "open";
|
|
194
|
+
available: "available";
|
|
195
|
+
}>, z.ZodOptional<z.ZodObject<{
|
|
196
|
+
display: z.ZodBoolean;
|
|
197
|
+
visible: z.ZodBoolean;
|
|
198
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
+
}, z.core.$strip>>>;
|
|
200
|
+
}, z.core.$strip>>;
|
|
201
|
+
}, z.core.$strip>;
|
|
202
|
+
nmrLoaders: z.ZodObject<{
|
|
203
|
+
general: z.ZodObject<{
|
|
204
|
+
dataSelection: z.ZodOptional<z.ZodEnum<{
|
|
205
|
+
both: "both";
|
|
206
|
+
ft: "ft";
|
|
207
|
+
fid: "fid";
|
|
208
|
+
preferFT: "preferFT";
|
|
209
|
+
preferFID: "preferFID";
|
|
210
|
+
}>>;
|
|
211
|
+
keep1D: z.ZodOptional<z.ZodBoolean>;
|
|
212
|
+
keep2D: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
onlyReal: z.ZodOptional<z.ZodBoolean>;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
bruker: z.ZodObject<{
|
|
216
|
+
processingNumbers: z.ZodOptional<z.ZodString>;
|
|
217
|
+
experimentNumbers: z.ZodOptional<z.ZodString>;
|
|
218
|
+
onlyFirstProcessedData: z.ZodOptional<z.ZodBoolean>;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
export: z.ZodObject<{
|
|
222
|
+
png: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
223
|
+
size: z.ZodEnum<{
|
|
224
|
+
Letter: "Letter";
|
|
225
|
+
Legal: "Legal";
|
|
226
|
+
Tabloid: "Tabloid";
|
|
227
|
+
Executive: "Executive";
|
|
228
|
+
Statement: "Statement";
|
|
229
|
+
Folio: "Folio";
|
|
230
|
+
A3: "A3";
|
|
231
|
+
A4: "A4";
|
|
232
|
+
A5: "A5";
|
|
233
|
+
B4: "B4";
|
|
234
|
+
B5: "B5";
|
|
235
|
+
}>;
|
|
236
|
+
layout: z.ZodEnum<{
|
|
237
|
+
portrait: "portrait";
|
|
238
|
+
landscape: "landscape";
|
|
239
|
+
}>;
|
|
240
|
+
useDefaultSettings: z.ZodBoolean;
|
|
241
|
+
dpi: z.ZodCoercedNumber<string>;
|
|
242
|
+
mode: z.ZodLiteral<"basic">;
|
|
243
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
244
|
+
width: z.ZodCoercedNumber<string>;
|
|
245
|
+
height: z.ZodCoercedNumber<string>;
|
|
246
|
+
unit: z.ZodEnum<{
|
|
247
|
+
in: "in";
|
|
248
|
+
ft: "ft";
|
|
249
|
+
m: "m";
|
|
250
|
+
px: "px";
|
|
251
|
+
yd: "yd";
|
|
252
|
+
cm: "cm";
|
|
253
|
+
mm: "mm";
|
|
254
|
+
pt: "pt";
|
|
255
|
+
pc: "pc";
|
|
256
|
+
}>;
|
|
257
|
+
useDefaultSettings: z.ZodBoolean;
|
|
258
|
+
dpi: z.ZodCoercedNumber<string>;
|
|
259
|
+
mode: z.ZodLiteral<"advance">;
|
|
260
|
+
}, z.core.$strip>], "mode">;
|
|
261
|
+
svg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
262
|
+
size: z.ZodEnum<{
|
|
263
|
+
Letter: "Letter";
|
|
264
|
+
Legal: "Legal";
|
|
265
|
+
Tabloid: "Tabloid";
|
|
266
|
+
Executive: "Executive";
|
|
267
|
+
Statement: "Statement";
|
|
268
|
+
Folio: "Folio";
|
|
269
|
+
A3: "A3";
|
|
270
|
+
A4: "A4";
|
|
271
|
+
A5: "A5";
|
|
272
|
+
B4: "B4";
|
|
273
|
+
B5: "B5";
|
|
274
|
+
}>;
|
|
275
|
+
layout: z.ZodEnum<{
|
|
276
|
+
portrait: "portrait";
|
|
277
|
+
landscape: "landscape";
|
|
278
|
+
}>;
|
|
279
|
+
useDefaultSettings: z.ZodBoolean;
|
|
280
|
+
dpi: z.ZodCoercedNumber<string>;
|
|
281
|
+
mode: z.ZodLiteral<"basic">;
|
|
282
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
283
|
+
width: z.ZodCoercedNumber<string>;
|
|
284
|
+
height: z.ZodCoercedNumber<string>;
|
|
285
|
+
unit: z.ZodEnum<{
|
|
286
|
+
in: "in";
|
|
287
|
+
ft: "ft";
|
|
288
|
+
m: "m";
|
|
289
|
+
px: "px";
|
|
290
|
+
yd: "yd";
|
|
291
|
+
cm: "cm";
|
|
292
|
+
mm: "mm";
|
|
293
|
+
pt: "pt";
|
|
294
|
+
pc: "pc";
|
|
295
|
+
}>;
|
|
296
|
+
useDefaultSettings: z.ZodBoolean;
|
|
297
|
+
dpi: z.ZodCoercedNumber<string>;
|
|
298
|
+
mode: z.ZodLiteral<"advance">;
|
|
299
|
+
}, z.core.$strip>], "mode">;
|
|
300
|
+
clipboard: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
301
|
+
size: z.ZodEnum<{
|
|
302
|
+
Letter: "Letter";
|
|
303
|
+
Legal: "Legal";
|
|
304
|
+
Tabloid: "Tabloid";
|
|
305
|
+
Executive: "Executive";
|
|
306
|
+
Statement: "Statement";
|
|
307
|
+
Folio: "Folio";
|
|
308
|
+
A3: "A3";
|
|
309
|
+
A4: "A4";
|
|
310
|
+
A5: "A5";
|
|
311
|
+
B4: "B4";
|
|
312
|
+
B5: "B5";
|
|
313
|
+
}>;
|
|
314
|
+
layout: z.ZodEnum<{
|
|
315
|
+
portrait: "portrait";
|
|
316
|
+
landscape: "landscape";
|
|
317
|
+
}>;
|
|
318
|
+
useDefaultSettings: z.ZodBoolean;
|
|
319
|
+
dpi: z.ZodCoercedNumber<string>;
|
|
320
|
+
mode: z.ZodLiteral<"basic">;
|
|
321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
322
|
+
width: z.ZodCoercedNumber<string>;
|
|
323
|
+
height: z.ZodCoercedNumber<string>;
|
|
324
|
+
unit: z.ZodEnum<{
|
|
325
|
+
in: "in";
|
|
326
|
+
ft: "ft";
|
|
327
|
+
m: "m";
|
|
328
|
+
px: "px";
|
|
329
|
+
yd: "yd";
|
|
330
|
+
cm: "cm";
|
|
331
|
+
mm: "mm";
|
|
332
|
+
pt: "pt";
|
|
333
|
+
pc: "pc";
|
|
334
|
+
}>;
|
|
335
|
+
useDefaultSettings: z.ZodBoolean;
|
|
336
|
+
dpi: z.ZodCoercedNumber<string>;
|
|
337
|
+
mode: z.ZodLiteral<"advance">;
|
|
338
|
+
}, z.core.$strip>], "mode">;
|
|
339
|
+
}, z.core.$strip>;
|
|
340
|
+
}, z.core.$strip>;
|
|
341
|
+
export declare const defaultGeneralSettingsFormValues: z.input<typeof workspaceValidation>;
|
|
342
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../../src/component/modal/setting/tanstack_general_settings/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0BxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO9B,CAAC;AAGH,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,KAAK,CACpD,OAAO,mBAAmB,CA4B3B,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { workspaceDefaultProperties } from '../../../workspaces/workspaceDefaultProperties.js';
|
|
3
|
+
import { exportPreferencesValidation } from './validation/export_tab_validation.js';
|
|
4
|
+
import { displayGeneralValidation, generalValidation, peaksLabelValidation, } from './validation/general_tab_validation.js';
|
|
5
|
+
import { nmrLoadersValidation } from './validation/import_filters_tab_validation.js';
|
|
6
|
+
import { nucleiValidation } from './validation/nuclei_tab_validation.js';
|
|
7
|
+
import { displayPanelsValidation } from './validation/panels_tab_validation.js';
|
|
8
|
+
/**
|
|
9
|
+
* The type for the workspace preferences is `WorkspaceWithSource`
|
|
10
|
+
* The form save / apply actions merge current workspace values with form values.
|
|
11
|
+
*
|
|
12
|
+
* @see {import('../../reducer/preferences/preferencesReducer.ts').WorkspaceWithSource}
|
|
13
|
+
*/
|
|
14
|
+
const displayValidation = z.object({
|
|
15
|
+
general: displayGeneralValidation,
|
|
16
|
+
panels: displayPanelsValidation,
|
|
17
|
+
});
|
|
18
|
+
export const workspaceValidation = z.object({
|
|
19
|
+
nuclei: nucleiValidation,
|
|
20
|
+
peaksLabel: peaksLabelValidation,
|
|
21
|
+
general: generalValidation,
|
|
22
|
+
display: displayValidation,
|
|
23
|
+
nmrLoaders: nmrLoadersValidation,
|
|
24
|
+
export: exportPreferencesValidation,
|
|
25
|
+
});
|
|
26
|
+
// This object is used to define type not real values. Do not use it as values
|
|
27
|
+
export const defaultGeneralSettingsFormValues = {
|
|
28
|
+
nuclei: nucleiValidation.encode(workspaceDefaultProperties.nuclei),
|
|
29
|
+
peaksLabel: {
|
|
30
|
+
marginTop: 0,
|
|
31
|
+
},
|
|
32
|
+
general: {
|
|
33
|
+
dimmedSpectraOpacity: 0,
|
|
34
|
+
invert: false,
|
|
35
|
+
invertScroll: false,
|
|
36
|
+
spectraRendering: 'auto',
|
|
37
|
+
loggingLevel: 'info',
|
|
38
|
+
popupLoggingLevel: 'info',
|
|
39
|
+
},
|
|
40
|
+
display: {
|
|
41
|
+
general: {
|
|
42
|
+
experimentalFeatures: {
|
|
43
|
+
display: false,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
panels: displayPanelsValidation.encode(workspaceDefaultProperties.display.panels),
|
|
47
|
+
},
|
|
48
|
+
nmrLoaders: nmrLoadersValidation.encode(workspaceDefaultProperties.nmrLoaders),
|
|
49
|
+
export: exportPreferencesValidation.encode(workspaceDefaultProperties.export),
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../../../src/component/modal/setting/tanstack_general_settings/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,0BAA0B,EAAE,MAAM,mDAAmD,CAAC;AAE/F,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF;;;;;GAKG;AAEH,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,OAAO,EAAE,wBAAwB;IACjC,MAAM,EAAE,uBAAuB;CAChC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,gBAAgB;IACxB,UAAU,EAAE,oBAAoB;IAChC,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,iBAAiB;IAC1B,UAAU,EAAE,oBAAoB;IAChC,MAAM,EAAE,2BAA2B;CACpC,CAAC,CAAC;AAEH,8EAA8E;AAC9E,MAAM,CAAC,MAAM,gCAAgC,GAEzC;IACF,MAAM,EAAE,gBAAgB,CAAC,MAAM,CAAC,0BAA0B,CAAC,MAAM,CAAC;IAClE,UAAU,EAAE;QACV,SAAS,EAAE,CAAC;KACb;IACD,OAAO,EAAE;QACP,oBAAoB,EAAE,CAAC;QACvB,MAAM,EAAE,KAAK;QACb,YAAY,EAAE,KAAK;QACnB,gBAAgB,EAAE,MAAM;QACxB,YAAY,EAAE,MAAM;QACpB,iBAAiB,EAAE,MAAM;KAC1B;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,oBAAoB,EAAE;gBACpB,OAAO,EAAE,KAAK;aACf;SACF;QACD,MAAM,EAAE,uBAAuB,CAAC,MAAM,CACpC,0BAA0B,CAAC,OAAO,CAAC,MAAM,CAC1C;KACF;IACD,UAAU,EAAE,oBAAoB,CAAC,MAAM,CACrC,0BAA0B,CAAC,UAAU,CACtC;IACD,MAAM,EAAE,2BAA2B,CAAC,MAAM,CAAC,0BAA0B,CAAC,MAAM,CAAC;CAC9E,CAAC"}
|
|
@@ -3,13 +3,13 @@ import styled from '@emotion/styled';
|
|
|
3
3
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
4
4
|
import { useForm } from 'react-hook-form';
|
|
5
5
|
import * as Yup from 'yup';
|
|
6
|
-
import { usePreferences } from
|
|
6
|
+
import { usePreferences } from '../../context/PreferencesContext.js';
|
|
7
7
|
import { CheckController } from '../../elements/CheckController.js';
|
|
8
8
|
import { GroupPane } from '../../elements/GroupPane.js';
|
|
9
9
|
import Label from '../../elements/Label.js';
|
|
10
10
|
import { NumberInput2Controller } from '../../elements/NumberInput2Controller.js';
|
|
11
11
|
import { Select2Controller } from '../../elements/Select2Controller.js';
|
|
12
|
-
import PreferencesHeader from
|
|
12
|
+
import PreferencesHeader from '../header/PreferencesHeader.js';
|
|
13
13
|
const atomAnnotations = [
|
|
14
14
|
{ value: 'none', label: 'None' },
|
|
15
15
|
{ value: 'atom-numbers', label: 'Atoms number' },
|