nmrium 0.23.0 → 0.24.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/README.md +4 -0
- package/lib/component/1d/Chart1D.js +1 -1
- package/lib/component/1d/ExclusionZoneAnnotation.js +1 -1
- package/lib/component/1d/ExclusionZonesAnnotations.js +2 -2
- package/lib/component/1d/FooterBanner.js +7 -8
- package/lib/component/1d/Integral.js +2 -2
- package/lib/component/1d/IntegralResizable.js +1 -1
- package/lib/component/1d/IntegralsSeries.js +2 -2
- package/lib/component/1d/LinesSeries.js +1 -1
- package/lib/component/1d/PeakAnnotation.js +3 -3
- package/lib/component/1d/PeakAnnotations.js +1 -1
- package/lib/component/1d/Resizable.js +2 -2
- package/lib/component/1d/ResurrectedDatabaseRanges.js +1 -1
- package/lib/component/1d/SpectraTracker.js +3 -3
- package/lib/component/1d/Viewer1D.js +5 -5
- package/lib/component/1d/XAxis.js +1 -1
- package/lib/component/1d/YAxis.js +1 -1
- package/lib/component/1d/jCouplingGraph/JGraph.js +3 -4
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js +1 -1
- package/lib/component/1d/jCouplingGraph/JsCoupling.js +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.js +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplings.js +2 -2
- package/lib/component/1d/multiAnalysis/AnalysisRange.js +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +2 -2
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +3 -3
- package/lib/component/1d/multiplicityTree/TempMultiplicityTree.js +1 -1
- package/lib/component/1d/multiplicityTree/TreeNodes.js +2 -2
- package/lib/component/1d/ranges/Range.js +2 -2
- package/lib/component/1d/ranges/RangeIntegral.js +1 -1
- package/lib/component/1d/ranges/Ranges.js +2 -2
- package/lib/component/1d/tool/BaseLineZones.js +1 -1
- package/lib/component/1d/tool/PeakPointer.js +1 -1
- package/lib/component/1d/tool/VerticalIndicator.js +1 -1
- package/lib/component/1d/tool/XLabelPointer.js +1 -1
- package/lib/component/2d/Chart2D.js +2 -2
- package/lib/component/2d/Contours.js +6 -6
- package/lib/component/2d/FooterBanner.js +3 -3
- package/lib/component/2d/Left1DChart.js +1 -1
- package/lib/component/2d/SignalDeltaLine.js +1 -1
- package/lib/component/2d/Top1DChart.js +1 -1
- package/lib/component/2d/Viewer2D.js +3 -3
- package/lib/component/2d/XAxis.js +1 -1
- package/lib/component/2d/YAxis.js +1 -1
- package/lib/component/2d/tools/XYLabelPointer.js +1 -1
- package/lib/component/2d/tools/slicing/HorizontalSliceChart.js +1 -1
- package/lib/component/2d/tools/slicing/SlicingView.js +1 -1
- package/lib/component/2d/tools/slicing/VerticalSliceChart.js +1 -1
- package/lib/component/2d/zones/IndicationLines.js +1 -1
- package/lib/component/2d/zones/Signal.js +2 -2
- package/lib/component/2d/zones/SignalCrosshair.js +1 -1
- package/lib/component/2d/zones/Zone.js +1 -1
- package/lib/component/2d/zones/Zones.js +2 -2
- package/lib/component/ErrorOverlay.js +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js +1 -1
- package/lib/component/NMRium.d.ts +34 -33
- package/lib/component/NMRium.js +10 -10
- package/lib/component/assignment/index.js +1 -1
- package/lib/component/context/PreferencesContext.d.ts +84 -2
- package/lib/component/context/PreferencesContext.js +30 -5
- package/lib/component/elements/Button.js +1 -1
- package/lib/component/elements/ButtonToolTip.js +1 -1
- package/lib/component/elements/CheckBox.js +1 -1
- package/lib/component/elements/CloseButton.js +1 -1
- package/lib/component/elements/ColorInput.js +1 -1
- package/lib/component/elements/ContextMenu.js +1 -1
- package/lib/component/elements/DeleteButton.js +1 -1
- package/lib/component/elements/EditableColumn.js +1 -1
- package/lib/component/elements/Input.js +1 -1
- package/lib/component/elements/InputRange.js +1 -1
- package/lib/component/elements/IsotopesViewer.js +1 -1
- package/lib/component/elements/Label.js +1 -1
- package/lib/component/elements/Logo.js +1 -1
- package/lib/component/elements/MenuButton.js +3 -3
- package/lib/component/elements/MolecularFormulaInput.js +1 -1
- package/lib/component/elements/MoleculeSelection.js +1 -1
- package/lib/component/elements/NextPrev.js +2 -2
- package/lib/component/elements/NumberInput.js +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js +1 -1
- package/lib/component/elements/ReactTable/ReactTable.js +3 -3
- package/lib/component/elements/ReactTable/ReactTableExpandable.js +3 -3
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js +2 -2
- package/lib/component/elements/SaveButton.js +1 -1
- package/lib/component/elements/Select.js +1 -1
- package/lib/component/elements/Tab/DeleteButton.js +1 -1
- package/lib/component/elements/Tab/Tab.js +3 -3
- package/lib/component/elements/Tab/Tabs.js +2 -2
- package/lib/component/elements/Table/Table.js +1 -1
- package/lib/component/elements/Table/TableBody.js +1 -1
- package/lib/component/elements/Table/TableCell.js +1 -1
- package/lib/component/elements/Table/TableHead.js +1 -1
- package/lib/component/elements/Table/TableRow.js +1 -1
- package/lib/component/elements/ToggleButton.js +1 -1
- package/lib/component/elements/ToolTip/ToolTip.js +2 -2
- package/lib/component/elements/ToolbarMenu.js +3 -3
- package/lib/component/elements/accordion/Accordion.js +1 -1
- package/lib/component/elements/accordion/AccordionItem.js +2 -2
- package/lib/component/elements/dropDownButton/DropDownButton.d.ts +20 -1
- package/lib/component/elements/dropDownButton/DropDownButton.js +32 -34
- package/lib/component/elements/dropDownButton/DropDownList.d.ts +2 -9
- package/lib/component/elements/dropDownButton/DropDownList.js +39 -25
- package/lib/component/elements/formik/ErrorMessage.js +2 -2
- package/lib/component/elements/formik/FormikCheckBox.d.ts +1 -0
- package/lib/component/elements/formik/FormikCheckBox.js +2 -2
- package/lib/component/elements/formik/FormikColorInput.js +1 -1
- package/lib/component/elements/formik/FormikColorPicker.js +1 -1
- package/lib/component/elements/formik/FormikColumnFormatField.js +2 -2
- package/lib/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib/component/elements/formik/FormikForm.js +1 -1
- package/lib/component/elements/formik/FormikInput.js +1 -1
- package/lib/component/elements/formik/FormikNumberInput.js +1 -1
- package/lib/component/elements/formik/FormikSelect.js +1 -1
- package/lib/component/elements/formik/FormikSlider.js +1 -1
- package/lib/component/elements/formik/FormikTextarea.js +1 -1
- package/lib/component/elements/formik/Input.js +1 -1
- package/lib/component/elements/formik/SelectBox.js +1 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js +3 -3
- package/lib/component/elements/popup/Alert/ProgressIndicator.js +1 -1
- package/lib/component/elements/popup/Alert/Provider.js +3 -3
- package/lib/component/elements/popup/Modal/ConfirmDialog.js +1 -1
- package/lib/component/elements/popup/Modal/Modal.js +1 -1
- package/lib/component/elements/popup/Modal/ModalContent.js +1 -1
- package/lib/component/elements/popup/Modal/Provider.js +3 -3
- package/lib/component/elements/popup/Transition.js +1 -1
- package/lib/component/elements/popup/Wrapper.js +1 -1
- package/lib/component/elements/toggle/ToggleButton.js +1 -1
- package/lib/component/elements/toggle/ToggleButtonGroup.js +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.js +3 -3
- package/lib/component/header/BaseLineCorrectionPanel.js +1 -1
- package/lib/component/header/Header.js +28 -14
- package/lib/component/header/ManualPhaseCorrectionPanel.js +2 -2
- package/lib/component/header/RangesPickingOptionPanel.js +2 -2
- package/lib/component/header/ZeroFillingOptionsPanel.js +1 -1
- package/lib/component/header/Zones2DOptionPanel.js +1 -1
- package/lib/component/highlight/index.js +1 -1
- package/lib/component/hooks/useActiveSpectrumStyleOptions.js +1 -1
- package/lib/component/hooks/useCheckExperimentalFeature.js +5 -4
- package/lib/component/hooks/useCheckToolsVisibility.js +1 -1
- package/lib/component/hooks/useExport.js +15 -13
- package/lib/component/hooks/useTableSortBy.d.ts +2 -1
- package/lib/component/hooks/useTableSortBy.js +27 -16
- package/lib/component/loader/DefaultSpinnerComponent.js +1 -1
- package/lib/component/loader/DropZone.js +2 -2
- package/lib/component/loader/NoData.js +1 -3
- package/lib/component/loader/Spinner.js +1 -1
- package/lib/component/loader/SpinnerContext.js +1 -1
- package/lib/component/modal/AboutUsModal.js +4 -4
- package/lib/component/modal/AlignSpectraModal.js +1 -1
- package/lib/component/modal/CopyClipboardModal.js +2 -2
- package/lib/component/modal/ExportAsMatrixModal.js +1 -1
- package/lib/component/modal/ImportPublicationStringModal.js +13 -11
- package/lib/component/modal/LoadJCAMPModal.js +1 -1
- package/lib/component/modal/ModalStyle.js +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.js +1 -1
- package/lib/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.js +1 -1
- package/lib/component/modal/MultipleSpectraFiltersModal/FromToFilter.js +1 -1
- package/lib/component/modal/MultipleSpectraFiltersModal/index.js +4 -4
- package/lib/component/modal/MultipletAnalysisModal.js +5 -5
- package/lib/component/modal/PredictSpectraModal.js +30 -23
- package/lib/component/modal/SaveAsModal.js +2 -2
- package/lib/component/modal/changeSum/ChangeSumModal.js +8 -7
- package/lib/component/modal/changeSum/SelectMolecule.js +1 -1
- package/lib/component/modal/editRange/EditRangeModal.d.ts +2 -1
- package/lib/component/modal/editRange/EditRangeModal.js +13 -9
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +33 -40
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +5 -5
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +3 -3
- package/lib/component/modal/editRange/forms/components/SignalFormTab.js +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsForm.js +5 -5
- package/lib/component/modal/editZone/EditPathLengthFormik.js +3 -3
- package/lib/component/modal/editZone/EditZoneModal.js +17 -15
- package/lib/component/modal/editZone/SignalFormTab.js +1 -1
- package/lib/component/modal/editZone/SignalsForm.js +2 -2
- package/lib/component/modal/setting/ControllersTabContent.js +1 -1
- package/lib/component/modal/setting/DisplayTabContent.d.ts +2 -2
- package/lib/component/modal/setting/DisplayTabContent.js +49 -15
- package/lib/component/modal/setting/FormattingTabContent.js +3 -3
- package/lib/component/modal/setting/GeneralSettings.js +61 -76
- package/lib/component/modal/setting/WorkspaceItem.d.ts +6 -0
- package/lib/component/modal/setting/WorkspaceItem.js +59 -0
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +2 -2
- package/lib/component/panels/InformationPanel.js +4 -4
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +4 -4
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +6 -6
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +5 -6
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +3 -3
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +5 -5
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +6 -6
- package/lib/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +1 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.js +2 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +16 -14
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +3 -3
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +5 -5
- package/lib/component/panels/Panels.js +46 -34
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +2 -2
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +4 -5
- package/lib/component/panels/PeaksPanel/PeaksTable.js +4 -4
- package/lib/component/panels/RangesPanel/RangesHeader.js +16 -14
- package/lib/component/panels/RangesPanel/RangesPanel.js +3 -4
- package/lib/component/panels/RangesPanel/RangesPreferences.js +4 -5
- package/lib/component/panels/RangesPanel/RangesTable.js +3 -3
- package/lib/component/panels/RangesPanel/RangesTableRow.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts +2 -6
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +6 -66
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +2 -2
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.d.ts +7 -0
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +74 -0
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts +7 -0
- package/lib/component/panels/RangesPanel/{useMapRanges.js → hooks/useMapRanges.js} +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +12 -10
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.js +4 -4
- package/lib/component/panels/SpectrumsPanel/SpectrumListPanel.js +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +13 -11
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.js +3 -3
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +3 -3
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.js +5 -5
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +5 -5
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +3 -3
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +4 -4
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +4 -4
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +3 -3
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +3 -3
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +2 -2
- package/lib/component/panels/SummaryPanel/Overview.js +2 -2
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +2 -2
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +4 -4
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +3 -3
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +4 -7
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js +4 -5
- package/lib/component/panels/ZonesPanel/ZonesTable.js +2 -2
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +3 -3
- package/lib/component/panels/databasePanel/DatabasePreferences.js +3 -4
- package/lib/component/panels/databasePanel/DatabaseTable.js +4 -4
- package/lib/component/panels/extra/placeholder/NoTableData.js +1 -1
- package/lib/component/panels/filtersPanel/FilterPanel.js +2 -2
- package/lib/component/panels/filtersPanel/FiltersTable.js +19 -15
- package/lib/component/panels/header/DefaultPanelHeader.js +2 -2
- package/lib/component/panels/header/PreferencesHeader.js +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptions.js +5 -3
- package/lib/component/panels/predictionPanel/PredictionPanel.js +19 -17
- package/lib/component/reducer/Reducer.d.ts +7 -0
- package/lib/component/reducer/Reducer.js +7 -3
- package/lib/component/reducer/actions/FiltersActions.js +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts +2 -2
- package/lib/component/reducer/actions/LoadActions.js +20 -15
- package/lib/component/reducer/actions/MoleculeActions.js +5 -1
- package/lib/component/reducer/preferencesReducer.d.ts +183 -36
- package/lib/component/reducer/preferencesReducer.js +192 -83
- package/lib/component/reducer/types/Types.d.ts +6 -0
- package/lib/component/tool/BrushX.js +1 -1
- package/lib/component/tool/BrushXY.js +1 -1
- package/lib/component/tool/CrossLinePointer.js +1 -1
- package/lib/component/toolbar/BasicToolBar.js +23 -27
- package/lib/component/toolbar/FunctionToolBar.js +17 -18
- package/lib/component/toolbar/HistoryToolBar.js +1 -1
- package/lib/component/toolbar/ToolBar.js +2 -2
- package/lib/component/utility/FormatNumber.js +1 -1
- package/lib/component/workspaces/Workspace.d.ts +17 -0
- package/lib/component/workspaces/basic.js +29 -34
- package/lib/component/workspaces/exercise.d.ts +2 -0
- package/lib/component/workspaces/exercise.js +49 -0
- package/lib/component/workspaces/index.d.ts +3 -2
- package/lib/component/workspaces/index.js +3 -2
- package/lib/component/workspaces/prediction.d.ts +2 -0
- package/lib/component/workspaces/prediction.js +26 -0
- package/lib/component/workspaces/process1D.js +21 -32
- package/lib/data/PredictionManager.d.ts +2 -1
- package/lib/data/PredictionManager.js +20 -13
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +4 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +2 -3
- package/lib/data/utilities/getAtom.js +1 -1
- package/lib/data/utilities/getColor.d.ts +1 -0
- package/lib/data/utilities/getColor.js +1 -1
- package/lib/types/PanelPreferencesType.d.ts +10 -0
- package/lib/types/PanelPreferencesType.js +1 -0
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/Chart1D.js +1 -1
- package/lib-cjs/component/1d/ExclusionZoneAnnotation.js +1 -1
- package/lib-cjs/component/1d/ExclusionZonesAnnotations.js +7 -3
- package/lib-cjs/component/1d/FooterBanner.js +7 -8
- package/lib-cjs/component/1d/Integral.js +2 -2
- package/lib-cjs/component/1d/IntegralResizable.js +1 -1
- package/lib-cjs/component/1d/IntegralsSeries.js +2 -2
- package/lib-cjs/component/1d/Line.js +5 -1
- package/lib-cjs/component/1d/LinesSeries.js +1 -1
- package/lib-cjs/component/1d/PeakAnnotation.js +3 -3
- package/lib-cjs/component/1d/PeakAnnotations.js +1 -1
- package/lib-cjs/component/1d/Resizable.js +2 -2
- package/lib-cjs/component/1d/ResurrectedDatabaseRanges.js +1 -1
- package/lib-cjs/component/1d/SpectraTracker.js +3 -3
- package/lib-cjs/component/1d/Viewer1D.js +10 -6
- package/lib-cjs/component/1d/XAxis.js +6 -2
- package/lib-cjs/component/1d/YAxis.js +6 -2
- package/lib-cjs/component/1d/jCouplingGraph/JGraph.js +3 -4
- package/lib-cjs/component/1d/jCouplingGraph/JGraphVerticalAxis.js +1 -1
- package/lib-cjs/component/1d/jCouplingGraph/JsCoupling.js +1 -1
- package/lib-cjs/component/1d/jCouplingGraph/JsCouplingLinks.js +1 -1
- package/lib-cjs/component/1d/jCouplingGraph/JsCouplings.js +2 -2
- package/lib-cjs/component/1d/multiAnalysis/AnalysisRange.js +1 -1
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +2 -2
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +3 -3
- package/lib-cjs/component/1d/multiplicityTree/TempMultiplicityTree.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/TreeNodes.js +2 -2
- package/lib-cjs/component/1d/ranges/Range.js +2 -2
- package/lib-cjs/component/1d/ranges/RangeIntegral.js +1 -1
- package/lib-cjs/component/1d/ranges/Ranges.js +2 -2
- package/lib-cjs/component/1d/tool/BaseLineZones.js +1 -1
- package/lib-cjs/component/1d/tool/PeakPointer.js +1 -1
- package/lib-cjs/component/1d/tool/VerticalIndicator.js +1 -1
- package/lib-cjs/component/1d/tool/XLabelPointer.js +1 -1
- package/lib-cjs/component/2d/Chart2D.js +2 -2
- package/lib-cjs/component/2d/Contours.js +6 -6
- package/lib-cjs/component/2d/FooterBanner.js +3 -3
- package/lib-cjs/component/2d/Left1DChart.js +6 -2
- package/lib-cjs/component/2d/SignalDeltaLine.js +1 -1
- package/lib-cjs/component/2d/Top1DChart.js +6 -2
- package/lib-cjs/component/2d/Viewer2D.js +8 -4
- package/lib-cjs/component/2d/XAxis.js +6 -2
- package/lib-cjs/component/2d/YAxis.js +6 -2
- package/lib-cjs/component/2d/tools/XYLabelPointer.js +1 -1
- package/lib-cjs/component/2d/tools/slicing/HorizontalSliceChart.js +6 -2
- package/lib-cjs/component/2d/tools/slicing/SlicingView.js +1 -1
- package/lib-cjs/component/2d/tools/slicing/VerticalSliceChart.js +6 -2
- package/lib-cjs/component/2d/zones/IndicationLines.js +1 -1
- package/lib-cjs/component/2d/zones/Signal.js +2 -2
- package/lib-cjs/component/2d/zones/SignalCrosshair.js +1 -1
- package/lib-cjs/component/2d/zones/Zone.js +1 -1
- package/lib-cjs/component/2d/zones/Zones.js +2 -2
- package/lib-cjs/component/ErrorOverlay.js +1 -1
- package/lib-cjs/component/EventsTrackers/BrushTracker.js +1 -1
- package/lib-cjs/component/EventsTrackers/MouseTracker.js +1 -1
- package/lib-cjs/component/NMRium.js +14 -10
- package/lib-cjs/component/assignment/index.js +1 -1
- package/lib-cjs/component/context/PreferencesContext.js +33 -4
- package/lib-cjs/component/elements/Button.js +1 -1
- package/lib-cjs/component/elements/ButtonToolTip.js +1 -1
- package/lib-cjs/component/elements/CheckBox.js +1 -1
- package/lib-cjs/component/elements/CloseButton.js +1 -1
- package/lib-cjs/component/elements/ColorInput.js +1 -1
- package/lib-cjs/component/elements/ContextMenu.js +1 -1
- package/lib-cjs/component/elements/DeleteButton.js +1 -1
- package/lib-cjs/component/elements/EditableColumn.js +1 -1
- package/lib-cjs/component/elements/Input.js +1 -1
- package/lib-cjs/component/elements/InputRange.js +1 -1
- package/lib-cjs/component/elements/IsotopesViewer.js +1 -1
- package/lib-cjs/component/elements/Label.js +1 -1
- package/lib-cjs/component/elements/Logo.js +1 -1
- package/lib-cjs/component/elements/MenuButton.js +3 -3
- package/lib-cjs/component/elements/MolecularFormulaInput.js +1 -1
- package/lib-cjs/component/elements/MoleculeSelection.js +1 -1
- package/lib-cjs/component/elements/NextPrev.js +2 -2
- package/lib-cjs/component/elements/NumberInput.js +1 -1
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableHeader.js +1 -1
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +8 -4
- package/lib-cjs/component/elements/ReactTable/ReactTableExpandable.js +3 -3
- package/lib-cjs/component/elements/ReactTable/ReactTableFlexLayout.js +2 -2
- package/lib-cjs/component/elements/SaveButton.js +1 -1
- package/lib-cjs/component/elements/Select.js +1 -1
- package/lib-cjs/component/elements/Tab/DeleteButton.js +1 -1
- package/lib-cjs/component/elements/Tab/Tab.js +3 -3
- package/lib-cjs/component/elements/Tab/Tabs.js +2 -2
- package/lib-cjs/component/elements/Table/Table.js +1 -1
- package/lib-cjs/component/elements/Table/TableBody.js +1 -1
- package/lib-cjs/component/elements/Table/TableCell.js +1 -1
- package/lib-cjs/component/elements/Table/TableHead.js +1 -1
- package/lib-cjs/component/elements/Table/TableRow.js +1 -1
- package/lib-cjs/component/elements/ToggleButton.js +1 -1
- package/lib-cjs/component/elements/ToolTip/ToolTip.js +2 -2
- package/lib-cjs/component/elements/ToolbarMenu.js +3 -3
- package/lib-cjs/component/elements/accordion/Accordion.js +1 -1
- package/lib-cjs/component/elements/accordion/AccordionItem.js +2 -2
- package/lib-cjs/component/elements/dropDownButton/DropDownButton.js +32 -34
- package/lib-cjs/component/elements/dropDownButton/DropDownList.js +39 -25
- package/lib-cjs/component/elements/formik/ErrorMessage.js +2 -2
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +2 -2
- package/lib-cjs/component/elements/formik/FormikColorInput.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColorPicker.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColumnFormatField.js +2 -2
- package/lib-cjs/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib-cjs/component/elements/formik/FormikForm.js +1 -1
- package/lib-cjs/component/elements/formik/FormikInput.js +1 -1
- package/lib-cjs/component/elements/formik/FormikNumberInput.js +1 -1
- package/lib-cjs/component/elements/formik/FormikSelect.js +1 -1
- package/lib-cjs/component/elements/formik/FormikSlider.js +1 -1
- package/lib-cjs/component/elements/formik/FormikTextarea.js +1 -1
- package/lib-cjs/component/elements/formik/Input.js +1 -1
- package/lib-cjs/component/elements/formik/SelectBox.js +1 -1
- package/lib-cjs/component/elements/linearAxis/LinearVerticalAxis.js +3 -3
- package/lib-cjs/component/elements/popup/Alert/ProgressIndicator.js +1 -1
- package/lib-cjs/component/elements/popup/Alert/Provider.js +3 -3
- package/lib-cjs/component/elements/popup/Modal/ConfirmDialog.js +1 -1
- package/lib-cjs/component/elements/popup/Modal/Modal.js +1 -1
- package/lib-cjs/component/elements/popup/Modal/ModalContent.js +1 -1
- package/lib-cjs/component/elements/popup/Modal/Provider.js +3 -3
- package/lib-cjs/component/elements/popup/Transition.js +1 -1
- package/lib-cjs/component/elements/popup/Wrapper.js +1 -1
- package/lib-cjs/component/elements/toggle/ToggleButton.js +1 -1
- package/lib-cjs/component/elements/toggle/ToggleButtonGroup.js +1 -1
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +3 -3
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +6 -2
- package/lib-cjs/component/header/Header.js +27 -13
- package/lib-cjs/component/header/ManualPhaseCorrectionPanel.js +7 -3
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +2 -2
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +1 -1
- package/lib-cjs/component/header/Zones2DOptionPanel.js +1 -1
- package/lib-cjs/component/highlight/index.js +1 -1
- package/lib-cjs/component/hooks/useActiveSpectrumStyleOptions.js +1 -1
- package/lib-cjs/component/hooks/useCheckExperimentalFeature.js +5 -4
- package/lib-cjs/component/hooks/useCheckToolsVisibility.js +1 -1
- package/lib-cjs/component/hooks/useExport.js +15 -13
- package/lib-cjs/component/hooks/useTableSortBy.js +27 -16
- package/lib-cjs/component/loader/DefaultSpinnerComponent.js +1 -1
- package/lib-cjs/component/loader/DropZone.js +2 -2
- package/lib-cjs/component/loader/NoData.js +1 -3
- package/lib-cjs/component/loader/Spinner.js +1 -1
- package/lib-cjs/component/loader/SpinnerContext.js +1 -1
- package/lib-cjs/component/modal/AboutUsModal.js +4 -4
- package/lib-cjs/component/modal/AlignSpectraModal.js +1 -1
- package/lib-cjs/component/modal/CopyClipboardModal.js +2 -2
- package/lib-cjs/component/modal/ExportAsMatrixModal.js +1 -1
- package/lib-cjs/component/modal/ImportPublicationStringModal.js +18 -12
- package/lib-cjs/component/modal/LoadJCAMPModal.js +1 -1
- package/lib-cjs/component/modal/ModalStyle.js +1 -1
- package/lib-cjs/component/modal/MoleculeStructureEditorModal.js +1 -1
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.js +1 -1
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/FromToFilter.js +1 -1
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/index.js +9 -5
- package/lib-cjs/component/modal/MultipletAnalysisModal.js +5 -5
- package/lib-cjs/component/modal/PredictSpectraModal.js +35 -24
- package/lib-cjs/component/modal/SaveAsModal.js +2 -2
- package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +13 -8
- package/lib-cjs/component/modal/changeSum/SelectMolecule.js +1 -1
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +13 -9
- package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +38 -41
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +5 -5
- package/lib-cjs/component/modal/editRange/forms/components/DeltaInput.js +3 -3
- package/lib-cjs/component/modal/editRange/forms/components/SignalFormTab.js +1 -1
- package/lib-cjs/component/modal/editRange/forms/components/SignalsForm.js +5 -5
- package/lib-cjs/component/modal/editRange/forms/validation/EditRangeValidation.js +5 -1
- package/lib-cjs/component/modal/editZone/EditPathLengthFormik.js +3 -3
- package/lib-cjs/component/modal/editZone/EditZoneModal.js +17 -15
- package/lib-cjs/component/modal/editZone/SignalFormTab.js +1 -1
- package/lib-cjs/component/modal/editZone/SignalsForm.js +2 -2
- package/lib-cjs/component/modal/editZone/validation/EditZoneValidation.js +5 -1
- package/lib-cjs/component/modal/setting/ControllersTabContent.js +1 -1
- package/lib-cjs/component/modal/setting/DisplayTabContent.js +48 -14
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +3 -3
- package/lib-cjs/component/modal/setting/GeneralSettings.js +64 -75
- package/lib-cjs/component/modal/setting/WorkspaceItem.js +64 -0
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignment.js +1 -1
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +2 -2
- package/lib-cjs/component/panels/InformationPanel.js +4 -4
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +4 -4
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +6 -6
- package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +5 -6
- package/lib-cjs/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +3 -3
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +5 -5
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +6 -6
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +1 -1
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.js +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +16 -14
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +8 -4
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +5 -5
- package/lib-cjs/component/panels/Panels.js +46 -34
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +2 -2
- package/lib-cjs/component/panels/PeaksPanel/PeaksPreferences.js +4 -5
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +9 -5
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +16 -14
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +3 -4
- package/lib-cjs/component/panels/RangesPanel/RangesPreferences.js +4 -5
- package/lib-cjs/component/panels/RangesPanel/RangesTable.js +3 -3
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/ActionsColumn.js +5 -65
- package/lib-cjs/component/panels/RangesPanel/TableColumns/CouplingColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RelativeColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/hooks/useEditRangeModal.js +80 -0
- package/lib-cjs/component/panels/RangesPanel/{useMapRanges.js → hooks/useMapRanges.js} +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPanelHeader.js +12 -10
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListItem.js +4 -4
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListPanel.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +13 -11
- package/lib-cjs/component/panels/SpectrumsPanel/base/ColorIndicator.js +3 -3
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +3 -3
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.js +5 -5
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +5 -5
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +3 -3
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +4 -4
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +4 -4
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +8 -4
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +3 -3
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/Overview.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/SetMolecularFormulaModal.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/SetShiftTolerancesModal.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +4 -4
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +3 -3
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +4 -7
- package/lib-cjs/component/panels/ZonesPanel/ZonesPreferences.js +4 -5
- package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/ZonesTableRow.js +1 -1
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +3 -3
- package/lib-cjs/component/panels/databasePanel/DatabasePreferences.js +3 -4
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +4 -4
- package/lib-cjs/component/panels/extra/placeholder/NoTableData.js +1 -1
- package/lib-cjs/component/panels/filtersPanel/FilterPanel.js +2 -2
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +19 -15
- package/lib-cjs/component/panels/header/DefaultPanelHeader.js +2 -2
- package/lib-cjs/component/panels/header/PreferencesHeader.js +1 -1
- package/lib-cjs/component/panels/predictionPanel/PredictionOptions.js +10 -4
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +19 -17
- package/lib-cjs/component/reducer/IgnoreActions.js +5 -1
- package/lib-cjs/component/reducer/Reducer.js +14 -5
- package/lib-cjs/component/reducer/actions/FiltersActions.js +6 -2
- package/lib-cjs/component/reducer/actions/LoadActions.js +25 -16
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +10 -2
- package/lib-cjs/component/reducer/actions/RangesActions.js +5 -1
- package/lib-cjs/component/reducer/actions/SpectraAnalysisAction.js +5 -1
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +5 -1
- package/lib-cjs/component/reducer/actions/ToolsActions.js +5 -1
- package/lib-cjs/component/reducer/actions/ZonesActions.js +5 -1
- package/lib-cjs/component/reducer/preferencesReducer.js +191 -81
- package/lib-cjs/component/tool/BrushX.js +1 -1
- package/lib-cjs/component/tool/BrushXY.js +1 -1
- package/lib-cjs/component/tool/CrossLinePointer.js +1 -1
- package/lib-cjs/component/toolbar/BasicToolBar.js +23 -27
- package/lib-cjs/component/toolbar/FunctionToolBar.js +22 -19
- package/lib-cjs/component/toolbar/HistoryToolBar.js +1 -1
- package/lib-cjs/component/toolbar/ToolBar.js +2 -2
- package/lib-cjs/component/toolbar/ToolTypes.js +5 -1
- package/lib-cjs/component/utility/FormatNumber.js +1 -1
- package/lib-cjs/component/workspaces/basic.js +29 -34
- package/lib-cjs/component/workspaces/exercise.js +52 -0
- package/lib-cjs/component/workspaces/index.js +3 -2
- package/lib-cjs/component/workspaces/prediction.js +29 -0
- package/lib-cjs/component/workspaces/process1D.js +21 -32
- package/lib-cjs/data/Filters.js +5 -1
- package/lib-cjs/data/FiltersManager.js +5 -1
- package/lib-cjs/data/PredictionManager.js +19 -12
- package/lib-cjs/data/SpectraManager.js +5 -1
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +9 -2
- package/lib-cjs/data/data1d/Spectrum1D/shift/getShiftX.js +5 -1
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +7 -4
- package/lib-cjs/data/data2d/Spectrum2D/shift/getShift.js +5 -1
- package/lib-cjs/data/utilities/getAtom.js +1 -1
- package/lib-cjs/data/utilities/getColor.js +2 -1
- package/lib-cjs/types/PanelPreferencesType.js +2 -0
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +21 -21
- package/lib/component/panels/RangesPanel/useMapRanges.d.ts +0 -6
- package/lib/component/workspaces/exercise1D.d.ts +0 -2
- package/lib/component/workspaces/exercise1D.js +0 -46
- package/lib-cjs/component/workspaces/exercise1D.js +0 -49
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -30,27 +34,15 @@ const PreferencesContext_1 = require("../../context/PreferencesContext");
|
|
|
30
34
|
const CloseButton_1 = __importDefault(require("../../elements/CloseButton"));
|
|
31
35
|
const Tab_1 = __importDefault(require("../../elements/Tab/Tab"));
|
|
32
36
|
const Tabs_1 = __importStar(require("../../elements/Tab/Tabs"));
|
|
37
|
+
const DropDownButton_1 = __importDefault(require("../../elements/dropDownButton/DropDownButton"));
|
|
33
38
|
const FormikForm_1 = __importDefault(require("../../elements/formik/FormikForm"));
|
|
34
39
|
const Alert_1 = require("../../elements/popup/Alert");
|
|
35
|
-
const
|
|
40
|
+
const ModalStyle_1 = require("../ModalStyle");
|
|
36
41
|
const ControllersTabContent_1 = __importDefault(require("./ControllersTabContent"));
|
|
37
42
|
const DisplayTabContent_1 = __importDefault(require("./DisplayTabContent"));
|
|
38
43
|
const FormattingTabContent_1 = __importDefault(require("./FormattingTabContent"));
|
|
44
|
+
const WorkspaceItem_1 = __importDefault(require("./WorkspaceItem"));
|
|
39
45
|
const styles = (0, react_1.css) `
|
|
40
|
-
overflow: auto;
|
|
41
|
-
height: 100%;
|
|
42
|
-
display: flex;
|
|
43
|
-
flex-direction: column;
|
|
44
|
-
|
|
45
|
-
.header {
|
|
46
|
-
text-align: center;
|
|
47
|
-
padding: 10px 0 10px 0px;
|
|
48
|
-
margin: 0px;
|
|
49
|
-
color: #005d9e;
|
|
50
|
-
place-items: normal;
|
|
51
|
-
text-transform: none;
|
|
52
|
-
background-color: #fcfcfc;
|
|
53
|
-
}
|
|
54
46
|
.main-content {
|
|
55
47
|
width: 100%;
|
|
56
48
|
flex: 1;
|
|
@@ -62,57 +54,6 @@ const styles = (0, react_1.css) `
|
|
|
62
54
|
width: 100%;
|
|
63
55
|
}
|
|
64
56
|
|
|
65
|
-
.inner-content {
|
|
66
|
-
padding: 15px 30px;
|
|
67
|
-
width: 100%;
|
|
68
|
-
overflow: auto;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
button:focus {
|
|
72
|
-
outline: none;
|
|
73
|
-
}
|
|
74
|
-
button:hover {
|
|
75
|
-
color: #007bff;
|
|
76
|
-
}
|
|
77
|
-
.btn:hover {
|
|
78
|
-
background-color: #ffffff;
|
|
79
|
-
}
|
|
80
|
-
.btn {
|
|
81
|
-
border: none;
|
|
82
|
-
padding: 0 15px;
|
|
83
|
-
background-color: #ffffff5e;
|
|
84
|
-
border-radius: 5px;
|
|
85
|
-
height: 25px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.footer-container {
|
|
89
|
-
display: flex;
|
|
90
|
-
align-items: flex-end;
|
|
91
|
-
justify-content: flex-end;
|
|
92
|
-
background: rgb(242, 242, 242);
|
|
93
|
-
background: -moz-linear-gradient(
|
|
94
|
-
0deg,
|
|
95
|
-
rgba(242, 242, 242, 1) 0%,
|
|
96
|
-
rgba(245, 245, 245, 1) 37%,
|
|
97
|
-
rgba(255, 255, 255, 1) 90%
|
|
98
|
-
);
|
|
99
|
-
background: -webkit-linear-gradient(
|
|
100
|
-
0deg,
|
|
101
|
-
rgba(242, 242, 242, 1) 0%,
|
|
102
|
-
rgba(245, 245, 245, 1) 37%,
|
|
103
|
-
rgba(255, 255, 255, 1) 90%
|
|
104
|
-
);
|
|
105
|
-
background: linear-gradient(
|
|
106
|
-
0deg,
|
|
107
|
-
rgba(242, 242, 242, 1) 0%,
|
|
108
|
-
rgba(245, 245, 245, 1) 37%,
|
|
109
|
-
rgba(255, 255, 255, 1) 90%
|
|
110
|
-
);
|
|
111
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#f2f2f2",endColorstr="#ffffff",GradientType=1);
|
|
112
|
-
padding: 6px 15px;
|
|
113
|
-
height: 55px;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
57
|
.section-header {
|
|
117
58
|
font-size: 13px;
|
|
118
59
|
color: #2ca8ff;
|
|
@@ -159,31 +100,79 @@ const styles = (0, react_1.css) `
|
|
|
159
100
|
width: 260px;
|
|
160
101
|
}
|
|
161
102
|
}
|
|
162
|
-
|
|
163
|
-
|
|
103
|
+
|
|
104
|
+
.workspace-container {
|
|
105
|
+
display: flex;
|
|
106
|
+
background-color: #f4f4f4;
|
|
107
|
+
align-items: center;
|
|
108
|
+
cursor: default;
|
|
109
|
+
padding: 0.5em;
|
|
110
|
+
.dropdown {
|
|
111
|
+
padding: 0.4em 1em;
|
|
112
|
+
}
|
|
113
|
+
& .label {
|
|
114
|
+
font-size: 0.8em;
|
|
115
|
+
}
|
|
164
116
|
}
|
|
165
117
|
`;
|
|
166
118
|
function GeneralSettings({ onClose }) {
|
|
167
119
|
const [activeTab, setActiveTab] = (0, react_2.useState)('controllers');
|
|
168
|
-
const preferences = (0, PreferencesContext_1.usePreferences)();
|
|
120
|
+
const { dispatch, ...preferences } = (0, PreferencesContext_1.usePreferences)();
|
|
169
121
|
const alert = (0, Alert_1.useAlert)();
|
|
170
122
|
const refForm = (0, react_2.useRef)();
|
|
123
|
+
const workspaces = (0, PreferencesContext_1.useWorkspacesList)();
|
|
124
|
+
const workspacesList = (0, react_2.useMemo)(() => {
|
|
125
|
+
return workspaces.concat([
|
|
126
|
+
{
|
|
127
|
+
key: 'new',
|
|
128
|
+
label: 'Custom workspace',
|
|
129
|
+
},
|
|
130
|
+
]);
|
|
131
|
+
}, [workspaces]);
|
|
171
132
|
const handleSave = (0, react_2.useCallback)(() => {
|
|
172
133
|
refForm.current.submitForm();
|
|
173
134
|
}, []);
|
|
174
135
|
const handleReset = (0, react_2.useCallback)(() => {
|
|
175
|
-
|
|
136
|
+
dispatch({ type: 'RESET_PREFERENCES' });
|
|
176
137
|
alert.success('Settings saved successfully');
|
|
177
138
|
onClose?.();
|
|
178
|
-
}, [alert,
|
|
139
|
+
}, [alert, dispatch, onClose]);
|
|
179
140
|
const submitHandler = (0, react_2.useCallback)((values) => {
|
|
180
|
-
|
|
141
|
+
dispatch({ type: 'SET_PREFERENCES', payload: values });
|
|
181
142
|
alert.success('Settings saved successfully');
|
|
182
143
|
onClose?.();
|
|
183
|
-
}, [alert,
|
|
144
|
+
}, [alert, dispatch, onClose]);
|
|
184
145
|
const tabChangeHandler = (0, react_2.useCallback)((tab) => {
|
|
185
146
|
setActiveTab(tab.tabid);
|
|
186
147
|
}, []);
|
|
187
|
-
|
|
148
|
+
const addWorkSpaceHandler = (0, react_2.useCallback)((name) => {
|
|
149
|
+
dispatch({
|
|
150
|
+
type: 'ADD_WORKSPACE',
|
|
151
|
+
payload: {
|
|
152
|
+
workspace: name,
|
|
153
|
+
data: refForm.current.values,
|
|
154
|
+
},
|
|
155
|
+
});
|
|
156
|
+
}, [dispatch]);
|
|
157
|
+
const deleteWorkSpaceHandler = (0, react_2.useCallback)((key) => {
|
|
158
|
+
dispatch({
|
|
159
|
+
type: 'REMOVE_WORKSPACE',
|
|
160
|
+
payload: {
|
|
161
|
+
workspace: key,
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
}, [dispatch]);
|
|
165
|
+
const ChangeWorkspaceHandler = (0, react_2.useCallback)((option) => {
|
|
166
|
+
dispatch({
|
|
167
|
+
type: 'SET_WORKSPACE',
|
|
168
|
+
payload: {
|
|
169
|
+
workspace: option.key,
|
|
170
|
+
},
|
|
171
|
+
});
|
|
172
|
+
}, [dispatch]);
|
|
173
|
+
const renderItem = (0, react_2.useCallback)((item) => {
|
|
174
|
+
return ((0, jsx_runtime_1.jsx)(WorkspaceItem_1.default, { item: item, onSave: addWorkSpaceHandler, onDelete: deleteWorkSpaceHandler }));
|
|
175
|
+
}, [addWorkSpaceHandler, deleteWorkSpaceHandler]);
|
|
176
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: [ModalStyle_1.ModalStyles, styles], children: [(0, jsx_runtime_1.jsxs)("div", { className: "header handle", children: [(0, jsx_runtime_1.jsx)("span", { children: "General Settings" }), (0, jsx_runtime_1.jsx)(CloseButton_1.default, { onClick: onClose, className: "close-bt" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "workspace-container", children: [(0, jsx_runtime_1.jsx)("span", { className: "label", children: "Workspace : " }), (0, jsx_runtime_1.jsx)(DropDownButton_1.default, { data: workspacesList, renderItem: renderItem, selectedKey: preferences?.workspace.current, onSelect: ChangeWorkspaceHandler })] }), (0, jsx_runtime_1.jsx)("div", { className: "main-content", children: (0, jsx_runtime_1.jsx)(FormikForm_1.default, { ref: refForm, initialValues: preferences.current, onSubmit: submitHandler, children: (0, jsx_runtime_1.jsxs)(Tabs_1.default, { position: Tabs_1.PositionsEnum.LEFT, activeTab: activeTab, onClick: tabChangeHandler, children: [(0, jsx_runtime_1.jsx)(Tab_1.default, { tablabel: "Controllers", tabid: "controllers", children: (0, jsx_runtime_1.jsx)("div", { className: "inner-content", children: (0, jsx_runtime_1.jsx)(ControllersTabContent_1.default, {}) }) }), (0, jsx_runtime_1.jsx)(Tab_1.default, { tablabel: "Formatting", tabid: "formatting", children: (0, jsx_runtime_1.jsx)("div", { className: "inner-content", children: (0, jsx_runtime_1.jsx)(FormattingTabContent_1.default, {}) }) }), (0, jsx_runtime_1.jsx)(Tab_1.default, { tablabel: "Display", tabid: "display", children: (0, jsx_runtime_1.jsx)("div", { className: "inner-content", children: (0, jsx_runtime_1.jsx)(DisplayTabContent_1.default, { preferences: preferences.current.display }) }) })] }) }, JSON.stringify(preferences.current)) }), (0, jsx_runtime_1.jsxs)("div", { className: "footer-container", children: [(0, jsx_runtime_1.jsx)("button", { type: "button", onClick: handleSave, className: "btn", children: "Save" }), (0, jsx_runtime_1.jsx)("button", { type: "button", onClick: handleReset, className: "btn", children: "Reset" })] })] }));
|
|
188
177
|
}
|
|
189
178
|
exports.default = GeneralSettings;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
7
|
+
/** @jsxImportSource @emotion/react */
|
|
8
|
+
const react_1 = require("@emotion/react");
|
|
9
|
+
const react_2 = require("react");
|
|
10
|
+
const workspaces_1 = __importDefault(require("../../workspaces"));
|
|
11
|
+
const styles = (0, react_1.css) `
|
|
12
|
+
.container {
|
|
13
|
+
display: flex;
|
|
14
|
+
span {
|
|
15
|
+
padding: 5px !important;
|
|
16
|
+
}
|
|
17
|
+
span {
|
|
18
|
+
flex: 1;
|
|
19
|
+
text-align: left !important;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.new-container {
|
|
24
|
+
background-color: #f6f6f6;
|
|
25
|
+
display: flex;
|
|
26
|
+
padding: 0.3em;
|
|
27
|
+
|
|
28
|
+
input {
|
|
29
|
+
padding: 0.5em;
|
|
30
|
+
color: black;
|
|
31
|
+
outline: none;
|
|
32
|
+
background-color: transparent !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.delete-button:hover {
|
|
37
|
+
color: white;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.save-button:hover {
|
|
41
|
+
color: green;
|
|
42
|
+
}
|
|
43
|
+
.delete-button,
|
|
44
|
+
.save-button {
|
|
45
|
+
padding: 5px;
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
const WorkspaceItem = ({ item, onSave, onDelete }) => {
|
|
49
|
+
const [name, setName] = (0, react_2.useState)('');
|
|
50
|
+
const addWorkspaceHandler = (0, react_2.useCallback)((e) => {
|
|
51
|
+
e.stopPropagation();
|
|
52
|
+
setName('');
|
|
53
|
+
onSave(name);
|
|
54
|
+
}, [name, onSave]);
|
|
55
|
+
const deleteWorkspaceHandler = (0, react_2.useCallback)((e) => {
|
|
56
|
+
e.stopPropagation();
|
|
57
|
+
onDelete(item.key);
|
|
58
|
+
}, [item.key, onDelete]);
|
|
59
|
+
const onTextChange = (0, react_2.useCallback)((e) => {
|
|
60
|
+
setName(e.target.value);
|
|
61
|
+
}, []);
|
|
62
|
+
return ((0, jsx_runtime_1.jsx)("div", { css: styles, children: item.key === 'new' ? ((0, jsx_runtime_1.jsxs)("div", { className: "new-container", children: [(0, jsx_runtime_1.jsx)("input", { value: name, placeholder: "Custom workspace", onClick: (e) => e.stopPropagation(), onChange: onTextChange }), (0, jsx_runtime_1.jsx)("button", { type: "button", className: "save-button", onClick: addWorkspaceHandler, disabled: !name, children: "save" })] })) : ((0, jsx_runtime_1.jsxs)("div", { className: "container", children: [(0, jsx_runtime_1.jsx)("span", { children: item.label }), !workspaces_1.default[item.key] && ((0, jsx_runtime_1.jsx)("button", { type: "button", className: "delete-button", onClick: deleteWorkspaceHandler, children: "Delete" }))] })) }));
|
|
63
|
+
};
|
|
64
|
+
exports.default = WorkspaceItem;
|
|
@@ -13,6 +13,6 @@ const DefaultPanelHeader_1 = __importDefault(require("../header/DefaultPanelHead
|
|
|
13
13
|
function AutomaticAssignment() {
|
|
14
14
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
15
15
|
const automaticAssignmentHandler = (0, react_1.useCallback)(() => { }, []);
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)("div", { css: BasicPanelStyle_1.tablePanelStyle, children: [(0, jsx_runtime_1.jsx)(DefaultPanelHeader_1.default, { showSettingButton: false, canDelete: false, children: (0, jsx_runtime_1.jsx)(ButtonToolTip_1.default, { popupTitle: "automatic assignment", onClick: automaticAssignmentHandler, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrAssignment2, { style: { fontSize: '18px' } }
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: BasicPanelStyle_1.tablePanelStyle, children: [(0, jsx_runtime_1.jsx)(DefaultPanelHeader_1.default, { showSettingButton: false, canDelete: false, children: (0, jsx_runtime_1.jsx)(ButtonToolTip_1.default, { popupTitle: "automatic assignment", onClick: automaticAssignmentHandler, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrAssignment2, { style: { fontSize: '18px' } }) }) }), (0, jsx_runtime_1.jsx)("div", { className: "inner-container" })] }));
|
|
17
17
|
}
|
|
18
18
|
exports.default = AutomaticAssignment;
|
|
@@ -35,9 +35,9 @@ function PeaksTable({ data }) {
|
|
|
35
35
|
minWidth: '24px',
|
|
36
36
|
},
|
|
37
37
|
id: 'assign-button',
|
|
38
|
-
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)("button", { type: "button", className: "assign-button", onClick: (e) => assignHandler(e, row), children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrAssignment, {}
|
|
38
|
+
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)("button", { type: "button", className: "assign-button", onClick: (e) => assignHandler(e, row), children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrAssignment, {}) })),
|
|
39
39
|
},
|
|
40
40
|
], [assignHandler]);
|
|
41
|
-
return data && data.length > 0 ? ((0, jsx_runtime_1.jsx)(ReactTable_1.default, { data: data, columns: COLUMNS }
|
|
41
|
+
return data && data.length > 0 ? ((0, jsx_runtime_1.jsx)(ReactTable_1.default, { data: data, columns: COLUMNS })) : ((0, jsx_runtime_1.jsx)(NoTableData_1.default, {}));
|
|
42
42
|
}
|
|
43
43
|
exports.default = (0, react_1.memo)(PeaksTable);
|
|
@@ -59,7 +59,7 @@ function InformationPanelInner({ info, meta }) {
|
|
|
59
59
|
minWidth: 100,
|
|
60
60
|
width: 20,
|
|
61
61
|
maxWidth: 20,
|
|
62
|
-
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)("p", { style: { padding: '5px', backgroundColor: 'white' }, children: row.original }
|
|
62
|
+
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)("p", { style: { padding: '5px', backgroundColor: 'white' }, children: row.original })),
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
Header: 'Value',
|
|
@@ -72,15 +72,15 @@ function InformationPanelInner({ info, meta }) {
|
|
|
72
72
|
fontFamily: 'monospace',
|
|
73
73
|
whiteSpace: 'pre',
|
|
74
74
|
overflow: 'hidden',
|
|
75
|
-
}, children: `${information[row.original]}` }
|
|
75
|
+
}, children: `${information[row.original]}` })),
|
|
76
76
|
},
|
|
77
77
|
], [information]);
|
|
78
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: styles.container, children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("input", { type: "text", style: styles.searchInput, placeholder: "Search for parameter...", onChange: handleSearch, ref: searchRef }
|
|
78
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: styles.container, children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("input", { type: "text", style: styles.searchInput, placeholder: "Search for parameter...", onChange: handleSearch, ref: searchRef }) }), (0, jsx_runtime_1.jsx)("div", { style: styles.tableContainer, children: (0, jsx_runtime_1.jsx)(ReactTableFlexLayout_1.default, { data: matches, columns: columns }) })] }));
|
|
79
79
|
}
|
|
80
80
|
const MemoizedInformationPanel = (0, react_1.memo)(InformationPanelInner);
|
|
81
81
|
const emptyData = { info: {}, meta: {} };
|
|
82
82
|
function InformationPanel() {
|
|
83
83
|
const { info, meta } = (0, useSpectrum_1.default)(emptyData);
|
|
84
|
-
return (0, jsx_runtime_1.jsx)(MemoizedInformationPanel, { ...{ info, meta } }
|
|
84
|
+
return (0, jsx_runtime_1.jsx)(MemoizedInformationPanel, { ...{ info, meta } });
|
|
85
85
|
}
|
|
86
86
|
exports.default = InformationPanel;
|
|
@@ -64,7 +64,7 @@ function IntegralPanelInner({ integrals, info, activeTab, xDomain, preferences,
|
|
|
64
64
|
const showChangeIntegralSumModal = (0, react_2.useCallback)(() => {
|
|
65
65
|
modal.show((0, jsx_runtime_1.jsx)(ChangeSumModal_1.default, { onClose: () => modal.close(), onSave: changeIntegralSumHandler, header: currentSum
|
|
66
66
|
? `Set new Integrals Sum (Current: ${Number(currentSum).toFixed(2)})`
|
|
67
|
-
: 'Set new Integrals Sum', sumOptions: integrals?.options }
|
|
67
|
+
: 'Set new Integrals Sum', sumOptions: integrals?.options }));
|
|
68
68
|
}, [changeIntegralSumHandler, currentSum, integrals?.options, modal]);
|
|
69
69
|
const settingsPanelHandler = (0, react_2.useCallback)(() => {
|
|
70
70
|
setFlipStatus(!isFlipped);
|
|
@@ -113,7 +113,7 @@ function IntegralPanelInner({ integrals, info, activeTab, xDomain, preferences,
|
|
|
113
113
|
? 'Show all integrals'
|
|
114
114
|
: 'Hide integrals out of view', filterIsActive: filterIsActive, counterFiltered: filteredData.length, showSettingButton: true, onSettingClick: settingsPanelHandler, children: [(0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: currentSum
|
|
115
115
|
? `Change Integrals Sum (${Number(currentSum).toFixed(2)})`
|
|
116
|
-
: 'Change Integrals Sum', popupPlacement: "right", children: (0, jsx_runtime_1.jsx)("button", { className: "sum-button", type: "button", onClick: showChangeIntegralSumModal, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrSum, {}
|
|
116
|
+
: 'Change Integrals Sum', popupPlacement: "right", children: (0, jsx_runtime_1.jsx)("button", { className: "sum-button", type: "button", onClick: showChangeIntegralSumModal, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrSum, {}) }) }), (0, jsx_runtime_1.jsx)(ToggleButton_1.default, { className: "fix-integral-toggle-btn", popupTitle: "fix integral values", popupPlacement: "right", onClick: toggleConstantSumHandler, children: (0, jsx_runtime_1.jsx)(im_1.ImLink, {}) })] })), isFlipped && ((0, jsx_runtime_1.jsx)(PreferencesHeader_1.default, { onSave: saveSettingHandler, onClose: settingsPanelHandler })), (0, jsx_runtime_1.jsx)("div", { className: "inner-container", children: !isFlipped ? ((0, jsx_runtime_1.jsx)(IntegralTable_1.default, { data: filteredData, activeTab: activeTab, preferences: preferences })) : ((0, jsx_runtime_1.jsx)(IntegralsPreferences_1.default, { ref: settingRef })) })] }) }));
|
|
117
117
|
}
|
|
118
118
|
const MemoizedIntegralPanel = (0, react_2.memo)(IntegralPanelInner);
|
|
119
119
|
const emptyData = { integrals: {}, info: {} };
|
|
@@ -124,9 +124,9 @@ function IntegralPanel() {
|
|
|
124
124
|
return ((0, jsx_runtime_1.jsx)(MemoizedIntegralPanel, { ...{
|
|
125
125
|
integrals,
|
|
126
126
|
info,
|
|
127
|
-
preferences,
|
|
127
|
+
preferences: preferences.current,
|
|
128
128
|
xDomain,
|
|
129
129
|
activeTab,
|
|
130
|
-
} }
|
|
130
|
+
} }));
|
|
131
131
|
}
|
|
132
132
|
exports.default = IntegralPanel;
|
|
@@ -65,13 +65,13 @@ function IntegralTable({ activeTab, data, preferences }) {
|
|
|
65
65
|
sortType: 'basic',
|
|
66
66
|
resizable: true,
|
|
67
67
|
accessor: (row) => row.kind,
|
|
68
|
-
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)(Select_1.default, { onChange: (value) => changeIntegralDataHandler(value, row), data: SignalsKinds_1.SignalKinds, style: selectStyle, defaultValue: row.original.kind }
|
|
68
|
+
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)(Select_1.default, { onChange: (value) => changeIntegralDataHandler(value, row), data: SignalsKinds_1.SignalKinds, style: selectStyle, defaultValue: row.original.kind })),
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
index: 7,
|
|
72
72
|
style: { width: '1%', maxWidth: '24px', minWidth: '24px' },
|
|
73
73
|
id: 'delete-button',
|
|
74
|
-
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)("button", { type: "button", className: "delete-button", onClick: (e) => deleteIntegralHandler(e, row), children: (0, jsx_runtime_1.jsx)(fa_1.FaRegTrashAlt, {}
|
|
74
|
+
Cell: ({ row }) => ((0, jsx_runtime_1.jsx)("button", { type: "button", className: "delete-button", onClick: (e) => deleteIntegralHandler(e, row), children: (0, jsx_runtime_1.jsx)(fa_1.FaRegTrashAlt, {}) })),
|
|
75
75
|
},
|
|
76
76
|
], [changeIntegralDataHandler, deleteIntegralHandler]);
|
|
77
77
|
const saveRelativeHandler = (0, react_1.useCallback)((event, row) => {
|
|
@@ -81,7 +81,7 @@ function IntegralTable({ activeTab, data, preferences }) {
|
|
|
81
81
|
payload: { data },
|
|
82
82
|
});
|
|
83
83
|
}, [dispatch]);
|
|
84
|
-
const integralsPreferences = (0, react_1.useMemo)(() => (0, LocalStorage_1.getValue)(preferences, `formatting.panels.integrals.[${activeTab}]`, defaultValues_1.integralDefaultValues), [activeTab, preferences]);
|
|
84
|
+
const integralsPreferences = (0, react_1.useMemo)(() => (0, LocalStorage_1.getValue)(preferences.current, `formatting.panels.integrals.[${activeTab}]`, defaultValues_1.integralDefaultValues), [activeTab, preferences]);
|
|
85
85
|
const COLUMNS = (0, react_1.useMemo)(() => [
|
|
86
86
|
{
|
|
87
87
|
showWhen: 'showAbsolute',
|
|
@@ -95,7 +95,7 @@ function IntegralTable({ activeTab, data, preferences }) {
|
|
|
95
95
|
id: 'relative',
|
|
96
96
|
Header: () => {
|
|
97
97
|
const n = activeTab?.replace(/[0-9]/g, '');
|
|
98
|
-
return (0, jsx_runtime_1.jsx)("span", { children: `Relative ${n}` }
|
|
98
|
+
return (0, jsx_runtime_1.jsx)("span", { children: `Relative ${n}` });
|
|
99
99
|
},
|
|
100
100
|
accessor: (row) => {
|
|
101
101
|
return (0, FormatNumber_1.default)(row.integral, (0, get_1.default)(integralsPreferences, 'relativeFormat', defaultValues_1.integralDefaultValues.relativeFormat));
|
|
@@ -104,7 +104,7 @@ function IntegralTable({ activeTab, data, preferences }) {
|
|
|
104
104
|
const value = (0, FormatNumber_1.default)(row.original.integral, (0, get_1.default)(integralsPreferences, 'relativeFormat', defaultValues_1.integralDefaultValues.relativeFormat));
|
|
105
105
|
const flag = (0, Spectrum1D_1.checkIntegralKind)(row.original);
|
|
106
106
|
const integral = flag ? value : `[ ${value} ]`;
|
|
107
|
-
return ((0, jsx_runtime_1.jsx)(EditableColumn_1.default, { value: integral, onSave: (event) => saveRelativeHandler(event, row.original), type: "number" }
|
|
107
|
+
return ((0, jsx_runtime_1.jsx)(EditableColumn_1.default, { value: integral, onSave: (event) => saveRelativeHandler(event, row.original), type: "number" }));
|
|
108
108
|
},
|
|
109
109
|
},
|
|
110
110
|
], [activeTab, integralsPreferences, saveRelativeHandler]);
|
|
@@ -118,6 +118,6 @@ function IntegralTable({ activeTab, data, preferences }) {
|
|
|
118
118
|
}
|
|
119
119
|
return columns.sort((object1, object2) => object1.index - object2.index);
|
|
120
120
|
}, [COLUMNS, initialColumns, integralsPreferences]);
|
|
121
|
-
return data && data.length > 0 ? ((0, jsx_runtime_1.jsx)(ReactTable_1.default, { data: data, columns: tableColumns }
|
|
121
|
+
return data && data.length > 0 ? ((0, jsx_runtime_1.jsx)(ReactTable_1.default, { data: data, columns: tableColumns })) : ((0, jsx_runtime_1.jsx)(NoTableData_1.default, {}));
|
|
122
122
|
}
|
|
123
123
|
exports.default = (0, react_1.memo)(IntegralTable);
|
|
@@ -13,7 +13,6 @@ const FormikForm_1 = __importDefault(require("../../elements/formik/FormikForm")
|
|
|
13
13
|
const FormikNumberInput_1 = __importDefault(require("../../elements/formik/FormikNumberInput"));
|
|
14
14
|
const Alert_1 = require("../../elements/popup/Alert");
|
|
15
15
|
const useNucleus_1 = __importDefault(require("../../hooks/useNucleus"));
|
|
16
|
-
const preferencesReducer_1 = require("../../reducer/preferencesReducer");
|
|
17
16
|
const LocalStorage_1 = require("../../utility/LocalStorage");
|
|
18
17
|
const defaultValues_1 = require("../extra/preferences/defaultValues");
|
|
19
18
|
const styles = {
|
|
@@ -70,7 +69,7 @@ function IntegralsPreferencesInner({ nucleus, preferences, innerRef, }) {
|
|
|
70
69
|
const updateValues = (0, react_1.useCallback)(() => {
|
|
71
70
|
if (nucleus) {
|
|
72
71
|
const { color, strokeWidth, ...restProps } = defaultValues_1.integralDefaultValues;
|
|
73
|
-
const integralPreferences = (0, LocalStorage_1.getValue)(preferences, `formatting.panels.integrals`);
|
|
72
|
+
const integralPreferences = (0, LocalStorage_1.getValue)(preferences.current, `formatting.panels.integrals`);
|
|
74
73
|
let defaultValues = nucleus.reduce((acc, nucleusLabel) => {
|
|
75
74
|
acc[nucleusLabel] = restProps;
|
|
76
75
|
return acc;
|
|
@@ -84,7 +83,7 @@ function IntegralsPreferencesInner({ nucleus, preferences, innerRef, }) {
|
|
|
84
83
|
}, [updateValues]);
|
|
85
84
|
const saveHandler = (0, react_1.useCallback)((values) => {
|
|
86
85
|
preferences.dispatch({
|
|
87
|
-
type:
|
|
86
|
+
type: 'SET_PANELS_PREFERENCES',
|
|
88
87
|
payload: { key: 'integrals', value: values },
|
|
89
88
|
});
|
|
90
89
|
alert.success('Integrals preferences saved successfully');
|
|
@@ -94,14 +93,14 @@ function IntegralsPreferencesInner({ nucleus, preferences, innerRef, }) {
|
|
|
94
93
|
formRef.current.submitForm();
|
|
95
94
|
},
|
|
96
95
|
}));
|
|
97
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: styles.container, children: (0, jsx_runtime_1.jsxs)(FormikForm_1.default, { onSubmit: saveHandler, ref: formRef, children: [(0, jsx_runtime_1.jsxs)("div", { style: styles.groupContainer, children: [(0, jsx_runtime_1.jsx)("p", { style: styles.header, children: "General" }
|
|
96
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: styles.container, children: (0, jsx_runtime_1.jsxs)(FormikForm_1.default, { onSubmit: saveHandler, ref: formRef, children: [(0, jsx_runtime_1.jsxs)("div", { style: styles.groupContainer, children: [(0, jsx_runtime_1.jsx)("p", { style: styles.header, children: "General" }), (0, jsx_runtime_1.jsx)(FormikColorInput_1.default, { name: "color" }), (0, jsx_runtime_1.jsx)(FormikNumberInput_1.default, { name: "strokeWidth", label: "stroke width :", style: {
|
|
98
97
|
label: { fontSize: '11px', fontWeight: 'bold', color: '#232323' },
|
|
99
98
|
input: {
|
|
100
99
|
width: '60%',
|
|
101
100
|
textAlign: 'center',
|
|
102
101
|
borderRadius: '5px',
|
|
103
102
|
},
|
|
104
|
-
}, min: 1, max: 9, pattern: "[1-9]+" }
|
|
103
|
+
}, min: 1, max: 9, pattern: "[1-9]+" })] }), nucleus?.map((nucleusLabel) => ((0, jsx_runtime_1.jsxs)("div", { style: styles.groupContainer, children: [(0, jsx_runtime_1.jsx)("p", { style: styles.header, children: (0, jsx_runtime_1.jsx)(react_mf_1.MF, { mf: nucleusLabel }) }), formatFields.map((field) => ((0, jsx_runtime_1.jsx)(FormikColumnFormatField_1.default, { label: field.label, checkControllerName: `${nucleusLabel}.${field.checkController}`, formatControllerName: `${nucleusLabel}.${field.formatController}` }, field.id)))] }, nucleusLabel)))] }) }));
|
|
105
104
|
}
|
|
106
105
|
const MemoizedIntegralsPreferences = (0, react_1.memo)(IntegralsPreferencesInner);
|
|
107
106
|
// TODO: remove this hacky use of ref.
|
|
@@ -111,6 +110,6 @@ function IntegralsPreferences(props, ref) {
|
|
|
111
110
|
return ((0, jsx_runtime_1.jsx)(MemoizedIntegralsPreferences, { innerRef: ref, ...{
|
|
112
111
|
nucleus,
|
|
113
112
|
preferences,
|
|
114
|
-
} }
|
|
113
|
+
} }));
|
|
115
114
|
}
|
|
116
115
|
exports.default = (0, react_1.forwardRef)(IntegralsPreferences);
|
|
@@ -20,7 +20,7 @@ function MatrixGenerationPanel() {
|
|
|
20
20
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
21
21
|
const openFiltersModal = (0, react_1.useCallback)(() => {
|
|
22
22
|
dispatch({ type: Types_1.RESET_SELECTED_TOOL });
|
|
23
|
-
modal.show((0, jsx_runtime_1.jsx)(MultipleSpectraFiltersModal_1.default, {}
|
|
23
|
+
modal.show((0, jsx_runtime_1.jsx)(MultipleSpectraFiltersModal_1.default, {}), {
|
|
24
24
|
isBackgroundBlur: false,
|
|
25
25
|
position: Modal_1.positions.TOP_CENTER,
|
|
26
26
|
width: 550,
|
|
@@ -29,12 +29,12 @@ function MatrixGenerationPanel() {
|
|
|
29
29
|
}, [modal, dispatch]);
|
|
30
30
|
const openExportAsMatrixModal = (0, react_1.useCallback)(() => {
|
|
31
31
|
dispatch({ type: Types_1.RESET_SELECTED_TOOL });
|
|
32
|
-
modal.show((0, jsx_runtime_1.jsx)(ExportAsMatrixModal_1.default, {}
|
|
32
|
+
modal.show((0, jsx_runtime_1.jsx)(ExportAsMatrixModal_1.default, {}), {
|
|
33
33
|
isBackgroundBlur: false,
|
|
34
34
|
position: Modal_1.positions.TOP_CENTER,
|
|
35
35
|
width: 500,
|
|
36
36
|
});
|
|
37
37
|
}, [modal, dispatch]);
|
|
38
|
-
return ((0, jsx_runtime_1.jsxs)("div", { css: BasicPanelStyle_1.tablePanelStyle, children: [(0, jsx_runtime_1.jsxs)(DefaultPanelHeader_1.default, { deleteToolTip: "Delete All Peaks", showSettingButton: true, canDelete: false, children: [(0, jsx_runtime_1.jsx)(ButtonToolTip_1.default, { popupTitle: "Add Filter", onClick: openFiltersModal, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrAddFilter, { style: { fontSize: '18px' } }
|
|
38
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: BasicPanelStyle_1.tablePanelStyle, children: [(0, jsx_runtime_1.jsxs)(DefaultPanelHeader_1.default, { deleteToolTip: "Delete All Peaks", showSettingButton: true, canDelete: false, children: [(0, jsx_runtime_1.jsx)(ButtonToolTip_1.default, { popupTitle: "Add Filter", onClick: openFiltersModal, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrAddFilter, { style: { fontSize: '18px' } }) }), (0, jsx_runtime_1.jsx)(ButtonToolTip_1.default, { popupTitle: "Export spectra as a Matrix", onClick: openExportAsMatrixModal, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrExportAsMatrix, {}) })] }), (0, jsx_runtime_1.jsx)("div", { className: "inner-container" })] }));
|
|
39
39
|
}
|
|
40
40
|
exports.default = MatrixGenerationPanel;
|
|
@@ -85,7 +85,7 @@ function MoleculePanelInner({ zones, ranges, molecules: moleculesProp, activeTab
|
|
|
85
85
|
dispatch({ type: Types_1.SET_MOLECULE, molfile, key });
|
|
86
86
|
}, [dispatch]);
|
|
87
87
|
const openMoleculeEditorHandler = (0, react_2.useCallback)((moleclue = null) => {
|
|
88
|
-
modal.show((0, jsx_runtime_1.jsx)(MoleculeStructureEditorModal_1.default, { selectedMolecule: moleclue }
|
|
88
|
+
modal.show((0, jsx_runtime_1.jsx)(MoleculeStructureEditorModal_1.default, { selectedMolecule: moleclue }), {
|
|
89
89
|
position: Modal_1.positions.TOP_CENTER,
|
|
90
90
|
width: 700,
|
|
91
91
|
height: 500,
|
|
@@ -94,7 +94,7 @@ function MoleculePanelInner({ zones, ranges, molecules: moleculesProp, activeTab
|
|
|
94
94
|
const moleculeIndexHandler = (0, react_2.useCallback)((index) => {
|
|
95
95
|
setCurrentIndex(index);
|
|
96
96
|
}, []);
|
|
97
|
-
return ((0, jsx_runtime_1.jsxs)("div", { css: styles.panel, children: [(0, jsx_runtime_1.jsx)(MoleculePanelHeader_1.default, { currentIndex: currentIndex, molecules: molecules, onOpenMoleculeEditor: () => openMoleculeEditorHandler(), onMoleculeIndexChange: moleculeIndexHandler, actionsOptions: actionsOptions }
|
|
97
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: styles.panel, children: [(0, jsx_runtime_1.jsx)(MoleculePanelHeader_1.default, { currentIndex: currentIndex, molecules: molecules, onOpenMoleculeEditor: () => openMoleculeEditorHandler(), onMoleculeIndexChange: moleculeIndexHandler, actionsOptions: actionsOptions }), (0, jsx_runtime_1.jsxs)("div", { css: styles.innerPanel, children: [(0, jsx_runtime_1.jsx)("div", { css: styles.molecule, children: (0, jsx_runtime_1.jsx)(NextPrev_1.default, { onChange: (slideIndex) => setCurrentIndex(slideIndex), defaultIndex: currentIndex, children: molecules && molecules.length > 0 ? (molecules.map((mol, index) => ((0, jsx_runtime_1.jsxs)("div", { css: styles.items, children: [(0, jsx_runtime_1.jsxs)("span", { css: styles.toolbar, children: [(0, jsx_runtime_1.jsx)(react_mf_1.MF, { mf: mol.mf }), " - ", mol.mw?.toFixed(2)] }), (0, jsx_runtime_1.jsx)("div", { css: styles.slider, className: "mol-svg-container", onDoubleClick: () => openMoleculeEditorHandler(mol), style: {
|
|
98
98
|
backgroundColor: (index + 1) % 2 !== 0 ? '#fafafa' : 'white',
|
|
99
99
|
}, children: (0, jsx_runtime_1.jsx)(react_d3_utils_1.ResponsiveChart, { children: ({ height, width }) => {
|
|
100
100
|
return ((0, jsx_runtime_1.jsx)(react_ocl_nmr_1.default, { OCL: full_1.default, id: `molSVG${index}`, width: width, height: height, molfile: mol.molfile || '', setMolfile: (molfile) => handleReplaceMolecule(mol.key, molfile), setSelectedAtom: handleOnClickAtom, atomHighlightColor: currentDiaIDsToHighlight &&
|
|
@@ -103,8 +103,8 @@ function MoleculePanelInner({ zones, ranges, molecules: moleculesProp, activeTab
|
|
|
103
103
|
: '#FFD700', atomHighlightOpacity: 0.35, highlights: currentDiaIDsToHighlight &&
|
|
104
104
|
currentDiaIDsToHighlight.length > 0
|
|
105
105
|
? currentDiaIDsToHighlight
|
|
106
|
-
: assignedDiaIDsMerged, setHoverAtom: handleOnAtomHover }
|
|
107
|
-
} }
|
|
106
|
+
: assignedDiaIDsMerged, setHoverAtom: handleOnAtomHover }));
|
|
107
|
+
} }) })] }, mol.key)))) : ((0, jsx_runtime_1.jsx)("div", { css: styles.slider, style: { height: '100%' }, onClick: () => openMoleculeEditorHandler(), children: (0, jsx_runtime_1.jsx)("span", { children: "Click to draw molecule" }) })) }) }), children] })] }));
|
|
108
108
|
}
|
|
109
109
|
const MemoizedMoleculePanel = (0, react_2.memo)(MoleculePanelInner);
|
|
110
110
|
const emptyData = { ranges: {}, zones: {} };
|
|
@@ -121,6 +121,6 @@ function MoleculePanel({ onMoleculeChange, children, actionsOptions, }) {
|
|
|
121
121
|
zones,
|
|
122
122
|
onMoleculeChange,
|
|
123
123
|
actionsOptions,
|
|
124
|
-
}, children: children }
|
|
124
|
+
}, children: children }));
|
|
125
125
|
}
|
|
126
126
|
exports.default = MoleculePanel;
|
|
@@ -46,17 +46,17 @@ const toolbarStyle = (0, react_1.css) `
|
|
|
46
46
|
const MOL_EXPORT_MENU = [
|
|
47
47
|
{
|
|
48
48
|
id: 'molfile',
|
|
49
|
-
icon: (0, jsx_runtime_1.jsx)(fa_1.FaCopy, {}
|
|
49
|
+
icon: (0, jsx_runtime_1.jsx)(fa_1.FaCopy, {}),
|
|
50
50
|
label: 'Copy as molfile',
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
id: 'png',
|
|
54
|
-
icon: (0, jsx_runtime_1.jsx)(fa_1.FaFileImage, {}
|
|
54
|
+
icon: (0, jsx_runtime_1.jsx)(fa_1.FaFileImage, {}),
|
|
55
55
|
label: 'Copy as PNG',
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
id: 'svg',
|
|
59
|
-
icon: (0, jsx_runtime_1.jsx)(fa_1.FaDownload, {}
|
|
59
|
+
icon: (0, jsx_runtime_1.jsx)(fa_1.FaDownload, {}),
|
|
60
60
|
label: 'Export as SVG',
|
|
61
61
|
},
|
|
62
62
|
];
|
|
@@ -120,14 +120,14 @@ function MoleculePanelHeader({ currentIndex, molecules, onMoleculeIndexChange =
|
|
|
120
120
|
assignmentData,
|
|
121
121
|
]);
|
|
122
122
|
const openPredictSpectraModal = (0, react_2.useCallback)(() => {
|
|
123
|
-
modal.show((0, jsx_runtime_1.jsx)(PredictSpectraModal_1.default, { molfile: molecules[currentIndex] }
|
|
123
|
+
modal.show((0, jsx_runtime_1.jsx)(PredictSpectraModal_1.default, { molfile: molecules[currentIndex] }), {
|
|
124
124
|
position: Modal_1.positions.TOP_CENTER,
|
|
125
125
|
enableResizing: true,
|
|
126
126
|
width: 600,
|
|
127
127
|
});
|
|
128
128
|
}, [modal, molecules, currentIndex]);
|
|
129
|
-
return ((0, jsx_runtime_1.jsxs)("div", { css: toolbarStyle, children: [!actionsOptions.hideExport && ((0, jsx_runtime_1.jsx)(MenuButton_1.default, { component: (0, jsx_runtime_1.jsx)(fa_1.FaFileExport, {}
|
|
129
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: toolbarStyle, children: [!actionsOptions.hideExport && ((0, jsx_runtime_1.jsx)(MenuButton_1.default, { component: (0, jsx_runtime_1.jsx)(fa_1.FaFileExport, {}), toolTip: "Export As", items: MOL_EXPORT_MENU, onClick: exportHandler })), !actionsOptions.hidePast && ((0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: "Paste molfile", popupPlacement: "left", children: (0, jsx_runtime_1.jsx)("button", { className: "bar-button", type: "button", onClick: handlePaste, children: (0, jsx_runtime_1.jsx)(fa_1.FaPaste, {}) }) })), !actionsOptions.hideAdd && ((0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: "Add Molecule", popupPlacement: "left", children: (0, jsx_runtime_1.jsx)("button", { className: "bar-button", type: "button", onClick: onOpenMoleculeEditor, "data-test-id": "panel-structures-button-add", children: (0, jsx_runtime_1.jsx)(fa_1.FaPlus, {}) }) })), !actionsOptions.hideDelete && ((0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: "Delete Molecule", popupPlacement: "left", children: (0, jsx_runtime_1.jsx)("button", { className: "bar-button", type: "button", onClick: handleDelete, children: (0, jsx_runtime_1.jsx)(fa_1.FaRegTrashAlt, {}) }) })), !actionsOptions.hidePredict && molecules && molecules.length > 0 && ((0, jsx_runtime_1.jsx)(ButtonToolTip_1.default, { popupTitle: "Predict Spectra", popupPlacement: "left", onClick: openPredictSpectraModal, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrFt, {}) })), (0, jsx_runtime_1.jsxs)("p", { children: [molecules &&
|
|
130
130
|
molecules.length > 0 &&
|
|
131
|
-
`${+(currentIndex + 1)} / ${molecules.length}`, ' '] }
|
|
131
|
+
`${+(currentIndex + 1)} / ${molecules.length}`, ' '] })] }));
|
|
132
132
|
}
|
|
133
133
|
exports.default = MoleculePanelHeader;
|
|
@@ -59,6 +59,6 @@ function ColumnHeader({ charLabel, rangeLabel, data, onColumnFilter, }) {
|
|
|
59
59
|
const deleteHandler = (0, react_2.useCallback)(() => {
|
|
60
60
|
dispatch({ type: Types_1.DELETE_ANALYZE_SPECTRA_RANGE, colKey: charLabel });
|
|
61
61
|
}, [charLabel, dispatch]);
|
|
62
|
-
return ((0, jsx_runtime_1.jsxs)("div", { css: styles, children: [(0, jsx_runtime_1.jsxs)("div", { className: "container", children: [data.type === MultipleAnalysis_1.COLUMNS_TYPES.NORMAL && ((0, jsx_runtime_1.jsx)("div", { className: "dropDown-container", children: (0, jsx_runtime_1.jsx)(DropDownButton_1.default, { data: columnsFilters, formatSelectedValue: (
|
|
62
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: styles, children: [(0, jsx_runtime_1.jsxs)("div", { className: "container", children: [data.type === MultipleAnalysis_1.COLUMNS_TYPES.NORMAL && ((0, jsx_runtime_1.jsx)("div", { className: "dropDown-container", children: (0, jsx_runtime_1.jsx)(DropDownButton_1.default, { data: columnsFilters, formatSelectedValue: (item) => item.label.substring(0, 3), selectedKey: data.valueKey, onSelect: onColumnFilter }) })), (0, jsx_runtime_1.jsxs)("div", { className: "label-container", children: [(0, jsx_runtime_1.jsxs)("span", { className: "label", children: [" ", charLabel] }), (0, jsx_runtime_1.jsx)("span", { className: "label", children: rangeLabel })] })] }), (0, jsx_runtime_1.jsx)(DeleteButton_1.default, { onDelete: deleteHandler })] }));
|
|
63
63
|
}
|
|
64
64
|
exports.default = ColumnHeader;
|
|
@@ -38,7 +38,7 @@ function MultipleAnalysisCodeEditor({ data }) {
|
|
|
38
38
|
minHeight: '100px',
|
|
39
39
|
overflow: 'auto',
|
|
40
40
|
maxHeight: '200px',
|
|
41
|
-
} }
|
|
41
|
+
} }), (0, jsx_runtime_1.jsx)("p", { style: { marginBottom: '5px' }, children: "Result:" }), (0, jsx_runtime_1.jsx)("textarea", { value: result, readOnly: true, style: {
|
|
42
42
|
border: '0.55px solid #f3f3f3',
|
|
43
43
|
fontFamily: '"Fira code", "Fira Mono", monospace',
|
|
44
44
|
fontSize: 12,
|
|
@@ -48,6 +48,6 @@ function MultipleAnalysisCodeEditor({ data }) {
|
|
|
48
48
|
minHeight: '100px',
|
|
49
49
|
overflow: 'auto',
|
|
50
50
|
maxHeight: '200px',
|
|
51
|
-
} }
|
|
51
|
+
} })] }));
|
|
52
52
|
}
|
|
53
53
|
exports.default = (0, react_1.memo)(MultipleAnalysisCodeEditor);
|