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,7 +1,9 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useRef, useLayoutEffect, useCallback, useState, memo, Fragment, } from 'react';
3
- import { createPortal } from 'react-dom';
4
- import { useGlobal } from '../../context/GlobalContext';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ const react_1 = require("react");
5
+ const react_dom_1 = require("react-dom");
6
+ const GlobalContext_1 = require("../../context/GlobalContext");
5
7
  const styles = {
6
8
  popup: {
7
9
  position: 'fixed',
@@ -19,12 +21,12 @@ const styles = {
19
21
  },
20
22
  };
21
23
  function ToolTip({ style = { popup: {}, mainContainer: {} }, className = '', popupPlacement = 'right', children, title, offset = { x: 0, y: 0 }, }) {
22
- const refChild = useRef(null);
23
- const refContent = useRef(null);
24
- const [placement, setPlacement] = useState({ x: 0, y: 0 });
25
- const [show, showToolTip] = useState(false);
26
- const { elementsWrapperRef } = useGlobal();
27
- useLayoutEffect(() => {
24
+ const refChild = (0, react_1.useRef)(null);
25
+ const refContent = (0, react_1.useRef)(null);
26
+ const [placement, setPlacement] = (0, react_1.useState)({ x: 0, y: 0 });
27
+ const [show, showToolTip] = (0, react_1.useState)(false);
28
+ const { elementsWrapperRef } = (0, GlobalContext_1.useGlobal)();
29
+ (0, react_1.useLayoutEffect)(() => {
28
30
  const getPopupPlacement = () => {
29
31
  let x;
30
32
  let y;
@@ -76,13 +78,13 @@ function ToolTip({ style = { popup: {}, mainContainer: {} }, className = '', pop
76
78
  }
77
79
  }
78
80
  }, [popupPlacement, show]);
79
- const mouseOverHandler = useCallback(() => {
81
+ const mouseOverHandler = (0, react_1.useCallback)(() => {
80
82
  showToolTip(true);
81
83
  }, []);
82
- const mouseLeaveHandler = useCallback(() => {
84
+ const mouseLeaveHandler = (0, react_1.useCallback)(() => {
83
85
  showToolTip(false);
84
86
  }, []);
85
- return (_jsxs(Fragment, { children: [_jsx("div", { style: {
87
+ return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { style: {
86
88
  position: 'relative',
87
89
  height: '100%',
88
90
  display: 'flex',
@@ -91,11 +93,11 @@ function ToolTip({ style = { popup: {}, mainContainer: {} }, className = '', pop
91
93
  ...style.mainContainer,
92
94
  }, ref: refChild, onMouseOver: mouseOverHandler, onMouseOut: mouseLeaveHandler, children: children }), show &&
93
95
  elementsWrapperRef &&
94
- createPortal(_jsx("div", { ref: refContent, style: {
96
+ (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)("div", { ref: refContent, style: {
95
97
  ...styles.popup,
96
98
  transform: `translate(${placement.x + offset.x}px,${placement.y + offset.y}px)`,
97
99
  zIndex: 999999999,
98
100
  ...style.popup,
99
- }, className: className, children: _jsx("span", { style: { pointerEvents: 'none' }, children: title }) }), elementsWrapperRef)] }));
101
+ }, className: className, children: (0, jsx_runtime_1.jsx)("span", { style: { pointerEvents: 'none' }, children: title }) }), elementsWrapperRef)] }));
100
102
  }
101
- export default memo(ToolTip);
103
+ exports.default = (0, react_1.memo)(ToolTip);
@@ -1,9 +1,11 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
2
4
  /** @jsxImportSource @emotion/react */
3
- import { css } from '@emotion/react';
4
- import { useState, useCallback, useRef, useLayoutEffect, } from 'react';
5
- import { Toolbar } from 'react-science/ui';
6
- const menuStyles = css `
5
+ const react_1 = require("@emotion/react");
6
+ const react_2 = require("react");
7
+ const ui_1 = require("react-science/ui");
8
+ const menuStyles = (0, react_1.css) `
7
9
  .menu {
8
10
  box-shadow: 0 0 10px rgb(0 0 0 / 50%);
9
11
  margin: 0;
@@ -55,15 +57,15 @@ const menuStyles = css `
55
57
  }
56
58
  `;
57
59
  function MenuItem({ icon, label, onClick }) {
58
- return (_jsxs("button", { type: "button", className: "menu-item", onClick: onClick, children: [icon, _jsx("span", { children: label })] }));
60
+ return ((0, jsx_runtime_1.jsxs)("button", { type: "button", className: "menu-item", onClick: onClick, children: [icon, (0, jsx_runtime_1.jsx)("span", { children: label })] }));
59
61
  }
60
62
  function MenuList({ items, boxBounding, onClick }) {
61
- const listRef = useRef();
62
- const [translate, setTranslate] = useState({
63
+ const listRef = (0, react_2.useRef)();
64
+ const [translate, setTranslate] = (0, react_2.useState)({
63
65
  x: boxBounding.width,
64
66
  y: boxBounding.height,
65
67
  });
66
- useLayoutEffect(() => {
68
+ (0, react_2.useLayoutEffect)(() => {
67
69
  const boxSize = listRef.current.getBoundingClientRect();
68
70
  setTranslate((oldTransform) => {
69
71
  let y = boxBounding.height;
@@ -76,27 +78,28 @@ function MenuList({ items, boxBounding, onClick }) {
76
78
  };
77
79
  });
78
80
  }, [boxBounding.height]);
79
- return (_jsx("div", { ref: listRef, className: "menu", style: {
81
+ return ((0, jsx_runtime_1.jsx)("div", { ref: listRef, className: "menu", style: {
80
82
  transform: `translate(${translate.x}px, -${translate.y}px) `,
81
83
  }, children: items?.map((item) => {
82
- return (_jsx(MenuItem, { ...item, onClick: () => onClick(item) }, item.id));
84
+ return ((0, jsx_runtime_1.jsx)(MenuItem, { ...item, onClick: () => onClick(item) }, item.id));
83
85
  }) }));
84
86
  }
85
- export default function ToolbarMenu({ component, toolTip = '', items = [], onClick = () => null, }) {
86
- const menuButtonRef = useRef(null);
87
- const [isShown, showMenu] = useState(false);
88
- const closeMenuButton = useCallback(() => {
87
+ function ToolbarMenu({ component, toolTip = '', items = [], onClick = () => null, }) {
88
+ const menuButtonRef = (0, react_2.useRef)(null);
89
+ const [isShown, showMenu] = (0, react_2.useState)(false);
90
+ const closeMenuButton = (0, react_2.useCallback)(() => {
89
91
  showMenu(false);
90
92
  }, []);
91
- const handleClick = useCallback(() => {
93
+ const handleClick = (0, react_2.useCallback)(() => {
92
94
  showMenu((flag) => !flag);
93
95
  }, []);
94
- const clickHandler = useCallback((e) => {
96
+ const clickHandler = (0, react_2.useCallback)((e) => {
95
97
  showMenu(false);
96
98
  onClick(e);
97
99
  }, [onClick]);
98
- const boxBounding = useCallback(() => {
100
+ const boxBounding = (0, react_2.useCallback)(() => {
99
101
  return menuButtonRef.current?.getBoundingClientRect();
100
102
  }, []);
101
- return (_jsxs("div", { style: { height: 'auto' }, css: menuStyles, children: [_jsx("div", { ref: menuButtonRef, children: _jsx(Toolbar.Item, { id: `menu-${toolTip}`, title: toolTip, active: isShown, onClick: handleClick, children: component }) }), isShown && (_jsx(MenuList, { items: items, boxBounding: boxBounding(), onClick: clickHandler })), isShown && _jsx("div", { className: "menu-cover", onClick: closeMenuButton })] }));
103
+ return ((0, jsx_runtime_1.jsxs)("div", { style: { height: 'auto' }, css: menuStyles, children: [(0, jsx_runtime_1.jsx)("div", { ref: menuButtonRef, children: (0, jsx_runtime_1.jsx)(ui_1.Toolbar.Item, { id: `menu-${toolTip}`, title: toolTip, active: isShown, onClick: handleClick, children: component }) }), isShown && ((0, jsx_runtime_1.jsx)(MenuList, { items: items, boxBounding: boxBounding(), onClick: clickHandler })), isShown && (0, jsx_runtime_1.jsx)("div", { className: "menu-cover", onClick: closeMenuButton })] }));
102
104
  }
105
+ exports.default = ToolbarMenu;
@@ -1,6 +1,8 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useState, useRef, useCallback, useMemo, useEffect, Children, cloneElement, } from 'react';
3
- import { triggerSource } from './AccordionItem';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ const react_1 = require("react");
5
+ const AccordionItem_1 = require("./AccordionItem");
4
6
  const styles = {
5
7
  container: {
6
8
  height: '100%',
@@ -10,13 +12,13 @@ const styles = {
10
12
  },
11
13
  };
12
14
  function Accordion({ children, defaultOpenIndex = 0 }) {
13
- const [elements, setElements] = useState([]);
14
- const refContainer = useRef(null);
15
- const forcedOpenedElementsRef = useRef([]);
16
- const alwaysOpenIndexRef = useRef();
17
- const handleOpen = useCallback((index, trigger) => {
15
+ const [elements, setElements] = (0, react_1.useState)([]);
16
+ const refContainer = (0, react_1.useRef)(null);
17
+ const forcedOpenedElementsRef = (0, react_1.useRef)([]);
18
+ const alwaysOpenIndexRef = (0, react_1.useRef)();
19
+ const handleOpen = (0, react_1.useCallback)((index, trigger) => {
18
20
  let el = elements.slice();
19
- if (trigger.source === triggerSource.click) {
21
+ if (trigger.source === AccordionItem_1.triggerSource.click) {
20
22
  el = el.map((e, i) => i === index && alwaysOpenIndexRef.current !== index ? !e : e);
21
23
  }
22
24
  else {
@@ -36,17 +38,17 @@ function Accordion({ children, defaultOpenIndex = 0 }) {
36
38
  forcedOpenedElementsRef.current = el;
37
39
  setElements(el);
38
40
  }, [elements]);
39
- const mappedChildren = useMemo(() => {
40
- return Children.map(children, (child, index) => {
41
+ const mappedChildren = (0, react_1.useMemo)(() => {
42
+ return react_1.Children.map(children, (child, index) => {
41
43
  return (child &&
42
- cloneElement(child, {
44
+ (0, react_1.cloneElement)(child, {
43
45
  onOpen: handleOpen,
44
46
  index,
45
47
  isOpen: elements?.[index],
46
48
  }));
47
49
  });
48
50
  }, [children, elements, handleOpen]);
49
- useEffect(() => {
51
+ (0, react_1.useEffect)(() => {
50
52
  if (defaultOpenIndex != null) {
51
53
  setElements((prevState) => {
52
54
  if (prevState.length > 0) {
@@ -61,6 +63,6 @@ function Accordion({ children, defaultOpenIndex = 0 }) {
61
63
  });
62
64
  }
63
65
  }, [children.length, defaultOpenIndex]);
64
- return (_jsx("div", { ref: refContainer, style: styles.container, children: mappedChildren }));
66
+ return ((0, jsx_runtime_1.jsx)("div", { ref: refContainer, style: styles.container, children: mappedChildren }));
65
67
  }
66
- export default Accordion;
68
+ exports.default = Accordion;
@@ -1,5 +1,8 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useState, useRef, useEffect, useCallback, } from 'react';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.triggerSource = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
3
6
  const styles = {
4
7
  container: {
5
8
  display: 'flex',
@@ -37,42 +40,42 @@ const styles = {
37
40
  flex: '1 1 1px',
38
41
  },
39
42
  };
40
- export const triggerSource = {
43
+ exports.triggerSource = {
41
44
  click: 1,
42
45
  dbClick: 2,
43
46
  };
44
47
  function AccordionItem({ title, children, index, isOpen, onOpen = () => null, style, }) {
45
- const [active, setActiveState] = useState(null);
46
- const timeoutRef = useRef();
47
- const preventEventRef = useRef(false);
48
- const delay = useRef(200).current;
49
- const refContent = useRef(null);
50
- const refContainer = useRef(null);
51
- const toggleAccordion = useCallback((e) => {
48
+ const [active, setActiveState] = (0, react_1.useState)(null);
49
+ const timeoutRef = (0, react_1.useRef)();
50
+ const preventEventRef = (0, react_1.useRef)(false);
51
+ const delay = (0, react_1.useRef)(200).current;
52
+ const refContent = (0, react_1.useRef)(null);
53
+ const refContainer = (0, react_1.useRef)(null);
54
+ const toggleAccordion = (0, react_1.useCallback)((e) => {
52
55
  timeoutRef.current = setTimeout(() => {
53
56
  if (!preventEventRef.current) {
54
- onOpen(index, { source: triggerSource.click, shiftKey: e.shiftKey });
57
+ onOpen(index, { source: exports.triggerSource.click, shiftKey: e.shiftKey });
55
58
  }
56
59
  preventEventRef.current = false;
57
60
  }, delay);
58
61
  }, [delay, index, onOpen]);
59
- const dbClickHandler = useCallback((e) => {
62
+ const dbClickHandler = (0, react_1.useCallback)((e) => {
60
63
  e.persist();
61
64
  clearTimeout(timeoutRef.current);
62
65
  preventEventRef.current = true;
63
- onOpen(index, { source: triggerSource.dbClick, shiftKey: e.shiftKey });
66
+ onOpen(index, { source: exports.triggerSource.dbClick, shiftKey: e.shiftKey });
64
67
  }, [index, onOpen]);
65
- useEffect(() => {
68
+ (0, react_1.useEffect)(() => {
66
69
  setActiveState(isOpen ? { backgroundColor: '#ccc' } : null);
67
70
  }, [isOpen]);
68
- return (_jsxs("div", { ref: refContainer, style: {
71
+ return ((0, jsx_runtime_1.jsxs)("div", { ref: refContainer, style: {
69
72
  ...styles.container,
70
73
  flex: active == null ? 0 : '1 1 1px',
71
74
  transition: isOpen ? 'flex 0.2s ease' : '',
72
- }, className: "custom-accordion", children: [_jsx("button", { type: "button", style: styles.button, onClick: toggleAccordion, onDoubleClick: dbClickHandler, children: _jsx("p", { style: styles.buttonTitle, children: title }) }), _jsx("div", { ref: refContent, style: {
75
+ }, className: "custom-accordion", children: [(0, jsx_runtime_1.jsx)("button", { type: "button", style: styles.button, onClick: toggleAccordion, onDoubleClick: dbClickHandler, children: (0, jsx_runtime_1.jsx)("p", { style: styles.buttonTitle, children: title }) }), (0, jsx_runtime_1.jsx)("div", { ref: refContent, style: {
73
76
  ...styles.content,
74
77
  maxHeight: active == null ? 0 : '100%',
75
78
  ...style,
76
79
  }, children: children })] }));
77
80
  }
78
- export default AccordionItem;
81
+ exports.default = AccordionItem;
@@ -1,14 +1,19 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useEffect } from 'react';
3
- import useDraggable from './useDraggable';
4
- export default function SVGDraggable(props) {
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 react_1 = require("react");
8
+ const useDraggable_1 = __importDefault(require("./useDraggable"));
9
+ function SVGDraggable(props) {
5
10
  const { children, initialPosition = { x: 0, y: 0 }, width, height, onStart, onMove, onEnd, parentElement, dragHandleClassName, } = props;
6
- const { position: { value: { x, y }, action, }, onMouseDown, } = useDraggable({
11
+ const { position: { value: { x, y }, action, }, onMouseDown, } = (0, useDraggable_1.default)({
7
12
  position: initialPosition,
8
13
  parentElement,
9
14
  dragHandleClassName,
10
15
  });
11
- useEffect(() => {
16
+ (0, react_1.useEffect)(() => {
12
17
  const position = {
13
18
  x,
14
19
  y,
@@ -27,7 +32,8 @@ export default function SVGDraggable(props) {
27
32
  break;
28
33
  }
29
34
  }, [action, onEnd, onMove, onStart, x, y]);
30
- return (_jsx("g", { style: {
35
+ return ((0, jsx_runtime_1.jsx)("g", { style: {
31
36
  transform: `translate(${x}px,${y}px)`,
32
37
  }, onMouseDown: onMouseDown, children: typeof children === 'function' ? children(width, height) : children }));
33
38
  }
39
+ exports.default = SVGDraggable;
@@ -1,13 +1,15 @@
1
- import { useCallback, useMemo, useRef, useState } from 'react';
2
- export default function useDraggable(props) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("react");
4
+ function useDraggable(props) {
3
5
  const { position: { x, y }, parentElement, fromEdge = false, dragHandleClassName, } = props;
4
- const isActive = useRef(false);
5
- const positionRef = useRef({ x, y });
6
- const [position, setPosition] = useState({
6
+ const isActive = (0, react_1.useRef)(false);
7
+ const positionRef = (0, react_1.useRef)({ x, y });
8
+ const [position, setPosition] = (0, react_1.useState)({
7
9
  value: { x, y },
8
10
  action: null,
9
11
  });
10
- const onMouseDown = useCallback((e) => {
12
+ const onMouseDown = (0, react_1.useCallback)((e) => {
11
13
  e.stopPropagation();
12
14
  isActive.current = true;
13
15
  const eventTarget = e.currentTarget;
@@ -60,9 +62,10 @@ export default function useDraggable(props) {
60
62
  }
61
63
  }
62
64
  }, [dragHandleClassName, fromEdge, parentElement]);
63
- return useMemo(() => ({
65
+ return (0, react_1.useMemo)(() => ({
64
66
  onMouseDown,
65
67
  position,
66
68
  isActive: isActive.current,
67
69
  }), [onMouseDown, position]);
68
70
  }
71
+ exports.default = useDraggable;
@@ -1,12 +1,17 @@
1
- import { jsx as _jsx, jsxs as _jsxs } 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 { useCallback, useEffect, useRef, useState } from 'react';
5
- import { FaEllipsisH } from 'react-icons/fa';
6
- import DropDownList from './DropDownList';
8
+ const react_1 = require("@emotion/react");
9
+ const react_2 = require("react");
10
+ const fa_1 = require("react-icons/fa");
11
+ const DropDownList_1 = __importDefault(require("./DropDownList"));
7
12
  const arrowDownIcon = `url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="960px" height="560px" viewBox="0 0 960 560" enable-background="new 0 0 960 560" xml:space="preserve"><g id="Rounded_Rectangle_33_copy_4_1_"><path d="M480,344.181L268.869,131.889c-15.756-15.859-41.3-15.859-57.054,0c-15.754,15.857-15.754,41.57,0,57.431l237.632,238.937c8.395,8.451,19.562,12.254,30.553,11.698c10.993,0.556,22.159-3.247,30.555-11.698l237.631-238.937c15.756-15.86,15.756-41.571,0-57.431s-41.299-15.859-57.051,0L480,344.181z"/></g></svg>')`;
8
13
  const styles = {
9
- container: css `
14
+ container: (0, react_1.css) `
10
15
  position: relative;
11
16
  border-radius: 10px;
12
17
  width: max-content;
@@ -18,37 +23,37 @@ const styles = {
18
23
  background-position-x: calc(100% - 0.5em);
19
24
  background-size: 1em 1em;
20
25
  `,
21
- button: css `
26
+ button: (0, react_1.css) `
22
27
  width: 100%;
23
28
  padding: 0.3em 2em 0.3em 1em;
24
29
  `,
25
30
  };
26
31
  function DropDownButton(props) {
27
32
  const { data, selectedKey, onSelect, formatSelectedValue = (item) => item.label, renderItem = null, style, itemKey = 'key', labelKey = 'label', visibleKey = 'visible', className = '', } = props;
28
- const [open, setOpen] = useState(false);
29
- const [item, setItem] = useState();
30
- const drop = useRef(null);
31
- useEffect(() => {
33
+ const [open, setOpen] = (0, react_2.useState)(false);
34
+ const [item, setItem] = (0, react_2.useState)();
35
+ const drop = (0, react_2.useRef)(null);
36
+ (0, react_2.useEffect)(() => {
32
37
  if (selectedKey) {
33
38
  const item = data.find((i) => i[itemKey] === selectedKey) || null;
34
39
  setItem(item);
35
40
  }
36
41
  }, [selectedKey, data, itemKey]);
37
- useEffect(() => {
42
+ (0, react_2.useEffect)(() => {
38
43
  function handleClick() {
39
44
  setOpen(false);
40
45
  }
41
46
  window.addEventListener('click', handleClick);
42
47
  return () => window.removeEventListener('click', handleClick);
43
48
  }, []);
44
- const selectHandler = useCallback((index) => {
49
+ const selectHandler = (0, react_2.useCallback)((index) => {
45
50
  setItem(data[index]);
46
51
  onSelect?.(data[index]);
47
52
  setOpen(false);
48
53
  }, [data, onSelect]);
49
- return (_jsxs("div", { className: `dropdown ${className}`, ref: drop, css: [styles.container, style], children: [_jsx("button", { css: styles.button, type: "button", onClick: (event) => {
54
+ return ((0, jsx_runtime_1.jsxs)("div", { className: `dropdown ${className}`, ref: drop, css: [styles.container, style], children: [(0, jsx_runtime_1.jsx)("button", { css: styles.button, type: "button", onClick: (event) => {
50
55
  setOpen((open) => !open);
51
56
  event.stopPropagation();
52
- }, children: !item ? _jsx(FaEllipsisH, {}) : formatSelectedValue(item) }), open && (_jsx(DropDownList, { data: data, onSelect: selectHandler, renderItem: renderItem, itemKey: itemKey, labelKey: labelKey, visibleKey: visibleKey }))] }));
57
+ }, children: !item ? (0, jsx_runtime_1.jsx)(fa_1.FaEllipsisH, {}) : formatSelectedValue(item) }), open && ((0, jsx_runtime_1.jsx)(DropDownList_1.default, { data: data, onSelect: selectHandler, renderItem: renderItem, itemKey: itemKey, labelKey: labelKey, visibleKey: visibleKey }))] }));
53
58
  }
54
- export default DropDownButton;
59
+ exports.default = DropDownButton;
@@ -1,9 +1,11 @@
1
- import { jsx as _jsx } from "@emotion/react/jsx-runtime";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
2
4
  /** @jsxImportSource @emotion/react */
3
- import { css } from '@emotion/react';
4
- import { useLayoutEffect, useRef } from 'react';
5
+ const react_1 = require("@emotion/react");
6
+ const react_2 = require("react");
5
7
  const styles = {
6
- container: css `
8
+ container: (0, react_1.css) `
7
9
  background-color: white;
8
10
  position: absolute;
9
11
  height: auto;
@@ -15,12 +17,12 @@ const styles = {
15
17
  margin-bottom: 20px;
16
18
  overflow: hidden;
17
19
  `,
18
- ul: css `
20
+ ul: (0, react_1.css) `
19
21
  list-style-type: none;
20
22
  padding: 0;
21
23
  margin: 0;
22
24
  `,
23
- li: css `
25
+ li: (0, react_1.css) `
24
26
  text-align: center;
25
27
  white-space: nowrap;
26
28
  color: black;
@@ -35,14 +37,14 @@ const styles = {
35
37
  color: white;
36
38
  }
37
39
  `,
38
- label: css `
40
+ label: (0, react_1.css) `
39
41
  padding: 5px 20px;
40
42
  display: block;
41
43
  `,
42
44
  };
43
45
  function DropDownList({ data = [], onSelect, renderItem = null, itemKey, labelKey, visibleKey, }) {
44
- const ref = useRef(null);
45
- useLayoutEffect(() => {
46
+ const ref = (0, react_2.useRef)(null);
47
+ (0, react_2.useLayoutEffect)(() => {
46
48
  const container = ref.current;
47
49
  if (container) {
48
50
  const { right } = container.getBoundingClientRect();
@@ -57,11 +59,11 @@ function DropDownList({ data = [], onSelect, renderItem = null, itemKey, labelKe
57
59
  }
58
60
  };
59
61
  }, []);
60
- return (_jsx("div", { css: styles.container, ref: ref, children: _jsx("ul", { css: styles.ul, children: data.map((item, index) => (_jsx("li", { css: styles.li, onClick: (e) => {
62
+ return ((0, jsx_runtime_1.jsx)("div", { css: styles.container, ref: ref, children: (0, jsx_runtime_1.jsx)("ul", { css: styles.ul, children: data.map((item, index) => ((0, jsx_runtime_1.jsx)("li", { css: styles.li, onClick: (e) => {
61
63
  e.stopPropagation();
62
64
  onSelect(index);
63
65
  }, style: {
64
66
  display: !(visibleKey in item) || item[visibleKey] ? 'block' : 'none',
65
- }, children: renderItem?.(item) || (_jsx("span", { css: styles.label, children: item[labelKey] })) }, item[itemKey]))) }) }));
67
+ }, children: renderItem?.(item) || ((0, jsx_runtime_1.jsx)("span", { css: styles.label, children: item[labelKey] })) }, item[itemKey]))) }) }));
66
68
  }
67
- export default DropDownList;
69
+ exports.default = DropDownList;
@@ -1,13 +1,15 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useField } from 'formik';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ const formik_1 = require("formik");
3
5
  const styles = {
4
6
  color: 'red',
5
7
  margin: '0.5px',
6
8
  };
7
9
  function ErrorMessage({ style, ...props }) {
8
- const [, { error }] = useField(props);
10
+ const [, { error }] = (0, formik_1.useField)(props);
9
11
  if (!error)
10
- return _jsx("div", {});
11
- return (_jsx("div", { children: _jsx("p", { style: { ...styles, ...style }, children: error }) }));
12
+ return (0, jsx_runtime_1.jsx)("div", {});
13
+ return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("p", { style: { ...styles, ...style }, children: error }) }));
12
14
  }
13
- export default ErrorMessage;
15
+ exports.default = ErrorMessage;
@@ -1,19 +1,24 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useFormikContext } from 'formik';
3
- import lodashGet from 'lodash/get';
4
- import { useCallback } from 'react';
5
- import CheckBox from '../CheckBox';
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 formik_1 = require("formik");
8
+ const get_1 = __importDefault(require("lodash/get"));
9
+ const react_1 = require("react");
10
+ const CheckBox_1 = __importDefault(require("../CheckBox"));
6
11
  function FormikCheckBox(props) {
7
12
  const { label, name, onChange = () => null, className = 'checkbox', reverse = false, style = { container: {}, label: {}, checkbox: {} }, defaultValue, renderLabel, ...resProps } = props;
8
- const { values, setFieldValue } = useFormikContext();
13
+ const { values, setFieldValue } = (0, formik_1.useFormikContext)();
9
14
  const value = reverse
10
- ? !lodashGet(values, name, defaultValue)
11
- : lodashGet(values, name, defaultValue);
12
- const changeHandler = useCallback((e) => {
15
+ ? !(0, get_1.default)(values, name, defaultValue)
16
+ : (0, get_1.default)(values, name, defaultValue);
17
+ const changeHandler = (0, react_1.useCallback)((e) => {
13
18
  e.persist();
14
19
  onChange(e);
15
20
  void setFieldValue(name, reverse ? value : !value);
16
21
  }, [name, onChange, reverse, setFieldValue, value]);
17
- return (_jsxs("div", { className: `${className} check-${value}`, style: { display: 'flex', justifyContent: 'center', ...style.container }, children: [renderLabel?.(label), label && !renderLabel && (_jsx("label", { htmlFor: name, className: "checkbox-label", style: style.label || {}, children: label })), _jsx(CheckBox, { ...resProps, name: name, id: name, checked: value, onChange: changeHandler, style: style.checkbox || {} })] }));
22
+ return ((0, jsx_runtime_1.jsxs)("div", { className: `${className} check-${value}`, style: { display: 'flex', justifyContent: 'center', ...style.container }, children: [renderLabel?.(label), label && !renderLabel && ((0, jsx_runtime_1.jsx)("label", { htmlFor: name, className: "checkbox-label", style: style.label || {}, children: label })), (0, jsx_runtime_1.jsx)(CheckBox_1.default, { ...resProps, name: name, id: name, checked: value, onChange: changeHandler, style: style.checkbox || {} })] }));
18
23
  }
19
- export default FormikCheckBox;
24
+ exports.default = FormikCheckBox;
@@ -1,15 +1,20 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useFormikContext } from 'formik';
3
- import lodashGet from 'lodash/get';
4
- import { useCallback, memo } from 'react';
5
- import ColorInput from '../ColorInput';
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 formik_1 = require("formik");
8
+ const get_1 = __importDefault(require("lodash/get"));
9
+ const react_1 = require("react");
10
+ const ColorInput_1 = __importDefault(require("../ColorInput"));
6
11
  function FormikColorPicker(props) {
7
12
  const { onColorChange = () => null, name, ...colorPickerProps } = props;
8
- const { values, setFieldValue } = useFormikContext();
9
- const colorChangeHandler = useCallback((color) => {
13
+ const { values, setFieldValue } = (0, formik_1.useFormikContext)();
14
+ const colorChangeHandler = (0, react_1.useCallback)((color) => {
10
15
  onColorChange(color);
11
16
  void setFieldValue(name, color.hex);
12
17
  }, [name, onColorChange, setFieldValue]);
13
- return (_jsx(ColorInput, { ...colorPickerProps, name: name, onColorChange: colorChangeHandler, value: lodashGet(values, name) }));
18
+ return ((0, jsx_runtime_1.jsx)(ColorInput_1.default, { ...colorPickerProps, name: name, onColorChange: colorChangeHandler, value: (0, get_1.default)(values, name) }));
14
19
  }
15
- export default memo(FormikColorPicker);
20
+ exports.default = (0, react_1.memo)(FormikColorPicker);
@@ -1,16 +1,21 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useFormikContext } from 'formik';
3
- import lodashGet from 'lodash/get';
4
- import { memo } from 'react';
5
- import { ColorPicker } from 'react-science/ui';
6
- import { COLORS } from '../../../data/utilities/generateColor';
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 formik_1 = require("formik");
8
+ const get_1 = __importDefault(require("lodash/get"));
9
+ const react_1 = require("react");
10
+ const ui_1 = require("react-science/ui");
11
+ const generateColor_1 = require("../../../data/utilities/generateColor");
7
12
  function FormikColorPicker(props) {
8
13
  const { onColorChange = () => null, name } = props;
9
- const { values, setFieldValue } = useFormikContext();
14
+ const { values, setFieldValue } = (0, formik_1.useFormikContext)();
10
15
  function colorChangeHandler(color) {
11
16
  void setFieldValue(name, `${color.hex}${Math.round(color.rgb.a * 255).toString(16)}`, false);
12
17
  onColorChange(color);
13
18
  }
14
- return (_jsx(ColorPicker, { color: { hex: lodashGet(values, name, '#000') }, presetColors: COLORS, onChangeComplete: colorChangeHandler, style: { boxShadow: 'none' } }));
19
+ return ((0, jsx_runtime_1.jsx)(ui_1.ColorPicker, { color: { hex: (0, get_1.default)(values, name, '#000') }, presetColors: generateColor_1.COLORS, onChangeComplete: colorChangeHandler, style: { boxShadow: 'none' } }));
15
20
  }
16
- export default memo(FormikColorPicker);
21
+ exports.default = (0, react_1.memo)(FormikColorPicker);