ketcher-react 2.8.0-rc.3-dev.3 → 2.8.0-rc.5
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/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +2000 -2031
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2024 -2054
- 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 +1 -1
- package/dist/script/editor/shared/utils.d.ts +0 -29
- package/dist/script/editor/tool/bond.d.ts +2 -1
- package/dist/script/editor/tool/paste.d.ts +0 -5
- package/dist/script/editor/tool/select.d.ts +1 -1
- package/dist/script/editor/tool/sgroup.d.ts +3 -2
- package/dist/script/editor/tool/template.d.ts +2 -4
- package/dist/script/ui/Portal/Portal.d.ts +1 -2
- package/dist/script/ui/action/action.types.d.ts +1 -1
- package/dist/script/ui/action/index.d.ts +9 -21
- package/dist/script/ui/action/server.d.ts +2 -10
- package/dist/script/ui/action/tools.d.ts +9 -1
- package/dist/script/ui/action/zoom.d.ts +0 -2
- package/dist/script/ui/component/ContextMenu/ContextMenu.d.ts +3 -0
- package/dist/script/ui/data/convert/structconv.d.ts +0 -16
- package/dist/script/ui/data/schema/sdata-schema.d.ts +5 -7
- package/dist/script/ui/dialog/template/TemplateDialog.d.ts +3 -1
- package/dist/script/ui/dialog/template/template-attach.d.ts +1 -1
- package/dist/script/ui/dialog/toolbox/enhancedStereo/enhancedStereo.d.ts +3 -1
- package/dist/script/ui/dialog/toolbox/sdata.d.ts +19 -0
- package/dist/script/ui/dialog/toolbox/sgroup.d.ts +1 -1
- package/dist/script/ui/state/constants.d.ts +1 -0
- package/dist/script/ui/state/editor/index.d.ts +4 -0
- package/dist/script/ui/state/handleHotkeysOverAtom.d.ts +7 -0
- package/dist/script/ui/state/modal/form.d.ts +16 -5
- package/dist/script/ui/views/components/ContextMenu/ContextMenu.d.ts +1 -0
- package/dist/script/ui/views/components/ContextMenu/ContextMenuTrigger.d.ts +2 -2
- package/dist/script/ui/views/components/ContextMenu/contextMenu.types.d.ts +7 -15
- 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/{utils.d.ts → items/utils.d.ts} +3 -1
- package/dist/script/ui/views/components/Dialog/Dialog.d.ts +2 -2
- package/dist/script/ui/views/components/StructEditor/InfoPanel.d.ts +3 -1
- package/dist/script/ui/views/modal/components/document/Open/Open.container.d.ts +2 -0
- package/dist/script/ui/views/modal/components/document/Save/Save.d.ts +0 -1
- package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +2 -0
- package/dist/script/ui/views/toolbars/toolbar.types.d.ts +1 -1
- package/package.json +10 -9
- package/dist/script/editor/tool/helper/dropAndMerge.d.ts +0 -8
- package/dist/script/editor/tool/helper/getGroupIdsFromItems.d.ts +0 -12
- package/dist/script/editor/tool/helper/getMergeItems.d.ts +0 -2
- package/dist/script/ui/dialog/toolbox/SDataFieldset.d.ts +0 -4
- package/dist/script/ui/dialog/toolbox/SGroupFieldset.d.ts +0 -4
- package/dist/script/ui/state/handleHotkeysOverItem.d.ts +0 -15
- package/dist/script/ui/views/components/ContextMenu/hooks/useAtomEdit.d.ts +0 -3
- package/dist/script/ui/views/components/ContextMenu/hooks/useAtomStereo.d.ts +0 -3
- package/dist/script/ui/views/components/ContextMenu/hooks/useBondEdit.d.ts +0 -3
- package/dist/script/ui/views/components/ContextMenu/hooks/useBondSGroupAttach.d.ts +0 -3
- package/dist/script/ui/views/components/ContextMenu/hooks/useBondSGroupEdit.d.ts +0 -3
- package/dist/script/ui/views/components/ContextMenu/hooks/useBondTypeChange.d.ts +0 -3
- package/dist/script/ui/views/components/ContextMenu/hooks/useDelete.d.ts +0 -3
- package/dist/script/ui/views/components/ContextMenu/hooks/useFunctionalGroupEoc.d.ts +0 -6
- package/dist/script/ui/views/components/ContextMenu/hooks/useFunctionalGroupRemove.d.ts +0 -3
- package/dist/script/ui/views/components/ContextMenu/menuItems/AtomMenuItems.d.ts +0 -3
- package/dist/script/ui/views/components/ContextMenu/menuItems/BondMenuItems.d.ts +0 -3
- package/dist/script/ui/views/components/ContextMenu/menuItems/FunctionalGroupMenuItems.d.ts +0 -3
- package/dist/script/ui/views/components/ContextMenu/menuItems/SelectionMenuItems.d.ts +0 -3
|
@@ -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 declare type ButtonName = 'layout' | 'clean' | 'arom' | 'dearom' | 'cip' | 'check' | 'analyse' | 'recognize' | 'miew' | 'settings' | 'help' | 'about' | 'fullscreen' | 'sgroup' | 'reaction-plus' | 'arrows' | 'reaction-arrow-open-angle' | 'reaction-arrow-filled-triangle' | 'reaction-arrow-filled-bow' | 'reaction-arrow-dashed-open-angle' | 'reaction-arrow-failed' | 'reaction-arrow-both-ends-filled-triangle' | 'reaction-arrow-equilibrium-filled-half-bow' | 'reaction-arrow-equilibrium-filled-triangle' | 'reaction-arrow-equilibrium-open-angle' | 'reaction-arrow-unbalanced-equilibrium-filled-half-bow' | 'reaction-arrow-unbalanced-equilibrium-open-half-angle' | 'reaction-arrow-unbalanced-equilibrium-large-filled-half-bow' | 'reaction-arrow-unbalanced-equilibrium-filled-half-triangle' | 'reaction-arrow-elliptical-arc-arrow-filled-bow' | 'reaction-arrow-elliptical-arc-arrow-filled-triangle' | 'reaction-arrow-elliptical-arc-arrow-open-angle' | 'reaction-arrow-elliptical-arc-arrow-open-half-angle' | 'reaction-mapping-tools' | 'reaction-automap' | 'reaction-map' | 'reaction-unmap' | 'rgroup' | 'rgroup-label' | 'rgroup-fragment' | 'rgroup-attpoints' | 'shape' | 'shape-ellipse' | 'shape-rectangle' | 'shape-line' | 'text' | 'enhanced-stereo';
|
|
16
|
+
export declare type ButtonName = 'layout' | 'clean' | 'arom' | 'dearom' | 'cip' | 'check' | 'analyse' | 'recognize' | 'miew' | 'settings' | 'help' | 'about' | 'fullscreen' | 'sgroup' | 'sgroup-data' | 'reaction-plus' | 'arrows' | 'reaction-arrow-open-angle' | 'reaction-arrow-filled-triangle' | 'reaction-arrow-filled-bow' | 'reaction-arrow-dashed-open-angle' | 'reaction-arrow-failed' | 'reaction-arrow-both-ends-filled-triangle' | 'reaction-arrow-equilibrium-filled-half-bow' | 'reaction-arrow-equilibrium-filled-triangle' | 'reaction-arrow-equilibrium-open-angle' | 'reaction-arrow-unbalanced-equilibrium-filled-half-bow' | 'reaction-arrow-unbalanced-equilibrium-open-half-angle' | 'reaction-arrow-unbalanced-equilibrium-large-filled-half-bow' | 'reaction-arrow-unbalanced-equilibrium-filled-half-triangle' | 'reaction-arrow-elliptical-arc-arrow-filled-bow' | 'reaction-arrow-elliptical-arc-arrow-filled-triangle' | 'reaction-arrow-elliptical-arc-arrow-open-angle' | 'reaction-arrow-elliptical-arc-arrow-open-half-angle' | 'reaction-mapping-tools' | 'reaction-automap' | 'reaction-map' | 'reaction-unmap' | 'rgroup' | 'rgroup-label' | 'rgroup-fragment' | 'rgroup-attpoints' | 'shape' | 'shape-ellipse' | 'shape-rectangle' | 'shape-line' | 'text' | 'enhanced-stereo';
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { Action, Editor as KetcherEditor, Render, Struct } from 'ketcher-core';
|
|
17
17
|
import { PipelineSubscription, Subscription } from 'subscription';
|
|
18
18
|
import { Highlighter } from './highlighter';
|
|
19
|
-
|
|
19
|
+
interface Selection {
|
|
20
20
|
atoms?: Array<number>;
|
|
21
21
|
bonds?: Array<number>;
|
|
22
22
|
enhancedFlags?: Array<number>;
|
|
@@ -4,8 +4,6 @@ declare namespace _default {
|
|
|
4
4
|
export { calcNewAtomPos };
|
|
5
5
|
export { degrees };
|
|
6
6
|
export { mergeBondsParams };
|
|
7
|
-
export { getOnlyNonGroupItems };
|
|
8
|
-
export { getNonGroupItemsAndAttachmentPoints };
|
|
9
7
|
}
|
|
10
8
|
export default _default;
|
|
11
9
|
declare function calcAngle(pos0: any, pos1: any): number;
|
|
@@ -18,31 +16,4 @@ declare function mergeBondsParams(struct1: any, bond1: any, struct2: any, bond2:
|
|
|
18
16
|
scale: number;
|
|
19
17
|
cross: boolean;
|
|
20
18
|
};
|
|
21
|
-
/**
|
|
22
|
-
* Get all items IDs that do not belong to sgroups
|
|
23
|
-
* @param items {{ atoms?: number[]; bonds?: number[] } | null}
|
|
24
|
-
* @param struct {Struct}
|
|
25
|
-
* @returns {{ atoms: number[], bonds: number[] }}
|
|
26
|
-
*/
|
|
27
|
-
declare function getOnlyNonGroupItems(items: {
|
|
28
|
-
atoms?: number[] | undefined;
|
|
29
|
-
bonds?: number[] | undefined;
|
|
30
|
-
} | null, struct: Struct): {
|
|
31
|
-
atoms: number[];
|
|
32
|
-
bonds: number[];
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Get all items IDs that do not belong to sgroups (except their attachment points)
|
|
36
|
-
* @param items {{ atoms?: number[]; bonds?: number[] } | null}
|
|
37
|
-
* @param struct {Struct}
|
|
38
|
-
* @returns {{ atoms: number[], bonds: number[] }}
|
|
39
|
-
*/
|
|
40
|
-
declare function getNonGroupItemsAndAttachmentPoints(items: {
|
|
41
|
-
atoms?: number[] | undefined;
|
|
42
|
-
bonds?: number[] | undefined;
|
|
43
|
-
} | null, struct: Struct): {
|
|
44
|
-
atoms: number[];
|
|
45
|
-
bonds: number[];
|
|
46
|
-
};
|
|
47
19
|
import { Vec2 } from "ketcher-core/dist/domain/entities/vec2";
|
|
48
|
-
import { Struct } from "ketcher-core/dist/domain/entities/struct";
|
|
@@ -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
|
+
import { Bond, Struct } from 'ketcher-core';
|
|
16
17
|
import Editor from '../Editor';
|
|
17
18
|
declare class BondTool {
|
|
18
19
|
editor: Editor;
|
|
@@ -27,6 +28,6 @@ declare class BondTool {
|
|
|
27
28
|
mousemove(event: any): true | undefined;
|
|
28
29
|
mouseup(event: any): boolean;
|
|
29
30
|
restoreBondWhenHoveringOnCanvas(event: any): void;
|
|
30
|
-
getExistingBond(struct:
|
|
31
|
+
getExistingBond(struct: Struct, begin: number, end: number): readonly [number, Bond] | readonly [null, null];
|
|
31
32
|
}
|
|
32
33
|
export default BondTool;
|
|
@@ -19,13 +19,8 @@ declare class PasteTool {
|
|
|
19
19
|
editor: Editor;
|
|
20
20
|
struct: Struct;
|
|
21
21
|
action: any;
|
|
22
|
-
templateAction: any;
|
|
23
|
-
dragCtx: any;
|
|
24
|
-
findItems: string[];
|
|
25
22
|
mergeItems: any;
|
|
26
|
-
isSingleContractedGroup: boolean;
|
|
27
23
|
constructor(editor: any, struct: any);
|
|
28
|
-
mousedown(event: any): void;
|
|
29
24
|
mousemove(event: any): void;
|
|
30
25
|
mouseup(): void;
|
|
31
26
|
cancel(): void;
|
|
@@ -23,7 +23,7 @@ declare class SelectTool {
|
|
|
23
23
|
isSelectionRunning(): boolean;
|
|
24
24
|
mousedown(event: any): boolean;
|
|
25
25
|
mousemove(event: any): boolean;
|
|
26
|
-
mouseup(event: any):
|
|
26
|
+
mouseup(event: any): boolean;
|
|
27
27
|
dblclick(event: any): true | undefined;
|
|
28
28
|
mouseleave(_: any): void;
|
|
29
29
|
selectElementsOnCanvas(elements: {
|
|
@@ -16,15 +16,16 @@
|
|
|
16
16
|
import Editor from '../Editor';
|
|
17
17
|
declare class SGroupTool {
|
|
18
18
|
editor: Editor;
|
|
19
|
+
type: any;
|
|
19
20
|
lassoHelper: any;
|
|
20
21
|
isNotActiveTool: boolean | undefined;
|
|
21
|
-
constructor(editor: any);
|
|
22
|
+
constructor(editor: any, type: any);
|
|
22
23
|
checkSelection(): void;
|
|
23
24
|
mousedown(event: any): void;
|
|
24
25
|
mousemove(event: any): void;
|
|
25
26
|
mouseleave(event: any): void;
|
|
26
27
|
mouseup(event: any): void;
|
|
27
28
|
cancel(): void;
|
|
28
|
-
static sgroupDialog(editor: any, id: any): void;
|
|
29
|
+
static sgroupDialog(editor: any, id: any, defaultType: any): void;
|
|
29
30
|
}
|
|
30
31
|
export default SGroupTool;
|
|
@@ -20,12 +20,10 @@ declare class TemplateTool {
|
|
|
20
20
|
template: any;
|
|
21
21
|
findItems: Array<string>;
|
|
22
22
|
dragCtx: any;
|
|
23
|
-
targetGroupsIds: Array<number>;
|
|
24
|
-
isSaltOrSolvent: boolean;
|
|
25
23
|
constructor(editor: any, tmpl: any);
|
|
26
|
-
mousedown(event: any):
|
|
24
|
+
mousedown(event: any): true | undefined;
|
|
27
25
|
mousemove(event: any): boolean;
|
|
28
|
-
mouseup(event: any):
|
|
26
|
+
mouseup(event: any): boolean;
|
|
29
27
|
cancel(e: any): void;
|
|
30
28
|
mouseleave(e: any): void;
|
|
31
29
|
}
|
|
@@ -13,12 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
import { CSSProperties, Component
|
|
16
|
+
import { CSSProperties, Component } from 'react';
|
|
17
17
|
interface PortalProps {
|
|
18
18
|
isOpen: boolean;
|
|
19
19
|
className?: string;
|
|
20
20
|
style?: CSSProperties;
|
|
21
|
-
children: ReactNode;
|
|
22
21
|
}
|
|
23
22
|
declare type Props = PortalProps;
|
|
24
23
|
declare class Portal extends Component<Props> {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import { Dispatch } from 'redux';
|
|
17
|
-
declare type ToolVariant = 'about' | 'analyse' | 'arom' | '
|
|
17
|
+
declare type ToolVariant = 'about' | 'analyse' | 'arom' | 'bond-any' | 'bond-hydrogen' | 'bond-aromatic' | 'bond-crossed' | 'bond-dative' | 'bond-double' | 'bond-doublearomatic' | 'bond-down' | 'bond-single' | 'bond-singlearomatic' | 'bond-singledouble' | 'bond-triple' | 'bond-up' | 'bond-updown' | 'chain' | 'charge-minus' | 'charge-plus' | 'check' | 'chiral-flag' | 'cip' | 'clean' | 'copy' | 'copy-image' | 'cut' | 'dearom' | 'dropdown' | 'enhanced-stereo' | 'erase' | 'fullscreen' | 'functional-groups' | 'generic-groups' | 'help' | 'layout' | 'logo' | 'miew' | 'clear' | 'open' | 'paste' | 'period-table' | 'reaction-arrow' | 'reaction-automap' | 'reaction-map' | 'reaction-plus' | 'reaction-unmap' | 'recognize' | 'redo' | 'rgroup-attpoints' | 'rgroup-fragment' | 'rgroup-label' | 'save' | 'select-fragment' | 'select-lasso' | 'select-rectangle' | 'settings' | 'sgroup' | 'sgroup-data' | 'template-0' | 'template-1' | 'template-2' | 'template-3' | 'template-4' | 'template-5' | 'template-6' | 'template-7' | 'template-lib' | 'text' | 'transform-flip-h' | 'transform-flip-v' | 'transform-rotate' | 'zoom-in' | 'zoom-out' | 'shape-circle' | 'shape-rectangle' | 'shape-polyline' | 'shape-line' | 'undo';
|
|
18
18
|
declare type Editor = any;
|
|
19
19
|
declare type Server = any;
|
|
20
20
|
declare type Options = any;
|
|
@@ -35,9 +35,7 @@ declare const config: {
|
|
|
35
35
|
hidden: (options: any) => boolean;
|
|
36
36
|
};
|
|
37
37
|
zoom: {
|
|
38
|
-
shortcut: string[];
|
|
39
38
|
selected: (editor: any) => any;
|
|
40
|
-
action: (editor: any) => any;
|
|
41
39
|
hidden: (options: any) => boolean;
|
|
42
40
|
};
|
|
43
41
|
'zoom-out': {
|
|
@@ -173,6 +171,15 @@ declare const config: {
|
|
|
173
171
|
};
|
|
174
172
|
hidden: (options: any) => boolean;
|
|
175
173
|
};
|
|
174
|
+
'sgroup-data': {
|
|
175
|
+
shortcut: string;
|
|
176
|
+
title: string;
|
|
177
|
+
action: {
|
|
178
|
+
tool: string;
|
|
179
|
+
opts: string;
|
|
180
|
+
};
|
|
181
|
+
hidden: (options: any) => boolean;
|
|
182
|
+
};
|
|
176
183
|
arrows: {
|
|
177
184
|
hidden: (options: any) => boolean;
|
|
178
185
|
};
|
|
@@ -391,7 +398,6 @@ declare const config: {
|
|
|
391
398
|
hidden: (options: any) => boolean;
|
|
392
399
|
};
|
|
393
400
|
text: {
|
|
394
|
-
shortcut: string;
|
|
395
401
|
title: string;
|
|
396
402
|
action: {
|
|
397
403
|
tool: string;
|
|
@@ -430,7 +436,6 @@ declare const config: {
|
|
|
430
436
|
hidden: (options: any) => boolean;
|
|
431
437
|
};
|
|
432
438
|
arom: {
|
|
433
|
-
shortcut: string;
|
|
434
439
|
title: string;
|
|
435
440
|
action: {
|
|
436
441
|
thunk: (dispatch: any, getState: any) => void;
|
|
@@ -439,7 +444,6 @@ declare const config: {
|
|
|
439
444
|
hidden: (options: any) => boolean;
|
|
440
445
|
};
|
|
441
446
|
dearom: {
|
|
442
|
-
shortcut: string;
|
|
443
447
|
title: string;
|
|
444
448
|
action: {
|
|
445
449
|
thunk: (dispatch: any, getState: any) => void;
|
|
@@ -457,7 +461,6 @@ declare const config: {
|
|
|
457
461
|
hidden: (options: any) => boolean;
|
|
458
462
|
};
|
|
459
463
|
check: {
|
|
460
|
-
shortcut: string;
|
|
461
464
|
title: string;
|
|
462
465
|
action: {
|
|
463
466
|
dialog: string;
|
|
@@ -466,7 +469,6 @@ declare const config: {
|
|
|
466
469
|
hidden: (options: any) => boolean;
|
|
467
470
|
};
|
|
468
471
|
analyse: {
|
|
469
|
-
shortcut: string;
|
|
470
472
|
title: string;
|
|
471
473
|
action: {
|
|
472
474
|
dialog: string;
|
|
@@ -513,20 +515,6 @@ declare const config: {
|
|
|
513
515
|
};
|
|
514
516
|
hidden: (options: any) => boolean;
|
|
515
517
|
};
|
|
516
|
-
'atom-props': {
|
|
517
|
-
title: string;
|
|
518
|
-
action: {
|
|
519
|
-
dialog: string;
|
|
520
|
-
};
|
|
521
|
-
hidden: (options: any) => boolean;
|
|
522
|
-
};
|
|
523
|
-
'bond-props': {
|
|
524
|
-
title: string;
|
|
525
|
-
action: {
|
|
526
|
-
dialog: string;
|
|
527
|
-
};
|
|
528
|
-
hidden: (options: any) => boolean;
|
|
529
|
-
};
|
|
530
518
|
undo: {
|
|
531
519
|
shortcut: string;
|
|
532
520
|
title: string;
|
|
@@ -25,8 +25,6 @@ declare namespace config {
|
|
|
25
25
|
export { hidden_1 as hidden };
|
|
26
26
|
}
|
|
27
27
|
namespace arom {
|
|
28
|
-
const shortcut_2: string;
|
|
29
|
-
export { shortcut_2 as shortcut };
|
|
30
28
|
const title_2: string;
|
|
31
29
|
export { title_2 as title };
|
|
32
30
|
export namespace action_2 {
|
|
@@ -40,8 +38,6 @@ declare namespace config {
|
|
|
40
38
|
export { hidden_2 as hidden };
|
|
41
39
|
}
|
|
42
40
|
namespace dearom {
|
|
43
|
-
const shortcut_3: string;
|
|
44
|
-
export { shortcut_3 as shortcut };
|
|
45
41
|
const title_3: string;
|
|
46
42
|
export { title_3 as title };
|
|
47
43
|
export namespace action_3 {
|
|
@@ -55,8 +51,8 @@ declare namespace config {
|
|
|
55
51
|
export { hidden_3 as hidden };
|
|
56
52
|
}
|
|
57
53
|
namespace cip {
|
|
58
|
-
const
|
|
59
|
-
export {
|
|
54
|
+
const shortcut_2: string;
|
|
55
|
+
export { shortcut_2 as shortcut };
|
|
60
56
|
const title_4: string;
|
|
61
57
|
export { title_4 as title };
|
|
62
58
|
export namespace action_4 {
|
|
@@ -70,8 +66,6 @@ declare namespace config {
|
|
|
70
66
|
export { hidden_4 as hidden };
|
|
71
67
|
}
|
|
72
68
|
namespace check {
|
|
73
|
-
const shortcut_5: string;
|
|
74
|
-
export { shortcut_5 as shortcut };
|
|
75
69
|
const title_5: string;
|
|
76
70
|
export { title_5 as title };
|
|
77
71
|
export namespace action_5 {
|
|
@@ -84,8 +78,6 @@ declare namespace config {
|
|
|
84
78
|
export { hidden_5 as hidden };
|
|
85
79
|
}
|
|
86
80
|
namespace analyse {
|
|
87
|
-
const shortcut_6: string;
|
|
88
|
-
export { shortcut_6 as shortcut };
|
|
89
81
|
const title_6: string;
|
|
90
82
|
export { title_6 as title };
|
|
91
83
|
export namespace action_6 {
|
|
@@ -115,6 +115,15 @@ declare var _default: {
|
|
|
115
115
|
};
|
|
116
116
|
hidden: (options: any) => boolean;
|
|
117
117
|
};
|
|
118
|
+
'sgroup-data': {
|
|
119
|
+
shortcut: string;
|
|
120
|
+
title: string;
|
|
121
|
+
action: {
|
|
122
|
+
tool: string;
|
|
123
|
+
opts: string;
|
|
124
|
+
};
|
|
125
|
+
hidden: (options: any) => boolean;
|
|
126
|
+
};
|
|
118
127
|
arrows: {
|
|
119
128
|
hidden: (options: any) => boolean;
|
|
120
129
|
};
|
|
@@ -333,7 +342,6 @@ declare var _default: {
|
|
|
333
342
|
hidden: (options: any) => boolean;
|
|
334
343
|
};
|
|
335
344
|
text: {
|
|
336
|
-
shortcut: string;
|
|
337
345
|
title: string;
|
|
338
346
|
action: {
|
|
339
347
|
tool: string;
|
|
@@ -1,21 +1,5 @@
|
|
|
1
1
|
export function fromElement(selem: any): any;
|
|
2
2
|
export function toElement(elem: any): any;
|
|
3
|
-
export function fromAtom(satom: any): {
|
|
4
|
-
alias: any;
|
|
5
|
-
label: any;
|
|
6
|
-
charge: any;
|
|
7
|
-
isotope: any;
|
|
8
|
-
explicitValence: any;
|
|
9
|
-
radical: any;
|
|
10
|
-
invRet: any;
|
|
11
|
-
exactChangeFlag: boolean;
|
|
12
|
-
ringBondCount: any;
|
|
13
|
-
substitutionCount: any;
|
|
14
|
-
unsaturatedAtom: boolean;
|
|
15
|
-
hCount: any;
|
|
16
|
-
stereoParity: any;
|
|
17
|
-
};
|
|
18
|
-
export function toAtom(atom: any): any;
|
|
19
3
|
export function fromStereoLabel(stereoLabel: any): {
|
|
20
4
|
type: null;
|
|
21
5
|
orNumber?: undefined;
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
export function getSdataDefault(schema: {} | undefined, context: any, fieldName: any): string;
|
|
11
11
|
export namespace sdataCustomSchema {
|
|
12
12
|
const key: string;
|
|
13
|
-
const title: string;
|
|
14
13
|
const type: string;
|
|
15
14
|
namespace properties {
|
|
16
15
|
export namespace type_1 {
|
|
@@ -19,16 +18,15 @@ export namespace sdataCustomSchema {
|
|
|
19
18
|
}
|
|
20
19
|
export { type_1 as type };
|
|
21
20
|
export namespace context {
|
|
22
|
-
const
|
|
23
|
-
export { title_1 as title };
|
|
21
|
+
export const title: string;
|
|
24
22
|
const _enum_1: string[];
|
|
25
23
|
export { _enum_1 as enum };
|
|
26
24
|
const _default: string;
|
|
27
25
|
export { _default as default };
|
|
28
26
|
}
|
|
29
27
|
export namespace fieldName {
|
|
30
|
-
const
|
|
31
|
-
export {
|
|
28
|
+
const title_1: string;
|
|
29
|
+
export { title_1 as title };
|
|
32
30
|
const type_2: string;
|
|
33
31
|
export { type_2 as type };
|
|
34
32
|
const _default_1: string;
|
|
@@ -37,8 +35,8 @@ export namespace sdataCustomSchema {
|
|
|
37
35
|
export const invalidMessage: string;
|
|
38
36
|
}
|
|
39
37
|
export namespace fieldValue {
|
|
40
|
-
const
|
|
41
|
-
export {
|
|
38
|
+
const title_2: string;
|
|
39
|
+
export { title_2 as title };
|
|
42
40
|
const type_3: string;
|
|
43
41
|
export { type_3 as type };
|
|
44
42
|
const _default_2: string;
|
|
@@ -38,5 +38,7 @@ interface TemplateLibCallProps {
|
|
|
38
38
|
functionalGroups: Template[];
|
|
39
39
|
}
|
|
40
40
|
declare type Props = TemplateLibProps & TemplateLibCallProps;
|
|
41
|
-
declare const _default: import("react-redux").ConnectedComponent<FC<Props>, import("react-redux").Omit<TemplateLibProps & TemplateLibCallProps
|
|
41
|
+
declare const _default: import("react-redux").ConnectedComponent<FC<Props>, import("react-redux").Omit<TemplateLibProps & TemplateLibCallProps & {
|
|
42
|
+
children?: import("react").ReactNode;
|
|
43
|
+
}, "onFilter" | "onTabChange" | "onSelect" | "onChangeGroup" | "onAttach" | "onCancel" | "onDelete" | "initialTab" | "renderOptions" | "functionalGroups" | "saltsAndSolvents"> & TemplateLibProps & TemplateLibCallProps>;
|
|
42
44
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare var _default: import("react-redux").ConnectedComponent<typeof Attach, import("react-redux").Omit<
|
|
1
|
+
declare var _default: import("react-redux").ConnectedComponent<typeof Attach, import("react-redux").Omit<{
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
onInit: any;
|
|
4
4
|
}, string | number>>;
|
|
@@ -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<EnhancedStereoProps & EnhancedStereoCallProps
|
|
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;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare var _default: import("react-redux").ConnectedComponent<typeof SData, import("react-redux").Omit<{
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
context: any;
|
|
4
|
+
fieldName: any;
|
|
5
|
+
fieldValue: any;
|
|
6
|
+
type: any;
|
|
7
|
+
radiobuttons: any;
|
|
8
|
+
formState: any;
|
|
9
|
+
}, "formState" | "dispatch">>;
|
|
10
|
+
export default _default;
|
|
11
|
+
declare function SData({ context, fieldName, fieldValue, type, radiobuttons, formState, ...prop }: {
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
context: any;
|
|
14
|
+
fieldName: any;
|
|
15
|
+
fieldValue: any;
|
|
16
|
+
type: any;
|
|
17
|
+
radiobuttons: any;
|
|
18
|
+
formState: any;
|
|
19
|
+
}): JSX.Element;
|
|
@@ -3,7 +3,7 @@ declare var _default: import("react-redux").ConnectedComponent<typeof Sgroup, im
|
|
|
3
3
|
formState: any;
|
|
4
4
|
}, "formState" | "dispatch">>;
|
|
5
5
|
export default _default;
|
|
6
|
-
declare function Sgroup({ formState, ...
|
|
6
|
+
declare function Sgroup({ formState, ...prop }: {
|
|
7
7
|
[x: string]: any;
|
|
8
8
|
formState: any;
|
|
9
9
|
}): JSX.Element;
|
|
@@ -14,6 +14,10 @@ export default function initEditor(dispatch: any, getState: any): {
|
|
|
14
14
|
attrs: any;
|
|
15
15
|
}>;
|
|
16
16
|
onRemoveFG: (result: any) => Promise<any>;
|
|
17
|
+
onSdataEdit: (sgroup: any) => Promise<{
|
|
18
|
+
type: any;
|
|
19
|
+
attrs: any;
|
|
20
|
+
}>;
|
|
17
21
|
onMessage: (msg: any) => void;
|
|
18
22
|
onAromatizeStruct: (struct: any) => any;
|
|
19
23
|
onDearomatizeStruct: (struct: any) => any;
|
|
@@ -16,7 +16,7 @@ export function setDefaultSettings(): {
|
|
|
16
16
|
errors: {};
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
export function formReducer(state: any, action: any): any;
|
|
19
|
+
export function formReducer(state: any, action: any, formName: any): any;
|
|
20
20
|
export namespace formsState {
|
|
21
21
|
namespace atomProps {
|
|
22
22
|
const errors: {};
|
|
@@ -123,15 +123,18 @@ export namespace formsState {
|
|
|
123
123
|
const result_8: Record<string, any>;
|
|
124
124
|
export { result_8 as result };
|
|
125
125
|
}
|
|
126
|
-
namespace
|
|
126
|
+
namespace sgroup {
|
|
127
127
|
const errors_10: {};
|
|
128
128
|
export { errors_10 as errors };
|
|
129
129
|
const valid_9: boolean;
|
|
130
130
|
export { valid_9 as valid };
|
|
131
|
-
|
|
131
|
+
export namespace result_9 {
|
|
132
|
+
const type_1: string;
|
|
133
|
+
export { type_1 as type };
|
|
134
|
+
}
|
|
132
135
|
export { result_9 as result };
|
|
133
136
|
}
|
|
134
|
-
namespace
|
|
137
|
+
namespace text {
|
|
135
138
|
const errors_11: {};
|
|
136
139
|
export { errors_11 as errors };
|
|
137
140
|
const valid_10: boolean;
|
|
@@ -139,7 +142,15 @@ export namespace formsState {
|
|
|
139
142
|
const result_10: {};
|
|
140
143
|
export { result_10 as result };
|
|
141
144
|
}
|
|
142
|
-
|
|
145
|
+
namespace attach {
|
|
146
|
+
const errors_12: {};
|
|
147
|
+
export { errors_12 as errors };
|
|
148
|
+
const valid_11: boolean;
|
|
149
|
+
export { valid_11 as valid };
|
|
150
|
+
const result_11: {};
|
|
151
|
+
export { result_11 as result };
|
|
152
|
+
}
|
|
153
|
+
const sdata: {
|
|
143
154
|
errors: {};
|
|
144
155
|
valid: boolean;
|
|
145
156
|
result: {
|
|
@@ -15,5 +15,6 @@
|
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
/// <reference types="react" />
|
|
17
17
|
import 'react-contexify/ReactContexify.css';
|
|
18
|
+
export declare const CONTEXT_MENU_ID = "ketcherBondAndAtomContextMenu";
|
|
18
19
|
declare const ContextMenu: React.FC;
|
|
19
20
|
export default ContextMenu;
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
|
|
17
|
-
declare const ContextMenuTrigger: React.FC
|
|
16
|
+
/// <reference types="react" />
|
|
17
|
+
declare const ContextMenuTrigger: React.FC;
|
|
18
18
|
export default ContextMenuTrigger;
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { PredicateParams } from 'react-contexify';
|
|
3
|
-
export declare enum CONTEXT_MENU_ID {
|
|
4
|
-
FOR_BONDS = "context-menu-for-bonds",
|
|
5
|
-
FOR_ATOMS = "context-menu-for-atoms",
|
|
6
|
-
FOR_SELECTION = "context-menu-for-selection",
|
|
7
|
-
FOR_FUNCTIONAL_GROUPS = "context-menu-for-functional-groups"
|
|
8
|
-
}
|
|
9
|
-
export declare type ItemData = unknown;
|
|
1
|
+
import type { ItemProps, SubMenuProps } from 'react-contexify';
|
|
10
2
|
export declare type ContextMenuShowProps = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export declare type
|
|
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>;
|