nmrium 0.43.0 → 0.44.1-pre.1694759092

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 (1253) hide show
  1. package/lib/component/1d/ApodizationLine.js +54 -25
  2. package/lib/component/1d/Chart1D.js +25 -20
  3. package/lib/component/1d/ExclusionZoneAnnotation.js +22 -17
  4. package/lib/component/1d/ExclusionZonesAnnotations.js +25 -21
  5. package/lib/component/1d/FooterBanner.js +38 -32
  6. package/lib/component/1d/Line.js +43 -15
  7. package/lib/component/1d/LinesSeries.js +16 -11
  8. package/lib/component/1d/SpectraLegends.js +29 -24
  9. package/lib/component/1d/Viewer1D.js +102 -74
  10. package/lib/component/1d/XAxis.js +40 -15
  11. package/lib/component/1d/YAxis.js +38 -13
  12. package/lib/component/1d/database/DatabaseElements.js +16 -11
  13. package/lib/component/1d/database/DatabaseSpectrum.js +45 -31
  14. package/lib/component/1d/database/ResurrectedDatabaseRanges.js +31 -25
  15. package/lib/component/1d/integral/Integral.d.ts +1 -2
  16. package/lib/component/1d/integral/Integral.js +14 -11
  17. package/lib/component/1d/integral/IntegralIndicator.js +10 -6
  18. package/lib/component/1d/integral/IntegralResizable.js +28 -23
  19. package/lib/component/1d/integral/IntegralsSeries.d.ts +1 -1
  20. package/lib/component/1d/integral/IntegralsSeries.js +19 -20
  21. package/lib/component/1d/jCouplingGraph/JGraph.js +30 -24
  22. package/lib/component/1d/jCouplingGraph/JGraphContext.js +9 -5
  23. package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js +12 -8
  24. package/lib/component/1d/jCouplingGraph/JsCoupling.js +10 -7
  25. package/lib/component/1d/jCouplingGraph/JsCouplingLinks.js +13 -10
  26. package/lib/component/1d/jCouplingGraph/JsCouplings.js +16 -10
  27. package/lib/component/1d/multiAnalysis/AnalysisRange.js +26 -21
  28. package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +19 -13
  29. package/lib/component/1d/multiplicityTree/LevelNode.js +8 -6
  30. package/lib/component/1d/multiplicityTree/MultiplicityTree.js +40 -33
  31. package/lib/component/1d/multiplicityTree/StringNode.js +7 -5
  32. package/lib/component/1d/multiplicityTree/TreeColors.js +4 -1
  33. package/lib/component/1d/multiplicityTree/TreeNodes.js +10 -8
  34. package/lib/component/1d/multiplicityTree/buildTreeNode.js +12 -7
  35. package/lib/component/1d/peaks/PeakAnnotations.d.ts +10 -1
  36. package/lib/component/1d/peaks/PeakAnnotations.js +26 -25
  37. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.d.ts +5 -2
  38. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +25 -42
  39. package/lib/component/1d/peaks/PeakEditionManager.js +60 -27
  40. package/lib/component/1d/peaks/Peaks.d.ts +31 -1
  41. package/lib/component/1d/peaks/Peaks.js +95 -18
  42. package/lib/component/1d/peaks/PeaksShapes.js +26 -21
  43. package/lib/component/1d/peaks/usePeakShapesPath.js +14 -10
  44. package/lib/component/1d/ranges/AssignmentActionsButtons.js +12 -5
  45. package/lib/component/1d/ranges/Range.js +36 -31
  46. package/lib/component/1d/ranges/RangeIntegral.js +10 -5
  47. package/lib/component/1d/ranges/Ranges.js +26 -22
  48. package/lib/component/1d/tool/BaseLineZones.js +12 -10
  49. package/lib/component/1d/tool/PeakPointer.js +29 -24
  50. package/lib/component/1d/tool/VerticalIndicator.js +11 -9
  51. package/lib/component/1d/tool/XLabelPointer.js +21 -19
  52. package/lib/component/1d/utilities/getDecimalsCount.d.ts +1 -0
  53. package/lib/component/1d/utilities/getDecimalsCount.js +10 -0
  54. package/lib/component/1d/utilities/intersectionResolver.js +9 -3
  55. package/lib/component/1d/utilities/scale.d.ts +28 -4
  56. package/lib/component/1d/utilities/scale.js +33 -13
  57. package/lib/component/1d-2d/components/FloatMoleculeStructures/ActionsButton.js +12 -6
  58. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts +2 -2
  59. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +39 -32
  60. package/lib/component/1d-2d/components/FloatMoleculeStructures/index.d.ts +2 -2
  61. package/lib/component/1d-2d/components/FloatMoleculeStructures/index.js +23 -15
  62. package/lib/component/1d-2d/components/SpectrumInfoBlock.js +20 -15
  63. package/lib/component/1d-2d/tools/BrushX.js +20 -17
  64. package/lib/component/1d-2d/tools/BrushXY.js +33 -29
  65. package/lib/component/1d-2d/tools/CrossLinePointer.js +26 -24
  66. package/lib/component/2d/1d-tracer/HorizontalSliceChart.js +40 -15
  67. package/lib/component/2d/1d-tracer/Left1DChart.js +39 -14
  68. package/lib/component/2d/1d-tracer/Top1DChart.js +39 -14
  69. package/lib/component/2d/1d-tracer/VerticalSliceChart.js +40 -15
  70. package/lib/component/2d/Chart2D.js +23 -17
  71. package/lib/component/2d/FooterBanner.js +59 -57
  72. package/lib/component/2d/SignalDeltaLine.js +15 -13
  73. package/lib/component/2d/SlicingView.js +24 -19
  74. package/lib/component/2d/Viewer2D.js +68 -40
  75. package/lib/component/2d/XAxis.js +43 -15
  76. package/lib/component/2d/YAxis.js +43 -15
  77. package/lib/component/2d/fid/FidCanvas.js +24 -17
  78. package/lib/component/2d/fid/FidContainer.js +26 -19
  79. package/lib/component/2d/ft/Contours.js +41 -35
  80. package/lib/component/2d/ft/FTContainer.js +15 -8
  81. package/lib/component/2d/tools/XYLabelPointer.js +46 -41
  82. package/lib/component/2d/utilities/DimensionLayout.js +6 -1
  83. package/lib/component/2d/utilities/SliceScale.js +12 -7
  84. package/lib/component/2d/utilities/scale.js +17 -11
  85. package/lib/component/2d/zones/IndicationLines.js +21 -19
  86. package/lib/component/2d/zones/Signal.d.ts +2 -9
  87. package/lib/component/2d/zones/Signal.js +30 -23
  88. package/lib/component/2d/zones/SignalCrosshair.js +19 -14
  89. package/lib/component/2d/zones/Zone.d.ts +1 -4
  90. package/lib/component/2d/zones/Zone.js +31 -24
  91. package/lib/component/2d/zones/Zones.js +19 -22
  92. package/lib/component/EventsTrackers/BrushTracker.js +28 -20
  93. package/lib/component/EventsTrackers/KeysListenerTracker.js +73 -55
  94. package/lib/component/EventsTrackers/MouseTracker.js +17 -12
  95. package/lib/component/assignment/AssignmentsContext.js +21 -16
  96. package/lib/component/assignment/AssignmentsReducer.js +15 -9
  97. package/lib/component/assignment/actions/initAssignment.js +8 -5
  98. package/lib/component/assignment/actions/removeAssignment.js +7 -2
  99. package/lib/component/assignment/actions/setActiveAssignment.js +4 -1
  100. package/lib/component/assignment/actions/toggleAssignment.js +6 -3
  101. package/lib/component/assignment/index.js +18 -11
  102. package/lib/component/assignment/utilities/filterForIDsWithAssignment.js +5 -1
  103. package/lib/component/context/ChartContext.js +10 -6
  104. package/lib/component/context/DispatchContext.d.ts +3 -1
  105. package/lib/component/context/DispatchContext.js +9 -5
  106. package/lib/component/context/GlobalContext.js +9 -5
  107. package/lib/component/context/KeyModifierContext.d.ts +5 -0
  108. package/lib/component/context/KeyModifierContext.js +15 -9
  109. package/lib/component/context/LoaderContext.js +9 -5
  110. package/lib/component/context/LoggerContext.js +23 -18
  111. package/lib/component/context/PreferencesContext.js +16 -11
  112. package/lib/component/context/ScaleContext.js +12 -7
  113. package/lib/component/elements/ActionButtons.js +11 -5
  114. package/lib/component/elements/ActiveButton.d.ts +2 -2
  115. package/lib/component/elements/ActiveButton.js +13 -8
  116. package/lib/component/elements/Button.js +23 -21
  117. package/lib/component/elements/ButtonToolTip.js +9 -4
  118. package/lib/component/elements/CheckBox.js +8 -6
  119. package/lib/component/elements/CheckBoxCell.js +11 -4
  120. package/lib/component/elements/CloseButton.js +11 -6
  121. package/lib/component/elements/ColorInput.js +15 -13
  122. package/lib/component/elements/ColumnWrapper.js +7 -3
  123. package/lib/component/elements/ContextMenu.js +20 -18
  124. package/lib/component/elements/CounterLabel.d.ts +7 -0
  125. package/lib/component/elements/CounterLabel.js +16 -0
  126. package/lib/component/elements/DeleteButton.js +5 -3
  127. package/lib/component/elements/EditableColumn.js +36 -19
  128. package/lib/component/elements/GroupPane.js +7 -3
  129. package/lib/component/elements/Header.js +9 -5
  130. package/lib/component/elements/Input.d.ts +3 -12
  131. package/lib/component/elements/Input.js +39 -86
  132. package/lib/component/elements/InputRange.js +10 -8
  133. package/lib/component/elements/IsotopesViewer.js +5 -3
  134. package/lib/component/elements/Label.js +12 -6
  135. package/lib/component/elements/Logo.js +6 -3
  136. package/lib/component/elements/MenuButton.js +21 -15
  137. package/lib/component/elements/Message.js +9 -7
  138. package/lib/component/elements/MolecularFormulaInput.js +19 -13
  139. package/lib/component/elements/MoleculeSelection.js +20 -14
  140. package/lib/component/elements/NextPrev.js +22 -20
  141. package/lib/component/elements/NumberInput.js +13 -8
  142. package/lib/component/elements/PreferencesButton.d.ts +4 -0
  143. package/lib/component/elements/PreferencesButton.js +13 -0
  144. package/lib/component/elements/ReactTable/Elements/EmptyDataRow.js +9 -5
  145. package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js +8 -6
  146. package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +16 -14
  147. package/lib/component/elements/ReactTable/ReactTable.js +65 -37
  148. package/lib/component/elements/ReactTable/ReactTableFlexLayout.js +14 -12
  149. package/lib/component/elements/ReactTable/Style.js +6 -3
  150. package/lib/component/elements/ReactTable/utility/ReactTableContext.js +9 -5
  151. package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts +12 -0
  152. package/lib/component/elements/ReactTable/utility/addCustomColumn.js +29 -1
  153. package/lib/component/elements/ReactTable/utility/useRowSpan.js +7 -2
  154. package/lib/component/elements/RemoveAssignmentsButton.js +11 -7
  155. package/lib/component/elements/SVGGroup.js +11 -7
  156. package/lib/component/elements/SaveButton.js +13 -8
  157. package/lib/component/elements/Scroller.js +15 -11
  158. package/lib/component/elements/Select.js +10 -8
  159. package/lib/component/elements/Tab/DeleteButton.js +8 -6
  160. package/lib/component/elements/Tab/Tab.js +12 -6
  161. package/lib/component/elements/Tab/Tabs.js +20 -14
  162. package/lib/component/elements/Table/Table.js +6 -4
  163. package/lib/component/elements/Table/TableBody.js +8 -6
  164. package/lib/component/elements/Table/TableCell.js +6 -4
  165. package/lib/component/elements/Table/TableHead.js +6 -4
  166. package/lib/component/elements/Table/TableRow.js +6 -4
  167. package/lib/component/elements/ToggleButton.js +14 -9
  168. package/lib/component/elements/ToolTip/ToolTip.js +18 -16
  169. package/lib/component/elements/ToolbarMenu.js +22 -19
  170. package/lib/component/elements/accordion/Accordion.js +17 -15
  171. package/lib/component/elements/accordion/AccordionItem.js +20 -17
  172. package/lib/component/elements/draggable/SVGDraggable.js +13 -7
  173. package/lib/component/elements/draggable/useDraggable.js +10 -7
  174. package/lib/component/elements/dropDownButton/DropDownButton.js +21 -16
  175. package/lib/component/elements/dropDownButton/DropDownList.js +14 -12
  176. package/lib/component/elements/formik/ErrorMessage.js +8 -6
  177. package/lib/component/elements/formik/FormikCheckBox.js +16 -11
  178. package/lib/component/elements/formik/FormikColorInput.js +14 -9
  179. package/lib/component/elements/formik/FormikColorPicker.js +14 -9
  180. package/lib/component/elements/formik/FormikColumnFormatField.js +21 -14
  181. package/lib/component/elements/formik/FormikError.js +13 -8
  182. package/lib/component/elements/formik/FormikErrorsSummary.js +11 -9
  183. package/lib/component/elements/formik/FormikInput.d.ts +2 -2
  184. package/lib/component/elements/formik/FormikInput.js +18 -16
  185. package/lib/component/elements/formik/FormikNumberInput.js +16 -11
  186. package/lib/component/elements/formik/FormikOnChange.js +13 -8
  187. package/lib/component/elements/formik/FormikSelect.js +17 -12
  188. package/lib/component/elements/formik/FormikSlider.js +15 -10
  189. package/lib/component/elements/formik/FormikTextarea.js +16 -11
  190. package/lib/component/elements/formik/Input.js +11 -6
  191. package/lib/component/elements/formik/SelectBox.js +13 -8
  192. package/lib/component/elements/linearAxis/LinearVerticalAxis.js +14 -10
  193. package/lib/component/elements/popup/Alert/AlertBlock.js +15 -9
  194. package/lib/component/elements/popup/Alert/Context.js +9 -5
  195. package/lib/component/elements/popup/Alert/ProgressIndicator.js +8 -5
  196. package/lib/component/elements/popup/Alert/Provider.js +39 -34
  197. package/lib/component/elements/popup/Alert/index.js +14 -3
  198. package/lib/component/elements/popup/Modal/ConfirmDialog.js +9 -7
  199. package/lib/component/elements/popup/Modal/Context.js +9 -5
  200. package/lib/component/elements/popup/Modal/Modal.js +8 -6
  201. package/lib/component/elements/popup/Modal/ModalContent.js +11 -9
  202. package/lib/component/elements/popup/Modal/Provider.js +44 -39
  203. package/lib/component/elements/popup/Modal/index.js +15 -4
  204. package/lib/component/elements/popup/Transition.js +14 -11
  205. package/lib/component/elements/popup/Wrapper.js +18 -15
  206. package/lib/component/elements/popup/options.js +6 -3
  207. package/lib/component/elements/popup/utility.js +4 -1
  208. package/lib/component/elements/resizer/DivResizer.js +18 -12
  209. package/lib/component/elements/resizer/Resizer.js +12 -6
  210. package/lib/component/elements/resizer/SVGResizer.js +15 -9
  211. package/lib/component/elements/resizer/useResizer.js +18 -12
  212. package/lib/component/elements/toggle/ToggleButton.js +11 -8
  213. package/lib/component/elements/toggle/ToggleButtonGroup.js +21 -15
  214. package/lib/component/header/ApodizationOptionsPanel.js +53 -24
  215. package/lib/component/header/AutoPeakPickingOptionPanel.js +53 -21
  216. package/lib/component/header/BaseLineCorrectionPanel.js +54 -25
  217. package/lib/component/header/Header.js +65 -57
  218. package/lib/component/header/HeaderContainer.js +7 -3
  219. package/lib/component/header/PhaseCorrectionPanel.js +41 -34
  220. package/lib/component/header/RangesPickingOptionPanel.js +53 -21
  221. package/lib/component/header/ZeroFillingOptionsPanel.js +30 -24
  222. package/lib/component/header/Zones2DOptionPanel.js +47 -16
  223. package/lib/component/highlight/index.d.ts +1 -0
  224. package/lib/component/highlight/index.js +29 -22
  225. package/lib/component/hooks/useActiveSpectra.js +9 -5
  226. package/lib/component/hooks/useActiveSpectrum.js +9 -5
  227. package/lib/component/hooks/useActiveSpectrumPeaksViewState.js +12 -8
  228. package/lib/component/hooks/useActiveSpectrumRangesViewState.d.ts +3 -0
  229. package/lib/component/hooks/useActiveSpectrumRangesViewState.js +23 -0
  230. package/lib/component/hooks/useActiveSpectrumStyleOptions.js +15 -9
  231. package/lib/component/hooks/useActiveSpectrumZonesViewState.d.ts +3 -0
  232. package/lib/component/hooks/useActiveSpectrumZonesViewState.js +21 -0
  233. package/lib/component/hooks/useCheckExperimentalFeature.js +6 -3
  234. package/lib/component/hooks/useCheckPointsNumberInWindowArea.js +15 -8
  235. package/lib/component/hooks/useCheckToolsVisibility.js +22 -15
  236. package/lib/component/hooks/useCombinedRefs.js +7 -4
  237. package/lib/component/hooks/useDatumWithSpectraStatistics.js +15 -9
  238. package/lib/component/hooks/useExport.js +37 -31
  239. package/lib/component/hooks/useFilter.js +12 -5
  240. package/lib/component/hooks/useFormatNumberByNucleus.js +16 -9
  241. package/lib/component/hooks/useIntegralPath.js +24 -21
  242. package/lib/component/hooks/useNucleus.js +8 -5
  243. package/lib/component/hooks/usePanelPreferences.js +30 -22
  244. package/lib/component/hooks/useResizerStatus.js +9 -5
  245. package/lib/component/hooks/useSaveSettings.js +49 -19
  246. package/lib/component/hooks/useSpectraPerNucleus.js +13 -7
  247. package/lib/component/hooks/useSpectrum.js +10 -7
  248. package/lib/component/hooks/useTableSortBy.js +18 -11
  249. package/lib/component/hooks/useToolsFunctions.js +36 -30
  250. package/lib/component/hooks/useVerticalAlign.js +9 -5
  251. package/lib/component/hooks/useXScale.js +10 -6
  252. package/lib/component/hooks/useXYReduce.js +13 -9
  253. package/lib/component/loader/DefaultSpinnerComponent.js +8 -5
  254. package/lib/component/loader/DropZone.js +38 -36
  255. package/lib/component/loader/NoData.js +9 -7
  256. package/lib/component/loader/Spinner.js +16 -11
  257. package/lib/component/loader/SpinnerContext.js +14 -7
  258. package/lib/component/main/ErrorOverlay.js +12 -6
  259. package/lib/component/main/InnerNMRium.js +61 -31
  260. package/lib/component/main/InnerNMRiumContents.js +32 -26
  261. package/lib/component/main/NMRium.js +17 -11
  262. package/lib/component/main/NMRiumStateProvider.js +33 -27
  263. package/lib/component/main/SplitPaneWrapper.js +10 -6
  264. package/lib/component/main/StateError.js +11 -7
  265. package/lib/component/main/index.js +21 -3
  266. package/lib/component/main/types.js +2 -1
  267. package/lib/component/modal/AboutPredictionModal.js +14 -9
  268. package/lib/component/modal/AboutSpectrumSimulationModal.js +14 -9
  269. package/lib/component/modal/AlignSpectraModal.js +122 -45
  270. package/lib/component/modal/CopyClipboardModal.js +12 -7
  271. package/lib/component/modal/EditPeakShapeModal.js +49 -21
  272. package/lib/component/modal/ExportAsJcampModal.js +21 -16
  273. package/lib/component/modal/ImportPublicationStringModal.js +47 -19
  274. package/lib/component/modal/LoadJCAMPModal.js +49 -19
  275. package/lib/component/modal/LogsHistoryModal.js +27 -20
  276. package/lib/component/modal/ModalStyle.js +5 -2
  277. package/lib/component/modal/MoleculeStructureEditorModal.d.ts +5 -1
  278. package/lib/component/modal/MoleculeStructureEditorModal.js +27 -26
  279. package/lib/component/modal/MultipletAnalysisModal.js +30 -24
  280. package/lib/component/modal/PredictSpectraModal.js +39 -32
  281. package/lib/component/modal/SaveAsModal.js +29 -23
  282. package/{lib-cjs/component/modal → lib/component/modal/aboutUs}/AboutUsModal.js +4 -3
  283. package/lib/component/modal/aboutUs/AboutUsZakodium.d.ts +1 -0
  284. package/lib/component/modal/aboutUs/AboutUsZakodium.js +39 -0
  285. package/lib/component/modal/changeSum/ChangeSumModal.js +9 -6
  286. package/lib/component/modal/changeSum/ChangeSumModalContents.js +50 -20
  287. package/lib/component/modal/changeSum/SelectMolecule.js +24 -18
  288. package/lib/component/modal/editRange/EditRangeModal.js +48 -43
  289. package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +53 -25
  290. package/lib/component/modal/editRange/forms/components/CouplingsTable.js +29 -24
  291. package/lib/component/modal/editRange/forms/components/DeltaInput.js +11 -6
  292. package/lib/component/modal/editRange/forms/components/SignalFormInfo.js +11 -7
  293. package/lib/component/modal/editRange/forms/components/SignalFormTab.js +12 -7
  294. package/lib/component/modal/editRange/forms/components/SignalsForm.js +45 -40
  295. package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +29 -4
  296. package/lib/component/modal/editZone/EditPathLengthFormik.js +19 -14
  297. package/lib/component/modal/editZone/EditZoneModal.js +29 -24
  298. package/lib/component/modal/editZone/SignalFormTab.js +9 -4
  299. package/lib/component/modal/editZone/SignalsForm.js +25 -20
  300. package/lib/component/modal/editZone/validation/EditZoneValidation.js +27 -2
  301. package/lib/component/modal/editZone/validation/isDefaultPathLength.js +10 -5
  302. package/lib/component/modal/metaImportation/MetaImportationModal.js +68 -40
  303. package/lib/component/modal/metaImportation/index.js +19 -11
  304. package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.js +5 -1
  305. package/lib/component/modal/setting/GeneralSettings.js +84 -56
  306. package/lib/component/modal/setting/WorkspaceItem.js +13 -8
  307. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +27 -22
  308. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +12 -7
  309. package/lib/component/modal/setting/settings-tabs/FormattingTabContent.js +21 -16
  310. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +13 -8
  311. package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.js +17 -12
  312. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +35 -30
  313. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +20 -15
  314. package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js +11 -6
  315. package/lib/component/modal/setting/settingsValidation.js +25 -18
  316. package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +21 -16
  317. package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +16 -11
  318. package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +23 -16
  319. package/lib/component/panels/InformationPanel.js +17 -102
  320. package/lib/component/panels/IntegralsPanel/IntegralPanel.js +73 -44
  321. package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +3 -2
  322. package/lib/component/panels/IntegralsPanel/IntegralTable.js +88 -52
  323. package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +60 -27
  324. package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +19 -12
  325. package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js +37 -30
  326. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +71 -42
  327. package/lib/component/panels/MoleculesPanel/MoleculeHeader.js +20 -14
  328. package/lib/component/panels/MoleculesPanel/MoleculePanel.js +41 -35
  329. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +50 -44
  330. package/lib/component/panels/MoleculesPanel/Utilities.js +13 -5
  331. package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts +10 -6
  332. package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +49 -44
  333. package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +58 -52
  334. package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +30 -25
  335. package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisCell.js +9 -7
  336. package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.js +17 -12
  337. package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +25 -18
  338. package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.js +28 -23
  339. package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/MultipleAnalysisCodeEditor.js +17 -12
  340. package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/index.js +54 -26
  341. package/lib/component/panels/PanelNoData.js +7 -3
  342. package/lib/component/panels/Panels.js +63 -57
  343. package/lib/component/panels/PeaksPanel/PeaksPanel.js +84 -55
  344. package/lib/component/panels/PeaksPanel/PeaksPreferences.js +38 -21
  345. package/lib/component/panels/PeaksPanel/PeaksTable.d.ts +5 -2
  346. package/lib/component/panels/PeaksPanel/PeaksTable.js +97 -55
  347. package/lib/component/panels/PeaksPanel/PeaksToggleActions.d.ts +10 -0
  348. package/lib/component/panels/PeaksPanel/PeaksToggleActions.js +17 -0
  349. package/lib/component/panels/RangesPanel/RangesHeader.d.ts +1 -5
  350. package/lib/component/panels/RangesPanel/RangesHeader.js +86 -40
  351. package/lib/component/panels/RangesPanel/RangesPanel.js +52 -55
  352. package/lib/component/panels/RangesPanel/RangesPreferences.js +68 -27
  353. package/lib/component/panels/RangesPanel/RangesTable.js +28 -12
  354. package/lib/component/panels/RangesPanel/RangesTableRow.js +43 -38
  355. package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +6 -4
  356. package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts +4 -1
  357. package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +18 -12
  358. package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.js +12 -7
  359. package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +10 -8
  360. package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.js +6 -4
  361. package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js +15 -10
  362. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +12 -7
  363. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +14 -9
  364. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +10 -8
  365. package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +27 -21
  366. package/lib/component/panels/RangesPanel/hooks/useMapRanges.js +8 -6
  367. package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +34 -29
  368. package/lib/component/panels/SpectrumsPanel/SpectraPreferences.js +31 -26
  369. package/lib/component/panels/SpectrumsPanel/SpectraTable.js +50 -43
  370. package/lib/component/panels/SpectrumsPanel/SpectrumListPanel.js +15 -10
  371. package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +35 -27
  372. package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.js +8 -6
  373. package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +14 -11
  374. package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +24 -17
  375. package/lib/component/panels/SpectrumsPanel/base/SpectrumName.js +12 -8
  376. package/lib/component/panels/SpectrumsPanel/base/setting/PlotChart.js +9 -6
  377. package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.js +14 -9
  378. package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +12 -7
  379. package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +14 -9
  380. package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +16 -11
  381. package/lib/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +18 -13
  382. package/lib/component/panels/SpectrumsPanel/base/setting/processSnapPlot.js +9 -5
  383. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +46 -41
  384. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +39 -34
  385. package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.js +7 -1
  386. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +18 -13
  387. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +48 -43
  388. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +9 -7
  389. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +49 -20
  390. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +26 -21
  391. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +20 -15
  392. package/lib/component/panels/SummaryPanel/Overview.js +15 -13
  393. package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +20 -14
  394. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +20 -14
  395. package/lib/component/panels/SummaryPanel/SummaryPanel.js +100 -73
  396. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +2 -3
  397. package/lib/component/panels/SummaryPanel/utilities/Utilities.js +59 -44
  398. package/lib/component/panels/SummaryPanel/utilities/useInView.js +10 -8
  399. package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.d.ts +5 -1
  400. package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +30 -24
  401. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +6 -4
  402. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +10 -5
  403. package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.d.ts +2 -5
  404. package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +27 -19
  405. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +6 -4
  406. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +10 -5
  407. package/lib/component/panels/ZonesPanel/ZonesPanel.js +85 -51
  408. package/lib/component/panels/ZonesPanel/ZonesPreferences.js +68 -21
  409. package/lib/component/panels/ZonesPanel/ZonesTable.d.ts +4 -3
  410. package/lib/component/panels/ZonesPanel/ZonesTable.js +34 -17
  411. package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +2 -5
  412. package/lib/component/panels/ZonesPanel/ZonesTableRow.js +38 -31
  413. package/lib/component/panels/ZonesPanel/hooks/useMapZones.js +9 -3
  414. package/lib/component/panels/databasePanel/DatabasePanel.d.ts +18 -1
  415. package/lib/component/panels/databasePanel/DatabasePanel.js +88 -119
  416. package/lib/component/panels/databasePanel/DatabasePreferences.js +47 -19
  417. package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts +18 -0
  418. package/lib/component/panels/databasePanel/DatabaseSearchOptions.js +60 -0
  419. package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js +13 -6
  420. package/lib/component/panels/databasePanel/DatabaseTable.js +32 -27
  421. package/lib/component/panels/extra/BasicPanelStyle.js +5 -2
  422. package/lib/component/panels/extra/placeholder/NoDataForFid.d.ts +1 -0
  423. package/{lib-cjs/component/modal/editZone/SignalFormTab.js → lib/component/panels/extra/placeholder/NoDataForFid.js} +4 -4
  424. package/lib/component/panels/extra/placeholder/NoTableData.js +5 -3
  425. package/lib/component/panels/extra/preferences/ColumnsHelper.js +15 -7
  426. package/lib/component/panels/extra/preferences/NucleusGroup.js +11 -4
  427. package/lib/component/panels/extra/preferences/NucleusPreferences.js +12 -5
  428. package/lib/component/panels/extra/preferences/PreferencesContainer.js +7 -3
  429. package/lib/component/panels/extra/preferences/PreferencesGroup.js +8 -4
  430. package/lib/component/panels/extra/utilities/MultiplicityUtilities.js +10 -5
  431. package/lib/component/panels/extra/utilities/UseToggleStatus.js +8 -6
  432. package/lib/component/panels/filtersPanel/FilterPanel.js +18 -12
  433. package/lib/component/panels/filtersPanel/FiltersTable.js +39 -33
  434. package/lib/component/panels/header/DefaultPanelHeader.js +17 -16
  435. package/lib/component/panels/header/PanelHeader.js +6 -3
  436. package/lib/component/panels/header/PreferencesHeader.js +13 -8
  437. package/lib/component/panels/header/SpectraAutomaticPickingButton.js +22 -15
  438. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js +50 -22
  439. package/lib/component/panels/predictionPanel/PredictionPanel.js +46 -40
  440. package/lib/component/panels/predictionPanel/PredictionPreferences.js +18 -13
  441. package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js +48 -20
  442. package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js +37 -31
  443. package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js +19 -14
  444. package/lib/component/panels/spectrumSimulation/SpectrumSimulationSimpleOptions.js +22 -11
  445. package/lib/component/panels/spectrumSimulation/SpinSystemTable.js +22 -15
  446. package/lib/component/reducer/IgnoreActions.js +4 -8
  447. package/lib/component/reducer/Reducer.d.ts +9 -17
  448. package/lib/component/reducer/Reducer.js +71 -54
  449. package/lib/component/reducer/actions/AssignmentsActions.js +4 -1
  450. package/lib/component/reducer/actions/CorrelationsActions.js +38 -27
  451. package/lib/component/reducer/actions/DatabaseActions.js +18 -14
  452. package/lib/component/reducer/actions/DimensionsActions.js +4 -1
  453. package/lib/component/reducer/actions/DomainActions.js +36 -25
  454. package/lib/component/reducer/actions/FiltersActions.js +132 -96
  455. package/lib/component/reducer/actions/HistoryActions.js +9 -4
  456. package/lib/component/reducer/actions/IntegralsActions.js +50 -38
  457. package/lib/component/reducer/actions/LoadActions.d.ts +2 -0
  458. package/lib/component/reducer/actions/LoadActions.js +66 -33
  459. package/lib/component/reducer/actions/MoleculeActions.js +65 -28
  460. package/lib/component/reducer/actions/PeaksActions.d.ts +3 -2
  461. package/lib/component/reducer/actions/PeaksActions.js +69 -41
  462. package/lib/component/reducer/actions/PreferencesActions.js +18 -11
  463. package/lib/component/reducer/actions/RangesActions.d.ts +13 -9
  464. package/lib/component/reducer/actions/RangesActions.js +147 -137
  465. package/lib/component/reducer/actions/SpectraAnalysisAction.js +4 -1
  466. package/lib/component/reducer/actions/SpectrumsActions.js +82 -63
  467. package/lib/component/reducer/actions/ToolsActions.js +143 -96
  468. package/lib/component/reducer/actions/ZonesActions.d.ts +8 -9
  469. package/lib/component/reducer/actions/ZonesActions.js +96 -102
  470. package/lib/component/reducer/core/Constants.d.ts +0 -4
  471. package/lib/component/reducer/core/Constants.js +4 -6
  472. package/lib/component/reducer/helper/GetClosestNumber.js +3 -1
  473. package/lib/component/reducer/helper/Zoom1DManager.js +13 -9
  474. package/lib/component/reducer/helper/ZoomHistoryManager.js +8 -4
  475. package/lib/component/reducer/helper/get2DRange.js +7 -4
  476. package/lib/component/reducer/helper/getActiveSpectra.js +5 -1
  477. package/lib/component/reducer/helper/getActiveSpectraAsObject.js +9 -4
  478. package/lib/component/reducer/helper/getActiveSpectrum.js +5 -1
  479. package/lib/component/reducer/helper/getRange.js +9 -4
  480. package/lib/component/reducer/helper/getSpectrum.js +7 -3
  481. package/lib/component/reducer/helper/getStrongestPeak.js +9 -5
  482. package/lib/component/reducer/helper/getVerticalAlign.js +5 -1
  483. package/lib/component/reducer/preferences/actions/addWorkspace.js +16 -9
  484. package/lib/component/reducer/preferences/actions/analyzeSpectra.js +45 -15
  485. package/lib/component/reducer/preferences/actions/applyGeneralPreferences.js +5 -1
  486. package/lib/component/reducer/preferences/actions/initPreferences.js +15 -11
  487. package/lib/component/reducer/preferences/actions/matrixGeneration.js +12 -7
  488. package/lib/component/reducer/preferences/actions/removeWorkspace.js +8 -4
  489. package/lib/component/reducer/preferences/actions/setActiveWorkspace.js +8 -4
  490. package/lib/component/reducer/preferences/actions/setPanelsPreferences.js +7 -3
  491. package/lib/component/reducer/preferences/actions/setPreferences.js +17 -10
  492. package/lib/component/reducer/preferences/actions/setVerticalSplitterPosition.js +7 -3
  493. package/lib/component/reducer/preferences/actions/setWorkspace.js +12 -8
  494. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +51 -8
  495. package/lib/component/reducer/preferences/preferencesReducer.js +58 -51
  496. package/lib/component/reducer/preferences/utilities/checkKeysExists.js +8 -4
  497. package/lib/component/reducer/preferences/utilities/filterObject.js +5 -1
  498. package/lib/component/reducer/preferences/utilities/flatObject.js +5 -1
  499. package/lib/component/reducer/preferences/utilities/getActiveWorkspace.js +5 -1
  500. package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js +11 -4
  501. package/lib/component/reducer/preferences/utilities/initWorkspace.js +11 -4
  502. package/lib/component/reducer/preferences/utilities/isReadOnlyWorkspace.js +5 -1
  503. package/lib/component/reducer/preferences/utilities/mapNucleiFormatting.js +5 -1
  504. package/lib/component/reducer/preferences/utilities/mapWorkspaces.js +11 -4
  505. package/lib/component/reducer/scaleReducer.js +18 -15
  506. package/lib/component/reducer/types/ActionType.js +2 -1
  507. package/lib/component/toolbar/BasicToolBar.js +58 -52
  508. package/lib/component/toolbar/FunctionToolBar.js +36 -30
  509. package/lib/component/toolbar/ToolBar.js +17 -11
  510. package/lib/component/toolbar/ToolTypes.d.ts +2 -2
  511. package/lib/component/toolbar/ToolTypes.js +36 -34
  512. package/lib/component/utility/Evaluate.js +4 -1
  513. package/lib/component/utility/Events.js +8 -3
  514. package/lib/component/utility/FileUtility.js +5 -1
  515. package/lib/component/utility/GroupByInfoKey.js +4 -1
  516. package/lib/component/utility/LocalStorage.js +26 -15
  517. package/lib/component/utility/PathBuilder.js +5 -1
  518. package/lib/component/utility/PreferencesHelper.js +8 -5
  519. package/lib/component/utility/assert.js +5 -1
  520. package/lib/component/utility/convertPathArrayToString.js +5 -1
  521. package/lib/component/utility/export.js +27 -14
  522. package/lib/component/utility/filterType.js +2 -1
  523. package/lib/component/utility/formatNumber.js +10 -3
  524. package/lib/component/utility/getSpectraByNucleus.js +10 -3
  525. package/lib/component/utility/getSpectraObjectPaths.js +5 -1
  526. package/lib/component/utility/getUniqueNuclei.js +5 -1
  527. package/lib/component/utility/isGoogleDocument.js +5 -1
  528. package/lib/component/utility/jpathToArray.js +5 -1
  529. package/lib/component/utility/nucleusToString.d.ts +1 -0
  530. package/lib/component/utility/nucleusToString.js +9 -1
  531. package/lib/component/utility/parseColor.js +5 -1
  532. package/lib/component/workspaces/assignment.js +4 -1
  533. package/lib/component/workspaces/basic.js +4 -1
  534. package/lib/component/workspaces/embedded.js +10 -1
  535. package/lib/component/workspaces/exercise.js +12 -1
  536. package/lib/component/workspaces/index.js +17 -15
  537. package/lib/component/workspaces/prediction.js +4 -1
  538. package/lib/component/workspaces/process1D.js +4 -1
  539. package/lib/component/workspaces/simulation.js +4 -1
  540. package/lib/component/workspaces/workspaceDefaultProperties.js +28 -22
  541. package/lib/constants.js +10 -7
  542. package/lib/data/PredictionManager.js +39 -30
  543. package/lib/data/SpectraManager.js +49 -20
  544. package/lib/data/constants/DefaultApodizationOptions.js +4 -1
  545. package/lib/data/constants/DefaultPathLengths.js +3 -1
  546. package/lib/data/constants/Multiplets.js +5 -2
  547. package/lib/data/constants/References.d.ts +5 -3
  548. package/lib/data/constants/References.js +8 -4
  549. package/lib/data/constants/signalsKinds.d.ts +12 -0
  550. package/lib/data/constants/signalsKinds.js +20 -0
  551. package/lib/data/data1d/Spectrum1D/SumManager.d.ts +1 -7
  552. package/lib/data/data1d/Spectrum1D/SumManager.js +28 -12
  553. package/lib/data/data1d/Spectrum1D/cloneDatum1D.js +5 -1
  554. package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.js +5 -1
  555. package/lib/data/data1d/Spectrum1D/generateJGraphData.js +6 -3
  556. package/lib/data/data1d/Spectrum1D/generateSpectrumFromPublicationString.js +9 -5
  557. package/lib/data/data1d/Spectrum1D/get1DColor.js +7 -3
  558. package/lib/data/data1d/Spectrum1D/get1DDataXY.js +5 -1
  559. package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts +10 -1
  560. package/lib/data/data1d/Spectrum1D/getReferenceShift.js +17 -10
  561. package/lib/data/data1d/Spectrum1D/index.js +45 -19
  562. package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts +2 -0
  563. package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +36 -22
  564. package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +5 -1
  565. package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts +5 -11
  566. package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.js +14 -11
  567. package/lib/data/data1d/Spectrum1D/isRangeAssigned.js +5 -1
  568. package/lib/data/data1d/Spectrum1D/isSpectrum1D.js +5 -1
  569. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +13 -6
  570. package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts +2 -5
  571. package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.js +12 -5
  572. package/lib/data/data1d/Spectrum1D/peaks/lookupPeak.js +10 -3
  573. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +11 -7
  574. package/lib/data/data1d/Spectrum1D/ranges/addRange.d.ts +2 -2
  575. package/lib/data/data1d/Spectrum1D/ranges/addRange.js +21 -13
  576. package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +6 -3
  577. package/lib/data/data1d/Spectrum1D/ranges/changeRange.js +18 -11
  578. package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +5 -1
  579. package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +5 -1
  580. package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.js +8 -4
  581. package/lib/data/data1d/Spectrum1D/ranges/detectRange.js +15 -11
  582. package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js +15 -8
  583. package/lib/data/data1d/Spectrum1D/ranges/detectSignal.js +16 -12
  584. package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.js +9 -5
  585. package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +15 -13
  586. package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.js +14 -11
  587. package/lib/data/data1d/database.js +24 -16
  588. package/lib/data/data1d/multipleSpectraAnalysis.js +37 -22
  589. package/lib/data/data1d/spectrumSimulation.js +10 -5
  590. package/lib/data/data2d/Processing2D.js +11 -7
  591. package/lib/data/data2d/Spectrum2D/cloneDatum2D.js +5 -1
  592. package/lib/data/data2d/Spectrum2D/contours.js +11 -5
  593. package/lib/data/data2d/Spectrum2D/get2DColor.js +7 -3
  594. package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.js +5 -1
  595. package/lib/data/data2d/Spectrum2D/getMissingProjection.js +9 -5
  596. package/lib/data/data2d/Spectrum2D/getShift.js +8 -4
  597. package/lib/data/data2d/Spectrum2D/getSlice.js +11 -7
  598. package/lib/data/data2d/Spectrum2D/index.js +21 -9
  599. package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +15 -11
  600. package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +5 -1
  601. package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js +8 -4
  602. package/lib/data/data2d/Spectrum2D/zones/detectZones.js +9 -5
  603. package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts +32 -12
  604. package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +9 -5
  605. package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +7 -3
  606. package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts +32 -12
  607. package/lib/data/data2d/Spectrum2D/zones/initiateZones.js +12 -5
  608. package/lib/data/data2d/Spectrum2D/zones/isZoneExists.js +5 -1
  609. package/lib/data/data2d/Spectrum2D/zones/updateZones.js +7 -3
  610. package/lib/data/defaults/13c.js +3 -1
  611. package/lib/data/defaults/1h.js +3 -1
  612. package/lib/data/defaults/default.js +12 -5
  613. package/lib/data/getDefaultMatrixFilters.js +10 -3
  614. package/lib/data/matrixGeneration.js +18 -10
  615. package/lib/data/molecules/Molecule.js +17 -9
  616. package/lib/data/molecules/MoleculeManager.js +30 -20
  617. package/lib/data/parseMeta/index.js +14 -4
  618. package/lib/data/parseMeta/isMetaFile.js +5 -1
  619. package/lib/data/parseMeta/linkMetaWithSpectra.js +17 -8
  620. package/lib/data/parseMeta/mapErrors.js +5 -1
  621. package/lib/data/parseMeta/parseMetaFile.js +7 -3
  622. package/lib/data/parseMeta/prepareKey.js +5 -1
  623. package/lib/data/types/common/File.js +2 -1
  624. package/lib/data/types/common/Info.js +2 -1
  625. package/lib/data/types/common/MapOptions.js +2 -1
  626. package/lib/data/types/common/Nucleus.js +2 -1
  627. package/lib/data/types/common/SignalKind.d.ts +1 -0
  628. package/lib/data/types/data1d/ComplexData1D.js +2 -1
  629. package/lib/data/types/data1d/ExclusionZone.js +2 -1
  630. package/lib/data/types/data1d/MatrixOptions.js +2 -1
  631. package/lib/data/types/data1d/RangeDetectionResult.js +2 -1
  632. package/lib/data/types/data1d/index.js +2 -1
  633. package/lib/data/types/data2d/ContourOptions.js +2 -1
  634. package/lib/data/types/data2d/index.js +2 -1
  635. package/lib/data/utilities/Concatenation.js +7 -3
  636. package/lib/data/utilities/FindUtilities.js +9 -1
  637. package/lib/data/utilities/RangeUtilities.js +31 -16
  638. package/lib/data/utilities/ZoneUtilities.js +21 -10
  639. package/lib/data/utilities/calculateSanPlot.js +7 -3
  640. package/lib/data/utilities/checkModifierKeyActivated.js +4 -1
  641. package/lib/data/utilities/convertSpectraListToObject.js +5 -1
  642. package/lib/data/utilities/generateChar.js +4 -1
  643. package/lib/data/utilities/generateColor.js +11 -5
  644. package/lib/data/utilities/generateNumbersPowerOfX.js +4 -1
  645. package/lib/data/utilities/getAtom.js +4 -1
  646. package/lib/data/utilities/getAtomsFromMF.js +4 -1
  647. package/lib/data/utilities/getSum.js +5 -1
  648. package/lib/data/utilities/isInRange.js +4 -1
  649. package/lib/data/utilities/isNumber.js +5 -1
  650. package/lib/types/NMRiumDataReturn.js +2 -1
  651. package/lib/types/UsedColors.js +2 -1
  652. package/lib/utils/clipboard/clipboard.js +13 -5
  653. package/lib/utils/clipboard/clipboardComponents.js +36 -28
  654. package/lib/utils/clipboard/clipboardHooks.js +22 -17
  655. package/lib/utils/clipboard/types.js +2 -1
  656. package/lib/utils/stringCapitalize.d.ts +1 -0
  657. package/lib/utils/stringCapitalize.js +7 -0
  658. package/lib/versionInfo.js +3 -1
  659. package/package.json +33 -35
  660. package/lib/component/modal/AboutUsModal.js +0 -109
  661. package/lib/data/constants/SignalsKinds.d.ts +0 -9
  662. package/lib/data/constants/SignalsKinds.js +0 -36
  663. package/lib/data/data2d/Spectrum2D/zones/mapZones.d.ts +0 -36
  664. package/lib/data/data2d/Spectrum2D/zones/mapZones.js +0 -63
  665. package/lib-cjs/component/1d/ApodizationLine.js +0 -102
  666. package/lib-cjs/component/1d/Chart1D.js +0 -27
  667. package/lib-cjs/component/1d/ExclusionZoneAnnotation.js +0 -34
  668. package/lib-cjs/component/1d/ExclusionZonesAnnotations.js +0 -47
  669. package/lib-cjs/component/1d/FooterBanner.js +0 -122
  670. package/lib-cjs/component/1d/Line.js +0 -59
  671. package/lib-cjs/component/1d/LinesSeries.js +0 -18
  672. package/lib-cjs/component/1d/SpectraLegends.js +0 -64
  673. package/lib-cjs/component/1d/Viewer1D.js +0 -321
  674. package/lib-cjs/component/1d/XAxis.js +0 -90
  675. package/lib-cjs/component/1d/YAxis.js +0 -62
  676. package/lib-cjs/component/1d/database/DatabaseElements.js +0 -23
  677. package/lib-cjs/component/1d/database/DatabaseSpectrum.js +0 -70
  678. package/lib-cjs/component/1d/database/ResurrectedDatabaseRanges.js +0 -69
  679. package/lib-cjs/component/1d/integral/Integral.js +0 -17
  680. package/lib-cjs/component/1d/integral/IntegralIndicator.js +0 -25
  681. package/lib-cjs/component/1d/integral/IntegralResizable.js +0 -78
  682. package/lib-cjs/component/1d/integral/IntegralsSeries.js +0 -27
  683. package/lib-cjs/component/1d/jCouplingGraph/JGraph.js +0 -46
  684. package/lib-cjs/component/1d/jCouplingGraph/JGraphContext.js +0 -18
  685. package/lib-cjs/component/1d/jCouplingGraph/JGraphVerticalAxis.js +0 -15
  686. package/lib-cjs/component/1d/jCouplingGraph/JsCoupling.js +0 -13
  687. package/lib-cjs/component/1d/jCouplingGraph/JsCouplingLinks.js +0 -29
  688. package/lib-cjs/component/1d/jCouplingGraph/JsCouplings.js +0 -19
  689. package/lib-cjs/component/1d/multiAnalysis/AnalysisRange.js +0 -68
  690. package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +0 -26
  691. package/lib-cjs/component/1d/multiplicityTree/LevelNode.js +0 -10
  692. package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +0 -184
  693. package/lib-cjs/component/1d/multiplicityTree/StringNode.js +0 -9
  694. package/lib-cjs/component/1d/multiplicityTree/TreeColors.js +0 -4
  695. package/lib-cjs/component/1d/multiplicityTree/TreeNodes.js +0 -25
  696. package/lib-cjs/component/1d/multiplicityTree/buildTreeNode.js +0 -62
  697. package/lib-cjs/component/1d/peaks/PeakAnnotations.js +0 -36
  698. package/lib-cjs/component/1d/peaks/PeakAnnotationsSpreadMode.js +0 -64
  699. package/lib-cjs/component/1d/peaks/PeakEditionManager.js +0 -129
  700. package/lib-cjs/component/1d/peaks/Peaks.js +0 -29
  701. package/lib-cjs/component/1d/peaks/PeaksShapes.js +0 -43
  702. package/lib-cjs/component/1d/peaks/usePeakShapesPath.js +0 -57
  703. package/lib-cjs/component/1d/ranges/AssignmentActionsButtons.js +0 -18
  704. package/lib-cjs/component/1d/ranges/Range.js +0 -89
  705. package/lib-cjs/component/1d/ranges/RangeIntegral.js +0 -12
  706. package/lib-cjs/component/1d/ranges/Ranges.js +0 -37
  707. package/lib-cjs/component/1d/tool/BaseLineZones.js +0 -23
  708. package/lib-cjs/component/1d/tool/PeakPointer.js +0 -97
  709. package/lib-cjs/component/1d/tool/VerticalIndicator.js +0 -26
  710. package/lib-cjs/component/1d/tool/XLabelPointer.js +0 -54
  711. package/lib-cjs/component/1d/utilities/intersectionResolver.js +0 -75
  712. package/lib-cjs/component/1d/utilities/scale.js +0 -44
  713. package/lib-cjs/component/1d-2d/components/FloatMoleculeStructures/ActionsButton.js +0 -13
  714. package/lib-cjs/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +0 -84
  715. package/lib-cjs/component/1d-2d/components/FloatMoleculeStructures/index.js +0 -47
  716. package/lib-cjs/component/1d-2d/components/SpectrumInfoBlock.js +0 -43
  717. package/lib-cjs/component/1d-2d/tools/BrushX.js +0 -37
  718. package/lib-cjs/component/1d-2d/tools/BrushXY.js +0 -94
  719. package/lib-cjs/component/1d-2d/tools/CrossLinePointer.js +0 -58
  720. package/lib-cjs/component/2d/1d-tracer/HorizontalSliceChart.js +0 -68
  721. package/lib-cjs/component/2d/1d-tracer/Left1DChart.js +0 -71
  722. package/lib-cjs/component/2d/1d-tracer/Top1DChart.js +0 -67
  723. package/lib-cjs/component/2d/1d-tracer/VerticalSliceChart.js +0 -68
  724. package/lib-cjs/component/2d/Chart2D.js +0 -26
  725. package/lib-cjs/component/2d/FooterBanner.js +0 -220
  726. package/lib-cjs/component/2d/SignalDeltaLine.js +0 -23
  727. package/lib-cjs/component/2d/SlicingView.js +0 -49
  728. package/lib-cjs/component/2d/Viewer2D.js +0 -165
  729. package/lib-cjs/component/2d/XAxis.js +0 -72
  730. package/lib-cjs/component/2d/YAxis.js +0 -68
  731. package/lib-cjs/component/2d/fid/FidCanvas.js +0 -114
  732. package/lib-cjs/component/2d/fid/FidContainer.js +0 -39
  733. package/lib-cjs/component/2d/ft/Contours.js +0 -81
  734. package/lib-cjs/component/2d/ft/FTContainer.js +0 -20
  735. package/lib-cjs/component/2d/tools/XYLabelPointer.js +0 -137
  736. package/lib-cjs/component/2d/utilities/DimensionLayout.js +0 -44
  737. package/lib-cjs/component/2d/utilities/SliceScale.js +0 -32
  738. package/lib-cjs/component/2d/utilities/scale.js +0 -42
  739. package/lib-cjs/component/2d/zones/IndicationLines.js +0 -47
  740. package/lib-cjs/component/2d/zones/Signal.js +0 -50
  741. package/lib-cjs/component/2d/zones/SignalCrosshair.js +0 -25
  742. package/lib-cjs/component/2d/zones/Zone.js +0 -71
  743. package/lib-cjs/component/2d/zones/Zones.js +0 -31
  744. package/lib-cjs/component/EventsTrackers/BrushTracker.js +0 -196
  745. package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +0 -426
  746. package/lib-cjs/component/EventsTrackers/MouseTracker.js +0 -34
  747. package/lib-cjs/component/assignment/AssignmentsContext.js +0 -88
  748. package/lib-cjs/component/assignment/AssignmentsReducer.js +0 -45
  749. package/lib-cjs/component/assignment/actions/initAssignment.js +0 -65
  750. package/lib-cjs/component/assignment/actions/removeAssignment.js +0 -29
  751. package/lib-cjs/component/assignment/actions/setActiveAssignment.js +0 -11
  752. package/lib-cjs/component/assignment/actions/toggleAssignment.js +0 -47
  753. package/lib-cjs/component/assignment/index.js +0 -29
  754. package/lib-cjs/component/assignment/utilities/filterForIDsWithAssignment.js +0 -7
  755. package/lib-cjs/component/context/ChartContext.js +0 -11
  756. package/lib-cjs/component/context/DispatchContext.js +0 -10
  757. package/lib-cjs/component/context/GlobalContext.js +0 -10
  758. package/lib-cjs/component/context/KeyModifierContext.js +0 -44
  759. package/lib-cjs/component/context/LoaderContext.js +0 -13
  760. package/lib-cjs/component/context/LoggerContext.js +0 -57
  761. package/lib-cjs/component/context/PreferencesContext.js +0 -37
  762. package/lib-cjs/component/context/ScaleContext.js +0 -19
  763. package/lib-cjs/component/elements/ActionButtons.js +0 -20
  764. package/lib-cjs/component/elements/ActiveButton.js +0 -39
  765. package/lib-cjs/component/elements/Button.js +0 -216
  766. package/lib-cjs/component/elements/ButtonToolTip.js +0 -11
  767. package/lib-cjs/component/elements/CheckBox.js +0 -12
  768. package/lib-cjs/component/elements/CheckBoxCell.js +0 -15
  769. package/lib-cjs/component/elements/CloseButton.js +0 -28
  770. package/lib-cjs/component/elements/ColorInput.js +0 -88
  771. package/lib-cjs/component/elements/ColumnWrapper.js +0 -12
  772. package/lib-cjs/component/elements/ContextMenu.js +0 -130
  773. package/lib-cjs/component/elements/DeleteButton.js +0 -8
  774. package/lib-cjs/component/elements/EditableColumn.js +0 -74
  775. package/lib-cjs/component/elements/GroupPane.js +0 -18
  776. package/lib-cjs/component/elements/Header.js +0 -21
  777. package/lib-cjs/component/elements/Input.js +0 -141
  778. package/lib-cjs/component/elements/InputRange.js +0 -62
  779. package/lib-cjs/component/elements/IsotopesViewer.js +0 -14
  780. package/lib-cjs/component/elements/Label.js +0 -20
  781. package/lib-cjs/component/elements/Logo.js +0 -7
  782. package/lib-cjs/component/elements/MenuButton.js +0 -87
  783. package/lib-cjs/component/elements/Message.js +0 -38
  784. package/lib-cjs/component/elements/MolecularFormulaInput.js +0 -69
  785. package/lib-cjs/component/elements/MoleculeSelection.js +0 -85
  786. package/lib-cjs/component/elements/NextPrev.js +0 -123
  787. package/lib-cjs/component/elements/NumberInput.js +0 -25
  788. package/lib-cjs/component/elements/ReactTable/Elements/EmptyDataRow.js +0 -15
  789. package/lib-cjs/component/elements/ReactTable/Elements/ReactTableHeader.js +0 -28
  790. package/lib-cjs/component/elements/ReactTable/Elements/ReactTableRow.js +0 -69
  791. package/lib-cjs/component/elements/ReactTable/ReactTable.js +0 -260
  792. package/lib-cjs/component/elements/ReactTable/ReactTableFlexLayout.js +0 -30
  793. package/lib-cjs/component/elements/ReactTable/Style.js +0 -38
  794. package/lib-cjs/component/elements/ReactTable/utility/ReactTableContext.js +0 -14
  795. package/lib-cjs/component/elements/ReactTable/utility/addCustomColumn.js +0 -16
  796. package/lib-cjs/component/elements/ReactTable/utility/useRowSpan.js +0 -40
  797. package/lib-cjs/component/elements/RemoveAssignmentsButton.js +0 -25
  798. package/lib-cjs/component/elements/SVGGroup.js +0 -35
  799. package/lib-cjs/component/elements/SaveButton.js +0 -26
  800. package/lib-cjs/component/elements/Scroller.js +0 -35
  801. package/lib-cjs/component/elements/Select.js +0 -45
  802. package/lib-cjs/component/elements/Tab/DeleteButton.js +0 -35
  803. package/lib-cjs/component/elements/Tab/Tab.js +0 -42
  804. package/lib-cjs/component/elements/Tab/Tabs.js +0 -120
  805. package/lib-cjs/component/elements/Table/Table.js +0 -15
  806. package/lib-cjs/component/elements/Table/TableBody.js +0 -21
  807. package/lib-cjs/component/elements/Table/TableCell.js +0 -28
  808. package/lib-cjs/component/elements/Table/TableHead.js +0 -18
  809. package/lib-cjs/component/elements/Table/TableRow.js +0 -13
  810. package/lib-cjs/component/elements/ToggleButton.js +0 -35
  811. package/lib-cjs/component/elements/ToolTip/ToolTip.js +0 -103
  812. package/lib-cjs/component/elements/ToolbarMenu.js +0 -105
  813. package/lib-cjs/component/elements/accordion/Accordion.js +0 -68
  814. package/lib-cjs/component/elements/accordion/AccordionItem.js +0 -81
  815. package/lib-cjs/component/elements/draggable/SVGDraggable.js +0 -39
  816. package/lib-cjs/component/elements/draggable/useDraggable.js +0 -71
  817. package/lib-cjs/component/elements/dropDownButton/DropDownButton.js +0 -59
  818. package/lib-cjs/component/elements/dropDownButton/DropDownList.js +0 -69
  819. package/lib-cjs/component/elements/formik/ErrorMessage.js +0 -15
  820. package/lib-cjs/component/elements/formik/FormikCheckBox.js +0 -24
  821. package/lib-cjs/component/elements/formik/FormikColorInput.js +0 -20
  822. package/lib-cjs/component/elements/formik/FormikColorPicker.js +0 -21
  823. package/lib-cjs/component/elements/formik/FormikColumnFormatField.js +0 -48
  824. package/lib-cjs/component/elements/formik/FormikError.js +0 -27
  825. package/lib-cjs/component/elements/formik/FormikErrorsSummary.js +0 -47
  826. package/lib-cjs/component/elements/formik/FormikInput.js +0 -46
  827. package/lib-cjs/component/elements/formik/FormikNumberInput.js +0 -29
  828. package/lib-cjs/component/elements/formik/FormikOnChange.js +0 -35
  829. package/lib-cjs/component/elements/formik/FormikSelect.js +0 -29
  830. package/lib-cjs/component/elements/formik/FormikSlider.js +0 -20
  831. package/lib-cjs/component/elements/formik/FormikTextarea.js +0 -34
  832. package/lib-cjs/component/elements/formik/Input.js +0 -14
  833. package/lib-cjs/component/elements/formik/SelectBox.js +0 -16
  834. package/lib-cjs/component/elements/linearAxis/LinearVerticalAxis.js +0 -19
  835. package/lib-cjs/component/elements/popup/Alert/AlertBlock.js +0 -36
  836. package/lib-cjs/component/elements/popup/Alert/Context.js +0 -14
  837. package/lib-cjs/component/elements/popup/Alert/ProgressIndicator.js +0 -36
  838. package/lib-cjs/component/elements/popup/Alert/Provider.js +0 -132
  839. package/lib-cjs/component/elements/popup/Alert/index.js +0 -14
  840. package/lib-cjs/component/elements/popup/Modal/ConfirmDialog.js +0 -67
  841. package/lib-cjs/component/elements/popup/Modal/Context.js +0 -10
  842. package/lib-cjs/component/elements/popup/Modal/Modal.js +0 -44
  843. package/lib-cjs/component/elements/popup/Modal/ModalContent.js +0 -29
  844. package/lib-cjs/component/elements/popup/Modal/Provider.js +0 -177
  845. package/lib-cjs/component/elements/popup/Modal/index.js +0 -15
  846. package/lib-cjs/component/elements/popup/Transition.js +0 -38
  847. package/lib-cjs/component/elements/popup/Wrapper.js +0 -86
  848. package/lib-cjs/component/elements/popup/options.js +0 -28
  849. package/lib-cjs/component/elements/popup/utility.js +0 -16
  850. package/lib-cjs/component/elements/resizer/DivResizer.js +0 -68
  851. package/lib-cjs/component/elements/resizer/Resizer.js +0 -18
  852. package/lib-cjs/component/elements/resizer/SVGResizer.js +0 -46
  853. package/lib-cjs/component/elements/resizer/useResizer.js +0 -71
  854. package/lib-cjs/component/elements/toggle/ToggleButton.js +0 -27
  855. package/lib-cjs/component/elements/toggle/ToggleButtonGroup.js +0 -54
  856. package/lib-cjs/component/header/ApodizationOptionsPanel.js +0 -100
  857. package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +0 -87
  858. package/lib-cjs/component/header/BaseLineCorrectionPanel.js +0 -145
  859. package/lib-cjs/component/header/Header.js +0 -133
  860. package/lib-cjs/component/header/HeaderContainer.js +0 -12
  861. package/lib-cjs/component/header/PhaseCorrectionPanel.js +0 -151
  862. package/lib-cjs/component/header/RangesPickingOptionPanel.js +0 -67
  863. package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +0 -78
  864. package/lib-cjs/component/header/Zones2DOptionPanel.js +0 -59
  865. package/lib-cjs/component/highlight/index.js +0 -210
  866. package/lib-cjs/component/hooks/useActiveSpectra.js +0 -10
  867. package/lib-cjs/component/hooks/useActiveSpectrum.js +0 -10
  868. package/lib-cjs/component/hooks/useActiveSpectrumPeaksViewState.js +0 -22
  869. package/lib-cjs/component/hooks/useActiveSpectrumStyleOptions.js +0 -22
  870. package/lib-cjs/component/hooks/useCheckExperimentalFeature.js +0 -8
  871. package/lib-cjs/component/hooks/useCheckPointsNumberInWindowArea.js +0 -24
  872. package/lib-cjs/component/hooks/useCheckToolsVisibility.js +0 -66
  873. package/lib-cjs/component/hooks/useCombinedRefs.js +0 -20
  874. package/lib-cjs/component/hooks/useDatumWithSpectraStatistics.js +0 -45
  875. package/lib-cjs/component/hooks/useExport.js +0 -106
  876. package/lib-cjs/component/hooks/useFilter.js +0 -14
  877. package/lib-cjs/component/hooks/useFormatNumberByNucleus.js +0 -40
  878. package/lib-cjs/component/hooks/useIntegralPath.js +0 -61
  879. package/lib-cjs/component/hooks/useNucleus.js +0 -14
  880. package/lib-cjs/component/hooks/usePanelPreferences.js +0 -98
  881. package/lib-cjs/component/hooks/useResizerStatus.js +0 -11
  882. package/lib-cjs/component/hooks/useSaveSettings.js +0 -104
  883. package/lib-cjs/component/hooks/useSpectraPerNucleus.js +0 -18
  884. package/lib-cjs/component/hooks/useSpectrum.js +0 -17
  885. package/lib-cjs/component/hooks/useTableSortBy.js +0 -66
  886. package/lib-cjs/component/hooks/useToolsFunctions.js +0 -84
  887. package/lib-cjs/component/hooks/useVerticalAlign.js +0 -10
  888. package/lib-cjs/component/hooks/useXScale.js +0 -11
  889. package/lib-cjs/component/hooks/useXYReduce.js +0 -20
  890. package/lib-cjs/component/loader/DefaultSpinnerComponent.js +0 -41
  891. package/lib-cjs/component/loader/DropZone.js +0 -128
  892. package/lib-cjs/component/loader/NoData.js +0 -40
  893. package/lib-cjs/component/loader/Spinner.js +0 -28
  894. package/lib-cjs/component/loader/SpinnerContext.js +0 -15
  895. package/lib-cjs/component/main/ErrorOverlay.js +0 -26
  896. package/lib-cjs/component/main/InnerNMRium.js +0 -82
  897. package/lib-cjs/component/main/InnerNMRiumContents.js +0 -96
  898. package/lib-cjs/component/main/NMRium.js +0 -19
  899. package/lib-cjs/component/main/NMRiumStateProvider.js +0 -80
  900. package/lib-cjs/component/main/SplitPaneWrapper.js +0 -20
  901. package/lib-cjs/component/main/StateError.js +0 -20
  902. package/lib-cjs/component/main/index.js +0 -21
  903. package/lib-cjs/component/main/types.js +0 -3
  904. package/lib-cjs/component/modal/AboutPredictionModal.js +0 -54
  905. package/lib-cjs/component/modal/AboutSpectrumSimulationModal.js +0 -54
  906. package/lib-cjs/component/modal/AlignSpectraModal.js +0 -70
  907. package/lib-cjs/component/modal/CopyClipboardModal.js +0 -44
  908. package/lib-cjs/component/modal/EditPeakShapeModal.js +0 -112
  909. package/lib-cjs/component/modal/ExportAsJcampModal.js +0 -67
  910. package/lib-cjs/component/modal/ImportPublicationStringModal.js +0 -84
  911. package/lib-cjs/component/modal/LoadJCAMPModal.js +0 -100
  912. package/lib-cjs/component/modal/LogsHistoryModal.js +0 -115
  913. package/lib-cjs/component/modal/ModalStyle.js +0 -83
  914. package/lib-cjs/component/modal/MoleculeStructureEditorModal.js +0 -78
  915. package/lib-cjs/component/modal/MultipletAnalysisModal.js +0 -164
  916. package/lib-cjs/component/modal/PredictSpectraModal.js +0 -118
  917. package/lib-cjs/component/modal/SaveAsModal.js +0 -77
  918. package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +0 -10
  919. package/lib-cjs/component/modal/changeSum/ChangeSumModalContents.js +0 -124
  920. package/lib-cjs/component/modal/changeSum/SelectMolecule.js +0 -77
  921. package/lib-cjs/component/modal/editRange/EditRangeModal.js +0 -169
  922. package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +0 -107
  923. package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +0 -65
  924. package/lib-cjs/component/modal/editRange/forms/components/DeltaInput.js +0 -24
  925. package/lib-cjs/component/modal/editRange/forms/components/SignalFormInfo.js +0 -38
  926. package/lib-cjs/component/modal/editRange/forms/components/SignalFormTab.js +0 -23
  927. package/lib-cjs/component/modal/editRange/forms/components/SignalsForm.js +0 -118
  928. package/lib-cjs/component/modal/editRange/forms/validation/EditRangeValidation.js +0 -50
  929. package/lib-cjs/component/modal/editZone/EditPathLengthFormik.js +0 -72
  930. package/lib-cjs/component/modal/editZone/EditZoneModal.js +0 -106
  931. package/lib-cjs/component/modal/editZone/SignalsForm.js +0 -57
  932. package/lib-cjs/component/modal/editZone/validation/EditZoneValidation.js +0 -39
  933. package/lib-cjs/component/modal/editZone/validation/isDefaultPathLength.js +0 -12
  934. package/lib-cjs/component/modal/metaImportation/MetaImportationModal.js +0 -226
  935. package/lib-cjs/component/modal/metaImportation/index.js +0 -25
  936. package/lib-cjs/component/modal/metaImportation/utils/mapColumnToSelectItems.js +0 -13
  937. package/lib-cjs/component/modal/setting/GeneralSettings.js +0 -270
  938. package/lib-cjs/component/modal/setting/WorkspaceItem.js +0 -101
  939. package/lib-cjs/component/modal/setting/settings-tabs/DatabasesTabContent.js +0 -82
  940. package/lib-cjs/component/modal/setting/settings-tabs/DisplayTabContent.js +0 -97
  941. package/lib-cjs/component/modal/setting/settings-tabs/FormattingTabContent.js +0 -85
  942. package/lib-cjs/component/modal/setting/settings-tabs/GeneralTabContent.js +0 -45
  943. package/lib-cjs/component/modal/setting/settings-tabs/ImportationFiltersTabContent.js +0 -90
  944. package/lib-cjs/component/modal/setting/settings-tabs/InfoBlockTabContent.js +0 -104
  945. package/lib-cjs/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +0 -44
  946. package/lib-cjs/component/modal/setting/settings-tabs/ToolsTabContent.js +0 -112
  947. package/lib-cjs/component/modal/setting/settingsValidation.js +0 -60
  948. package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignment.js +0 -32
  949. package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +0 -47
  950. package/lib-cjs/component/panels/AutomaticAssignment/useAutoAssignments.js +0 -70
  951. package/lib-cjs/component/panels/InformationPanel.js +0 -111
  952. package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +0 -136
  953. package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +0 -125
  954. package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +0 -62
  955. package/lib-cjs/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +0 -54
  956. package/lib-cjs/component/panels/MatrixGenerationPanel/FiltersOptions.js +0 -111
  957. package/lib-cjs/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +0 -131
  958. package/lib-cjs/component/panels/MoleculesPanel/MoleculeHeader.js +0 -43
  959. package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +0 -103
  960. package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +0 -170
  961. package/lib-cjs/component/panels/MoleculesPanel/Utilities.js +0 -117
  962. package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +0 -203
  963. package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +0 -85
  964. package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +0 -101
  965. package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisCell.js +0 -20
  966. package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.js +0 -58
  967. package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +0 -62
  968. package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.js +0 -86
  969. package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/MultipleAnalysisCodeEditor.js +0 -53
  970. package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/index.js +0 -134
  971. package/lib-cjs/component/panels/PanelNoData.js +0 -28
  972. package/lib-cjs/component/panels/Panels.js +0 -170
  973. package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +0 -149
  974. package/lib-cjs/component/panels/PeaksPanel/PeaksPreferences.js +0 -83
  975. package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +0 -145
  976. package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +0 -145
  977. package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +0 -147
  978. package/lib-cjs/component/panels/RangesPanel/RangesPreferences.js +0 -87
  979. package/lib-cjs/component/panels/RangesPanel/RangesTable.js +0 -65
  980. package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +0 -111
  981. package/lib-cjs/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +0 -8
  982. package/lib-cjs/component/panels/RangesPanel/TableColumns/ActionsColumn.js +0 -38
  983. package/lib-cjs/component/panels/RangesPanel/TableColumns/CouplingColumn.js +0 -17
  984. package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +0 -43
  985. package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeColumn.js +0 -8
  986. package/lib-cjs/component/panels/RangesPanel/TableColumns/RelativeColumn.js +0 -27
  987. package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +0 -24
  988. package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +0 -28
  989. package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +0 -16
  990. package/lib-cjs/component/panels/RangesPanel/hooks/useEditRangeModal.js +0 -97
  991. package/lib-cjs/component/panels/RangesPanel/hooks/useMapRanges.js +0 -56
  992. package/lib-cjs/component/panels/SpectrumsPanel/SpectraPanelHeader.js +0 -104
  993. package/lib-cjs/component/panels/SpectrumsPanel/SpectraPreferences.js +0 -78
  994. package/lib-cjs/component/panels/SpectrumsPanel/SpectraTable.js +0 -238
  995. package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListPanel.js +0 -31
  996. package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +0 -74
  997. package/lib-cjs/component/panels/SpectrumsPanel/base/ColorIndicator.js +0 -27
  998. package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +0 -64
  999. package/lib-cjs/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +0 -71
  1000. package/lib-cjs/component/panels/SpectrumsPanel/base/SpectrumName.js +0 -41
  1001. package/lib-cjs/component/panels/SpectrumsPanel/base/setting/PlotChart.js +0 -21
  1002. package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.js +0 -22
  1003. package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +0 -14
  1004. package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +0 -23
  1005. package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +0 -26
  1006. package/lib-cjs/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +0 -100
  1007. package/lib-cjs/component/panels/SpectrumsPanel/base/setting/processSnapPlot.js +0 -32
  1008. package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +0 -157
  1009. package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +0 -146
  1010. package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/Constants.js +0 -45
  1011. package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +0 -95
  1012. package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +0 -191
  1013. package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +0 -42
  1014. package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +0 -136
  1015. package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +0 -92
  1016. package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +0 -83
  1017. package/lib-cjs/component/panels/SummaryPanel/Overview.js +0 -44
  1018. package/lib-cjs/component/panels/SummaryPanel/SetMolecularFormulaModal.js +0 -100
  1019. package/lib-cjs/component/panels/SummaryPanel/SetShiftTolerancesModal.js +0 -112
  1020. package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +0 -358
  1021. package/lib-cjs/component/panels/SummaryPanel/utilities/Utilities.js +0 -355
  1022. package/lib-cjs/component/panels/SummaryPanel/utilities/useInView.js +0 -20
  1023. package/lib-cjs/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +0 -86
  1024. package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +0 -16
  1025. package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +0 -12
  1026. package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +0 -39
  1027. package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +0 -31
  1028. package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +0 -12
  1029. package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +0 -191
  1030. package/lib-cjs/component/panels/ZonesPanel/ZonesPreferences.js +0 -46
  1031. package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +0 -80
  1032. package/lib-cjs/component/panels/ZonesPanel/ZonesTableRow.js +0 -127
  1033. package/lib-cjs/component/panels/ZonesPanel/hooks/useMapZones.js +0 -56
  1034. package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +0 -348
  1035. package/lib-cjs/component/panels/databasePanel/DatabasePreferences.js +0 -60
  1036. package/lib-cjs/component/panels/databasePanel/DatabaseStructureSearchModal.js +0 -15
  1037. package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +0 -161
  1038. package/lib-cjs/component/panels/extra/BasicPanelStyle.js +0 -23
  1039. package/lib-cjs/component/panels/extra/placeholder/NoTableData.js +0 -21
  1040. package/lib-cjs/component/panels/extra/preferences/ColumnsHelper.js +0 -54
  1041. package/lib-cjs/component/panels/extra/preferences/NucleusGroup.js +0 -26
  1042. package/lib-cjs/component/panels/extra/preferences/NucleusPreferences.js +0 -15
  1043. package/lib-cjs/component/panels/extra/preferences/PreferencesContainer.js +0 -14
  1044. package/lib-cjs/component/panels/extra/preferences/PreferencesGroup.js +0 -25
  1045. package/lib-cjs/component/panels/extra/utilities/MultiplicityUtilities.js +0 -39
  1046. package/lib-cjs/component/panels/extra/utilities/UseToggleStatus.js +0 -34
  1047. package/lib-cjs/component/panels/filtersPanel/FilterPanel.js +0 -36
  1048. package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +0 -153
  1049. package/lib-cjs/component/panels/header/DefaultPanelHeader.js +0 -37
  1050. package/lib-cjs/component/panels/header/PanelHeader.js +0 -15
  1051. package/lib-cjs/component/panels/header/PreferencesHeader.js +0 -30
  1052. package/lib-cjs/component/panels/header/SpectraAutomaticPickingButton.js +0 -36
  1053. package/lib-cjs/component/panels/predictionPanel/PredictionOptionsPanel.js +0 -123
  1054. package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +0 -130
  1055. package/lib-cjs/component/panels/predictionPanel/PredictionPreferences.js +0 -29
  1056. package/lib-cjs/component/panels/predictionPanel/PredictionSimpleOptions.js +0 -71
  1057. package/lib-cjs/component/panels/spectrumSimulation/SpectrumSimulation.js +0 -94
  1058. package/lib-cjs/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js +0 -42
  1059. package/lib-cjs/component/panels/spectrumSimulation/SpectrumSimulationSimpleOptions.js +0 -30
  1060. package/lib-cjs/component/panels/spectrumSimulation/SpinSystemTable.js +0 -67
  1061. package/lib-cjs/component/reducer/IgnoreActions.js +0 -43
  1062. package/lib-cjs/component/reducer/Reducer.js +0 -437
  1063. package/lib-cjs/component/reducer/actions/AssignmentsActions.js +0 -19
  1064. package/lib-cjs/component/reducer/actions/CorrelationsActions.js +0 -115
  1065. package/lib-cjs/component/reducer/actions/DatabaseActions.js +0 -38
  1066. package/lib-cjs/component/reducer/actions/DimensionsActions.js +0 -9
  1067. package/lib-cjs/component/reducer/actions/DomainActions.js +0 -238
  1068. package/lib-cjs/component/reducer/actions/FiltersActions.js +0 -667
  1069. package/lib-cjs/component/reducer/actions/HistoryActions.js +0 -45
  1070. package/lib-cjs/component/reducer/actions/IntegralsActions.js +0 -139
  1071. package/lib-cjs/component/reducer/actions/LoadActions.js +0 -194
  1072. package/lib-cjs/component/reducer/actions/MoleculeActions.js +0 -282
  1073. package/lib-cjs/component/reducer/actions/PeaksActions.js +0 -179
  1074. package/lib-cjs/component/reducer/actions/PreferencesActions.js +0 -108
  1075. package/lib-cjs/component/reducer/actions/RangesActions.js +0 -415
  1076. package/lib-cjs/component/reducer/actions/SpectraAnalysisAction.js +0 -24
  1077. package/lib-cjs/component/reducer/actions/SpectrumsActions.js +0 -428
  1078. package/lib-cjs/component/reducer/actions/ToolsActions.js +0 -478
  1079. package/lib-cjs/component/reducer/actions/ZonesActions.js +0 -299
  1080. package/lib-cjs/component/reducer/core/Constants.js +0 -17
  1081. package/lib-cjs/component/reducer/helper/GetClosestNumber.js +0 -10
  1082. package/lib-cjs/component/reducer/helper/Zoom1DManager.js +0 -64
  1083. package/lib-cjs/component/reducer/helper/ZoomHistoryManager.js +0 -71
  1084. package/lib-cjs/component/reducer/helper/get2DRange.js +0 -18
  1085. package/lib-cjs/component/reducer/helper/getActiveSpectra.js +0 -8
  1086. package/lib-cjs/component/reducer/helper/getActiveSpectraAsObject.js +0 -19
  1087. package/lib-cjs/component/reducer/helper/getActiveSpectrum.js +0 -12
  1088. package/lib-cjs/component/reducer/helper/getRange.js +0 -25
  1089. package/lib-cjs/component/reducer/helper/getSpectrum.js +0 -18
  1090. package/lib-cjs/component/reducer/helper/getStrongestPeak.js +0 -19
  1091. package/lib-cjs/component/reducer/helper/getVerticalAlign.js +0 -8
  1092. package/lib-cjs/component/reducer/preferences/actions/addWorkspace.js +0 -34
  1093. package/lib-cjs/component/reducer/preferences/actions/analyzeSpectra.js +0 -78
  1094. package/lib-cjs/component/reducer/preferences/actions/applyGeneralPreferences.js +0 -8
  1095. package/lib-cjs/component/reducer/preferences/actions/initPreferences.js +0 -65
  1096. package/lib-cjs/component/reducer/preferences/actions/matrixGeneration.js +0 -47
  1097. package/lib-cjs/component/reducer/preferences/actions/removeWorkspace.js +0 -17
  1098. package/lib-cjs/component/reducer/preferences/actions/setActiveWorkspace.js +0 -14
  1099. package/lib-cjs/component/reducer/preferences/actions/setPanelsPreferences.js +0 -22
  1100. package/lib-cjs/component/reducer/preferences/actions/setPreferences.js +0 -34
  1101. package/lib-cjs/component/reducer/preferences/actions/setVerticalSplitterPosition.js +0 -10
  1102. package/lib-cjs/component/reducer/preferences/actions/setWorkspace.js +0 -22
  1103. package/lib-cjs/component/reducer/preferences/panelsPreferencesDefaultValues.js +0 -128
  1104. package/lib-cjs/component/reducer/preferences/preferencesReducer.js +0 -139
  1105. package/lib-cjs/component/reducer/preferences/utilities/checkKeysExists.js +0 -18
  1106. package/lib-cjs/component/reducer/preferences/utilities/filterObject.js +0 -11
  1107. package/lib-cjs/component/reducer/preferences/utilities/flatObject.js +0 -13
  1108. package/lib-cjs/component/reducer/preferences/utilities/getActiveWorkspace.js +0 -7
  1109. package/lib-cjs/component/reducer/preferences/utilities/getPreferencesByWorkspace.js +0 -12
  1110. package/lib-cjs/component/reducer/preferences/utilities/initWorkspace.js +0 -12
  1111. package/lib-cjs/component/reducer/preferences/utilities/isReadOnlyWorkspace.js +0 -7
  1112. package/lib-cjs/component/reducer/preferences/utilities/mapNucleiFormatting.js +0 -14
  1113. package/lib-cjs/component/reducer/preferences/utilities/mapWorkspaces.js +0 -25
  1114. package/lib-cjs/component/reducer/scaleReducer.js +0 -39
  1115. package/lib-cjs/component/toolbar/BasicToolBar.js +0 -170
  1116. package/lib-cjs/component/toolbar/FunctionToolBar.js +0 -60
  1117. package/lib-cjs/component/toolbar/ToolBar.js +0 -20
  1118. package/lib-cjs/component/toolbar/ToolTypes.js +0 -390
  1119. package/lib-cjs/component/utility/Evaluate.js +0 -12
  1120. package/lib-cjs/component/utility/Events.js +0 -15
  1121. package/lib-cjs/component/utility/FileUtility.js +0 -22
  1122. package/lib-cjs/component/utility/GroupByInfoKey.js +0 -29
  1123. package/lib-cjs/component/utility/LocalStorage.js +0 -49
  1124. package/lib-cjs/component/utility/PathBuilder.js +0 -33
  1125. package/lib-cjs/component/utility/PreferencesHelper.js +0 -11
  1126. package/lib-cjs/component/utility/assert.js +0 -9
  1127. package/lib-cjs/component/utility/convertPathArrayToString.js +0 -7
  1128. package/lib-cjs/component/utility/export.js +0 -225
  1129. package/lib-cjs/component/utility/filterType.js +0 -2
  1130. package/lib-cjs/component/utility/formatNumber.js +0 -22
  1131. package/lib-cjs/component/utility/getSpectraByNucleus.js +0 -11
  1132. package/lib-cjs/component/utility/getSpectraObjectPaths.js +0 -26
  1133. package/lib-cjs/component/utility/getUniqueNuclei.js +0 -14
  1134. package/lib-cjs/component/utility/isGoogleDocument.js +0 -7
  1135. package/lib-cjs/component/utility/jpathToArray.js +0 -27
  1136. package/lib-cjs/component/utility/nucleusToString.js +0 -6
  1137. package/lib-cjs/component/utility/parseColor.js +0 -19
  1138. package/lib-cjs/component/workspaces/assignment.js +0 -36
  1139. package/lib-cjs/component/workspaces/basic.js +0 -42
  1140. package/lib-cjs/component/workspaces/embedded.js +0 -46
  1141. package/lib-cjs/component/workspaces/exercise.js +0 -62
  1142. package/lib-cjs/component/workspaces/index.js +0 -18
  1143. package/lib-cjs/component/workspaces/prediction.js +0 -238
  1144. package/lib-cjs/component/workspaces/process1D.js +0 -38
  1145. package/lib-cjs/component/workspaces/simulation.js +0 -71
  1146. package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +0 -184
  1147. package/lib-cjs/constants.js +0 -26
  1148. package/lib-cjs/data/PredictionManager.js +0 -314
  1149. package/lib-cjs/data/SpectraManager.js +0 -147
  1150. package/lib-cjs/data/constants/DefaultApodizationOptions.js +0 -8
  1151. package/lib-cjs/data/constants/DefaultPathLengths.js +0 -10
  1152. package/lib-cjs/data/constants/Multiplets.js +0 -9
  1153. package/lib-cjs/data/constants/References.js +0 -43
  1154. package/lib-cjs/data/constants/SignalsKinds.js +0 -39
  1155. package/lib-cjs/data/data1d/Spectrum1D/SumManager.js +0 -101
  1156. package/lib-cjs/data/data1d/Spectrum1D/cloneDatum1D.js +0 -8
  1157. package/lib-cjs/data/data1d/Spectrum1D/convertDataToFloat64Array.js +0 -14
  1158. package/lib-cjs/data/data1d/Spectrum1D/generateJGraphData.js +0 -83
  1159. package/lib-cjs/data/data1d/Spectrum1D/generateSpectrumFromPublicationString.js +0 -10
  1160. package/lib-cjs/data/data1d/Spectrum1D/get1DColor.js +0 -18
  1161. package/lib-cjs/data/data1d/Spectrum1D/get1DDataXY.js +0 -18
  1162. package/lib-cjs/data/data1d/Spectrum1D/getReferenceShift.js +0 -63
  1163. package/lib-cjs/data/data1d/Spectrum1D/index.js +0 -45
  1164. package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +0 -74
  1165. package/lib-cjs/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +0 -27
  1166. package/lib-cjs/data/data1d/Spectrum1D/integrals/initiateIntegrals.js +0 -21
  1167. package/lib-cjs/data/data1d/Spectrum1D/isRangeAssigned.js +0 -14
  1168. package/lib-cjs/data/data1d/Spectrum1D/isSpectrum1D.js +0 -7
  1169. package/lib-cjs/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +0 -33
  1170. package/lib-cjs/data/data1d/Spectrum1D/peaks/initiatePeaks.js +0 -14
  1171. package/lib-cjs/data/data1d/Spectrum1D/peaks/lookupPeak.js +0 -25
  1172. package/lib-cjs/data/data1d/Spectrum1D/peaks/optimizePeaks.js +0 -29
  1173. package/lib-cjs/data/data1d/Spectrum1D/ranges/addRange.js +0 -53
  1174. package/lib-cjs/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +0 -45
  1175. package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRange.js +0 -45
  1176. package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +0 -32
  1177. package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +0 -18
  1178. package/lib-cjs/data/data1d/Spectrum1D/ranges/checkRangeKind.js +0 -9
  1179. package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRange.js +0 -25
  1180. package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRanges.js +0 -21
  1181. package/lib-cjs/data/data1d/Spectrum1D/ranges/detectSignal.js +0 -80
  1182. package/lib-cjs/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.js +0 -33
  1183. package/lib-cjs/data/data1d/Spectrum1D/ranges/initiateRanges.js +0 -21
  1184. package/lib-cjs/data/data1d/database.js +0 -155
  1185. package/lib-cjs/data/data1d/multipleSpectraAnalysis.js +0 -215
  1186. package/lib-cjs/data/data1d/spectrumSimulation.js +0 -58
  1187. package/lib-cjs/data/data2d/Processing2D.js +0 -134
  1188. package/lib-cjs/data/data2d/Spectrum2D/cloneDatum2D.js +0 -13
  1189. package/lib-cjs/data/data2d/Spectrum2D/contours.js +0 -144
  1190. package/lib-cjs/data/data2d/Spectrum2D/get2DColor.js +0 -21
  1191. package/lib-cjs/data/data2d/Spectrum2D/get2DSpectrumErrorValue.js +0 -13
  1192. package/lib-cjs/data/data2d/Spectrum2D/getMissingProjection.js +0 -44
  1193. package/lib-cjs/data/data2d/Spectrum2D/getShift.js +0 -19
  1194. package/lib-cjs/data/data2d/Spectrum2D/getSlice.js +0 -50
  1195. package/lib-cjs/data/data2d/Spectrum2D/index.js +0 -21
  1196. package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +0 -48
  1197. package/lib-cjs/data/data2d/Spectrum2D/isSpectrum2D.js +0 -7
  1198. package/lib-cjs/data/data2d/Spectrum2D/zones/changeZoneSignal.js +0 -28
  1199. package/lib-cjs/data/data2d/Spectrum2D/zones/detectZones.js +0 -10
  1200. package/lib-cjs/data/data2d/Spectrum2D/zones/detectZonesManual.js +0 -33
  1201. package/lib-cjs/data/data2d/Spectrum2D/zones/getDetectionZones.js +0 -88
  1202. package/lib-cjs/data/data2d/Spectrum2D/zones/initiateZones.js +0 -21
  1203. package/lib-cjs/data/data2d/Spectrum2D/zones/isZoneExists.js +0 -19
  1204. package/lib-cjs/data/data2d/Spectrum2D/zones/mapZones.js +0 -67
  1205. package/lib-cjs/data/data2d/Spectrum2D/zones/updateZones.js +0 -11
  1206. package/lib-cjs/data/defaults/13c.js +0 -5
  1207. package/lib-cjs/data/defaults/1h.js +0 -5
  1208. package/lib-cjs/data/defaults/default.js +0 -23
  1209. package/lib-cjs/data/getDefaultMatrixFilters.js +0 -27
  1210. package/lib-cjs/data/matrixGeneration.js +0 -130
  1211. package/lib-cjs/data/molecules/Molecule.js +0 -42
  1212. package/lib-cjs/data/molecules/MoleculeManager.js +0 -106
  1213. package/lib-cjs/data/parseMeta/index.js +0 -14
  1214. package/lib-cjs/data/parseMeta/isMetaFile.js +0 -11
  1215. package/lib-cjs/data/parseMeta/linkMetaWithSpectra.js +0 -97
  1216. package/lib-cjs/data/parseMeta/mapErrors.js +0 -11
  1217. package/lib-cjs/data/parseMeta/parseMetaFile.js +0 -16
  1218. package/lib-cjs/data/parseMeta/prepareKey.js +0 -10
  1219. package/lib-cjs/data/types/common/File.js +0 -2
  1220. package/lib-cjs/data/types/common/Info.js +0 -2
  1221. package/lib-cjs/data/types/common/MapOptions.js +0 -2
  1222. package/lib-cjs/data/types/common/Nucleus.js +0 -2
  1223. package/lib-cjs/data/types/data1d/ComplexData1D.js +0 -2
  1224. package/lib-cjs/data/types/data1d/ExclusionZone.js +0 -2
  1225. package/lib-cjs/data/types/data1d/MatrixOptions.js +0 -2
  1226. package/lib-cjs/data/types/data1d/RangeDetectionResult.js +0 -2
  1227. package/lib-cjs/data/types/data1d/index.js +0 -2
  1228. package/lib-cjs/data/types/data2d/ContourOptions.js +0 -2
  1229. package/lib-cjs/data/types/data2d/index.js +0 -2
  1230. package/lib-cjs/data/utilities/Concatenation.js +0 -8
  1231. package/lib-cjs/data/utilities/FindUtilities.js +0 -63
  1232. package/lib-cjs/data/utilities/RangeUtilities.js +0 -95
  1233. package/lib-cjs/data/utilities/ZoneUtilities.js +0 -99
  1234. package/lib-cjs/data/utilities/calculateSanPlot.js +0 -34
  1235. package/lib-cjs/data/utilities/checkModifierKeyActivated.js +0 -13
  1236. package/lib-cjs/data/utilities/convertSpectraListToObject.js +0 -10
  1237. package/lib-cjs/data/utilities/generateChar.js +0 -16
  1238. package/lib-cjs/data/utilities/generateColor.js +0 -74
  1239. package/lib-cjs/data/utilities/generateNumbersPowerOfX.js +0 -26
  1240. package/lib-cjs/data/utilities/getAtom.js +0 -6
  1241. package/lib-cjs/data/utilities/getAtomsFromMF.js +0 -19
  1242. package/lib-cjs/data/utilities/getSum.js +0 -19
  1243. package/lib-cjs/data/utilities/isInRange.js +0 -7
  1244. package/lib-cjs/data/utilities/isNumber.js +0 -7
  1245. package/lib-cjs/types/NMRiumDataReturn.js +0 -2
  1246. package/lib-cjs/types/UsedColors.js +0 -2
  1247. package/lib-cjs/utils/clipboard/clipboard.js +0 -23
  1248. package/lib-cjs/utils/clipboard/clipboardComponents.js +0 -158
  1249. package/lib-cjs/utils/clipboard/clipboardHooks.js +0 -147
  1250. package/lib-cjs/utils/clipboard/types.js +0 -2
  1251. package/lib-cjs/versionInfo.js +0 -3
  1252. /package/lib/component/modal/{AboutUsModal.d.ts → aboutUs/AboutUsModal.d.ts} +0 -0
  1253. /package/{lib-cjs/component/reducer/types/ActionType.js → lib/data/types/common/SignalKind.js} +0 -0
@@ -1,437 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
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);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.spectrumReducer = exports.initState = exports.initialState = exports.getInitialState = exports.getDefaultViewState = exports.zoneStateInit = exports.rangeStateInit = void 0;
27
- const uuid_1 = require("@lukeed/uuid");
28
- const immer_1 = require("immer");
29
- const nmr_correlation_1 = require("nmr-correlation");
30
- const Constants_1 = require("../panels/SummaryPanel/CorrelationTable/Constants");
31
- const AssignmentsActions = __importStar(require("./actions/AssignmentsActions"));
32
- const CorrelationsActions = __importStar(require("./actions/CorrelationsActions"));
33
- const DatabaseActions = __importStar(require("./actions/DatabaseActions"));
34
- const DimensionsActions = __importStar(require("./actions/DimensionsActions"));
35
- const DomainActions = __importStar(require("./actions/DomainActions"));
36
- const FiltersActions = __importStar(require("./actions/FiltersActions"));
37
- const IntegralsActions = __importStar(require("./actions/IntegralsActions"));
38
- const LoadActions = __importStar(require("./actions/LoadActions"));
39
- const MoleculeActions = __importStar(require("./actions/MoleculeActions"));
40
- const PeaksActions = __importStar(require("./actions/PeaksActions"));
41
- const PreferencesActions = __importStar(require("./actions/PreferencesActions"));
42
- const RangesActions = __importStar(require("./actions/RangesActions"));
43
- const SpectraAnalysisActions = __importStar(require("./actions/SpectraAnalysisAction"));
44
- const SpectrumsActions = __importStar(require("./actions/SpectrumsActions"));
45
- const ToolsActions = __importStar(require("./actions/ToolsActions"));
46
- const ZonesActions = __importStar(require("./actions/ZonesActions"));
47
- const Constants_2 = require("./core/Constants");
48
- exports.rangeStateInit = {
49
- showMultiplicityTrees: false,
50
- showRangesIntegrals: true,
51
- showJGraph: false,
52
- };
53
- exports.zoneStateInit = {
54
- showZones: true,
55
- showSignals: true,
56
- showPeaks: true,
57
- };
58
- function getDefaultViewState() {
59
- return {
60
- molecules: {},
61
- ranges: [],
62
- zones: [],
63
- peaks: {},
64
- spectra: {
65
- activeSpectra: {},
66
- activeTab: '',
67
- showLegend: false,
68
- selectReferences: {},
69
- },
70
- zoom: {
71
- levels: {},
72
- },
73
- verticalAlign: {},
74
- predictions: {},
75
- currentSimulatedSpectrumKey: null,
76
- };
77
- }
78
- exports.getDefaultViewState = getDefaultViewState;
79
- const getInitialState = () => ({
80
- actionType: 'INITIALIZE_NMRIUM',
81
- data: [],
82
- tempData: null,
83
- xDomain: [],
84
- yDomain: [],
85
- yDomains: {},
86
- xDomains: {},
87
- originDomain: {
88
- xDomain: [],
89
- yDomain: [],
90
- xDomains: {},
91
- yDomains: {},
92
- shareYDomain: false,
93
- },
94
- integralsYDomains: {},
95
- width: 0,
96
- height: 0,
97
- margin: {
98
- top: 10,
99
- right: 20,
100
- bottom: 50,
101
- left: 0,
102
- },
103
- mode: 'RTL',
104
- molecules: [],
105
- view: getDefaultViewState(),
106
- history: {
107
- past: [],
108
- present: null,
109
- future: [],
110
- hasUndo: false,
111
- hasRedo: false,
112
- },
113
- isLoading: false,
114
- keysPreferences: {},
115
- displayerMode: Constants_2.DISPLAYER_MODE.DM_1D,
116
- correlations: {},
117
- displayerKey: '',
118
- zoom: {
119
- history: {},
120
- },
121
- toolOptions: {
122
- selectedTool: 'zoom',
123
- selectedOptionPanel: null,
124
- data: {
125
- baselineCorrection: {
126
- options: {},
127
- zones: [],
128
- livePreview: true,
129
- },
130
- apodizationOptions: {},
131
- pivot: { value: 0, index: 0 },
132
- zonesNoiseFactor: 1,
133
- activeFilterID: null,
134
- predictionIndex: 0,
135
- },
136
- },
137
- usedColors: { '1d': [], '2d': [] },
138
- });
139
- exports.getInitialState = getInitialState;
140
- exports.initialState = (0, exports.getInitialState)();
141
- function initState(state) {
142
- const displayerKey = (0, uuid_1.v4)();
143
- const correlations = (0, nmr_correlation_1.buildCorrelationData)([], {
144
- tolerance: Constants_1.DefaultTolerance,
145
- });
146
- return {
147
- ...state,
148
- correlations,
149
- displayerKey,
150
- history: {},
151
- };
152
- }
153
- exports.initState = initState;
154
- function innerSpectrumReducer(draft, action) {
155
- if (!['LOAD_DROP_FILES', 'INITIATE'].includes(action.type)) {
156
- draft.actionType = action.type;
157
- }
158
- try {
159
- switch (action.type) {
160
- case 'INITIATE':
161
- return LoadActions.handleInitiate(draft, action);
162
- case 'LOAD_DROP_FILES':
163
- return LoadActions.handleLoadDropFiles(draft, action);
164
- case 'SET_LOADING_FLAG':
165
- return LoadActions.handleSetIsLoading(draft, action);
166
- case 'ADD_PEAK':
167
- return PeaksActions.handleAddPeak(draft, action);
168
- case 'ADD_PEAKS':
169
- return PeaksActions.handleAddPeaks(draft, action);
170
- case 'DELETE_PEAK':
171
- return PeaksActions.handleDeletePeak(draft, action);
172
- case 'AUTO_PEAK_PICKING':
173
- return PeaksActions.handleAutoPeakPicking(draft, action);
174
- case 'OPTIMIZE_PEAKS':
175
- return PeaksActions.handleOptimizePeaks(draft, action);
176
- case 'CHANGE_PEAK_SHAPE':
177
- return PeaksActions.handleChangePeakShape(draft, action);
178
- case 'TOGGLE_PEAKS_VIEW_PROPERTY':
179
- return PeaksActions.handleTogglePeaksViewProperty(draft, action);
180
- case 'TOGGLE_PEAKS_DISPLAYING_MODE':
181
- return PeaksActions.handleChangePeaksDisplayingMode(draft);
182
- case 'ADD_INTEGRAL':
183
- return IntegralsActions.handleAddIntegral(draft, action);
184
- case 'DELETE_INTEGRAL':
185
- return IntegralsActions.handleDeleteIntegral(draft, action);
186
- case 'RESIZE_INTEGRAL':
187
- case 'CHANGE_INTEGRAL':
188
- return IntegralsActions.handleChangeIntegral(draft, action);
189
- case 'CHANGE_INTEGRAL_SUM':
190
- return IntegralsActions.handleChangeIntegralSum(draft, action);
191
- case 'CHANGE_INTEGRALS_SUM_FLAG':
192
- return IntegralsActions.handleChangeIntegralsSumFlag(draft);
193
- case 'CHANGE_INTEGRAL_RELATIVE':
194
- return IntegralsActions.handleChangeIntegralsRelativeValue(draft, action);
195
- case 'CUT_INTEGRAL':
196
- return IntegralsActions.handleCutIntegral(draft, action);
197
- case 'SET_X_DOMAIN':
198
- return DomainActions.handleSetXDomain(draft, action);
199
- case 'SET_Y_DOMAIN':
200
- return DomainActions.handleSetYDomain(draft, action);
201
- case 'MOVE':
202
- return DomainActions.handleMoveOverXAxis(draft, action);
203
- case 'SET_DIMENSIONS':
204
- return DimensionsActions.handleSetDimensions(draft, action);
205
- case 'SHIFT_SPECTRUM':
206
- return FiltersActions.handleShiftSpectrumAlongXAxis(draft, action);
207
- case 'APPLY_APODIZATION_FILTER':
208
- return FiltersActions.handleApplyApodizationFilter(draft, action);
209
- case 'CALCULATE_APODIZATION_FILTER':
210
- return FiltersActions.handleCalculateApodizationFilter(draft, action);
211
- case 'APPLY_ZERO_FILLING_FILTER':
212
- return FiltersActions.handleApplyZeroFillingFilter(draft, action);
213
- case 'CALCULATE_ZERO_FILLING_FILTER':
214
- return FiltersActions.handleCalculateZeroFillingFilter(draft, action);
215
- case 'APPLY_FFT_FILTER':
216
- return FiltersActions.handleApplyFFTFilter(draft);
217
- case 'APPLY_FFT_DIMENSION_1_FILTER':
218
- return FiltersActions.handleApplyFFtDimension1Filter(draft);
219
- case 'APPLY_FFT_DIMENSION_2_FILTER':
220
- return FiltersActions.handleApplyFFtDimension2Filter(draft);
221
- case 'APPLY_MANUAL_PHASE_CORRECTION_FILTER':
222
- return FiltersActions.handleApplyManualPhaseCorrectionFilter(draft, action);
223
- case 'CALCULATE_MANUAL_PHASE_CORRECTION_FILTER':
224
- return FiltersActions.handleCalculateManualPhaseCorrection(draft, action);
225
- case 'APPLY_AUTO_PHASE_CORRECTION_FILTER':
226
- return FiltersActions.handleApplyAutoPhaseCorrectionFilter(draft);
227
- case 'APPLY_ABSOLUTE_FILTER':
228
- return FiltersActions.handleApplyAbsoluteFilter(draft);
229
- case 'APPLY_BASE_LINE_CORRECTION_FILTER':
230
- return FiltersActions.handleBaseLineCorrectionFilter(draft, action);
231
- case 'CALCULATE_BASE_LINE_CORRECTION_FILTER':
232
- return FiltersActions.handleCalculateBaseLineCorrection(draft, action);
233
- case 'ENABLE_FILTER':
234
- return FiltersActions.handleEnableFilter(draft, action);
235
- case 'DELETE_FILTER':
236
- return FiltersActions.handleDeleteFilter(draft, action);
237
- case 'DELETE_SPECTRA_FILTER':
238
- return FiltersActions.handleDeleteSpectraFilter(draft, action);
239
- case 'SET_FILTER_SNAPSHOT':
240
- return FiltersActions.handleSetFilterSnapshotHandler(draft, action);
241
- case 'APPLY_SIGNAL_PROCESSING_FILTER':
242
- return FiltersActions.handleSignalProcessingFilter(draft, action);
243
- case 'ADD_EXCLUSION_ZONE':
244
- return FiltersActions.handleAddExclusionZone(draft, action);
245
- case 'DELETE_EXCLUSION_ZONE':
246
- return FiltersActions.handleDeleteExclusionZone(draft, action);
247
- case 'CHANGE_SPECTRUM_VISIBILITY':
248
- return SpectrumsActions.handleChangeSpectrumVisibilityById(draft, action);
249
- case 'CHANGE_SPECTRA_VISIBILITY_BY_NUCLEUS':
250
- return SpectrumsActions.handleChangeSpectraVisibilityByNucleus(draft, action);
251
- case 'CHANGE_ACTIVE_SPECTRUM':
252
- return SpectrumsActions.handleChangeActiveSpectrum(draft, action);
253
- case 'CHANGE_SPECTRUM_SETTING':
254
- return SpectrumsActions.handleChangeSpectrumSetting(draft, action);
255
- case 'ALIGN_SPECTRA':
256
- return SpectrumsActions.handleAlignSpectraHandler(draft, action);
257
- case 'DELETE_SPECTRA':
258
- return SpectrumsActions.handleDeleteSpectra(draft, action);
259
- case 'ADD_MISSING_PROJECTION':
260
- return SpectrumsActions.handleAddMissingProjectionHandler(draft, action);
261
- case 'GENERATE_SPECTRUM_FROM_PUBLICATION_STRING':
262
- return SpectrumsActions.handleGenerateSpectrumFromPublicationStringHandler(draft, action);
263
- case 'IMPORT_SPECTRA_META_INFO':
264
- return SpectrumsActions.handleImportSpectraMetaInfo(draft, action);
265
- case 'TOGGLE_SPECTRA_LEGEND':
266
- return SpectrumsActions.handleToggleSpectraLegend(draft);
267
- case 'RECOLOR_SPECTRA_COLOR':
268
- return SpectrumsActions.handleRecolorSpectraBasedOnDistinctValue(draft, action);
269
- case 'ORDER_SPECTRA':
270
- return SpectrumsActions.handleOrderSpectra(draft, action);
271
- case 'SIMULATE_SPECTRUM':
272
- return SpectrumsActions.handleSimulateSpectrum(draft, action);
273
- case 'SET_SELECTED_TOOL':
274
- return ToolsActions.setSelectedTool(draft, action);
275
- case 'RESET_SELECTED_TOOL':
276
- return ToolsActions.handleResetSelectedTool(draft);
277
- case 'FULL_ZOOM_OUT':
278
- return ToolsActions.zoomOut(draft, action);
279
- case 'TOGGLE_REAL_IMAGINARY_VISIBILITY':
280
- return ToolsActions.handleToggleRealImaginaryVisibility(draft);
281
- case 'SET_ZOOM':
282
- return ToolsActions.handleZoom(draft, action);
283
- case 'SET_SPECTRA_SAME_TOP':
284
- return ToolsActions.setSpectraSameTopHandler(draft);
285
- case 'RESET_SPECTRA_SCALE':
286
- return ToolsActions.resetSpectraScale(draft);
287
- case 'CHANGE_SPECTRUM_DISPLAY_VIEW_MODE':
288
- return ToolsActions.handleChangeSpectrumDisplayMode(draft);
289
- case 'BRUSH_END':
290
- return ToolsActions.handleBrushEnd(draft, action);
291
- case 'SET_VERTICAL_INDICATOR_X_POSITION':
292
- return ToolsActions.setVerticalIndicatorXPosition(draft, action);
293
- case 'SET_SPECTRUMS_VERTICAL_ALIGN':
294
- return ToolsActions.setSpectrumsVerticalAlign(draft);
295
- case 'SET_ACTIVE_TAB':
296
- return ToolsActions.handelSetActiveTab(draft, action);
297
- case 'ADD_BASE_LINE_ZONE':
298
- return ToolsActions.handleAddBaseLineZone(draft, action);
299
- case 'DELETE_BASE_LINE_ZONE':
300
- return ToolsActions.handleDeleteBaseLineZone(draft, action);
301
- case 'SET_2D_LEVEL':
302
- return ToolsActions.levelChangeHandler(draft, action);
303
- case 'ADD_MOLECULE':
304
- return MoleculeActions.handleAddMolecule(draft, action);
305
- case 'ADD_MOLECULES':
306
- return MoleculeActions.handleAddMolecules(draft, action);
307
- case 'SET_MOLECULE':
308
- return MoleculeActions.handleSetMolecule(draft, action);
309
- case 'CHANGE_MOLECULE_LABEL':
310
- return MoleculeActions.handleChangeMoleculeLabel(draft, action);
311
- case 'DELETE_MOLECULE':
312
- return MoleculeActions.handleDeleteMolecule(draft, action);
313
- case 'PREDICT_SPECTRA':
314
- return MoleculeActions.handlePredictSpectraFromMolecule(draft, action);
315
- case 'FLOAT_MOLECULE_OVER_SPECTRUM':
316
- return MoleculeActions.handleFloatMoleculeOverSpectrum(draft, action);
317
- case 'TOGGLE_MOLECULE_ATOM_NUMBER':
318
- return MoleculeActions.handleToggleMoleculeAtomsNumbers(draft, action);
319
- case 'CHANGE_FLOAT_MOLECULE_POSITION':
320
- return MoleculeActions.handleChangeFloatMoleculePosition(draft, action);
321
- case 'SET_CORRELATIONS_MF':
322
- return CorrelationsActions.handleSetMF(draft, action);
323
- case 'SET_CORRELATIONS_TOLERANCE':
324
- return CorrelationsActions.handleSetTolerance(draft, action);
325
- case 'SET_CORRELATION':
326
- return CorrelationsActions.handleSetCorrelation(draft, action);
327
- case 'SET_CORRELATIONS':
328
- return CorrelationsActions.handleSetCorrelations(draft, action);
329
- case 'DELETE_CORRELATION':
330
- return CorrelationsActions.handleDeleteCorrelation(draft, action);
331
- case 'AUTO_RANGES_DETECTION':
332
- return RangesActions.handleAutoRangesDetection(draft, action);
333
- case 'ADD_RANGE':
334
- return RangesActions.handleAddRange(draft, action);
335
- case 'DELETE_RANGE':
336
- return RangesActions.handleDeleteRange(draft, action);
337
- case 'DELETE_1D_SIGNAL':
338
- return RangesActions.handleDeleteSignal(draft, action);
339
- case 'RESIZE_RANGE':
340
- return RangesActions.handleResizeRange(draft, action);
341
- case 'CHANGE_RANGE_SUM':
342
- return RangesActions.handleChangeRangeSum(draft, action);
343
- case 'CHANGE_RANGES_SUM_FLAG':
344
- return RangesActions.handleChangeRangesSumFlag(draft);
345
- case 'CHANGE_RANGE_RELATIVE':
346
- return RangesActions.handleChangeRangeRelativeValue(draft, action);
347
- case 'CHANGE_RANGE_SIGNAL_VALUE':
348
- return RangesActions.handleChangeRangeSignalValue(draft, action);
349
- case 'CHANGE_RANGE_SIGNAL_KIND':
350
- return RangesActions.handleChangeRangeSignalKind(draft, action);
351
- case 'SAVE_EDITED_RANGE':
352
- return RangesActions.handleSaveEditedRange(draft, action);
353
- case 'UNLINK_RANGE':
354
- return RangesActions.handleUnlinkRange(draft, action);
355
- case 'SET_DIAID_RANGE':
356
- return RangesActions.handleSetDiaIDRange(draft, action);
357
- case 'UPDATE_RANGE':
358
- return RangesActions.handleUpdateRange(draft, action);
359
- case 'SHOW_MULTIPLICITY_TREES':
360
- return RangesActions.handleShowMultiplicityTrees(draft, action);
361
- case 'SHOW_RANGES_INTEGRALS':
362
- return RangesActions.handleShowRangesIntegrals(draft, action);
363
- case 'AUTO_RANGES_SPECTRA_PICKING':
364
- return RangesActions.handleAutoSpectraRangesDetection(draft);
365
- case 'SHOW_J_GRAPH':
366
- return RangesActions.handleShowJGraph(draft, action);
367
- case 'CUT_RANGE':
368
- return RangesActions.handleCutRange(draft, action);
369
- case 'SET_KEY_PREFERENCES':
370
- return PreferencesActions.handleSetKeyPreferences(draft, action);
371
- case 'APPLY_KEY_PREFERENCES':
372
- return PreferencesActions.handleApplyKeyPreferences(draft, action);
373
- case 'AUTO_ZONES_DETECTION':
374
- return ZonesActions.handleAutoZonesDetection(draft, action);
375
- case 'CHANGE_ZONES_NOISE_FACTOR':
376
- return ZonesActions.handleChangeZonesFactor(draft, action);
377
- case 'ADD_2D_ZONE':
378
- return ZonesActions.handleAdd2dZone(draft, action);
379
- case 'DELETE_2D_ZONE':
380
- return ZonesActions.handleDeleteZone(draft, action);
381
- case 'DELETE_2D_SIGNAL':
382
- return ZonesActions.handleDeleteSignal(draft, action);
383
- case 'SET_2D_SIGNAL_PATH_LENGTH':
384
- return ZonesActions.handleSetSignalPathLength(draft, action);
385
- case 'CHANGE_ZONE_SIGNAL_VALUE':
386
- return ZonesActions.handleChangeZoneSignalDelta(draft, action);
387
- case 'CHANGE_ZONE_SIGNAL_KIND':
388
- return ZonesActions.handleChangeZoneSignalKind(draft, action);
389
- case 'UNLINK_ZONE':
390
- return ZonesActions.handleUnlinkZone(draft, action);
391
- case 'SET_ZONE_DIAID':
392
- return ZonesActions.handleSetDiaIDZone(draft, action);
393
- case 'AUTO_ZONES_SPECTRA_PICKING':
394
- return ZonesActions.handleAutoSpectraZonesDetection(draft);
395
- case 'SHOW_ZONES':
396
- return ZonesActions.handleShowZones(draft, action);
397
- case 'SHOW_ZONES_SIGNALS':
398
- return ZonesActions.handleShowSignals(draft, action);
399
- case 'SHOW_ZONES_PEAKS':
400
- return ZonesActions.handleShowPeaks(draft, action);
401
- case 'SAVE_EDITED_ZONE':
402
- return ZonesActions.handleSaveEditedZone(draft, action);
403
- case 'ORDER_MULTIPLE_SPECTRA_ANALYSIS':
404
- return SpectraAnalysisActions.handleOrderSpectra(draft, action);
405
- case 'RESURRECTING_SPECTRUM_FROM_RANGES':
406
- return DatabaseActions.handleResurrectSpectrumFromRanges(draft, action);
407
- case 'RESURRECTING_SPECTRUM_FROM_JCAMP':
408
- return DatabaseActions.handleResurrectSpectrumFromJcamp(draft, action);
409
- case 'SET_AUTOMATIC_ASSIGNMENTS':
410
- return AssignmentsActions.handleSetAutomaticAssignments(draft, action);
411
- default:
412
- }
413
- }
414
- catch (error) {
415
- draft.errorAction = error;
416
- error.data = { action, state: getDebugState(draft) };
417
- reportError(error);
418
- }
419
- }
420
- exports.spectrumReducer = (0, immer_1.produce)(innerSpectrumReducer);
421
- function getDebugState(draft) {
422
- const state = (0, immer_1.original)(draft);
423
- const string = JSON.stringify(state, (key, value) => {
424
- if (ArrayBuffer.isView(value)) {
425
- return Array.from(value).slice(0, 20);
426
- }
427
- if (Array.isArray(value) && typeof value[0] === 'number') {
428
- return value.slice(0, 20);
429
- }
430
- return value;
431
- });
432
- if (string.length > 800000) {
433
- // fallback, better to have something as a string t han nothing
434
- return string.slice(0, 800000);
435
- }
436
- return JSON.parse(string);
437
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.handleSetAutomaticAssignments = void 0;
4
- function handleSetAutomaticAssignments(draft, action) {
5
- const assignments = action.payload.assignments;
6
- for (const datum of assignments) {
7
- const index = draft.data.findIndex((spectrum) => spectrum.id === datum.id);
8
- if (index !== -1) {
9
- const dimension = draft.data[index].info.dimension;
10
- if (dimension === 1) {
11
- draft.data[index].ranges.values = datum.ranges;
12
- }
13
- else if (dimension === 2) {
14
- draft.data[index].zones.values = datum.zones;
15
- }
16
- }
17
- }
18
- }
19
- exports.handleSetAutomaticAssignments = handleSetAutomaticAssignments;
@@ -1,115 +0,0 @@
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
- exports.handleUpdateCorrelations = exports.handleSetTolerance = exports.handleSetMF = exports.handleSetCorrelations = exports.handleSetCorrelation = exports.handleDeleteCorrelation = void 0;
7
- const immer_1 = require("immer");
8
- const cloneDeep_1 = __importDefault(require("lodash/cloneDeep"));
9
- const nmr_correlation_1 = require("nmr-correlation");
10
- const FindUtilities_1 = require("../../../data/utilities/FindUtilities");
11
- const RangesActions_1 = require("./RangesActions");
12
- const ZonesActions_1 = require("./ZonesActions");
13
- function handleUpdateCorrelations(draft) {
14
- const { data: spectra, correlations } = draft;
15
- draft.correlations = (0, nmr_correlation_1.buildCorrelationData)(spectra, {
16
- ...correlations.options,
17
- values: (0, cloneDeep_1.default)(correlations.values),
18
- });
19
- }
20
- exports.handleUpdateCorrelations = handleUpdateCorrelations;
21
- //action
22
- function handleSetMF(draft, action) {
23
- const state = (0, immer_1.original)(draft);
24
- const { data: spectra, correlations } = state;
25
- const { mf } = action.payload;
26
- // update of correlation data is needed only if the following is true
27
- if (correlations.options.mf === '' || correlations.options.mf !== mf) {
28
- draft.correlations = (0, nmr_correlation_1.buildCorrelationData)(spectra, {
29
- ...correlations.options,
30
- mf,
31
- values: (0, cloneDeep_1.default)(correlations.values),
32
- });
33
- }
34
- }
35
- exports.handleSetMF = handleSetMF;
36
- //action
37
- function handleSetTolerance(draft, action) {
38
- const state = (0, immer_1.original)(draft);
39
- const { data: spectra, correlations } = state;
40
- const { tolerance } = action.payload;
41
- draft.correlations = (0, nmr_correlation_1.buildCorrelationData)(spectra, {
42
- ...correlations.options,
43
- tolerance,
44
- values: (0, cloneDeep_1.default)(correlations.values),
45
- });
46
- }
47
- exports.handleSetTolerance = handleSetTolerance;
48
- //action
49
- function handleSetCorrelation(draft, action) {
50
- const state = (0, immer_1.original)(draft);
51
- const { correlations } = state;
52
- const { id, correlation, options } = action.payload;
53
- draft.correlations = (0, nmr_correlation_1.setCorrelation)(correlations, id, correlation);
54
- if (options) {
55
- draft.correlations = {
56
- ...draft.correlations,
57
- options: { ...draft.correlations.options, ...options },
58
- };
59
- }
60
- handleUpdateCorrelations(draft);
61
- }
62
- exports.handleSetCorrelation = handleSetCorrelation;
63
- //action
64
- function handleSetCorrelations(draft, action) {
65
- const { correlations, options } = action.payload;
66
- const state = (0, immer_1.original)(draft);
67
- let correlationsData = (0, cloneDeep_1.default)(state.correlations);
68
- for (const correlation of correlations) {
69
- correlationsData = (0, nmr_correlation_1.setCorrelation)(correlationsData, correlation.id, correlation);
70
- }
71
- draft.correlations = correlationsData;
72
- if (options) {
73
- draft.correlations = {
74
- ...draft.correlations,
75
- options: { ...draft.correlations.options, ...options },
76
- };
77
- }
78
- handleUpdateCorrelations(draft);
79
- }
80
- exports.handleSetCorrelations = handleSetCorrelations;
81
- //action
82
- function handleDeleteCorrelation(draft, action) {
83
- const { correlation, assignmentData } = action.payload;
84
- // delete all signals linked to the correlation
85
- for (const link of correlation.links) {
86
- const spectrum = (0, FindUtilities_1.findSpectrum)(draft.data, link.experimentID, false);
87
- if (spectrum) {
88
- if (spectrum.info.dimension === 1) {
89
- const range = (0, FindUtilities_1.findRange)(spectrum, link.signal.id);
90
- const signal = (0, FindUtilities_1.findSignal1D)(spectrum, link.signal.id);
91
- if (range && signal) {
92
- (0, RangesActions_1.deleteSignal1D)(draft, {
93
- spectrum,
94
- range,
95
- signal,
96
- assignmentData,
97
- });
98
- }
99
- }
100
- else if (spectrum.info.dimension === 2) {
101
- const zone = (0, FindUtilities_1.findZone)(spectrum, link.signal.id);
102
- const signal = (0, FindUtilities_1.findSignal2D)(spectrum, link.signal.id);
103
- if (zone && signal) {
104
- (0, ZonesActions_1.deleteSignal2D)(draft, {
105
- spectrum,
106
- zone,
107
- signal,
108
- assignmentData,
109
- });
110
- }
111
- }
112
- }
113
- }
114
- }
115
- exports.handleDeleteCorrelation = handleDeleteCorrelation;
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.handleResurrectSpectrumFromJcamp = exports.handleResurrectSpectrumFromRanges = void 0;
4
- const Spectrum1D_1 = require("../../../data/data1d/Spectrum1D");
5
- const generateSpectrumFromRanges_1 = require("../../../data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges");
6
- const Zoom1DManager_1 = require("../helper/Zoom1DManager");
7
- const DomainActions_1 = require("./DomainActions");
8
- function handleResurrectSpectrumFromJcamp(draft, action) {
9
- const { ranges } = action.payload;
10
- let { spectrum } = action.payload;
11
- spectrum = {
12
- ...spectrum,
13
- ranges: {
14
- ...spectrum.ranges,
15
- values: (0, Spectrum1D_1.mapRanges)(ranges, spectrum),
16
- },
17
- display: {
18
- ...spectrum.display,
19
- ...(0, Spectrum1D_1.get1DColor)(spectrum.display, draft.usedColors),
20
- },
21
- };
22
- draft.data.push(spectrum);
23
- (0, DomainActions_1.setDomain)(draft);
24
- (0, DomainActions_1.setIntegralsYDomain)(draft, [spectrum]);
25
- (0, Zoom1DManager_1.setZoom)(draft, { scale: 0.8, spectrumID: spectrum.id });
26
- }
27
- exports.handleResurrectSpectrumFromJcamp = handleResurrectSpectrumFromJcamp;
28
- function handleResurrectSpectrumFromRanges(draft, action) {
29
- const { ranges, info } = action.payload;
30
- const datum = (0, generateSpectrumFromRanges_1.generateSpectrumFromRanges)(ranges, info, draft.usedColors);
31
- if (datum) {
32
- draft.data.push(datum);
33
- (0, DomainActions_1.setDomain)(draft, { isYDomainShared: false });
34
- (0, DomainActions_1.setIntegralsYDomain)(draft, [datum]);
35
- (0, Zoom1DManager_1.setZoom)(draft, { scale: 0.8, spectrumID: datum.id });
36
- }
37
- }
38
- exports.handleResurrectSpectrumFromRanges = handleResurrectSpectrumFromRanges;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.handleSetDimensions = void 0;
4
- function handleSetDimensions(draft, action) {
5
- const { width, height } = action.payload;
6
- draft.width = width;
7
- draft.height = height;
8
- }
9
- exports.handleSetDimensions = handleSetDimensions;