ketcher-react 2.15.0-rc.5 → 2.16.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/Editor.d.ts +2 -1
- package/dist/components/Accordion/Accordion.d.ts +2 -1
- package/dist/components/Buttons/Button/Button.d.ts +2 -1
- package/dist/components/Buttons/IconButton/IconButton.d.ts +2 -1
- package/dist/components/Buttons/IconButton/types.d.ts +2 -0
- package/dist/components/Icon/Icon.d.ts +2 -1
- package/dist/components/Icon/types.d.ts +2 -2
- package/dist/components/Icon/utils/iconNameToIcon.d.ts +2 -0
- package/dist/components/Input/Input.d.ts +2 -1
- package/dist/components/StructRender/StructRender.d.ts +2 -1
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +4105 -3033
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4143 -3070
- package/dist/index.modern.js.map +1 -1
- package/dist/script/editor/tool/paste.d.ts +2 -0
- package/dist/script/editor/tool/select.d.ts +3 -1
- package/dist/script/editor/tool/sgroup.d.ts +2 -1
- package/dist/script/editor/tool/template.d.ts +7 -12
- package/dist/script/editor/tool/templatePreview.d.ts +42 -0
- package/dist/script/ui/App/App.container.d.ts +2 -1
- package/dist/script/ui/App/App.d.ts +2 -1
- package/dist/script/ui/App/AppHidden/AppHidden.container.d.ts +2 -1
- package/dist/script/ui/App/AppHidden/AppHidden.d.ts +2 -1
- package/dist/script/ui/action/atoms.d.ts +1 -1
- package/dist/script/ui/action/index.d.ts +6 -6
- package/dist/script/ui/action/templates.d.ts +1 -1
- package/dist/script/ui/action/tools.d.ts +7 -7
- package/dist/script/ui/action/zoom.d.ts +1 -1
- package/dist/script/ui/component/actionmenu.d.ts +1 -1
- package/dist/script/ui/component/cliparea/cliparea.d.ts +4 -3
- package/dist/script/ui/component/form/Input/Input.d.ts +1 -1
- package/dist/script/ui/component/form/MeasureInput/measure-input.d.ts +3 -2
- package/dist/script/ui/component/form/Select/Select.d.ts +4 -2
- package/dist/script/ui/component/form/buttonlist.d.ts +1 -1
- package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +2 -1
- package/dist/script/ui/component/form/combobox/combobox.d.ts +1 -1
- package/dist/script/ui/component/form/form/errorPopover.d.ts +1 -1
- package/dist/script/ui/component/form/form/form.d.ts +7 -5
- package/dist/script/ui/component/form/select-checkbox.d.ts +1 -1
- package/dist/script/ui/component/form/select-list.d.ts +1 -1
- package/dist/script/ui/component/form/systemfonts.d.ts +1 -1
- package/dist/script/ui/component/view/Atom/Atom.d.ts +1 -1
- package/dist/script/ui/component/view/Tabs/Tabs.d.ts +1 -1
- package/dist/script/ui/component/view/openbutton.d.ts +1 -1
- package/dist/script/ui/component/view/savebutton.d.ts +1 -1
- package/dist/script/ui/data/convert/keynorm.d.ts +1 -0
- package/dist/script/ui/data/convert/structconv.d.ts +12 -0
- package/dist/script/ui/data/schema/struct-schema.d.ts +298 -180
- package/dist/script/ui/data/templates.d.ts +1 -1
- package/dist/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.container.d.ts +2 -1
- package/dist/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.d.ts +2 -1
- package/dist/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.test.utils.d.ts +4 -3
- package/dist/script/ui/dialog/AbbreviationLookup/AbbreviationLookup.utils.d.ts +3 -2
- package/dist/script/ui/dialog/template/EmptySearchResult.d.ts +2 -1
- package/dist/script/ui/dialog/template/template-attach.d.ts +2 -2
- package/dist/script/ui/dialog/toolbox/SDataFieldset.d.ts +1 -1
- package/dist/script/ui/dialog/toolbox/SGroupFieldset.d.ts +1 -1
- package/dist/script/ui/dialog/toolbox/labeledit.d.ts +2 -2
- package/dist/script/ui/dialog/toolbox/rgroup/rgroup.d.ts +2 -2
- package/dist/script/ui/dialog/toolbox/sgroup.d.ts +2 -2
- package/dist/script/ui/state/constants.d.ts +1 -0
- package/dist/script/ui/state/hotkeys.d.ts +3 -3
- package/dist/script/ui/state/hotkeys.test.d.ts +1 -0
- package/dist/script/ui/state/modal/atoms.d.ts +2 -2
- package/dist/script/ui/state/modal/form.d.ts +14 -5
- package/dist/script/ui/views/components/Cursor.d.ts +1 -1
- package/dist/script/ui/views/components/Dialog/Dialog.d.ts +1 -0
- package/dist/script/ui/views/components/Spinner/LoadingCircles.d.ts +2 -1
- package/dist/script/ui/views/components/StructEditor/InfoTooltip.d.ts +23 -0
- package/dist/script/ui/views/components/StructEditor/StructEditor.d.ts +1 -1
- package/dist/script/ui/views/modal/Modal.d.ts +2 -1
- package/dist/script/ui/views/modal/components/Confirm/Confirm.d.ts +2 -1
- package/dist/script/ui/views/modal/components/ExtendedTable/ExtendedTable.d.ts +1 -1
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/BoxWithLines.d.ts +3 -2
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenGroup.d.ts +2 -1
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenSet.d.ts +2 -1
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenericGroups.d.ts +2 -1
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/components/ButtonGenSet/ButtonGenSet.d.ts +2 -1
- package/dist/script/ui/views/modal/components/InfoModal/InfoModal.d.ts +2 -1
- package/dist/script/ui/views/modal/components/PeriodTable/PeriodTable.d.ts +2 -2
- package/dist/script/ui/views/modal/components/PeriodTable/components/AtomInfo/AtomInfo.d.ts +1 -1
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/ElementsTable.d.ts +1 -1
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/Header.d.ts +1 -1
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/MainRow.d.ts +1 -1
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/OutinerRow.d.ts +1 -1
- package/dist/script/ui/views/modal/components/PeriodTable/components/TypeChoice/TypeChoice.d.ts +1 -1
- package/dist/script/ui/views/modal/components/Text/FontControl/FontControl.d.ts +2 -1
- package/dist/script/ui/views/modal/components/Text/SpecialSymbols/SpecialSymbolsButton.d.ts +2 -1
- package/dist/script/ui/views/modal/components/Text/SpecialSymbolsList/SpecialSymbolsList.d.ts +2 -1
- package/dist/script/ui/views/modal/components/Text/Text.d.ts +2 -1
- package/dist/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +2 -1
- package/dist/script/ui/views/modal/components/document/Open/components/AnalyzingFile.d.ts +2 -1
- package/dist/script/ui/views/modal/components/document/Open/components/DialogActionButton.d.ts +2 -1
- package/dist/script/ui/views/modal/components/document/Open/components/FileDrop.d.ts +2 -1
- package/dist/script/ui/views/modal/components/document/Open/components/TextEditor.d.ts +2 -1
- package/dist/script/ui/views/modal/components/document/Save/Save.d.ts +5 -5
- package/dist/script/ui/views/modal/components/meta/About/About.d.ts +1 -1
- package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +2 -1
- package/dist/script/ui/views/modal/components/process/Analyse/Analyse.d.ts +1 -1
- package/dist/script/ui/views/modal/components/process/Analyse/components/FormulaInput/FormulaInput.d.ts +1 -1
- package/dist/script/ui/views/modal/components/process/Analyse/components/FrozenInput/FrozenInput.d.ts +1 -1
- package/dist/script/ui/views/modal/components/process/Check/Check.d.ts +1 -1
- package/dist/script/ui/views/modal/components/process/Check/components/ErrorsCheck.d.ts +1 -1
- package/dist/script/ui/views/modal/components/process/Miew/Miew.d.ts +2 -1
- 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 +2 -0
- package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.d.ts +2 -0
- package/dist/script/ui/views/modal/components/toolbox/Atom/AtomElement/AtomElement.d.ts +4 -0
- package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +2 -1
- package/dist/script/ui/views/modal/components/toolbox/Atom/helper.d.ts +6 -0
- package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +2 -1
- package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +2 -1
- package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +2 -1
- package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +2 -1
- package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +2 -1
- package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +8 -4
- package/dist/script/ui/views/modal/components/toolbox/FG/RemoveFG.d.ts +2 -1
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +2 -1
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +2 -1
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +2 -1
- package/dist/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +2 -1
- package/dist/script/ui/views/toolbars/BottomToolbar/BottomToolbar.d.ts +2 -1
- package/dist/script/ui/views/toolbars/BottomToolbar/TemplatesList/TemplatesList.d.ts +2 -1
- package/dist/script/ui/views/toolbars/LeftToolbar/Bond/Bond.d.ts +2 -1
- package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +2 -1
- package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.d.ts +2 -1
- package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/RGroup.d.ts +2 -1
- package/dist/script/ui/views/toolbars/LeftToolbar/Shape/Shape.d.ts +2 -1
- package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.d.ts +2 -1
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/ActionButton.d.ts +2 -1
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarGroupItem.d.ts +2 -1
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/ToolbarMultiToolItem.d.ts +2 -1
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/DefaultMultiTool/DefaultMultiTool.d.ts +2 -1
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/GroupedMultiTool/GroupedMultiTool.d.ts +2 -1
- package/dist/script/ui/views/toolbars/TopToolbar/ClipboardControls.d.ts +2 -1
- package/dist/script/ui/views/toolbars/TopToolbar/Divider.d.ts +3 -2
- package/dist/script/ui/views/toolbars/TopToolbar/ElementWithDropdown.d.ts +1 -1
- package/dist/script/ui/views/toolbars/TopToolbar/ExternalFuncControls.d.ts +2 -1
- package/dist/script/ui/views/toolbars/TopToolbar/FileControls.d.ts +2 -1
- package/dist/script/ui/views/toolbars/TopToolbar/SystemControls.d.ts +2 -1
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +2 -1
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +2 -1
- package/dist/script/ui/views/toolbars/TopToolbar/UndoRedo.d.ts +2 -1
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomControls.d.ts +2 -1
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomInput.d.ts +1 -1
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomList.d.ts +2 -1
- package/dist/script/ui/views/toolbars/TopToolbar/ZoomSlider.d.ts +2 -1
- package/package.json +3 -3
|
@@ -22,10 +22,12 @@ declare class PasteTool implements Tool {
|
|
|
22
22
|
private mergeItems;
|
|
23
23
|
private readonly isSingleContractedGroup;
|
|
24
24
|
constructor(editor: any, struct: any);
|
|
25
|
+
private get restruct();
|
|
25
26
|
mousedown(event: any): void;
|
|
26
27
|
mousemove(event: any): void;
|
|
27
28
|
mouseup(): void;
|
|
28
29
|
cancel(): void;
|
|
29
30
|
mouseleave(): void;
|
|
31
|
+
mouseLeaveClientArea(): void;
|
|
30
32
|
}
|
|
31
33
|
export default PasteTool;
|
|
@@ -21,7 +21,8 @@ declare class SelectTool implements Tool {
|
|
|
21
21
|
#private;
|
|
22
22
|
private readonly editor;
|
|
23
23
|
private dragCtx;
|
|
24
|
-
|
|
24
|
+
private previousMouseMoveEvent?;
|
|
25
|
+
isMouseDown: boolean;
|
|
25
26
|
readonly isMoving = false;
|
|
26
27
|
constructor(editor: Editor, mode: SelectMode);
|
|
27
28
|
isSelectionRunning(): boolean;
|
|
@@ -33,6 +34,7 @@ declare class SelectTool implements Tool {
|
|
|
33
34
|
private selectElementsOnCanvas;
|
|
34
35
|
private isDraggingStructureOnSaltOrSolvent;
|
|
35
36
|
private updateArrowResizingState;
|
|
37
|
+
private moveCanvas;
|
|
36
38
|
}
|
|
37
39
|
export declare function selMerge(selection: any, add: any, reversible: boolean): any;
|
|
38
40
|
export declare function getSelectedAtoms(selection: any, molecule: any): Atom[];
|
|
@@ -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 Editor from '../Editor';
|
|
16
17
|
import { Tool } from './Tool';
|
|
17
18
|
declare class SGroupTool implements Tool {
|
|
18
19
|
private readonly editor;
|
|
@@ -25,6 +26,6 @@ declare class SGroupTool implements Tool {
|
|
|
25
26
|
mouseleave(event: any): void;
|
|
26
27
|
mouseup(event: any): void;
|
|
27
28
|
cancel(): void;
|
|
28
|
-
static sgroupDialog(editor:
|
|
29
|
+
static sgroupDialog(editor: Editor, id: number | null): void;
|
|
29
30
|
}
|
|
30
31
|
export default SGroupTool;
|
|
@@ -13,20 +13,18 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
import {
|
|
16
|
+
import { Struct, Bond } from 'ketcher-core';
|
|
17
17
|
import Editor from '../Editor';
|
|
18
18
|
import { Tool } from './Tool';
|
|
19
|
-
export declare
|
|
19
|
+
export declare function getBondFlipSign(struct: Struct, bond: Bond): number;
|
|
20
|
+
export declare function getAngleFromEvent(event: any, ci: any, restruct: any): any;
|
|
20
21
|
declare class TemplateTool implements Tool {
|
|
21
22
|
private readonly editor;
|
|
22
23
|
private readonly mode;
|
|
23
24
|
private readonly template;
|
|
24
25
|
private readonly findItems;
|
|
26
|
+
private templatePreview;
|
|
25
27
|
private dragCtx;
|
|
26
|
-
private isPreviewVisible;
|
|
27
|
-
private previewRemoveAction;
|
|
28
|
-
private previewTimeout;
|
|
29
|
-
private lastPreviewId;
|
|
30
28
|
private targetGroupsIds;
|
|
31
29
|
private readonly isSaltOrSolvent;
|
|
32
30
|
private event;
|
|
@@ -42,11 +40,8 @@ declare class TemplateTool implements Tool {
|
|
|
42
40
|
mousemove(event: any): boolean;
|
|
43
41
|
mouseup(event?: any): boolean;
|
|
44
42
|
cancel(): void;
|
|
45
|
-
mouseleave(
|
|
46
|
-
|
|
47
|
-
showPreview(event: MouseEvent | {
|
|
48
|
-
clientX: number;
|
|
49
|
-
clientY: number;
|
|
50
|
-
}, ci: any, restruct: ReStruct): void;
|
|
43
|
+
mouseleave(): void;
|
|
44
|
+
mouseLeaveClientArea(): void;
|
|
51
45
|
}
|
|
46
|
+
export declare function getSign(molecule: any, bond: any, v: any): 0 | 1 | -1;
|
|
52
47
|
export default TemplateTool;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/****************************************************************************
|
|
2
|
+
* Copyright 2021 EPAM Systems
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
***************************************************************************/
|
|
16
|
+
import Editor from '../Editor';
|
|
17
|
+
declare class TemplatePreview {
|
|
18
|
+
private readonly editor;
|
|
19
|
+
private readonly template;
|
|
20
|
+
private readonly mode;
|
|
21
|
+
private floatingPreviewAction;
|
|
22
|
+
private connectedPreviewAction;
|
|
23
|
+
private connectedPreviewTimeout;
|
|
24
|
+
private lastPreviewId;
|
|
25
|
+
private floatingPreview;
|
|
26
|
+
private position;
|
|
27
|
+
private previousPosition;
|
|
28
|
+
constructor(editor: Editor, template: any, mode: any);
|
|
29
|
+
private get struct();
|
|
30
|
+
private get restruct();
|
|
31
|
+
private get isModeFunctionalGroup();
|
|
32
|
+
hidePreview(): void;
|
|
33
|
+
private getPreviewTarget;
|
|
34
|
+
movePreview(event: PointerEvent): void;
|
|
35
|
+
private moveFloatingPreview;
|
|
36
|
+
private hoverFusedItems;
|
|
37
|
+
private showFloatingPreview;
|
|
38
|
+
private hideFloatingPreview;
|
|
39
|
+
private hideConnectedPreview;
|
|
40
|
+
private showConnectedPreview;
|
|
41
|
+
}
|
|
42
|
+
export default TemplatePreview;
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { AppCallProps } from './App';
|
|
17
|
-
declare const AppContainer: import("react-redux").ConnectedComponent<(props: AppCallProps) =>
|
|
18
|
+
declare const AppContainer: import("react-redux").ConnectedComponent<(props: AppCallProps) => JSX.Element, import("react-redux").Omit<AppCallProps, "checkServer">>;
|
|
18
19
|
export { AppContainer };
|
|
19
20
|
export default AppContainer;
|
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
interface AppCallProps {
|
|
17
18
|
checkServer: () => void;
|
|
18
19
|
}
|
|
19
20
|
declare type Props = AppCallProps;
|
|
20
|
-
declare const App: (props: Props) =>
|
|
21
|
+
declare const App: (props: Props) => JSX.Element;
|
|
21
22
|
export type { AppCallProps };
|
|
22
23
|
export { App };
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
import { AppHiddenCallProps } from './AppHidden';
|
|
17
|
-
declare const AppHiddenContainer: import("react-redux").ConnectedComponent<(props: AppHiddenCallProps) =>
|
|
18
|
+
declare const AppHiddenContainer: import("react-redux").ConnectedComponent<(props: AppHiddenCallProps) => JSX.Element, import("react-redux").Omit<AppHiddenCallProps, "onInitTmpls">>;
|
|
18
19
|
export { AppHiddenContainer };
|
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
interface AppHiddenCallProps {
|
|
17
18
|
onInitTmpls: (cacheEl: any, url: any) => void;
|
|
18
19
|
}
|
|
19
20
|
declare type Props = AppHiddenCallProps;
|
|
20
|
-
declare const AppHidden: (props: Props) =>
|
|
21
|
+
declare const AppHidden: (props: Props) => JSX.Element;
|
|
21
22
|
export type { AppHiddenCallProps };
|
|
22
23
|
export { AppHidden };
|
|
@@ -68,26 +68,26 @@ declare const config: {
|
|
|
68
68
|
};
|
|
69
69
|
hidden: (options: any) => boolean;
|
|
70
70
|
};
|
|
71
|
-
'select-
|
|
71
|
+
'select-rectangle': {
|
|
72
72
|
title: string;
|
|
73
|
-
shortcut: string;
|
|
73
|
+
shortcut: string[];
|
|
74
74
|
action: {
|
|
75
75
|
tool: string;
|
|
76
76
|
opts: string;
|
|
77
77
|
};
|
|
78
|
+
hidden: (options: any) => boolean;
|
|
78
79
|
};
|
|
79
|
-
'select-
|
|
80
|
+
'select-lasso': {
|
|
80
81
|
title: string;
|
|
81
|
-
shortcut: string;
|
|
82
|
+
shortcut: string[];
|
|
82
83
|
action: {
|
|
83
84
|
tool: string;
|
|
84
85
|
opts: string;
|
|
85
86
|
};
|
|
86
|
-
hidden: (options: any) => boolean;
|
|
87
87
|
};
|
|
88
88
|
'select-fragment': {
|
|
89
89
|
title: string;
|
|
90
|
-
shortcut: string;
|
|
90
|
+
shortcut: string[];
|
|
91
91
|
action: {
|
|
92
92
|
tool: string;
|
|
93
93
|
opts: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare var _default: {
|
|
2
2
|
hand: {
|
|
3
3
|
title: string;
|
|
4
4
|
shortcut: string;
|
|
@@ -7,26 +7,26 @@ declare const _default: {
|
|
|
7
7
|
};
|
|
8
8
|
hidden: (options: any) => boolean;
|
|
9
9
|
};
|
|
10
|
-
'select-
|
|
10
|
+
'select-rectangle': {
|
|
11
11
|
title: string;
|
|
12
|
-
shortcut: string;
|
|
12
|
+
shortcut: string[];
|
|
13
13
|
action: {
|
|
14
14
|
tool: string;
|
|
15
15
|
opts: string;
|
|
16
16
|
};
|
|
17
|
+
hidden: (options: any) => boolean;
|
|
17
18
|
};
|
|
18
|
-
'select-
|
|
19
|
+
'select-lasso': {
|
|
19
20
|
title: string;
|
|
20
|
-
shortcut: string;
|
|
21
|
+
shortcut: string[];
|
|
21
22
|
action: {
|
|
22
23
|
tool: string;
|
|
23
24
|
opts: string;
|
|
24
25
|
};
|
|
25
|
-
hidden: (options: any) => boolean;
|
|
26
26
|
};
|
|
27
27
|
'select-fragment': {
|
|
28
28
|
title: string;
|
|
29
|
-
shortcut: string;
|
|
29
|
+
shortcut: string[];
|
|
30
30
|
action: {
|
|
31
31
|
tool: string;
|
|
32
32
|
opts: string;
|
|
@@ -10,12 +10,13 @@ declare class ClipArea extends Component<any, any, any> {
|
|
|
10
10
|
listeners: {
|
|
11
11
|
mouseup: (event: any) => void;
|
|
12
12
|
mousedown: (event: any) => void;
|
|
13
|
-
copy: (event: any) =>
|
|
14
|
-
cut: (event: any) =>
|
|
13
|
+
copy: (event: any) => void;
|
|
14
|
+
cut: (event: any) => void;
|
|
15
15
|
paste: (event: any) => void;
|
|
16
|
+
keydown: (event: any) => Promise<void>;
|
|
16
17
|
} | undefined;
|
|
17
18
|
shouldComponentUpdate(): boolean;
|
|
18
19
|
componentWillUnmount(): void;
|
|
19
|
-
render():
|
|
20
|
+
render(): JSX.Element;
|
|
20
21
|
}
|
|
21
22
|
import { Component } from "react";
|
|
@@ -35,7 +35,7 @@ export declare function GenericInput({ schema, value, onChange, innerRef, type,
|
|
|
35
35
|
innerRef: any;
|
|
36
36
|
type?: string | undefined;
|
|
37
37
|
isFocused?: boolean | undefined;
|
|
38
|
-
}):
|
|
38
|
+
}): JSX.Element;
|
|
39
39
|
export declare namespace GenericInput {
|
|
40
40
|
var val: (ev: any, schema: any) => any;
|
|
41
41
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export default MeasureInput;
|
|
2
|
-
declare function MeasureInput({ schema, value, onChange, name, ...rest }: {
|
|
2
|
+
declare function MeasureInput({ schema, value, onChange, name, className, ...rest }: {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
schema: any;
|
|
5
5
|
value: any;
|
|
6
6
|
onChange: any;
|
|
7
7
|
name: any;
|
|
8
|
-
|
|
8
|
+
className: any;
|
|
9
|
+
}): JSX.Element;
|
|
@@ -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 interface Option {
|
|
17
18
|
value: string;
|
|
18
19
|
label: string;
|
|
@@ -24,7 +25,8 @@ interface Props {
|
|
|
24
25
|
value?: string;
|
|
25
26
|
multiple?: boolean;
|
|
26
27
|
disabled?: boolean;
|
|
27
|
-
|
|
28
|
+
formName?: string;
|
|
29
|
+
name?: string;
|
|
28
30
|
}
|
|
29
|
-
declare const Select: ({ className, value, onChange, multiple, disabled, options,
|
|
31
|
+
declare const Select: ({ className, value, onChange, multiple, disabled, options, formName, name, }: Props) => JSX.Element;
|
|
30
32
|
export default Select;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
interface ColorPickerProps {
|
|
17
18
|
value: string;
|
|
18
19
|
name: string;
|
|
@@ -23,5 +24,5 @@ interface ColorPickerCallProps {
|
|
|
23
24
|
onChange: (value: string) => void;
|
|
24
25
|
}
|
|
25
26
|
declare type Props = ColorPickerProps & ColorPickerCallProps;
|
|
26
|
-
declare const ColorPicker: (props: Props) =>
|
|
27
|
+
declare const ColorPicker: (props: Props) => JSX.Element;
|
|
27
28
|
export default ColorPicker;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare var _default: import("react-redux").ConnectedComponent<typeof Form, import("react-redux").Omit<any, "onUpdate">>;
|
|
2
2
|
export default _default;
|
|
3
3
|
declare class Form extends Component<any, any, any> {
|
|
4
4
|
constructor(props: any);
|
|
@@ -11,15 +11,17 @@ declare class Form extends Component<any, any, any> {
|
|
|
11
11
|
};
|
|
12
12
|
deserialize: (inst: any) => any;
|
|
13
13
|
};
|
|
14
|
-
componentDidUpdate(prevProps: any): void;
|
|
15
14
|
updateState(newState: any): void;
|
|
15
|
+
componentDidUpdate(prevProps: any): void;
|
|
16
16
|
field(name: any, onChange: any): {
|
|
17
17
|
dataError: any;
|
|
18
18
|
value: any;
|
|
19
19
|
onChange: (val: any) => void;
|
|
20
20
|
};
|
|
21
|
-
render():
|
|
21
|
+
render(): JSX.Element;
|
|
22
22
|
}
|
|
23
|
-
export function Field(props: any):
|
|
24
|
-
export function
|
|
23
|
+
export function Field(props: any): JSX.Element;
|
|
24
|
+
export function CustomQueryField(props: any): JSX.Element;
|
|
25
|
+
export function FieldWithModal(props: any): JSX.Element;
|
|
26
|
+
export function SelectOneOf(props: any): JSX.Element;
|
|
25
27
|
import { Component } from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default SystemFonts;
|
|
2
|
-
declare function SystemFonts(props: any):
|
|
2
|
+
declare function SystemFonts(props: any): JSX.Element;
|
|
@@ -3,7 +3,7 @@ declare class OpenButton extends Component<any, any, any> {
|
|
|
3
3
|
constructor(props: any);
|
|
4
4
|
state: {};
|
|
5
5
|
open(ev: any): void;
|
|
6
|
-
render():
|
|
6
|
+
render(): JSX.Element;
|
|
7
7
|
btn: HTMLInputElement | null | undefined;
|
|
8
8
|
}
|
|
9
9
|
import { Component } from "react";
|
|
@@ -30,5 +30,5 @@ declare type Props = {
|
|
|
30
30
|
disabled?: boolean;
|
|
31
31
|
};
|
|
32
32
|
declare type SaveButtonProps = PropsWithChildren<Props>;
|
|
33
|
-
declare const SaveButton: (props: SaveButtonProps) =>
|
|
33
|
+
declare const SaveButton: (props: SaveButtonProps) => JSX.Element;
|
|
34
34
|
export { SaveButton };
|
|
@@ -2,6 +2,10 @@ export function fromElement(selem: any): any;
|
|
|
2
2
|
export function toElement(elem: any): any;
|
|
3
3
|
export function fromAtom(satom: any): {
|
|
4
4
|
alias: any;
|
|
5
|
+
atomType: "list" | "single" | "pseudo";
|
|
6
|
+
atomList: any;
|
|
7
|
+
notList: any;
|
|
8
|
+
pseudo: any;
|
|
5
9
|
label: any;
|
|
6
10
|
charge: any;
|
|
7
11
|
isotope: any;
|
|
@@ -14,6 +18,13 @@ export function fromAtom(satom: any): {
|
|
|
14
18
|
unsaturatedAtom: boolean;
|
|
15
19
|
hCount: any;
|
|
16
20
|
stereoParity: any;
|
|
21
|
+
implicitHCount: any;
|
|
22
|
+
aromaticity: any;
|
|
23
|
+
ringMembership: any;
|
|
24
|
+
ringSize: any;
|
|
25
|
+
connectivity: any;
|
|
26
|
+
chirality: any;
|
|
27
|
+
customQuery: any;
|
|
17
28
|
};
|
|
18
29
|
export function toAtom(atom: any): any;
|
|
19
30
|
export function fromStereoLabel(stereoLabel: any): {
|
|
@@ -30,6 +41,7 @@ export function fromBond(sbond: any): {
|
|
|
30
41
|
type: string;
|
|
31
42
|
topology: any;
|
|
32
43
|
center: any;
|
|
44
|
+
customQuery: any;
|
|
33
45
|
};
|
|
34
46
|
export function toBond(bond: any): any;
|
|
35
47
|
export function toBondType(caption: any): any;
|