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,12 @@
1
1
  export default ComboBox;
2
2
  declare class ComboBox extends Component<any, any, any> {
3
3
  constructor(props: any);
4
+ state: {
5
+ suggestsHidden: boolean;
6
+ };
4
7
  click(): void;
5
8
  blur(): void;
6
9
  updateInput(event: any): void;
10
+ render(): JSX.Element;
7
11
  }
8
12
  import { Component } from "react";
@@ -4,17 +4,22 @@ declare class Form extends Component<any, any, any> {
4
4
  constructor(props: any);
5
5
  schema: {
6
6
  key: any;
7
- serialize: (inst: any) => jsonschema.ValidatorResult;
8
- deserialize: (inst: any) => jsonschema.ValidatorResult;
7
+ serialize: (inst: any) => {
8
+ instance: any;
9
+ valid: boolean;
10
+ errors: import("ajv").ErrorObject<string, Record<string, any>, unknown>[];
11
+ };
12
+ deserialize: (inst: any) => any;
9
13
  };
14
+ componentDidUpdate(prevProps: any): void;
10
15
  updateState(newState: any): void;
11
16
  field(name: any, onChange: any): {
12
17
  dataError: any;
13
18
  value: any;
14
- onChange(val: any): void;
19
+ onChange: (val: any) => void;
15
20
  };
21
+ render(): JSX.Element;
16
22
  }
17
23
  export function Field(props: any): JSX.Element;
18
24
  export function SelectOneOf(props: any): JSX.Element;
19
25
  import { Component } from "react";
20
- import jsonschema from "jsonschema";
@@ -1,5 +1,23 @@
1
+ export function GenericInput({ schema, value, onChange, type, ...props }: {
2
+ [x: string]: any;
3
+ schema: any;
4
+ value?: string | undefined;
5
+ onChange: any;
6
+ type?: string | undefined;
7
+ }): JSX.Element;
8
+ export namespace GenericInput {
9
+ function val(ev: any, schema: any): any;
10
+ }
1
11
  export default class Input extends Component<any, any, any> {
2
12
  constructor(props: any);
13
+ constructor(props: any, context: any);
14
+ shouldComponentUpdate({ children, onChange, style, ...nextProps }: {
15
+ [x: string]: any;
16
+ children: any;
17
+ onChange: any;
18
+ style: any;
19
+ }): boolean;
20
+ render(): JSX.Element;
3
21
  component: any;
4
22
  ctrl: {
5
23
  onChange: (ev: any) => void;
@@ -10,6 +28,6 @@ export default class Input extends Component<any, any, any> {
10
28
  multiple: boolean;
11
29
  selected: (testVal: any, values: any) => any;
12
30
  onSelect: (ev: any, values: any) => void;
13
- };
31
+ } | undefined;
14
32
  }
15
33
  import { Component } from "react";
@@ -1,6 +1,30 @@
1
- export default StructRender;
2
- declare class StructRender extends Component<any, any, any> {
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 { Component, ComponentType } from 'react';
17
+ import { Struct } from 'ketcher-core';
18
+ interface StructRenderProps {
19
+ struct: Struct;
20
+ options: any;
21
+ Tag?: string | ComponentType<any>;
22
+ }
23
+ declare class StructRender extends Component<StructRenderProps> {
24
+ tagRef: React.RefObject<HTMLElement>;
3
25
  constructor(props: any);
4
- tagRef: import("react").RefObject<any>;
26
+ shouldComponentUpdate(): boolean;
27
+ componentDidMount(): void;
28
+ render(): JSX.Element;
5
29
  }
6
- import { Component } from "react";
30
+ export default StructRender;
@@ -1,7 +1,7 @@
1
1
  export default Atom;
2
- declare function Atom({ el, shortcut, className, ...props }: {
2
+ declare function Atom({ el, shortcut, selected, ...props }: {
3
3
  [x: string]: any;
4
4
  el: any;
5
5
  shortcut: any;
6
- className: any;
6
+ selected: any;
7
7
  }): JSX.Element;
@@ -1,6 +1,9 @@
1
1
  export default Tabs;
2
2
  declare class Tabs extends Component<any, any, any> {
3
3
  constructor(props: any);
4
+ state: {};
4
5
  changeTab(ev: any, index: any): void;
6
+ componentDidUpdate(prevProps: any): void;
7
+ render(): JSX.Element;
5
8
  }
6
9
  import { Component } from "react";
@@ -1,7 +1,9 @@
1
1
  export default OpenButton;
2
2
  declare class OpenButton extends Component<any, any, any> {
3
3
  constructor(props: any);
4
+ state: {};
4
5
  open(ev: any): void;
6
+ render(): JSX.Element;
5
7
  btn: HTMLInputElement | null | undefined;
6
8
  }
7
9
  import { Component } from "react";
@@ -13,8 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
- import { Schema } from 'jsonschema';
17
- declare type ExtendedSchema = Schema & {
16
+ import { SchemaObject } from 'ajv';
17
+ declare type ExtendedSchema = SchemaObject & {
18
18
  enumNames?: Array<string>;
19
19
  default?: any;
20
20
  };
@@ -10,33 +10,35 @@
10
10
  export function getSdataDefault(context: any, fieldName: any): string;
11
11
  export namespace sdataCustomSchema {
12
12
  const key: string;
13
+ const type: string;
13
14
  namespace properties {
14
- namespace type {
15
+ export namespace type_1 {
15
16
  const _enum: string[];
16
17
  export { _enum as enum };
17
18
  }
18
- namespace context {
19
+ export { type_1 as type };
20
+ export namespace context {
19
21
  export const title: string;
20
22
  const _enum_1: string[];
21
23
  export { _enum_1 as enum };
22
24
  const _default: string;
23
25
  export { _default as default };
24
26
  }
25
- namespace fieldName {
27
+ export namespace fieldName {
26
28
  const title_1: string;
27
29
  export { title_1 as title };
28
- const type_1: string;
29
- export { type_1 as type };
30
+ const type_2: string;
31
+ export { type_2 as type };
30
32
  const _default_1: string;
31
33
  export { _default_1 as default };
32
34
  export const minLength: number;
33
35
  export const invalidMessage: string;
34
36
  }
35
- namespace fieldValue {
37
+ export namespace fieldValue {
36
38
  const title_2: string;
37
39
  export { title_2 as title };
38
- const type_2: string;
39
- export { type_2 as type };
40
+ const type_3: string;
41
+ export { type_3 as type };
40
42
  const _default_2: string;
41
43
  export { _default_2 as default };
42
44
  const minLength_1: number;
@@ -44,7 +46,7 @@ export namespace sdataCustomSchema {
44
46
  const invalidMessage_1: string;
45
47
  export { invalidMessage_1 as invalidMessage };
46
48
  }
47
- namespace radiobuttons {
49
+ export namespace radiobuttons {
48
50
  const _enum_2: string[];
49
51
  export { _enum_2 as enum };
50
52
  const _default_3: string;
@@ -1,7 +1,7 @@
1
1
  export namespace atom {
2
2
  const title: string;
3
3
  const type: string;
4
- const required: string;
4
+ const required: string[];
5
5
  namespace properties {
6
6
  namespace label {
7
7
  const title_1: string;
@@ -24,7 +24,7 @@ export namespace atom {
24
24
  export { title_3 as title };
25
25
  const type_3: string;
26
26
  export { type_3 as type };
27
- export const pattern: RegExp;
27
+ export const pattern: string;
28
28
  const maxLength_1: number;
29
29
  export { maxLength_1 as maxLength };
30
30
  const _default: string;
@@ -156,6 +156,8 @@ export namespace labelEdit {
156
156
  export { _default_10 as default };
157
157
  const invalidMessage_4: string;
158
158
  export { invalidMessage_4 as invalidMessage };
159
+ const type_11: string;
160
+ export { type_11 as type };
159
161
  }
160
162
  export { label_1 as label };
161
163
  }
@@ -164,20 +166,20 @@ export namespace labelEdit {
164
166
  export namespace attachmentPoints {
165
167
  const title_16: string;
166
168
  export { title_16 as title };
167
- const type_11: string;
168
- export { type_11 as type };
169
+ const type_12: string;
170
+ export { type_12 as type };
169
171
  export namespace properties_3 {
170
172
  namespace primary {
171
173
  const title_17: string;
172
174
  export { title_17 as title };
173
- const type_12: string;
174
- export { type_12 as type };
175
+ const type_13: string;
176
+ export { type_13 as type };
175
177
  }
176
178
  namespace secondary {
177
179
  const title_18: string;
178
180
  export { title_18 as title };
179
- const type_13: string;
180
- export { type_13 as type };
181
+ const type_14: string;
182
+ export { type_14 as type };
181
183
  }
182
184
  }
183
185
  export { properties_3 as properties };
@@ -185,12 +187,12 @@ export namespace attachmentPoints {
185
187
  export namespace bond {
186
188
  const title_19: string;
187
189
  export { title_19 as title };
188
- const type_14: string;
189
- export { type_14 as type };
190
+ const type_15: string;
191
+ export { type_15 as type };
190
192
  const required_2: string[];
191
193
  export { required_2 as required };
192
194
  export namespace properties_4 {
193
- export namespace type_15 {
195
+ export namespace type_16 {
194
196
  const title_20: string;
195
197
  export { title_20 as title };
196
198
  const _enum_7: string[];
@@ -200,7 +202,7 @@ export namespace bond {
200
202
  const _default_11: string;
201
203
  export { _default_11 as default };
202
204
  }
203
- export { type_15 as type };
205
+ export { type_16 as type };
204
206
  export namespace topology {
205
207
  const title_21: string;
206
208
  export { title_21 as title };
@@ -228,14 +230,14 @@ export const sgroupMap: any;
228
230
  export namespace rgroupLogic {
229
231
  const title_23: string;
230
232
  export { title_23 as title };
231
- const type_16: string;
232
- export { type_16 as type };
233
+ const type_17: string;
234
+ export { type_17 as type };
233
235
  export namespace properties_5 {
234
236
  namespace range {
235
237
  const title_24: string;
236
238
  export { title_24 as title };
237
- const type_17: string;
238
- export { type_17 as type };
239
+ const type_18: string;
240
+ export { type_18 as type };
239
241
  const maxLength_2: number;
240
242
  export { maxLength_2 as maxLength };
241
243
  const invalidMessage_5: string;
@@ -244,14 +246,14 @@ export namespace rgroupLogic {
244
246
  namespace resth {
245
247
  const title_25: string;
246
248
  export { title_25 as title };
247
- const type_18: string;
248
- export { type_18 as type };
249
+ const type_19: string;
250
+ export { type_19 as type };
249
251
  }
250
252
  namespace ifthen {
251
253
  const title_26: string;
252
254
  export { title_26 as title };
253
- const type_19: string;
254
- export { type_19 as type };
255
+ const type_20: string;
256
+ export { type_20 as type };
255
257
  export const minium: number;
256
258
  }
257
259
  }
@@ -260,16 +262,16 @@ export namespace rgroupLogic {
260
262
  export namespace textSchema {
261
263
  const title_27: string;
262
264
  export { title_27 as title };
263
- const type_20: string;
264
- export { type_20 as type };
265
+ const type_21: string;
266
+ export { type_21 as type };
265
267
  const required_3: string[];
266
268
  export { required_3 as required };
267
269
  export namespace properties_6 {
268
270
  export namespace label_2 {
269
271
  const _default_14: string;
270
272
  export { _default_14 as default };
271
- const type_21: string;
272
- export { type_21 as type };
273
+ const type_22: string;
274
+ export { type_22 as type };
273
275
  }
274
276
  export { label_2 as label };
275
277
  }
@@ -278,16 +280,16 @@ export namespace textSchema {
278
280
  export namespace attachSchema {
279
281
  const title_28: string;
280
282
  export { title_28 as title };
281
- const type_22: string;
282
- export { type_22 as type };
283
+ const type_23: string;
284
+ export { type_23 as type };
283
285
  const required_4: string[];
284
286
  export { required_4 as required };
285
287
  export namespace properties_7 {
286
288
  namespace name {
287
289
  const title_29: string;
288
290
  export { title_29 as title };
289
- const type_23: string;
290
- export { type_23 as type };
291
+ const type_24: string;
292
+ export { type_24 as type };
291
293
  export const minLength: number;
292
294
  const maxLength_3: number;
293
295
  export { maxLength_3 as maxLength };
@@ -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
  declare const EmptySearchResult: ({ textInfo }: {
17
18
  textInfo: any;
18
19
  }) => JSX.Element;
@@ -22,6 +22,7 @@ interface TemplateLibProps {
22
22
  lib: Array<Template>;
23
23
  selected: Template;
24
24
  mode: string;
25
+ initialTab: number;
25
26
  }
26
27
  interface TemplateLibCallProps {
27
28
  onAttach: (tmpl: Template) => void;
@@ -31,6 +32,9 @@ interface TemplateLibCallProps {
31
32
  onFilter: (filter: string) => void;
32
33
  onOk: (res: any) => void;
33
34
  onSelect: (res: any) => void;
35
+ functionalGroups: (Template & {
36
+ modifiedStruct: Struct;
37
+ })[];
34
38
  }
35
39
  declare type Props = TemplateLibProps & TemplateLibCallProps;
36
40
  export interface Result {
@@ -39,5 +43,7 @@ export interface Result {
39
43
  bid: number | null;
40
44
  mode: string;
41
45
  }
42
- declare const _default: import("react-redux").ConnectedComponent<FC<Props>, import("react-redux").Omit<Props, never>>;
46
+ declare const _default: import("react-redux").ConnectedComponent<FC<Props>, import("react-redux").Omit<TemplateLibProps & TemplateLibCallProps & {
47
+ children?: import("react").ReactNode;
48
+ }, "initialTab" | "functionalGroups" | "onFilter" | "onSelect" | "onChangeGroup" | "onAttach" | "onDelete" | "onOk">>;
43
49
  export default _default;
@@ -15,15 +15,9 @@
15
15
  ***************************************************************************/
16
16
  import { FC } from 'react';
17
17
  import { Struct } from 'ketcher-core';
18
- interface TemplateTableProps {
19
- templates: Array<Template>;
20
- selected: Template | null;
21
- onSelect: (tmpl: Template) => void;
22
- onDelete?: (tmpl: Template) => void;
23
- onAttach?: (tmpl: Template) => void;
24
- }
25
18
  export interface Template {
26
19
  struct: Struct;
20
+ modifiedStruct?: Struct;
27
21
  props: {
28
22
  atomid: number;
29
23
  bondid: number;
@@ -31,5 +25,14 @@ export interface Template {
31
25
  prerender?: string;
32
26
  };
33
27
  }
28
+ interface TemplateTableProps {
29
+ templates: Array<Template>;
30
+ selected: Template | null;
31
+ onSelect: (tmpl: Template) => void;
32
+ onDelete?: (tmpl: Template) => void;
33
+ onAttach?: (tmpl: Template) => void;
34
+ titleRows?: 1 | 2;
35
+ onDoubleClick: (tmpl: Template) => void;
36
+ }
34
37
  declare const TemplateTable: FC<TemplateTableProps>;
35
38
  export default TemplateTable;
@@ -1,2 +1,28 @@
1
- declare var _default: import("react-redux").ConnectedComponent<import("draft-js/node_modules/@types/react").ComponentType<import("react-redux").Matching<any, any>>, import("react-redux").Omit<import("react-redux").Matching<any, any>, string | number | symbol> | import("react-redux").Omit<import("draft-js/node_modules/@types/react").ClassAttributes<import("draft-js/node_modules/@types/react").Component<import("react-redux").Matching<any, any>, any, any>> & import("react-redux").Matching<any, any>, string | number | symbol>>;
1
+ declare var _default: import("react-redux").ConnectedComponent<typeof Attach, import("react-redux").Omit<{
2
+ [x: string]: any;
3
+ onInit: any;
4
+ }, string | number>>;
2
5
  export default _default;
6
+ declare class Attach extends Component<any, any, any> {
7
+ constructor({ onInit, ...props }: {
8
+ [x: string]: any;
9
+ onInit: any;
10
+ });
11
+ tmpl: {
12
+ struct: any;
13
+ props: {
14
+ atomid: number;
15
+ bondid: number;
16
+ };
17
+ };
18
+ onResult(): {
19
+ name: any;
20
+ attach: {
21
+ atomid: any;
22
+ bondid: any;
23
+ };
24
+ } | null;
25
+ checkIsValidName(name: any): boolean;
26
+ render(): JSX.Element;
27
+ }
28
+ import { Component } from "react";
@@ -38,5 +38,7 @@ interface EnhancedStereoCallProps {
38
38
  onOk: (res: any) => void;
39
39
  }
40
40
  declare type Props = EnhancedStereoProps & EnhancedStereoCallProps;
41
- declare const _default: import("react-redux").ConnectedComponent<FC<Props>, import("react-redux").Omit<Props, "formState" | "struct">>;
41
+ declare const _default: import("react-redux").ConnectedComponent<FC<Props>, import("react-redux").Omit<EnhancedStereoProps & EnhancedStereoCallProps & {
42
+ children?: import("react").ReactNode;
43
+ }, "formState" | "struct">>;
42
44
  export default _default;
@@ -22,4 +22,5 @@ export default function initEditor(dispatch: any, getState: any): {
22
22
  onAromatizeStruct: (struct: any) => any;
23
23
  onDearomatizeStruct: (struct: any) => any;
24
24
  onMouseDown: () => void;
25
+ onConfirm: () => Promise<any>;
25
26
  };
@@ -15,6 +15,8 @@
15
15
  ***************************************************************************/
16
16
  import { RequestActionTypes, RequestState } from './request.types';
17
17
  export declare function indigoVerification(data: boolean): RequestActionTypes;
18
+ export declare function setAnalyzingFile(data: boolean): RequestActionTypes;
18
19
  export default function (state: {
19
20
  indigoVerification: boolean;
21
+ isAnalyzingFile: boolean;
20
22
  } | undefined, action: RequestActionTypes): RequestState;
@@ -14,11 +14,13 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  export declare const INDIGO_VERIFICATION = "INDIGO_VERIFICATION";
17
+ export declare const ANALYZING_FILE = "ANALYZING_FILE";
17
18
  export interface RequestState {
18
19
  indigoVerification: boolean;
20
+ isAnalyzingFile: boolean;
19
21
  }
20
22
  interface IndigoVerificationAction {
21
- type: typeof INDIGO_VERIFICATION;
23
+ type: string;
22
24
  data: boolean;
23
25
  }
24
26
  export declare type RequestActionTypes = IndigoVerificationAction;
@@ -13,4 +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 } from './GenGroup';
16
+ export function fileOpener(server: any): Promise<any>;
@@ -1,3 +1,6 @@
1
+ import { Option } from '../component/form/Select';
1
2
  export declare function greekify(str: string): string;
2
3
  export declare function filterLib(lib: any, filter: any): {};
3
4
  export declare function filterFGLib(lib: any, filter: any): {};
5
+ export { fileOpener } from './fileOpener';
6
+ export declare const getSelectOptionsFromSchema: (schema: any) => Array<Option>;
@@ -14,21 +14,29 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  import { FC, ReactElement } from 'react';
17
- interface DialogProps {
18
- title: string;
19
- params: DialogParams;
20
- buttons?: Array<string | ReactElement>;
21
- className: string;
17
+ interface DialogParamsCallProps {
18
+ onCancel: () => void;
19
+ onOk: (result: any) => void;
22
20
  }
23
21
  export interface DialogParams extends DialogParamsCallProps {
24
22
  className?: string;
25
23
  }
26
- interface DialogParamsCallProps {
27
- onCancel: () => void;
28
- onOk: (result: any) => void;
24
+ interface DialogProps {
25
+ title?: string;
26
+ params: DialogParams;
27
+ buttons?: Array<string | ReactElement>;
28
+ className?: string;
29
+ needMargin?: boolean;
30
+ withDivider?: boolean;
31
+ headerContent?: ReactElement;
32
+ footerContent?: ReactElement;
33
+ buttonsNameMap?: {
34
+ [key in string]: string;
35
+ };
36
+ focusable?: boolean;
29
37
  }
30
38
  interface DialogCallProps {
31
- result: () => any;
39
+ result?: () => any;
32
40
  valid?: () => boolean;
33
41
  }
34
42
  declare type Props = DialogProps & DialogCallProps;
@@ -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 './GenericGroups';
16
+ /// <reference types="react" />
17
+ export declare const LoadingCircles: () => JSX.Element;
@@ -13,4 +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 } from './Spinner';
16
+ export * from './LoadingCircles';
@@ -3,7 +3,12 @@ declare class StructEditor extends Component<any, any, any> {
3
3
  constructor(props: any);
4
4
  editorRef: import("react").RefObject<any>;
5
5
  logRef: import("react").RefObject<any>;
6
+ shouldComponentUpdate(nextProps: any): boolean;
7
+ UNSAFE_componentWillReceiveProps(props: any): void;
8
+ componentDidMount(): void;
6
9
  editor: Editor | undefined;
10
+ componentWillUnmount(): void;
11
+ render(): JSX.Element;
7
12
  }
8
13
  import { Component } from "react";
9
14
  import Editor from "../../../../editor";
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  ***************************************************************************/
16
16
  import Dialog from './Dialog';
17
- import Spinner from './Spinner';
17
+ import { LoadingCircles } from './Spinner';
18
18
  import StructEditor from './StructEditor';
19
- export { Dialog, StructEditor, Spinner };
19
+ export { Dialog, StructEditor, LoadingCircles };
@@ -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 { BaseCallProps } from './modal.types';
17
18
  interface ModalProps extends BaseCallProps {
18
19
  modal: {
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare type ConfirmProps = {
3
+ onOk: () => void;
4
+ onCancel: () => void;
5
+ };
6
+ export declare const Confirm: ({ onOk, onCancel }: ConfirmProps) => JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Confirm';
@@ -0,0 +1,2 @@
1
+ export default ExtendedTable;
2
+ declare const ExtendedTable: import("react-redux").ConnectedComponent<(props: any) => JSX.Element, any>;
@@ -0,0 +1,18 @@
1
+ /****************************************************************************
2
+ * Copyright 2022 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 declare const HorizontalBoxWithLines: () => JSX.Element;
18
+ export declare const VerticalBoxWithLines: () => JSX.Element;