ketcher-react 2.7.0-rc1 → 2.8.0-rc.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.
- package/dist/constants.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +4776 -19531
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4814 -19567
- package/dist/index.modern.js.map +1 -1
- package/dist/script/editor/Editor.d.ts +7 -1
- package/dist/script/editor/tool/bond.d.ts +2 -0
- package/dist/script/editor/tool/enhanced-stereo.d.ts +1 -1
- package/dist/script/editor/tool/hand.d.ts +1 -1
- package/dist/script/editor/tool/select.d.ts +1 -0
- package/dist/script/editor/tool/sgroup.d.ts +1 -1
- package/dist/script/ui/action/flips.d.ts +1 -0
- package/dist/script/ui/action/index.d.ts +2 -0
- package/dist/script/ui/action/tools.d.ts +3 -0
- package/dist/script/ui/component/actionmenu.d.ts +0 -1
- package/dist/script/ui/component/form/input.d.ts +35 -26
- package/dist/script/ui/component/structrender.d.ts +1 -1
- package/dist/script/ui/component/view/savebutton.d.ts +32 -2
- package/dist/script/ui/data/schema/sdata-schema.d.ts +1 -1
- package/dist/script/ui/dialog/template/TemplateDialog.d.ts +5 -3
- package/dist/script/ui/dialog/template/TemplateTable.d.ts +1 -0
- package/dist/script/ui/dialog/template/useSaltsAndSolvets.d.ts +2 -0
- package/dist/script/ui/state/editor/index.d.ts +1 -1
- package/dist/script/ui/state/functionalGroups/index.d.ts +1 -1
- package/dist/script/ui/state/handleHotkeysOverAtom.d.ts +7 -0
- package/dist/script/ui/state/modal/sdata.d.ts +1 -1
- package/dist/script/ui/state/saltsAndSolvents/index.d.ts +1 -1
- package/dist/script/ui/state/templates/index.d.ts +8 -0
- package/dist/script/ui/utils/index.d.ts +3 -2
- package/dist/script/ui/utils/renderStruct.d.ts +9 -0
- package/dist/script/ui/utils/settingsManager.d.ts +25 -0
- package/dist/script/ui/views/components/ContextMenu/ContextMenu.d.ts +20 -0
- package/dist/script/ui/views/components/ContextMenu/ContextMenuTrigger.d.ts +18 -0
- package/dist/script/ui/views/components/ContextMenu/contextMenu.types.d.ts +8 -0
- package/dist/script/ui/views/components/ContextMenu/index.d.ts +2 -0
- package/dist/script/ui/views/components/ContextMenu/items/AtomBatchOperations.d.ts +20 -0
- package/dist/script/ui/views/components/ContextMenu/items/AtomSingleOperations.d.ts +19 -0
- package/dist/script/ui/views/components/ContextMenu/items/BatchDelete.d.ts +3 -0
- package/dist/script/ui/views/components/ContextMenu/items/BondBatchOperations.d.ts +20 -0
- package/dist/script/ui/views/components/ContextMenu/items/BondSingleOperations.d.ts +19 -0
- package/dist/script/ui/views/components/ContextMenu/items/utils.d.ts +27 -0
- package/dist/script/ui/views/components/StructEditor/InfoPanel.d.ts +28 -1
- package/dist/script/ui/views/modal/components/process/Analyse/Analyse.d.ts +1 -1
- package/dist/script/ui/views/toolbars/TopToolbar/ExternalFuncControls.d.ts +1 -2
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +1 -1
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +1 -2
- package/dist/script/ui/views/toolbars/shortcutStr.d.ts +0 -15
- package/package.json +3 -1
|
@@ -33,6 +33,10 @@ declare class Editor implements KetcherEditor {
|
|
|
33
33
|
errorHandler: ((message: string) => void) | null;
|
|
34
34
|
highlights: Highlighter;
|
|
35
35
|
hoverIcon: any;
|
|
36
|
+
lastCursorPosition: {
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
};
|
|
36
40
|
event: {
|
|
37
41
|
message: Subscription;
|
|
38
42
|
elementEdit: PipelineSubscription;
|
|
@@ -57,6 +61,8 @@ declare class Editor implements KetcherEditor {
|
|
|
57
61
|
isDitrty(): boolean;
|
|
58
62
|
setOrigin(): void;
|
|
59
63
|
tool(name?: any, opts?: any): any;
|
|
64
|
+
updateHoverIconPosition(): void;
|
|
65
|
+
createHoverIcon(): void;
|
|
60
66
|
clear(): void;
|
|
61
67
|
renderAndRecoordinateStruct(struct: Struct): Struct;
|
|
62
68
|
struct(value?: Struct): Struct;
|
|
@@ -66,7 +72,7 @@ declare class Editor implements KetcherEditor {
|
|
|
66
72
|
zoom(value?: any): any;
|
|
67
73
|
selection(ci?: any): Selection | null;
|
|
68
74
|
hover(ci: any, newTool?: any, event?: PointerEvent): void;
|
|
69
|
-
update(action: Action | true, ignoreHistory?:
|
|
75
|
+
update(action: Action | true, ignoreHistory?: boolean): void;
|
|
70
76
|
historySize(): {
|
|
71
77
|
undo: any;
|
|
72
78
|
redo: number;
|
|
@@ -26,5 +26,7 @@ declare class BondTool {
|
|
|
26
26
|
mousedown(event: any): true | undefined;
|
|
27
27
|
mousemove(event: any): true | undefined;
|
|
28
28
|
mouseup(event: any): boolean;
|
|
29
|
+
restoreBondWhenHoveringOnCanvas(event: any): void;
|
|
30
|
+
getExistingBond(struct: any, begin: any, end: any): any[];
|
|
29
31
|
}
|
|
30
32
|
export default BondTool;
|
|
@@ -19,6 +19,6 @@ declare class EnhancedStereoTool {
|
|
|
19
19
|
stereoAtoms: Array<number>;
|
|
20
20
|
isNotActiveTool: true;
|
|
21
21
|
constructor(editor: any);
|
|
22
|
-
changeAtomsStereoAction(): any;
|
|
22
|
+
static changeAtomsStereoAction(editor: Editor, stereoAtoms: Array<number>): any;
|
|
23
23
|
}
|
|
24
24
|
export default EnhancedStereoTool;
|
|
@@ -26,6 +26,6 @@ declare class SGroupTool {
|
|
|
26
26
|
mouseleave(event: any): void;
|
|
27
27
|
mouseup(event: any): void;
|
|
28
28
|
cancel(): void;
|
|
29
|
+
static sgroupDialog(editor: any, id: any, defaultType: any): void;
|
|
29
30
|
}
|
|
30
|
-
export declare function sgroupDialog(editor: any, id: any, defaultType: any): void;
|
|
31
31
|
export default SGroupTool;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isFlipDisabled(editor: any): boolean;
|
|
@@ -150,6 +150,7 @@ declare const config: {
|
|
|
150
150
|
tool: string;
|
|
151
151
|
opts: string;
|
|
152
152
|
};
|
|
153
|
+
disabled: typeof import("./flips").isFlipDisabled;
|
|
153
154
|
hidden: (options: any) => boolean;
|
|
154
155
|
};
|
|
155
156
|
'transform-flip-v': {
|
|
@@ -159,6 +160,7 @@ declare const config: {
|
|
|
159
160
|
tool: string;
|
|
160
161
|
opts: string;
|
|
161
162
|
};
|
|
163
|
+
disabled: typeof import("./flips").isFlipDisabled;
|
|
162
164
|
hidden: (options: any) => boolean;
|
|
163
165
|
};
|
|
164
166
|
sgroup: {
|
|
@@ -94,6 +94,7 @@ declare var _default: {
|
|
|
94
94
|
tool: string;
|
|
95
95
|
opts: string;
|
|
96
96
|
};
|
|
97
|
+
disabled: typeof isFlipDisabled;
|
|
97
98
|
hidden: (options: any) => boolean;
|
|
98
99
|
};
|
|
99
100
|
'transform-flip-v': {
|
|
@@ -103,6 +104,7 @@ declare var _default: {
|
|
|
103
104
|
tool: string;
|
|
104
105
|
opts: string;
|
|
105
106
|
};
|
|
107
|
+
disabled: typeof isFlipDisabled;
|
|
106
108
|
hidden: (options: any) => boolean;
|
|
107
109
|
};
|
|
108
110
|
sgroup: {
|
|
@@ -351,5 +353,6 @@ declare var _default: {
|
|
|
351
353
|
};
|
|
352
354
|
};
|
|
353
355
|
export default _default;
|
|
356
|
+
import { isFlipDisabled } from "./flips";
|
|
354
357
|
import { RxnArrowMode } from "ketcher-core/dist/domain/entities/rxnArrow";
|
|
355
358
|
import { SimpleObjectMode } from "ketcher-core/dist/domain/entities/simpleObject";
|
|
@@ -1,34 +1,43 @@
|
|
|
1
|
-
|
|
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, { ComponentType } from 'react';
|
|
17
|
+
declare type Props = {
|
|
18
|
+
component?: ComponentType;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
className?: string;
|
|
21
|
+
type: string;
|
|
22
|
+
value: number | string | boolean;
|
|
23
|
+
onChange: (val: any) => void;
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
isFocused?: boolean;
|
|
26
|
+
innerRef?: React.Ref<any>;
|
|
27
|
+
schema?: any;
|
|
28
|
+
multiple?: boolean;
|
|
29
|
+
};
|
|
30
|
+
export declare function GenericInput({ schema, value, onChange, innerRef, type, isFocused, ...props }: {
|
|
2
31
|
[x: string]: any;
|
|
3
32
|
schema: any;
|
|
4
33
|
value?: string | undefined;
|
|
5
34
|
onChange: any;
|
|
35
|
+
innerRef: any;
|
|
6
36
|
type?: string | undefined;
|
|
7
37
|
isFocused?: boolean | undefined;
|
|
8
38
|
}): JSX.Element;
|
|
9
|
-
export namespace GenericInput {
|
|
10
|
-
|
|
39
|
+
export declare namespace GenericInput {
|
|
40
|
+
var val: (ev: any, schema: any) => any;
|
|
11
41
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
constructor(props: any, context: any);
|
|
15
|
-
shouldComponentUpdate({ children, onChange, style, ...nextProps }: {
|
|
16
|
-
[x: string]: any;
|
|
17
|
-
children: any;
|
|
18
|
-
onChange: any;
|
|
19
|
-
style: any;
|
|
20
|
-
}): boolean;
|
|
21
|
-
render(): JSX.Element;
|
|
22
|
-
component: any;
|
|
23
|
-
ctrl: {
|
|
24
|
-
onChange: (ev: any) => void;
|
|
25
|
-
} | {
|
|
26
|
-
selected: (testVal: any, value: any) => boolean;
|
|
27
|
-
onSelect: (ev: any) => void;
|
|
28
|
-
} | {
|
|
29
|
-
multiple: boolean;
|
|
30
|
-
selected: (testVal: any, values: any) => any;
|
|
31
|
-
onSelect: (ev: any, values: any) => void;
|
|
32
|
-
} | undefined;
|
|
33
|
-
}
|
|
34
|
-
import { Component } from "react";
|
|
42
|
+
declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
|
|
43
|
+
export default _default;
|
|
@@ -24,7 +24,7 @@ interface StructRenderProps {
|
|
|
24
24
|
declare class StructRender extends Component<StructRenderProps> {
|
|
25
25
|
tagRef: React.RefObject<HTMLElement>;
|
|
26
26
|
constructor(props: any);
|
|
27
|
-
shouldComponentUpdate(previousProps: any):
|
|
27
|
+
shouldComponentUpdate(previousProps: any): boolean;
|
|
28
28
|
update(): void;
|
|
29
29
|
componentDidMount(): void;
|
|
30
30
|
componentDidUpdate(): void;
|
|
@@ -1,2 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { OutputFormatType } from 'ketcher-core';
|
|
17
|
+
import { PropsWithChildren } from 'react';
|
|
18
|
+
declare type Props = {
|
|
19
|
+
server?: any;
|
|
20
|
+
filename: string;
|
|
21
|
+
outputFormat?: OutputFormatType;
|
|
22
|
+
data: any;
|
|
23
|
+
type?: string;
|
|
24
|
+
mode?: string;
|
|
25
|
+
onSave?: () => void;
|
|
26
|
+
onError?: (err: any) => void;
|
|
27
|
+
className?: string;
|
|
28
|
+
title?: string;
|
|
29
|
+
};
|
|
30
|
+
declare type SaveButtonProps = PropsWithChildren<Props>;
|
|
31
|
+
declare const SaveButton: (props: SaveButtonProps) => JSX.Element;
|
|
32
|
+
export { SaveButton };
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @param fieldName? { string }
|
|
8
8
|
* @returns { string }
|
|
9
9
|
*/
|
|
10
|
-
export function getSdataDefault(context: any, fieldName: any): string;
|
|
10
|
+
export function getSdataDefault(schema: {} | undefined, context: any, fieldName: any): string;
|
|
11
11
|
export namespace sdataCustomSchema {
|
|
12
12
|
const key: string;
|
|
13
13
|
const type: string;
|
|
@@ -19,10 +19,11 @@ interface TemplateLibProps {
|
|
|
19
19
|
filter: string;
|
|
20
20
|
group: string;
|
|
21
21
|
lib: Array<Template>;
|
|
22
|
-
selected: Template;
|
|
22
|
+
selected: Template | null;
|
|
23
23
|
mode: string;
|
|
24
|
-
|
|
24
|
+
tab: number;
|
|
25
25
|
saltsAndSolvents: Template[];
|
|
26
|
+
renderOptions?: any;
|
|
26
27
|
}
|
|
27
28
|
interface TemplateLibCallProps {
|
|
28
29
|
onAttach: (tmpl: Template) => void;
|
|
@@ -32,10 +33,11 @@ interface TemplateLibCallProps {
|
|
|
32
33
|
onFilter: (filter: string) => void;
|
|
33
34
|
onOk: (res: any) => void;
|
|
34
35
|
onSelect: (res: any) => void;
|
|
36
|
+
onTabChange: (tab: number) => void;
|
|
35
37
|
functionalGroups: Template[];
|
|
36
38
|
}
|
|
37
39
|
declare type Props = TemplateLibProps & TemplateLibCallProps;
|
|
38
40
|
declare const _default: import("react-redux").ConnectedComponent<FC<Props>, import("react-redux").Omit<TemplateLibProps & TemplateLibCallProps & {
|
|
39
41
|
children?: import("react").ReactNode;
|
|
40
|
-
}, "onFilter" | "onSelect" | "onChangeGroup" | "onAttach" | "onDelete" | "
|
|
42
|
+
}, "onFilter" | "onTabChange" | "onSelect" | "onChangeGroup" | "onAttach" | "onCancel" | "onDelete" | "renderOptions" | "functionalGroups" | "saltsAndSolvents"> & TemplateLibProps & TemplateLibCallProps>;
|
|
41
43
|
export default _default;
|
|
@@ -21,5 +21,5 @@ interface FGState {
|
|
|
21
21
|
}
|
|
22
22
|
declare const functionalGroupsReducer: (state: FGState | undefined, { type, payload }: AnyAction) => any;
|
|
23
23
|
export declare function highlightFG(dispatch: any, group: any): void;
|
|
24
|
-
export declare function initFGTemplates(
|
|
24
|
+
export declare function initFGTemplates(): (dispatch: any) => Promise<void>;
|
|
25
25
|
export default functionalGroupsReducer;
|
|
@@ -19,5 +19,5 @@ interface SaltsAndSolventsState {
|
|
|
19
19
|
mode: string;
|
|
20
20
|
}
|
|
21
21
|
declare const saltsAndSolventsReducer: (state: SaltsAndSolventsState | undefined, { type, payload }: AnyAction) => any;
|
|
22
|
-
export declare function initSaltsAndSolventsTemplates(
|
|
22
|
+
export declare function initSaltsAndSolventsTemplates(): (dispatch: any, getState: any) => Promise<void>;
|
|
23
23
|
export default saltsAndSolventsReducer;
|
|
@@ -18,6 +18,12 @@ export function changeFilter(filter: any): {
|
|
|
18
18
|
selected: null;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
+
export function changeTab(tab: any): {
|
|
22
|
+
type: string;
|
|
23
|
+
data: {
|
|
24
|
+
tab: any;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
21
27
|
export function initAttach(name: any, attach: any): {
|
|
22
28
|
type: string;
|
|
23
29
|
data: {
|
|
@@ -56,6 +62,7 @@ export namespace initTmplsState {
|
|
|
56
62
|
const group: null;
|
|
57
63
|
const attach: {};
|
|
58
64
|
const mode: string;
|
|
65
|
+
const tab: number;
|
|
59
66
|
}
|
|
60
67
|
export default templatesReducer;
|
|
61
68
|
import initTmplLib from "./init-lib";
|
|
@@ -66,4 +73,5 @@ declare function templatesReducer(state: {
|
|
|
66
73
|
group: null;
|
|
67
74
|
attach: {};
|
|
68
75
|
mode: string;
|
|
76
|
+
tab: number;
|
|
69
77
|
} | undefined, action: any): any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Option } from '../component/form/Select';
|
|
2
2
|
export declare function greekify(str: string): string;
|
|
3
|
-
export declare function filterLib(lib: any, filter:
|
|
3
|
+
export declare function filterLib(lib: any, filter: string): {};
|
|
4
4
|
export declare function filterFGLib(lib: any, filter: any): {};
|
|
5
|
-
export { fileOpener } from './fileOpener';
|
|
6
5
|
export declare const getSelectOptionsFromSchema: (schema: any) => Array<Option>;
|
|
6
|
+
export { RenderStruct } from './renderStruct';
|
|
7
|
+
export { fileOpener } from './fileOpener';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Struct } from 'ketcher-core';
|
|
2
|
+
export declare class RenderStruct {
|
|
3
|
+
/**
|
|
4
|
+
* for S-Groups we want to show expanded structure
|
|
5
|
+
* without brackets
|
|
6
|
+
*/
|
|
7
|
+
static prepareStruct(struct: Struct): Struct;
|
|
8
|
+
static render(el: HTMLElement | null, struct: Struct | null, options?: any): void;
|
|
9
|
+
}
|
|
@@ -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
|
+
interface SavedSettings {
|
|
17
|
+
selectionTool?: any;
|
|
18
|
+
}
|
|
19
|
+
export declare class SettingsManager {
|
|
20
|
+
static getSettings(): SavedSettings;
|
|
21
|
+
static saveSettings(settings: SavedSettings): void;
|
|
22
|
+
static get selectionTool(): any;
|
|
23
|
+
static set selectionTool(selectionTool: any);
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
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 'react-contexify/ReactContexify.css';
|
|
18
|
+
export declare const CONTEXT_MENU_ID = "ketcherBondAndAtomContextMenu";
|
|
19
|
+
declare const ContextMenu: React.FC;
|
|
20
|
+
export default ContextMenu;
|
|
@@ -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
|
+
declare const ContextMenuTrigger: React.FC;
|
|
18
|
+
export default ContextMenuTrigger;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ItemProps, SubMenuProps } from 'react-contexify';
|
|
2
|
+
export declare type ContextMenuShowProps = {
|
|
3
|
+
selected: boolean;
|
|
4
|
+
closestItem: any;
|
|
5
|
+
};
|
|
6
|
+
export declare type ItemData = unknown;
|
|
7
|
+
export declare type CustomItemProps = Omit<ItemProps, 'children'>;
|
|
8
|
+
export declare type CustomSubMenuProps = Omit<SubMenuProps, 'children' | 'label'>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 'react-contexify/ReactContexify.css';
|
|
18
|
+
import type { CustomItemProps } from '../contextMenu.types';
|
|
19
|
+
export declare const AtomBatchEdit: React.FC<CustomItemProps>;
|
|
20
|
+
export declare const AtomStereoBatchEdit: React.FC<CustomItemProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 'react-contexify/ReactContexify.css';
|
|
18
|
+
declare const AtomSingleOperations: React.FC;
|
|
19
|
+
export default AtomSingleOperations;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 'react-contexify/ReactContexify.css';
|
|
18
|
+
import type { CustomItemProps, CustomSubMenuProps } from '../contextMenu.types';
|
|
19
|
+
export declare const BondBatchEdit: React.FC<CustomItemProps>;
|
|
20
|
+
export declare const BondTypeBatchChange: React.FC<CustomSubMenuProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 'react-contexify/ReactContexify.css';
|
|
18
|
+
declare const BondSingleOperations: React.FC;
|
|
19
|
+
export default BondSingleOperations;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PredicateParams } from 'react-contexify';
|
|
2
|
+
import { ContextMenuShowProps, ItemData } from '../contextMenu.types';
|
|
3
|
+
/**
|
|
4
|
+
* Remove the word `bond` out of the title
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* formatTitle('Single Bond') === 'Single'
|
|
8
|
+
*/
|
|
9
|
+
export declare const formatTitle: (title: string) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Get bond names from default export of `src/script/ui/action/tools.js`
|
|
12
|
+
*
|
|
13
|
+
* @returns `['bond-single', 'bond-up', 'bond-down', 'bond-updown', 'bond-double',
|
|
14
|
+
* 'bond-crossed', 'bond-triple', 'bond-aromatic', 'bond-any', 'bond-hydrogen',
|
|
15
|
+
* 'bond-singledouble', 'bond-singlearomatic', 'bond-doublearomatic', 'bond-dative']`
|
|
16
|
+
*/
|
|
17
|
+
export declare const getBondNames: (tools: any) => string[];
|
|
18
|
+
export declare const queryBondNames: string[];
|
|
19
|
+
/**
|
|
20
|
+
* Get bond names except for query bonds
|
|
21
|
+
*
|
|
22
|
+
* @returns `['bond-single', 'bond-up', 'bond-down', 'bond-updown', 'bond-double',
|
|
23
|
+
* 'bond-crossed', 'bond-triple', 'bond-aromatic', 'bond-hydrogen', 'bond-dative']`
|
|
24
|
+
*/
|
|
25
|
+
export declare const getNonQueryBondNames: (tools: any) => string[];
|
|
26
|
+
export declare const noOperation: () => null;
|
|
27
|
+
export declare const isBatchOperationHidden: ({ props }: PredicateParams<ContextMenuShowProps, ItemData>) => boolean;
|
|
@@ -1,2 +1,29 @@
|
|
|
1
|
-
|
|
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 { Render, Struct, SGroup } from 'ketcher-core';
|
|
18
|
+
interface InfoPanelProps {
|
|
19
|
+
clientX: number;
|
|
20
|
+
clientY: number;
|
|
21
|
+
render: Render;
|
|
22
|
+
groupStruct: Struct;
|
|
23
|
+
sGroup: SGroup;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
declare const _default: import("react-redux").ConnectedComponent<FC<InfoPanelProps>, import("react-redux").Omit<InfoPanelProps & {
|
|
27
|
+
children?: import("react").ReactNode;
|
|
28
|
+
}, "render" | "clientX" | "clientY" | "groupStruct" | "sGroup">>;
|
|
2
29
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default Analyse;
|
|
2
|
-
declare const Analyse: import("react-redux").ConnectedComponent<typeof AnalyseDialog, import("react-redux").Omit<any, "values" | "
|
|
2
|
+
declare const Analyse: import("react-redux").ConnectedComponent<typeof AnalyseDialog, import("react-redux").Omit<any, "values" | "onAnalyse" | "round" | "loading" | "onChangeRound">>;
|
|
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);
|
|
@@ -23,7 +23,6 @@ interface ExternalFuncProps {
|
|
|
23
23
|
onCalculate: () => void;
|
|
24
24
|
onCheck: () => void;
|
|
25
25
|
onAnalyse: () => void;
|
|
26
|
-
onStereo: () => void;
|
|
27
26
|
onMiew: () => void;
|
|
28
27
|
disabledButtons: string[];
|
|
29
28
|
hiddenButtons: string[];
|
|
@@ -32,5 +31,5 @@ interface ExternalFuncProps {
|
|
|
32
31
|
[key in string]: string;
|
|
33
32
|
};
|
|
34
33
|
}
|
|
35
|
-
export declare const ExternalFuncControls: ({ isCollapsed, onLayout, onClean, onAromatize, onDearomatize, onCalculate, onCheck, onAnalyse,
|
|
34
|
+
export declare const ExternalFuncControls: ({ isCollapsed, onLayout, onClean, onAromatize, onDearomatize, onCalculate, onCheck, onAnalyse, onMiew, disabledButtons, indigoVerification, hiddenButtons, shortcuts }: ExternalFuncProps) => JSX.Element;
|
|
36
35
|
export {};
|