ketcher-react 2.8.0-rc.3-dev.1 → 2.8.0-rc.3-dev.3
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 +29 -0
- package/dist/constants.d.ts +17 -0
- package/dist/contexts/appContext.d.ts +22 -0
- package/dist/contexts/errorsContext.d.ts +21 -0
- package/dist/contexts/formContext.d.ts +18 -0
- package/dist/contexts/index.d.ts +21 -0
- package/dist/contexts/settingsContext.d.ts +21 -0
- package/dist/hooks/index.d.ts +21 -0
- package/dist/hooks/useAppContext.d.ts +16 -0
- package/dist/hooks/useFormContext.d.ts +16 -0
- package/dist/hooks/useInterval.d.ts +16 -0
- package/dist/hooks/useResizeObserver.d.ts +26 -0
- package/dist/hooks/useSettingsContext.d.ts +16 -0
- package/dist/hooks/useSubscribtionOnEvents.d.ts +16 -0
- package/dist/icons/index.d.ts +16 -0
- package/dist/index.css +2 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +23859 -0
- package/dist/index.js.map +1 -0
- package/dist/index.modern.js +23794 -0
- package/dist/index.modern.js.map +1 -0
- package/dist/script/api.d.ts +19 -0
- package/dist/script/builders/index.d.ts +16 -0
- package/dist/script/builders/ketcher/ButtonConfig.d.ts +18 -0
- package/dist/script/builders/ketcher/ButtonName.d.ts +16 -0
- package/dist/script/builders/ketcher/ButtonsConfig.d.ts +20 -0
- package/dist/script/builders/ketcher/KetcherBuilder.d.ts +29 -0
- package/dist/script/builders/ketcher/index.d.ts +17 -0
- package/dist/script/editor/Editor.d.ts +96 -0
- package/dist/script/editor/highlighter.d.ts +32 -0
- package/dist/script/editor/index.d.ts +18 -0
- package/dist/script/editor/shared/closest.d.ts +25 -0
- package/dist/script/editor/shared/utils.d.ts +48 -0
- package/dist/script/editor/tool/apoint.d.ts +23 -0
- package/dist/script/editor/tool/atom.d.ts +31 -0
- package/dist/script/editor/tool/attach.d.ts +24 -0
- package/dist/script/editor/tool/bond.d.ts +32 -0
- package/dist/script/editor/tool/chain.d.ts +27 -0
- package/dist/script/editor/tool/charge.d.ts +24 -0
- package/dist/script/editor/tool/enhanced-stereo.d.ts +24 -0
- package/dist/script/editor/tool/eraser.d.ts +31 -0
- package/dist/script/editor/tool/hand.d.ts +30 -0
- package/dist/script/editor/tool/helper/dropAndMerge.d.ts +8 -0
- package/dist/script/editor/tool/helper/getGroupIdsFromItems.d.ts +12 -0
- package/dist/script/editor/tool/helper/getMergeItems.d.ts +2 -0
- package/dist/script/editor/tool/helper/lasso.d.ts +59 -0
- package/dist/script/editor/tool/helper/locate.d.ts +40 -0
- package/dist/script/editor/tool/index.d.ts +47 -0
- package/dist/script/editor/tool/paste.d.ts +34 -0
- package/dist/script/editor/tool/reactionarrow.d.ts +27 -0
- package/dist/script/editor/tool/reactionmap.d.ts +28 -0
- package/dist/script/editor/tool/reactionplus.d.ts +26 -0
- package/dist/script/editor/tool/reactionunmap.d.ts +23 -0
- package/dist/script/editor/tool/rgroupatom.d.ts +23 -0
- package/dist/script/editor/tool/rgroupfragment.d.ts +24 -0
- package/dist/script/editor/tool/rotate.d.ts +28 -0
- package/dist/script/editor/tool/select.d.ts +38 -0
- package/dist/script/editor/tool/sgroup.d.ts +30 -0
- package/dist/script/editor/tool/simpleobject.d.ts +26 -0
- package/dist/script/editor/tool/template.d.ts +32 -0
- package/dist/script/editor/tool/text.d.ts +26 -0
- package/dist/script/editor/utils/customOnChangeHandler.d.ts +16 -0
- package/dist/script/editor/utils/elementOffset.d.ts +17 -0
- package/dist/script/editor/utils/functionalGroupsTooltip.d.ts +3 -0
- package/dist/script/editor/utils/index.d.ts +17 -0
- package/dist/script/index.d.ts +27 -0
- package/dist/script/ui/App/App.container.d.ts +20 -0
- package/dist/script/ui/App/App.d.ts +23 -0
- package/dist/script/ui/App/AppHidden/AppHidden.container.d.ts +19 -0
- package/dist/script/ui/App/AppHidden/AppHidden.d.ts +23 -0
- package/dist/script/ui/App/AppHidden/index.d.ts +16 -0
- package/dist/script/ui/App/index.d.ts +16 -0
- package/dist/script/ui/App/initApp.d.ts +18 -0
- package/dist/script/ui/Portal/Portal.d.ts +38 -0
- package/dist/script/ui/Portal/index.d.ts +16 -0
- package/dist/script/ui/action/action.types.d.ts +44 -0
- package/dist/script/ui/action/atoms.d.ts +40 -0
- package/dist/script/ui/action/copyAs.d.ts +1 -0
- package/dist/script/ui/action/copyImageToClipboard.d.ts +2 -0
- package/dist/script/ui/action/debug.d.ts +13 -0
- package/dist/script/ui/action/flips.d.ts +1 -0
- package/dist/script/ui/action/fullscreen.d.ts +23 -0
- package/dist/script/ui/action/functionalGroups.d.ts +31 -0
- package/dist/script/ui/action/help.d.ts +8 -0
- package/dist/script/ui/action/index.d.ts +662 -0
- package/dist/script/ui/action/isHidden.d.ts +16 -0
- package/dist/script/ui/action/server.d.ts +125 -0
- package/dist/script/ui/action/templates.d.ts +13 -0
- package/dist/script/ui/action/tools.d.ts +350 -0
- package/dist/script/ui/action/zoom.d.ts +27 -0
- package/dist/script/ui/component/actionmenu.d.ts +9 -0
- package/dist/script/ui/component/cliparea/cliparea.d.ts +20 -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/component/form/Select/index.d.ts +17 -0
- package/dist/script/ui/component/form/buttonlist.d.ts +9 -0
- package/dist/script/ui/component/form/colorPicker/ColorPicker.d.ts +28 -0
- package/dist/script/ui/component/form/colorPicker/ColorPicker.test.d.ts +1 -0
- package/dist/script/ui/component/form/combobox/combobox.d.ts +12 -0
- package/dist/script/ui/component/form/form/errorPopover.d.ts +5 -0
- package/dist/script/ui/component/form/form/form.d.ts +25 -0
- package/dist/script/ui/component/form/input.d.ts +43 -0
- package/dist/script/ui/component/form/select-checkbox.d.ts +5 -0
- package/dist/script/ui/component/form/select-list.d.ts +26 -0
- package/dist/script/ui/component/form/systemfonts.d.ts +2 -0
- package/dist/script/ui/component/structrender.d.ts +33 -0
- package/dist/script/ui/component/view/Atom/Atom.d.ts +7 -0
- package/dist/script/ui/component/view/Atom/index.d.ts +16 -0
- package/dist/script/ui/component/view/Tabs/Tabs.d.ts +9 -0
- package/dist/script/ui/component/view/Tabs/index.d.ts +16 -0
- package/dist/script/ui/component/view/icon.d.ts +5 -0
- package/dist/script/ui/component/view/openbutton.d.ts +9 -0
- package/dist/script/ui/component/view/savebutton.d.ts +32 -0
- package/dist/script/ui/data/convert/keynorm.d.ts +6 -0
- package/dist/script/ui/data/convert/structConverter.d.ts +17 -0
- package/dist/script/ui/data/convert/structconv.d.ts +40 -0
- package/dist/script/ui/data/schema/options-schema.d.ts +26 -0
- package/dist/script/ui/data/schema/schema-helper.d.ts +2 -0
- package/dist/script/ui/data/schema/sdata-schema.d.ts +60 -0
- package/dist/script/ui/data/schema/struct-schema.d.ts +301 -0
- package/dist/script/ui/data/templates.d.ts +2 -0
- package/dist/script/ui/dialog/index.d.ts +17 -0
- package/dist/script/ui/dialog/template/EmptySearchResult.d.ts +20 -0
- package/dist/script/ui/dialog/template/TemplateDialog.d.ts +42 -0
- package/dist/script/ui/dialog/template/TemplateTable.d.ts +39 -0
- package/dist/script/ui/dialog/template/template-attach.d.ts +28 -0
- package/dist/script/ui/dialog/template/useSaltsAndSolvets.d.ts +2 -0
- package/dist/script/ui/dialog/toolbox/SDataFieldset.d.ts +4 -0
- package/dist/script/ui/dialog/toolbox/SGroupFieldset.d.ts +4 -0
- package/dist/script/ui/dialog/toolbox/enhancedStereo/enhancedStereo.d.ts +42 -0
- package/dist/script/ui/dialog/toolbox/labeledit.d.ts +3 -0
- package/dist/script/ui/dialog/toolbox/rgroup/rgroup.d.ts +15 -0
- package/dist/script/ui/dialog/toolbox/sgroup.d.ts +9 -0
- package/dist/script/ui/index.d.ts +16 -0
- package/dist/script/ui/state/action/index.d.ts +7 -0
- package/dist/script/ui/state/constants.d.ts +6 -0
- package/dist/script/ui/state/editor/index.d.ts +23 -0
- package/dist/script/ui/state/functionalGroups/index.d.ts +25 -0
- package/dist/script/ui/state/functionalGroups/selectors/index.d.ts +18 -0
- package/dist/script/ui/state/handleHotkeysOverItem.d.ts +15 -0
- package/dist/script/ui/state/hotkeys.d.ts +23 -0
- package/dist/script/ui/state/index.d.ts +6 -0
- package/dist/script/ui/state/modal/atoms.d.ts +13 -0
- package/dist/script/ui/state/modal/form.d.ts +153 -0
- package/dist/script/ui/state/modal/index.d.ts +3 -0
- package/dist/script/ui/state/modal/sdata.d.ts +16 -0
- package/dist/script/ui/state/options/index.d.ts +68 -0
- package/dist/script/ui/state/request/index.d.ts +22 -0
- package/dist/script/ui/state/request/reducer.test.d.ts +16 -0
- package/dist/script/ui/state/request/request.types.d.ts +27 -0
- package/dist/script/ui/state/saltsAndSolvents/index.d.ts +23 -0
- package/dist/script/ui/state/saltsAndSolvents/selectors/index.d.ts +16 -0
- package/dist/script/ui/state/server/index.d.ts +7 -0
- package/dist/script/ui/state/shared.d.ts +19 -0
- package/dist/script/ui/state/templates/index.d.ts +77 -0
- package/dist/script/ui/state/templates/init-lib.d.ts +8 -0
- package/dist/script/ui/state/toolbar/index.d.ts +33 -0
- package/dist/script/ui/storage-ext.d.ts +9 -0
- package/dist/script/ui/utils/fileOpener.d.ts +16 -0
- package/dist/script/ui/utils/index.d.ts +15 -0
- 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/AppClipArea.d.ts +18 -0
- package/dist/script/ui/views/Editor.d.ts +3 -0
- package/dist/script/ui/views/components/ContextMenu/ContextMenu.d.ts +19 -0
- package/dist/script/ui/views/components/ContextMenu/ContextMenuTrigger.d.ts +18 -0
- package/dist/script/ui/views/components/ContextMenu/contextMenu.types.d.ts +16 -0
- package/dist/script/ui/views/components/ContextMenu/hooks/useAtomEdit.d.ts +3 -0
- package/dist/script/ui/views/components/ContextMenu/hooks/useAtomStereo.d.ts +3 -0
- package/dist/script/ui/views/components/ContextMenu/hooks/useBondEdit.d.ts +3 -0
- package/dist/script/ui/views/components/ContextMenu/hooks/useBondSGroupAttach.d.ts +3 -0
- package/dist/script/ui/views/components/ContextMenu/hooks/useBondSGroupEdit.d.ts +3 -0
- package/dist/script/ui/views/components/ContextMenu/hooks/useBondTypeChange.d.ts +3 -0
- package/dist/script/ui/views/components/ContextMenu/hooks/useDelete.d.ts +3 -0
- package/dist/script/ui/views/components/ContextMenu/hooks/useFunctionalGroupEoc.d.ts +6 -0
- package/dist/script/ui/views/components/ContextMenu/hooks/useFunctionalGroupRemove.d.ts +3 -0
- package/dist/script/ui/views/components/ContextMenu/index.d.ts +2 -0
- package/dist/script/ui/views/components/ContextMenu/menuItems/AtomMenuItems.d.ts +3 -0
- package/dist/script/ui/views/components/ContextMenu/menuItems/BondMenuItems.d.ts +3 -0
- package/dist/script/ui/views/components/ContextMenu/menuItems/FunctionalGroupMenuItems.d.ts +3 -0
- package/dist/script/ui/views/components/ContextMenu/menuItems/SelectionMenuItems.d.ts +3 -0
- package/dist/script/ui/views/components/ContextMenu/utils.d.ts +25 -0
- package/dist/script/ui/views/components/Cursor.d.ts +6 -0
- package/dist/script/ui/views/components/Dialog/Dialog.d.ts +44 -0
- package/dist/script/ui/views/components/Dialog/index.d.ts +16 -0
- package/dist/script/ui/views/components/Spinner/LoadingCircles.d.ts +17 -0
- package/dist/script/ui/views/components/Spinner/index.d.ts +16 -0
- package/dist/script/ui/views/components/StructEditor/InfoPanel.d.ts +27 -0
- package/dist/script/ui/views/components/StructEditor/StructEditor.d.ts +19 -0
- package/dist/script/ui/views/components/StructEditor/index.d.ts +16 -0
- package/dist/script/ui/views/components/index.d.ts +19 -0
- package/dist/script/ui/views/modal/Modal.container.d.ts +19 -0
- package/dist/script/ui/views/modal/Modal.d.ts +28 -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 +37 -0
- package/dist/script/ui/views/modal/components/PeriodTable/components/AtomInfo/AtomInfo.d.ts +5 -0
- package/dist/script/ui/views/modal/components/PeriodTable/components/AtomInfo/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/ElementsTable.d.ts +9 -0
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/Header.d.ts +2 -0
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/MainRow.d.ts +11 -0
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/OutinerRow.d.ts +10 -0
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/components/index.d.ts +19 -0
- package/dist/script/ui/views/modal/components/PeriodTable/components/ElementsTable/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/PeriodTable/components/TypeChoice/TypeChoice.d.ts +6 -0
- package/dist/script/ui/views/modal/components/PeriodTable/components/TypeChoice/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/PeriodTable/components/index.d.ts +20 -0
- package/dist/script/ui/views/modal/components/PeriodTable/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/Text/FontControl/FontControl.d.ts +22 -0
- package/dist/script/ui/views/modal/components/Text/FontControl/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/Text/SpecialSymbols/SpecialSymbolsButton.d.ts +22 -0
- package/dist/script/ui/views/modal/components/Text/SpecialSymbolsList/SpecialSymbolsList.d.ts +20 -0
- package/dist/script/ui/views/modal/components/Text/Text.d.ts +26 -0
- package/dist/script/ui/views/modal/components/Text/TextButton/TextButton.d.ts +30 -0
- package/dist/script/ui/views/modal/components/Text/TextButton/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/Text/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/document/Open/Open.container.d.ts +24 -0
- package/dist/script/ui/views/modal/components/document/Open/Open.d.ts +29 -0
- 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 +22 -0
- package/dist/script/ui/views/modal/components/document/Open/components/ViewSwitcher.d.ts +31 -0
- package/dist/script/ui/views/modal/components/document/Open/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/document/Save/Save.d.ts +45 -0
- package/dist/script/ui/views/modal/components/document/Save/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/document/index.d.ts +18 -0
- package/dist/script/ui/views/modal/components/meta/About/About.d.ts +3 -0
- package/dist/script/ui/views/modal/components/meta/About/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/meta/Settings/Accordion/Accordion.d.ts +22 -0
- package/dist/script/ui/views/modal/components/meta/Settings/Accordion/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/meta/Settings/Settings.d.ts +38 -0
- package/dist/script/ui/views/modal/components/meta/Settings/fieldGroups.d.ts +41 -0
- package/dist/script/ui/views/modal/components/meta/Settings/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/meta/index.d.ts +18 -0
- package/dist/script/ui/views/modal/components/process/Analyse/Analyse.d.ts +10 -0
- package/dist/script/ui/views/modal/components/process/Analyse/components/FormulaInput/FormulaInput.d.ts +5 -0
- package/dist/script/ui/views/modal/components/process/Analyse/components/FormulaInput/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/process/Analyse/components/FrozenInput/FrozenInput.d.ts +19 -0
- package/dist/script/ui/views/modal/components/process/Analyse/components/FrozenInput/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/process/Analyse/components/index.d.ts +18 -0
- package/dist/script/ui/views/modal/components/process/Analyse/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/process/Check/Check.d.ts +3 -0
- package/dist/script/ui/views/modal/components/process/Check/components/ErrorsCheck.d.ts +17 -0
- package/dist/script/ui/views/modal/components/process/Check/components/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/process/Check/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/process/Miew/Miew.d.ts +31 -0
- package/dist/script/ui/views/modal/components/process/Miew/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/process/Recognize/Recognize.d.ts +3 -0
- package/dist/script/ui/views/modal/components/process/Recognize/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/process/index.d.ts +20 -0
- package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +22 -0
- package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.d.ts +38 -0
- package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/ElementNumber.d.ts +22 -0
- package/dist/script/ui/views/modal/components/toolbox/Atom/ElementNumber/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/toolbox/Atom/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.container.d.ts +18 -0
- package/dist/script/ui/views/modal/components/toolbox/Attach/Attach.d.ts +25 -0
- package/dist/script/ui/views/modal/components/toolbox/Attach/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.container.d.ts +19 -0
- package/dist/script/ui/views/modal/components/toolbox/Automap/Automap.d.ts +33 -0
- package/dist/script/ui/views/modal/components/toolbox/Automap/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.container.d.ts +18 -0
- package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +26 -0
- package/dist/script/ui/views/modal/components/toolbox/Bond/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/toolbox/FG/RemoveFG.d.ts +24 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.container.d.ts +18 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/RgroupLogic.d.ts +30 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/IfThenSelect.d.ts +20 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/IfThenSelect/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/components/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/toolbox/RgroupLogic/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/toolbox/index.d.ts +21 -0
- package/dist/script/ui/views/modal/index.d.ts +16 -0
- package/dist/script/ui/views/modal/mediaSizes.d.ts +20 -0
- package/dist/script/ui/views/modal/modal.types.d.ts +28 -0
- package/dist/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +24 -0
- package/dist/script/ui/views/toolbars/ArrowScroll/index.d.ts +2 -0
- package/dist/script/ui/views/toolbars/BottomToolbar/BottomToolbar.container.d.ts +20 -0
- package/dist/script/ui/views/toolbars/BottomToolbar/BottomToolbar.d.ts +29 -0
- package/dist/script/ui/views/toolbars/BottomToolbar/TemplatesList/TemplatesList.d.ts +34 -0
- package/dist/script/ui/views/toolbars/BottomToolbar/TemplatesList/index.d.ts +16 -0
- package/dist/script/ui/views/toolbars/BottomToolbar/index.d.ts +16 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/Bond/Bond.d.ts +25 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/Bond/index.d.ts +16 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/Bond/options.d.ts +24 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.container.d.ts +19 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/LeftToolbar.d.ts +25 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/RGroup.d.ts +25 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/RGroup/index.d.ts +16 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/Shape/Shape.d.ts +25 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/Shape/index.d.ts +16 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/Transform/Transform.d.ts +25 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/Transform/index.d.ts +16 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/index.d.ts +16 -0
- package/dist/script/ui/views/toolbars/LeftToolbar/leftToolbarOptions.d.ts +9 -0
- package/dist/script/ui/views/toolbars/RightToolbar/AtomsList/AtomsList.d.ts +32 -0
- package/dist/script/ui/views/toolbars/RightToolbar/AtomsList/index.d.ts +16 -0
- package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.container.d.ts +21 -0
- package/dist/script/ui/views/toolbars/RightToolbar/RightToolbar.d.ts +30 -0
- package/dist/script/ui/views/toolbars/RightToolbar/index.d.ts +16 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/ActionButton.d.ts +36 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ActionButton/index.d.ts +16 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarGroupItem.d.ts +36 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/ToolbarMultiToolItem.d.ts +41 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/index.d.ts +16 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalOpening.d.ts +19 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalStyle.d.ts +19 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/DefaultMultiTool/DefaultMultiTool.d.ts +23 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/DefaultMultiTool/index.d.ts +18 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/GroupedMultiTool/GroupedMultiTool.d.ts +23 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/GroupedMultiTool/index.d.ts +16 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/chooseMultiTool.d.ts +18 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/variants/variants.types.d.ts +35 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/index.d.ts +16 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/utils/index.d.ts +16 -0
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/utils/makeItems.d.ts +18 -0
- package/dist/script/ui/views/toolbars/TopToolbar/ClipboardControls.d.ts +31 -0
- package/dist/script/ui/views/toolbars/TopToolbar/Divider.d.ts +17 -0
- package/dist/script/ui/views/toolbars/TopToolbar/ElementWithDropdown.d.ts +23 -0
- package/dist/script/ui/views/toolbars/TopToolbar/ExternalFuncControls.d.ts +35 -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 +18 -0
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +55 -0
- 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/ZoomInput.d.ts +26 -0
- 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/TopToolbar/index.d.ts +16 -0
- package/dist/script/ui/views/toolbars/index.d.ts +19 -0
- package/dist/script/ui/views/toolbars/mediaSizes.d.ts +23 -0
- package/dist/script/ui/views/toolbars/shortcutStr.d.ts +1 -0
- package/dist/script/ui/views/toolbars/toolbar.types.d.ts +32 -0
- package/package.json +9 -10
|
@@ -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 { RequestActionTypes, RequestState } from './request.types';
|
|
17
|
+
export declare function indigoVerification(data: boolean): RequestActionTypes;
|
|
18
|
+
export declare function setAnalyzingFile(data: boolean): RequestActionTypes;
|
|
19
|
+
export default function (state: {
|
|
20
|
+
indigoVerification: boolean;
|
|
21
|
+
isAnalyzingFile: boolean;
|
|
22
|
+
} | undefined, action: RequestActionTypes): RequestState;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
export declare const INDIGO_VERIFICATION = "INDIGO_VERIFICATION";
|
|
17
|
+
export declare const ANALYZING_FILE = "ANALYZING_FILE";
|
|
18
|
+
export interface RequestState {
|
|
19
|
+
indigoVerification: boolean;
|
|
20
|
+
isAnalyzingFile: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface IndigoVerificationAction {
|
|
23
|
+
type: string;
|
|
24
|
+
data: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare type RequestActionTypes = IndigoVerificationAction;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { AnyAction } from 'redux';
|
|
17
|
+
interface SaltsAndSolventsState {
|
|
18
|
+
lib: [];
|
|
19
|
+
mode: string;
|
|
20
|
+
}
|
|
21
|
+
declare const saltsAndSolventsReducer: (state: SaltsAndSolventsState | undefined, { type, payload }: AnyAction) => any;
|
|
22
|
+
export declare function initSaltsAndSolventsTemplates(): (dispatch: any, getState: any) => Promise<void>;
|
|
23
|
+
export default saltsAndSolventsReducer;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export declare const saltsAndSolventsSelector: (state: any) => any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export function checkServer(): (dispatch: any, getState: any) => void;
|
|
2
|
+
export function recognize(file: any, version: any): (dispatch: any, getState: any) => void;
|
|
3
|
+
export function check(optsTypes: any): (dispatch: any, getState: any) => any;
|
|
4
|
+
export function automap(res: any): (dispatch: any, getState: any) => void;
|
|
5
|
+
export function analyse(): (dispatch: any, getState: any) => any;
|
|
6
|
+
export function serverTransform(method: any, data: any, struct: any): (dispatch: any, getState: any) => void;
|
|
7
|
+
export function serverCall(editor: any, server: any, method: any, options: any, struct: any): any;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { Struct } from 'ketcher-core';
|
|
17
|
+
export declare function onAction(action: any): any;
|
|
18
|
+
export declare function loadStruct(struct: any): (_dispatch: any, getState: any) => void;
|
|
19
|
+
export declare function load(struct: Struct, options?: any): (dispatch: any, getState: any) => Promise<void>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export function selectTmpl(tmpl: any): {
|
|
2
|
+
type: string;
|
|
3
|
+
data: {
|
|
4
|
+
selected: any;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export function changeGroup(group: any): {
|
|
8
|
+
type: string;
|
|
9
|
+
data: {
|
|
10
|
+
group: any;
|
|
11
|
+
selected: null;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export function changeFilter(filter: any): {
|
|
15
|
+
type: string;
|
|
16
|
+
data: {
|
|
17
|
+
filter: any;
|
|
18
|
+
selected: null;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export function changeTab(tab: any): {
|
|
22
|
+
type: string;
|
|
23
|
+
data: {
|
|
24
|
+
tab: any;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export function initAttach(name: any, attach: any): {
|
|
28
|
+
type: string;
|
|
29
|
+
data: {
|
|
30
|
+
name: any;
|
|
31
|
+
atomid: any;
|
|
32
|
+
bondid: any;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export function setAttachPoints(attach: any): {
|
|
36
|
+
type: string;
|
|
37
|
+
data: {
|
|
38
|
+
atomid: any;
|
|
39
|
+
bondid: any;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export function setTmplName(name: any): {
|
|
43
|
+
type: string;
|
|
44
|
+
data: {
|
|
45
|
+
name: any;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export function editTmpl(tmpl: any): (dispatch: any, getState: any) => void;
|
|
49
|
+
export function deleteUserTmpl(tmpl: any): {
|
|
50
|
+
type: string;
|
|
51
|
+
data: {
|
|
52
|
+
tmpl: any;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export function deleteTmpl(tmpl: any): (dispatch: any, getState: any) => void;
|
|
56
|
+
export function saveUserTmpl(struct: any): (dispatch: any, getState: any) => void;
|
|
57
|
+
export { initTmplLib };
|
|
58
|
+
export namespace initTmplsState {
|
|
59
|
+
const lib: never[];
|
|
60
|
+
const selected: null;
|
|
61
|
+
const filter: string;
|
|
62
|
+
const group: null;
|
|
63
|
+
const attach: {};
|
|
64
|
+
const mode: string;
|
|
65
|
+
const tab: number;
|
|
66
|
+
}
|
|
67
|
+
export default templatesReducer;
|
|
68
|
+
import initTmplLib from "./init-lib";
|
|
69
|
+
declare function templatesReducer(state: {
|
|
70
|
+
lib: never[];
|
|
71
|
+
selected: null;
|
|
72
|
+
filter: string;
|
|
73
|
+
group: null;
|
|
74
|
+
attach: {};
|
|
75
|
+
mode: string;
|
|
76
|
+
tab: number;
|
|
77
|
+
} | undefined, action: any): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export function initResize(): (dispatch: any, getState: any) => void;
|
|
2
|
+
export default function _default(state: {
|
|
3
|
+
freqAtoms: never[];
|
|
4
|
+
currentAtom: number;
|
|
5
|
+
opened: null;
|
|
6
|
+
visibleTools: {
|
|
7
|
+
select: string;
|
|
8
|
+
};
|
|
9
|
+
} | undefined, action: any): {
|
|
10
|
+
freqAtoms: any;
|
|
11
|
+
currentAtom: any;
|
|
12
|
+
opened: null;
|
|
13
|
+
visibleTools: {
|
|
14
|
+
select: string;
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
17
|
+
opened: null;
|
|
18
|
+
visibleTools: any;
|
|
19
|
+
freqAtoms: never[];
|
|
20
|
+
currentAtom: number;
|
|
21
|
+
} | {
|
|
22
|
+
opened: any;
|
|
23
|
+
freqAtoms: never[];
|
|
24
|
+
currentAtom: number;
|
|
25
|
+
visibleTools: {
|
|
26
|
+
select: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export function addAtoms(atomLabel: any): {
|
|
30
|
+
type: string;
|
|
31
|
+
data: any;
|
|
32
|
+
};
|
|
33
|
+
export function hiddenAncestor(el: any, base: any): any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export namespace storage {
|
|
2
|
+
const warningMessage: string;
|
|
3
|
+
function isAvailable(): false | Storage;
|
|
4
|
+
function isAvailable(): false | Storage;
|
|
5
|
+
function getItem(key: any): any;
|
|
6
|
+
function getItem(key: any): any;
|
|
7
|
+
function setItem(key: any, data: any): boolean;
|
|
8
|
+
function setItem(key: any, data: any): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export function fileOpener(server: any): Promise<any>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Option } from '../component/form/Select';
|
|
2
|
+
export declare function greekify(str: string): string;
|
|
3
|
+
export declare function filterLib(lib: any, filter: string): {};
|
|
4
|
+
export declare function filterFGLib(lib: any, filter: any): {};
|
|
5
|
+
export declare const getSelectOptionsFromSchema: (schema: any) => Array<Option>;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a function, which is not called if the current argument is the same as the last one
|
|
8
|
+
* @param func function to be debounced
|
|
9
|
+
* @param delay delay in ms
|
|
10
|
+
* @param skipArguments indexes in arguments array to skip for comparison
|
|
11
|
+
* @returns debounced function, which is not called with previous argument
|
|
12
|
+
*/
|
|
13
|
+
export declare function memoizedDebounce(func: any, delay?: number, skipArguments?: number[]): (...args: any[]) => void;
|
|
14
|
+
export { RenderStruct } from './renderStruct';
|
|
15
|
+
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,18 @@
|
|
|
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 ClipArea from '../component/cliparea/cliparea';
|
|
17
|
+
declare const AppClipArea: import("react-redux").ConnectedComponent<typeof ClipArea, import("react-redux").Omit<any, string | number | symbol>>;
|
|
18
|
+
export default AppClipArea;
|
|
@@ -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 ContextMenu: React.FC;
|
|
19
|
+
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
|
+
import { PropsWithChildren } from 'react';
|
|
17
|
+
declare const ContextMenuTrigger: React.FC<PropsWithChildren>;
|
|
18
|
+
export default ContextMenuTrigger;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FunctionalGroup } from 'ketcher-core';
|
|
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;
|
|
10
|
+
export declare type ContextMenuShowProps = {
|
|
11
|
+
id: CONTEXT_MENU_ID;
|
|
12
|
+
functionalGroups?: FunctionalGroup[];
|
|
13
|
+
bondIds?: number[];
|
|
14
|
+
atomIds?: number[];
|
|
15
|
+
} | null;
|
|
16
|
+
export declare type ItemEventParams = PredicateParams<ContextMenuShowProps, ItemData>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ItemEventParams } from '../contextMenu.types';
|
|
2
|
+
/**
|
|
3
|
+
* Fullname: useFunctionalGroupExpandOrContract
|
|
4
|
+
*/
|
|
5
|
+
declare const useFunctionalGroupEoc: () => readonly [({ props }: ItemEventParams, toExpand: boolean) => void, ({ props }: ItemEventParams, toExpand: boolean) => boolean];
|
|
6
|
+
export default useFunctionalGroupEoc;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remove the word `bond` out of the title
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* formatTitle('Single Bond') === 'Single'
|
|
6
|
+
*/
|
|
7
|
+
export declare const formatTitle: (title: string) => string;
|
|
8
|
+
/**
|
|
9
|
+
* Get bond names from default export of `src/script/ui/action/tools.js`
|
|
10
|
+
*
|
|
11
|
+
* @returns `['bond-single', 'bond-up', 'bond-down', 'bond-updown', 'bond-double',
|
|
12
|
+
* 'bond-crossed', 'bond-triple', 'bond-aromatic', 'bond-any', 'bond-hydrogen',
|
|
13
|
+
* 'bond-singledouble', 'bond-singlearomatic', 'bond-doublearomatic', 'bond-dative']`
|
|
14
|
+
*/
|
|
15
|
+
export declare const getBondNames: (tools: any) => string[];
|
|
16
|
+
export declare const queryBondNames: string[];
|
|
17
|
+
/**
|
|
18
|
+
* Get bond names except for query bonds
|
|
19
|
+
*
|
|
20
|
+
* @returns `['bond-single', 'bond-up', 'bond-down', 'bond-updown', 'bond-double',
|
|
21
|
+
* 'bond-crossed', 'bond-triple', 'bond-aromatic', 'bond-hydrogen', 'bond-dative']`
|
|
22
|
+
*/
|
|
23
|
+
export declare const getNonQueryBondNames: (tools: any) => string[];
|
|
24
|
+
export declare const noOperation: () => null;
|
|
25
|
+
export declare function onlyHasProperty<T extends object>(checkedObject: T, key: keyof T): boolean;
|
|
@@ -0,0 +1,44 @@
|
|
|
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, PropsWithChildren, ReactElement } from 'react';
|
|
17
|
+
interface DialogParamsCallProps {
|
|
18
|
+
onCancel: () => void;
|
|
19
|
+
onOk: (result: any) => void;
|
|
20
|
+
}
|
|
21
|
+
export interface DialogParams extends DialogParamsCallProps {
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
interface DialogProps {
|
|
25
|
+
title?: string;
|
|
26
|
+
params: DialogParams;
|
|
27
|
+
buttons?: Array<string | ReactElement>;
|
|
28
|
+
className?: string;
|
|
29
|
+
needMargin?: boolean;
|
|
30
|
+
withDivider?: boolean;
|
|
31
|
+
headerContent?: ReactElement;
|
|
32
|
+
footerContent?: ReactElement;
|
|
33
|
+
buttonsNameMap?: {
|
|
34
|
+
[key in string]: string;
|
|
35
|
+
};
|
|
36
|
+
focusable?: boolean;
|
|
37
|
+
}
|
|
38
|
+
interface DialogCallProps {
|
|
39
|
+
result?: () => any;
|
|
40
|
+
valid?: () => boolean;
|
|
41
|
+
}
|
|
42
|
+
declare type Props = DialogProps & DialogCallProps;
|
|
43
|
+
declare const Dialog: FC<PropsWithChildren & Props>;
|
|
44
|
+
export default Dialog;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export { default } from './Dialog';
|
|
@@ -0,0 +1,17 @@
|
|
|
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 const LoadingCircles: () => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export * from './LoadingCircles';
|