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,21 +1,26 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
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.InnerNMRiumContents = void 0;
7
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
2
8
  /** @jsxImportSource @emotion/react */
3
- import { css } from '@emotion/react';
4
- import { useCallback } from 'react';
5
- import checkModifierKeyActivated from '../../data/utilities/checkModifierKeyActivated';
6
- import Viewer1D from '../1d/Viewer1D';
7
- import FloatMoleculeStructures from '../1d-2d/components/FloatMoleculeStructures';
8
- import Viewer2D from '../2d/Viewer2D';
9
- import KeysListenerTracker from '../EventsTrackers/KeysListenerTracker';
10
- import { useChartData } from '../context/ChartContext';
11
- import Header from '../header/Header';
12
- import DropZone from '../loader/DropZone';
13
- import Panels from '../panels/Panels';
14
- import { DISPLAYER_MODE } from '../reducer/core/Constants';
15
- import ToolBar from '../toolbar/ToolBar';
16
- import { SplitPaneWrapper } from './SplitPaneWrapper';
17
- import { StateError } from './StateError';
18
- const viewerContainerStyle = css `
9
+ const react_1 = require("@emotion/react");
10
+ const react_2 = require("react");
11
+ const checkModifierKeyActivated_1 = __importDefault(require("../../data/utilities/checkModifierKeyActivated"));
12
+ const Viewer1D_1 = __importDefault(require("../1d/Viewer1D"));
13
+ const FloatMoleculeStructures_1 = __importDefault(require("../1d-2d/components/FloatMoleculeStructures"));
14
+ const Viewer2D_1 = __importDefault(require("../2d/Viewer2D"));
15
+ const KeysListenerTracker_1 = __importDefault(require("../EventsTrackers/KeysListenerTracker"));
16
+ const ChartContext_1 = require("../context/ChartContext");
17
+ const Header_1 = __importDefault(require("../header/Header"));
18
+ const DropZone_1 = __importDefault(require("../loader/DropZone"));
19
+ const Panels_1 = __importDefault(require("../panels/Panels"));
20
+ const ToolBar_1 = __importDefault(require("../toolbar/ToolBar"));
21
+ const SplitPaneWrapper_1 = require("./SplitPaneWrapper");
22
+ const StateError_1 = require("./StateError");
23
+ const viewerContainerStyle = (0, react_1.css) `
19
24
  border: 0.55px #e6e6e6 solid;
20
25
  display: flex;
21
26
  flex: 1;
@@ -23,7 +28,7 @@ const viewerContainerStyle = css `
23
28
  height: 100%;
24
29
  margin-left: -1px;
25
30
  `;
26
- const containerStyles = css `
31
+ const containerStyles = (0, react_1.css) `
27
32
  background-color: white;
28
33
  width: 100%;
29
34
  display: block;
@@ -56,28 +61,28 @@ const containerStyles = css `
56
61
  user-select: none;
57
62
  }
58
63
  `;
59
- export function InnerNMRiumContents(props) {
64
+ function InnerNMRiumContents(props) {
60
65
  const { isFullscreenEnabled, toggleFullscreen, emptyText, mainDivRef, elementsWrapperRef, rootRef, viewerRef, } = props;
61
- const { displayerMode } = useChartData();
62
- const preventContextMenuHandler = useCallback((e) => {
63
- if (!checkModifierKeyActivated(e)) {
66
+ const { displayerMode } = (0, ChartContext_1.useChartData)();
67
+ const preventContextMenuHandler = (0, react_2.useCallback)((e) => {
68
+ if (!(0, checkModifierKeyActivated_1.default)(e)) {
64
69
  e.preventDefault();
65
70
  }
66
71
  }, []);
67
- return (_jsxs(_Fragment, { children: [_jsx(StateError, {}), _jsx("div", { className: "nmrium-container", ref: rootRef, css: containerStyles, onContextMenu: preventContextMenuHandler, style: { height: '100%', width: '100%' }, children: _jsx(DropZone, { children: _jsxs("div", { style: {
72
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(StateError_1.StateError, {}), (0, jsx_runtime_1.jsx)("div", { className: "nmrium-container", ref: rootRef, css: containerStyles, onContextMenu: preventContextMenuHandler, style: { height: '100%', width: '100%' }, children: (0, jsx_runtime_1.jsx)(DropZone_1.default, { children: (0, jsx_runtime_1.jsxs)("div", { style: {
68
73
  display: 'flex',
69
74
  flexDirection: 'column',
70
75
  backgroundColor: 'white',
71
76
  width: '100%',
72
- }, children: [_jsx(Header, { isFullscreenEnabled: isFullscreenEnabled, onEnableFullscreen: toggleFullscreen }), _jsxs("div", { style: {
77
+ }, children: [(0, jsx_runtime_1.jsx)(Header_1.default, { isFullscreenEnabled: isFullscreenEnabled, onEnableFullscreen: toggleFullscreen }), (0, jsx_runtime_1.jsxs)("div", { style: {
73
78
  display: 'flex',
74
79
  flexDirection: 'row',
75
80
  height: '100%',
76
- }, children: [_jsx(ToolBar, {}), _jsxs(SplitPaneWrapper, { children: [_jsxs("div", { css: viewerContainerStyle, children: [_jsx(KeysListenerTracker, { mainDivRef: mainDivRef }), _jsxs("div", { id: "nmrium-viewer", "data-testid": "viewer", ref: viewerRef, style: {
81
+ }, children: [(0, jsx_runtime_1.jsx)(ToolBar_1.default, {}), (0, jsx_runtime_1.jsxs)(SplitPaneWrapper_1.SplitPaneWrapper, { children: [(0, jsx_runtime_1.jsxs)("div", { css: viewerContainerStyle, children: [(0, jsx_runtime_1.jsx)(KeysListenerTracker_1.default, { mainDivRef: mainDivRef }), (0, jsx_runtime_1.jsxs)("div", { id: "nmrium-viewer", "data-testid": "viewer", ref: viewerRef, style: {
77
82
  width: '100%',
78
83
  height: '100%',
79
84
  position: 'relative',
80
- }, children: [_jsx(FloatMoleculeStructures, {}), displayerMode === DISPLAYER_MODE.DM_1D ? (_jsx(Viewer1D, { emptyText: emptyText })) : (_jsx(Viewer2D, { emptyText: emptyText }))] })] }), _jsx(Panels, {})] }), _jsx("div", { ref: elementsWrapperRef, id: "main-wrapper", style: {
85
+ }, children: [(0, jsx_runtime_1.jsx)(FloatMoleculeStructures_1.default, {}), displayerMode === '1D' ? ((0, jsx_runtime_1.jsx)(Viewer1D_1.default, { emptyText: emptyText })) : ((0, jsx_runtime_1.jsx)(Viewer2D_1.default, { emptyText: emptyText }))] })] }), (0, jsx_runtime_1.jsx)(Panels_1.default, {})] }), (0, jsx_runtime_1.jsx)("div", { ref: elementsWrapperRef, id: "main-wrapper", style: {
81
86
  position: 'absolute',
82
87
  pointerEvents: 'none',
83
88
  zIndex: 2,
@@ -87,3 +92,4 @@ export function InnerNMRiumContents(props) {
87
92
  bottom: 0,
88
93
  } }, String(isFullscreenEnabled))] })] }) }) })] }));
89
94
  }
95
+ exports.InnerNMRiumContents = InnerNMRiumContents;
@@ -1,13 +1,19 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { memo, forwardRef } from 'react';
3
- import { ErrorBoundary, } from 'react-error-boundary';
4
- import { RootLayout } from 'react-science/ui';
5
- import ErrorOverlay from './ErrorOverlay';
6
- import { InnerNMRium } from './InnerNMRium';
7
- const NMRiumBase = forwardRef(function NMRium(props, ref) {
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.NMRium = void 0;
7
+ const jsx_runtime_1 = require("react/jsx-runtime");
8
+ const react_1 = require("react");
9
+ const react_error_boundary_1 = require("react-error-boundary");
10
+ const ui_1 = require("react-science/ui");
11
+ const ErrorOverlay_1 = __importDefault(require("./ErrorOverlay"));
12
+ const InnerNMRium_1 = require("./InnerNMRium");
13
+ const NMRiumBase = (0, react_1.forwardRef)(function NMRium(props, ref) {
8
14
  const { noErrorBoundary = false, onError, ...otherProps } = props;
9
- const innerNmrium = _jsx(InnerNMRium, { ...otherProps, innerRef: ref });
10
- const children = noErrorBoundary ? (innerNmrium) : (_jsx(ErrorBoundary, { FallbackComponent: ErrorOverlay, onError: onError, children: innerNmrium }));
11
- return _jsx(RootLayout, { style: { width: '100%' }, children: children });
15
+ const innerNmrium = (0, jsx_runtime_1.jsx)(InnerNMRium_1.InnerNMRium, { ...otherProps, innerRef: ref });
16
+ const children = noErrorBoundary ? (innerNmrium) : ((0, jsx_runtime_1.jsx)(react_error_boundary_1.ErrorBoundary, { FallbackComponent: ErrorOverlay_1.default, onError: onError, children: innerNmrium }));
17
+ return (0, jsx_runtime_1.jsx)(ui_1.RootLayout, { style: { width: '100%' }, children: children });
12
18
  });
13
- export const NMRium = memo(NMRiumBase);
19
+ exports.NMRium = (0, react_1.memo)(NMRiumBase);
@@ -1,34 +1,39 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { readNMRiumObject } from 'nmr-load-save';
3
- import { useCallback, useEffect, useReducer, useRef } from 'react';
4
- import { toJSON } from '../../data/SpectraManager';
5
- import { ChartDataProvider } from '../context/ChartContext';
6
- import { DispatchProvider } from '../context/DispatchContext';
7
- import { useLogger } from '../context/LoggerContext';
8
- import { usePreferences } from '../context/PreferencesContext';
9
- import checkActionType from '../reducer/IgnoreActions';
10
- import { spectrumReducer, initialState, initState } from '../reducer/Reducer';
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
+ const nmr_load_save_1 = require("nmr-load-save");
8
+ const react_1 = require("react");
9
+ const SpectraManager_1 = require("../../data/SpectraManager");
10
+ const ChartContext_1 = require("../context/ChartContext");
11
+ const DispatchContext_1 = require("../context/DispatchContext");
12
+ const LoggerContext_1 = require("../context/LoggerContext");
13
+ const PreferencesContext_1 = require("../context/PreferencesContext");
14
+ const IgnoreActions_1 = __importDefault(require("../reducer/IgnoreActions"));
15
+ const Reducer_1 = require("../reducer/Reducer");
11
16
  const defaultData = {
12
17
  spectra: [],
13
18
  };
14
- export default function NMRiumStateProvider(props) {
19
+ function NMRiumStateProvider(props) {
15
20
  const { children, onChange, nmriumData = defaultData } = props;
16
- const { logger } = useLogger();
17
- const preferencesState = usePreferences();
18
- const [state, dispatchRaw] = useReducer(spectrumReducer, initialState, initState);
19
- const dispatch = useCallback((action) => {
21
+ const { logger } = (0, LoggerContext_1.useLogger)();
22
+ const preferencesState = (0, PreferencesContext_1.usePreferences)();
23
+ const [state, dispatchRaw] = (0, react_1.useReducer)(Reducer_1.spectrumReducer, Reducer_1.initialState, Reducer_1.initState);
24
+ const dispatch = (0, react_1.useCallback)((action) => {
20
25
  logger.trace({ action }, `Dispatch main reducer action: ${action.type}`);
21
26
  dispatchRaw(action);
22
27
  }, [logger]);
23
28
  const { source, data: spectraData, molecules, correlations, actionType, view, } = state;
24
- const stateRef = useRef();
25
- const handleChange = useRef(onChange);
26
- useEffect(() => {
29
+ const stateRef = (0, react_1.useRef)();
30
+ const handleChange = (0, react_1.useRef)(onChange);
31
+ (0, react_1.useEffect)(() => {
27
32
  handleChange.current = onChange;
28
33
  }, [onChange]);
29
- useEffect(() => {
34
+ (0, react_1.useEffect)(() => {
30
35
  const { workspace, workspaces = {} } = preferencesState;
31
- stateRef.current = toJSON({ data: spectraData, molecules, correlations, source, view, actionType }, { current: workspaces[workspace.current] }, { serialize: false, exportTarget: 'onChange' });
36
+ stateRef.current = (0, SpectraManager_1.toJSON)({ data: spectraData, molecules, correlations, source, view, actionType }, { current: workspaces[workspace.current] }, { serialize: false, exportTarget: 'onChange' });
32
37
  }, [
33
38
  actionType,
34
39
  correlations,
@@ -38,27 +43,27 @@ export default function NMRiumStateProvider(props) {
38
43
  spectraData,
39
44
  view,
40
45
  ]);
41
- useEffect(() => {
46
+ (0, react_1.useEffect)(() => {
42
47
  // trigger onChange callback if data object changed
43
- if (checkActionType(actionType)) {
48
+ if ((0, IgnoreActions_1.default)(actionType)) {
44
49
  handleChange.current?.(stateRef.current, 'data');
45
50
  }
46
51
  }, [actionType, correlations, molecules, source, spectraData]);
47
- useEffect(() => {
52
+ (0, react_1.useEffect)(() => {
48
53
  // trigger onChange callback if view object changed
49
54
  handleChange.current?.(stateRef.current, 'view');
50
55
  }, [view]);
51
- useEffect(() => {
56
+ (0, react_1.useEffect)(() => {
52
57
  // trigger onChange callback if settings changed
53
58
  handleChange.current?.(stateRef.current, 'settings');
54
59
  }, [preferencesState]);
55
- useEffect(() => {
60
+ (0, react_1.useEffect)(() => {
56
61
  dispatch({
57
62
  type: 'SET_LOADING_FLAG',
58
63
  payload: { isLoading: true },
59
64
  });
60
65
  if (nmriumData) {
61
- void readNMRiumObject(nmriumData)
66
+ void (0, nmr_load_save_1.readNMRiumObject)(nmriumData)
62
67
  .then((nmriumState) => {
63
68
  dispatch({ type: 'INITIATE', payload: { nmriumState } });
64
69
  })
@@ -70,5 +75,6 @@ export default function NMRiumStateProvider(props) {
70
75
  });
71
76
  }
72
77
  }, [nmriumData, dispatch]);
73
- return (_jsx(DispatchProvider, { value: dispatch, children: _jsx(ChartDataProvider, { value: state, children: children }) }));
78
+ return ((0, jsx_runtime_1.jsx)(DispatchContext_1.DispatchProvider, { value: dispatch, children: (0, jsx_runtime_1.jsx)(ChartContext_1.ChartDataProvider, { value: state, children: children }) }));
74
79
  }
80
+ exports.default = NMRiumStateProvider;
@@ -1,8 +1,11 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { SplitPane } from 'react-science/ui';
3
- import { usePreferences } from '../context/PreferencesContext';
4
- export function SplitPaneWrapper({ children }) {
5
- const { current, dispatch } = usePreferences();
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SplitPaneWrapper = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const ui_1 = require("react-science/ui");
6
+ const PreferencesContext_1 = require("../context/PreferencesContext");
7
+ function SplitPaneWrapper({ children }) {
8
+ const { current, dispatch } = (0, PreferencesContext_1.usePreferences)();
6
9
  const { general: { verticalSplitterPosition, verticalSplitterCloseThreshold }, display: { general = {} }, } = current;
7
10
  function resizeHandler(value) {
8
11
  dispatch({
@@ -12,5 +15,6 @@ export function SplitPaneWrapper({ children }) {
12
15
  },
13
16
  });
14
17
  }
15
- return (_jsx(SplitPane, { size: verticalSplitterPosition, direction: "horizontal", controlledSide: "end", closed: general?.hidePanelOnLoad ? true : verticalSplitterCloseThreshold, onResize: resizeHandler, children: children }));
18
+ return ((0, jsx_runtime_1.jsx)(ui_1.SplitPane, { size: verticalSplitterPosition, direction: "horizontal", controlledSide: "end", closed: general?.hidePanelOnLoad ? true : verticalSplitterCloseThreshold, onResize: resizeHandler, children: children }));
16
19
  }
20
+ exports.SplitPaneWrapper = SplitPaneWrapper;
@@ -1,16 +1,20 @@
1
- import { useEffect } from 'react';
2
- import { useChartData } from '../context/ChartContext';
3
- import { useLogger } from '../context/LoggerContext';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StateError = void 0;
4
+ const react_1 = require("react");
5
+ const ChartContext_1 = require("../context/ChartContext");
6
+ const LoggerContext_1 = require("../context/LoggerContext");
4
7
  /**
5
8
  * Alert user in UI when state have errorAction (error from reducer)
6
9
  */
7
- export function StateError() {
8
- const { errorAction } = useChartData();
9
- const { logger } = useLogger();
10
- useEffect(() => {
10
+ function StateError() {
11
+ const { errorAction } = (0, ChartContext_1.useChartData)();
12
+ const { logger } = (0, LoggerContext_1.useLogger)();
13
+ (0, react_1.useEffect)(() => {
11
14
  if (!errorAction)
12
15
  return;
13
16
  logger.error(errorAction);
14
17
  }, [errorAction, logger]);
15
18
  return null;
16
19
  }
20
+ exports.StateError = StateError;
@@ -1,3 +1,21 @@
1
- export * from './types';
2
- export { serializeNmriumState as serializeNMRiumState } from 'nmr-load-save';
3
- export * from './NMRium';
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.serializeNMRiumState = void 0;
18
+ __exportStar(require("./types"), exports);
19
+ var nmr_load_save_1 = require("nmr-load-save");
20
+ Object.defineProperty(exports, "serializeNMRiumState", { enumerable: true, get: function () { return nmr_load_save_1.serializeNmriumState; } });
21
+ __exportStar(require("./NMRium"), exports);
@@ -1,2 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  /* eslint-enable unicorn/prefer-export-from */
@@ -1,10 +1,15 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
2
7
  /** @jsxImportSource @emotion/react */
3
- import { css } from '@emotion/react';
4
- import { FaInfo } from 'react-icons/fa';
5
- import { Modal, useOnOff } from 'react-science/ui';
6
- import Button from '../elements/Button';
7
- const styles = css `
8
+ const react_1 = require("@emotion/react");
9
+ const fa_1 = require("react-icons/fa");
10
+ const ui_1 = require("react-science/ui");
11
+ const Button_1 = __importDefault(require("../elements/Button"));
12
+ const styles = (0, react_1.css) `
8
13
  width: 600px;
9
14
 
10
15
  .content {
@@ -43,7 +48,7 @@ const styles = css `
43
48
  }
44
49
  `;
45
50
  function AboutPredictionModal() {
46
- const [isOpenDialog, openDialog, closeDialog] = useOnOff(false);
47
- return (_jsxs(_Fragment, { children: [_jsx(Button.BarButton, { onClick: openDialog, tooltipOrientation: "horizontal", toolTip: "About Prediction", children: _jsx(FaInfo, {}) }), _jsx(Modal, { hasCloseButton: true, isOpen: isOpenDialog, onRequestClose: closeDialog, children: _jsxs("div", { css: styles, children: [_jsx(Modal.Header, { children: _jsx("div", { className: "header", children: _jsx("span", { children: "About Prediction" }) }) }), _jsx(Modal.Body, { children: _jsxs("div", { className: "content", children: [_jsx("p", { children: "If you are using our tools please cite us:" }), _jsxs("ul", { children: [_jsxs("li", { children: ["Damiano Banfi and Luc Patiny", ' ', _jsx("a", { href: "http://dx.doi.org/10.2533/chimia.2008.280", target: "_blank", rel: "noreferrer", children: "www.nmrdb.org: Resurrecting and processing NMR spectra on-line" }), ' ', _jsx("i", { children: "Chimia" }), ", ", _jsx("b", { children: "2008" }), ", 62(4), 280-281."] }), _jsxs("li", { children: ["Andr\u00E9s M. Castillo, Luc Patiny and Julien Wist", ' ', _jsx("a", { href: "http://dx.doi.org/10.1016/j.jmr.2010.12.008", target: "_blank", rel: "noreferrer", children: "Fast and Accurate Algorithm for the Simulation of NMR spectra of Large Spin Systems" }), ' ', _jsx("i", { children: "Journal of Magnetic Resonance" }), " ", _jsx("b", { children: "2011" }), ", 209(2), 123-130."] })] }), _jsxs("p", { children: [_jsx("sup", { children: "1" }), "H NMR prediction is possible thanks to the tool of the FCT-Universidade NOVA de Lisboa developed by Yuri Binev and Joao Aires-de-Sousa:"] }), _jsxs("ul", { children: [_jsxs("li", { children: ["Yuri Binev, Maria M. B. Marques and Jo\u00E3o Aires-de-Sousa", ' ', _jsxs("a", { href: "http://dx.doi.org/10.1021/ci700172n", target: "_blank", rel: "noreferrer", children: ["Prediction of ", _jsx("sup", { children: "1" }), "H NMR coupling constants with associative neural networks trained for chemical shifts"] }), ' ', _jsx("i", { children: "J. Chem. Inf. Model." }), " ", _jsx("b", { children: "2007" }), ", 47(6), 2089-2097."] }), _jsxs("li", { children: ["Jo\u00E3o Aires-de-Sousa, Markus C. Hemmer and Johann Gasteiger", ' ', _jsxs("a", { href: "http://dx.doi.org/10.1021/ac010737m", target: "_blank", rel: "noreferrer", children: ["Prediction of ", _jsx("sup", { children: "1" }), "H NMR Chemical Shifts Using Neural Networks"] }), ", ", _jsx("i", { children: "Analytical Chemistry" }), ", ", _jsx("b", { children: "2002" }), ", 74(1), 80-90."] })] }), _jsxs("p", { children: [_jsx("sup", { children: "13" }), "C NMR prediction was possible thanks to NMRshiftDB:"] }), _jsx("ul", { children: _jsxs("li", { children: ["Steinbeck, Christoph, Stefan Krause, and Stefan Kuhn", ' ', _jsx("a", { href: "http://dx.doi.org/10.1021/ci0341363", target: "_blank", rel: "noreferrer", children: "NMRShiftDB Constructing a Free Chemical Information System with Open-Source Components" }), ' ', _jsx("i", { children: "Journal of chemical information and computer sciences" }), ",", ' ', _jsx("b", { children: "2003" }), ", 43(6): 1733-1739."] }) })] }) })] }) })] }));
51
+ const [isOpenDialog, openDialog, closeDialog] = (0, ui_1.useOnOff)(false);
52
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Button_1.default.BarButton, { onClick: openDialog, tooltipOrientation: "horizontal", toolTip: "About Prediction", children: (0, jsx_runtime_1.jsx)(fa_1.FaInfo, {}) }), (0, jsx_runtime_1.jsx)(ui_1.Modal, { hasCloseButton: true, isOpen: isOpenDialog, onRequestClose: closeDialog, children: (0, jsx_runtime_1.jsxs)("div", { css: styles, children: [(0, jsx_runtime_1.jsx)(ui_1.Modal.Header, { children: (0, jsx_runtime_1.jsx)("div", { className: "header", children: (0, jsx_runtime_1.jsx)("span", { children: "About Prediction" }) }) }), (0, jsx_runtime_1.jsx)(ui_1.Modal.Body, { children: (0, jsx_runtime_1.jsxs)("div", { className: "content", children: [(0, jsx_runtime_1.jsx)("p", { children: "If you are using our tools please cite us:" }), (0, jsx_runtime_1.jsxs)("ul", { children: [(0, jsx_runtime_1.jsxs)("li", { children: ["Damiano Banfi and Luc Patiny", ' ', (0, jsx_runtime_1.jsx)("a", { href: "http://dx.doi.org/10.2533/chimia.2008.280", target: "_blank", rel: "noreferrer", children: "www.nmrdb.org: Resurrecting and processing NMR spectra on-line" }), ' ', (0, jsx_runtime_1.jsx)("i", { children: "Chimia" }), ", ", (0, jsx_runtime_1.jsx)("b", { children: "2008" }), ", 62(4), 280-281."] }), (0, jsx_runtime_1.jsxs)("li", { children: ["Andr\u00E9s M. Castillo, Luc Patiny and Julien Wist", ' ', (0, jsx_runtime_1.jsx)("a", { href: "http://dx.doi.org/10.1016/j.jmr.2010.12.008", target: "_blank", rel: "noreferrer", children: "Fast and Accurate Algorithm for the Simulation of NMR spectra of Large Spin Systems" }), ' ', (0, jsx_runtime_1.jsx)("i", { children: "Journal of Magnetic Resonance" }), " ", (0, jsx_runtime_1.jsx)("b", { children: "2011" }), ", 209(2), 123-130."] })] }), (0, jsx_runtime_1.jsxs)("p", { children: [(0, jsx_runtime_1.jsx)("sup", { children: "1" }), "H NMR prediction is possible thanks to the tool of the FCT-Universidade NOVA de Lisboa developed by Yuri Binev and Joao Aires-de-Sousa:"] }), (0, jsx_runtime_1.jsxs)("ul", { children: [(0, jsx_runtime_1.jsxs)("li", { children: ["Yuri Binev, Maria M. B. Marques and Jo\u00E3o Aires-de-Sousa", ' ', (0, jsx_runtime_1.jsxs)("a", { href: "http://dx.doi.org/10.1021/ci700172n", target: "_blank", rel: "noreferrer", children: ["Prediction of ", (0, jsx_runtime_1.jsx)("sup", { children: "1" }), "H NMR coupling constants with associative neural networks trained for chemical shifts"] }), ' ', (0, jsx_runtime_1.jsx)("i", { children: "J. Chem. Inf. Model." }), " ", (0, jsx_runtime_1.jsx)("b", { children: "2007" }), ", 47(6), 2089-2097."] }), (0, jsx_runtime_1.jsxs)("li", { children: ["Jo\u00E3o Aires-de-Sousa, Markus C. Hemmer and Johann Gasteiger", ' ', (0, jsx_runtime_1.jsxs)("a", { href: "http://dx.doi.org/10.1021/ac010737m", target: "_blank", rel: "noreferrer", children: ["Prediction of ", (0, jsx_runtime_1.jsx)("sup", { children: "1" }), "H NMR Chemical Shifts Using Neural Networks"] }), ", ", (0, jsx_runtime_1.jsx)("i", { children: "Analytical Chemistry" }), ", ", (0, jsx_runtime_1.jsx)("b", { children: "2002" }), ", 74(1), 80-90."] })] }), (0, jsx_runtime_1.jsxs)("p", { children: [(0, jsx_runtime_1.jsx)("sup", { children: "13" }), "C NMR prediction was possible thanks to NMRshiftDB:"] }), (0, jsx_runtime_1.jsx)("ul", { children: (0, jsx_runtime_1.jsxs)("li", { children: ["Steinbeck, Christoph, Stefan Krause, and Stefan Kuhn", ' ', (0, jsx_runtime_1.jsx)("a", { href: "http://dx.doi.org/10.1021/ci0341363", target: "_blank", rel: "noreferrer", children: "NMRShiftDB Constructing a Free Chemical Information System with Open-Source Components" }), ' ', (0, jsx_runtime_1.jsx)("i", { children: "Journal of chemical information and computer sciences" }), ",", ' ', (0, jsx_runtime_1.jsx)("b", { children: "2003" }), ", 43(6): 1733-1739."] }) })] }) })] }) })] }));
48
53
  }
49
- export default AboutPredictionModal;
54
+ exports.default = AboutPredictionModal;
@@ -1,10 +1,15 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
2
7
  /** @jsxImportSource @emotion/react */
3
- import { css } from '@emotion/react';
4
- import { FaInfo } from 'react-icons/fa';
5
- import { Modal, useOnOff } from 'react-science/ui';
6
- import Button from '../elements/Button';
7
- const styles = css `
8
+ const react_1 = require("@emotion/react");
9
+ const fa_1 = require("react-icons/fa");
10
+ const ui_1 = require("react-science/ui");
11
+ const Button_1 = __importDefault(require("../elements/Button"));
12
+ const styles = (0, react_1.css) `
8
13
  width: 600px;
9
14
 
10
15
  .content {
@@ -43,7 +48,7 @@ const styles = css `
43
48
  }
44
49
  `;
45
50
  function AboutSpectrumSimulationModal() {
46
- const [isOpenDialog, openDialog, closeDialog] = useOnOff(false);
47
- return (_jsxs(_Fragment, { children: [_jsx(Button.BarButton, { onClick: openDialog, tooltipOrientation: "horizontal", toolTip: "About Prediction", children: _jsx(FaInfo, {}) }), _jsx(Modal, { hasCloseButton: true, isOpen: isOpenDialog, onRequestClose: closeDialog, children: _jsxs("div", { css: styles, children: [_jsx(Modal.Header, { children: _jsx("div", { className: "header", children: _jsx("span", { children: "About spectrum simulation" }) }) }), _jsx(Modal.Body, { children: _jsxs("div", { className: "content", children: [_jsx("p", { children: "If you are using our tools please cite us:" }), _jsx("ul", { children: _jsxs("li", { children: ["Andr\u00E9s M. Castillo, Luc Patiny and Julien Wist", ' ', _jsx("a", { href: "http://dx.doi.org/10.1016/j.jmr.2010.12.008", target: "_blank", rel: "noreferrer", children: "Fast and Accurate Algorithm for the Simulation of NMR spectra of Large Spin Systems" }), ' ', _jsx("i", { children: "Journal of Magnetic Resonance" }), " ", _jsx("b", { children: "2011" }), ", 209(2), 123-130."] }) })] }) })] }) })] }));
51
+ const [isOpenDialog, openDialog, closeDialog] = (0, ui_1.useOnOff)(false);
52
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Button_1.default.BarButton, { onClick: openDialog, tooltipOrientation: "horizontal", toolTip: "About Prediction", children: (0, jsx_runtime_1.jsx)(fa_1.FaInfo, {}) }), (0, jsx_runtime_1.jsx)(ui_1.Modal, { hasCloseButton: true, isOpen: isOpenDialog, onRequestClose: closeDialog, children: (0, jsx_runtime_1.jsxs)("div", { css: styles, children: [(0, jsx_runtime_1.jsx)(ui_1.Modal.Header, { children: (0, jsx_runtime_1.jsx)("div", { className: "header", children: (0, jsx_runtime_1.jsx)("span", { children: "About spectrum simulation" }) }) }), (0, jsx_runtime_1.jsx)(ui_1.Modal.Body, { children: (0, jsx_runtime_1.jsxs)("div", { className: "content", children: [(0, jsx_runtime_1.jsx)("p", { children: "If you are using our tools please cite us:" }), (0, jsx_runtime_1.jsx)("ul", { children: (0, jsx_runtime_1.jsxs)("li", { children: ["Andr\u00E9s M. Castillo, Luc Patiny and Julien Wist", ' ', (0, jsx_runtime_1.jsx)("a", { href: "http://dx.doi.org/10.1016/j.jmr.2010.12.008", target: "_blank", rel: "noreferrer", children: "Fast and Accurate Algorithm for the Simulation of NMR spectra of Large Spin Systems" }), ' ', (0, jsx_runtime_1.jsx)("i", { children: "Journal of Magnetic Resonance" }), " ", (0, jsx_runtime_1.jsx)("b", { children: "2011" }), ", 209(2), 123-130."] }) })] }) })] }) })] }));
48
53
  }
49
- export default AboutSpectrumSimulationModal;
54
+ exports.default = AboutSpectrumSimulationModal;
@@ -1,16 +1,48 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
2
30
  /** @jsxImportSource @emotion/react */
3
- import { Formik } from 'formik';
4
- import { useCallback, useEffect, useMemo, useRef } from 'react';
5
- import { REFERENCES } from '../../data/constants/References';
6
- import { useDispatch } from '../context/DispatchContext';
7
- import Button from '../elements/Button';
8
- import CloseButton from '../elements/CloseButton';
9
- import Label from '../elements/Label';
10
- import Select from '../elements/Select';
11
- import FormikInput from '../elements/formik/FormikInput';
12
- import Events from '../utility/Events';
13
- import { ModalStyles } from './ModalStyle';
31
+ const formik_1 = require("formik");
32
+ const react_1 = require("react");
33
+ const References_1 = require("../../data/constants/References");
34
+ const DispatchContext_1 = require("../context/DispatchContext");
35
+ const Button_1 = __importDefault(require("../elements/Button"));
36
+ const CloseButton_1 = __importDefault(require("../elements/CloseButton"));
37
+ const Label_1 = __importDefault(require("../elements/Label"));
38
+ const Select_1 = __importDefault(require("../elements/Select"));
39
+ const FormikInput_1 = __importDefault(require("../elements/formik/FormikInput"));
40
+ const Events_1 = __importDefault(require("../utility/Events"));
41
+ const ModalStyle_1 = require("./ModalStyle");
42
+ const ml_spectra_processing_1 = require("ml-spectra-processing");
43
+ const useSpectraPerNucleus_1 = __importDefault(require("../hooks/useSpectraPerNucleus"));
44
+ const Yup = __importStar(require("yup"));
45
+ const Message_1 = __importDefault(require("../elements/Message"));
14
46
  const labelStyle = {
15
47
  label: { flex: 4, fontWeight: '500' },
16
48
  wrapper: { flex: 8, display: 'flex', alignItems: 'center' },
@@ -22,44 +54,89 @@ const inputStyle = {
22
54
  },
23
55
  };
24
56
  const baseList = [{ key: 1, value: 'manual', label: 'Manual' }];
57
+ const DEFAULT_OPTIONS = {
58
+ from: -1,
59
+ to: 1,
60
+ nbPeaks: 1,
61
+ targetX: 0,
62
+ };
63
+ const schemaValidation = Yup.object({
64
+ from: Yup.number().required(),
65
+ to: Yup.number().required(),
66
+ nbPeaks: Yup.number().required(),
67
+ targetX: Yup.number().required(),
68
+ });
69
+ function checkSpectra(options, spectra) {
70
+ const { from, to } = options;
71
+ for (const spectrum of spectra) {
72
+ const { data: { x }, } = spectrum;
73
+ const min = x[0];
74
+ const max = x.at(-1);
75
+ if (from < min || to > max) {
76
+ throw new Error('Some spectra do not have data in the selected range');
77
+ }
78
+ if (Math.abs((0, ml_spectra_processing_1.xFindClosestIndex)(x, from) - (0, ml_spectra_processing_1.xFindClosestIndex)(x, to)) < 10) {
79
+ throw new Error('The selected range is too small to provide accurate results');
80
+ }
81
+ }
82
+ }
83
+ function checkOptions(options) {
84
+ const returnedOptions = { ...options };
85
+ if (options.from > options.to) {
86
+ returnedOptions.to = options.from;
87
+ returnedOptions.from = options.to;
88
+ }
89
+ return returnedOptions;
90
+ }
91
+ function getList(nucleus) {
92
+ if (!References_1.REFERENCES?.[nucleus]) {
93
+ return [];
94
+ }
95
+ const list = Object.entries(References_1.REFERENCES[nucleus]).map((item) => ({
96
+ value: item[0],
97
+ label: item[0],
98
+ }));
99
+ return baseList.concat(list);
100
+ }
25
101
  function AlignSpectraModal({ onClose = () => null, nucleus, }) {
26
- const refForm = useRef();
27
- const dispatch = useDispatch();
28
- const List = useMemo(() => {
29
- const list = REFERENCES[nucleus]
30
- ? Object.entries(REFERENCES[nucleus]).map((item) => ({
31
- value: item[0],
32
- label: item[0],
33
- }))
34
- : [];
35
- return baseList.concat(list);
36
- }, [nucleus]);
37
- const handleSave = useCallback(() => {
38
- refForm.current.submitForm();
39
- }, []);
40
- const submitHandler = useCallback((values) => {
41
- dispatch({ type: 'ALIGN_SPECTRA', payload: values });
42
- onClose();
43
- }, [dispatch, onClose]);
44
- useEffect(() => {
102
+ const spectra = (0, useSpectraPerNucleus_1.default)();
103
+ const dispatch = (0, DispatchContext_1.useDispatch)();
104
+ const [options, setOptions] = (0, react_1.useState)(DEFAULT_OPTIONS);
105
+ const [error, setError] = (0, react_1.useState)('');
106
+ function submitHandler(inputOptions) {
107
+ const options = checkOptions(inputOptions);
108
+ setOptions(options);
109
+ try {
110
+ checkSpectra(options, spectra);
111
+ dispatch({ type: 'ALIGN_SPECTRA', payload: options });
112
+ onClose();
113
+ }
114
+ catch (error) {
115
+ const message = error.message;
116
+ setError(message);
117
+ }
118
+ }
119
+ (0, react_1.useEffect)(() => {
45
120
  function handler(event) {
46
121
  const [from, to] = event.range;
47
- refForm.current.setValues({ ...refForm.current.values, from, to });
122
+ setOptions((prevOptions) => ({ ...prevOptions, from, to }));
48
123
  }
49
- Events.on('brushEnd', handler);
124
+ Events_1.default.on('brushEnd', handler);
50
125
  return () => {
51
- Events.off('brushEnd', handler);
126
+ Events_1.default.off('brushEnd', handler);
52
127
  };
53
128
  }, []);
54
- const optionChangeHandler = useCallback((id) => {
55
- const value = REFERENCES[nucleus][id];
56
- const { delta = 0, ...resValues } = value || { delta: 0 };
57
- refForm.current.setValues({
58
- ...refForm.current.values,
59
- targetX: delta,
60
- ...resValues,
61
- });
62
- }, [nucleus]);
63
- return (_jsxs("div", { css: ModalStyles, children: [_jsxs("div", { className: "header handle", children: [_jsx("span", { children: "Spectra calibration" }), _jsx(CloseButton, { onClick: onClose, className: "close-bt" })] }), _jsx("div", { className: "inner-content", style: { flex: 1 }, children: _jsx(Formik, { innerRef: refForm, initialValues: { from: -1, to: 1, nbPeaks: 1, targetX: 0 }, onSubmit: submitHandler, children: _jsxs(_Fragment, { children: [_jsx(Label, { title: "Options", style: labelStyle, children: _jsx(Select, { items: List, style: { width: '100%', height: 30 }, onChange: optionChangeHandler }) }), _jsxs(Label, { title: "Range", style: labelStyle, children: [_jsx(Label, { title: "From", children: _jsx(FormikInput, { name: "from", type: "number", style: inputStyle }) }), _jsx(Label, { title: "To", style: { label: { padding: '0 10px' } }, children: _jsx(FormikInput, { name: "to", type: "number", style: inputStyle }) })] }), _jsx(Label, { title: "Number of Peaks", style: labelStyle, children: _jsx(FormikInput, { name: "nbPeaks", type: "number", style: inputStyle }) }), _jsx(Label, { title: "Target PPM", style: labelStyle, children: _jsx(FormikInput, { name: "targetX", type: "number", style: inputStyle }) })] }) }) }), _jsx("div", { className: "footer-container", children: _jsx(Button.Done, { onClick: handleSave, children: "Done" }) })] }));
129
+ function optionChangeHandler(key) {
130
+ const { delta: targetX = 0, ...otherOptions } = References_1.REFERENCES?.[nucleus]?.[key] || {};
131
+ const value = {
132
+ ...DEFAULT_OPTIONS,
133
+ targetX,
134
+ ...otherOptions,
135
+ };
136
+ setOptions(value);
137
+ setError('');
138
+ }
139
+ const List = getList(nucleus);
140
+ return ((0, jsx_runtime_1.jsx)("div", { css: ModalStyle_1.ModalStyles, children: (0, jsx_runtime_1.jsx)(formik_1.Formik, { initialValues: options, enableReinitialize: true, onSubmit: submitHandler, validationSchema: schemaValidation, validate: () => setError(''), children: ({ submitForm }) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "header handle", children: [(0, jsx_runtime_1.jsx)("span", { children: "Spectra calibration" }), (0, jsx_runtime_1.jsx)(CloseButton_1.default, { onClick: onClose, className: "close-bt" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "inner-content", style: { flex: 1, minHeight: '220px' }, children: [error && (0, jsx_runtime_1.jsx)(Message_1.default, { type: "error", children: error }), (0, jsx_runtime_1.jsx)(Label_1.default, { title: "Options", style: labelStyle, children: (0, jsx_runtime_1.jsx)(Select_1.default, { items: List, style: { width: '100%', height: 30 }, onChange: optionChangeHandler }) }), (0, jsx_runtime_1.jsxs)(Label_1.default, { title: "Range", style: labelStyle, children: [(0, jsx_runtime_1.jsx)(Label_1.default, { title: "From", children: (0, jsx_runtime_1.jsx)(FormikInput_1.default, { name: "from", type: "number", style: inputStyle }) }), (0, jsx_runtime_1.jsx)(Label_1.default, { title: "To", style: { label: { padding: '0 10px' } }, children: (0, jsx_runtime_1.jsx)(FormikInput_1.default, { name: "to", type: "number", style: inputStyle }) })] }), (0, jsx_runtime_1.jsx)(Label_1.default, { title: "Number of Peaks", style: labelStyle, children: (0, jsx_runtime_1.jsx)(FormikInput_1.default, { name: "nbPeaks", type: "number", style: inputStyle }) }), (0, jsx_runtime_1.jsx)(Label_1.default, { title: "Target PPM", style: labelStyle, children: (0, jsx_runtime_1.jsx)(FormikInput_1.default, { name: "targetX", type: "number", style: inputStyle }) })] }), (0, jsx_runtime_1.jsx)("div", { className: "footer-container", children: (0, jsx_runtime_1.jsx)(Button_1.default.Done, { onClick: submitForm, children: "Done" }) })] })) }) }));
64
141
  }
65
- export default AlignSpectraModal;
142
+ exports.default = AlignSpectraModal;