nmrium 1.1.0 → 1.2.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/ExclusionZoneAnnotation.js +1 -1
- package/lib/component/1d/FloatPublicationString.js +2 -2
- package/lib/component/1d/FloatingRanges.js +3 -3
- package/lib/component/1d/FloatingRanges.js.map +1 -1
- package/lib/component/1d/FooterBanner.js +1 -1
- package/lib/component/1d/LinesSeries.js +1 -1
- package/lib/component/1d/PredictionErrorsNotations.js +2 -2
- package/lib/component/1d/inset/DraggableInset.js +2 -2
- package/lib/component/1d/multiAnalysis/AnalysisRange.js +1 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.js.map +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.d.ts +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.d.ts.map +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +3 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
- package/lib/component/1d/peaks/Peaks.js +1 -1
- package/lib/component/1d/peaks/Peaks.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +3 -3
- package/lib/component/1d-2d/tools/BrushXY.js +2 -2
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.js +1 -1
- package/lib/component/2d/SignalDeltaLine.js +1 -1
- package/lib/component/2d/zones/Signal.d.ts.map +1 -1
- package/lib/component/2d/zones/Signal.js +1 -1
- package/lib/component/2d/zones/Signal.js.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +2 -2
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/Zone.d.ts.map +1 -1
- package/lib/component/2d/zones/Zone.js +3 -1
- package/lib/component/2d/zones/Zone.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js +4 -4
- package/lib/component/elements/Alert.js +2 -2
- package/lib/component/elements/AssignmentsCell.js +1 -1
- package/lib/component/elements/Button.js +10 -10
- package/lib/component/elements/Button.js.map +1 -1
- package/lib/component/elements/DraggableDialog.js +3 -3
- package/lib/component/elements/EditableColumn.js +3 -3
- package/lib/component/elements/EmptyText.js +2 -2
- package/lib/component/elements/Footer.js +9 -9
- package/lib/component/elements/Footer.js.map +1 -1
- package/lib/component/elements/MoleculeSelection.js +19 -19
- package/lib/component/elements/MoleculeSelection.js.map +1 -1
- package/lib/component/elements/NextPrev.js +15 -15
- package/lib/component/elements/NextPrev.js.map +1 -1
- package/lib/component/elements/ReactTable/BaseReactTable.js +6 -6
- package/lib/component/elements/ReadOnly.js +8 -8
- package/lib/component/elements/ReadOnly.js.map +1 -1
- package/lib/component/elements/Sections.js +29 -29
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/Select.js +10 -10
- package/lib/component/elements/Select.js.map +1 -1
- package/lib/component/elements/StyledDialogBody.js +1 -1
- package/lib/component/elements/StyledDialogBody.js.map +1 -1
- package/lib/component/elements/Tab/DeleteButton.js +5 -5
- package/lib/component/elements/Tab/Tabs.js +5 -5
- package/lib/component/elements/dropDownButton/DropDownList.js +6 -6
- package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
- package/lib/component/elements/export/ExportManager.js +12 -1
- package/lib/component/elements/export/ExportManager.js.map +1 -1
- package/lib/component/elements/resizer/SVGResizer.js +1 -1
- package/lib/component/header/Header.js +1 -1
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +25 -10
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/useFilter.d.ts.map +1 -1
- package/lib/component/hooks/useFilter.js +4 -5
- package/lib/component/hooks/useFilter.js.map +1 -1
- package/lib/component/hooks/useSaveSettings.js +2 -2
- package/lib/component/loader/DefaultSpinnerComponent.js +9 -9
- package/lib/component/loader/DropZone.js +8 -8
- package/lib/component/main/ErrorOverlay.js +4 -4
- package/lib/component/main/InnerNMRiumContents.js +3 -3
- package/lib/component/modal/AboutPredictionModal.js +2 -2
- package/lib/component/modal/AboutSpectrumSimulationModal.js +2 -2
- package/lib/component/modal/MultipletAnalysisModal.js +12 -12
- package/lib/component/modal/PredictSpectraModal.js +4 -4
- package/lib/component/modal/PublicationStringModal.js +2 -2
- package/lib/component/modal/aboutUs/AboutUsModal.js +3 -3
- package/lib/component/modal/changeSum/ChangeSumModalContents.js +1 -1
- package/lib/component/modal/changeSum/SelectMolecule.js +5 -5
- package/lib/component/modal/changeSum/SelectMolecule.js.map +1 -1
- package/lib/component/modal/setting/GeneralSettings.js +5 -5
- package/lib/component/panels/Panels.js +2 -2
- package/lib/component/panels/PanelsBar.js +3 -3
- package/lib/component/panels/PanelsBar.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.js +6 -6
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +9 -9
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +5 -5
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +11 -11
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +7 -7
- package/lib/component/panels/SummaryPanel/Overview.js +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +6 -5
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTable.js +6 -6
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +11 -3
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/InnerFilterHeader.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js +4 -4
- package/lib/component/panels/predictionPanel/PredictionPanel.js +6 -6
- package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +54 -28
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/workspaces/assignment.d.ts.map +1 -1
- package/lib/component/workspaces/assignment.js +1 -0
- package/lib/component/workspaces/assignment.js.map +1 -1
- package/lib/component/workspaces/basic.d.ts.map +1 -1
- package/lib/component/workspaces/basic.js +1 -0
- package/lib/component/workspaces/basic.js.map +1 -1
- package/lib/component/workspaces/embedded.d.ts.map +1 -1
- package/lib/component/workspaces/embedded.js +1 -0
- package/lib/component/workspaces/embedded.js.map +1 -1
- package/lib/component/workspaces/exercise.d.ts.map +1 -1
- package/lib/component/workspaces/exercise.js +1 -0
- package/lib/component/workspaces/exercise.js.map +1 -1
- package/lib/component/workspaces/prediction.d.ts.map +1 -1
- package/lib/component/workspaces/prediction.js +1 -0
- package/lib/component/workspaces/prediction.js.map +1 -1
- package/lib/component/workspaces/process1D.d.ts.map +1 -1
- package/lib/component/workspaces/process1D.js +1 -0
- package/lib/component/workspaces/process1D.js.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/data/PredictionManager.d.ts.map +1 -1
- package/lib/data/PredictionManager.js +7 -21
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts.map +1 -1
- package/lib/data/utilities/generateColor.d.ts.map +1 -1
- package/lib/data/utilities/generateColor.js +1 -1
- package/lib/data/utilities/generateColor.js.map +1 -1
- package/lib/data/utilities/isNumber.js +1 -1
- package/lib/data/utilities/isNumber.js.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.js +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +41 -36
- package/src/component/1d/ExclusionZoneAnnotation.tsx +1 -1
- package/src/component/1d/FloatPublicationString.tsx +2 -2
- package/src/component/1d/FloatingRanges.tsx +3 -3
- package/src/component/1d/FooterBanner.tsx +1 -1
- package/src/component/1d/LinesSeries.tsx +1 -1
- package/src/component/1d/PredictionErrorsNotations.tsx +2 -2
- package/src/component/1d/inset/DraggableInset.tsx +2 -2
- package/src/component/1d/multiAnalysis/AnalysisRange.tsx +1 -1
- package/src/component/1d/multiAnalysis/MultiAnalysisRanges.tsx +3 -1
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +1 -1
- package/src/component/1d/peaks/Peaks.tsx +2 -6
- package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +3 -3
- package/src/component/1d-2d/tools/BrushXY.tsx +2 -2
- package/src/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.tsx +1 -1
- package/src/component/2d/SignalDeltaLine.tsx +1 -1
- package/src/component/2d/zones/Signal.tsx +2 -1
- package/src/component/2d/zones/SignalsGuideLines.tsx +2 -2
- package/src/component/2d/zones/Zone.tsx +2 -1
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +1 -1
- package/src/component/elements/ActionsButtonsPopover.tsx +4 -4
- package/src/component/elements/Alert.tsx +2 -2
- package/src/component/elements/AssignmentsCell.tsx +1 -1
- package/src/component/elements/Button.tsx +10 -10
- package/src/component/elements/DraggableDialog.tsx +3 -3
- package/src/component/elements/EditableColumn.tsx +3 -3
- package/src/component/elements/EmptyText.tsx +2 -2
- package/src/component/elements/Footer.tsx +9 -9
- package/src/component/elements/MoleculeSelection.tsx +19 -19
- package/src/component/elements/NextPrev.tsx +15 -15
- package/src/component/elements/ReactTable/BaseReactTable.tsx +6 -6
- package/src/component/elements/ReadOnly.tsx +8 -8
- package/src/component/elements/Sections.tsx +29 -29
- package/src/component/elements/Select.tsx +10 -10
- package/src/component/elements/StyledDialogBody.tsx +1 -1
- package/src/component/elements/Tab/DeleteButton.tsx +5 -5
- package/src/component/elements/Tab/Tabs.tsx +5 -5
- package/src/component/elements/dropDownButton/DropDownList.tsx +6 -6
- package/src/component/elements/export/ExportManager.tsx +13 -3
- package/src/component/elements/resizer/SVGResizer.tsx +1 -1
- package/src/component/header/Header.tsx +1 -1
- package/src/component/hooks/useExport.tsx +21 -10
- package/src/component/hooks/useFilter.ts +4 -6
- package/src/component/hooks/useSaveSettings.tsx +2 -2
- package/src/component/loader/DefaultSpinnerComponent.tsx +9 -9
- package/src/component/loader/DropZone.tsx +8 -8
- package/src/component/main/ErrorOverlay.tsx +4 -4
- package/src/component/main/InnerNMRiumContents.tsx +3 -3
- package/src/component/modal/AboutPredictionModal.tsx +2 -2
- package/src/component/modal/AboutSpectrumSimulationModal.tsx +2 -2
- package/src/component/modal/MultipletAnalysisModal.tsx +12 -12
- package/src/component/modal/PredictSpectraModal.tsx +4 -4
- package/src/component/modal/PublicationStringModal.tsx +2 -2
- package/src/component/modal/aboutUs/AboutUsModal.tsx +3 -3
- package/src/component/modal/changeSum/ChangeSumModalContents.tsx +1 -1
- package/src/component/modal/changeSum/SelectMolecule.tsx +5 -5
- package/src/component/modal/setting/GeneralSettings.tsx +5 -5
- package/src/component/panels/Panels.tsx +2 -2
- package/src/component/panels/PanelsBar.tsx +3 -3
- package/src/component/panels/RangesPanel/RangesTable.tsx +6 -6
- package/src/component/panels/RangesPanel/TableColumns/ActionsColumn.tsx +1 -1
- package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.tsx +9 -9
- package/src/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.tsx +5 -5
- package/src/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.tsx +11 -11
- package/src/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.tsx +7 -7
- package/src/component/panels/SummaryPanel/Overview.tsx +1 -1
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +6 -5
- package/src/component/panels/ZonesPanel/ZonesTable.tsx +6 -6
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +12 -3
- package/src/component/panels/filtersPanel/Filters/InnerFilterHeader.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/AlignSpectra.tsx +4 -4
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +6 -6
- package/src/component/panels/predictionPanel/PredictionSimpleOptions.tsx +1 -1
- package/src/component/reducer/actions/FiltersActions.ts +162 -81
- package/src/component/workspaces/assignment.ts +1 -0
- package/src/component/workspaces/basic.ts +1 -0
- package/src/component/workspaces/embedded.ts +1 -0
- package/src/component/workspaces/exercise.ts +1 -0
- package/src/component/workspaces/prediction.ts +1 -0
- package/src/component/workspaces/process1D.ts +1 -0
- package/src/component/workspaces/workspaceDefaultProperties.ts +1 -0
- package/src/data/PredictionManager.ts +8 -23
- package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +1 -1
- package/src/data/utilities/generateColor.ts +5 -3
- package/src/data/utilities/isNumber.ts +1 -1
- package/src/utils/clipboard/clipboardComponents.tsx +1 -1
- package/src/versionInfo.ts +1 -1
|
@@ -2,15 +2,15 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { FaTimes } from 'react-icons/fa';
|
|
4
4
|
const BaseButton = styled.button `
|
|
5
|
-
|
|
6
|
-
width: 16px;
|
|
7
|
-
height: 16px;
|
|
5
|
+
align-items: center;
|
|
8
6
|
background-color: transparent;
|
|
9
7
|
border: none;
|
|
10
|
-
|
|
8
|
+
border-radius: 50%;
|
|
11
9
|
display: flex;
|
|
12
|
-
|
|
10
|
+
height: 16px;
|
|
13
11
|
justify-content: center;
|
|
12
|
+
padding: 0;
|
|
13
|
+
width: 16px;
|
|
14
14
|
|
|
15
15
|
.icon {
|
|
16
16
|
color: #252525;
|
|
@@ -4,16 +4,16 @@ import { css } from '@emotion/react';
|
|
|
4
4
|
import { Children, isValidElement, memo, useMemo } from 'react';
|
|
5
5
|
import Tab from './Tab.js';
|
|
6
6
|
const topStyles = css `
|
|
7
|
-
height: 100%;
|
|
8
|
-
width: 100%;
|
|
9
7
|
display: flex;
|
|
10
8
|
flex-direction: column;
|
|
9
|
+
height: 100%;
|
|
10
|
+
width: 100%;
|
|
11
11
|
|
|
12
12
|
.tab-list {
|
|
13
13
|
border-bottom: 1px solid #ccc;
|
|
14
|
-
padding-left: 0;
|
|
15
|
-
margin: 0;
|
|
16
14
|
display: inline-flex;
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding-left: 0;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.tab-list li:first-of-type {
|
|
@@ -48,8 +48,8 @@ const leftStyles = css `
|
|
|
48
48
|
|
|
49
49
|
.tab-list {
|
|
50
50
|
border-right: 1px solid #ccc;
|
|
51
|
-
padding-left: 0;
|
|
52
51
|
margin: 0;
|
|
52
|
+
padding-left: 0;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.tab-list li:hover {
|
|
@@ -2,26 +2,26 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
const Menu = styled.ul `
|
|
4
4
|
list-style-type: none;
|
|
5
|
-
padding: 0;
|
|
6
5
|
margin: 0;
|
|
6
|
+
padding: 0;
|
|
7
7
|
`;
|
|
8
8
|
const MenuItem = styled.li `
|
|
9
|
+
border-bottom: 0.55px solid #f9f9f9;
|
|
10
|
+
color: black;
|
|
9
11
|
text-align: center;
|
|
10
12
|
white-space: nowrap;
|
|
11
|
-
color: black;
|
|
12
|
-
border-bottom: 0.55px solid #f9f9f9;
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
:last-of-type {
|
|
15
15
|
border-bottom: none;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
:hover {
|
|
19
19
|
background-color: #f6f6f6;
|
|
20
20
|
}
|
|
21
21
|
`;
|
|
22
22
|
const Text = styled.span `
|
|
23
|
-
padding: 5px 20px;
|
|
24
23
|
display: block;
|
|
24
|
+
padding: 5px 20px;
|
|
25
25
|
`;
|
|
26
26
|
function DropDownList({ data = [], onSelect, renderItem = null, itemKey, labelKey, visibleKey, }) {
|
|
27
27
|
return (_jsx("div", { children: _jsx(Menu, { children: data.map((item, index) => (_jsx(MenuItem, { onClick: (e) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportManager.d.ts","sourceRoot":"","sources":["../../../../src/component/elements/export/ExportManager.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ExportManager.d.ts","sourceRoot":"","sources":["../../../../src/component/elements/export/ExportManager.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiBlD,KAAK,YAAY,GAAG,KAAK,GAAG,KAAK,CAAC;AAClC,KAAK,iBAAiB,GAAG,MAAM,GAAG,WAAW,CAAC;AAK9C,UAAU,aAAa;IACrB,MAAM,EAAE,YAAY,CAAC;IACrB,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAED,UAAU,kBAAkB;IAC1B,MAAM,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAKD,wBAAgB,mBAAmB,kCAUlC;AAED,UAAU,0BAA0B;IAClC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,2CAStE;AAED,UAAU,4BAA4B;IACpC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,kDAuG1E"}
|
|
@@ -2,6 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { createContext, useContext, useImperativeHandle, useRef, useState, } from 'react';
|
|
3
3
|
import { useChartData } from '../../context/ChartContext.js';
|
|
4
4
|
import { usePreferences } from '../../context/PreferencesContext.js';
|
|
5
|
+
import { useToaster } from "../../context/ToasterContext.js";
|
|
5
6
|
import { useExportViewPort } from '../../hooks/useExport.js';
|
|
6
7
|
import { useWorkspaceExportSettings } from '../../hooks/useWorkspaceExportSettings.js';
|
|
7
8
|
import { ExportContent } from './ExportContent.js';
|
|
@@ -20,10 +21,13 @@ export function ExportManagerProvider(props) {
|
|
|
20
21
|
}
|
|
21
22
|
export function ExportManagerController(props) {
|
|
22
23
|
const { children } = props;
|
|
24
|
+
const { data, width } = useChartData();
|
|
25
|
+
const hasDataToExport = data.length > 0;
|
|
23
26
|
const [exportOptions, triggerExport] = useState(null);
|
|
24
27
|
const exportRef = useExportManagerAPI();
|
|
25
28
|
const workspaceExportSettings = useWorkspaceExportSettings();
|
|
26
29
|
const { dispatch } = usePreferences();
|
|
30
|
+
const toaster = useToaster();
|
|
27
31
|
useImperativeHandle(exportRef, () => ({
|
|
28
32
|
export: (options) => {
|
|
29
33
|
triggerExport(options);
|
|
@@ -40,6 +44,14 @@ export function ExportManagerController(props) {
|
|
|
40
44
|
if (!exportOptions) {
|
|
41
45
|
return null;
|
|
42
46
|
}
|
|
47
|
+
if (!hasDataToExport) {
|
|
48
|
+
handleCloseExportOptionsDialog();
|
|
49
|
+
toaster.show({
|
|
50
|
+
intent: 'danger',
|
|
51
|
+
message: 'No spectra available for export',
|
|
52
|
+
});
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
43
55
|
const { format, destination = 'file' } = exportOptions;
|
|
44
56
|
const handlers = {
|
|
45
57
|
file: {
|
|
@@ -72,7 +84,6 @@ export function ExportManagerController(props) {
|
|
|
72
84
|
};
|
|
73
85
|
void runExport();
|
|
74
86
|
}
|
|
75
|
-
const { width } = useChartData();
|
|
76
87
|
if (!exportOptions)
|
|
77
88
|
return null;
|
|
78
89
|
const { format, destination = 'file' } = exportOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportManager.js","sourceRoot":"","sources":["../../../../src/component/elements/export/ExportManager.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,aAAa,EACb,UAAU,EACV,mBAAmB,EACnB,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAEvF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAkBnD,MAAM,oBAAoB,GACxB,aAAa,CAAuC,IAAI,CAAC,CAAC;AAE5D,MAAM,UAAU,mBAAmB;IACjC,MAAM,OAAO,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC;IAEjD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,kEAAkE,CACnE,CAAC;IACJ,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAMD,MAAM,UAAU,qBAAqB,CAAC,KAAiC;IACrE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC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,aAAa,IACZ,aAAa,EAAE,YAAY,EAC3B,mBAAmB,EAAE,8BAA8B,EACnD,aAAa,EAAE,QAAQ,EACvB,oBAAoB,EAAE,QAAQ,EAC9B,iBAAiB,EAAE,WAAW,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAChE,aAAa,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,YAEtC,QAAQ,GACK,CACjB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExport.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useExport.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAclE,UAAU,WAAW;IACnB,OAAO,EAAE,aAAa,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,SAAS;;
|
|
1
|
+
{"version":3,"file":"useExport.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useExport.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAclE,UAAU,WAAW;IACnB,OAAO,EAAE,aAAa,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,SAAS;;2BAmCX,WAAW;EAmCxB;AAED,wBAAgB,iBAAiB;+CAImB,WAAW;sCAoCpB,WAAW;sCAqBX,WAAW;EAsCrD"}
|
|
@@ -14,20 +14,26 @@ export function useExport() {
|
|
|
14
14
|
const hideLoading = toaster.showLoading({
|
|
15
15
|
message: 'Exporting as NMRium process in progress',
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
setTimeout(async () => {
|
|
18
|
+
try {
|
|
19
19
|
const fileName = state.data[0]?.info?.name;
|
|
20
20
|
const exportedData = toJSON(core, state, preferencesState, {
|
|
21
21
|
exportTarget: 'nmrium',
|
|
22
22
|
view: true,
|
|
23
23
|
});
|
|
24
24
|
await exportAsJSON(exportedData, fileName, spaceIndent, isCompressed);
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
toaster.show({
|
|
28
|
+
intent: 'danger',
|
|
29
|
+
message: `Export failed due to an unexpected error: ${error?.message || 'Unknown error'}`,
|
|
30
|
+
});
|
|
31
|
+
reportError(error);
|
|
32
|
+
}
|
|
33
|
+
finally {
|
|
25
34
|
hideLoading();
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
catch (error) {
|
|
29
|
-
reportError(error);
|
|
30
|
-
}
|
|
35
|
+
}
|
|
36
|
+
}, 0);
|
|
31
37
|
}, [core, preferencesState, state, toaster]);
|
|
32
38
|
const saveHandler = useCallback((options) => {
|
|
33
39
|
async function handler() {
|
|
@@ -35,16 +41,25 @@ export function useExport() {
|
|
|
35
41
|
const hideLoading = toaster.showLoading({
|
|
36
42
|
message: `Exporting as ${name}.nmrium process in progress`,
|
|
37
43
|
});
|
|
38
|
-
setTimeout(() => {
|
|
39
|
-
|
|
44
|
+
setTimeout(async () => {
|
|
45
|
+
try {
|
|
40
46
|
const exportedData = toJSON(core, state, preferencesState, {
|
|
41
47
|
...include,
|
|
42
48
|
exportTarget: 'nmrium',
|
|
43
49
|
});
|
|
44
50
|
const spaceIndent = pretty ? 2 : 0;
|
|
45
51
|
await exportAsJSON(exportedData, name, spaceIndent, compressed);
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
toaster.show({
|
|
55
|
+
intent: 'danger',
|
|
56
|
+
message: `Export failed due to an unexpected error: ${error?.message || 'Unknown error'}`,
|
|
57
|
+
});
|
|
58
|
+
reportError(error);
|
|
59
|
+
}
|
|
60
|
+
finally {
|
|
46
61
|
hideLoading();
|
|
47
|
-
}
|
|
62
|
+
}
|
|
48
63
|
}, 0);
|
|
49
64
|
}
|
|
50
65
|
void handler();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExport.js","sourceRoot":"","sources":["../../../src/component/hooks/useExport.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EACL,6BAA6B,EAC7B,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAS9B,MAAM,UAAU,SAAS;IACvB,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,MAAM,gBAAgB,GAAG,cAAc,EAAE,CAAC;IAC1C,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,MAAM,iBAAiB,GAAG,WAAW,CACnC,CAAC,WAAW,GAAG,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,EAAE;QACvC,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;YACtC,OAAO,EAAE,yCAAyC;SACnD,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"useExport.js","sourceRoot":"","sources":["../../../src/component/hooks/useExport.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,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|
|
1
|
+
{"version":3,"file":"useFilter.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useFilter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAK1E,KAAK,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,GACtD,kBAAkB,CAAC,CAAC,CAAC,GACrB,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,GAC7B,kBAAkB,CAAC,CAAC,CAAC,GACrB,IAAI,CAAC;AAEX,wBAAgB,SAAS,CAAC,CAAC,SAAS,WAAW,CAAC,MAAM,CAAC,EACrD,QAAQ,EAAE,CAAC,GACV,gBAAgB,CAAC,CAAC,CAAC,GAAG,IAAI,CAU5B"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
import useSpectrum from './useSpectrum.js';
|
|
3
|
-
const emptyData = { filters:
|
|
3
|
+
const emptyData = { filters: [] };
|
|
4
4
|
export function useFilter(filterID) {
|
|
5
5
|
const { filters } = useSpectrum(emptyData);
|
|
6
6
|
return useMemo(() => {
|
|
7
|
+
if (!filters?.length)
|
|
8
|
+
return null;
|
|
7
9
|
const filter = filters.find((filter) => filter.name === filterID);
|
|
8
|
-
|
|
9
|
-
return filter;
|
|
10
|
-
}
|
|
11
|
-
return null;
|
|
10
|
+
return filter ?? null;
|
|
12
11
|
}, [filterID, filters]);
|
|
13
12
|
}
|
|
14
13
|
//# sourceMappingURL=useFilter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFilter.js","sourceRoot":"","sources":["../../../src/component/hooks/useFilter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAE3C,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAOlC,MAAM,UAAU,SAAS,CACvB,QAAW;IAEX,MAAM,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC,SAAS,CAA4B,CAAC;IAEtE,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC;QAElE,
|
|
1
|
+
{"version":3,"file":"useFilter.js","sourceRoot":"","sources":["../../../src/component/hooks/useFilter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAE3C,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAOlC,MAAM,UAAU,SAAS,CACvB,QAAW;IAEX,MAAM,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC,SAAS,CAA4B,CAAC;IAEtE,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,IAAI,CAAC,OAAO,EAAE,MAAM;YAAE,OAAO,IAAI,CAAC;QAElC,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC;QAElE,OAAQ,MAA8B,IAAI,IAAI,CAAC;IACjD,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -76,9 +76,9 @@ const DialogContent = styled(DialogBody) `
|
|
|
76
76
|
text-align: center;
|
|
77
77
|
`;
|
|
78
78
|
const Title = styled.p `
|
|
79
|
-
|
|
79
|
+
font-size: 1em;
|
|
80
80
|
font-weight: bold;
|
|
81
|
+
padding: 0 30px;
|
|
81
82
|
text-align: left;
|
|
82
|
-
font-size: 1em;
|
|
83
83
|
`;
|
|
84
84
|
//# sourceMappingURL=useSaveSettings.js.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
const Container = styled.div `
|
|
4
|
-
|
|
4
|
+
position: absolute;
|
|
5
5
|
align-items: center;
|
|
6
|
-
justify-content: center;
|
|
7
6
|
background-color: rgb(255 255 255 / 25%);
|
|
8
|
-
|
|
7
|
+
display: flex;
|
|
9
8
|
flex-direction: column;
|
|
9
|
+
height: 100%;
|
|
10
|
+
justify-content: center;
|
|
10
11
|
user-select: none;
|
|
11
|
-
position: absolute;
|
|
12
12
|
width: 100%;
|
|
13
13
|
|
|
14
14
|
svg {
|
|
15
|
-
animation-name: spin-animation;
|
|
16
|
-
animation-iteration-count: infinite;
|
|
17
|
-
animation-fill-mode: forwards;
|
|
18
15
|
animation-direction: inherit;
|
|
19
|
-
animation-timing-function: linear;
|
|
20
16
|
animation-duration: 1s;
|
|
21
|
-
|
|
17
|
+
animation-fill-mode: forwards;
|
|
18
|
+
animation-iteration-count: infinite;
|
|
19
|
+
animation-name: spin-animation;
|
|
20
|
+
animation-timing-function: linear;
|
|
22
21
|
height: 100px;
|
|
22
|
+
width: 100px;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
@keyframes spin-animation {
|
|
@@ -9,27 +9,27 @@ import { useCheckToolsVisibility } from '../hooks/useCheckToolsVisibility.js';
|
|
|
9
9
|
import { MetaImportationModal } from '../modal/metaImportation/MetaImportationModal.js';
|
|
10
10
|
import { useLoadFiles } from './useLoadFiles.js';
|
|
11
11
|
const DropContainer = styled.div `
|
|
12
|
-
height: 100%;
|
|
13
|
-
background-color: #b5b5b599;
|
|
14
12
|
position: absolute;
|
|
15
|
-
display: flex;
|
|
16
|
-
justify-content: center;
|
|
17
13
|
align-items: center;
|
|
14
|
+
background-color: #b5b5b599;
|
|
15
|
+
display: flex;
|
|
18
16
|
flex-flow: column;
|
|
17
|
+
height: 100%;
|
|
18
|
+
justify-content: center;
|
|
19
19
|
z-index: 8;
|
|
20
20
|
|
|
21
21
|
svg {
|
|
22
|
-
stroke-width: 0;
|
|
23
|
-
font-size: 3rem !important;
|
|
24
22
|
fill: white;
|
|
23
|
+
font-size: 3rem !important;
|
|
24
|
+
stroke-width: 0;
|
|
25
25
|
}
|
|
26
26
|
`;
|
|
27
27
|
const DropText = styled.p `
|
|
28
|
-
color: white;
|
|
29
28
|
background-color: rgb(104 104 104);
|
|
30
|
-
padding: 1.5%;
|
|
31
29
|
border-radius: 30px;
|
|
30
|
+
color: white;
|
|
32
31
|
margin: 0;
|
|
32
|
+
padding: 1.5%;
|
|
33
33
|
`;
|
|
34
34
|
const Container = styled.div `
|
|
35
35
|
display: flex;
|
|
@@ -2,18 +2,18 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
const WrongP = styled.p `
|
|
4
4
|
background-color: white;
|
|
5
|
-
padding: 20px;
|
|
6
5
|
border-radius: 10px;
|
|
7
6
|
font-size: 30px;
|
|
7
|
+
padding: 20px;
|
|
8
8
|
text-align: center;
|
|
9
9
|
`;
|
|
10
10
|
const Details = styled.details `
|
|
11
|
-
margin-top: 10px;
|
|
12
|
-
white-space: pre-wrap;
|
|
13
11
|
background-color: white;
|
|
14
|
-
padding: 20px;
|
|
15
12
|
border-radius: 10px;
|
|
16
13
|
color: red;
|
|
14
|
+
margin-top: 10px;
|
|
15
|
+
padding: 20px;
|
|
16
|
+
white-space: pre-wrap;
|
|
17
17
|
`;
|
|
18
18
|
export default function ErrorOverlay(props) {
|
|
19
19
|
return (_jsxs("div", { style: { margin: 25 }, children: [_jsx(WrongP, { children: "Something went wrong." }), _jsxs(Details, { children: [_jsx("p", { style: { textDecoration: 'underline' }, children: props.error.message }), props.error.stack] })] }));
|
|
@@ -20,9 +20,9 @@ import { NMRiumViewerWrapper } from './NMRiumViewerWrapper.js';
|
|
|
20
20
|
import { StateError } from './StateError.js';
|
|
21
21
|
const NMRiumContainer = styled.div `
|
|
22
22
|
background-color: white;
|
|
23
|
-
width: 100%;
|
|
24
23
|
display: block;
|
|
25
24
|
height: 100%;
|
|
25
|
+
width: 100%;
|
|
26
26
|
|
|
27
27
|
div:focus {
|
|
28
28
|
outline: none !important;
|
|
@@ -56,8 +56,8 @@ const NMRiumContainer = styled.div `
|
|
|
56
56
|
|
|
57
57
|
.actions-buttons-popover {
|
|
58
58
|
background: transparent;
|
|
59
|
-
padding: 5px;
|
|
60
59
|
box-shadow: none;
|
|
60
|
+
padding: 5px;
|
|
61
61
|
}
|
|
62
62
|
`;
|
|
63
63
|
export function InnerNMRiumContents(props) {
|
|
@@ -71,9 +71,9 @@ export function InnerNMRiumContents(props) {
|
|
|
71
71
|
useNMRiumRefAPI(apiRef, rootRef);
|
|
72
72
|
return (_jsxs(_Fragment, { children: [_jsx(StateError, {}), _jsx(Global, { styles: css `
|
|
73
73
|
.actions-buttons-popover {
|
|
74
|
+
background-color: white;
|
|
74
75
|
border-radius: 10px;
|
|
75
76
|
padding: 5px;
|
|
76
|
-
background-color: white;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.popover-tab {
|
|
@@ -12,8 +12,8 @@ const DialogBody = styled(StyledDialogBody) `
|
|
|
12
12
|
|
|
13
13
|
p,
|
|
14
14
|
li {
|
|
15
|
-
user-select: text;
|
|
16
15
|
font-size: 1.1em;
|
|
16
|
+
user-select: text;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
a {
|
|
@@ -27,8 +27,8 @@ const DialogBody = styled(StyledDialogBody) `
|
|
|
27
27
|
|
|
28
28
|
.header span {
|
|
29
29
|
color: #464646;
|
|
30
|
-
font-size: 15px;
|
|
31
30
|
flex: 1;
|
|
31
|
+
font-size: 15px;
|
|
32
32
|
user-select: none;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -14,8 +14,8 @@ const DialogBody = styled(StyledDialogBody) `
|
|
|
14
14
|
|
|
15
15
|
p,
|
|
16
16
|
li {
|
|
17
|
-
user-select: text;
|
|
18
17
|
font-size: 1.1em;
|
|
18
|
+
user-select: text;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
a {
|
|
@@ -29,8 +29,8 @@ const DialogBody = styled(StyledDialogBody) `
|
|
|
29
29
|
|
|
30
30
|
.header span {
|
|
31
31
|
color: #464646;
|
|
32
|
-
font-size: 15px;
|
|
33
32
|
flex: 1;
|
|
33
|
+
font-size: 15px;
|
|
34
34
|
user-select: none;
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -10,43 +10,43 @@ import { useChartData } from '../context/ChartContext.js';
|
|
|
10
10
|
import { useScaleChecked } from '../context/ScaleContext.js';
|
|
11
11
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
12
12
|
const Container = styled.div `
|
|
13
|
-
padding: 10px;
|
|
14
13
|
max-height: 500px;
|
|
15
14
|
overflow-y: auto;
|
|
15
|
+
padding: 10px;
|
|
16
16
|
`;
|
|
17
17
|
const Row = styled.div `
|
|
18
|
-
outline: none;
|
|
19
18
|
display: flex;
|
|
20
19
|
flex-direction: row;
|
|
21
20
|
margin: 0;
|
|
21
|
+
outline: none;
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
:nth-child(odd) {
|
|
24
24
|
background: #fafafa;
|
|
25
25
|
}
|
|
26
26
|
`;
|
|
27
27
|
const Multiplicity = styled.div `
|
|
28
|
-
flex: 2;
|
|
29
|
-
display: flex;
|
|
30
28
|
align-items: center;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex: 2;
|
|
31
31
|
justify-content: center;
|
|
32
32
|
padding: 0 20px;
|
|
33
33
|
`;
|
|
34
34
|
const LoaderContainer = styled.div `
|
|
35
|
-
display: flex;
|
|
36
35
|
align-items: center;
|
|
37
|
-
|
|
36
|
+
display: flex;
|
|
38
37
|
flex-direction: column;
|
|
38
|
+
justify-content: center;
|
|
39
39
|
user-select: none;
|
|
40
40
|
|
|
41
41
|
svg {
|
|
42
|
-
animation-name: spin-animation;
|
|
43
|
-
animation-iteration-count: infinite;
|
|
44
|
-
animation-fill-mode: forwards;
|
|
45
42
|
animation-direction: inherit;
|
|
46
|
-
animation-timing-function: linear;
|
|
47
43
|
animation-duration: 1s;
|
|
48
|
-
|
|
44
|
+
animation-fill-mode: forwards;
|
|
45
|
+
animation-iteration-count: infinite;
|
|
46
|
+
animation-name: spin-animation;
|
|
47
|
+
animation-timing-function: linear;
|
|
49
48
|
height: 100px;
|
|
49
|
+
width: 100px;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
@keyframes spin-animation {
|
|
@@ -20,15 +20,15 @@ const DialogBody = styled(StyledDialogBody) `
|
|
|
20
20
|
|
|
21
21
|
.warning {
|
|
22
22
|
color: #c40000;
|
|
23
|
-
font-weight: bold;
|
|
24
23
|
font-size: 13px;
|
|
25
|
-
|
|
24
|
+
font-weight: bold;
|
|
26
25
|
margin-top: 30px;
|
|
26
|
+
text-align: justify;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.warning-container {
|
|
30
|
-
margin-top: 5px;
|
|
31
30
|
display: flex;
|
|
31
|
+
margin-top: 5px;
|
|
32
32
|
|
|
33
33
|
input {
|
|
34
34
|
margin: 5px 5px 5px 0;
|
|
@@ -36,8 +36,8 @@ const DialogBody = styled(StyledDialogBody) `
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.header {
|
|
39
|
-
padding: 0;
|
|
40
39
|
margin: 0 30%;
|
|
40
|
+
padding: 0;
|
|
41
41
|
width: 40%;
|
|
42
42
|
}
|
|
43
43
|
`;
|
|
@@ -14,10 +14,10 @@ import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
|
14
14
|
import { usePanelPreferences } from '../hooks/usePanelPreferences.js';
|
|
15
15
|
import useSpectrum from '../hooks/useSpectrum.js';
|
|
16
16
|
const Body = styled.div `
|
|
17
|
+
border: 1px solid #e9e9e9;
|
|
18
|
+
min-height: 180px;
|
|
17
19
|
padding: 5px;
|
|
18
20
|
width: 100%;
|
|
19
|
-
min-height: 180px;
|
|
20
|
-
border: 1px solid #e9e9e9;
|
|
21
21
|
`;
|
|
22
22
|
const labelStyle = {
|
|
23
23
|
label: {
|
|
@@ -27,8 +27,8 @@ const CustomDialogBody = styled(StyledDialogBody) `
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
span.title {
|
|
30
|
-
font-weight: bold;
|
|
31
30
|
color: #ea580c;
|
|
31
|
+
font-weight: bold;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
span.content {
|
|
@@ -51,18 +51,18 @@ const CustomDialogBody = styled(StyledDialogBody) `
|
|
|
51
51
|
}
|
|
52
52
|
`;
|
|
53
53
|
const InfoBlock = styled.div `
|
|
54
|
+
align-items: center;
|
|
54
55
|
display: flex;
|
|
55
56
|
flex-direction: column;
|
|
56
|
-
align-items: center;
|
|
57
57
|
`;
|
|
58
58
|
const Container = styled.div `
|
|
59
59
|
padding: 20px;
|
|
60
60
|
`;
|
|
61
61
|
const Separator = styled.span `
|
|
62
62
|
border-bottom: 1px solid gray;
|
|
63
|
-
width: 15px;
|
|
64
63
|
height: 1px;
|
|
65
64
|
margin: 10px 0;
|
|
65
|
+
width: 15px;
|
|
66
66
|
`;
|
|
67
67
|
function AboutUsModal() {
|
|
68
68
|
const [isOpenDialog, openDialog, closeDialog] = useOnOff(false);
|
|
@@ -25,9 +25,9 @@ function getValidationSchema(option) {
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
const ManualContainer = styled.div `
|
|
28
|
-
padding: 30px 5px;
|
|
29
28
|
display: flex;
|
|
30
29
|
justify-content: center;
|
|
30
|
+
padding: 30px 5px;
|
|
31
31
|
`;
|
|
32
32
|
export function ChangeSumModalContents(props) {
|
|
33
33
|
const { sumOptions, onSave, onClose } = props;
|
|
@@ -11,26 +11,26 @@ const Container = styled.div `
|
|
|
11
11
|
flex-grow: 1;
|
|
12
12
|
`;
|
|
13
13
|
const SelectionContainer = styled.div `
|
|
14
|
-
width: 450px;
|
|
15
14
|
display: block;
|
|
16
15
|
margin: 0 auto;
|
|
16
|
+
width: 450px;
|
|
17
17
|
`;
|
|
18
18
|
const Title = styled.p `
|
|
19
19
|
padding: 0 10px;
|
|
20
|
-
width: 100%;
|
|
21
20
|
text-align: center;
|
|
21
|
+
width: 100%;
|
|
22
22
|
`;
|
|
23
23
|
const SumValue = styled.p `
|
|
24
24
|
margin-top: 15px;
|
|
25
25
|
padding: 0 10px;
|
|
26
|
-
width: 100%;
|
|
27
26
|
text-align: center;
|
|
27
|
+
width: 100%;
|
|
28
28
|
`;
|
|
29
29
|
const EmptyText = styled.p `
|
|
30
|
-
|
|
30
|
+
color: ${({ color }) => color};
|
|
31
31
|
padding: 20%;
|
|
32
32
|
text-align: center;
|
|
33
|
-
|
|
33
|
+
width: 100%;
|
|
34
34
|
`;
|
|
35
35
|
export default function SelectMolecule(props) {
|
|
36
36
|
const { name, control } = props;
|