ketcher-react 2.4.2 → 2.5.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 (175) hide show
  1. package/README.md +14 -8
  2. package/dist/Editor.d.ts +1 -0
  3. package/dist/index.css +1 -1
  4. package/dist/index.css.map +1 -1
  5. package/dist/index.js +11335 -6836
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.modern.js +11327 -6838
  8. package/dist/index.modern.js.map +1 -1
  9. package/dist/script/builders/ketcher/ButtonName.d.ts +1 -1
  10. package/dist/script/editor/Editor.d.ts +2 -1
  11. package/dist/script/editor/shared/closest.d.ts +1 -1
  12. package/dist/script/editor/tool/apoint.d.ts +18 -7
  13. package/dist/script/editor/tool/atom.d.ts +23 -18
  14. package/dist/script/editor/tool/attach.d.ts +19 -11
  15. package/dist/script/editor/tool/bond.d.ts +22 -15
  16. package/dist/script/editor/tool/chain.d.ts +21 -13
  17. package/dist/script/editor/tool/charge.d.ts +19 -8
  18. package/dist/script/editor/tool/enhanced-stereo.d.ts +7 -1
  19. package/dist/script/editor/tool/eraser.d.ts +24 -12
  20. package/dist/script/editor/tool/helper/lasso.d.ts +45 -30
  21. package/dist/script/editor/tool/helper/locate.d.ts +36 -21
  22. package/dist/script/editor/tool/index.d.ts +2 -2
  23. package/dist/script/editor/tool/paste.d.ts +23 -13
  24. package/dist/script/editor/tool/reactionarrow.d.ts +21 -8
  25. package/dist/script/editor/tool/reactionmap.d.ts +21 -9
  26. package/dist/script/editor/tool/reactionplus.d.ts +19 -6
  27. package/dist/script/editor/tool/reactionunmap.d.ts +18 -3
  28. package/dist/script/editor/tool/rgroupatom.d.ts +18 -6
  29. package/dist/script/editor/tool/rgroupfragment.d.ts +18 -7
  30. package/dist/script/editor/tool/rotate.d.ts +22 -10
  31. package/dist/script/editor/tool/sgroup.d.ts +23 -11
  32. package/dist/script/editor/tool/simpleobject.d.ts +20 -7
  33. package/dist/script/editor/tool/template.d.ts +24 -19
  34. package/dist/script/editor/tool/text.d.ts +1 -2
  35. package/dist/script/ui/App/App.container.d.ts +1 -0
  36. package/dist/script/ui/App/App.d.ts +1 -0
  37. package/dist/script/ui/App/AppHidden/AppHidden.container.d.ts +1 -0
  38. package/dist/script/ui/App/AppHidden/AppHidden.d.ts +1 -0
  39. package/dist/script/ui/Portal/Portal.d.ts +1 -1
  40. package/dist/script/ui/action/action.types.d.ts +1 -1
  41. package/dist/script/ui/action/fullscreen.d.ts +23 -0
  42. package/dist/script/ui/action/functionalGroups.d.ts +3 -0
  43. package/dist/script/ui/action/help.d.ts +8 -0
  44. package/dist/script/ui/action/index.d.ts +66 -5
  45. package/dist/script/ui/action/isHidden.d.ts +1 -3
  46. package/dist/script/ui/action/server.d.ts +1 -3
  47. package/dist/script/ui/action/tools.d.ts +33 -0
  48. package/dist/script/ui/component/ContextMenu/ContextMenu.d.ts +1 -0
  49. package/dist/script/ui/component/cliparea/cliparea.d.ts +4 -0
  50. package/dist/script/ui/component/form/MeasureInput/measure-input.d.ts +8 -0
  51. package/dist/script/ui/component/form/Select/Select.d.ts +30 -0
  52. package/dist/script/ui/component/form/Select/Select.test.d.ts +1 -0
  53. package/dist/script/ui/{views/modal/components/PeriodTable/components/GenericGroups/components/components → component/form/Select}/index.d.ts +2 -1
  54. package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +1 -0
  55. package/dist/script/ui/component/form/combobox/combobox.d.ts +4 -0
  56. package/dist/script/ui/component/form/form/form.d.ts +9 -4
  57. package/dist/script/ui/component/form/input.d.ts +19 -1
  58. package/dist/script/ui/component/form/{select.d.ts → select-list.d.ts} +0 -0
  59. package/dist/script/ui/component/structrender.d.ts +28 -4
  60. package/dist/script/ui/component/view/Atom/Atom.d.ts +2 -2
  61. package/dist/script/ui/component/view/Tabs/Tabs.d.ts +3 -0
  62. package/dist/script/ui/component/view/openbutton.d.ts +2 -0
  63. package/dist/script/ui/data/schema/options-schema.d.ts +2 -2
  64. package/dist/script/ui/data/schema/sdata-schema.d.ts +11 -9
  65. package/dist/script/ui/data/schema/struct-schema.d.ts +30 -28
  66. package/dist/script/ui/dialog/template/EmptySearchResult.d.ts +1 -0
  67. package/dist/script/ui/dialog/template/TemplateDialog.d.ts +7 -1
  68. package/dist/script/ui/dialog/template/TemplateTable.d.ts +10 -7
  69. package/dist/script/ui/dialog/template/template-attach.d.ts +27 -1
  70. package/dist/script/ui/dialog/toolbox/enhancedStereo/enhancedStereo.d.ts +3 -1
  71. package/dist/script/ui/state/editor/index.d.ts +1 -0
  72. package/dist/script/ui/state/request/index.d.ts +2 -0
  73. package/dist/script/ui/state/request/request.types.d.ts +3 -1
  74. package/dist/script/ui/{views/modal/components/PeriodTable/components/GenericGroups/components/index.d.ts → utils/fileOpener.d.ts} +1 -1
  75. package/dist/script/ui/utils/index.d.ts +3 -0
  76. package/dist/script/ui/views/components/Dialog/Dialog.d.ts +17 -9
  77. package/dist/script/ui/views/{modal/components/PeriodTable/components/GenericGroups/index.d.ts → components/Spinner/LoadingCircles.d.ts} +2 -1
  78. package/dist/script/ui/views/components/Spinner/index.d.ts +1 -1
  79. package/dist/script/ui/views/components/StructEditor/StructEditor.d.ts +5 -0
  80. package/dist/script/ui/views/components/index.d.ts +2 -2
  81. package/dist/script/ui/views/modal/Modal.d.ts +1 -0
  82. package/dist/script/ui/views/modal/components/Confirm/Confirm.d.ts +7 -0
  83. package/dist/script/ui/views/modal/components/Confirm/index.d.ts +1 -0
  84. package/dist/script/ui/views/modal/components/ExtendedTable/ExtendedTable.d.ts +2 -0
  85. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/BoxWithLines.d.ts +18 -0
  86. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenGroup.d.ts +24 -0
  87. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenSet.d.ts +26 -0
  88. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenericGroups.d.ts +22 -0
  89. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/index.d.ts +27 -0
  90. package/dist/script/ui/views/modal/components/ExtendedTable/helpers.d.ts +1 -0
  91. package/dist/script/ui/views/modal/components/ExtendedTable/index.d.ts +1 -0
  92. package/dist/script/ui/views/modal/components/PeriodTable/PeriodTable.d.ts +9 -4
  93. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/ElementsTable.d.ts +2 -0
  94. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/MainRow.d.ts +3 -2
  95. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/OutinerRow.d.ts +3 -2
  96. package/dist/script/ui/views/modal/components/PeriodTable/components/index.d.ts +1 -1
  97. package/dist/script/ui/views/modal/components/Text/FontControl/FontControl.d.ts +1 -0
  98. package/dist/script/ui/views/{components/FunctionalGroups/FunctionalGroups.d.ts → modal/components/Text/SpecialSymbols/SpecialSymbolsButton.d.ts} +7 -8
  99. package/dist/script/ui/views/{components/Spinner/Spinner.d.ts → modal/components/Text/SpecialSymbolsList/SpecialSymbolsList.d.ts} +5 -3
  100. package/dist/script/ui/views/modal/components/Text/Text.d.ts +1 -0
  101. package/dist/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +1 -0
  102. package/dist/script/ui/views/modal/components/document/Open/Open.container.d.ts +7 -1
  103. package/dist/script/ui/views/modal/components/document/Open/Open.d.ts +6 -1
  104. package/dist/script/ui/views/modal/components/document/Open/components/AnalyzingFile.d.ts +20 -0
  105. package/dist/script/ui/views/modal/components/document/Open/components/DialogActionButton.d.ts +25 -0
  106. package/dist/script/ui/views/modal/components/document/Open/components/FileDrop.d.ts +26 -0
  107. package/dist/script/ui/views/modal/components/document/Open/components/OpenOptions.d.ts +24 -0
  108. package/dist/script/ui/views/modal/components/document/Open/components/TextEditor.d.ts +21 -0
  109. package/dist/script/ui/views/modal/components/document/Open/components/ViewSwitcher.d.ts +31 -0
  110. package/dist/script/ui/views/modal/components/document/Save/Save.d.ts +16 -6
  111. package/dist/script/ui/views/modal/components/meta/About/About.d.ts +1 -1
  112. package/dist/script/ui/views/modal/components/meta/Settings/Accordion/Accordion.d.ts +22 -0
  113. package/dist/script/ui/views/modal/components/meta/Settings/{components/Accordion → Accordion}/index.d.ts +0 -0
  114. package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +1 -0
  115. package/dist/script/ui/views/modal/components/meta/Settings/fieldGroups.d.ts +41 -0
  116. package/dist/script/ui/views/modal/components/process/Analyse/Analyse.d.ts +3 -0
  117. package/dist/script/ui/views/modal/components/process/Analyse/components/FormulaInput/FormulaInput.d.ts +2 -1
  118. package/dist/script/ui/views/modal/components/process/Miew/Miew.d.ts +30 -9
  119. package/dist/script/ui/views/modal/components/process/Recognize/Recognize.d.ts +1 -1
  120. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +3 -1
  121. package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +1 -0
  122. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +1 -0
  123. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +1 -0
  124. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +1 -0
  125. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +1 -0
  126. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +1 -0
  127. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +1 -0
  128. package/dist/script/ui/views/modal/components/toolbox/FG/RemoveFG.d.ts +1 -0
  129. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +1 -0
  130. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +1 -0
  131. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +1 -0
  132. package/dist/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +1 -0
  133. package/dist/script/ui/views/toolbars/BottomToolbar/BottomToolbar.d.ts +2 -2
  134. package/dist/script/ui/views/toolbars/BottomToolbar/TemplatesList/TemplatesList.d.ts +1 -0
  135. package/dist/script/ui/views/toolbars/LeftToolbar/Bond/Bond.d.ts +2 -2
  136. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +3 -2
  137. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.d.ts +2 -2
  138. package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/RGroup.d.ts +2 -2
  139. package/dist/script/ui/views/toolbars/LeftToolbar/Shape/Shape.d.ts +2 -2
  140. package/dist/script/ui/views/toolbars/LeftToolbar/Transform/Transform.d.ts +2 -2
  141. package/dist/script/ui/views/toolbars/RightToolbar/AtomsList/AtomsList.d.ts +2 -2
  142. package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.d.ts +2 -2
  143. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/ActionButton.d.ts +1 -0
  144. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarGroupItem.d.ts +1 -0
  145. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/ToolbarMultiToolItem.d.ts +1 -0
  146. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/DefaultMultiTool/DefaultMultiTool.d.ts +3 -4
  147. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/GroupedMultiTool/GroupedMultiTool.d.ts +3 -4
  148. package/dist/script/ui/views/toolbars/TopToolbar/ClipboardControls.d.ts +31 -0
  149. package/dist/script/ui/views/{components/FunctionalGroups/index.d.ts → toolbars/TopToolbar/Divider.d.ts} +2 -1
  150. package/dist/script/ui/views/toolbars/TopToolbar/ElementWithDropdown.d.ts +23 -0
  151. package/dist/script/ui/views/toolbars/TopToolbar/ExternalFuncControls.d.ts +36 -0
  152. package/dist/script/ui/views/toolbars/TopToolbar/FileControls.d.ts +26 -0
  153. package/dist/script/ui/views/toolbars/TopToolbar/IconButton.d.ts +26 -0
  154. package/dist/script/ui/views/toolbars/TopToolbar/ScaleTransformer.d.ts +24 -0
  155. package/dist/script/ui/views/toolbars/TopToolbar/SystemControls.d.ts +28 -0
  156. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +2 -2
  157. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +40 -9
  158. package/dist/script/ui/views/toolbars/TopToolbar/UndoRedo.d.ts +27 -0
  159. package/dist/script/ui/views/toolbars/TopToolbar/ZoomControls.d.ts +29 -0
  160. package/dist/script/ui/views/toolbars/TopToolbar/{ZoomList/ZoomList.d.ts → ZoomInput.d.ts} +9 -13
  161. package/dist/script/ui/views/toolbars/TopToolbar/ZoomList.d.ts +23 -0
  162. package/dist/script/ui/views/toolbars/TopToolbar/ZoomSlider.d.ts +22 -0
  163. package/dist/script/ui/views/toolbars/mediaSizes.d.ts +0 -2
  164. package/dist/script/ui/views/toolbars/toolbar.types.d.ts +3 -3
  165. package/package.json +47 -58
  166. package/LICENSE +0 -201
  167. package/dist/script/ui/component/form/measure-input.d.ts +0 -8
  168. package/dist/script/ui/component/view/spin.d.ts +0 -4
  169. package/dist/script/ui/views/modal/components/PeriodTable/components/GenericGroups/GenericGroups.d.ts +0 -7
  170. package/dist/script/ui/views/modal/components/PeriodTable/components/GenericGroups/components/GenGroup.d.ts +0 -8
  171. package/dist/script/ui/views/modal/components/PeriodTable/components/GenericGroups/components/components/GenSet.d.ts +0 -8
  172. package/dist/script/ui/views/modal/components/document/Save/SaveImageTab.d.ts +0 -4
  173. package/dist/script/ui/views/modal/components/meta/Settings/components/Accordion/Accordion.d.ts +0 -36
  174. package/dist/script/ui/views/toolbars/TopToolbar/HelpLink/HelpLink.d.ts +0 -19
  175. package/dist/script/ui/views/toolbars/TopToolbar/ZoomList/index.d.ts +0 -16
@@ -1,8 +1,23 @@
1
- export default ReactionUnmapTool;
2
- declare function ReactionUnmapTool(editor: any): ReactionUnmapTool;
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import Editor from '../Editor';
3
17
  declare class ReactionUnmapTool {
18
+ editor: Editor;
4
19
  constructor(editor: any);
5
- editor: any;
6
20
  mousemove(event: any): void;
7
21
  mouseup(event: any): void;
8
22
  }
23
+ export default ReactionUnmapTool;
@@ -1,11 +1,23 @@
1
- export default RGroupAtomTool;
2
- declare function RGroupAtomTool(editor: any): RGroupAtomTool;
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import Editor from '../Editor';
3
17
  declare class RGroupAtomTool {
18
+ editor: Editor;
4
19
  constructor(editor: any);
5
- editor: any;
6
- struct: any;
7
- sgroups: any;
8
- functionalGroups: any;
9
20
  mousemove(event: any): void;
10
21
  click(event: any): true | undefined;
11
22
  }
23
+ export default RGroupAtomTool;
@@ -1,13 +1,24 @@
1
- export default RGroupFragmentTool;
2
- declare function RGroupFragmentTool(editor: any): RGroupFragmentTool;
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import Editor from '../Editor';
3
17
  declare class RGroupFragmentTool {
18
+ editor: Editor;
4
19
  constructor(editor: any);
5
- editor: any;
6
- struct: any;
7
- sgroups: any;
8
- molecule: any;
9
- functionalGroups: any;
10
20
  mousemove(event: any): void;
11
21
  click(event: any): true | undefined;
12
22
  cancel(): void;
13
23
  }
24
+ export default RGroupFragmentTool;
@@ -1,16 +1,28 @@
1
- export default RotateTool;
2
- declare function RotateTool(editor: any, dir: any): RotateTool | null;
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import Editor from '../Editor';
3
17
  declare class RotateTool {
18
+ editor: Editor;
19
+ dragCtx: any;
20
+ isNotActiveTool: boolean | undefined;
4
21
  constructor(editor: any, dir: any);
5
- editor: any;
6
22
  mousedown(event: any): boolean;
7
- dragCtx: {
8
- xy0: Vec2;
9
- angle1: number;
10
- } | undefined;
11
23
  mousemove(event: any): boolean;
12
24
  mouseup(): boolean;
13
- cancel: any;
14
- mouseleave: any;
25
+ cancel(): void;
26
+ mouseleave(): void;
15
27
  }
16
- import { Vec2 } from "ketcher-core/dist/domain/entities/vec2";
28
+ export default RotateTool;
@@ -1,19 +1,31 @@
1
- export function sgroupDialog(editor: any, id: any, defaultType: any): void;
2
- export default SGroupTool;
3
- declare function SGroupTool(editor: any, type: any): SGroupTool | null;
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import Editor from '../Editor';
4
17
  declare class SGroupTool {
5
- constructor(editor: any, type: any);
6
- editor: any;
7
- struct: any;
8
- sgroups: any;
9
- molecule: any;
10
- functionalGroups: any;
18
+ editor: Editor;
11
19
  type: any;
12
- lassoHelper: LassoHelper | undefined;
20
+ lassoHelper: any;
21
+ isNotActiveTool: boolean | undefined;
22
+ constructor(editor: any, type: any);
23
+ checkSelection(): void;
13
24
  mousedown(event: any): void;
14
25
  mousemove(event: any): void;
15
26
  mouseleave(event: any): void;
16
27
  mouseup(event: any): void;
17
28
  cancel(): void;
18
29
  }
19
- import LassoHelper from "./helper/lasso";
30
+ export declare function sgroupDialog(editor: any, id: any, defaultType: any): void;
31
+ export default SGroupTool;
@@ -1,13 +1,26 @@
1
- export default SimpleObjectTool;
2
- declare function SimpleObjectTool(editor: any, mode: any): SimpleObjectTool;
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import Editor from '../Editor';
3
17
  declare class SimpleObjectTool {
4
- constructor(editor: any, mode: any);
5
18
  mode: any;
6
- editor: any;
19
+ editor: Editor;
20
+ dragCtx: any;
21
+ constructor(editor: any, mode: any);
7
22
  mousedown(event: any): void;
8
- dragCtx: {
9
- p0: any;
10
- } | undefined;
11
23
  mousemove(event: any): void;
12
24
  mouseup(event: any): boolean;
13
25
  }
26
+ export default SimpleObjectTool;
@@ -1,25 +1,30 @@
1
- export default TemplateTool;
2
- declare function TemplateTool(editor: any, tmpl: any): TemplateTool;
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ import Editor from '../Editor';
3
17
  declare class TemplateTool {
4
- constructor(editor: any, tmpl: any);
5
- editor: any;
18
+ editor: Editor;
6
19
  mode: any;
7
- struct: any;
8
- sgroups: any;
9
- molecule: any;
10
- functionalGroups: any;
11
- template: {
12
- aid: number;
13
- bid: number;
14
- } | undefined;
15
- findItems: string[] | undefined;
20
+ template: any;
21
+ findItems: Array<string>;
22
+ dragCtx: any;
23
+ constructor(editor: any, tmpl: any);
16
24
  mousedown(event: any): true | undefined;
17
- dragCtx: {
18
- xy0: any;
19
- item: any;
20
- } | undefined;
21
25
  mousemove(event: any): boolean;
22
26
  mouseup(event: any): boolean;
23
- cancel: any;
24
- mouseleave: any;
27
+ cancel(e: any): void;
28
+ mouseleave(e: any): void;
25
29
  }
30
+ export default TemplateTool;
@@ -23,5 +23,4 @@ declare class TextTool {
23
23
  click(event: any): boolean;
24
24
  dblclick(event: any): boolean;
25
25
  }
26
- export default function TextToolWrapper(editor: any): TextTool;
27
- export {};
26
+ export default TextTool;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
+ /// <reference types="react" />
16
17
  import { AppCallProps } from './App';
17
18
  declare const AppContainer: import("react-redux").ConnectedComponent<(props: AppCallProps) => JSX.Element, import("react-redux").Omit<AppCallProps, "checkServer">>;
18
19
  export { AppContainer };
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
+ /// <reference types="react" />
16
17
  interface AppCallProps {
17
18
  checkServer: () => void;
18
19
  }
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
+ /// <reference types="react" />
16
17
  import { AppHiddenCallProps } from './AppHidden';
17
18
  declare const AppHiddenContainer: import("react-redux").ConnectedComponent<(props: AppHiddenCallProps) => JSX.Element, import("react-redux").Omit<AppHiddenCallProps, "onInitTmpls">>;
18
19
  export { AppHiddenContainer };
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
+ /// <reference types="react" />
16
17
  interface AppHiddenCallProps {
17
18
  onInitTmpls: (cacheEl: any, url: any) => void;
18
19
  }
@@ -32,6 +32,6 @@ declare class Portal extends Component<Props> {
32
32
  private removeClassNames;
33
33
  private addClassName;
34
34
  private updateStyle;
35
- render(): import("react").ReactPortal;
35
+ render(): any;
36
36
  }
37
37
  export { Portal };
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  import { Dispatch } from 'redux';
17
- declare type ToolVariant = 'about' | 'analyse' | 'arom' | 'bond-any' | 'bond-hydrogen' | 'bond-aromatic' | 'bond-crossed' | 'bond-dative' | 'bond-double' | 'bond-doublearomatic' | 'bond-down' | 'bond-single' | 'bond-singlearomatic' | 'bond-singledouble' | 'bond-triple' | 'bond-up' | 'bond-updown' | 'chain' | 'charge-minus' | 'charge-plus' | 'check' | 'chiral-flag' | 'cip' | 'clean' | 'copy' | 'copy-image' | 'cut' | 'dearom' | 'dropdown' | 'enhanced-stereo' | 'erase' | 'functional-groups' | 'generic-groups' | 'help' | 'layout' | 'logo' | 'miew' | 'clear' | 'open' | 'paste' | 'period-table' | 'reaction-arrow' | 'reaction-automap' | 'reaction-map' | 'reaction-plus' | 'reaction-unmap' | 'recognize' | 'redo' | 'rgroup-attpoints' | 'rgroup-fragment' | 'rgroup-label' | 'save' | 'select-fragment' | 'select-lasso' | 'select-rectangle' | 'settings' | 'sgroup' | 'sgroup-data' | 'template-0' | 'template-1' | 'template-2' | 'template-3' | 'template-4' | 'template-5' | 'template-6' | 'template-7' | 'template-lib' | 'text' | 'transform-flip-h' | 'transform-flip-v' | 'transform-rotate' | 'zoom-in' | 'zoom-out' | 'shape-circle' | 'shape-rectangle' | 'shape-polyline' | 'shape-line' | 'undo';
17
+ declare type ToolVariant = 'about' | 'analyse' | 'arom' | 'bond-any' | 'bond-hydrogen' | 'bond-aromatic' | 'bond-crossed' | 'bond-dative' | 'bond-double' | 'bond-doublearomatic' | 'bond-down' | 'bond-single' | 'bond-singlearomatic' | 'bond-singledouble' | 'bond-triple' | 'bond-up' | 'bond-updown' | 'chain' | 'charge-minus' | 'charge-plus' | 'check' | 'chiral-flag' | 'cip' | 'clean' | 'copy' | 'copy-image' | 'cut' | 'dearom' | 'dropdown' | 'enhanced-stereo' | 'erase' | 'fullscreen' | 'functional-groups' | 'generic-groups' | 'help' | 'layout' | 'logo' | 'miew' | 'clear' | 'open' | 'paste' | 'period-table' | 'reaction-arrow' | 'reaction-automap' | 'reaction-map' | 'reaction-plus' | 'reaction-unmap' | 'recognize' | 'redo' | 'rgroup-attpoints' | 'rgroup-fragment' | 'rgroup-label' | 'save' | 'select-fragment' | 'select-lasso' | 'select-rectangle' | 'settings' | 'sgroup' | 'sgroup-data' | 'template-0' | 'template-1' | 'template-2' | 'template-3' | 'template-4' | 'template-5' | 'template-6' | 'template-7' | 'template-lib' | 'text' | 'transform-flip-h' | 'transform-flip-v' | 'transform-rotate' | 'zoom-in' | 'zoom-out' | 'shape-circle' | 'shape-rectangle' | 'shape-polyline' | 'shape-line' | 'undo';
18
18
  declare type Editor = any;
19
19
  declare type Server = any;
20
20
  declare type Options = any;
@@ -0,0 +1,23 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ declare const _default: {
17
+ fullscreen: {
18
+ title: string;
19
+ action: () => void;
20
+ hidden: (options: any) => boolean;
21
+ };
22
+ };
23
+ export default _default;
@@ -19,6 +19,9 @@ declare const functionalGroupsLib: {
19
19
  title: string;
20
20
  action: {
21
21
  dialog: string;
22
+ prop: {
23
+ tab: number;
24
+ };
22
25
  };
23
26
  selected: (editor: any) => boolean;
24
27
  disabled: (_: any, __: any, options: any) => boolean;
@@ -0,0 +1,8 @@
1
+ declare namespace _default {
2
+ namespace help {
3
+ const shortcut: string[];
4
+ function action(): void | undefined;
5
+ function hidden(options: any): boolean;
6
+ }
7
+ }
8
+ export default _default;
@@ -1,11 +1,24 @@
1
1
  export * from "./action.types";
2
2
  export default config;
3
3
  declare const config: {
4
+ help: {
5
+ shortcut: string[];
6
+ action: () => void | undefined;
7
+ hidden: (options: any) => boolean;
8
+ };
9
+ fullscreen: {
10
+ title: string;
11
+ action: () => void;
12
+ hidden: (options: any) => boolean;
13
+ };
4
14
  'functional-groups': {
5
15
  shortcut: string;
6
16
  title: string;
7
17
  action: {
8
18
  dialog: string;
19
+ prop: {
20
+ tab: number;
21
+ };
9
22
  };
10
23
  selected: (editor: any) => boolean;
11
24
  disabled: (_: any, __: any, options: any) => boolean;
@@ -90,6 +103,7 @@ declare const config: {
90
103
  action: {
91
104
  tool: string;
92
105
  };
106
+ disabled: (editor: any) => boolean;
93
107
  hidden: (options: any) => boolean;
94
108
  };
95
109
  'charge-plus': {
@@ -263,6 +277,38 @@ declare const config: {
263
277
  };
264
278
  hidden: (options: any) => boolean;
265
279
  };
280
+ 'reaction-arrow-elliptical-arc-arrow-filled-bow': {
281
+ title: string;
282
+ action: {
283
+ tool: string;
284
+ opts: import("ketcher-core").RxnArrowMode;
285
+ };
286
+ hidden: (options: any) => boolean;
287
+ };
288
+ 'reaction-arrow-elliptical-arc-arrow-filled-triangle': {
289
+ title: string;
290
+ action: {
291
+ tool: string;
292
+ opts: import("ketcher-core").RxnArrowMode;
293
+ };
294
+ hidden: (options: any) => boolean;
295
+ };
296
+ 'reaction-arrow-elliptical-arc-arrow-open-angle': {
297
+ title: string;
298
+ action: {
299
+ tool: string;
300
+ opts: import("ketcher-core").RxnArrowMode;
301
+ };
302
+ hidden: (options: any) => boolean;
303
+ };
304
+ 'reaction-arrow-elliptical-arc-arrow-open-half-angle': {
305
+ title: string;
306
+ action: {
307
+ tool: string;
308
+ opts: import("ketcher-core").RxnArrowMode;
309
+ };
310
+ hidden: (options: any) => boolean;
311
+ };
266
312
  'reaction-plus': {
267
313
  title: string;
268
314
  action: {
@@ -425,7 +471,7 @@ declare const config: {
425
471
  action: {
426
472
  dialog: string;
427
473
  };
428
- disabled: (editor: any, server: any, options: any) => any;
474
+ disabled: (editor: any, server: any, options: any) => boolean;
429
475
  hidden: (options: any) => boolean;
430
476
  };
431
477
  miew: {
@@ -433,7 +479,6 @@ declare const config: {
433
479
  action: {
434
480
  dialog: string;
435
481
  };
436
- disabled: () => boolean;
437
482
  hidden: (options: any) => boolean;
438
483
  };
439
484
  clear: {
@@ -529,9 +574,6 @@ declare const config: {
529
574
  };
530
575
  hidden: (options: any) => boolean;
531
576
  };
532
- help: {
533
- hidden: (options: any) => boolean;
534
- };
535
577
  about: {
536
578
  title: string;
537
579
  action: {
@@ -554,6 +596,13 @@ declare const config: {
554
596
  };
555
597
  hidden: (options: any) => boolean;
556
598
  };
599
+ 'extended-table': {
600
+ title: string;
601
+ action: {
602
+ dialog: string;
603
+ };
604
+ hidden: (options: any) => boolean;
605
+ };
557
606
  'select-all': {
558
607
  title: string;
559
608
  shortcut: string;
@@ -576,4 +625,16 @@ declare const config: {
576
625
  };
577
626
  hidden: (options: any) => boolean;
578
627
  };
628
+ 'any-atom': {
629
+ title: string;
630
+ action: {
631
+ tool: string;
632
+ opts: {
633
+ label: string;
634
+ pseudo: string;
635
+ type: string;
636
+ };
637
+ };
638
+ hidden: (options: any) => boolean;
639
+ };
579
640
  };
@@ -13,6 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- export default function isHidden(options: {
17
- buttons?: {};
18
- }, buttonName: string): boolean;
16
+ export default function isHidden(options: any, buttonName: string): boolean;
@@ -98,7 +98,7 @@ declare namespace config {
98
98
  export { dialog_2 as dialog };
99
99
  }
100
100
  export { action_7 as action };
101
- export function disabled_7(editor: any, server: any, options: any): any;
101
+ export function disabled_7(editor: any, server: any, options: any): boolean;
102
102
  export { disabled_7 as disabled };
103
103
  export function hidden_7(options: any): boolean;
104
104
  export { hidden_7 as hidden };
@@ -111,8 +111,6 @@ declare namespace config {
111
111
  export { dialog_3 as dialog };
112
112
  }
113
113
  export { action_8 as action };
114
- export function disabled_8(): boolean;
115
- export { disabled_8 as disabled };
116
114
  export function hidden_8(options: any): boolean;
117
115
  export { hidden_8 as hidden };
118
116
  }
@@ -47,6 +47,7 @@ declare var _default: {
47
47
  action: {
48
48
  tool: string;
49
49
  };
50
+ disabled: (editor: any) => boolean;
50
51
  hidden: (options: any) => boolean;
51
52
  };
52
53
  'charge-plus': {
@@ -220,6 +221,38 @@ declare var _default: {
220
221
  };
221
222
  hidden: (options: any) => boolean;
222
223
  };
224
+ 'reaction-arrow-elliptical-arc-arrow-filled-bow': {
225
+ title: string;
226
+ action: {
227
+ tool: string;
228
+ opts: RxnArrowMode;
229
+ };
230
+ hidden: (options: any) => boolean;
231
+ };
232
+ 'reaction-arrow-elliptical-arc-arrow-filled-triangle': {
233
+ title: string;
234
+ action: {
235
+ tool: string;
236
+ opts: RxnArrowMode;
237
+ };
238
+ hidden: (options: any) => boolean;
239
+ };
240
+ 'reaction-arrow-elliptical-arc-arrow-open-angle': {
241
+ title: string;
242
+ action: {
243
+ tool: string;
244
+ opts: RxnArrowMode;
245
+ };
246
+ hidden: (options: any) => boolean;
247
+ };
248
+ 'reaction-arrow-elliptical-arc-arrow-open-half-angle': {
249
+ title: string;
250
+ action: {
251
+ tool: string;
252
+ opts: RxnArrowMode;
253
+ };
254
+ hidden: (options: any) => boolean;
255
+ };
223
256
  'reaction-plus': {
224
257
  title: string;
225
258
  action: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FGContextMenu: () => JSX.Element;
2
3
  export { FGContextMenu };
@@ -4,6 +4,7 @@ export default ClipArea;
4
4
  declare class ClipArea extends Component<any, any, any> {
5
5
  constructor(props: any);
6
6
  textAreaRef: import("react").RefObject<any>;
7
+ componentDidMount(): void;
7
8
  target: any;
8
9
  listeners: {
9
10
  mouseup: (event: any) => void;
@@ -12,5 +13,8 @@ declare class ClipArea extends Component<any, any, any> {
12
13
  cut: (event: any) => void;
13
14
  paste: (event: any) => void;
14
15
  } | undefined;
16
+ shouldComponentUpdate(): boolean;
17
+ componentWillUnmount(): void;
18
+ render(): JSX.Element;
15
19
  }
16
20
  import { Component } from "react";
@@ -0,0 +1,8 @@
1
+ export default MeasureInput;
2
+ declare function MeasureInput({ schema, value, onChange, name, ...rest }: {
3
+ [x: string]: any;
4
+ schema: any;
5
+ value: any;
6
+ onChange: any;
7
+ name: any;
8
+ }): JSX.Element;
@@ -0,0 +1,30 @@
1
+ /****************************************************************************
2
+ * Copyright 2021 EPAM Systems
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ ***************************************************************************/
16
+ /// <reference types="react" />
17
+ export interface Option {
18
+ value: string;
19
+ label: string;
20
+ }
21
+ interface Props {
22
+ options: Array<Option>;
23
+ onChange: (value: string) => void;
24
+ className?: string;
25
+ value?: string;
26
+ multiple?: boolean;
27
+ disabled?: boolean;
28
+ }
29
+ declare const Select: ({ className, value, onChange, multiple, disabled, options }: Props) => JSX.Element;
30
+ export default Select;
@@ -13,4 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- export { default } from './GenSet';
16
+ export { default } from './Select';
17
+ export * from './Select';
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
+ /// <reference types="react" />
16
17
  interface ColorPickerProps {
17
18
  value: string;
18
19
  name: string;