ketcher-react 2.4.2 → 2.5.2

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 (178) 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 +11467 -6649
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.modern.js +11464 -6656
  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 +3 -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/hand.d.ts +30 -0
  21. package/dist/script/editor/tool/helper/lasso.d.ts +45 -30
  22. package/dist/script/editor/tool/helper/locate.d.ts +36 -21
  23. package/dist/script/editor/tool/index.d.ts +4 -2
  24. package/dist/script/editor/tool/paste.d.ts +23 -13
  25. package/dist/script/editor/tool/reactionarrow.d.ts +21 -8
  26. package/dist/script/editor/tool/reactionmap.d.ts +21 -9
  27. package/dist/script/editor/tool/reactionplus.d.ts +19 -6
  28. package/dist/script/editor/tool/reactionunmap.d.ts +18 -3
  29. package/dist/script/editor/tool/rgroupatom.d.ts +18 -6
  30. package/dist/script/editor/tool/rgroupfragment.d.ts +18 -7
  31. package/dist/script/editor/tool/rotate.d.ts +22 -10
  32. package/dist/script/editor/tool/sgroup.d.ts +23 -11
  33. package/dist/script/editor/tool/simpleobject.d.ts +20 -7
  34. package/dist/script/editor/tool/template.d.ts +24 -19
  35. package/dist/script/editor/tool/text.d.ts +1 -2
  36. package/dist/script/ui/App/App.container.d.ts +1 -0
  37. package/dist/script/ui/App/App.d.ts +1 -0
  38. package/dist/script/ui/App/AppHidden/AppHidden.container.d.ts +1 -0
  39. package/dist/script/ui/App/AppHidden/AppHidden.d.ts +1 -0
  40. package/dist/script/ui/Portal/Portal.d.ts +1 -1
  41. package/dist/script/ui/action/action.types.d.ts +1 -1
  42. package/dist/script/ui/action/fullscreen.d.ts +23 -0
  43. package/dist/script/ui/action/functionalGroups.d.ts +3 -0
  44. package/dist/script/ui/action/help.d.ts +8 -0
  45. package/dist/script/ui/action/index.d.ts +74 -5
  46. package/dist/script/ui/action/isHidden.d.ts +1 -3
  47. package/dist/script/ui/action/server.d.ts +1 -3
  48. package/dist/script/ui/action/tools.d.ts +41 -0
  49. package/dist/script/ui/component/ContextMenu/ContextMenu.d.ts +1 -0
  50. package/dist/script/ui/component/cliparea/cliparea.d.ts +4 -0
  51. package/dist/script/ui/component/form/MeasureInput/measure-input.d.ts +8 -0
  52. package/dist/script/ui/component/form/Select/Select.d.ts +30 -0
  53. package/dist/script/ui/component/form/Select/Select.test.d.ts +1 -0
  54. package/dist/script/ui/{views/modal/components/PeriodTable/components/GenericGroups/components/components → component/form/Select}/index.d.ts +2 -1
  55. package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +1 -0
  56. package/dist/script/ui/component/form/combobox/combobox.d.ts +4 -0
  57. package/dist/script/ui/component/form/form/errorPopover.d.ts +5 -0
  58. package/dist/script/ui/component/form/form/form.d.ts +9 -4
  59. package/dist/script/ui/component/form/input.d.ts +19 -1
  60. package/dist/script/ui/component/form/{select.d.ts → select-list.d.ts} +0 -0
  61. package/dist/script/ui/component/structrender.d.ts +28 -4
  62. package/dist/script/ui/component/view/Atom/Atom.d.ts +2 -2
  63. package/dist/script/ui/component/view/Tabs/Tabs.d.ts +3 -0
  64. package/dist/script/ui/component/view/openbutton.d.ts +2 -0
  65. package/dist/script/ui/data/schema/options-schema.d.ts +2 -2
  66. package/dist/script/ui/data/schema/sdata-schema.d.ts +11 -9
  67. package/dist/script/ui/data/schema/struct-schema.d.ts +30 -28
  68. package/dist/script/ui/dialog/template/EmptySearchResult.d.ts +1 -0
  69. package/dist/script/ui/dialog/template/TemplateDialog.d.ts +7 -1
  70. package/dist/script/ui/dialog/template/TemplateTable.d.ts +10 -7
  71. package/dist/script/ui/dialog/template/template-attach.d.ts +27 -1
  72. package/dist/script/ui/dialog/toolbox/enhancedStereo/enhancedStereo.d.ts +3 -1
  73. package/dist/script/ui/state/editor/index.d.ts +1 -0
  74. package/dist/script/ui/state/request/index.d.ts +2 -0
  75. package/dist/script/ui/state/request/request.types.d.ts +3 -1
  76. package/dist/script/ui/{views/modal/components/PeriodTable/components/GenericGroups/components/index.d.ts → utils/fileOpener.d.ts} +1 -1
  77. package/dist/script/ui/utils/index.d.ts +3 -0
  78. package/dist/script/ui/views/components/Cursor.d.ts +6 -0
  79. package/dist/script/ui/views/components/Dialog/Dialog.d.ts +17 -9
  80. package/dist/script/ui/views/{modal/components/PeriodTable/components/GenericGroups/index.d.ts → components/Spinner/LoadingCircles.d.ts} +2 -1
  81. package/dist/script/ui/views/components/Spinner/index.d.ts +1 -1
  82. package/dist/script/ui/views/components/StructEditor/StructEditor.d.ts +8 -0
  83. package/dist/script/ui/views/components/index.d.ts +2 -2
  84. package/dist/script/ui/views/modal/Modal.d.ts +1 -0
  85. package/dist/script/ui/views/modal/components/Confirm/Confirm.d.ts +7 -0
  86. package/dist/script/ui/views/modal/components/Confirm/index.d.ts +1 -0
  87. package/dist/script/ui/views/modal/components/ExtendedTable/ExtendedTable.d.ts +2 -0
  88. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/BoxWithLines.d.ts +18 -0
  89. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenGroup.d.ts +24 -0
  90. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenSet.d.ts +26 -0
  91. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenericGroups.d.ts +22 -0
  92. package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/index.d.ts +27 -0
  93. package/dist/script/ui/views/modal/components/ExtendedTable/helpers.d.ts +1 -0
  94. package/dist/script/ui/views/modal/components/ExtendedTable/index.d.ts +1 -0
  95. package/dist/script/ui/views/modal/components/PeriodTable/PeriodTable.d.ts +9 -4
  96. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/ElementsTable.d.ts +2 -0
  97. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/MainRow.d.ts +3 -2
  98. package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/OutinerRow.d.ts +3 -2
  99. package/dist/script/ui/views/modal/components/PeriodTable/components/index.d.ts +1 -1
  100. package/dist/script/ui/views/modal/components/Text/FontControl/FontControl.d.ts +1 -0
  101. package/dist/script/ui/views/{components/FunctionalGroups/FunctionalGroups.d.ts → modal/components/Text/SpecialSymbols/SpecialSymbolsButton.d.ts} +7 -8
  102. package/dist/script/ui/views/{components/Spinner/Spinner.d.ts → modal/components/Text/SpecialSymbolsList/SpecialSymbolsList.d.ts} +5 -3
  103. package/dist/script/ui/views/modal/components/Text/Text.d.ts +1 -0
  104. package/dist/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +1 -0
  105. package/dist/script/ui/views/modal/components/document/Open/Open.container.d.ts +7 -1
  106. package/dist/script/ui/views/modal/components/document/Open/Open.d.ts +6 -1
  107. package/dist/script/ui/views/modal/components/document/Open/components/AnalyzingFile.d.ts +20 -0
  108. package/dist/script/ui/views/modal/components/document/Open/components/DialogActionButton.d.ts +25 -0
  109. package/dist/script/ui/views/modal/components/document/Open/components/FileDrop.d.ts +26 -0
  110. package/dist/script/ui/views/modal/components/document/Open/components/OpenOptions.d.ts +24 -0
  111. package/dist/script/ui/views/modal/components/document/Open/components/TextEditor.d.ts +21 -0
  112. package/dist/script/ui/views/modal/components/document/Open/components/ViewSwitcher.d.ts +31 -0
  113. package/dist/script/ui/views/modal/components/document/Save/Save.d.ts +16 -6
  114. package/dist/script/ui/views/modal/components/meta/About/About.d.ts +1 -1
  115. package/dist/script/ui/views/modal/components/meta/Settings/Accordion/Accordion.d.ts +22 -0
  116. package/dist/script/ui/views/modal/components/meta/Settings/{components/Accordion → Accordion}/index.d.ts +0 -0
  117. package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +1 -0
  118. package/dist/script/ui/views/modal/components/meta/Settings/fieldGroups.d.ts +41 -0
  119. package/dist/script/ui/views/modal/components/process/Analyse/Analyse.d.ts +3 -0
  120. package/dist/script/ui/views/modal/components/process/Analyse/components/FormulaInput/FormulaInput.d.ts +2 -1
  121. package/dist/script/ui/views/modal/components/process/Miew/Miew.d.ts +30 -9
  122. package/dist/script/ui/views/modal/components/process/Recognize/Recognize.d.ts +1 -1
  123. package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +3 -1
  124. package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +1 -0
  125. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +1 -0
  126. package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +1 -0
  127. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +1 -0
  128. package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +1 -0
  129. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +1 -0
  130. package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +1 -0
  131. package/dist/script/ui/views/modal/components/toolbox/FG/RemoveFG.d.ts +1 -0
  132. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +1 -0
  133. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +1 -0
  134. package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +1 -0
  135. package/dist/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +1 -0
  136. package/dist/script/ui/views/toolbars/BottomToolbar/BottomToolbar.d.ts +2 -2
  137. package/dist/script/ui/views/toolbars/BottomToolbar/TemplatesList/TemplatesList.d.ts +1 -0
  138. package/dist/script/ui/views/toolbars/LeftToolbar/Bond/Bond.d.ts +2 -2
  139. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +3 -2
  140. package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.d.ts +2 -2
  141. package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/RGroup.d.ts +2 -2
  142. package/dist/script/ui/views/toolbars/LeftToolbar/Shape/Shape.d.ts +2 -2
  143. package/dist/script/ui/views/toolbars/LeftToolbar/Transform/Transform.d.ts +2 -2
  144. package/dist/script/ui/views/toolbars/RightToolbar/AtomsList/AtomsList.d.ts +2 -2
  145. package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.d.ts +2 -2
  146. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/ActionButton.d.ts +1 -0
  147. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarGroupItem.d.ts +1 -0
  148. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/ToolbarMultiToolItem.d.ts +1 -0
  149. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/DefaultMultiTool/DefaultMultiTool.d.ts +3 -4
  150. package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/GroupedMultiTool/GroupedMultiTool.d.ts +3 -4
  151. package/dist/script/ui/views/toolbars/TopToolbar/ClipboardControls.d.ts +31 -0
  152. package/dist/script/ui/views/{components/FunctionalGroups/index.d.ts → toolbars/TopToolbar/Divider.d.ts} +2 -1
  153. package/dist/script/ui/views/toolbars/TopToolbar/ElementWithDropdown.d.ts +23 -0
  154. package/dist/script/ui/views/toolbars/TopToolbar/ExternalFuncControls.d.ts +36 -0
  155. package/dist/script/ui/views/toolbars/TopToolbar/FileControls.d.ts +26 -0
  156. package/dist/script/ui/views/toolbars/TopToolbar/IconButton.d.ts +26 -0
  157. package/dist/script/ui/views/toolbars/TopToolbar/ScaleTransformer.d.ts +24 -0
  158. package/dist/script/ui/views/toolbars/TopToolbar/SystemControls.d.ts +28 -0
  159. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +2 -2
  160. package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +40 -9
  161. package/dist/script/ui/views/toolbars/TopToolbar/UndoRedo.d.ts +27 -0
  162. package/dist/script/ui/views/toolbars/TopToolbar/ZoomControls.d.ts +29 -0
  163. package/dist/script/ui/views/toolbars/TopToolbar/{ZoomList/ZoomList.d.ts → ZoomInput.d.ts} +9 -13
  164. package/dist/script/ui/views/toolbars/TopToolbar/ZoomList.d.ts +23 -0
  165. package/dist/script/ui/views/toolbars/TopToolbar/ZoomSlider.d.ts +22 -0
  166. package/dist/script/ui/views/toolbars/mediaSizes.d.ts +0 -2
  167. package/dist/script/ui/views/toolbars/toolbar.types.d.ts +4 -4
  168. package/package.json +47 -58
  169. package/LICENSE +0 -201
  170. package/dist/script/ui/component/form/measure-input.d.ts +0 -8
  171. package/dist/script/ui/component/view/spin.d.ts +0 -4
  172. package/dist/script/ui/views/modal/components/PeriodTable/components/GenericGroups/GenericGroups.d.ts +0 -7
  173. package/dist/script/ui/views/modal/components/PeriodTable/components/GenericGroups/components/GenGroup.d.ts +0 -8
  174. package/dist/script/ui/views/modal/components/PeriodTable/components/GenericGroups/components/components/GenSet.d.ts +0 -8
  175. package/dist/script/ui/views/modal/components/document/Save/SaveImageTab.d.ts +0 -4
  176. package/dist/script/ui/views/modal/components/meta/Settings/components/Accordion/Accordion.d.ts +0 -36
  177. package/dist/script/ui/views/toolbars/TopToolbar/HelpLink/HelpLink.d.ts +0 -19
  178. package/dist/script/ui/views/toolbars/TopToolbar/ZoomList/index.d.ts +0 -16
@@ -1,13 +1,26 @@
1
- export default ReactionPlusTool;
2
- declare function ReactionPlusTool(editor: any): ReactionPlusTool;
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 ReactionPlusTool {
18
+ editor: Editor;
19
+ dragCtx: any;
4
20
  constructor(editor: any);
5
- editor: any;
6
21
  mousedown(event: any): void;
7
- dragCtx: {
8
- xy0: any;
9
- } | undefined;
10
22
  mousemove(event: any): void;
11
23
  mouseup(): boolean;
12
24
  click(event: any): void;
13
25
  }
26
+ export default ReactionPlusTool;
@@ -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;
@@ -42,6 +55,14 @@ declare const config: {
42
55
  'zoom-list': {
43
56
  hidden: (options: any) => boolean;
44
57
  };
58
+ hand: {
59
+ title: string;
60
+ shortcut: string;
61
+ action: {
62
+ tool: string;
63
+ };
64
+ hidden: (options: any) => boolean;
65
+ };
45
66
  'select-lasso': {
46
67
  title: string;
47
68
  shortcut: string;
@@ -90,6 +111,7 @@ declare const config: {
90
111
  action: {
91
112
  tool: string;
92
113
  };
114
+ disabled: (editor: any) => boolean;
93
115
  hidden: (options: any) => boolean;
94
116
  };
95
117
  'charge-plus': {
@@ -263,6 +285,38 @@ declare const config: {
263
285
  };
264
286
  hidden: (options: any) => boolean;
265
287
  };
288
+ 'reaction-arrow-elliptical-arc-arrow-filled-bow': {
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-filled-triangle': {
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-angle': {
305
+ title: string;
306
+ action: {
307
+ tool: string;
308
+ opts: import("ketcher-core").RxnArrowMode;
309
+ };
310
+ hidden: (options: any) => boolean;
311
+ };
312
+ 'reaction-arrow-elliptical-arc-arrow-open-half-angle': {
313
+ title: string;
314
+ action: {
315
+ tool: string;
316
+ opts: import("ketcher-core").RxnArrowMode;
317
+ };
318
+ hidden: (options: any) => boolean;
319
+ };
266
320
  'reaction-plus': {
267
321
  title: string;
268
322
  action: {
@@ -425,7 +479,7 @@ declare const config: {
425
479
  action: {
426
480
  dialog: string;
427
481
  };
428
- disabled: (editor: any, server: any, options: any) => any;
482
+ disabled: (editor: any, server: any, options: any) => boolean;
429
483
  hidden: (options: any) => boolean;
430
484
  };
431
485
  miew: {
@@ -433,7 +487,6 @@ declare const config: {
433
487
  action: {
434
488
  dialog: string;
435
489
  };
436
- disabled: () => boolean;
437
490
  hidden: (options: any) => boolean;
438
491
  };
439
492
  clear: {
@@ -529,9 +582,6 @@ declare const config: {
529
582
  };
530
583
  hidden: (options: any) => boolean;
531
584
  };
532
- help: {
533
- hidden: (options: any) => boolean;
534
- };
535
585
  about: {
536
586
  title: string;
537
587
  action: {
@@ -554,6 +604,13 @@ declare const config: {
554
604
  };
555
605
  hidden: (options: any) => boolean;
556
606
  };
607
+ 'extended-table': {
608
+ title: string;
609
+ action: {
610
+ dialog: string;
611
+ };
612
+ hidden: (options: any) => boolean;
613
+ };
557
614
  'select-all': {
558
615
  title: string;
559
616
  shortcut: string;
@@ -576,4 +633,16 @@ declare const config: {
576
633
  };
577
634
  hidden: (options: any) => boolean;
578
635
  };
636
+ 'any-atom': {
637
+ title: string;
638
+ action: {
639
+ tool: string;
640
+ opts: {
641
+ label: string;
642
+ pseudo: string;
643
+ type: string;
644
+ };
645
+ };
646
+ hidden: (options: any) => boolean;
647
+ };
579
648
  };
@@ -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
  }
@@ -1,4 +1,12 @@
1
1
  declare var _default: {
2
+ hand: {
3
+ title: string;
4
+ shortcut: string;
5
+ action: {
6
+ tool: string;
7
+ };
8
+ hidden: (options: any) => boolean;
9
+ };
2
10
  'select-lasso': {
3
11
  title: string;
4
12
  shortcut: string;
@@ -47,6 +55,7 @@ declare var _default: {
47
55
  action: {
48
56
  tool: string;
49
57
  };
58
+ disabled: (editor: any) => boolean;
50
59
  hidden: (options: any) => boolean;
51
60
  };
52
61
  'charge-plus': {
@@ -220,6 +229,38 @@ declare var _default: {
220
229
  };
221
230
  hidden: (options: any) => boolean;
222
231
  };
232
+ 'reaction-arrow-elliptical-arc-arrow-filled-bow': {
233
+ title: string;
234
+ action: {
235
+ tool: string;
236
+ opts: RxnArrowMode;
237
+ };
238
+ hidden: (options: any) => boolean;
239
+ };
240
+ 'reaction-arrow-elliptical-arc-arrow-filled-triangle': {
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-angle': {
249
+ title: string;
250
+ action: {
251
+ tool: string;
252
+ opts: RxnArrowMode;
253
+ };
254
+ hidden: (options: any) => boolean;
255
+ };
256
+ 'reaction-arrow-elliptical-arc-arrow-open-half-angle': {
257
+ title: string;
258
+ action: {
259
+ tool: string;
260
+ opts: RxnArrowMode;
261
+ };
262
+ hidden: (options: any) => boolean;
263
+ };
223
264
  'reaction-plus': {
224
265
  title: string;
225
266
  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;