nmrium 1.11.0 → 1.12.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 (508) hide show
  1. package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
  2. package/lib/component/1d/FloatPublicationString.js +170 -109
  3. package/lib/component/1d/FloatPublicationString.js.map +1 -1
  4. package/lib/component/1d/FloatingRanges.d.ts.map +1 -1
  5. package/lib/component/1d/FloatingRanges.js +2 -2
  6. package/lib/component/1d/FloatingRanges.js.map +1 -1
  7. package/lib/component/1d/SVGContent1D.js +1 -1
  8. package/lib/component/1d/SVGContent1D.js.map +1 -1
  9. package/lib/component/1d/inset/DraggableInset.d.ts.map +1 -1
  10. package/lib/component/1d/inset/DraggableInset.js +3 -3
  11. package/lib/component/1d/inset/DraggableInset.js.map +1 -1
  12. package/lib/component/1d/matrix/Boxplot.js +1 -1
  13. package/lib/component/1d/matrix/Stocsy.js +1 -1
  14. package/lib/component/1d/multiplicityTree/MultiplicityTree.js +2 -2
  15. package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
  16. package/lib/component/1d/peaks/PeakAnnotations.js +2 -2
  17. package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
  18. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +1 -1
  19. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
  20. package/lib/component/1d/peaks/Peaks.js +2 -2
  21. package/lib/component/1d/peaks/Peaks.js.map +1 -1
  22. package/lib/component/1d/ranges/Range.d.ts +1 -1
  23. package/lib/component/1d/ranges/Range.js +3 -3
  24. package/lib/component/1d/ranges/Range.js.map +1 -1
  25. package/lib/component/1d/ranges/Ranges.js +2 -2
  26. package/lib/component/1d/ranges/Ranges.js.map +1 -1
  27. package/lib/component/1d/ranges/RangesIntegrals.js +1 -1
  28. package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.d.ts +1 -1
  29. package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.d.ts.map +1 -1
  30. package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.js +4 -4
  31. package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.js.map +1 -1
  32. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts.map +1 -1
  33. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +4 -4
  34. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
  35. package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
  36. package/lib/component/1d-2d/components/SpectrumInfoBlock.js +2 -2
  37. package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
  38. package/lib/component/2d/FooterBanner.d.ts +1 -1
  39. package/lib/component/2d/SVGContent2D.d.ts +1 -1
  40. package/lib/component/2d/YAxis.js +3 -3
  41. package/lib/component/2d/YAxis.js.map +1 -1
  42. package/lib/component/2d/ft/FTContainer.d.ts +1 -1
  43. package/lib/component/2d/tools/XYLabelPointer.d.ts +1 -1
  44. package/lib/component/2d/useTracesSpectra.js +1 -1
  45. package/lib/component/2d/zones/SignalsGuideLines.js +5 -5
  46. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
  47. package/lib/component/2d/zones/Zone.js +1 -1
  48. package/lib/component/2d/zones/Zone.js.map +1 -1
  49. package/lib/component/EventsTrackers/BrushTracker.d.ts +1 -1
  50. package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
  51. package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
  52. package/lib/component/EventsTrackers/KeysListenerTracker.js +6 -0
  53. package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
  54. package/lib/component/context/LoggerContext.d.ts +1 -0
  55. package/lib/component/context/LoggerContext.d.ts.map +1 -1
  56. package/lib/component/context/LoggerContext.js.map +1 -1
  57. package/lib/component/context/PreferencesContext.d.ts +1 -1
  58. package/lib/component/context/PreferencesContext.d.ts.map +1 -1
  59. package/lib/component/elements/ActionsButtonsPopover.d.ts +9 -5
  60. package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
  61. package/lib/component/elements/ActionsButtonsPopover.js +42 -10
  62. package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
  63. package/lib/component/elements/Alert.d.ts.map +1 -1
  64. package/lib/component/elements/Alert.js +3 -2
  65. package/lib/component/elements/Alert.js.map +1 -1
  66. package/lib/component/elements/DraggableDialog.d.ts +1 -1
  67. package/lib/component/elements/DraggableDialog.d.ts.map +1 -1
  68. package/lib/component/elements/StandardDialog.d.ts +3 -0
  69. package/lib/component/elements/StandardDialog.d.ts.map +1 -0
  70. package/lib/component/elements/StandardDialog.js +7 -0
  71. package/lib/component/elements/StandardDialog.js.map +1 -0
  72. package/lib/component/elements/ToolbarPopoverItem.d.ts +7 -2
  73. package/lib/component/elements/ToolbarPopoverItem.d.ts.map +1 -1
  74. package/lib/component/elements/ToolbarPopoverItem.js +6 -2
  75. package/lib/component/elements/ToolbarPopoverItem.js.map +1 -1
  76. package/lib/component/elements/export/ExportManager.js +1 -1
  77. package/lib/component/elements/export/ExportManager.js.map +1 -1
  78. package/lib/component/elements/export/ExportOptionsModal.js +3 -2
  79. package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
  80. package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
  81. package/lib/component/elements/print/PrintContent.js +3 -2
  82. package/lib/component/elements/print/PrintContent.js.map +1 -1
  83. package/lib/component/header/Header.js +1 -1
  84. package/lib/component/header/Header.js.map +1 -1
  85. package/lib/component/hooks/useActiveNucleusTab.js +1 -1
  86. package/lib/component/hooks/useActiveNucleusTab.js.map +1 -1
  87. package/lib/component/hooks/useActiveSpectrumRangesViewState.js +1 -1
  88. package/lib/component/hooks/useDatumWithSpectraStatistics.js +1 -1
  89. package/lib/component/hooks/useDatumWithSpectraStatistics.js.map +1 -1
  90. package/lib/component/hooks/useExport.js +1 -1
  91. package/lib/component/hooks/useSVGUnitConverter.d.ts.map +1 -1
  92. package/lib/component/hooks/useSVGUnitConverter.js +12 -9
  93. package/lib/component/hooks/useSVGUnitConverter.js.map +1 -1
  94. package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
  95. package/lib/component/hooks/useSaveSettings.js +3 -2
  96. package/lib/component/hooks/useSaveSettings.js.map +1 -1
  97. package/lib/component/hooks/useSetActiveSpectrumAction.js +1 -1
  98. package/lib/component/hooks/useSetActiveSpectrumAction.js.map +1 -1
  99. package/lib/component/hooks/useTextMetrics.d.ts +16 -1
  100. package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
  101. package/lib/component/hooks/useTextMetrics.js +43 -15
  102. package/lib/component/hooks/useTextMetrics.js.map +1 -1
  103. package/lib/component/hooks/useToggleSpectraVisibility.js +1 -1
  104. package/lib/component/hooks/use_acs_settings.d.ts +4 -0
  105. package/lib/component/hooks/use_acs_settings.d.ts.map +1 -0
  106. package/lib/component/hooks/use_acs_settings.js +21 -0
  107. package/lib/component/hooks/use_acs_settings.js.map +1 -0
  108. package/lib/component/hooks/use_publication_strings.d.ts +9 -0
  109. package/lib/component/hooks/use_publication_strings.d.ts.map +1 -0
  110. package/lib/component/hooks/use_publication_strings.js +42 -0
  111. package/lib/component/hooks/use_publication_strings.js.map +1 -0
  112. package/lib/component/main/NMRiumViewer.js +1 -1
  113. package/lib/component/main/NMRiumViewer.js.map +1 -1
  114. package/lib/component/main/NMRiumViewerWrapper.d.ts.map +1 -1
  115. package/lib/component/main/NMRiumViewerWrapper.js +3 -5
  116. package/lib/component/main/NMRiumViewerWrapper.js.map +1 -1
  117. package/lib/component/modal/AboutPredictionModal.js +2 -2
  118. package/lib/component/modal/AboutPredictionModal.js.map +1 -1
  119. package/lib/component/modal/AboutSpectrumSimulationModal.js +2 -2
  120. package/lib/component/modal/AboutSpectrumSimulationModal.js.map +1 -1
  121. package/lib/component/modal/EditPeakShapeModal.d.ts.map +1 -1
  122. package/lib/component/modal/EditPeakShapeModal.js +4 -3
  123. package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
  124. package/lib/component/modal/ExportAsJcampModal.d.ts.map +1 -1
  125. package/lib/component/modal/ExportAsJcampModal.js +3 -2
  126. package/lib/component/modal/ExportAsJcampModal.js.map +1 -1
  127. package/lib/component/modal/ImportPublicationStringModal.d.ts.map +1 -1
  128. package/lib/component/modal/ImportPublicationStringModal.js +3 -2
  129. package/lib/component/modal/ImportPublicationStringModal.js.map +1 -1
  130. package/lib/component/modal/LoadJCAMPModal.d.ts.map +1 -1
  131. package/lib/component/modal/LoadJCAMPModal.js +3 -2
  132. package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
  133. package/lib/component/modal/LogsHistoryModal.d.ts.map +1 -1
  134. package/lib/component/modal/LogsHistoryModal.js +3 -2
  135. package/lib/component/modal/LogsHistoryModal.js.map +1 -1
  136. package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.d.ts.map +1 -1
  137. package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js +4 -3
  138. package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js.map +1 -1
  139. package/lib/component/modal/MoleculeStructureEditorModal.d.ts.map +1 -1
  140. package/lib/component/modal/MoleculeStructureEditorModal.js +4 -3
  141. package/lib/component/modal/MoleculeStructureEditorModal.js.map +1 -1
  142. package/lib/component/modal/MultipletAnalysisModal.d.ts.map +1 -1
  143. package/lib/component/modal/MultipletAnalysisModal.js +2 -2
  144. package/lib/component/modal/MultipletAnalysisModal.js.map +1 -1
  145. package/lib/component/modal/PredictSpectraModal.d.ts.map +1 -1
  146. package/lib/component/modal/PredictSpectraModal.js +3 -2
  147. package/lib/component/modal/PredictSpectraModal.js.map +1 -1
  148. package/lib/component/modal/PublicationStringModal.d.ts +10 -1
  149. package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
  150. package/lib/component/modal/PublicationStringModal.js +89 -77
  151. package/lib/component/modal/PublicationStringModal.js.map +1 -1
  152. package/lib/component/modal/SaveAsModal.d.ts.map +1 -1
  153. package/lib/component/modal/SaveAsModal.js +3 -2
  154. package/lib/component/modal/SaveAsModal.js.map +1 -1
  155. package/lib/component/modal/aboutUs/AboutUsModal.js +2 -2
  156. package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
  157. package/lib/component/modal/changeSum/ChangeSumModal.d.ts.map +1 -1
  158. package/lib/component/modal/changeSum/ChangeSumModal.js +2 -2
  159. package/lib/component/modal/changeSum/ChangeSumModal.js.map +1 -1
  160. package/lib/component/modal/editRange/EditRangeModal.js +1 -1
  161. package/lib/component/modal/editRange/forms/components/NewSignalTab.js +1 -1
  162. package/lib/component/modal/metaImportation/MetaImportationModal.d.ts.map +1 -1
  163. package/lib/component/modal/metaImportation/MetaImportationModal.js +3 -2
  164. package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
  165. package/lib/component/modal/setting/{GeneralSettings.d.ts → general_settings.d.ts} +1 -1
  166. package/lib/component/modal/setting/general_settings.d.ts.map +1 -0
  167. package/lib/component/modal/setting/{GeneralSettings.js → general_settings.js} +11 -5
  168. package/lib/component/modal/setting/general_settings.js.map +1 -0
  169. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +1 -1
  170. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js.map +1 -1
  171. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +1 -1
  172. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +1 -1
  173. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js +1 -1
  174. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js.map +1 -1
  175. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +1 -1
  176. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js.map +1 -1
  177. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +1 -1
  178. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +1 -1
  179. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js +1 -1
  180. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js.map +1 -1
  181. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +1 -1
  182. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +1 -1
  183. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js +1 -1
  184. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js.map +1 -1
  185. package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts +8 -0
  186. package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts.map +1 -0
  187. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js +65 -0
  188. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js.map +1 -0
  189. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +624 -0
  190. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -0
  191. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js +42 -0
  192. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map +1 -0
  193. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +624 -0
  194. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -0
  195. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js +22 -0
  196. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js.map +1 -0
  197. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +7 -0
  198. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -0
  199. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js +50 -0
  200. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map +1 -0
  201. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts +7 -0
  202. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.d.ts.map +1 -0
  203. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js +105 -0
  204. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js.map +1 -0
  205. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +622 -0
  206. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -0
  207. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +55 -0
  208. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -0
  209. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +123 -0
  210. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -0
  211. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.js +11 -0
  212. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.js.map +1 -0
  213. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +622 -0
  214. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -0
  215. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js +34 -0
  216. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js.map +1 -0
  217. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +622 -0
  218. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -0
  219. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.js +26 -0
  220. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.js.map +1 -0
  221. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +622 -0
  222. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -0
  223. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js +123 -0
  224. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js.map +1 -0
  225. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +622 -0
  226. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -0
  227. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js +40 -0
  228. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.js.map +1 -0
  229. package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.d.ts +10 -0
  230. package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.d.ts.map +1 -0
  231. package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.js +40 -0
  232. package/lib/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.js.map +1 -0
  233. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +166 -0
  234. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -0
  235. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +58 -0
  236. package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -0
  237. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +40 -0
  238. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts.map +1 -0
  239. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js +37 -0
  240. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js.map +1 -0
  241. package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts +37 -0
  242. package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts.map +1 -0
  243. package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.js +26 -0
  244. package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.js.map +1 -0
  245. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts +9 -0
  246. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts.map +1 -0
  247. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js +18 -0
  248. package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js.map +1 -0
  249. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts +167 -0
  250. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts.map +1 -0
  251. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js +69 -0
  252. package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js.map +1 -0
  253. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +342 -0
  254. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -0
  255. package/lib/component/modal/setting/tanstack_general_settings/validation.js +51 -0
  256. package/lib/component/modal/setting/tanstack_general_settings/validation.js.map +1 -0
  257. package/lib/component/panels/MoleculesPanel/MoleculeOptionsPanel.js +2 -2
  258. package/lib/component/panels/MoleculesPanel/MoleculeOptionsPanel.js.map +1 -1
  259. package/lib/component/panels/MoleculesPanel/MoleculePanel.js +2 -2
  260. package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
  261. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
  262. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +7 -7
  263. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
  264. package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts +1 -1
  265. package/lib/component/panels/MoleculesPanel/MoleculeStructure.js +4 -4
  266. package/lib/component/panels/MoleculesPanel/MoleculeStructure.js.map +1 -1
  267. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +17 -17
  268. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
  269. package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js +1 -1
  270. package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js.map +1 -1
  271. package/lib/component/panels/MoleculesPanel/utilities/extractFromAtom.d.ts +1 -1
  272. package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js +1 -1
  273. package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.d.ts +1 -1
  274. package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts +1 -1
  275. package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts.map +1 -1
  276. package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js +1 -1
  277. package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js.map +1 -1
  278. package/lib/component/panels/MoleculesPanel/utilities/getUniqueDiaIDs.d.ts +1 -1
  279. package/lib/component/panels/Panels.d.ts.map +1 -1
  280. package/lib/component/panels/Panels.js +12 -25
  281. package/lib/component/panels/Panels.js.map +1 -1
  282. package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
  283. package/lib/component/panels/RangesPanel/RangesHeader.js +23 -15
  284. package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
  285. package/lib/component/panels/RangesPanel/RangesTableRow.js +1 -1
  286. package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
  287. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts +1 -1
  288. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -1
  289. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js +2 -2
  290. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -1
  291. package/lib/component/panels/SpectraPanel/SpectraTable.js +1 -1
  292. package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.d.ts.map +1 -1
  293. package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +3 -2
  294. package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js.map +1 -1
  295. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.d.ts.map +1 -1
  296. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +3 -2
  297. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
  298. package/lib/component/panels/databasePanel/DatabaseInfo.js +1 -1
  299. package/lib/component/panels/databasePanel/DatabasePanel.js +1 -1
  300. package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js +2 -2
  301. package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js.map +1 -1
  302. package/lib/component/panels/databasePanel/DatabaseTable.js +1 -1
  303. package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
  304. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
  305. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
  306. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +1 -1
  307. package/lib/component/panels/header/DefaultPanelHeader.d.ts.map +1 -1
  308. package/lib/component/panels/header/DefaultPanelHeader.js +2 -1
  309. package/lib/component/panels/header/DefaultPanelHeader.js.map +1 -1
  310. package/lib/component/panels/hooks/useMoleculeAnnotationCore.js +1 -1
  311. package/lib/component/panels/hooks/useMoleculeAnnotationCore.js.map +1 -1
  312. package/lib/component/panels/informationPanel/InformationEditionModal.d.ts.map +1 -1
  313. package/lib/component/panels/informationPanel/InformationEditionModal.js +3 -2
  314. package/lib/component/panels/informationPanel/InformationEditionModal.js.map +1 -1
  315. package/lib/component/panels/informationPanel/InformationPanel.d.ts.map +1 -1
  316. package/lib/component/panels/informationPanel/InformationPanel.js +38 -3
  317. package/lib/component/panels/informationPanel/InformationPanel.js.map +1 -1
  318. package/lib/component/reducer/actions/AssignmentsActions.js +3 -3
  319. package/lib/component/reducer/actions/CorrelationsActions.js +2 -2
  320. package/lib/component/reducer/actions/DatabaseActions.js +1 -1
  321. package/lib/component/reducer/actions/DomainActions.js +1 -1
  322. package/lib/component/reducer/actions/InsetActions.js +2 -2
  323. package/lib/component/reducer/actions/LoadAction.js +4 -4
  324. package/lib/component/reducer/actions/LoadAction.js.map +1 -1
  325. package/lib/component/reducer/actions/MoleculeActions.js +3 -3
  326. package/lib/component/reducer/actions/PreferencesActions.js +1 -1
  327. package/lib/component/reducer/actions/RangesActions.d.ts +1 -1
  328. package/lib/component/reducer/actions/RangesActions.js +1 -1
  329. package/lib/component/reducer/actions/SpectraActions.js +1 -1
  330. package/lib/component/reducer/actions/ToolsActions.js +2 -2
  331. package/lib/component/reducer/actions/ZonesActions.d.ts +1 -1
  332. package/lib/component/reducer/actions/ZonesActions.js +2 -2
  333. package/lib/component/reducer/helper/get2DRange.d.ts +1 -1
  334. package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.d.ts +1 -1
  335. package/lib/component/reducer/preferences/actions/toggleOpenSplitPanel.js +1 -1
  336. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -1
  337. package/lib/component/reducer/preferences/preferencesReducer.js +3 -3
  338. package/lib/component/toolbar/ToolBar.d.ts.map +1 -1
  339. package/lib/component/toolbar/ToolBar.js +5 -1
  340. package/lib/component/toolbar/ToolBar.js.map +1 -1
  341. package/lib/component/utility/export.js +1 -1
  342. package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
  343. package/lib/component/workspaces/workspaceDefaultProperties.js +3 -0
  344. package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
  345. package/lib/data/PredictionManager.js +1 -1
  346. package/lib/data/SpectraManager.d.ts +1 -1
  347. package/lib/data/SpectraManager.d.ts.map +1 -1
  348. package/lib/data/SpectraManager.js +1 -1
  349. package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +1 -1
  350. package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js +1 -1
  351. package/lib/data/utilities/FindUtilities.js +2 -2
  352. package/lib/utils/clipboard/clipboardComponents.js +2 -2
  353. package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
  354. package/lib/versionInfo.js +1 -1
  355. package/package.json +29 -29
  356. package/src/component/1d/FloatPublicationString.tsx +275 -176
  357. package/src/component/1d/FloatingRanges.tsx +1 -2
  358. package/src/component/1d/SVGContent1D.tsx +1 -1
  359. package/src/component/1d/inset/DraggableInset.tsx +2 -3
  360. package/src/component/1d/integral/IntegralResizable.tsx +1 -1
  361. package/src/component/1d/matrix/Boxplot.tsx +1 -1
  362. package/src/component/1d/matrix/Stocsy.tsx +1 -1
  363. package/src/component/1d/multiAnalysis/AnalysisRange.tsx +1 -1
  364. package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +2 -2
  365. package/src/component/1d/peaks/PeakAnnotations.tsx +2 -2
  366. package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +2 -2
  367. package/src/component/1d/peaks/Peaks.tsx +2 -2
  368. package/src/component/1d/ranges/Range.tsx +5 -5
  369. package/src/component/1d/ranges/Ranges.tsx +2 -2
  370. package/src/component/1d/ranges/RangesIntegrals.tsx +1 -1
  371. package/src/component/1d/ranges/useAssignmentsPopoverActionsButtons.tsx +5 -5
  372. package/src/component/1d/tool/BaseLineZones.tsx +1 -1
  373. package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +3 -4
  374. package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +1 -2
  375. package/src/component/2d/FooterBanner.tsx +1 -1
  376. package/src/component/2d/SVGContent2D.tsx +1 -1
  377. package/src/component/2d/YAxis.tsx +3 -3
  378. package/src/component/2d/ft/FTContainer.tsx +1 -1
  379. package/src/component/2d/tools/XYLabelPointer.tsx +1 -1
  380. package/src/component/2d/useTracesSpectra.ts +1 -1
  381. package/src/component/2d/zones/SignalsGuideLines.tsx +5 -5
  382. package/src/component/2d/zones/Zone.tsx +1 -1
  383. package/src/component/EventsTrackers/BrushTracker.tsx +1 -1
  384. package/src/component/EventsTrackers/KeysListenerTracker.tsx +6 -0
  385. package/src/component/context/LoggerContext.tsx +9 -0
  386. package/src/component/context/PreferencesContext.tsx +1 -1
  387. package/src/component/elements/ActionsButtonsPopover.tsx +80 -24
  388. package/src/component/elements/Alert.tsx +4 -2
  389. package/src/component/elements/DraggableDialog.tsx +2 -2
  390. package/src/component/elements/StandardDialog.tsx +11 -0
  391. package/src/component/elements/ToolbarPopoverItem.tsx +16 -3
  392. package/src/component/elements/export/ExportManager.tsx +1 -1
  393. package/src/component/elements/export/ExportOptionsModal.tsx +3 -3
  394. package/src/component/elements/print/PrintContent.tsx +4 -9
  395. package/src/component/header/Header.tsx +1 -1
  396. package/src/component/hooks/useActiveNucleusTab.ts +1 -1
  397. package/src/component/hooks/useActiveSpectrumRangesViewState.ts +1 -1
  398. package/src/component/hooks/useDatumWithSpectraStatistics.ts +1 -1
  399. package/src/component/hooks/useExport.tsx +1 -1
  400. package/src/component/hooks/useSVGUnitConverter.ts +13 -9
  401. package/src/component/hooks/useSaveSettings.tsx +4 -3
  402. package/src/component/hooks/useSetActiveSpectrumAction.ts +1 -1
  403. package/src/component/hooks/useTextMetrics.ts +66 -18
  404. package/src/component/hooks/useToggleSpectraVisibility.tsx +1 -1
  405. package/src/component/hooks/use_acs_settings.ts +27 -0
  406. package/src/component/hooks/use_publication_strings.ts +67 -0
  407. package/src/component/main/NMRiumViewer.tsx +1 -1
  408. package/src/component/main/NMRiumViewerWrapper.tsx +3 -5
  409. package/src/component/modal/AboutPredictionModal.tsx +3 -3
  410. package/src/component/modal/AboutSpectrumSimulationModal.tsx +3 -3
  411. package/src/component/modal/EditPeakShapeModal.tsx +5 -4
  412. package/src/component/modal/ExportAsJcampModal.tsx +4 -3
  413. package/src/component/modal/ImportPublicationStringModal.tsx +4 -3
  414. package/src/component/modal/LoadJCAMPModal.tsx +4 -3
  415. package/src/component/modal/LogsHistoryModal.tsx +4 -3
  416. package/src/component/modal/MoleculeAutoLabelsDatabaseModal.tsx +5 -4
  417. package/src/component/modal/MoleculeStructureEditorModal.tsx +9 -4
  418. package/src/component/modal/MultipletAnalysisModal.tsx +3 -3
  419. package/src/component/modal/PredictSpectraModal.tsx +4 -3
  420. package/src/component/modal/PublicationStringModal.tsx +234 -134
  421. package/src/component/modal/SaveAsModal.tsx +4 -9
  422. package/src/component/modal/aboutUs/AboutUsModal.tsx +3 -3
  423. package/src/component/modal/changeSum/ChangeSumModal.tsx +4 -3
  424. package/src/component/modal/editRange/EditRangeModal.tsx +1 -1
  425. package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +1 -1
  426. package/src/component/modal/metaImportation/MetaImportationModal.tsx +4 -3
  427. package/src/component/modal/setting/{GeneralSettings.tsx → general_settings.tsx} +34 -4
  428. package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +1 -1
  429. package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +1 -1
  430. package/src/component/modal/setting/settings-tabs/ExternalAPIsTabContent.tsx +1 -1
  431. package/src/component/modal/setting/settings-tabs/GeneralTabContent.tsx +1 -1
  432. package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +1 -1
  433. package/src/component/modal/setting/settings-tabs/NucleiTabContent.tsx +1 -1
  434. package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +1 -1
  435. package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +1 -1
  436. package/src/component/modal/setting/tanstack_general_settings/general_settings.tsx +106 -0
  437. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +69 -0
  438. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.tsx +39 -0
  439. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx +98 -0
  440. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.tsx +218 -0
  441. package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +231 -0
  442. package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.tsx +24 -0
  443. package/src/component/modal/setting/tanstack_general_settings/tabs/general_tab.tsx +94 -0
  444. package/src/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.tsx +72 -0
  445. package/src/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.tsx +261 -0
  446. package/src/component/modal/setting/tanstack_general_settings/tabs/panels_tab.tsx +150 -0
  447. package/src/component/modal/setting/tanstack_general_settings/utils/checkUniqueByKey.ts +55 -0
  448. package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +63 -0
  449. package/src/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.ts +42 -0
  450. package/src/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.ts +26 -0
  451. package/src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts +21 -0
  452. package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts +80 -0
  453. package/src/component/modal/setting/tanstack_general_settings/validation.ts +66 -0
  454. package/src/component/panels/MoleculesPanel/MoleculeOptionsPanel.tsx +2 -2
  455. package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +2 -2
  456. package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +14 -8
  457. package/src/component/panels/MoleculesPanel/MoleculeStructure.tsx +5 -5
  458. package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +21 -21
  459. package/src/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.ts +1 -1
  460. package/src/component/panels/MoleculesPanel/utilities/extractFromAtom.ts +1 -1
  461. package/src/component/panels/MoleculesPanel/utilities/getAssignIds.ts +1 -1
  462. package/src/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.ts +1 -1
  463. package/src/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.ts +2 -2
  464. package/src/component/panels/MoleculesPanel/utilities/getUniqueDiaIDs.ts +1 -1
  465. package/src/component/panels/Panels.tsx +4 -40
  466. package/src/component/panels/RangesPanel/RangesHeader.tsx +34 -29
  467. package/src/component/panels/RangesPanel/RangesTableRow.tsx +1 -1
  468. package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +3 -3
  469. package/src/component/panels/SpectraPanel/SpectraTable.tsx +1 -1
  470. package/src/component/panels/SummaryPanel/SetMolecularFormulaModal.tsx +4 -3
  471. package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +4 -3
  472. package/src/component/panels/databasePanel/DatabaseInfo.tsx +1 -1
  473. package/src/component/panels/databasePanel/DatabasePanel.tsx +1 -1
  474. package/src/component/panels/databasePanel/DatabaseStructureSearchModal.tsx +3 -3
  475. package/src/component/panels/databasePanel/DatabaseTable.tsx +1 -1
  476. package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +1 -1
  477. package/src/component/panels/header/DefaultPanelHeader.tsx +2 -1
  478. package/src/component/panels/hooks/useMoleculeAnnotationCore.ts +1 -1
  479. package/src/component/panels/informationPanel/InformationEditionModal.tsx +4 -3
  480. package/src/component/panels/informationPanel/InformationPanel.tsx +83 -2
  481. package/src/component/reducer/actions/AssignmentsActions.ts +3 -3
  482. package/src/component/reducer/actions/CorrelationsActions.ts +2 -2
  483. package/src/component/reducer/actions/DatabaseActions.ts +1 -1
  484. package/src/component/reducer/actions/DomainActions.ts +1 -1
  485. package/src/component/reducer/actions/InsetActions.ts +2 -2
  486. package/src/component/reducer/actions/LoadAction.ts +4 -4
  487. package/src/component/reducer/actions/MoleculeActions.ts +3 -3
  488. package/src/component/reducer/actions/PreferencesActions.ts +1 -1
  489. package/src/component/reducer/actions/RangesActions.ts +3 -3
  490. package/src/component/reducer/actions/SpectraActions.ts +1 -1
  491. package/src/component/reducer/actions/ToolsActions.ts +2 -2
  492. package/src/component/reducer/actions/ZonesActions.ts +3 -3
  493. package/src/component/reducer/helper/get2DRange.ts +1 -1
  494. package/src/component/reducer/preferences/actions/toggleOpenSplitPanel.ts +2 -2
  495. package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +1 -1
  496. package/src/component/reducer/preferences/preferencesReducer.ts +3 -3
  497. package/src/component/toolbar/ToolBar.tsx +6 -1
  498. package/src/component/utility/export.ts +1 -1
  499. package/src/component/workspaces/workspaceDefaultProperties.ts +5 -1
  500. package/src/data/PredictionManager.ts +1 -1
  501. package/src/data/SpectraManager.ts +2 -2
  502. package/src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts +1 -1
  503. package/src/data/data1d/Spectrum1D/ranges/detectRanges.ts +1 -1
  504. package/src/data/utilities/FindUtilities.ts +2 -2
  505. package/src/utils/clipboard/clipboardComponents.tsx +3 -3
  506. package/src/versionInfo.ts +1 -1
  507. package/lib/component/modal/setting/GeneralSettings.d.ts.map +0 -1
  508. package/lib/component/modal/setting/GeneralSettings.js.map +0 -1
@@ -0,0 +1,55 @@
1
+ export declare const ExportFields: <TFormData, TFields extends import("@tanstack/react-form").DeepKeysOfType<TFormData, {
2
+ size: "Letter" | "Legal" | "Tabloid" | "Executive" | "Statement" | "Folio" | "A3" | "A4" | "A5" | "B4" | "B5";
3
+ layout: "portrait" | "landscape";
4
+ useDefaultSettings: boolean;
5
+ dpi: string;
6
+ mode: "basic";
7
+ } | {
8
+ width: string;
9
+ height: string;
10
+ unit: "in" | "ft" | "m" | "px" | "yd" | "cm" | "mm" | "pt" | "pc";
11
+ useDefaultSettings: boolean;
12
+ dpi: string;
13
+ mode: "advance";
14
+ } | null | undefined> | {
15
+ size: import("@tanstack/react-form").DeepKeysOfType<TFormData, "Letter" | "Legal" | "Tabloid" | "Executive" | "Statement" | "Folio" | "A3" | "A4" | "A5" | "B4" | "B5">;
16
+ layout: import("@tanstack/react-form").DeepKeysOfType<TFormData, "portrait" | "landscape">;
17
+ useDefaultSettings: import("@tanstack/react-form").DeepKeysOfType<TFormData, boolean>;
18
+ dpi: import("@tanstack/react-form").DeepKeysOfType<TFormData, string>;
19
+ mode: import("@tanstack/react-form").DeepKeysOfType<TFormData, "basic">;
20
+ } | {
21
+ width: import("@tanstack/react-form").DeepKeysOfType<TFormData, string>;
22
+ height: import("@tanstack/react-form").DeepKeysOfType<TFormData, string>;
23
+ unit: import("@tanstack/react-form").DeepKeysOfType<TFormData, "in" | "ft" | "m" | "px" | "yd" | "cm" | "mm" | "pt" | "pc">;
24
+ useDefaultSettings: import("@tanstack/react-form").DeepKeysOfType<TFormData, boolean>;
25
+ dpi: import("@tanstack/react-form").DeepKeysOfType<TFormData, string>;
26
+ mode: import("@tanstack/react-form").DeepKeysOfType<TFormData, "advance">;
27
+ }, TOnMount extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChange extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TFormSubmitMeta>(params: import("react").PropsWithChildren<{
28
+ form: import("@tanstack/react-form").AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TFormSubmitMeta, {
29
+ readonly Input: typeof import("react-science/ui")._Input;
30
+ readonly NumericInput: typeof import("react-science/ui")._NumericInput;
31
+ readonly Checkbox: typeof import("react-science/ui")._Checkbox;
32
+ readonly Select: typeof import("react-science/ui")._Select;
33
+ readonly Switch: typeof import("react-science/ui")._Switch;
34
+ readonly ColorPicker: typeof import("react-science/ui")._ColorPicker;
35
+ readonly RadioGroup: typeof import("react-science/ui")._RadioGroup;
36
+ }, {
37
+ readonly SubmitButton: typeof import("react-science/ui")._SubmitButton;
38
+ readonly ResetButton: typeof import("react-science/ui")._ResetButton;
39
+ readonly Section: typeof import("react-science/ui")._Section;
40
+ }> | import("@tanstack/react-form").AppFieldExtendedReactFieldGroupApi<unknown, TFormData, string | import("@tanstack/react-form").FieldsMap<unknown, TFormData>, any, any, any, any, any, any, any, any, any, any, TFormSubmitMeta, {
41
+ readonly Input: typeof import("react-science/ui")._Input;
42
+ readonly NumericInput: typeof import("react-science/ui")._NumericInput;
43
+ readonly Checkbox: typeof import("react-science/ui")._Checkbox;
44
+ readonly Select: typeof import("react-science/ui")._Select;
45
+ readonly Switch: typeof import("react-science/ui")._Switch;
46
+ readonly ColorPicker: typeof import("react-science/ui")._ColorPicker;
47
+ readonly RadioGroup: typeof import("react-science/ui")._RadioGroup;
48
+ }, {
49
+ readonly SubmitButton: typeof import("react-science/ui")._SubmitButton;
50
+ readonly ResetButton: typeof import("react-science/ui")._ResetButton;
51
+ readonly Section: typeof import("react-science/ui")._Section;
52
+ }>;
53
+ fields: TFields;
54
+ }>) => ReturnType<import("react").FunctionComponent>;
55
+ //# sourceMappingURL=export_tab.fields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export_tab.fields.d.ts","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx"],"names":[],"mappings":"AAiDA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAqKvB,CAAC"}
@@ -0,0 +1,123 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Checkbox, Tag } from '@blueprintjs/core';
3
+ import { useStore } from '@tanstack/react-form';
4
+ import { units } from '@zakodium/nmrium-core';
5
+ import { memo, useMemo } from 'react';
6
+ import { FormGroup, assertUnreachable, withFieldGroup } from 'react-science/ui';
7
+ import { convertToPixels } from '../../../../elements/export/units.js';
8
+ import { useExportConfigurer } from '../../../../elements/export/useExportConfigurer.js';
9
+ import { getExportDefaultOptionsByMode, getExportOptions, } from '../../../../elements/export/utilities/getExportOptions.js';
10
+ import { pageSizes } from '../../../../elements/print/pageSize.js';
11
+ import { exportSettingsValidation } from '../validation/export_tab_validation.js';
12
+ import { defaultGeneralSettingsFormValues } from '../validation.js';
13
+ const pageSizeItems = {
14
+ portrait: pageSizes.map((item) => ({
15
+ value: item.name,
16
+ label: `${item.name} (${item.portrait.width} cm x ${item.portrait.height} cm)`,
17
+ })),
18
+ landscape: pageSizes.map((item) => ({
19
+ value: item.name,
20
+ label: `${item.name} (${item.landscape.width} cm x ${item.landscape.height} cm)`,
21
+ })),
22
+ };
23
+ const modeItems = [
24
+ { label: 'Basic', value: 'basic' },
25
+ { label: 'Advanced', value: 'advance' },
26
+ ];
27
+ const unitItems = units.map((u) => ({
28
+ label: u.name,
29
+ value: u.unit,
30
+ }));
31
+ const layoutItems = [
32
+ { value: 'portrait', label: 'Portrait' },
33
+ { value: 'landscape', label: 'Landscape' },
34
+ ];
35
+ export const ExportFields = withFieldGroup({
36
+ defaultValues: defaultGeneralSettingsFormValues.export.png,
37
+ render: function ExportFields({ group }) {
38
+ const inputValues = useStore(group.store, (s) => s.values);
39
+ const outputValues = useMemo(() => {
40
+ return exportSettingsValidation.decode(inputValues);
41
+ }, [inputValues]);
42
+ const advancedTransforms = useExportConfigurer(outputValues);
43
+ function onModeChange({ value }) {
44
+ const newOptions = getExportDefaultOptionsByMode(value);
45
+ for (const [key, value] of Object.entries(newOptions)) {
46
+ group.setFieldValue(key, value, {
47
+ dontRunListeners: true,
48
+ });
49
+ }
50
+ }
51
+ function onChangeUnit({ value }) {
52
+ const { width, height } = advancedTransforms.changeUnit({ unit: value });
53
+ group.setFieldValue('width', String(width), {
54
+ dontRunListeners: true,
55
+ });
56
+ group.setFieldValue('height', String(height), {
57
+ dontRunListeners: true,
58
+ });
59
+ }
60
+ function onWidthChange({ value }) {
61
+ const height = advancedTransforms.changeSize(Number(value), 'height', 'width');
62
+ if (!advancedTransforms.isAspectRatioEnabled) {
63
+ return;
64
+ }
65
+ group.setFieldValue('height', String(height), {
66
+ dontRunListeners: true,
67
+ });
68
+ }
69
+ function onHeightChange({ value }) {
70
+ const width = advancedTransforms.changeSize(Number(value), 'width', 'height');
71
+ if (!advancedTransforms.isAspectRatioEnabled) {
72
+ return;
73
+ }
74
+ group.setFieldValue('width', String(width), {
75
+ dontRunListeners: true,
76
+ });
77
+ }
78
+ function onDPIChange({ value }) {
79
+ if (group.state.values.mode !== 'advance')
80
+ return;
81
+ if (group.state.values.unit !== 'px')
82
+ return;
83
+ const { width, height } = advancedTransforms.changeDPI(Number(value));
84
+ group.setFieldValue('width', String(width), {
85
+ dontRunListeners: true,
86
+ });
87
+ group.setFieldValue('height', String(height), {
88
+ dontRunListeners: true,
89
+ });
90
+ }
91
+ const { AppField, Subscribe } = group;
92
+ return (_jsxs(_Fragment, { children: [_jsx(AppField, { name: "mode", listeners: { onChange: onModeChange }, children: ({ RadioGroup }) => _jsx(RadioGroup, { label: "Mode", options: modeItems }) }), _jsx(DescriptionPreview, { ...outputValues }), _jsx(Subscribe, { selector: (state) => {
93
+ const mode = state.values.mode;
94
+ switch (state.values.mode) {
95
+ case 'basic':
96
+ return { mode: state.values.mode, layout: state.values.layout };
97
+ case 'advance':
98
+ return { mode: state.values.mode, unit: state.values.unit };
99
+ default:
100
+ assertUnreachable(mode);
101
+ }
102
+ }, children: ({ mode, layout, unit }) => {
103
+ switch (mode) {
104
+ case 'basic':
105
+ return (_jsxs(_Fragment, { children: [_jsx(AppField, { name: "size", children: ({ Select }) => (_jsx(Select, { label: "Size", items: pageSizeItems[layout] })) }), _jsx(AppField, { name: "layout", children: ({ RadioGroup }) => (_jsx(RadioGroup, { label: "Layout", options: layoutItems })) })] }));
106
+ case 'advance':
107
+ return (_jsxs(_Fragment, { children: [_jsx(AppField, { name: "unit", listeners: { onChange: onChangeUnit }, children: ({ Select }) => (_jsx(Select, { label: "Unit", items: unitItems })) }), _jsx(Checkbox, { label: "Keep ratio", checked: advancedTransforms.isAspectRatioEnabled, onChange: (event) => {
108
+ advancedTransforms.enableAspectRatio(event.currentTarget.checked);
109
+ } }), _jsx(AppField, { name: "width", listeners: { onChange: onWidthChange }, children: ({ NumericInput }) => (_jsx(NumericInput, { label: "Width", rightElement: _jsx(Tag, { children: unit }) })) }), _jsx(AppField, { name: "height", listeners: { onChange: onHeightChange }, children: ({ NumericInput }) => (_jsx(NumericInput, { label: "Height", rightElement: _jsx(Tag, { children: unit }) })) })] }));
110
+ default:
111
+ assertUnreachable(mode);
112
+ }
113
+ } }), _jsx(AppField, { name: "dpi", listeners: { onChange: onDPIChange }, children: ({ NumericInput }) => _jsx(NumericInput, { label: "DPI" }) }), _jsx(AppField, { name: "useDefaultSettings", children: ({ Checkbox }) => (_jsx(Checkbox, { label: "Don't show the options dialog during export and use current settings" })) })] }));
114
+ },
115
+ });
116
+ const DescriptionPreview = memo(function DescriptionPreview(props) {
117
+ const { width, height, dpi, unit } = getExportOptions(props);
118
+ const convertOptions = { precision: 0 };
119
+ const widthInPixel = convertToPixels(width, unit, dpi, convertOptions);
120
+ const heightInPixel = convertToPixels(height, unit, dpi, convertOptions);
121
+ return (_jsx(FormGroup, { label: "Description", children: _jsx(Tag, { children: `${widthInPixel} px x ${heightInPixel} px @ ${dpi}DPI` }) }));
122
+ });
123
+ //# sourceMappingURL=export_tab.fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export_tab.fields.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAA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G,YAAY,SAAS,aAAa,SAAS,GAAG,KAAK,GAAO,GACzD,CACb,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { withForm } from 'react-science/ui';
3
+ import { defaultGeneralSettingsFormValues } from '../validation.js';
4
+ import { ExportFields } from './export_tab.fields.js';
5
+ export const ExportTab = withForm({
6
+ defaultValues: defaultGeneralSettingsFormValues,
7
+ render: ({ form }) => {
8
+ return (_jsxs(_Fragment, { children: [_jsx(form.Section, { title: "Export SVG to file options", children: _jsx(ExportFields, { form: form, fields: "export.svg" }) }), _jsx(form.Section, { title: "Export PNG to file options", children: _jsx(ExportFields, { form: form, fields: "export.png" }) }), _jsx(form.Section, { title: "Export PNG to clipboard options", children: _jsx(ExportFields, { form: form, fields: "export.clipboard" }) })] }));
9
+ },
10
+ });
11
+ //# sourceMappingURL=export_tab.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export_tab.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/tabs/export_tab.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC;IAChC,aAAa,EAAE,gCAAgC;IAC/C,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;QACnB,OAAO,CACL,8BACE,KAAC,IAAI,CAAC,OAAO,IAAC,KAAK,EAAC,4BAA4B,YAC9C,KAAC,YAAY,IAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAC,YAAY,GAAG,GACnC,EACf,KAAC,IAAI,CAAC,OAAO,IAAC,KAAK,EAAC,4BAA4B,YAC9C,KAAC,YAAY,IAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAC,YAAY,GAAG,GACnC,EACf,KAAC,IAAI,CAAC,OAAO,IAAC,KAAK,EAAC,iCAAiC,YACnD,KAAC,YAAY,IAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAC,kBAAkB,GAAG,GACzC,IACd,CACJ,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}