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.
- package/README.md +14 -8
- package/dist/Editor.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +11335 -6836
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11327 -6838
- package/dist/index.modern.js.map +1 -1
- package/dist/script/builders/ketcher/ButtonName.d.ts +1 -1
- package/dist/script/editor/Editor.d.ts +2 -1
- package/dist/script/editor/shared/closest.d.ts +1 -1
- package/dist/script/editor/tool/apoint.d.ts +18 -7
- package/dist/script/editor/tool/atom.d.ts +23 -18
- package/dist/script/editor/tool/attach.d.ts +19 -11
- package/dist/script/editor/tool/bond.d.ts +22 -15
- package/dist/script/editor/tool/chain.d.ts +21 -13
- package/dist/script/editor/tool/charge.d.ts +19 -8
- package/dist/script/editor/tool/enhanced-stereo.d.ts +7 -1
- package/dist/script/editor/tool/eraser.d.ts +24 -12
- package/dist/script/editor/tool/helper/lasso.d.ts +45 -30
- package/dist/script/editor/tool/helper/locate.d.ts +36 -21
- package/dist/script/editor/tool/index.d.ts +2 -2
- package/dist/script/editor/tool/paste.d.ts +23 -13
- package/dist/script/editor/tool/reactionarrow.d.ts +21 -8
- package/dist/script/editor/tool/reactionmap.d.ts +21 -9
- package/dist/script/editor/tool/reactionplus.d.ts +19 -6
- package/dist/script/editor/tool/reactionunmap.d.ts +18 -3
- package/dist/script/editor/tool/rgroupatom.d.ts +18 -6
- package/dist/script/editor/tool/rgroupfragment.d.ts +18 -7
- package/dist/script/editor/tool/rotate.d.ts +22 -10
- package/dist/script/editor/tool/sgroup.d.ts +23 -11
- package/dist/script/editor/tool/simpleobject.d.ts +20 -7
- package/dist/script/editor/tool/template.d.ts +24 -19
- package/dist/script/editor/tool/text.d.ts +1 -2
- package/dist/script/ui/App/App.container.d.ts +1 -0
- package/dist/script/ui/App/App.d.ts +1 -0
- package/dist/script/ui/App/AppHidden/AppHidden.container.d.ts +1 -0
- package/dist/script/ui/App/AppHidden/AppHidden.d.ts +1 -0
- package/dist/script/ui/Portal/Portal.d.ts +1 -1
- package/dist/script/ui/action/action.types.d.ts +1 -1
- package/dist/script/ui/action/fullscreen.d.ts +23 -0
- package/dist/script/ui/action/functionalGroups.d.ts +3 -0
- package/dist/script/ui/action/help.d.ts +8 -0
- package/dist/script/ui/action/index.d.ts +66 -5
- package/dist/script/ui/action/isHidden.d.ts +1 -3
- package/dist/script/ui/action/server.d.ts +1 -3
- package/dist/script/ui/action/tools.d.ts +33 -0
- package/dist/script/ui/component/ContextMenu/ContextMenu.d.ts +1 -0
- package/dist/script/ui/component/cliparea/cliparea.d.ts +4 -0
- package/dist/script/ui/component/form/MeasureInput/measure-input.d.ts +8 -0
- package/dist/script/ui/component/form/Select/Select.d.ts +30 -0
- package/dist/script/ui/component/form/Select/Select.test.d.ts +1 -0
- package/dist/script/ui/{views/modal/components/PeriodTable/components/GenericGroups/components/components → component/form/Select}/index.d.ts +2 -1
- package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +1 -0
- package/dist/script/ui/component/form/combobox/combobox.d.ts +4 -0
- package/dist/script/ui/component/form/form/form.d.ts +9 -4
- package/dist/script/ui/component/form/input.d.ts +19 -1
- package/dist/script/ui/component/form/{select.d.ts → select-list.d.ts} +0 -0
- package/dist/script/ui/component/structrender.d.ts +28 -4
- package/dist/script/ui/component/view/Atom/Atom.d.ts +2 -2
- package/dist/script/ui/component/view/Tabs/Tabs.d.ts +3 -0
- package/dist/script/ui/component/view/openbutton.d.ts +2 -0
- package/dist/script/ui/data/schema/options-schema.d.ts +2 -2
- package/dist/script/ui/data/schema/sdata-schema.d.ts +11 -9
- package/dist/script/ui/data/schema/struct-schema.d.ts +30 -28
- package/dist/script/ui/dialog/template/EmptySearchResult.d.ts +1 -0
- package/dist/script/ui/dialog/template/TemplateDialog.d.ts +7 -1
- package/dist/script/ui/dialog/template/TemplateTable.d.ts +10 -7
- package/dist/script/ui/dialog/template/template-attach.d.ts +27 -1
- package/dist/script/ui/dialog/toolbox/enhancedStereo/enhancedStereo.d.ts +3 -1
- package/dist/script/ui/state/editor/index.d.ts +1 -0
- package/dist/script/ui/state/request/index.d.ts +2 -0
- package/dist/script/ui/state/request/request.types.d.ts +3 -1
- package/dist/script/ui/{views/modal/components/PeriodTable/components/GenericGroups/components/index.d.ts → utils/fileOpener.d.ts} +1 -1
- package/dist/script/ui/utils/index.d.ts +3 -0
- package/dist/script/ui/views/components/Dialog/Dialog.d.ts +17 -9
- package/dist/script/ui/views/{modal/components/PeriodTable/components/GenericGroups/index.d.ts → components/Spinner/LoadingCircles.d.ts} +2 -1
- package/dist/script/ui/views/components/Spinner/index.d.ts +1 -1
- package/dist/script/ui/views/components/StructEditor/StructEditor.d.ts +5 -0
- package/dist/script/ui/views/components/index.d.ts +2 -2
- package/dist/script/ui/views/modal/Modal.d.ts +1 -0
- package/dist/script/ui/views/modal/components/Confirm/Confirm.d.ts +7 -0
- package/dist/script/ui/views/modal/components/Confirm/index.d.ts +1 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/ExtendedTable.d.ts +2 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/BoxWithLines.d.ts +18 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenGroup.d.ts +24 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenSet.d.ts +26 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenericGroups.d.ts +22 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/index.d.ts +27 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/helpers.d.ts +1 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/index.d.ts +1 -0
- package/dist/script/ui/views/modal/components/PeriodTable/PeriodTable.d.ts +9 -4
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/ElementsTable.d.ts +2 -0
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/MainRow.d.ts +3 -2
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/OutinerRow.d.ts +3 -2
- package/dist/script/ui/views/modal/components/PeriodTable/components/index.d.ts +1 -1
- package/dist/script/ui/views/modal/components/Text/FontControl/FontControl.d.ts +1 -0
- package/dist/script/ui/views/{components/FunctionalGroups/FunctionalGroups.d.ts → modal/components/Text/SpecialSymbols/SpecialSymbolsButton.d.ts} +7 -8
- package/dist/script/ui/views/{components/Spinner/Spinner.d.ts → modal/components/Text/SpecialSymbolsList/SpecialSymbolsList.d.ts} +5 -3
- package/dist/script/ui/views/modal/components/Text/Text.d.ts +1 -0
- package/dist/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +1 -0
- package/dist/script/ui/views/modal/components/document/Open/Open.container.d.ts +7 -1
- package/dist/script/ui/views/modal/components/document/Open/Open.d.ts +6 -1
- package/dist/script/ui/views/modal/components/document/Open/components/AnalyzingFile.d.ts +20 -0
- package/dist/script/ui/views/modal/components/document/Open/components/DialogActionButton.d.ts +25 -0
- package/dist/script/ui/views/modal/components/document/Open/components/FileDrop.d.ts +26 -0
- package/dist/script/ui/views/modal/components/document/Open/components/OpenOptions.d.ts +24 -0
- package/dist/script/ui/views/modal/components/document/Open/components/TextEditor.d.ts +21 -0
- package/dist/script/ui/views/modal/components/document/Open/components/ViewSwitcher.d.ts +31 -0
- package/dist/script/ui/views/modal/components/document/Save/Save.d.ts +16 -6
- package/dist/script/ui/views/modal/components/meta/About/About.d.ts +1 -1
- package/dist/script/ui/views/modal/components/meta/Settings/Accordion/Accordion.d.ts +22 -0
- package/dist/script/ui/views/modal/components/meta/Settings/{components/Accordion → Accordion}/index.d.ts +0 -0
- package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +1 -0
- package/dist/script/ui/views/modal/components/meta/Settings/fieldGroups.d.ts +41 -0
- package/dist/script/ui/views/modal/components/process/Analyse/Analyse.d.ts +3 -0
- package/dist/script/ui/views/modal/components/process/Analyse/components/FormulaInput/FormulaInput.d.ts +2 -1
- package/dist/script/ui/views/modal/components/process/Miew/Miew.d.ts +30 -9
- package/dist/script/ui/views/modal/components/process/Recognize/Recognize.d.ts +1 -1
- package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +3 -1
- package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/FG/RemoveFG.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +1 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +1 -0
- package/dist/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +1 -0
- package/dist/script/ui/views/toolbars/BottomToolbar/BottomToolbar.d.ts +2 -2
- package/dist/script/ui/views/toolbars/BottomToolbar/TemplatesList/TemplatesList.d.ts +1 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/Bond/Bond.d.ts +2 -2
- package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +3 -2
- package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.d.ts +2 -2
- package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/RGroup.d.ts +2 -2
- package/dist/script/ui/views/toolbars/LeftToolbar/Shape/Shape.d.ts +2 -2
- package/dist/script/ui/views/toolbars/LeftToolbar/Transform/Transform.d.ts +2 -2
- package/dist/script/ui/views/toolbars/RightToolbar/AtomsList/AtomsList.d.ts +2 -2
- package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.d.ts +2 -2
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/ActionButton.d.ts +1 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarGroupItem.d.ts +1 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/ToolbarMultiToolItem.d.ts +1 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/DefaultMultiTool/DefaultMultiTool.d.ts +3 -4
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/GroupedMultiTool/GroupedMultiTool.d.ts +3 -4
- package/dist/script/ui/views/toolbars/TopToolbar/ClipboardControls.d.ts +31 -0
- package/dist/script/ui/views/{components/FunctionalGroups/index.d.ts → toolbars/TopToolbar/Divider.d.ts} +2 -1
- package/dist/script/ui/views/toolbars/TopToolbar/ElementWithDropdown.d.ts +23 -0
- package/dist/script/ui/views/toolbars/TopToolbar/ExternalFuncControls.d.ts +36 -0
- package/dist/script/ui/views/toolbars/TopToolbar/FileControls.d.ts +26 -0
- package/dist/script/ui/views/toolbars/TopToolbar/IconButton.d.ts +26 -0
- package/dist/script/ui/views/toolbars/TopToolbar/ScaleTransformer.d.ts +24 -0
- package/dist/script/ui/views/toolbars/TopToolbar/SystemControls.d.ts +28 -0
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +2 -2
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +40 -9
- package/dist/script/ui/views/toolbars/TopToolbar/UndoRedo.d.ts +27 -0
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomControls.d.ts +29 -0
- package/dist/script/ui/views/toolbars/TopToolbar/{ZoomList/ZoomList.d.ts → ZoomInput.d.ts} +9 -13
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomList.d.ts +23 -0
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomSlider.d.ts +22 -0
- package/dist/script/ui/views/toolbars/mediaSizes.d.ts +0 -2
- package/dist/script/ui/views/toolbars/toolbar.types.d.ts +3 -3
- package/package.json +47 -58
- package/LICENSE +0 -201
- package/dist/script/ui/component/form/measure-input.d.ts +0 -8
- package/dist/script/ui/component/view/spin.d.ts +0 -4
- package/dist/script/ui/views/modal/components/PeriodTable/components/GenericGroups/GenericGroups.d.ts +0 -7
- package/dist/script/ui/views/modal/components/PeriodTable/components/GenericGroups/components/GenGroup.d.ts +0 -8
- package/dist/script/ui/views/modal/components/PeriodTable/components/GenericGroups/components/components/GenSet.d.ts +0 -8
- package/dist/script/ui/views/modal/components/document/Save/SaveImageTab.d.ts +0 -4
- package/dist/script/ui/views/modal/components/meta/Settings/components/Accordion/Accordion.d.ts +0 -36
- package/dist/script/ui/views/toolbars/TopToolbar/HelpLink/HelpLink.d.ts +0 -19
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomList/index.d.ts +0 -16
package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenGroup.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
import type { GenGroup as GenGroupType } from 'ketcher-core';
|
|
18
|
+
declare type GenProps = {
|
|
19
|
+
selected: (label: string) => boolean;
|
|
20
|
+
onAtomSelect: (label: string) => void;
|
|
21
|
+
group: GenGroupType;
|
|
22
|
+
};
|
|
23
|
+
declare const GenGroup: ({ group, onAtomSelect, selected }: GenProps) => JSX.Element;
|
|
24
|
+
export { GenGroup };
|
package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenSet.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
import type { GenItemSet } from 'ketcher-core';
|
|
18
|
+
declare type GenSetProps = {
|
|
19
|
+
labels: GenItemSet[];
|
|
20
|
+
selected: (label: string) => boolean;
|
|
21
|
+
onAtomSelect: (label: string) => void;
|
|
22
|
+
className?: string;
|
|
23
|
+
group: string;
|
|
24
|
+
};
|
|
25
|
+
declare function GenSet({ labels, selected, onAtomSelect, className, group }: GenSetProps): JSX.Element;
|
|
26
|
+
export { GenSet };
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
declare type GenericGroupsProps = {
|
|
18
|
+
selected: (label: string) => boolean;
|
|
19
|
+
onAtomSelect: (label: string) => void;
|
|
20
|
+
};
|
|
21
|
+
declare function GenericGroups({ selected, onAtomSelect }: GenericGroupsProps): JSX.Element;
|
|
22
|
+
export default GenericGroups;
|
package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
export { default } from './GenericGroups';
|
|
17
|
+
export declare enum groupNames {
|
|
18
|
+
atomsGen = "atoms-gen",
|
|
19
|
+
specialNodes = "special-nodes",
|
|
20
|
+
groupGen = "group-gen",
|
|
21
|
+
groupAcyclic = "group-acyclic",
|
|
22
|
+
acyclicCarbo = "acyclic-carbo",
|
|
23
|
+
acyclicHetero = "acyclic-hetero",
|
|
24
|
+
groupCyclic = "group-cyclic",
|
|
25
|
+
cyclicHetero = "cyclic-hetero",
|
|
26
|
+
cyclicCarbo = "cyclic-carbo"
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function isGenericGroup(group: any): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ExtendedTable";
|
|
@@ -2,11 +2,16 @@ export default PeriodTable;
|
|
|
2
2
|
declare const PeriodTable: import("react-redux").ConnectedComponent<typeof Table, any>;
|
|
3
3
|
declare class Table extends Component<any, any, any> {
|
|
4
4
|
constructor(props: any);
|
|
5
|
-
|
|
5
|
+
state: {
|
|
6
|
+
type: any;
|
|
7
|
+
value: any;
|
|
8
|
+
current: import("ketcher-core").Element | undefined;
|
|
9
|
+
isInfo: boolean;
|
|
10
|
+
};
|
|
6
11
|
changeType: (type: any) => void;
|
|
7
|
-
|
|
12
|
+
headerContent: () => JSX.Element;
|
|
8
13
|
selected: (label: any) => any;
|
|
9
|
-
|
|
14
|
+
onAtomSelect: (label: any, activateImmidiatly?: boolean) => void;
|
|
10
15
|
result: () => {
|
|
11
16
|
label: any;
|
|
12
17
|
pseudo: null;
|
|
@@ -27,6 +32,6 @@ declare class Table extends Component<any, any, any> {
|
|
|
27
32
|
onMouseEnter: () => void;
|
|
28
33
|
onMouseLeave: () => void;
|
|
29
34
|
};
|
|
30
|
-
|
|
35
|
+
render(): JSX.Element;
|
|
31
36
|
}
|
|
32
37
|
import { Component } from "react";
|
|
@@ -2,6 +2,8 @@ export default ElementsTable;
|
|
|
2
2
|
declare class ElementsTable extends Component<any, any, any> {
|
|
3
3
|
constructor(props: any);
|
|
4
4
|
constructor(props: any, context: any);
|
|
5
|
+
shouldComponentUpdate(nextProps: any): boolean;
|
|
5
6
|
getAtomClassNames: (item: any) => string[];
|
|
7
|
+
render(): JSX.Element;
|
|
6
8
|
}
|
|
7
9
|
import { Component } from "react";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export default MainRow;
|
|
2
|
-
declare function MainRow({ row, caption, refer,
|
|
2
|
+
declare function MainRow({ row, caption, refer, onAtomSelect, onDoubleClick, currentEvents, atomClassNames, className }: {
|
|
3
3
|
row: any;
|
|
4
4
|
caption: any;
|
|
5
5
|
refer: any;
|
|
6
|
-
|
|
6
|
+
onAtomSelect: any;
|
|
7
|
+
onDoubleClick: any;
|
|
7
8
|
currentEvents: any;
|
|
8
9
|
atomClassNames: any;
|
|
9
10
|
className: any;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export default OutinerRow;
|
|
2
|
-
declare function OutinerRow({ row, caption,
|
|
2
|
+
declare function OutinerRow({ row, caption, onAtomSelect, onDoubleClick, currentEvents, atomClassNames, className }: {
|
|
3
3
|
row: any;
|
|
4
4
|
caption: any;
|
|
5
|
-
|
|
5
|
+
onAtomSelect: any;
|
|
6
|
+
onDoubleClick: any;
|
|
6
7
|
currentEvents: any;
|
|
7
8
|
atomClassNames: any;
|
|
8
9
|
className: any;
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import AtomInfo from './AtomInfo';
|
|
17
17
|
import ElementsTable from './ElementsTable';
|
|
18
|
-
import GenericGroups from '
|
|
18
|
+
import GenericGroups from '../../ExtendedTable/components/GenericGroups';
|
|
19
19
|
import TypeChoice from './TypeChoice';
|
|
20
20
|
export { ElementsTable, AtomInfo, TypeChoice, GenericGroups };
|
|
@@ -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
|
export declare const FontControl: ({ editorState, setEditorState, styles }: {
|
|
17
18
|
editorState: any;
|
|
18
19
|
setEditorState: any;
|
|
@@ -13,11 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export default FunctionalGroups;
|
|
16
|
+
/// <reference types="react" />
|
|
17
|
+
declare const SpecialSymbolsButton: ({ editorState, setEditorState, styles }: {
|
|
18
|
+
editorState: any;
|
|
19
|
+
setEditorState: any;
|
|
20
|
+
styles: any;
|
|
21
|
+
}) => JSX.Element;
|
|
22
|
+
export { SpecialSymbolsButton };
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
|
|
17
|
-
declare
|
|
18
|
-
|
|
16
|
+
/// <reference types="react" />
|
|
17
|
+
declare const SpecialSymbolsList: ({ select }: {
|
|
18
|
+
select: any;
|
|
19
|
+
}) => JSX.Element;
|
|
20
|
+
export { SpecialSymbolsList };
|
|
@@ -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 'draft-js/dist/Draft.css';
|
|
17
18
|
import { DialogParams } from '../../../components/Dialog/Dialog';
|
|
18
19
|
interface TextProps extends DialogParams {
|
|
@@ -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 { TextCommand } from 'ketcher-core';
|
|
17
18
|
interface TextButtonProps {
|
|
18
19
|
button: {
|
|
@@ -16,5 +16,11 @@
|
|
|
16
16
|
/// <reference types="react" />
|
|
17
17
|
import { OpenProps } from './Open';
|
|
18
18
|
import { BaseCallProps } from '../../../modal.types';
|
|
19
|
-
declare const OpenContainer: import("react-redux").ConnectedComponent<import("react").FC<OpenProps & Pick<import("../../../modal.types").BaseProps, "className"> & BaseCallProps
|
|
19
|
+
declare const OpenContainer: import("react-redux").ConnectedComponent<import("react").FC<OpenProps & Pick<import("../../../modal.types").BaseProps, "className"> & BaseCallProps & {
|
|
20
|
+
onImageUpload: (file: File) => void;
|
|
21
|
+
}>, import("react-redux").Omit<OpenProps & Pick<import("../../../modal.types").BaseProps, "className"> & BaseCallProps & {
|
|
22
|
+
onImageUpload: (file: File) => void;
|
|
23
|
+
} & {
|
|
24
|
+
children?: import("react").ReactNode;
|
|
25
|
+
}, "onOk" | "server" | "errorHandler" | "isRecognizeDisabled" | "isAnalyzingFile" | "onImageUpload">>;
|
|
20
26
|
export default OpenContainer;
|
|
@@ -17,8 +17,13 @@ import { BaseCallProps, BaseProps } from '../../../modal.types';
|
|
|
17
17
|
import { FC } from 'react';
|
|
18
18
|
interface OpenProps {
|
|
19
19
|
server: any;
|
|
20
|
+
errorHandler: (err: string) => void;
|
|
21
|
+
isRecognizeDisabled: boolean;
|
|
22
|
+
isAnalyzingFile: boolean;
|
|
20
23
|
}
|
|
21
|
-
declare type Props = OpenProps & Pick<BaseProps, 'className'> & BaseCallProps
|
|
24
|
+
declare type Props = OpenProps & Pick<BaseProps, 'className'> & BaseCallProps & {
|
|
25
|
+
onImageUpload: (file: File) => void;
|
|
26
|
+
};
|
|
22
27
|
declare const Open: FC<Props>;
|
|
23
28
|
export type { OpenProps };
|
|
24
29
|
export default Open;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 declare type AnalyzingFileProps = {
|
|
18
|
+
fileName?: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const AnalyzingFile: ({ fileName }: AnalyzingFileProps) => JSX.Element;
|
package/dist/script/ui/views/modal/components/document/Open/components/DialogActionButton.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
declare type Props = {
|
|
18
|
+
clickHandler: () => void;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
label: string;
|
|
21
|
+
styles: string;
|
|
22
|
+
title?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const DialogActionButton: ({ clickHandler, label, title, styles, disabled }: Props) => JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
import { DropzoneOptions } from 'react-dropzone';
|
|
18
|
+
declare type FileDropProps = {
|
|
19
|
+
buttonLabel: string;
|
|
20
|
+
textLabel: string;
|
|
21
|
+
iconName: string;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
disabledText?: string;
|
|
24
|
+
} & DropzoneOptions;
|
|
25
|
+
declare const FileDrop: ({ buttonLabel, textLabel, iconName, disabled, disabledText, ...rest }: FileDropProps) => JSX.Element;
|
|
26
|
+
export { FileDrop };
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { FC } from 'react';
|
|
17
|
+
export declare type OpenOptionsProps = {
|
|
18
|
+
selectClipboard: () => void;
|
|
19
|
+
errorHandler: (err: string) => void;
|
|
20
|
+
fileLoadHandler: (files: File[]) => void;
|
|
21
|
+
imageLoadHandler: (files: File[]) => void;
|
|
22
|
+
isRecognizeDisabled: boolean;
|
|
23
|
+
};
|
|
24
|
+
export declare const OpenOptions: FC<OpenOptionsProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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 declare type TextEditorProps = {
|
|
18
|
+
structStr: string;
|
|
19
|
+
inputHandler: (str: string) => void;
|
|
20
|
+
};
|
|
21
|
+
export declare const TextEditor: ({ structStr, inputHandler }: TextEditorProps) => JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { FC } from 'react';
|
|
17
|
+
import { AnalyzingFileProps } from './AnalyzingFile';
|
|
18
|
+
import { OpenOptionsProps } from './OpenOptions';
|
|
19
|
+
import { TextEditorProps } from './TextEditor';
|
|
20
|
+
declare type ViewStates = {
|
|
21
|
+
idle: string;
|
|
22
|
+
textEditor: string;
|
|
23
|
+
imageRec: string;
|
|
24
|
+
};
|
|
25
|
+
declare type SwitchProps = {
|
|
26
|
+
currentState: string;
|
|
27
|
+
states: ViewStates;
|
|
28
|
+
isAnalyzingFile: boolean;
|
|
29
|
+
} & OpenOptionsProps & TextEditorProps & AnalyzingFileProps;
|
|
30
|
+
export declare const ViewSwitcher: FC<SwitchProps>;
|
|
31
|
+
export {};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
export default Save;
|
|
2
|
-
declare const Save: import("react-redux").ConnectedComponent<typeof SaveDialog, import("react-redux").Omit<any, "
|
|
2
|
+
declare const Save: import("react-redux").ConnectedComponent<typeof SaveDialog, import("react-redux").Omit<any, "options" | "server" | "formState" | "struct" | "checkState" | "onCheck" | "moleculeErrors" | "onTmplSave" | "onResetForm">>;
|
|
3
3
|
declare class SaveDialog extends Component<any, any, any> {
|
|
4
4
|
static contextType: import("react").Context<import("../../../../../../../contexts").IErrorsContext>;
|
|
5
5
|
constructor(props: any);
|
|
6
|
+
state: {
|
|
7
|
+
disableControls: boolean;
|
|
8
|
+
imageFormat: string;
|
|
9
|
+
tabIndex: number;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
};
|
|
6
12
|
isRxn: any;
|
|
7
13
|
textAreaRef: import("react").RefObject<any>;
|
|
8
14
|
saveSchema: {
|
|
@@ -13,7 +19,7 @@ declare class SaveDialog extends Component<any, any, any> {
|
|
|
13
19
|
title: string;
|
|
14
20
|
type: string;
|
|
15
21
|
maxLength: number;
|
|
16
|
-
pattern:
|
|
22
|
+
pattern: string;
|
|
17
23
|
invalidMessage: (res: any) => "Filename should contain at least one character" | "Filename is too long" | "A filename cannot contain characters: \\ / : * ? \" < > | and cannot start with '.'";
|
|
18
24
|
};
|
|
19
25
|
format: {
|
|
@@ -23,12 +29,16 @@ declare class SaveDialog extends Component<any, any, any> {
|
|
|
23
29
|
};
|
|
24
30
|
};
|
|
25
31
|
};
|
|
32
|
+
componentDidMount(): void;
|
|
33
|
+
isImageFormat: (format: any) => boolean;
|
|
26
34
|
showStructWarningMessage: (format: any) => boolean;
|
|
27
|
-
changeType: (type: any) =>
|
|
35
|
+
changeType: (type: any) => any;
|
|
36
|
+
changeTab: (index: any) => void;
|
|
28
37
|
getWarnings: (format: any) => any[];
|
|
29
|
-
|
|
30
|
-
changeImageFormat: (imageFormat: any) => void;
|
|
38
|
+
renderForm: () => JSX.Element;
|
|
31
39
|
renderSaveFile: () => JSX.Element;
|
|
32
|
-
|
|
40
|
+
renderWarnings: () => JSX.Element | null;
|
|
41
|
+
getButtons: () => JSX.Element[];
|
|
42
|
+
render(): JSX.Element;
|
|
33
43
|
}
|
|
34
44
|
import { Component } from "react";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export default About;
|
|
2
|
-
declare const About: import("react-redux").ConnectedComponent<typeof AboutDialog, import("react-redux").Omit<any,
|
|
2
|
+
declare const About: import("react-redux").ConnectedComponent<typeof AboutDialog, import("react-redux").Omit<any, "date" | "onOk" | "indigoVersion" | "indigoMachine" | "feedbackLink" | "overviewLink" | "lifeScienciesLink" | "version">>;
|
|
3
3
|
declare function AboutDialog(props: any): JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 React from 'react';
|
|
17
|
+
declare const Accordion: ({ tabs, className, changedGroups }: {
|
|
18
|
+
tabs: any;
|
|
19
|
+
className: any;
|
|
20
|
+
changedGroups: any;
|
|
21
|
+
}) => React.ReactElement;
|
|
22
|
+
export default Accordion;
|
|
File without changes
|
|
@@ -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, BaseProps } from '../../../modal.types';
|
|
17
18
|
import { StructService } from 'ketcher-core';
|
|
18
19
|
interface SettingsProps extends BaseProps {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default fieldGroups;
|
|
2
|
+
declare const fieldGroups: {
|
|
3
|
+
resetToSelect: string;
|
|
4
|
+
rotationStep: string;
|
|
5
|
+
showValenceWarnings: string;
|
|
6
|
+
atomColoring: string;
|
|
7
|
+
font: string;
|
|
8
|
+
fontsz: string;
|
|
9
|
+
fontszsub: string;
|
|
10
|
+
showStereoFlags: string;
|
|
11
|
+
stereoLabelStyle: string;
|
|
12
|
+
colorOfAbsoluteCenters: string;
|
|
13
|
+
colorOfAndCenters: string;
|
|
14
|
+
colorOfOrCenters: string;
|
|
15
|
+
colorStereogenicCenters: string;
|
|
16
|
+
autoFadeOfStereoLabels: string;
|
|
17
|
+
absFlagLabel: string;
|
|
18
|
+
andFlagLabel: string;
|
|
19
|
+
orFlagLabel: string;
|
|
20
|
+
mixedFlagLabel: string;
|
|
21
|
+
carbonExplicitly: string;
|
|
22
|
+
showCharge: string;
|
|
23
|
+
showValence: string;
|
|
24
|
+
showHydrogenLabels: string;
|
|
25
|
+
aromaticCircle: string;
|
|
26
|
+
doubleBondWidth: string;
|
|
27
|
+
bondThickness: string;
|
|
28
|
+
stereoBondWidth: string;
|
|
29
|
+
'smart-layout': string;
|
|
30
|
+
'ignore-stereochemistry-errors': string;
|
|
31
|
+
'mass-skip-error-on-pseudoatoms': string;
|
|
32
|
+
'gross-formula-add-rsites': string;
|
|
33
|
+
'gross-formula-add-isotopes': string;
|
|
34
|
+
miewMode: string;
|
|
35
|
+
miewTheme: string;
|
|
36
|
+
miewAtomLabel: string;
|
|
37
|
+
showAtomIds: string;
|
|
38
|
+
showBondIds: string;
|
|
39
|
+
showHalfBondIds: string;
|
|
40
|
+
showLoopIds: string;
|
|
41
|
+
};
|
|
@@ -3,5 +3,8 @@ declare const Analyse: import("react-redux").ConnectedComponent<typeof AnalyseDi
|
|
|
3
3
|
declare class AnalyseDialog extends Component<any, any, any> {
|
|
4
4
|
static contextType: import("react").Context<import("../../../../../../../contexts").IErrorsContext>;
|
|
5
5
|
constructor(props: any);
|
|
6
|
+
constructor(props: any, context: any);
|
|
7
|
+
componentDidMount(): void;
|
|
8
|
+
render(): JSX.Element;
|
|
6
9
|
}
|
|
7
10
|
import { Component } from "react";
|
|
@@ -1,10 +1,31 @@
|
|
|
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
|
+
import { Struct, StructService } from 'ketcher-core';
|
|
18
|
+
declare type MiewDialogProps = {
|
|
19
|
+
miewOpts: any;
|
|
20
|
+
server: StructService;
|
|
21
|
+
struct: Struct;
|
|
22
|
+
onCancel: () => void;
|
|
23
|
+
onOk: (result: any) => void;
|
|
24
|
+
miewTheme: 'dark' | 'light';
|
|
25
|
+
};
|
|
26
|
+
declare type MiewDialogCallProps = {
|
|
27
|
+
onExportCML: (cmlStruct: string) => void;
|
|
28
|
+
};
|
|
29
|
+
declare type Props = MiewDialogProps & MiewDialogCallProps;
|
|
30
|
+
declare const Miew: import("react-redux").ConnectedComponent<({ miewOpts, server, struct, onExportCML, miewTheme, ...prop }: Props) => JSX.Element, import("react-redux").Omit<MiewDialogProps & MiewDialogCallProps, "miewOpts" | "server" | "struct" | "onExportCML" | "miewTheme">>;
|
|
1
31
|
export default Miew;
|
|
2
|
-
declare const Miew: import("react-redux").ConnectedComponent<typeof MiewDialog, import("react-redux").Omit<any, "struct" | "server" | "miewOpts" | "onExportCML">>;
|
|
3
|
-
declare class MiewDialog extends Component<any, any, any> {
|
|
4
|
-
constructor(props: any);
|
|
5
|
-
constructor(props: any, context: any);
|
|
6
|
-
viewer: any;
|
|
7
|
-
exportCML(): void;
|
|
8
|
-
miewContainer: HTMLDivElement | null | undefined;
|
|
9
|
-
}
|
|
10
|
-
import { Component } from "react";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export default Recognize;
|
|
2
|
-
declare const Recognize: import("react-redux").ConnectedComponent<typeof RecognizeDialog, import("react-redux").Omit<any, "fragment" | "file" | "
|
|
2
|
+
declare const Recognize: import("react-redux").ConnectedComponent<typeof RecognizeDialog, import("react-redux").Omit<any, "fragment" | "file" | "onOk" | "structStr" | "version" | "onImage" | "imagoVersions" | "onRecognize" | "isFragment" | "onChangeImago">>;
|
|
3
3
|
declare function RecognizeDialog(prop: any): JSX.Element;
|