nmrium 0.28.0 → 0.29.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.
Files changed (118) hide show
  1. package/lib/component/1d/database/DatabaseSpectrum.js +9 -6
  2. package/lib/component/1d/database/ResurrectedDatabaseRanges.js +8 -6
  3. package/lib/component/2d/Contours.js +8 -8
  4. package/lib/component/context/PreferencesContext.d.ts +0 -2
  5. package/lib/component/elements/CheckBox.js +1 -1
  6. package/lib/component/elements/CheckBoxCell.d.ts +3 -0
  7. package/lib/component/elements/CheckBoxCell.js +8 -0
  8. package/lib/component/elements/formik/FormikCheckBox.d.ts +2 -1
  9. package/lib/component/elements/formik/FormikCheckBox.js +4 -2
  10. package/lib/component/header/BaseLineCorrectionPanel.js +6 -5
  11. package/lib/component/hooks/useActiveSpectrumStyleOptions.js +1 -1
  12. package/lib/component/hooks/useCheckToolsVisibility.js +1 -1
  13. package/lib/component/modal/changeSum/ChangeSumModal.js +2 -2
  14. package/lib/component/modal/setting/DatabasesTabContent.js +3 -3
  15. package/lib/component/modal/setting/DisplayTabContent.d.ts +1 -5
  16. package/lib/component/modal/setting/DisplayTabContent.js +5 -14
  17. package/lib/component/modal/setting/GeneralSettings.js +19 -12
  18. package/lib/component/modal/setting/GeneralTabContent.d.ts +3 -0
  19. package/lib/component/modal/setting/{ControllersTabContent.js → GeneralTabContent.js} +3 -3
  20. package/lib/component/modal/setting/ToolsTabContent.d.ts +3 -0
  21. package/lib/component/modal/setting/ToolsTabContent.js +100 -0
  22. package/lib/component/panels/Panels.js +7 -4
  23. package/lib/component/panels/databasePanel/DatabasePanel.js +2 -2
  24. package/lib/component/reducer/actions/FiltersActions.js +11 -8
  25. package/lib/component/reducer/preferences/actions/addWorkspace.js +2 -2
  26. package/lib/component/reducer/preferences/actions/initPreferences.js +4 -4
  27. package/lib/component/reducer/preferences/actions/removeWorkspace.js +1 -1
  28. package/lib/component/reducer/preferences/actions/setPanelsPreferences.js +1 -1
  29. package/lib/component/reducer/preferences/actions/setPreferences.js +13 -16
  30. package/lib/component/reducer/preferences/actions/setWorkspace.js +1 -1
  31. package/lib/component/reducer/preferences/preferencesReducer.d.ts +2 -44
  32. package/lib/component/reducer/preferences/preferencesReducer.js +0 -3
  33. package/lib/component/reducer/preferences/{utilites → utilities}/checkKeysExists.d.ts +0 -0
  34. package/lib/component/reducer/preferences/{utilites → utilities}/checkKeysExists.js +0 -0
  35. package/lib/component/reducer/preferences/{utilites → utilities}/filterObject.d.ts +0 -0
  36. package/lib/component/reducer/preferences/{utilites → utilities}/filterObject.js +0 -0
  37. package/lib/component/reducer/preferences/{utilites → utilities}/flatObject.d.ts +0 -0
  38. package/lib/component/reducer/preferences/{utilites → utilities}/flatObject.js +0 -0
  39. package/lib/component/reducer/preferences/{utilites → utilities}/getActiveWorkspace.d.ts +2 -1
  40. package/lib/component/reducer/preferences/{utilites → utilities}/getActiveWorkspace.js +0 -0
  41. package/lib/component/reducer/preferences/{utilites → utilities}/getPreferencesByWorkspace.d.ts +2 -1
  42. package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js +6 -0
  43. package/lib/component/reducer/preferences/{utilites → utilities}/mapNucleiFormatting.d.ts +0 -0
  44. package/lib/component/reducer/preferences/{utilites → utilities}/mapNucleiFormatting.js +0 -0
  45. package/lib/component/utility/Evaluate.js +1 -0
  46. package/lib/component/workspaces/Workspace.d.ts +12 -8
  47. package/lib/component/workspaces/basic.d.ts +2 -2
  48. package/lib/component/workspaces/basic.js +18 -39
  49. package/lib/component/workspaces/embedded.d.ts +2 -2
  50. package/lib/component/workspaces/embedded.js +19 -12
  51. package/lib/component/workspaces/exercise.d.ts +2 -2
  52. package/lib/component/workspaces/exercise.js +4 -33
  53. package/lib/component/workspaces/index.d.ts +5 -5
  54. package/lib/component/workspaces/prediction.d.ts +2 -2
  55. package/lib/component/workspaces/prediction.js +19 -16
  56. package/lib/component/workspaces/process1D.d.ts +2 -2
  57. package/lib/component/workspaces/process1D.js +12 -18
  58. package/lib/component/workspaces/workspaceDefaultProperties.d.ts +2 -0
  59. package/lib/component/workspaces/workspaceDefaultProperties.js +71 -0
  60. package/lib/data/data1d/MultipleAnalysis.js +1 -0
  61. package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.js +1 -1
  62. package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +11 -12
  63. package/lib/data/data1d/database.js +3 -10
  64. package/lib/data/data1d/filter1d/autoPhaseCorrection.js +1 -1
  65. package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +14 -10
  66. package/lib/types/PanelPreferencesType.d.ts +1 -7
  67. package/lib/versionInfo.js +1 -1
  68. package/lib-cjs/component/1d/database/DatabaseSpectrum.js +9 -6
  69. package/lib-cjs/component/1d/database/ResurrectedDatabaseRanges.js +8 -6
  70. package/lib-cjs/component/2d/Contours.js +8 -8
  71. package/lib-cjs/component/elements/CheckBox.js +1 -1
  72. package/lib-cjs/component/elements/CheckBoxCell.js +15 -0
  73. package/lib-cjs/component/elements/formik/FormikCheckBox.js +4 -2
  74. package/lib-cjs/component/header/BaseLineCorrectionPanel.js +6 -5
  75. package/lib-cjs/component/hooks/useActiveSpectrumStyleOptions.js +1 -1
  76. package/lib-cjs/component/hooks/useCheckToolsVisibility.js +1 -1
  77. package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +2 -2
  78. package/lib-cjs/component/modal/setting/DatabasesTabContent.js +3 -3
  79. package/lib-cjs/component/modal/setting/DisplayTabContent.js +5 -14
  80. package/lib-cjs/component/modal/setting/GeneralSettings.js +19 -12
  81. package/lib-cjs/component/modal/setting/{ControllersTabContent.js → GeneralTabContent.js} +3 -3
  82. package/lib-cjs/component/modal/setting/ToolsTabContent.js +105 -0
  83. package/lib-cjs/component/panels/Panels.js +7 -4
  84. package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +2 -2
  85. package/lib-cjs/component/reducer/actions/FiltersActions.js +11 -8
  86. package/lib-cjs/component/reducer/preferences/actions/addWorkspace.js +2 -2
  87. package/lib-cjs/component/reducer/preferences/actions/initPreferences.js +4 -4
  88. package/lib-cjs/component/reducer/preferences/actions/removeWorkspace.js +1 -1
  89. package/lib-cjs/component/reducer/preferences/actions/setPanelsPreferences.js +1 -1
  90. package/lib-cjs/component/reducer/preferences/actions/setPreferences.js +16 -16
  91. package/lib-cjs/component/reducer/preferences/actions/setWorkspace.js +1 -1
  92. package/lib-cjs/component/reducer/preferences/preferencesReducer.js +0 -3
  93. package/lib-cjs/component/reducer/preferences/{utilites → utilities}/checkKeysExists.js +0 -0
  94. package/lib-cjs/component/reducer/preferences/{utilites → utilities}/filterObject.js +0 -0
  95. package/lib-cjs/component/reducer/preferences/{utilites → utilities}/flatObject.js +0 -0
  96. package/lib-cjs/component/reducer/preferences/{utilites → utilities}/getActiveWorkspace.js +0 -0
  97. package/lib-cjs/component/reducer/preferences/{utilites → utilities}/getPreferencesByWorkspace.js +3 -1
  98. package/lib-cjs/component/reducer/preferences/{utilites → utilities}/mapNucleiFormatting.js +0 -0
  99. package/lib-cjs/component/utility/Evaluate.js +1 -0
  100. package/lib-cjs/component/workspaces/basic.js +18 -39
  101. package/lib-cjs/component/workspaces/embedded.js +19 -12
  102. package/lib-cjs/component/workspaces/exercise.js +4 -33
  103. package/lib-cjs/component/workspaces/prediction.js +19 -16
  104. package/lib-cjs/component/workspaces/process1D.js +12 -18
  105. package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +74 -0
  106. package/lib-cjs/data/data1d/MultipleAnalysis.js +1 -0
  107. package/lib-cjs/data/data1d/Spectrum1D/convertDataToFloat64Array.js +1 -1
  108. package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +11 -12
  109. package/lib-cjs/data/data1d/database.js +3 -10
  110. package/lib-cjs/data/data1d/filter1d/autoPhaseCorrection.js +1 -1
  111. package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +14 -10
  112. package/lib-cjs/versionInfo.js +1 -1
  113. package/package.json +15 -14
  114. package/lib/component/modal/setting/ControllersTabContent.d.ts +0 -3
  115. package/lib/component/reducer/preferences/actions/resetPreferences.d.ts +0 -3
  116. package/lib/component/reducer/preferences/actions/resetPreferences.js +0 -14
  117. package/lib/component/reducer/preferences/utilites/getPreferencesByWorkspace.js +0 -4
  118. package/lib-cjs/component/reducer/preferences/actions/resetPreferences.js +0 -18
@@ -1,10 +1,10 @@
1
1
  import lodashMerge from 'lodash/merge';
2
2
  import { getLocalStorage, storeData } from '../../../utility/LocalStorage';
3
3
  import Workspaces from '../../../workspaces';
4
- import { checkKeysExists } from '../utilites/checkKeysExists';
5
- import { filterObject } from '../utilites/filterObject';
6
- import { getActiveWorkspace } from '../utilites/getActiveWorkspace';
7
- import { getPreferencesByWorkspace } from '../utilites/getPreferencesByWorkspace';
4
+ import { checkKeysExists } from '../utilities/checkKeysExists';
5
+ import { filterObject } from '../utilities/filterObject';
6
+ import { getActiveWorkspace } from '../utilities/getActiveWorkspace';
7
+ import { getPreferencesByWorkspace } from '../utilities/getPreferencesByWorkspace';
8
8
  export function initPreferences(draft, action) {
9
9
  if (action.payload) {
10
10
  const localData = getLocalStorage('nmr-general-settings');
@@ -1,6 +1,6 @@
1
1
  import { original } from 'immer';
2
2
  import { getLocalStorage, storeData } from '../../../utility/LocalStorage';
3
- import { filterObject } from '../utilites/filterObject';
3
+ import { filterObject } from '../utilities/filterObject';
4
4
  export function removeWorkspace(draft, action) {
5
5
  const { workspace } = action.payload;
6
6
  if (workspace === draft.workspace.current) {
@@ -1,5 +1,5 @@
1
1
  import { getLocalStorage, storeData } from '../../../utility/LocalStorage';
2
- import { getActiveWorkspace } from '../utilites/getActiveWorkspace';
2
+ import { getActiveWorkspace } from '../utilities/getActiveWorkspace';
3
3
  export function setPanelsPreferences(draft, action) {
4
4
  if (action.payload) {
5
5
  const currentWorkspacePreferences = getActiveWorkspace(draft);
@@ -1,10 +1,11 @@
1
+ import lodashMerge from 'lodash/merge';
1
2
  import { getLocalStorage, storeData } from '../../../utility/LocalStorage';
2
- import { getActiveWorkspace } from '../utilites/getActiveWorkspace';
3
- import { mapNucleiFormatting } from '../utilites/mapNucleiFormatting';
3
+ import { getActiveWorkspace } from '../utilities/getActiveWorkspace';
4
+ import { mapNucleiFormatting } from '../utilities/mapNucleiFormatting';
4
5
  export function setPreferences(draft, action) {
5
6
  if (action.payload) {
6
- const currentWorkspacePreferences = getActiveWorkspace(draft);
7
- let { controllers, formatting, display, databases } = action.payload;
7
+ let currentWorkspacePreferences = getActiveWorkspace(draft);
8
+ let { general, formatting, display, databases } = action.payload;
8
9
  formatting = mapNucleiFormatting(formatting);
9
10
  let localData = getLocalStorage('nmr-general-settings');
10
11
  localData.currentWorkspace = draft.workspace.current;
@@ -12,23 +13,19 @@ export function setPreferences(draft, action) {
12
13
  ...localData.workspaces,
13
14
  [draft.workspace.current]: {
14
15
  ...localData.workspaces[draft.workspace.current],
15
- controllers,
16
+ general,
16
17
  formatting,
17
18
  display,
18
19
  databases,
19
20
  },
20
21
  };
21
22
  storeData('nmr-general-settings', JSON.stringify(localData));
22
- currentWorkspacePreferences.controllers = controllers;
23
- currentWorkspacePreferences.formatting = formatting;
24
- currentWorkspacePreferences.databases = databases;
25
- currentWorkspacePreferences.display = {
26
- ...currentWorkspacePreferences.display,
27
- panels: display.panels,
28
- general: {
29
- ...(currentWorkspacePreferences.display.general || {}),
30
- experimentalFeatures: display.general.experimentalFeatures,
31
- },
32
- };
23
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
24
+ currentWorkspacePreferences = lodashMerge(currentWorkspacePreferences, {
25
+ general,
26
+ formatting,
27
+ databases,
28
+ display,
29
+ });
33
30
  }
34
31
  }
@@ -1,4 +1,4 @@
1
- import { getPreferencesByWorkspace } from '../utilites/getPreferencesByWorkspace';
1
+ import { getPreferencesByWorkspace } from '../utilities/getPreferencesByWorkspace';
2
2
  export function setWorkspace(draft, action) {
3
3
  const workspaceKey = action.payload.workspace;
4
4
  if (!draft.workspaces[workspaceKey]) {
@@ -18,7 +18,7 @@ export declare type AddWorkspaceAction = ActionType<'ADD_WORKSPACE', {
18
18
  workspace: string;
19
19
  data: Omit<Workspace, 'version' | 'label'>;
20
20
  }>;
21
- declare type PreferencesActions = InitPreferencesAction | SetPreferencesAction | ActionType<'RESET_PREFERENCES'> | SetPanelsPreferencesAction | WorkspaceAction | AddWorkspaceAction;
21
+ declare type PreferencesActions = InitPreferencesAction | SetPreferencesAction | SetPanelsPreferencesAction | WorkspaceAction | AddWorkspaceAction;
22
22
  export declare const WORKSPACES: Array<{
23
23
  key: NMRiumWorkspace;
24
24
  label: string;
@@ -48,9 +48,6 @@ declare const preferencesReducer: (base: {
48
48
  readonly experimentalFeatures?: {
49
49
  readonly display: boolean;
50
50
  readonly open?: boolean | undefined;
51
- readonly hidden?: false | undefined;
52
- } | {
53
- readonly hidden: true;
54
51
  } | undefined;
55
52
  readonly hidePanelOnLoad?: boolean | undefined;
56
53
  readonly initialPanelWidth?: import("analysis-ui-components/lib-esm/components/SplitPane").InitialSeparation | undefined;
@@ -59,93 +56,54 @@ declare const preferencesReducer: (base: {
59
56
  readonly spectraPanel?: {
60
57
  readonly display: boolean;
61
58
  readonly open?: boolean | undefined;
62
- readonly hidden?: false | undefined;
63
- } | {
64
- readonly hidden: true;
65
59
  } | undefined;
66
60
  readonly informationPanel?: {
67
61
  readonly display: boolean;
68
62
  readonly open?: boolean | undefined;
69
- readonly hidden?: false | undefined;
70
- } | {
71
- readonly hidden: true;
72
63
  } | undefined;
73
64
  readonly peaksPanel?: {
74
65
  readonly display: boolean;
75
66
  readonly open?: boolean | undefined;
76
- readonly hidden?: false | undefined;
77
- } | {
78
- readonly hidden: true;
79
67
  } | undefined;
80
68
  readonly integralsPanel?: {
81
69
  readonly display: boolean;
82
70
  readonly open?: boolean | undefined;
83
- readonly hidden?: false | undefined;
84
- } | {
85
- readonly hidden: true;
86
71
  } | undefined;
87
72
  readonly rangesPanel?: {
88
73
  readonly display: boolean;
89
74
  readonly open?: boolean | undefined;
90
- readonly hidden?: false | undefined;
91
- } | {
92
- readonly hidden: true;
93
75
  } | undefined;
94
76
  readonly structuresPanel?: {
95
77
  readonly display: boolean;
96
78
  readonly open?: boolean | undefined;
97
- readonly hidden?: false | undefined;
98
- } | {
99
- readonly hidden: true;
100
79
  } | undefined;
101
80
  readonly filtersPanel?: {
102
81
  readonly display: boolean;
103
82
  readonly open?: boolean | undefined;
104
- readonly hidden?: false | undefined;
105
- } | {
106
- readonly hidden: true;
107
83
  } | undefined;
108
84
  readonly zonesPanel?: {
109
85
  readonly display: boolean;
110
86
  readonly open?: boolean | undefined;
111
- readonly hidden?: false | undefined;
112
- } | {
113
- readonly hidden: true;
114
87
  } | undefined;
115
88
  readonly summaryPanel?: {
116
89
  readonly display: boolean;
117
90
  readonly open?: boolean | undefined;
118
- readonly hidden?: false | undefined;
119
- } | {
120
- readonly hidden: true;
121
91
  } | undefined;
122
92
  readonly multipleSpectraAnalysisPanel?: {
123
93
  readonly display: boolean;
124
94
  readonly open?: boolean | undefined;
125
- readonly hidden?: false | undefined;
126
- } | {
127
- readonly hidden: true;
128
95
  } | undefined;
129
96
  readonly databasePanel?: {
130
97
  readonly display: boolean;
131
98
  readonly open?: boolean | undefined;
132
- readonly hidden?: false | undefined;
133
- } | {
134
- readonly hidden: true;
135
99
  } | undefined;
136
100
  readonly predictionPanel?: {
137
101
  readonly display: boolean;
138
102
  readonly open?: boolean | undefined;
139
- readonly hidden?: false | undefined;
140
- } | {
141
- readonly hidden: true;
142
103
  } | undefined;
143
104
  readonly automaticAssignmentPanel?: {
144
105
  readonly display: boolean;
145
106
  readonly open?: boolean | undefined;
146
- readonly hidden?: false | undefined;
147
- } | {
148
- readonly hidden: true;
149
107
  } | undefined;
150
108
  } | undefined;
151
109
  readonly toolBarButtons?: {
@@ -169,7 +127,7 @@ declare const preferencesReducer: (base: {
169
127
  readonly exclusionZonesTool?: boolean | undefined;
170
128
  } | undefined;
171
129
  };
172
- readonly controllers: {
130
+ readonly general: {
173
131
  readonly dimmedSpectraTransparency: number;
174
132
  };
175
133
  readonly formatting: {
@@ -4,7 +4,6 @@ import Workspaces from '../../workspaces';
4
4
  import { addWorkspace } from './actions/addWorkspace';
5
5
  import { initPreferences } from './actions/initPreferences';
6
6
  import { removeWorkspace } from './actions/removeWorkspace';
7
- import { resetPreferences } from './actions/resetPreferences';
8
7
  import { setPanelsPreferences } from './actions/setPanelsPreferences';
9
8
  import { setPreferences } from './actions/setPreferences';
10
9
  import { setWorkspace } from './actions/setWorkspace';
@@ -64,8 +63,6 @@ function innerPreferencesReducer(draft, action) {
64
63
  return setPreferences(draft, action);
65
64
  case 'SET_PANELS_PREFERENCES':
66
65
  return setPanelsPreferences(draft, action);
67
- case 'RESET_PREFERENCES':
68
- return resetPreferences(draft);
69
66
  case 'SET_WORKSPACE':
70
67
  return setWorkspace(draft, action);
71
68
  case 'ADD_WORKSPACE':
@@ -1,3 +1,4 @@
1
1
  import { Draft } from 'immer';
2
+ import { Workspace } from '../../../workspaces/Workspace';
2
3
  import { PreferencesState } from '../preferencesReducer';
3
- export declare function getActiveWorkspace(draft: Draft<PreferencesState>): import("immer/dist/internal").WritableDraft<import("../../../workspaces/Workspace").Workspace>;
4
+ export declare function getActiveWorkspace(draft: Draft<PreferencesState>): Required<Workspace>;
@@ -1,2 +1,3 @@
1
1
  import { NMRiumWorkspace } from '../../../NMRium';
2
- export declare function getPreferencesByWorkspace(workspace: NMRiumWorkspace): import("../../../workspaces/Workspace").Workspace;
2
+ import { Workspace } from '../../../workspaces/Workspace';
3
+ export declare function getPreferencesByWorkspace(workspace: NMRiumWorkspace): Workspace;
@@ -0,0 +1,6 @@
1
+ import lodashMerge from 'lodash/merge';
2
+ import Workspaces from '../../../workspaces';
3
+ import { workspaceDefaultProperties } from '../../../workspaces/workspaceDefaultProperties';
4
+ export function getPreferencesByWorkspace(workspace) {
5
+ return lodashMerge({}, workspaceDefaultProperties, Workspaces?.[workspace]);
6
+ }
@@ -1,5 +1,6 @@
1
1
  export default function calculate(code, args = null) {
2
2
  try {
3
+ // eslint-disable-next-line no-new-func
3
4
  return new Function('args', `return ${code}`)(args);
4
5
  }
5
6
  catch (e) {
@@ -4,7 +4,7 @@ interface NucleusFormat {
4
4
  ppm: string;
5
5
  hz: string;
6
6
  }
7
- interface Controllers {
7
+ interface GeneralPreferences {
8
8
  dimmedSpectraTransparency: number;
9
9
  }
10
10
  interface ColumnPreferences {
@@ -82,16 +82,20 @@ export interface Database {
82
82
  url: string;
83
83
  enabled: boolean;
84
84
  }
85
+ export interface WorkspaceMeta {
86
+ version: number;
87
+ label: string;
88
+ }
85
89
  export interface Databases {
86
90
  data: Database[];
87
91
  defaultDatabase: string;
88
92
  }
89
- export interface Workspace {
90
- version: number;
91
- label: string;
92
- display: NMRiumPreferences;
93
- controllers: Controllers;
94
- formatting: Formatting;
95
- databases: Databases;
93
+ export interface WorkspaceData {
94
+ display?: NMRiumPreferences;
95
+ general?: GeneralPreferences;
96
+ formatting?: Formatting;
97
+ databases?: Databases;
96
98
  }
99
+ export declare type InnerWorkspace = WorkspaceMeta & WorkspaceData;
100
+ export declare type Workspace = WorkspaceMeta & Required<WorkspaceData>;
97
101
  export {};
@@ -1,2 +1,2 @@
1
- import { Workspace } from './Workspace';
2
- export declare const basic: Workspace;
1
+ import { InnerWorkspace } from './Workspace';
2
+ export declare const basic: InnerWorkspace;
@@ -1,55 +1,34 @@
1
1
  export const basic = {
2
- version: 1,
2
+ version: 2,
3
3
  label: 'Default workspace',
4
4
  display: {
5
- general: {
6
- disableMultipletAnalysis: false,
7
- hideSetSumFromMolecule: false,
8
- hideGeneralSettings: false,
9
- experimentalFeatures: { display: false },
10
- },
11
5
  panels: {
12
6
  spectraPanel: { display: true, open: true },
13
7
  informationPanel: { display: true, open: false },
14
- peaksPanel: { display: false, open: false },
8
+ peaksPanel: { display: true, open: false },
15
9
  integralsPanel: { display: true, open: false },
16
10
  rangesPanel: { display: true, open: false },
17
11
  structuresPanel: { display: true, open: false },
18
12
  filtersPanel: { display: true, open: false },
19
13
  zonesPanel: { display: true, open: false },
20
- summaryPanel: { display: false, open: false },
21
- multipleSpectraAnalysisPanel: { display: false, open: false },
22
- databasePanel: { display: false, open: false },
23
- predictionPanel: { display: false, open: false },
24
- automaticAssignmentPanel: { display: false, open: false },
25
14
  },
26
15
  toolBarButtons: {
27
- peakTool: false,
16
+ zoomTool: true,
17
+ zoomOutTool: true,
18
+ import: true,
19
+ exportAs: true,
20
+ spectraStackAlignments: true,
21
+ spectraCenterAlignments: true,
22
+ realImaginary: true,
23
+ peakTool: true,
24
+ integralTool: true,
25
+ zonePickingTool: true,
26
+ rangePickingTool: true,
27
+ slicingTool: true,
28
+ zeroFillingTool: true,
29
+ FFTTool: true,
30
+ phaseCorrectionTool: true,
31
+ baselineCorrectionTool: true,
28
32
  },
29
33
  },
30
- controllers: {
31
- dimmedSpectraTransparency: 0.1,
32
- },
33
- formatting: {
34
- nuclei: {
35
- '1h': { name: '1H', ppm: '0.00', hz: '0.00' },
36
- '13c': { name: '13C', ppm: '0.00', hz: '0.00' },
37
- '15n': { name: '15N', ppm: '0.00', hz: '0.00' },
38
- '19f': { name: '19F', ppm: '0.00', hz: '0.00' },
39
- '29si': { name: '29Si', ppm: '0.00', hz: '0.00' },
40
- '31p': { name: '31P', ppm: '0.00', hz: '0.00' },
41
- },
42
- panels: {},
43
- },
44
- databases: {
45
- defaultDatabase: '',
46
- data: [
47
- {
48
- key: 'toc',
49
- label: 'Toc',
50
- url: 'https://data.cheminfo.org/nmr/database/toc.json',
51
- enabled: true,
52
- },
53
- ],
54
- },
55
34
  };
@@ -1,2 +1,2 @@
1
- import { Workspace } from './Workspace';
2
- export declare const embedded: Workspace;
1
+ import { InnerWorkspace } from './Workspace';
2
+ export declare const embedded: InnerWorkspace;
@@ -1,12 +1,8 @@
1
- import { basic } from './basic';
2
1
  export const embedded = {
3
2
  version: 1,
4
3
  label: 'Embedded workspace',
5
4
  display: {
6
5
  general: {
7
- disableMultipletAnalysis: false,
8
- hideSetSumFromMolecule: false,
9
- hideGeneralSettings: false,
10
6
  experimentalFeatures: { display: true },
11
7
  hidePanelOnLoad: true,
12
8
  },
@@ -19,14 +15,25 @@ export const embedded = {
19
15
  structuresPanel: { display: true, open: false },
20
16
  filtersPanel: { display: true, open: false },
21
17
  zonesPanel: { display: true, open: false },
22
- summaryPanel: { display: false, open: false },
23
- multipleSpectraAnalysisPanel: { display: false, open: false },
24
- databasePanel: { display: false, open: false },
25
- predictionPanel: { display: false, open: false },
26
- automaticAssignmentPanel: { display: false, open: false },
18
+ },
19
+ toolBarButtons: {
20
+ baselineCorrectionTool: true,
21
+ exclusionZonesTool: true,
22
+ exportAs: true,
23
+ FFTTool: true,
24
+ import: true,
25
+ integralTool: true,
26
+ multipleSpectraAnalysisTool: true,
27
+ phaseCorrectionTool: true,
28
+ rangePickingTool: true,
29
+ realImaginary: true,
30
+ slicingTool: true,
31
+ spectraCenterAlignments: true,
32
+ spectraStackAlignments: true,
33
+ zeroFillingTool: true,
34
+ zonePickingTool: true,
35
+ zoomOutTool: true,
36
+ zoomTool: true,
27
37
  },
28
38
  },
29
- controllers: basic.controllers,
30
- formatting: basic.formatting,
31
- databases: basic.databases,
32
39
  };
@@ -1,2 +1,2 @@
1
- import { Workspace } from './Workspace';
2
- export declare const exercise: Workspace;
1
+ import { InnerWorkspace } from './Workspace';
2
+ export declare const exercise: InnerWorkspace;
@@ -1,4 +1,3 @@
1
- import { basic } from './basic';
2
1
  export const exercise = {
3
2
  version: 1,
4
3
  label: 'Exercise workspace',
@@ -7,45 +6,17 @@ export const exercise = {
7
6
  disableMultipletAnalysis: true,
8
7
  hideSetSumFromMolecule: true,
9
8
  hideGeneralSettings: true,
10
- experimentalFeatures: { hidden: true },
11
9
  },
12
10
  panels: {
13
11
  spectraPanel: { display: true, open: true },
14
- informationPanel: { hidden: true },
15
- peaksPanel: { hidden: true },
16
12
  integralsPanel: { display: true },
17
- rangesPanel: { hidden: true },
18
- structuresPanel: { hidden: true },
19
- filtersPanel: { hidden: true },
20
- zonesPanel: { hidden: true },
21
- summaryPanel: { hidden: true },
22
- multipleSpectraAnalysisPanel: { hidden: true },
23
- databasePanel: { hidden: true },
24
- predictionPanel: { hidden: true },
25
- automaticAssignmentPanel: { hidden: true },
26
13
  },
27
14
  toolBarButtons: {
28
- zoomTool: true,
29
- zoomOutTool: true,
30
- import: false,
31
- exportAs: false,
32
- spectraStackAlignments: true,
33
- spectraCenterAlignments: true,
34
- realImaginary: false,
35
- peakTool: true,
36
15
  integralTool: true,
37
- zonePickingTool: false,
38
- slicingTool: false,
39
- rangePickingTool: false,
40
- zeroFillingTool: false,
41
- phaseCorrectionTool: false,
42
- baselineCorrectionTool: false,
43
- FFTTool: false,
44
- multipleSpectraAnalysisTool: false,
45
- exclusionZonesTool: false,
16
+ spectraCenterAlignments: true,
17
+ spectraStackAlignments: true,
18
+ zoomOutTool: true,
19
+ zoomTool: true,
46
20
  },
47
21
  },
48
- controllers: basic.controllers,
49
- formatting: basic.formatting,
50
- databases: basic.databases,
51
22
  };
@@ -1,8 +1,8 @@
1
1
  declare const _default: {
2
- exercise: import("./Workspace").Workspace;
3
- default: import("./Workspace").Workspace;
4
- process1D: import("./Workspace").Workspace;
5
- prediction: import("./Workspace").Workspace;
6
- embedded: import("./Workspace").Workspace;
2
+ exercise: import("./Workspace").InnerWorkspace;
3
+ default: import("./Workspace").InnerWorkspace;
4
+ process1D: import("./Workspace").InnerWorkspace;
5
+ prediction: import("./Workspace").InnerWorkspace;
6
+ embedded: import("./Workspace").InnerWorkspace;
7
7
  };
8
8
  export default _default;
@@ -1,2 +1,2 @@
1
- import { Workspace } from './Workspace';
2
- export declare const prediction: Workspace;
1
+ import { InnerWorkspace } from './Workspace';
2
+ export declare const prediction: InnerWorkspace;
@@ -1,28 +1,31 @@
1
- import { basic } from './basic';
2
1
  export const prediction = {
3
2
  version: 1,
4
3
  label: 'Prediction workspace',
5
4
  display: {
6
- general: {
7
- experimentalFeatures: { display: false },
8
- },
9
5
  panels: {
10
6
  spectraPanel: { display: true },
11
7
  rangesPanel: { display: true },
12
8
  zonesPanel: { display: true },
13
9
  predictionPanel: { display: true, open: true },
14
- informationPanel: { display: false },
15
- peaksPanel: { display: false },
16
- integralsPanel: { display: false },
17
- structuresPanel: { display: false },
18
- filtersPanel: { display: false },
19
- summaryPanel: { display: false },
20
- multipleSpectraAnalysisPanel: { display: false },
21
- databasePanel: { display: false },
22
- automaticAssignmentPanel: { display: false },
10
+ },
11
+ toolBarButtons: {
12
+ baselineCorrectionTool: true,
13
+ exclusionZonesTool: true,
14
+ exportAs: true,
15
+ FFTTool: true,
16
+ import: true,
17
+ integralTool: true,
18
+ multipleSpectraAnalysisTool: true,
19
+ phaseCorrectionTool: true,
20
+ rangePickingTool: true,
21
+ realImaginary: true,
22
+ slicingTool: true,
23
+ spectraCenterAlignments: true,
24
+ spectraStackAlignments: true,
25
+ zeroFillingTool: true,
26
+ zonePickingTool: true,
27
+ zoomOutTool: true,
28
+ zoomTool: true,
23
29
  },
24
30
  },
25
- controllers: basic.controllers,
26
- formatting: basic.formatting,
27
- databases: basic.databases,
28
31
  };
@@ -1,2 +1,2 @@
1
- import { Workspace } from './Workspace';
2
- export declare const process1D: Workspace;
1
+ import { InnerWorkspace } from './Workspace';
2
+ export declare const process1D: InnerWorkspace;
@@ -1,4 +1,3 @@
1
- import { basic } from './basic';
2
1
  export const process1D = {
3
2
  version: 1,
4
3
  label: 'Process 1D workspace',
@@ -11,25 +10,20 @@ export const process1D = {
11
10
  summaryPanel: { display: true },
12
11
  multipleSpectraAnalysisPanel: { display: true, open: true },
13
12
  spectraPanel: { display: true, open: true },
14
- informationPanel: { hidden: true },
15
- peaksPanel: { hidden: true },
16
- integralsPanel: { hidden: true },
17
- rangesPanel: { hidden: true },
18
- structuresPanel: { hidden: true },
19
- filtersPanel: { hidden: true },
20
- databasePanel: { hidden: true },
21
- predictionPanel: { hidden: true },
22
- automaticAssignmentPanel: { hidden: true },
23
13
  },
24
14
  toolBarButtons: {
25
- import: false,
26
- exportAs: false,
27
- rangePickingTool: false,
28
- multipleSpectraAnalysisTool: false,
29
- exclusionZonesTool: false,
15
+ baselineCorrectionTool: true,
16
+ FFTTool: true,
17
+ integralTool: true,
18
+ phaseCorrectionTool: true,
19
+ realImaginary: true,
20
+ slicingTool: true,
21
+ spectraCenterAlignments: true,
22
+ spectraStackAlignments: true,
23
+ zeroFillingTool: true,
24
+ zonePickingTool: true,
25
+ zoomOutTool: true,
26
+ zoomTool: true,
30
27
  },
31
28
  },
32
- controllers: basic.controllers,
33
- formatting: basic.formatting,
34
- databases: basic.databases,
35
29
  };
@@ -0,0 +1,2 @@
1
+ import { WorkspaceData } from './Workspace';
2
+ export declare const workspaceDefaultProperties: Required<WorkspaceData>;