nmrium 2.2.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/lib/component/1d/PredictionErrorsNotations.js +3 -3
  2. package/lib/component/1d/PredictionErrorsNotations.js.map +1 -1
  3. package/lib/component/1d/peaks/PeakEditionManager.d.ts +1 -1
  4. package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
  5. package/lib/component/1d/peaks/Peaks.js +2 -1
  6. package/lib/component/1d/peaks/Peaks.js.map +1 -1
  7. package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
  8. package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
  9. package/lib/component/1d/ranges/AssignmentLabel.js +1 -1
  10. package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
  11. package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.d.ts +9 -0
  12. package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.d.ts.map +1 -0
  13. package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.js +138 -0
  14. package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.js.map +1 -0
  15. package/lib/component/1d/ranges/FloatingRanges.d.ts.map +1 -0
  16. package/lib/component/1d/ranges/FloatingRanges.js +362 -0
  17. package/lib/component/1d/ranges/FloatingRanges.js.map +1 -0
  18. package/lib/component/1d/ranges/Ranges.js +2 -2
  19. package/lib/component/1d/ranges/Ranges.js.map +1 -1
  20. package/lib/component/1d-2d/FieldEdition.d.ts +2 -2
  21. package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
  22. package/lib/component/1d-2d/FieldEdition.js +2 -2
  23. package/lib/component/1d-2d/FieldEdition.js.map +1 -1
  24. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +7 -7
  25. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
  26. package/lib/component/1d-2d/tools/BrushXY.js +6 -6
  27. package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
  28. package/lib/component/2d/1d-tracer/Left1DChart.d.ts.map +1 -1
  29. package/lib/component/2d/1d-tracer/Left1DChart.js +6 -2
  30. package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
  31. package/lib/component/2d/1d-tracer/Ranges1D.d.ts +9 -0
  32. package/lib/component/2d/1d-tracer/Ranges1D.d.ts.map +1 -0
  33. package/lib/component/2d/1d-tracer/Ranges1D.js +76 -0
  34. package/lib/component/2d/1d-tracer/Ranges1D.js.map +1 -0
  35. package/lib/component/2d/1d-tracer/Signals1D.d.ts +11 -0
  36. package/lib/component/2d/1d-tracer/Signals1D.d.ts.map +1 -0
  37. package/lib/component/2d/1d-tracer/Signals1D.js +90 -0
  38. package/lib/component/2d/1d-tracer/Signals1D.js.map +1 -0
  39. package/lib/component/2d/1d-tracer/Top1DChart.d.ts.map +1 -1
  40. package/lib/component/2d/1d-tracer/Top1DChart.js +6 -2
  41. package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
  42. package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
  43. package/lib/component/2d/ft/FTContainer.js.map +1 -1
  44. package/lib/component/2d/zones/SignalsGuideLines.js +1 -1
  45. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
  46. package/lib/component/2d/zones/ZonesAssignmentsLabels.js +1 -1
  47. package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
  48. package/lib/component/AnchorSVG.d.ts +37 -0
  49. package/lib/component/AnchorSVG.d.ts.map +1 -0
  50. package/lib/component/AnchorSVG.js +137 -0
  51. package/lib/component/AnchorSVG.js.map +1 -0
  52. package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
  53. package/lib/component/EventsTrackers/BrushTracker.js +4 -0
  54. package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
  55. package/lib/component/SVGTable.d.ts +5 -3
  56. package/lib/component/SVGTable.d.ts.map +1 -1
  57. package/lib/component/SVGTable.js +16 -16
  58. package/lib/component/SVGTable.js.map +1 -1
  59. package/lib/component/context/KeyModifierContext.d.ts +1 -0
  60. package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
  61. package/lib/component/context/KeyModifierContext.js +4 -0
  62. package/lib/component/context/KeyModifierContext.js.map +1 -1
  63. package/lib/component/context/LoggerContext.d.ts.map +1 -1
  64. package/lib/component/context/LoggerContext.js.map +1 -1
  65. package/lib/component/context/SortSpectraContext.d.ts.map +1 -1
  66. package/lib/component/context/SortSpectraContext.js.map +1 -1
  67. package/lib/component/elements/ActionsButtonsPopover.d.ts +2 -2
  68. package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
  69. package/lib/component/elements/ActionsButtonsPopover.js +6 -9
  70. package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
  71. package/lib/component/elements/Button.d.ts.map +1 -1
  72. package/lib/component/elements/Button.js.map +1 -1
  73. package/lib/component/elements/DraggableDialog.d.ts.map +1 -1
  74. package/lib/component/elements/DraggableDialog.js +1 -2
  75. package/lib/component/elements/DraggableDialog.js.map +1 -1
  76. package/lib/component/elements/Sections.d.ts +3 -3
  77. package/lib/component/elements/Sections.d.ts.map +1 -1
  78. package/lib/component/elements/Sections.js +1 -1
  79. package/lib/component/elements/Sections.js.map +1 -1
  80. package/lib/component/elements/TabTitle.d.ts.map +1 -1
  81. package/lib/component/elements/TabTitle.js +2 -2
  82. package/lib/component/elements/TabTitle.js.map +1 -1
  83. package/lib/component/elements/ToolbarPopoverItem.d.ts +1 -0
  84. package/lib/component/elements/ToolbarPopoverItem.d.ts.map +1 -1
  85. package/lib/component/elements/ToolbarPopoverItem.js +10 -3
  86. package/lib/component/elements/ToolbarPopoverItem.js.map +1 -1
  87. package/lib/component/elements/dropDownButton/DropDownButton.d.ts.map +1 -1
  88. package/lib/component/elements/dropDownButton/DropDownButton.js +2 -2
  89. package/lib/component/elements/dropDownButton/DropDownButton.js.map +1 -1
  90. package/lib/component/elements/export/ExportOptionsModal.d.ts +1 -1
  91. package/lib/component/elements/export/ExportOptionsModal.d.ts.map +1 -1
  92. package/lib/component/elements/export/ExportOptionsModal.js +28 -110
  93. package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
  94. package/lib/component/elements/export/units.d.ts +0 -28
  95. package/lib/component/elements/export/units.d.ts.map +1 -1
  96. package/lib/component/elements/export/units.js +0 -5
  97. package/lib/component/elements/export/units.js.map +1 -1
  98. package/lib/component/elements/export/utilities/getExportOptions.d.ts.map +1 -1
  99. package/lib/component/elements/export/utilities/getExportOptions.js.map +1 -1
  100. package/lib/component/elements/print/pageSize.d.ts +1 -1
  101. package/lib/component/elements/print/pageSize.d.ts.map +1 -1
  102. package/lib/component/header/Header.d.ts.map +1 -1
  103. package/lib/component/header/Header.js +2 -4
  104. package/lib/component/header/Header.js.map +1 -1
  105. package/lib/component/hooks/useExport.d.ts.map +1 -1
  106. package/lib/component/hooks/useExport.js.map +1 -1
  107. package/lib/component/hooks/usePanelPreferences.d.ts +3 -3
  108. package/lib/component/hooks/usePanelPreferences.d.ts.map +1 -1
  109. package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
  110. package/lib/component/hooks/useSaveSettings.js +3 -6
  111. package/lib/component/hooks/useSaveSettings.js.map +1 -1
  112. package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
  113. package/lib/component/hooks/useTextMetrics.js +1 -0
  114. package/lib/component/hooks/useTextMetrics.js.map +1 -1
  115. package/lib/component/main/NMRiumViewer.js +1 -1
  116. package/lib/component/main/NMRiumViewer.js.map +1 -1
  117. package/lib/component/modal/EditPeakShapeModal.js +2 -2
  118. package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
  119. package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
  120. package/lib/component/modal/PublicationStringModal.js +2 -6
  121. package/lib/component/modal/PublicationStringModal.js.map +1 -1
  122. package/lib/component/modal/SaveAsModal.d.ts +2 -2
  123. package/lib/component/modal/SaveAsModal.d.ts.map +1 -1
  124. package/lib/component/modal/SaveAsModal.js +40 -35
  125. package/lib/component/modal/SaveAsModal.js.map +1 -1
  126. package/lib/component/modal/aboutUs/AboutUsModal.d.ts.map +1 -1
  127. package/lib/component/modal/aboutUs/AboutUsModal.js +2 -4
  128. package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
  129. package/lib/component/modal/editRange/EditRangeModal.js +4 -3
  130. package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
  131. package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
  132. package/lib/component/modal/editRange/forms/components/NewSignalTab.js +39 -37
  133. package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
  134. package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +29 -29
  135. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js +3 -3
  136. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js.map +1 -1
  137. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +29 -29
  138. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js +2 -2
  139. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js.map +1 -1
  140. package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts.map +1 -1
  141. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js +9 -12
  142. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js.map +1 -1
  143. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +29 -29
  144. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js +2 -2
  145. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map +1 -1
  146. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +24 -24
  147. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +29 -29
  148. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js +2 -2
  149. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map +1 -1
  150. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +4 -4
  151. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +29 -29
  152. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js +2 -2
  153. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js.map +1 -1
  154. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +24 -24
  155. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +24 -24
  156. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +24 -24
  157. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +14 -14
  158. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +2 -2
  159. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
  160. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +24 -24
  161. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +24 -24
  162. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +24 -24
  163. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +24 -24
  164. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +24 -24
  165. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +24 -24
  166. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +24 -24
  167. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts.map +1 -1
  168. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js +3 -2
  169. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js.map +1 -1
  170. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +24 -24
  171. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -1
  172. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +3 -2
  173. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js.map +1 -1
  174. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +24 -24
  175. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
  176. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +30 -3
  177. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
  178. package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts.map +1 -1
  179. package/lib/component/panels/PeaksPanel/PeaksPanel.js +1 -9
  180. package/lib/component/panels/PeaksPanel/PeaksPanel.js.map +1 -1
  181. package/lib/component/panels/PeaksPanel/PeaksPreferences.js +18 -18
  182. package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
  183. package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
  184. package/lib/component/panels/PeaksPanel/PeaksTable.js +17 -17
  185. package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
  186. package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
  187. package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
  188. package/lib/component/panels/RangesPanel/RangesPreferences.js +22 -22
  189. package/lib/component/panels/RangesPanel/RangesPreferences.js.map +1 -1
  190. package/lib/component/panels/RangesPanel/RangesTable.d.ts +2 -2
  191. package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
  192. package/lib/component/panels/RangesPanel/RangesTable.js +5 -4
  193. package/lib/component/panels/RangesPanel/RangesTable.js.map +1 -1
  194. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +2 -2
  195. package/lib/component/panels/RangesPanel/RangesTableRow.js +2 -2
  196. package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
  197. package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
  198. package/lib/component/panels/SpectraPanel/SpectraTable.js +5 -1
  199. package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
  200. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts.map +1 -1
  201. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js +7 -4
  202. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
  203. package/lib/component/panels/SpectraPanel/base/SpectrumName.d.ts.map +1 -1
  204. package/lib/component/panels/SpectraPanel/base/SpectrumName.js +5 -1
  205. package/lib/component/panels/SpectraPanel/base/SpectrumName.js.map +1 -1
  206. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts.map +1 -1
  207. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js +2 -2
  208. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
  209. package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
  210. package/lib/component/panels/SummaryPanel/SummaryPanel.js +7 -0
  211. package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
  212. package/lib/component/panels/filtersPanel/FilterPanel.d.ts.map +1 -1
  213. package/lib/component/panels/filtersPanel/FilterPanel.js +5 -2
  214. package/lib/component/panels/filtersPanel/FilterPanel.js.map +1 -1
  215. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +1 -1
  216. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
  217. package/lib/component/panels/filtersPanel/processings_sections_panel.d.ts +2 -0
  218. package/lib/component/panels/filtersPanel/processings_sections_panel.d.ts.map +1 -0
  219. package/lib/component/panels/filtersPanel/processings_sections_panel.js +144 -0
  220. package/lib/component/panels/filtersPanel/processings_sections_panel.js.map +1 -0
  221. package/lib/component/panels/hooks/useMoleculeAnnotationCore.d.ts +3 -2
  222. package/lib/component/panels/hooks/useMoleculeAnnotationCore.d.ts.map +1 -1
  223. package/lib/component/panels/hooks/useMoleculeAnnotationCore.js +14 -8
  224. package/lib/component/panels/hooks/useMoleculeAnnotationCore.js.map +1 -1
  225. package/lib/component/panels/informationPanel/MixedValuesBadge.d.ts.map +1 -1
  226. package/lib/component/panels/informationPanel/MixedValuesBadge.js +2 -2
  227. package/lib/component/panels/informationPanel/MixedValuesBadge.js.map +1 -1
  228. package/lib/component/panels/informationPanel/SpectraPicker.d.ts.map +1 -1
  229. package/lib/component/panels/informationPanel/SpectraPicker.js +2 -2
  230. package/lib/component/panels/informationPanel/SpectraPicker.js.map +1 -1
  231. package/lib/component/reducer/Reducer.d.ts.map +1 -1
  232. package/lib/component/reducer/Reducer.js +2 -0
  233. package/lib/component/reducer/Reducer.js.map +1 -1
  234. package/lib/component/reducer/actions/CorrelationsActions.js +1 -1
  235. package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
  236. package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
  237. package/lib/component/reducer/actions/DomainActions.js.map +1 -1
  238. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  239. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  240. package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
  241. package/lib/component/reducer/actions/LoadAction.js.map +1 -1
  242. package/lib/component/reducer/actions/MoleculeActions.d.ts +9 -0
  243. package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
  244. package/lib/component/reducer/actions/RangesActions.d.ts +11 -2
  245. package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
  246. package/lib/component/reducer/actions/RangesActions.js +23 -5
  247. package/lib/component/reducer/actions/RangesActions.js.map +1 -1
  248. package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
  249. package/lib/component/reducer/actions/ToolsActions.js +5 -17
  250. package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
  251. package/lib/component/reducer/helper/getTraceSpectrumID.d.ts +5 -0
  252. package/lib/component/reducer/helper/getTraceSpectrumID.d.ts.map +1 -0
  253. package/lib/component/reducer/helper/getTraceSpectrumID.js +14 -0
  254. package/lib/component/reducer/helper/getTraceSpectrumID.js.map +1 -0
  255. package/lib/component/reducer/helper/setRangesViewProperty.d.ts.map +1 -1
  256. package/lib/component/reducer/helper/setRangesViewProperty.js.map +1 -1
  257. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
  258. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +35 -26
  259. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
  260. package/lib/component/reducer/preferences/preferencesReducer.d.ts +2 -2
  261. package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
  262. package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts +2 -2
  263. package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +2 -2
  264. package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts.map +1 -1
  265. package/lib/component/toolbar/ToolTypes.d.ts +2 -2
  266. package/lib/component/toolbar/nmr_toolbar.d.ts.map +1 -1
  267. package/lib/component/toolbar/nmr_toolbar.js +3 -1
  268. package/lib/component/toolbar/nmr_toolbar.js.map +1 -1
  269. package/lib/component/utility/CoreSlot.d.ts +27 -0
  270. package/lib/component/utility/CoreSlot.d.ts.map +1 -0
  271. package/lib/component/utility/CoreSlot.js +56 -0
  272. package/lib/component/utility/CoreSlot.js.map +1 -0
  273. package/lib/component/utility/export.d.ts.map +1 -1
  274. package/lib/component/utility/export.js +1 -0
  275. package/lib/component/utility/export.js.map +1 -1
  276. package/lib/data/PredictionManager.js.map +1 -1
  277. package/lib/data/constants/signalsKinds.d.ts +1 -2
  278. package/lib/data/constants/signalsKinds.d.ts.map +1 -1
  279. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts.map +1 -1
  280. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +1 -0
  281. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js.map +1 -1
  282. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts.map +1 -1
  283. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +35 -30
  284. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js.map +1 -1
  285. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.d.ts.map +1 -1
  286. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js +1 -0
  287. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js.map +1 -1
  288. package/lib/data/data1d/multipleSpectraAnalysis.d.ts +2 -2
  289. package/lib/data/matrixGeneration.d.ts.map +1 -1
  290. package/lib/data/matrixGeneration.js.map +1 -1
  291. package/lib/versionInfo.js +1 -1
  292. package/package.json +37 -37
  293. package/src/component/1d/PredictionErrorsNotations.tsx +5 -4
  294. package/src/component/1d/peaks/Peaks.tsx +5 -2
  295. package/src/component/1d/peaks/usePeakShapesPath.ts +0 -1
  296. package/src/component/1d/ranges/AssignmentLabel.tsx +1 -1
  297. package/src/component/1d/ranges/FloatingRangeTablePreferencesModal.tsx +238 -0
  298. package/src/component/1d/ranges/FloatingRanges.tsx +529 -0
  299. package/src/component/1d/ranges/Ranges.tsx +2 -2
  300. package/src/component/1d-2d/FieldEdition.tsx +4 -4
  301. package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +8 -8
  302. package/src/component/1d-2d/tools/BrushXY.tsx +8 -8
  303. package/src/component/2d/1d-tracer/Left1DChart.tsx +24 -1
  304. package/src/component/2d/1d-tracer/Ranges1D.tsx +134 -0
  305. package/src/component/2d/1d-tracer/Signals1D.tsx +145 -0
  306. package/src/component/2d/1d-tracer/Top1DChart.tsx +29 -2
  307. package/src/component/2d/ft/FTContainer.tsx +1 -0
  308. package/src/component/2d/zones/SignalsGuideLines.tsx +1 -1
  309. package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +1 -1
  310. package/src/component/AnchorSVG.tsx +370 -0
  311. package/src/component/EventsTrackers/BrushTracker.tsx +7 -2
  312. package/src/component/SVGTable.tsx +35 -33
  313. package/src/component/context/KeyModifierContext.tsx +6 -2
  314. package/src/component/context/LoggerContext.tsx +1 -7
  315. package/src/component/context/SortSpectraContext.tsx +1 -3
  316. package/src/component/elements/ActionsButtonsPopover.tsx +12 -14
  317. package/src/component/elements/Button.tsx +1 -6
  318. package/src/component/elements/DraggableDialog.tsx +1 -2
  319. package/src/component/elements/Sections.tsx +9 -7
  320. package/src/component/elements/TabTitle.tsx +7 -5
  321. package/src/component/elements/ToolbarPopoverItem.tsx +13 -2
  322. package/src/component/elements/dropDownButton/DropDownButton.tsx +7 -5
  323. package/src/component/elements/export/ExportOptionsModal.tsx +51 -280
  324. package/src/component/elements/export/units.ts +0 -6
  325. package/src/component/elements/export/utilities/getExportOptions.ts +1 -0
  326. package/src/component/elements/print/pageSize.ts +1 -1
  327. package/src/component/header/Header.tsx +2 -4
  328. package/src/component/hooks/useExport.tsx +1 -3
  329. package/src/component/hooks/usePanelPreferences.ts +4 -4
  330. package/src/component/hooks/useSaveSettings.tsx +4 -15
  331. package/src/component/hooks/useTextMetrics.ts +1 -0
  332. package/src/component/main/NMRiumViewer.tsx +1 -1
  333. package/src/component/modal/EditPeakShapeModal.tsx +2 -2
  334. package/src/component/modal/PublicationStringModal.tsx +5 -11
  335. package/src/component/modal/SaveAsModal.tsx +80 -82
  336. package/src/component/modal/aboutUs/AboutUsModal.tsx +5 -4
  337. package/src/component/modal/editRange/EditRangeModal.tsx +6 -4
  338. package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +58 -58
  339. package/src/component/modal/setting/WorkspaceItem.tsx +2 -2
  340. package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +3 -3
  341. package/src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx +2 -2
  342. package/src/component/modal/setting/tanstack_general_settings/general_settings.tsx +23 -29
  343. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +2 -2
  344. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx +2 -2
  345. package/src/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.tsx +2 -2
  346. package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +2 -2
  347. package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.tsx +3 -2
  348. package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +3 -2
  349. package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +41 -8
  350. package/src/component/panels/PeaksPanel/PeaksPanel.tsx +1 -8
  351. package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +18 -18
  352. package/src/component/panels/PeaksPanel/PeaksTable.tsx +19 -17
  353. package/src/component/panels/RangesPanel/RangesHeader.tsx +1 -2
  354. package/src/component/panels/RangesPanel/RangesPanel.tsx +2 -2
  355. package/src/component/panels/RangesPanel/RangesPreferences.tsx +22 -22
  356. package/src/component/panels/RangesPanel/RangesTable.tsx +19 -17
  357. package/src/component/panels/RangesPanel/RangesTableRow.tsx +25 -25
  358. package/src/component/panels/SpectraPanel/SpectraTable.tsx +12 -1
  359. package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +22 -4
  360. package/src/component/panels/SpectraPanel/base/SpectrumName.tsx +15 -6
  361. package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +3 -2
  362. package/src/component/panels/SummaryPanel/SummaryPanel.tsx +14 -16
  363. package/src/component/panels/filtersPanel/FilterPanel.tsx +10 -0
  364. package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +1 -0
  365. package/src/component/panels/filtersPanel/processings_sections_panel.tsx +324 -0
  366. package/src/component/panels/hooks/useMoleculeAnnotationCore.ts +17 -9
  367. package/src/component/panels/informationPanel/MixedValuesBadge.tsx +3 -2
  368. package/src/component/panels/informationPanel/SpectraPicker.tsx +12 -4
  369. package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +2 -2
  370. package/src/component/reducer/Reducer.ts +2 -0
  371. package/src/component/reducer/actions/CorrelationsActions.ts +1 -1
  372. package/src/component/reducer/actions/DomainActions.ts +1 -4
  373. package/src/component/reducer/actions/FiltersActions.ts +1 -2
  374. package/src/component/reducer/actions/LoadAction.ts +1 -3
  375. package/src/component/reducer/actions/RangesActions.ts +39 -5
  376. package/src/component/reducer/actions/ToolsActions.ts +5 -21
  377. package/src/component/reducer/helper/getTraceSpectrumID.tsx +25 -0
  378. package/src/component/reducer/helper/setRangesViewProperty.ts +1 -2
  379. package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +32 -19
  380. package/src/component/reducer/preferences/preferencesReducer.ts +2 -2
  381. package/src/component/reducer/preferences/utilities/initWorkspace.ts +2 -2
  382. package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +2 -2
  383. package/src/component/toolbar/ToolTypes.ts +2 -2
  384. package/src/component/toolbar/nmr_toolbar.tsx +3 -2
  385. package/src/component/utility/CoreSlot.tsx +126 -0
  386. package/src/component/utility/export.ts +1 -0
  387. package/src/data/PredictionManager.ts +4 -6
  388. package/src/data/constants/signalsKinds.ts +1 -1
  389. package/src/data/data1d/Spectrum1D/peaks/autoPeakPicking.ts +1 -0
  390. package/src/data/data1d/Spectrum1D/peaks/optimizePeaks.ts +35 -30
  391. package/src/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.ts +1 -0
  392. package/src/data/data1d/multipleSpectraAnalysis.ts +2 -2
  393. package/src/data/matrixGeneration.ts +1 -5
  394. package/src/versionInfo.ts +1 -1
  395. package/lib/component/1d/FloatingRanges.d.ts.map +0 -1
  396. package/lib/component/1d/FloatingRanges.js +0 -263
  397. package/lib/component/1d/FloatingRanges.js.map +0 -1
  398. package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts +0 -17
  399. package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts.map +0 -1
  400. package/lib/component/elements/export/utilities/exportOptionValidationSchema.js +0 -79
  401. package/lib/component/elements/export/utilities/exportOptionValidationSchema.js.map +0 -1
  402. package/lib/component/elements/export/utilities/getModes.d.ts +0 -4
  403. package/lib/component/elements/export/utilities/getModes.d.ts.map +0 -1
  404. package/lib/component/elements/export/utilities/getModes.js +0 -11
  405. package/lib/component/elements/export/utilities/getModes.js.map +0 -1
  406. package/lib/component/utility/renderCoreSlot.d.ts +0 -11
  407. package/lib/component/utility/renderCoreSlot.d.ts.map +0 -1
  408. package/lib/component/utility/renderCoreSlot.js +0 -13
  409. package/lib/component/utility/renderCoreSlot.js.map +0 -1
  410. package/src/component/1d/FloatingRanges.tsx +0 -378
  411. package/src/component/elements/export/utilities/exportOptionValidationSchema.ts +0 -106
  412. package/src/component/elements/export/utilities/getModes.ts +0 -14
  413. package/src/component/utility/renderCoreSlot.tsx +0 -21
  414. /package/lib/component/1d/{FloatingRanges.d.ts → ranges/FloatingRanges.d.ts} +0 -0
@@ -1,263 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import styled from '@emotion/styled';
3
- import { checkMultiplicity } from 'nmr-processing';
4
- import { memo, useEffect, useState } from 'react';
5
- import { BsArrowsMove } from 'react-icons/bs';
6
- import { FaTimes } from 'react-icons/fa';
7
- import { Rnd } from 'react-rnd';
8
- import { isSpectrum1D } from '../../data/data1d/Spectrum1D/index.js';
9
- import { isSignalRange } from '../../data/utilities/RangeUtilities.js';
10
- import { SVGTable } from '../SVGTable.js';
11
- import { useChartData } from '../context/ChartContext.js';
12
- import { useDispatch } from '../context/DispatchContext.js';
13
- import { useGlobal } from '../context/GlobalContext.js';
14
- import { ActionsButtonsPopover } from '../elements/ActionsButtonsPopover.js';
15
- import { useActiveNucleusTab } from '../hooks/useActiveNucleusTab.js';
16
- import { usePanelPreferences } from '../hooks/usePanelPreferences.js';
17
- import { useSVGUnitConverter } from '../hooks/useSVGUnitConverter.js';
18
- import useSpectraByActiveNucleus from '../hooks/useSpectraPerNucleus.js';
19
- import { useCheckExportStatus } from '../hooks/useViewportSize.js';
20
- import { extractChemicalElement } from '../utility/extractChemicalElement.js';
21
- import { formatNumber } from '../utility/formatNumber.js';
22
- const ReactRnd = styled(Rnd) `
23
- border: 1px solid transparent;
24
-
25
- :hover {
26
- background-color: white;
27
- border: 1px solid #ebecf1;
28
-
29
- button {
30
- visibility: visible;
31
- }
32
- }
33
- `;
34
- function useMapRanges(ranges) {
35
- const output = [];
36
- const activeTab = useActiveNucleusTab();
37
- const preferences = usePanelPreferences('ranges', activeTab);
38
- for (const range of ranges) {
39
- const { id, from, to, integration, signals = [] } = range;
40
- const relativeFlag = isSignalRange(range);
41
- const formattedValue = formatNumber(integration, preferences.relative.format);
42
- const integrationValue = relativeFlag
43
- ? formattedValue
44
- : `[ ${formattedValue} ]`;
45
- const rangeText = `${formatNumber(from, preferences.from.format)} - ${formatNumber(to, preferences.to.format)}`;
46
- if (signals.length > 0) {
47
- for (const signal of signals) {
48
- const { multiplicity, delta, js = [] } = signal;
49
- const coupling = js
50
- .map((jsItem) => !Number.isNaN(jsItem.coupling)
51
- ? formatNumber(jsItem.coupling, preferences.coupling.format)
52
- : '')
53
- .join(',');
54
- const signalDelta = !checkMultiplicity(multiplicity, ['m'])
55
- ? rangeText
56
- : formatNumber(delta, preferences.deltaPPM.format);
57
- output.push({
58
- id,
59
- delta: signalDelta,
60
- multiplicity,
61
- integration: integrationValue,
62
- coupling,
63
- });
64
- }
65
- }
66
- else {
67
- output.push({
68
- id,
69
- delta: rangeText,
70
- multiplicity: 'm',
71
- integration: integrationValue,
72
- coupling: '',
73
- });
74
- }
75
- }
76
- return output;
77
- }
78
- function InnerSVGRangesTable(props) {
79
- const { ranges } = props;
80
- const { view: { spectra: { activeTab }, }, } = useChartData();
81
- const data = useMapRanges(ranges);
82
- if (!data)
83
- return null;
84
- const element = extractChemicalElement(activeTab);
85
- const columns = [
86
- {
87
- accessorKey: 'delta',
88
- header: 'δ (ppm)',
89
- width: 100,
90
- rowSpanGroupKey: 'id',
91
- headerTextProps: { fontWeight: 'bold' },
92
- cellBoxProps: { stroke: '#dedede', fill: 'white', fillOpacity: 0.8 },
93
- headerBoxProps: { stroke: '#dedede', fill: '#E5E8EB' },
94
- },
95
- {
96
- accessorKey: 'integration',
97
- header: `Rel. ${element}`,
98
- width: 60,
99
- rowSpanGroupKey: 'id',
100
- headerTextProps: { fontWeight: 'bold' },
101
- cellBoxProps: { stroke: '#dedede', fill: 'white', fillOpacity: 0.8 },
102
- headerBoxProps: { stroke: '#dedede', fill: '#E5E8EB' },
103
- },
104
- {
105
- accessorKey: 'multiplicity',
106
- header: 'Mult.',
107
- width: 60,
108
- rowSpanGroupKey: 'id',
109
- headerTextProps: { fontWeight: 'bold' },
110
- cellBoxProps: { stroke: '#dedede', fill: 'white', fillOpacity: 0.8 },
111
- headerBoxProps: { stroke: '#dedede', fill: '#E5E8EB' },
112
- },
113
- {
114
- accessorKey: 'coupling',
115
- header: 'J (Hz)',
116
- width: 120,
117
- headerTextProps: { fontWeight: 'bold' },
118
- cellBoxProps: { stroke: '#dedede', fill: 'white', fillOpacity: 0.8 },
119
- headerBoxProps: { stroke: '#dedede', fill: '#E5E8EB' },
120
- },
121
- ];
122
- return _jsx(SVGTable, { data: data, columns: columns });
123
- }
124
- const SVGRangesTable = memo(InnerSVGRangesTable);
125
- function DraggableRanges(props) {
126
- const { ranges = [], bonding: externalBounding, spectrumKey } = props;
127
- const dispatch = useDispatch();
128
- const { viewerRef } = useGlobal();
129
- const [bounding, setBounding] = useState(externalBounding);
130
- const [isMoveActive, setIsMoveActive] = useState(false);
131
- const { percentToPixel, pixelToPercent } = useSVGUnitConverter();
132
- const isExportProcessStart = useCheckExportStatus();
133
- useEffect(() => {
134
- setBounding({ ...externalBounding });
135
- }, [externalBounding]);
136
- function handleResize(internalBounding) {
137
- const { width = 0, height = 0 } = convertToPixel(externalBounding);
138
- internalBounding.width += width;
139
- internalBounding.height += height;
140
- setBounding((prevBounding) => ({
141
- ...prevBounding,
142
- ...convertToPercent(internalBounding),
143
- }));
144
- }
145
- function handleDrag(internalBounding) {
146
- setBounding((prevBounding) => ({
147
- ...prevBounding,
148
- ...convertToPercent(internalBounding),
149
- }));
150
- }
151
- function handleChangeInsetBounding(bounding) {
152
- if (typeof bounding?.width === 'number' &&
153
- typeof bounding?.height === 'number') {
154
- const { width, height } = externalBounding;
155
- bounding.width += width;
156
- bounding.height += height;
157
- }
158
- dispatch({
159
- type: 'CHANGE_RANGES_VIEW_FLOATING_BOX_BOUNDING',
160
- payload: {
161
- spectrumKey,
162
- bounding: convertToPercent(bounding),
163
- target: 'rangesBounding',
164
- },
165
- });
166
- }
167
- function convertToPixel(bounding) {
168
- const { x, y, height, width } = bounding;
169
- const output = {};
170
- if (x) {
171
- output.x = percentToPixel(x, 'x');
172
- }
173
- if (y) {
174
- output.y = percentToPixel(y, 'y');
175
- }
176
- if (width) {
177
- output.width = width;
178
- }
179
- if (height) {
180
- output.height = height;
181
- }
182
- return output;
183
- }
184
- function convertToPercent(bounding) {
185
- const { x, y, height, width } = bounding;
186
- const output = {};
187
- if (x) {
188
- output.x = pixelToPercent(x, 'x');
189
- }
190
- if (y) {
191
- output.y = pixelToPercent(y, 'y');
192
- }
193
- if (width) {
194
- output.width = width;
195
- }
196
- if (height) {
197
- output.height = height;
198
- }
199
- return output;
200
- }
201
- function handleRemove() {
202
- dispatch({
203
- type: 'TOGGLE_RANGES_VIEW_PROPERTY',
204
- payload: { key: 'showRanges', spectrumKey },
205
- });
206
- }
207
- const actionButtons = [
208
- {
209
- icon: _jsx(BsArrowsMove, {}),
210
- intent: 'none',
211
- title: 'Move ranges table',
212
- style: { cursor: 'move' },
213
- className: 'handle',
214
- },
215
- {
216
- icon: _jsx(FaTimes, {}),
217
- intent: 'danger',
218
- title: 'Hide ranges table',
219
- onClick: handleRemove,
220
- },
221
- ];
222
- if (!viewerRef || ranges.length === 0)
223
- return null;
224
- const { x: xInPercent, y: yInPercent } = bounding;
225
- const x = percentToPixel(xInPercent, 'x');
226
- const y = percentToPixel(yInPercent, 'y');
227
- if (isExportProcessStart) {
228
- return (_jsx("g", { transform: `translate(${x} ${y})`, children: _jsx(SVGRangesTable, { ranges: ranges }) }));
229
- }
230
- return (_jsx(ReactRnd, { default: { x, y, width: 'auto', height: 'auto' }, position: { x, y }, enableResizing: false, minWidth: 100, minHeight: 50, dragHandleClassName: "handle", enableUserSelectHack: false, bounds: `#${viewerRef.id}`, onDragStart: () => setIsMoveActive(true), onResize: (e, dir, eRef, size, position) => handleResize({ ...size, ...position }), onResizeStop: (e, dir, eRef, size, position) => handleChangeInsetBounding({ ...size, ...position }), onDrag: (e, { x, y }) => {
231
- handleDrag({ x, y });
232
- }, onDragStop: (e, { x, y }) => {
233
- handleChangeInsetBounding({ x, y });
234
- setIsMoveActive(false);
235
- }, resizeHandleWrapperStyle: { backgroundColor: 'white' }, children: _jsx(ActionsButtonsPopover, { buttons: actionButtons, fill: true, positioningStrategy: "fixed", direction: "row", targetProps: { style: { width: '100%', height: '100%' } }, space: 2, ...(isMoveActive && { isOpen: true }), x: x, y: y, children: _jsx(SVGRangesTable, { ranges: ranges }) }) }));
236
- }
237
- function useSpectraRanges() {
238
- const spectra = useSpectraByActiveNucleus();
239
- const output = {};
240
- for (const spectrum of spectra) {
241
- if (!isSpectrum1D(spectrum)) {
242
- continue;
243
- }
244
- const { id: spectrumKey, ranges } = spectrum;
245
- if (!Array.isArray(ranges?.values) || ranges.values.length === 0) {
246
- continue;
247
- }
248
- output[spectrumKey] = ranges.values;
249
- }
250
- return output;
251
- }
252
- export function FloatingRanges() {
253
- const spectraRanges = useSpectraRanges();
254
- const { view: { ranges }, } = useChartData();
255
- const options = Object.entries(ranges);
256
- return options.map(([spectrumKey, viewOptions]) => {
257
- const { showRanges, rangesBounding } = viewOptions;
258
- if (!showRanges)
259
- return null;
260
- return (_jsx(DraggableRanges, { spectrumKey: spectrumKey, bonding: rangesBounding, ranges: spectraRanges[spectrumKey] }, spectrumKey));
261
- });
262
- }
263
- //# sourceMappingURL=FloatingRanges.js.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UAAU,EAAE,cAAc,EAAE,GAAG,WAAW,CAAC;QACnD,IAAI,CAAC,UAAU;YAAE,OAAO,IAAI,CAAC;QAE7B,OAAO,CACL,KAAC,eAAe,IAEd,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,cAAc,EACvB,MAAM,EAAE,aAAa,CAAC,WAAW,CAAC,IAH7B,WAAW,CAIhB,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1,17 +0,0 @@
1
- import type { Layout, PageSizeName } from '@zakodium/nmrium-core';
2
- import * as Yup from 'yup';
3
- export declare const exportOptionValidationSchema: Yup.Lazy<{
4
- width: number;
5
- height: number;
6
- mode: NonNullable<"basic" | "advance" | undefined>;
7
- dpi: number;
8
- unit: NonNullable<"in" | "ft" | "m" | "px" | "yd" | "cm" | "mm" | "pt" | "pc" | undefined>;
9
- useDefaultSettings: NonNullable<boolean | undefined>;
10
- } | {
11
- mode: NonNullable<"basic" | "advance" | undefined>;
12
- layout: NonNullable<Layout | undefined>;
13
- size: NonNullable<PageSizeName | undefined>;
14
- dpi: number;
15
- useDefaultSettings: NonNullable<boolean | undefined>;
16
- }, Yup.AnyObject, any>;
17
- //# sourceMappingURL=exportOptionValidationSchema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exportOptionValidationSchema.d.ts","sourceRoot":"","sources":["../../../../../src/component/elements/export/utilities/exportOptionValidationSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,YAAY,EAEb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AA6F3B,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;sBAMxC,CAAC"}
@@ -1,79 +0,0 @@
1
- import * as Yup from 'yup';
2
- import { pageSizes } from '../../print/pageSize.js';
3
- import { convertToPixels, units } from '../units.js';
4
- const MAX_PIXEL = 16000;
5
- const unitsKeys = units.map(({ unit }) => unit, []);
6
- const pageSizesKeys = pageSizes.map(({ name }) => name, []);
7
- function testSize(value, unit, dpi) {
8
- const valueInPixel = convertToPixels(value, unit, dpi, {
9
- precision: 2,
10
- });
11
- if (value) {
12
- return valueInPixel <= MAX_PIXEL;
13
- }
14
- return true;
15
- }
16
- // export const exportOptionValidationSchema = Yup.object().shape({
17
- // width: Yup.number()
18
- // .required()
19
- // .test(
20
- // 'width-test',
21
- // `Width should be less or equal to ${MAX_PIXEL}`,
22
- // // eslint-disable-next-line func-names
23
- // function (value) {
24
- // // eslint-disable-next-line no-invalid-this
25
- // const { unit, dpi } = this.parent;
26
- // return testSize(value, unit, dpi);
27
- // },
28
- // ),
29
- // height: Yup.number()
30
- // .required()
31
- // .test(
32
- // 'height-test',
33
- // `Height should be less or equal to ${MAX_PIXEL}`,
34
- // // eslint-disable-next-line func-names
35
- // function (value) {
36
- // // eslint-disable-next-line no-invalid-this
37
- // const { unit, dpi } = this.parent;
38
- // return testSize(value, unit, dpi);
39
- // },
40
- // ),
41
- // dpi: Yup.number().required(),
42
- // unit: Yup.mixed<Unit>().oneOf(unitsKeys, 'Unit is invalid').required(),
43
- // useDefaultSettings: Yup.boolean().required(),
44
- // });
45
- const advanceExportOptionValidationSchema = Yup.object().shape({
46
- mode: Yup.string().oneOf(['basic', 'advance']).required(),
47
- width: Yup.number()
48
- .required()
49
- .test('width-test', `Width should be less or equal to ${MAX_PIXEL}`, (value, context) => {
50
- const { unit, dpi } = context.parent;
51
- return testSize(value, unit, dpi);
52
- }),
53
- height: Yup.number()
54
- .required()
55
- .test('height-test', `Height should be less or equal to ${MAX_PIXEL}`, (value, context) => {
56
- const { unit, dpi } = context.parent;
57
- return testSize(value, unit, dpi);
58
- }),
59
- dpi: Yup.number().required(),
60
- unit: Yup.mixed().oneOf(unitsKeys).required(),
61
- useDefaultSettings: Yup.boolean().required(),
62
- });
63
- const basicExportOptionValidationSchema = Yup.object().shape({
64
- mode: Yup.string().oneOf(['basic', 'advance']).required(),
65
- size: Yup.mixed()
66
- .oneOf(pageSizesKeys, 'Size is invalid')
67
- .required(),
68
- layout: Yup.mixed()
69
- .oneOf(['portrait', 'landscape'], 'Layout is invalid')
70
- .required(),
71
- dpi: Yup.number().required(),
72
- useDefaultSettings: Yup.boolean().required(),
73
- });
74
- export const exportOptionValidationSchema = Yup.lazy((values) => {
75
- return values?.mode === 'advance'
76
- ? advanceExportOptionValidationSchema
77
- : basicExportOptionValidationSchema;
78
- });
79
- //# sourceMappingURL=exportOptionValidationSchema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exportOptionValidationSchema.js","sourceRoot":"","sources":["../../../../../src/component/elements/export/utilities/exportOptionValidationSchema.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,SAAS,GAAG,KAAK,CAAC;AAExB,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AACpD,MAAM,aAAa,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAE5D,SAAS,QAAQ,CAAC,KAAa,EAAE,IAAU,EAAE,GAAW;IACtD,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE;QACrD,SAAS,EAAE,CAAC;KACb,CAAC,CAAC;IACH,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,YAAY,IAAI,SAAS,CAAC;IACnC,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,mEAAmE;AACnE,wBAAwB;AACxB,kBAAkB;AAClB,aAAa;AACb,sBAAsB;AACtB,yDAAyD;AACzD,+CAA+C;AAC/C,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,CAAC,CAAC,QAAQ,EAAE;IACnD,kBAAkB,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC;AAEH,MAAM,iCAAiC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC;IAC3D,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzD,IAAI,EAAE,GAAG,CAAC,KAAK,EAAgB;SAC5B,KAAK,CAAC,aAAa,EAAE,iBAAiB,CAAC;SACvC,QAAQ,EAAE;IACb,MAAM,EAAE,GAAG,CAAC,KAAK,EAAU;SACxB,KAAK,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,EAAE,mBAAmB,CAAC;SACrD,QAAQ,EAAE;IACb,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,kBAAkB,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,CAAC,IAAI,CAClD,CAAC,MAAsB,EAAE,EAAE;IACzB,OAAO,MAAM,EAAE,IAAI,KAAK,SAAS;QAC/B,CAAC,CAAC,mCAAmC;QACrC,CAAC,CAAC,iCAAiC,CAAC;AACxC,CAAC,CACF,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { OptionProps } from '@blueprintjs/core';
2
- export declare const MODES: Array<OptionProps<string>>;
3
- export type Mode = (typeof MODES)[number]['value'];
4
- //# sourceMappingURL=getModes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getModes.d.ts","sourceRoot":"","sources":["../../../../../src/component/elements/export/utilities/getModes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAS5C,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC"}
@@ -1,11 +0,0 @@
1
- export const MODES = [
2
- {
3
- label: 'Basic',
4
- value: 'basic',
5
- },
6
- {
7
- label: 'Advanced',
8
- value: 'advance',
9
- },
10
- ];
11
- //# sourceMappingURL=getModes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getModes.js","sourceRoot":"","sources":["../../../../../src/component/elements/export/utilities/getModes.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAA+B;IAC/C;QACE,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,OAAO;KACf;IACD;QACE,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,SAAS;KACjB;CACF,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { NMRiumCore, SupportedUISlot } from '@zakodium/nmrium-core';
2
- import type { ReactNode } from 'react';
3
- /**
4
- * Render all components registered in the given slot.
5
- *
6
- * @param core
7
- * @param slot
8
- * @param fallback - return fallback if no component is registered in the slot
9
- */
10
- export declare function renderCoreSlot(core: NMRiumCore, slot: SupportedUISlot, fallback?: ReactNode): ReactNode;
11
- //# sourceMappingURL=renderCoreSlot.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderCoreSlot.d.ts","sourceRoot":"","sources":["../../../src/component/utility/renderCoreSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,eAAe,EACrB,QAAQ,CAAC,EAAE,SAAS,GACnB,SAAS,CAMX"}
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- /**
3
- * Render all components registered in the given slot.
4
- *
5
- * @param core
6
- * @param slot
7
- * @param fallback - return fallback if no component is registered in the slot
8
- */
9
- export function renderCoreSlot(core, slot, fallback) {
10
- const jsx = Array.from(core.slot(slot), ([key, Component]) => (_jsx(Component, { slot: slot }, key)));
11
- return jsx.length > 0 ? jsx : fallback;
12
- }
13
- //# sourceMappingURL=renderCoreSlot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderCoreSlot.js","sourceRoot":"","sources":["../../../src/component/utility/renderCoreSlot.tsx"],"names":[],"mappings":";AAGA;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAC5B,IAAgB,EAChB,IAAqB,EACrB,QAAoB;IAEpB,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,SAAS,CAAC,EAAE,EAAE,CAAC,CAC5D,KAAC,SAAS,IAAW,IAAI,EAAE,IAAI,IAAf,GAAG,CAAgB,CACpC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC;AACzC,CAAC"}