@sunspirytus/xflow-core 1.0.52
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/LICENSE +21 -0
- package/README.md +21 -0
- package/dist/index.css +108 -0
- package/dist/index.umd.js +35 -0
- package/dist/index.umd.js.map +1 -0
- package/es/antd-icons/index.d.ts +20 -0
- package/es/antd-icons/index.js +29 -0
- package/es/antd-icons/index.js.map +1 -0
- package/es/command/__test__/graph-command.spec.d.ts +1 -0
- package/es/command/__test__/graph-command.spec.js +109 -0
- package/es/command/__test__/graph-command.spec.js.map +1 -0
- package/es/command/graph-command.d.ts +177 -0
- package/es/command/graph-command.js +300 -0
- package/es/command/graph-command.js.map +1 -0
- package/es/command/index.d.ts +7 -0
- package/es/command/index.js +6 -0
- package/es/command/index.js.map +1 -0
- package/es/command/interface.d.ts +221 -0
- package/es/command/interface.js +23 -0
- package/es/command/interface.js.map +1 -0
- package/es/command/module.d.ts +2 -0
- package/es/command/module.js +15 -0
- package/es/command/module.js.map +1 -0
- package/es/command-contributions/cmd-context.d.ts +76 -0
- package/es/command-contributions/cmd-context.js +123 -0
- package/es/command-contributions/cmd-context.js.map +1 -0
- package/es/command-contributions/command-contribution.d.ts +23 -0
- package/es/command-contributions/command-contribution.js +182 -0
- package/es/command-contributions/command-contribution.js.map +1 -0
- package/es/command-contributions/components/context.d.ts +11 -0
- package/es/command-contributions/components/context.js +86 -0
- package/es/command-contributions/components/context.js.map +1 -0
- package/es/command-contributions/components/index.d.ts +11 -0
- package/es/command-contributions/components/index.js +32 -0
- package/es/command-contributions/components/index.js.map +1 -0
- package/es/command-contributions/config.d.ts +39 -0
- package/es/command-contributions/config.js +64 -0
- package/es/command-contributions/config.js.map +1 -0
- package/es/command-contributions/constant.d.ts +98 -0
- package/es/command-contributions/constant.js +272 -0
- package/es/command-contributions/constant.js.map +1 -0
- package/es/command-contributions/edge/edge-add.d.ts +83 -0
- package/es/command-contributions/edge/edge-add.js +134 -0
- package/es/command-contributions/edge/edge-add.js.map +1 -0
- package/es/command-contributions/edge/edge-back.d.ts +27 -0
- package/es/command-contributions/edge/edge-back.js +72 -0
- package/es/command-contributions/edge/edge-back.js.map +1 -0
- package/es/command-contributions/edge/edge-del.d.ts +67 -0
- package/es/command-contributions/edge/edge-del.js +129 -0
- package/es/command-contributions/edge/edge-del.js.map +1 -0
- package/es/command-contributions/edge/edge-front.d.ts +27 -0
- package/es/command-contributions/edge/edge-front.js +72 -0
- package/es/command-contributions/edge/edge-front.js.map +1 -0
- package/es/command-contributions/edge/edge-highlight.d.ts +32 -0
- package/es/command-contributions/edge/edge-highlight.js +92 -0
- package/es/command-contributions/edge/edge-highlight.js.map +1 -0
- package/es/command-contributions/edge/edge-update.d.ts +46 -0
- package/es/command-contributions/edge/edge-update.js +99 -0
- package/es/command-contributions/edge/edge-update.js.map +1 -0
- package/es/command-contributions/edge/index.d.ts +50 -0
- package/es/command-contributions/edge/index.js +19 -0
- package/es/command-contributions/edge/index.js.map +1 -0
- package/es/command-contributions/graph/graph-add-tool.d.ts +49 -0
- package/es/command-contributions/graph/graph-add-tool.js +74 -0
- package/es/command-contributions/graph/graph-add-tool.js.map +1 -0
- package/es/command-contributions/graph/graph-cmd-redo.d.ts +40 -0
- package/es/command-contributions/graph/graph-cmd-redo.js +77 -0
- package/es/command-contributions/graph/graph-cmd-redo.js.map +1 -0
- package/es/command-contributions/graph/graph-cmd-undo.d.ts +36 -0
- package/es/command-contributions/graph/graph-cmd-undo.js +77 -0
- package/es/command-contributions/graph/graph-cmd-undo.js.map +1 -0
- package/es/command-contributions/graph/graph-copy.d.ts +39 -0
- package/es/command-contributions/graph/graph-copy.js +102 -0
- package/es/command-contributions/graph/graph-copy.js.map +1 -0
- package/es/command-contributions/graph/graph-del-tool.d.ts +47 -0
- package/es/command-contributions/graph/graph-del-tool.js +68 -0
- package/es/command-contributions/graph/graph-del-tool.js.map +1 -0
- package/es/command-contributions/graph/graph-fulllscreen.d.ts +37 -0
- package/es/command-contributions/graph/graph-fulllscreen.js +84 -0
- package/es/command-contributions/graph/graph-fulllscreen.js.map +1 -0
- package/es/command-contributions/graph/graph-history-redo.d.ts +33 -0
- package/es/command-contributions/graph/graph-history-redo.js +69 -0
- package/es/command-contributions/graph/graph-history-redo.js.map +1 -0
- package/es/command-contributions/graph/graph-history-reset.d.ts +33 -0
- package/es/command-contributions/graph/graph-history-reset.js +59 -0
- package/es/command-contributions/graph/graph-history-reset.js.map +1 -0
- package/es/command-contributions/graph/graph-history-toggle.d.ts +35 -0
- package/es/command-contributions/graph/graph-history-toggle.js +75 -0
- package/es/command-contributions/graph/graph-history-toggle.js.map +1 -0
- package/es/command-contributions/graph/graph-history-undo.d.ts +35 -0
- package/es/command-contributions/graph/graph-history-undo.js +69 -0
- package/es/command-contributions/graph/graph-history-undo.js.map +1 -0
- package/es/command-contributions/graph/graph-layout.d.ts +43 -0
- package/es/command-contributions/graph/graph-layout.js +71 -0
- package/es/command-contributions/graph/graph-layout.js.map +1 -0
- package/es/command-contributions/graph/graph-load-data.d.ts +37 -0
- package/es/command-contributions/graph/graph-load-data.js +68 -0
- package/es/command-contributions/graph/graph-load-data.js.map +1 -0
- package/es/command-contributions/graph/graph-meta.d.ts +47 -0
- package/es/command-contributions/graph/graph-meta.js +78 -0
- package/es/command-contributions/graph/graph-meta.js.map +1 -0
- package/es/command-contributions/graph/graph-paste.d.ts +52 -0
- package/es/command-contributions/graph/graph-paste.js +129 -0
- package/es/command-contributions/graph/graph-paste.js.map +1 -0
- package/es/command-contributions/graph/graph-render.d.ts +53 -0
- package/es/command-contributions/graph/graph-render.js +249 -0
- package/es/command-contributions/graph/graph-render.js.map +1 -0
- package/es/command-contributions/graph/graph-resize.d.ts +40 -0
- package/es/command-contributions/graph/graph-resize.js +75 -0
- package/es/command-contributions/graph/graph-resize.js.map +1 -0
- package/es/command-contributions/graph/graph-save-data.d.ts +43 -0
- package/es/command-contributions/graph/graph-save-data.js +101 -0
- package/es/command-contributions/graph/graph-save-data.js.map +1 -0
- package/es/command-contributions/graph/graph-toggle-multi-select.d.ts +38 -0
- package/es/command-contributions/graph/graph-toggle-multi-select.js +96 -0
- package/es/command-contributions/graph/graph-toggle-multi-select.js.map +1 -0
- package/es/command-contributions/graph/graph-zoom.d.ts +51 -0
- package/es/command-contributions/graph/graph-zoom.js +89 -0
- package/es/command-contributions/graph/graph-zoom.js.map +1 -0
- package/es/command-contributions/graph/index.d.ts +114 -0
- package/es/command-contributions/graph/index.js +83 -0
- package/es/command-contributions/graph/index.js.map +1 -0
- package/es/command-contributions/group/group-add.d.ts +56 -0
- package/es/command-contributions/group/group-add.js +114 -0
- package/es/command-contributions/group/group-add.js.map +1 -0
- package/es/command-contributions/group/group-del.d.ts +43 -0
- package/es/command-contributions/group/group-del.js +100 -0
- package/es/command-contributions/group/group-del.js.map +1 -0
- package/es/command-contributions/group/group-init.d.ts +40 -0
- package/es/command-contributions/group/group-init.js +97 -0
- package/es/command-contributions/group/group-init.js.map +1 -0
- package/es/command-contributions/group/group-toggle-collapse.d.ts +47 -0
- package/es/command-contributions/group/group-toggle-collapse.js +123 -0
- package/es/command-contributions/group/group-toggle-collapse.js.map +1 -0
- package/es/command-contributions/group/index.d.ts +39 -0
- package/es/command-contributions/group/index.js +14 -0
- package/es/command-contributions/group/index.js.map +1 -0
- package/es/command-contributions/index.d.ts +10 -0
- package/es/command-contributions/index.js +13 -0
- package/es/command-contributions/index.js.map +1 -0
- package/es/command-contributions/interface.d.ts +17 -0
- package/es/command-contributions/interface.js +2 -0
- package/es/command-contributions/interface.js.map +1 -0
- package/es/command-contributions/mapping-service.d.ts +20 -0
- package/es/command-contributions/mapping-service.js +91 -0
- package/es/command-contributions/mapping-service.js.map +1 -0
- package/es/command-contributions/models/index.d.ts +24 -0
- package/es/command-contributions/models/index.js +9 -0
- package/es/command-contributions/models/index.js.map +1 -0
- package/es/command-contributions/models/update-model.d.ts +45 -0
- package/es/command-contributions/models/update-model.js +70 -0
- package/es/command-contributions/models/update-model.js.map +1 -0
- package/es/command-contributions/module.d.ts +5 -0
- package/es/command-contributions/module.js +45 -0
- package/es/command-contributions/module.js.map +1 -0
- package/es/command-contributions/node/index.d.ts +70 -0
- package/es/command-contributions/node/index.js +38 -0
- package/es/command-contributions/node/index.js.map +1 -0
- package/es/command-contributions/node/node-add.d.ts +58 -0
- package/es/command-contributions/node/node-add.js +131 -0
- package/es/command-contributions/node/node-add.js.map +1 -0
- package/es/command-contributions/node/node-back.d.ts +32 -0
- package/es/command-contributions/node/node-back.js +74 -0
- package/es/command-contributions/node/node-back.js.map +1 -0
- package/es/command-contributions/node/node-center.d.ts +30 -0
- package/es/command-contributions/node/node-center.js +60 -0
- package/es/command-contributions/node/node-center.js.map +1 -0
- package/es/command-contributions/node/node-del.d.ts +51 -0
- package/es/command-contributions/node/node-del.js +102 -0
- package/es/command-contributions/node/node-del.js.map +1 -0
- package/es/command-contributions/node/node-front.d.ts +27 -0
- package/es/command-contributions/node/node-front.js +73 -0
- package/es/command-contributions/node/node-front.js.map +1 -0
- package/es/command-contributions/node/node-highlight.d.ts +39 -0
- package/es/command-contributions/node/node-highlight.js +85 -0
- package/es/command-contributions/node/node-highlight.js.map +1 -0
- package/es/command-contributions/node/node-move.d.ts +51 -0
- package/es/command-contributions/node/node-move.js +94 -0
- package/es/command-contributions/node/node-move.js.map +1 -0
- package/es/command-contributions/node/node-select.d.ts +30 -0
- package/es/command-contributions/node/node-select.js +73 -0
- package/es/command-contributions/node/node-select.js.map +1 -0
- package/es/command-contributions/node/node-update-port.d.ts +54 -0
- package/es/command-contributions/node/node-update-port.js +105 -0
- package/es/command-contributions/node/node-update-port.js.map +1 -0
- package/es/command-contributions/node/node-update.d.ts +53 -0
- package/es/command-contributions/node/node-update.js +122 -0
- package/es/command-contributions/node/node-update.js.map +1 -0
- package/es/common/deferred.d.ts +8 -0
- package/es/common/deferred.js +17 -0
- package/es/common/deferred.js.map +1 -0
- package/es/common/delay.d.ts +1 -0
- package/es/common/delay.js +5 -0
- package/es/common/delay.js.map +1 -0
- package/es/common/disposable.d.ts +28 -0
- package/es/common/disposable.js +81 -0
- package/es/common/disposable.js.map +1 -0
- package/es/common/event-helper.d.ts +7 -0
- package/es/common/event-helper.js +8 -0
- package/es/common/event-helper.js.map +1 -0
- package/es/common/graph-utils.d.ts +22 -0
- package/es/common/graph-utils.js +34 -0
- package/es/common/graph-utils.js.map +1 -0
- package/es/common/position.d.ts +10 -0
- package/es/common/position.js +12 -0
- package/es/common/position.js.map +1 -0
- package/es/common/rx-model-hook.d.ts +16 -0
- package/es/common/rx-model-hook.js +92 -0
- package/es/common/rx-model-hook.js.map +1 -0
- package/es/common/rx-model.d.ts +66 -0
- package/es/common/rx-model.js +101 -0
- package/es/common/rx-model.js.map +1 -0
- package/es/common/safe-json.d.ts +1 -0
- package/es/common/safe-json.js +12 -0
- package/es/common/safe-json.js.map +1 -0
- package/es/common/types.d.ts +15 -0
- package/es/common/types.js +2 -0
- package/es/common/types.js.map +1 -0
- package/es/common/utils.d.ts +11 -0
- package/es/common/utils.js +48 -0
- package/es/common/utils.js.map +1 -0
- package/es/common/uuid.d.ts +2 -0
- package/es/common/uuid.js +8 -0
- package/es/common/uuid.js.map +1 -0
- package/es/constants.d.ts +31 -0
- package/es/constants.js +26 -0
- package/es/constants.js.map +1 -0
- package/es/hooks/components/index.d.ts +13 -0
- package/es/hooks/components/index.js +36 -0
- package/es/hooks/components/index.js.map +1 -0
- package/es/hooks/config.d.ts +41 -0
- package/es/hooks/config.js +35 -0
- package/es/hooks/config.js.map +1 -0
- package/es/hooks/contributions/default.d.ts +19 -0
- package/es/hooks/contributions/default.js +41 -0
- package/es/hooks/contributions/default.js.map +1 -0
- package/es/hooks/contributions/graph.d.ts +19 -0
- package/es/hooks/contributions/graph.js +96 -0
- package/es/hooks/contributions/graph.js.map +1 -0
- package/es/hooks/hook-registry.d.ts +27 -0
- package/es/hooks/hook-registry.js +51 -0
- package/es/hooks/hook-registry.js.map +1 -0
- package/es/hooks/index.d.ts +4 -0
- package/es/hooks/index.js +9 -0
- package/es/hooks/index.js.map +1 -0
- package/es/hooks/interface.d.ts +62 -0
- package/es/hooks/interface.js +19 -0
- package/es/hooks/interface.js.map +1 -0
- package/es/hooks/module.d.ts +8 -0
- package/es/hooks/module.js +26 -0
- package/es/hooks/module.js.map +1 -0
- package/es/index.d.ts +85 -0
- package/es/index.js +97 -0
- package/es/index.js.map +1 -0
- package/es/interface.d.ts +161 -0
- package/es/interface.js +21 -0
- package/es/interface.js.map +1 -0
- package/es/keybinding/components/index.d.ts +13 -0
- package/es/keybinding/components/index.js +36 -0
- package/es/keybinding/components/index.js.map +1 -0
- package/es/keybinding/config.d.ts +23 -0
- package/es/keybinding/config.js +36 -0
- package/es/keybinding/config.js.map +1 -0
- package/es/keybinding/index.d.ts +4 -0
- package/es/keybinding/index.js +5 -0
- package/es/keybinding/index.js.map +1 -0
- package/es/keybinding/interface.d.ts +52 -0
- package/es/keybinding/interface.js +6 -0
- package/es/keybinding/interface.js.map +1 -0
- package/es/keybinding/keybinding-registry.d.ts +52 -0
- package/es/keybinding/keybinding-registry.js +129 -0
- package/es/keybinding/keybinding-registry.js.map +1 -0
- package/es/keybinding/module.d.ts +8 -0
- package/es/keybinding/module.js +33 -0
- package/es/keybinding/module.js.map +1 -0
- package/es/menu/components/index.d.ts +4 -0
- package/es/menu/components/index.js +22 -0
- package/es/menu/components/index.js.map +1 -0
- package/es/menu/index.d.ts +3 -0
- package/es/menu/index.js +10 -0
- package/es/menu/index.js.map +1 -0
- package/es/menu/interface.d.ts +114 -0
- package/es/menu/interface.js +18 -0
- package/es/menu/interface.js.map +1 -0
- package/es/menu/menu-registry.d.ts +32 -0
- package/es/menu/menu-registry.js +65 -0
- package/es/menu/menu-registry.js.map +1 -0
- package/es/menu/module.d.ts +3 -0
- package/es/menu/module.js +17 -0
- package/es/menu/module.js.map +1 -0
- package/es/model-service/components/index.d.ts +12 -0
- package/es/model-service/components/index.js +40 -0
- package/es/model-service/components/index.js.map +1 -0
- package/es/model-service/config.d.ts +20 -0
- package/es/model-service/config.js +36 -0
- package/es/model-service/config.js.map +1 -0
- package/es/model-service/constant.d.ts +174 -0
- package/es/model-service/constant.js +162 -0
- package/es/model-service/constant.js.map +1 -0
- package/es/model-service/contributions/command-model.d.ts +9 -0
- package/es/model-service/contributions/command-model.js +48 -0
- package/es/model-service/contributions/command-model.js.map +1 -0
- package/es/model-service/contributions/graph-model.d.ts +12 -0
- package/es/model-service/contributions/graph-model.js +250 -0
- package/es/model-service/contributions/graph-model.js.map +1 -0
- package/es/model-service/index.d.ts +6 -0
- package/es/model-service/index.js +7 -0
- package/es/model-service/index.js.map +1 -0
- package/es/model-service/interface.d.ts +66 -0
- package/es/model-service/interface.js +11 -0
- package/es/model-service/interface.js.map +1 -0
- package/es/model-service/model-registry.d.ts +49 -0
- package/es/model-service/model-registry.js +117 -0
- package/es/model-service/model-registry.js.map +1 -0
- package/es/model-service/module.d.ts +9 -0
- package/es/model-service/module.js +42 -0
- package/es/model-service/module.js.map +1 -0
- package/es/model-service/utils.d.ts +5 -0
- package/es/model-service/utils.js +52 -0
- package/es/model-service/utils.js.map +1 -0
- package/es/style/components.css +108 -0
- package/es/style/components.less +1 -0
- package/es/style/index.css +0 -0
- package/es/style/index.less +1 -0
- package/es/style/themes/default.css +0 -0
- package/es/style/themes/default.less +2 -0
- package/es/style/themes/index.css +0 -0
- package/es/style/themes/index.less +1 -0
- package/es/toolbar/components/index.d.ts +4 -0
- package/es/toolbar/components/index.js +21 -0
- package/es/toolbar/components/index.js.map +1 -0
- package/es/toolbar/index.d.ts +3 -0
- package/es/toolbar/index.js +8 -0
- package/es/toolbar/index.js.map +1 -0
- package/es/toolbar/interface.d.ts +104 -0
- package/es/toolbar/interface.js +8 -0
- package/es/toolbar/interface.js.map +1 -0
- package/es/toolbar/module.d.ts +8 -0
- package/es/toolbar/module.js +18 -0
- package/es/toolbar/module.js.map +1 -0
- package/es/toolbar/toolbar-registry.d.ts +80 -0
- package/es/toolbar/toolbar-registry.js +127 -0
- package/es/toolbar/toolbar-registry.js.map +1 -0
- package/es/xflow-main/application-module.d.ts +8 -0
- package/es/xflow-main/application-module.js +46 -0
- package/es/xflow-main/application-module.js.map +1 -0
- package/es/xflow-main/application.d.ts +77 -0
- package/es/xflow-main/application.js +178 -0
- package/es/xflow-main/application.js.map +1 -0
- package/es/xflow-main/components/app-context.d.ts +14 -0
- package/es/xflow-main/components/app-context.js +75 -0
- package/es/xflow-main/components/app-context.js.map +1 -0
- package/es/xflow-main/components/app-extension-module.d.ts +7 -0
- package/es/xflow-main/components/app-extension-module.js +32 -0
- package/es/xflow-main/components/app-extension-module.js.map +1 -0
- package/es/xflow-main/components/canvas.d.ts +11 -0
- package/es/xflow-main/components/canvas.js +62 -0
- package/es/xflow-main/components/canvas.js.map +1 -0
- package/es/xflow-main/components/extension-context.d.ts +5 -0
- package/es/xflow-main/components/extension-context.js +9 -0
- package/es/xflow-main/components/extension-context.js.map +1 -0
- package/es/xflow-main/components/extension-registry.d.ts +22 -0
- package/es/xflow-main/components/extension-registry.js +61 -0
- package/es/xflow-main/components/extension-registry.js.map +1 -0
- package/es/xflow-main/components/global-config-context.d.ts +3 -0
- package/es/xflow-main/components/global-config-context.js +31 -0
- package/es/xflow-main/components/global-config-context.js.map +1 -0
- package/es/xflow-main/components/index.d.ts +58 -0
- package/es/xflow-main/components/index.js +116 -0
- package/es/xflow-main/components/index.js.map +1 -0
- package/es/xflow-main/graph/config.d.ts +102 -0
- package/es/xflow-main/graph/config.js +233 -0
- package/es/xflow-main/graph/config.js.map +1 -0
- package/es/xflow-main/graph/graph-provider.d.ts +47 -0
- package/es/xflow-main/graph/graph-provider.js +196 -0
- package/es/xflow-main/graph/graph-provider.js.map +1 -0
- package/es/xflow-main/graph/index.d.ts +4 -0
- package/es/xflow-main/graph/index.js +5 -0
- package/es/xflow-main/graph/index.js.map +1 -0
- package/es/xflow-main/graph/module.d.ts +4 -0
- package/es/xflow-main/graph/module.js +16 -0
- package/es/xflow-main/graph/module.js.map +1 -0
- package/es/xflow-main/graph/react-group-node/index.css +44 -0
- package/es/xflow-main/graph/react-group-node/index.d.ts +2 -0
- package/es/xflow-main/graph/react-group-node/index.js +32 -0
- package/es/xflow-main/graph/react-group-node/index.js.map +1 -0
- package/es/xflow-main/graph/react-group-node/index.less +50 -0
- package/es/xflow-main/graph/react-node/index.css +42 -0
- package/es/xflow-main/graph/react-node/index.d.ts +20 -0
- package/es/xflow-main/graph/react-node/index.js +50 -0
- package/es/xflow-main/graph/react-node/index.js.map +1 -0
- package/es/xflow-main/graph/react-node/index.less +49 -0
- package/es/xflow-main/index.d.ts +19 -0
- package/es/xflow-main/index.js +26 -0
- package/es/xflow-main/index.js.map +1 -0
- package/es/xflow-main/interface.d.ts +33 -0
- package/es/xflow-main/interface.js +3 -0
- package/es/xflow-main/interface.js.map +1 -0
- package/es/xflow-main/style/index.css +108 -0
- package/es/xflow-main/style/index.less +31 -0
- package/lib/antd-icons/index.d.ts +20 -0
- package/lib/antd-icons/index.js +34 -0
- package/lib/antd-icons/index.js.map +1 -0
- package/lib/command/__test__/graph-command.spec.d.ts +1 -0
- package/lib/command/__test__/graph-command.spec.js +136 -0
- package/lib/command/__test__/graph-command.spec.js.map +1 -0
- package/lib/command/graph-command.d.ts +177 -0
- package/lib/command/graph-command.js +390 -0
- package/lib/command/graph-command.js.map +1 -0
- package/lib/command/index.d.ts +7 -0
- package/lib/command/index.js +15 -0
- package/lib/command/index.js.map +1 -0
- package/lib/command/interface.d.ts +221 -0
- package/lib/command/interface.js +26 -0
- package/lib/command/interface.js.map +1 -0
- package/lib/command/module.d.ts +2 -0
- package/lib/command/module.js +18 -0
- package/lib/command/module.js.map +1 -0
- package/lib/command-contributions/cmd-context.d.ts +76 -0
- package/lib/command-contributions/cmd-context.js +160 -0
- package/lib/command-contributions/cmd-context.js.map +1 -0
- package/lib/command-contributions/command-contribution.d.ts +23 -0
- package/lib/command-contributions/command-contribution.js +205 -0
- package/lib/command-contributions/command-contribution.js.map +1 -0
- package/lib/command-contributions/components/context.d.ts +11 -0
- package/lib/command-contributions/components/context.js +95 -0
- package/lib/command-contributions/components/context.js.map +1 -0
- package/lib/command-contributions/components/index.d.ts +11 -0
- package/lib/command-contributions/components/index.js +40 -0
- package/lib/command-contributions/components/index.js.map +1 -0
- package/lib/command-contributions/config.d.ts +39 -0
- package/lib/command-contributions/config.js +79 -0
- package/lib/command-contributions/config.js.map +1 -0
- package/lib/command-contributions/constant.d.ts +98 -0
- package/lib/command-contributions/constant.js +275 -0
- package/lib/command-contributions/constant.js.map +1 -0
- package/lib/command-contributions/edge/edge-add.d.ts +83 -0
- package/lib/command-contributions/edge/edge-add.js +179 -0
- package/lib/command-contributions/edge/edge-add.js.map +1 -0
- package/lib/command-contributions/edge/edge-back.d.ts +27 -0
- package/lib/command-contributions/edge/edge-back.js +107 -0
- package/lib/command-contributions/edge/edge-back.js.map +1 -0
- package/lib/command-contributions/edge/edge-del.d.ts +67 -0
- package/lib/command-contributions/edge/edge-del.js +170 -0
- package/lib/command-contributions/edge/edge-del.js.map +1 -0
- package/lib/command-contributions/edge/edge-front.d.ts +27 -0
- package/lib/command-contributions/edge/edge-front.js +107 -0
- package/lib/command-contributions/edge/edge-front.js.map +1 -0
- package/lib/command-contributions/edge/edge-highlight.d.ts +32 -0
- package/lib/command-contributions/edge/edge-highlight.js +121 -0
- package/lib/command-contributions/edge/edge-highlight.js.map +1 -0
- package/lib/command-contributions/edge/edge-update.d.ts +46 -0
- package/lib/command-contributions/edge/edge-update.js +148 -0
- package/lib/command-contributions/edge/edge-update.js.map +1 -0
- package/lib/command-contributions/edge/index.d.ts +50 -0
- package/lib/command-contributions/edge/index.js +23 -0
- package/lib/command-contributions/edge/index.js.map +1 -0
- package/lib/command-contributions/graph/graph-add-tool.d.ts +49 -0
- package/lib/command-contributions/graph/graph-add-tool.js +111 -0
- package/lib/command-contributions/graph/graph-add-tool.js.map +1 -0
- package/lib/command-contributions/graph/graph-cmd-redo.d.ts +40 -0
- package/lib/command-contributions/graph/graph-cmd-redo.js +104 -0
- package/lib/command-contributions/graph/graph-cmd-redo.js.map +1 -0
- package/lib/command-contributions/graph/graph-cmd-undo.d.ts +36 -0
- package/lib/command-contributions/graph/graph-cmd-undo.js +104 -0
- package/lib/command-contributions/graph/graph-cmd-undo.js.map +1 -0
- package/lib/command-contributions/graph/graph-copy.d.ts +39 -0
- package/lib/command-contributions/graph/graph-copy.js +137 -0
- package/lib/command-contributions/graph/graph-copy.js.map +1 -0
- package/lib/command-contributions/graph/graph-del-tool.d.ts +47 -0
- package/lib/command-contributions/graph/graph-del-tool.js +101 -0
- package/lib/command-contributions/graph/graph-del-tool.js.map +1 -0
- package/lib/command-contributions/graph/graph-fulllscreen.d.ts +37 -0
- package/lib/command-contributions/graph/graph-fulllscreen.js +116 -0
- package/lib/command-contributions/graph/graph-fulllscreen.js.map +1 -0
- package/lib/command-contributions/graph/graph-history-redo.d.ts +33 -0
- package/lib/command-contributions/graph/graph-history-redo.js +106 -0
- package/lib/command-contributions/graph/graph-history-redo.js.map +1 -0
- package/lib/command-contributions/graph/graph-history-reset.d.ts +33 -0
- package/lib/command-contributions/graph/graph-history-reset.js +91 -0
- package/lib/command-contributions/graph/graph-history-reset.js.map +1 -0
- package/lib/command-contributions/graph/graph-history-toggle.d.ts +35 -0
- package/lib/command-contributions/graph/graph-history-toggle.js +112 -0
- package/lib/command-contributions/graph/graph-history-toggle.js.map +1 -0
- package/lib/command-contributions/graph/graph-history-undo.d.ts +35 -0
- package/lib/command-contributions/graph/graph-history-undo.js +106 -0
- package/lib/command-contributions/graph/graph-history-undo.js.map +1 -0
- package/lib/command-contributions/graph/graph-layout.d.ts +43 -0
- package/lib/command-contributions/graph/graph-layout.js +104 -0
- package/lib/command-contributions/graph/graph-layout.js.map +1 -0
- package/lib/command-contributions/graph/graph-load-data.d.ts +37 -0
- package/lib/command-contributions/graph/graph-load-data.js +104 -0
- package/lib/command-contributions/graph/graph-load-data.js.map +1 -0
- package/lib/command-contributions/graph/graph-meta.d.ts +47 -0
- package/lib/command-contributions/graph/graph-meta.js +116 -0
- package/lib/command-contributions/graph/graph-meta.js.map +1 -0
- package/lib/command-contributions/graph/graph-paste.d.ts +52 -0
- package/lib/command-contributions/graph/graph-paste.js +196 -0
- package/lib/command-contributions/graph/graph-paste.js.map +1 -0
- package/lib/command-contributions/graph/graph-render.d.ts +53 -0
- package/lib/command-contributions/graph/graph-render.js +360 -0
- package/lib/command-contributions/graph/graph-render.js.map +1 -0
- package/lib/command-contributions/graph/graph-resize.d.ts +40 -0
- package/lib/command-contributions/graph/graph-resize.js +110 -0
- package/lib/command-contributions/graph/graph-resize.js.map +1 -0
- package/lib/command-contributions/graph/graph-save-data.d.ts +43 -0
- package/lib/command-contributions/graph/graph-save-data.js +141 -0
- package/lib/command-contributions/graph/graph-save-data.js.map +1 -0
- package/lib/command-contributions/graph/graph-toggle-multi-select.d.ts +38 -0
- package/lib/command-contributions/graph/graph-toggle-multi-select.js +133 -0
- package/lib/command-contributions/graph/graph-toggle-multi-select.js.map +1 -0
- package/lib/command-contributions/graph/graph-zoom.d.ts +51 -0
- package/lib/command-contributions/graph/graph-zoom.js +122 -0
- package/lib/command-contributions/graph/graph-zoom.js.map +1 -0
- package/lib/command-contributions/graph/index.d.ts +114 -0
- package/lib/command-contributions/graph/index.js +87 -0
- package/lib/command-contributions/graph/index.js.map +1 -0
- package/lib/command-contributions/group/group-add.d.ts +56 -0
- package/lib/command-contributions/group/group-add.js +156 -0
- package/lib/command-contributions/group/group-add.js.map +1 -0
- package/lib/command-contributions/group/group-del.d.ts +43 -0
- package/lib/command-contributions/group/group-del.js +146 -0
- package/lib/command-contributions/group/group-del.js.map +1 -0
- package/lib/command-contributions/group/group-init.d.ts +40 -0
- package/lib/command-contributions/group/group-init.js +139 -0
- package/lib/command-contributions/group/group-init.js.map +1 -0
- package/lib/command-contributions/group/group-toggle-collapse.d.ts +47 -0
- package/lib/command-contributions/group/group-toggle-collapse.js +161 -0
- package/lib/command-contributions/group/group-toggle-collapse.js.map +1 -0
- package/lib/command-contributions/group/index.d.ts +39 -0
- package/lib/command-contributions/group/index.js +18 -0
- package/lib/command-contributions/group/index.js.map +1 -0
- package/lib/command-contributions/index.d.ts +10 -0
- package/lib/command-contributions/index.js +25 -0
- package/lib/command-contributions/index.js.map +1 -0
- package/lib/command-contributions/interface.d.ts +17 -0
- package/lib/command-contributions/interface.js +3 -0
- package/lib/command-contributions/interface.js.map +1 -0
- package/lib/command-contributions/mapping-service.d.ts +20 -0
- package/lib/command-contributions/mapping-service.js +96 -0
- package/lib/command-contributions/mapping-service.js.map +1 -0
- package/lib/command-contributions/models/index.d.ts +24 -0
- package/lib/command-contributions/models/index.js +13 -0
- package/lib/command-contributions/models/index.js.map +1 -0
- package/lib/command-contributions/models/update-model.d.ts +45 -0
- package/lib/command-contributions/models/update-model.js +110 -0
- package/lib/command-contributions/models/update-model.js.map +1 -0
- package/lib/command-contributions/module.d.ts +5 -0
- package/lib/command-contributions/module.js +49 -0
- package/lib/command-contributions/module.js.map +1 -0
- package/lib/command-contributions/node/index.d.ts +70 -0
- package/lib/command-contributions/node/index.js +42 -0
- package/lib/command-contributions/node/index.js.map +1 -0
- package/lib/command-contributions/node/node-add.d.ts +58 -0
- package/lib/command-contributions/node/node-add.js +192 -0
- package/lib/command-contributions/node/node-add.js.map +1 -0
- package/lib/command-contributions/node/node-back.d.ts +32 -0
- package/lib/command-contributions/node/node-back.js +109 -0
- package/lib/command-contributions/node/node-back.js.map +1 -0
- package/lib/command-contributions/node/node-center.d.ts +30 -0
- package/lib/command-contributions/node/node-center.js +91 -0
- package/lib/command-contributions/node/node-center.js.map +1 -0
- package/lib/command-contributions/node/node-del.d.ts +51 -0
- package/lib/command-contributions/node/node-del.js +145 -0
- package/lib/command-contributions/node/node-del.js.map +1 -0
- package/lib/command-contributions/node/node-front.d.ts +27 -0
- package/lib/command-contributions/node/node-front.js +108 -0
- package/lib/command-contributions/node/node-front.js.map +1 -0
- package/lib/command-contributions/node/node-highlight.d.ts +39 -0
- package/lib/command-contributions/node/node-highlight.js +116 -0
- package/lib/command-contributions/node/node-highlight.js.map +1 -0
- package/lib/command-contributions/node/node-move.d.ts +51 -0
- package/lib/command-contributions/node/node-move.js +130 -0
- package/lib/command-contributions/node/node-move.js.map +1 -0
- package/lib/command-contributions/node/node-select.d.ts +30 -0
- package/lib/command-contributions/node/node-select.js +104 -0
- package/lib/command-contributions/node/node-select.js.map +1 -0
- package/lib/command-contributions/node/node-update-port.d.ts +54 -0
- package/lib/command-contributions/node/node-update-port.js +147 -0
- package/lib/command-contributions/node/node-update-port.js.map +1 -0
- package/lib/command-contributions/node/node-update.d.ts +53 -0
- package/lib/command-contributions/node/node-update.js +159 -0
- package/lib/command-contributions/node/node-update.js.map +1 -0
- package/lib/common/deferred.d.ts +8 -0
- package/lib/common/deferred.js +31 -0
- package/lib/common/deferred.js.map +1 -0
- package/lib/common/delay.d.ts +1 -0
- package/lib/common/delay.js +9 -0
- package/lib/common/delay.js.map +1 -0
- package/lib/common/disposable.d.ts +28 -0
- package/lib/common/disposable.js +116 -0
- package/lib/common/disposable.js.map +1 -0
- package/lib/common/event-helper.d.ts +7 -0
- package/lib/common/event-helper.js +12 -0
- package/lib/common/event-helper.js.map +1 -0
- package/lib/common/graph-utils.d.ts +22 -0
- package/lib/common/graph-utils.js +41 -0
- package/lib/common/graph-utils.js.map +1 -0
- package/lib/common/position.d.ts +10 -0
- package/lib/common/position.js +18 -0
- package/lib/common/position.js.map +1 -0
- package/lib/common/rx-model-hook.d.ts +16 -0
- package/lib/common/rx-model-hook.js +108 -0
- package/lib/common/rx-model-hook.js.map +1 -0
- package/lib/common/rx-model.d.ts +66 -0
- package/lib/common/rx-model.js +112 -0
- package/lib/common/rx-model.js.map +1 -0
- package/lib/common/safe-json.d.ts +1 -0
- package/lib/common/safe-json.js +17 -0
- package/lib/common/safe-json.js.map +1 -0
- package/lib/common/types.d.ts +15 -0
- package/lib/common/types.js +3 -0
- package/lib/common/types.js.map +1 -0
- package/lib/common/utils.d.ts +11 -0
- package/lib/common/utils.js +58 -0
- package/lib/common/utils.js.map +1 -0
- package/lib/common/uuid.d.ts +2 -0
- package/lib/common/uuid.js +12 -0
- package/lib/common/uuid.js.map +1 -0
- package/lib/constants.d.ts +31 -0
- package/lib/constants.js +29 -0
- package/lib/constants.js.map +1 -0
- package/lib/hooks/components/index.d.ts +13 -0
- package/lib/hooks/components/index.js +44 -0
- package/lib/hooks/components/index.js.map +1 -0
- package/lib/hooks/config.d.ts +41 -0
- package/lib/hooks/config.js +45 -0
- package/lib/hooks/config.js.map +1 -0
- package/lib/hooks/contributions/default.d.ts +19 -0
- package/lib/hooks/contributions/default.js +60 -0
- package/lib/hooks/contributions/default.js.map +1 -0
- package/lib/hooks/contributions/graph.d.ts +19 -0
- package/lib/hooks/contributions/graph.js +133 -0
- package/lib/hooks/contributions/graph.js.map +1 -0
- package/lib/hooks/hook-registry.d.ts +27 -0
- package/lib/hooks/hook-registry.js +62 -0
- package/lib/hooks/hook-registry.js.map +1 -0
- package/lib/hooks/index.d.ts +4 -0
- package/lib/hooks/index.js +12 -0
- package/lib/hooks/index.js.map +1 -0
- package/lib/hooks/interface.d.ts +62 -0
- package/lib/hooks/interface.js +23 -0
- package/lib/hooks/interface.js.map +1 -0
- package/lib/hooks/module.d.ts +8 -0
- package/lib/hooks/module.js +32 -0
- package/lib/hooks/module.js.map +1 -0
- package/lib/index.d.ts +85 -0
- package/lib/index.js +155 -0
- package/lib/index.js.map +1 -0
- package/lib/interface.d.ts +161 -0
- package/lib/interface.js +24 -0
- package/lib/interface.js.map +1 -0
- package/lib/keybinding/components/index.d.ts +13 -0
- package/lib/keybinding/components/index.js +44 -0
- package/lib/keybinding/components/index.js.map +1 -0
- package/lib/keybinding/config.d.ts +23 -0
- package/lib/keybinding/config.js +48 -0
- package/lib/keybinding/config.js.map +1 -0
- package/lib/keybinding/index.d.ts +4 -0
- package/lib/keybinding/index.js +11 -0
- package/lib/keybinding/index.js.map +1 -0
- package/lib/keybinding/interface.d.ts +52 -0
- package/lib/keybinding/interface.js +9 -0
- package/lib/keybinding/interface.js.map +1 -0
- package/lib/keybinding/keybinding-registry.d.ts +52 -0
- package/lib/keybinding/keybinding-registry.js +166 -0
- package/lib/keybinding/keybinding-registry.js.map +1 -0
- package/lib/keybinding/module.d.ts +8 -0
- package/lib/keybinding/module.js +40 -0
- package/lib/keybinding/module.js.map +1 -0
- package/lib/menu/components/index.d.ts +4 -0
- package/lib/menu/components/index.js +28 -0
- package/lib/menu/components/index.js.map +1 -0
- package/lib/menu/index.d.ts +3 -0
- package/lib/menu/index.js +10 -0
- package/lib/menu/index.js.map +1 -0
- package/lib/menu/interface.d.ts +114 -0
- package/lib/menu/interface.js +21 -0
- package/lib/menu/interface.js.map +1 -0
- package/lib/menu/menu-registry.d.ts +32 -0
- package/lib/menu/menu-registry.js +72 -0
- package/lib/menu/menu-registry.js.map +1 -0
- package/lib/menu/module.d.ts +3 -0
- package/lib/menu/module.js +21 -0
- package/lib/menu/module.js.map +1 -0
- package/lib/model-service/components/index.d.ts +12 -0
- package/lib/model-service/components/index.js +48 -0
- package/lib/model-service/components/index.js.map +1 -0
- package/lib/model-service/config.d.ts +20 -0
- package/lib/model-service/config.js +48 -0
- package/lib/model-service/config.js.map +1 -0
- package/lib/model-service/constant.d.ts +174 -0
- package/lib/model-service/constant.js +186 -0
- package/lib/model-service/constant.js.map +1 -0
- package/lib/model-service/contributions/command-model.d.ts +9 -0
- package/lib/model-service/contributions/command-model.js +63 -0
- package/lib/model-service/contributions/command-model.js.map +1 -0
- package/lib/model-service/contributions/graph-model.d.ts +12 -0
- package/lib/model-service/contributions/graph-model.js +370 -0
- package/lib/model-service/contributions/graph-model.js.map +1 -0
- package/lib/model-service/index.d.ts +6 -0
- package/lib/model-service/index.js +17 -0
- package/lib/model-service/index.js.map +1 -0
- package/lib/model-service/interface.d.ts +66 -0
- package/lib/model-service/interface.js +14 -0
- package/lib/model-service/interface.js.map +1 -0
- package/lib/model-service/model-registry.d.ts +49 -0
- package/lib/model-service/model-registry.js +133 -0
- package/lib/model-service/model-registry.js.map +1 -0
- package/lib/model-service/module.d.ts +9 -0
- package/lib/model-service/module.js +49 -0
- package/lib/model-service/module.js.map +1 -0
- package/lib/model-service/utils.d.ts +5 -0
- package/lib/model-service/utils.js +58 -0
- package/lib/model-service/utils.js.map +1 -0
- package/lib/style/components.css +108 -0
- package/lib/style/components.less +1 -0
- package/lib/style/index.css +0 -0
- package/lib/style/index.less +1 -0
- package/lib/style/themes/default.css +0 -0
- package/lib/style/themes/default.less +2 -0
- package/lib/style/themes/index.css +0 -0
- package/lib/style/themes/index.less +1 -0
- package/lib/toolbar/components/index.d.ts +4 -0
- package/lib/toolbar/components/index.js +27 -0
- package/lib/toolbar/components/index.js.map +1 -0
- package/lib/toolbar/index.d.ts +3 -0
- package/lib/toolbar/index.js +9 -0
- package/lib/toolbar/index.js.map +1 -0
- package/lib/toolbar/interface.d.ts +104 -0
- package/lib/toolbar/interface.js +11 -0
- package/lib/toolbar/interface.js.map +1 -0
- package/lib/toolbar/module.d.ts +8 -0
- package/lib/toolbar/module.js +23 -0
- package/lib/toolbar/module.js.map +1 -0
- package/lib/toolbar/toolbar-registry.d.ts +80 -0
- package/lib/toolbar/toolbar-registry.js +134 -0
- package/lib/toolbar/toolbar-registry.js.map +1 -0
- package/lib/xflow-main/application-module.d.ts +8 -0
- package/lib/xflow-main/application-module.js +50 -0
- package/lib/xflow-main/application-module.js.map +1 -0
- package/lib/xflow-main/application.d.ts +77 -0
- package/lib/xflow-main/application.js +296 -0
- package/lib/xflow-main/application.js.map +1 -0
- package/lib/xflow-main/components/app-context.d.ts +14 -0
- package/lib/xflow-main/components/app-context.js +87 -0
- package/lib/xflow-main/components/app-context.js.map +1 -0
- package/lib/xflow-main/components/app-extension-module.d.ts +7 -0
- package/lib/xflow-main/components/app-extension-module.js +39 -0
- package/lib/xflow-main/components/app-extension-module.js.map +1 -0
- package/lib/xflow-main/components/canvas.d.ts +11 -0
- package/lib/xflow-main/components/canvas.js +69 -0
- package/lib/xflow-main/components/canvas.js.map +1 -0
- package/lib/xflow-main/components/extension-context.d.ts +5 -0
- package/lib/xflow-main/components/extension-context.js +14 -0
- package/lib/xflow-main/components/extension-context.js.map +1 -0
- package/lib/xflow-main/components/extension-registry.d.ts +22 -0
- package/lib/xflow-main/components/extension-registry.js +69 -0
- package/lib/xflow-main/components/extension-registry.js.map +1 -0
- package/lib/xflow-main/components/global-config-context.d.ts +3 -0
- package/lib/xflow-main/components/global-config-context.js +39 -0
- package/lib/xflow-main/components/global-config-context.js.map +1 -0
- package/lib/xflow-main/components/index.d.ts +58 -0
- package/lib/xflow-main/components/index.js +153 -0
- package/lib/xflow-main/components/index.js.map +1 -0
- package/lib/xflow-main/graph/config.d.ts +102 -0
- package/lib/xflow-main/graph/config.js +266 -0
- package/lib/xflow-main/graph/config.js.map +1 -0
- package/lib/xflow-main/graph/graph-provider.d.ts +47 -0
- package/lib/xflow-main/graph/graph-provider.js +259 -0
- package/lib/xflow-main/graph/graph-provider.js.map +1 -0
- package/lib/xflow-main/graph/index.d.ts +4 -0
- package/lib/xflow-main/graph/index.js +11 -0
- package/lib/xflow-main/graph/index.js.map +1 -0
- package/lib/xflow-main/graph/module.d.ts +4 -0
- package/lib/xflow-main/graph/module.js +20 -0
- package/lib/xflow-main/graph/module.js.map +1 -0
- package/lib/xflow-main/graph/react-group-node/index.css +44 -0
- package/lib/xflow-main/graph/react-group-node/index.d.ts +2 -0
- package/lib/xflow-main/graph/react-group-node/index.js +37 -0
- package/lib/xflow-main/graph/react-group-node/index.js.map +1 -0
- package/lib/xflow-main/graph/react-group-node/index.less +50 -0
- package/lib/xflow-main/graph/react-node/index.css +42 -0
- package/lib/xflow-main/graph/react-node/index.d.ts +20 -0
- package/lib/xflow-main/graph/react-node/index.js +56 -0
- package/lib/xflow-main/graph/react-node/index.js.map +1 -0
- package/lib/xflow-main/graph/react-node/index.less +49 -0
- package/lib/xflow-main/index.d.ts +19 -0
- package/lib/xflow-main/index.js +35 -0
- package/lib/xflow-main/index.js.map +1 -0
- package/lib/xflow-main/interface.d.ts +33 -0
- package/lib/xflow-main/interface.js +6 -0
- package/lib/xflow-main/interface.js.map +1 -0
- package/lib/xflow-main/style/index.css +108 -0
- package/lib/xflow-main/style/index.less +31 -0
- package/package.json +119 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.XFlowHookConfig = exports.IHookContribution = exports.createModule = exports.HookRegistry = void 0;
|
|
4
|
+
require("reflect-metadata");
|
|
5
|
+
/** Application 扩展依赖 */
|
|
6
|
+
var config_1 = require("./config");
|
|
7
|
+
Object.defineProperty(exports, "XFlowHookConfig", { enumerable: true, get: function () { return config_1.HookConfig; } });
|
|
8
|
+
var hook_registry_1 = require("./hook-registry");
|
|
9
|
+
Object.defineProperty(exports, "HookRegistry", { enumerable: true, get: function () { return hook_registry_1.HookRegistry; } });
|
|
10
|
+
var mana_syringe_1 = require("mana-syringe");
|
|
11
|
+
var default_1 = require("./contributions/default");
|
|
12
|
+
var graph_1 = require("./contributions/graph");
|
|
13
|
+
var interface_1 = require("./interface");
|
|
14
|
+
Object.defineProperty(exports, "IHookContribution", { enumerable: true, get: function () { return interface_1.IHookContribution; } });
|
|
15
|
+
/** 依赖扩展模块,必须要加载 */
|
|
16
|
+
var createModule = function (config) {
|
|
17
|
+
return (0, mana_syringe_1.Module)(function (register) {
|
|
18
|
+
/** 注册 IGraphHookContribution 成为一个新扩展点 */
|
|
19
|
+
mana_syringe_1.Contribution.register(register, interface_1.IHookContribution);
|
|
20
|
+
/** 扩展 runtime hook */
|
|
21
|
+
register(default_1.RuntimeContribution);
|
|
22
|
+
/** 扩展 graph event hook */
|
|
23
|
+
register(graph_1.GraphEventContribution);
|
|
24
|
+
/** 注册 HookRegistry 到 IFrontendApplicationContribution */
|
|
25
|
+
/** 注册 HookRegistry */
|
|
26
|
+
register(hook_registry_1.HookRegistry);
|
|
27
|
+
/** 注册 XFlowHookConfig */
|
|
28
|
+
register(config_1.HookConfig, { useValue: config });
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
exports.createModule = createModule;
|
|
32
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/hooks/module.ts"],"names":[],"mappings":";;;AAAA,4BAAyB;AACzB,uBAAuB;AACvB,mCAAqC;AAwBiC,gGAxB7D,mBAAU,OAwBkE;AAvBrF,iDAA8C;AAuBrC,6FAvBA,4BAAY,OAuBA;AAtBrB,6CAAmD;AACnD,mDAA6D;AAC7D,+CAA8D;AAC9D,yCAA+C;AAmBV,kGAnB5B,6BAAiB,OAmB4B;AAjBtD,mBAAmB;AACnB,IAAM,YAAY,GAAG,UAAC,MAAkB;IACtC,OAAO,IAAA,qBAAM,EAAC,UAAA,QAAQ;QACpB,yCAAyC;QACzC,2BAAY,CAAC,QAAQ,CAAC,QAAQ,EAAE,6BAAiB,CAAC,CAAA;QAClD,sBAAsB;QACtB,QAAQ,CAAC,6BAAmB,CAAC,CAAA;QAC7B,0BAA0B;QAC1B,QAAQ,CAAC,8BAAsB,CAAC,CAAA;QAChC,yDAAyD;QACzD,sBAAsB;QACtB,QAAQ,CAAC,4BAAY,CAAC,CAAA;QACtB,yBAAyB;QACzB,QAAQ,CAAC,mBAAU,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAA;IAC5C,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA;AAEsB,oCAAY"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as ManaSyringe from 'mana-syringe';
|
|
2
|
+
export { ManaSyringe };
|
|
3
|
+
/** XFlow 基础 interface */
|
|
4
|
+
export { NsGraph } from './interface';
|
|
5
|
+
/*******************************************************
|
|
6
|
+
* 核心组件:
|
|
7
|
+
* 1. Application:XFlow
|
|
8
|
+
* 2. Application Extension:XFlowAppExtensionModule
|
|
9
|
+
* 3. Graph:XFlowCanvas
|
|
10
|
+
*****************************************************/
|
|
11
|
+
export { XFlow, XFlowCanvas, XFlowAppExtensionModule, XFlowAppProvider, XFlowAppContext, useXFlowApp, useXflowPrefixCls, XFlowConfigProviderContext, ExtensionRegistryContext, useExtensionRegistry, } from './xflow-main';
|
|
12
|
+
/** widget:extension */
|
|
13
|
+
export { IExtensionModule, IModuleConfig } from './xflow-main';
|
|
14
|
+
/** graphProvider:注入Graph时 需要 */
|
|
15
|
+
export { IGraphConfig, IGraphProvider, createGraphConfig, GraphConfig } from './xflow-main';
|
|
16
|
+
/** app:用于extension扩展*/
|
|
17
|
+
export { IApplication, IApplicationContribution, IAppLoad, IAppDestroy, IAppConfigReady, } from './xflow-main';
|
|
18
|
+
/*******************************************************
|
|
19
|
+
* Command Service: 命令模块
|
|
20
|
+
*****************************************************/
|
|
21
|
+
/** Command 类型 */
|
|
22
|
+
export type { IArgsBase, IGraphCommand, ICommandConfig, IGraphPipelineCommand } from './command';
|
|
23
|
+
/** Command Service */
|
|
24
|
+
export { ICommandHandler, IGraphCommandService, ICommandContextProvider, IGraphCommandContribution, IGraphCommandFactory, GraphCommandRegistry, commandRegistryModule, } from './command';
|
|
25
|
+
/** Command 常量 */
|
|
26
|
+
export { XFlowNodeCommands, XFlowEdgeCommands, XFlowGroupCommands, XFlowGraphCommands, XFlowModelCommands,
|
|
27
|
+
/** 创建 Command hook config */
|
|
28
|
+
createCmdConfig, } from './command-contributions';
|
|
29
|
+
export type {
|
|
30
|
+
/** Command 类型*/
|
|
31
|
+
NsGraphCmd, NsNodeCmd, NsEdgeCmd, NsGroupCmd, NsModelServiceCmd,
|
|
32
|
+
/** command 钩子函数的类型 */
|
|
33
|
+
ICmdHooks,
|
|
34
|
+
/** Command扩展的类型 */
|
|
35
|
+
ICommandContributionConfig, } from './command-contributions';
|
|
36
|
+
/** React Node Context */
|
|
37
|
+
export { AppContext, useAppContext, getNodeReactComponent } from './command-contributions';
|
|
38
|
+
/*******************************************************
|
|
39
|
+
* XFlow Hooks: 钩子函数
|
|
40
|
+
*****************************************************/
|
|
41
|
+
export { IHookService, IRegisterHookFn, IRegisterHookHubFn, IHookContribution, IEvent, IHooks, createHookConfig, } from './hooks';
|
|
42
|
+
/*******************************************************
|
|
43
|
+
* Model Service:全局状态
|
|
44
|
+
*****************************************************/
|
|
45
|
+
export { MODELS, IUseModel, IModelOptions, IModelService, IModelContribution, IModelRegisterFunction, createModelServiceConfig, } from './model-service';
|
|
46
|
+
export { RxModel, NsModel } from './common/rx-model';
|
|
47
|
+
export { useModel, createComponentModel, useModelAsync, useIsMountedRef, } from './common/rx-model-hook';
|
|
48
|
+
/*******************************************************
|
|
49
|
+
* Toolbar:工具栏
|
|
50
|
+
*****************************************************/
|
|
51
|
+
/** Toolbar 配置 */
|
|
52
|
+
export { ToolbarRegistry, IToolbarService, IToolbarContribution, IToolbarModel, IToolbarLayout, IToolbarOptions, IToolbarItemOptions, IToolbarGroupOptions, IRegisterToolbarItemFunction, } from './toolbar';
|
|
53
|
+
/*******************************************************
|
|
54
|
+
* Menu:菜单
|
|
55
|
+
*****************************************************/
|
|
56
|
+
/** Menu 配置 */
|
|
57
|
+
export { IMenuService, IMenuContribution, IMenuId, IAnchor, IMenuTarget, MenuItemType, IMenuModel, IMenuOptions, IRegisterMenuFunction, MenuRegistry, } from './menu';
|
|
58
|
+
/*******************************************************
|
|
59
|
+
* KeyBindings:快捷键
|
|
60
|
+
*****************************************************/
|
|
61
|
+
/** KeyBindings 配置 */
|
|
62
|
+
export { KeyBindings, createKeybindingConfig, KeybindingConfig, IKeyBindingContribution, } from './keybinding';
|
|
63
|
+
/*******************************************************
|
|
64
|
+
* UTILS:工具方法
|
|
65
|
+
*****************************************************/
|
|
66
|
+
/** utils:dispose */
|
|
67
|
+
export { Disposable, DisposableCollection } from './common/disposable';
|
|
68
|
+
/** utils:defer 延迟 */
|
|
69
|
+
export { Deferred } from './common/deferred';
|
|
70
|
+
/** utils:延迟 */
|
|
71
|
+
export { delay } from './common/delay';
|
|
72
|
+
/** utils:uuid */
|
|
73
|
+
export { uuidv4 } from './common/uuid';
|
|
74
|
+
/** utils:绝对定位 */
|
|
75
|
+
export { IPosition, usePositionStyle } from './common/position';
|
|
76
|
+
export { Simplify } from './common/types';
|
|
77
|
+
/** utils:insertCss */
|
|
78
|
+
export { insertCss, isReactComponent } from './common/utils';
|
|
79
|
+
/*******************************************************
|
|
80
|
+
* Icon:Antd Icon
|
|
81
|
+
*****************************************************/
|
|
82
|
+
/** ICON */
|
|
83
|
+
export { IconStore } from './antd-icons';
|
|
84
|
+
/** 全局常量 */
|
|
85
|
+
export * as XFlowConstants from './constants';
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IMenuService = exports.IToolbarContribution = exports.IToolbarService = exports.ToolbarRegistry = exports.useIsMountedRef = exports.useModelAsync = exports.createComponentModel = exports.useModel = exports.NsModel = exports.RxModel = exports.createModelServiceConfig = exports.IModelContribution = exports.IModelService = exports.MODELS = exports.createHookConfig = exports.IHookContribution = exports.IHookService = exports.getNodeReactComponent = exports.useAppContext = exports.AppContext = exports.createCmdConfig = exports.XFlowModelCommands = exports.XFlowGraphCommands = exports.XFlowGroupCommands = exports.XFlowEdgeCommands = exports.XFlowNodeCommands = exports.commandRegistryModule = exports.GraphCommandRegistry = exports.IGraphCommandFactory = exports.IGraphCommandContribution = exports.ICommandContextProvider = exports.IGraphCommandService = exports.ICommandHandler = exports.IApplicationContribution = exports.IApplication = exports.GraphConfig = exports.createGraphConfig = exports.IGraphProvider = exports.useExtensionRegistry = exports.ExtensionRegistryContext = exports.XFlowConfigProviderContext = exports.useXflowPrefixCls = exports.useXFlowApp = exports.XFlowAppContext = exports.XFlowAppProvider = exports.XFlowAppExtensionModule = exports.XFlowCanvas = exports.XFlow = exports.NsGraph = exports.ManaSyringe = void 0;
|
|
4
|
+
exports.XFlowConstants = exports.IconStore = exports.isReactComponent = exports.insertCss = exports.usePositionStyle = exports.uuidv4 = exports.delay = exports.Deferred = exports.DisposableCollection = exports.Disposable = exports.IKeyBindingContribution = exports.KeybindingConfig = exports.createKeybindingConfig = exports.KeyBindings = exports.MenuRegistry = exports.MenuItemType = exports.IMenuContribution = void 0;
|
|
5
|
+
var tslib_1 = require("tslib");
|
|
6
|
+
// IOC
|
|
7
|
+
var ManaSyringe = tslib_1.__importStar(require("mana-syringe"));
|
|
8
|
+
exports.ManaSyringe = ManaSyringe;
|
|
9
|
+
/** XFlow 基础 interface */
|
|
10
|
+
var interface_1 = require("./interface");
|
|
11
|
+
Object.defineProperty(exports, "NsGraph", { enumerable: true, get: function () { return interface_1.NsGraph; } });
|
|
12
|
+
/*******************************************************
|
|
13
|
+
* 核心组件:
|
|
14
|
+
* 1. Application:XFlow
|
|
15
|
+
* 2. Application Extension:XFlowAppExtensionModule
|
|
16
|
+
* 3. Graph:XFlowCanvas
|
|
17
|
+
*****************************************************/
|
|
18
|
+
var xflow_main_1 = require("./xflow-main");
|
|
19
|
+
// 组件
|
|
20
|
+
Object.defineProperty(exports, "XFlow", { enumerable: true, get: function () { return xflow_main_1.XFlow; } });
|
|
21
|
+
Object.defineProperty(exports, "XFlowCanvas", { enumerable: true, get: function () { return xflow_main_1.XFlowCanvas; } });
|
|
22
|
+
Object.defineProperty(exports, "XFlowAppExtensionModule", { enumerable: true, get: function () { return xflow_main_1.XFlowAppExtensionModule; } });
|
|
23
|
+
// app context
|
|
24
|
+
Object.defineProperty(exports, "XFlowAppProvider", { enumerable: true, get: function () { return xflow_main_1.XFlowAppProvider; } });
|
|
25
|
+
Object.defineProperty(exports, "XFlowAppContext", { enumerable: true, get: function () { return xflow_main_1.XFlowAppContext; } });
|
|
26
|
+
Object.defineProperty(exports, "useXFlowApp", { enumerable: true, get: function () { return xflow_main_1.useXFlowApp; } });
|
|
27
|
+
// config provider context:使用全局Config
|
|
28
|
+
Object.defineProperty(exports, "useXflowPrefixCls", { enumerable: true, get: function () { return xflow_main_1.useXflowPrefixCls; } });
|
|
29
|
+
Object.defineProperty(exports, "XFlowConfigProviderContext", { enumerable: true, get: function () { return xflow_main_1.XFlowConfigProviderContext; } });
|
|
30
|
+
// extension context: 注册扩展
|
|
31
|
+
Object.defineProperty(exports, "ExtensionRegistryContext", { enumerable: true, get: function () { return xflow_main_1.ExtensionRegistryContext; } });
|
|
32
|
+
Object.defineProperty(exports, "useExtensionRegistry", { enumerable: true, get: function () { return xflow_main_1.useExtensionRegistry; } });
|
|
33
|
+
/** widget:extension */
|
|
34
|
+
var xflow_main_2 = require("./xflow-main");
|
|
35
|
+
/** graphProvider:注入Graph时 需要 */
|
|
36
|
+
var xflow_main_3 = require("./xflow-main");
|
|
37
|
+
Object.defineProperty(exports, "IGraphProvider", { enumerable: true, get: function () { return xflow_main_3.IGraphProvider; } });
|
|
38
|
+
Object.defineProperty(exports, "createGraphConfig", { enumerable: true, get: function () { return xflow_main_3.createGraphConfig; } });
|
|
39
|
+
Object.defineProperty(exports, "GraphConfig", { enumerable: true, get: function () { return xflow_main_3.GraphConfig; } });
|
|
40
|
+
/** app:用于extension扩展*/
|
|
41
|
+
var xflow_main_4 = require("./xflow-main");
|
|
42
|
+
Object.defineProperty(exports, "IApplication", { enumerable: true, get: function () { return xflow_main_4.IApplication; } });
|
|
43
|
+
Object.defineProperty(exports, "IApplicationContribution", { enumerable: true, get: function () { return xflow_main_4.IApplicationContribution; } });
|
|
44
|
+
/** Command Service */
|
|
45
|
+
var command_1 = require("./command");
|
|
46
|
+
Object.defineProperty(exports, "ICommandHandler", { enumerable: true, get: function () { return command_1.ICommandHandler; } });
|
|
47
|
+
Object.defineProperty(exports, "IGraphCommandService", { enumerable: true, get: function () { return command_1.IGraphCommandService; } });
|
|
48
|
+
Object.defineProperty(exports, "ICommandContextProvider", { enumerable: true, get: function () { return command_1.ICommandContextProvider; } });
|
|
49
|
+
Object.defineProperty(exports, "IGraphCommandContribution", { enumerable: true, get: function () { return command_1.IGraphCommandContribution; } });
|
|
50
|
+
Object.defineProperty(exports, "IGraphCommandFactory", { enumerable: true, get: function () { return command_1.IGraphCommandFactory; } });
|
|
51
|
+
Object.defineProperty(exports, "GraphCommandRegistry", { enumerable: true, get: function () { return command_1.GraphCommandRegistry; } });
|
|
52
|
+
Object.defineProperty(exports, "commandRegistryModule", { enumerable: true, get: function () { return command_1.commandRegistryModule; } });
|
|
53
|
+
/** Command 常量 */
|
|
54
|
+
var command_contributions_1 = require("./command-contributions");
|
|
55
|
+
Object.defineProperty(exports, "XFlowNodeCommands", { enumerable: true, get: function () { return command_contributions_1.XFlowNodeCommands; } });
|
|
56
|
+
Object.defineProperty(exports, "XFlowEdgeCommands", { enumerable: true, get: function () { return command_contributions_1.XFlowEdgeCommands; } });
|
|
57
|
+
Object.defineProperty(exports, "XFlowGroupCommands", { enumerable: true, get: function () { return command_contributions_1.XFlowGroupCommands; } });
|
|
58
|
+
Object.defineProperty(exports, "XFlowGraphCommands", { enumerable: true, get: function () { return command_contributions_1.XFlowGraphCommands; } });
|
|
59
|
+
Object.defineProperty(exports, "XFlowModelCommands", { enumerable: true, get: function () { return command_contributions_1.XFlowModelCommands; } });
|
|
60
|
+
/** 创建 Command hook config */
|
|
61
|
+
Object.defineProperty(exports, "createCmdConfig", { enumerable: true, get: function () { return command_contributions_1.createCmdConfig; } });
|
|
62
|
+
/** React Node Context */
|
|
63
|
+
var command_contributions_2 = require("./command-contributions");
|
|
64
|
+
Object.defineProperty(exports, "AppContext", { enumerable: true, get: function () { return command_contributions_2.AppContext; } });
|
|
65
|
+
Object.defineProperty(exports, "useAppContext", { enumerable: true, get: function () { return command_contributions_2.useAppContext; } });
|
|
66
|
+
Object.defineProperty(exports, "getNodeReactComponent", { enumerable: true, get: function () { return command_contributions_2.getNodeReactComponent; } });
|
|
67
|
+
/*******************************************************
|
|
68
|
+
* XFlow Hooks: 钩子函数
|
|
69
|
+
*****************************************************/
|
|
70
|
+
var hooks_1 = require("./hooks");
|
|
71
|
+
// 扩展Hooks
|
|
72
|
+
Object.defineProperty(exports, "IHookService", { enumerable: true, get: function () { return hooks_1.IHookService; } });
|
|
73
|
+
Object.defineProperty(exports, "IHookContribution", { enumerable: true, get: function () { return hooks_1.IHookContribution; } });
|
|
74
|
+
// 创建 React config hook
|
|
75
|
+
Object.defineProperty(exports, "createHookConfig", { enumerable: true, get: function () { return hooks_1.createHookConfig; } });
|
|
76
|
+
/*******************************************************
|
|
77
|
+
* Model Service:全局状态
|
|
78
|
+
*****************************************************/
|
|
79
|
+
var model_service_1 = require("./model-service");
|
|
80
|
+
Object.defineProperty(exports, "MODELS", { enumerable: true, get: function () { return model_service_1.MODELS; } });
|
|
81
|
+
Object.defineProperty(exports, "IModelService", { enumerable: true, get: function () { return model_service_1.IModelService; } });
|
|
82
|
+
Object.defineProperty(exports, "IModelContribution", { enumerable: true, get: function () { return model_service_1.IModelContribution; } });
|
|
83
|
+
Object.defineProperty(exports, "createModelServiceConfig", { enumerable: true, get: function () { return model_service_1.createModelServiceConfig; } });
|
|
84
|
+
var rx_model_1 = require("./common/rx-model");
|
|
85
|
+
Object.defineProperty(exports, "RxModel", { enumerable: true, get: function () { return rx_model_1.RxModel; } });
|
|
86
|
+
Object.defineProperty(exports, "NsModel", { enumerable: true, get: function () { return rx_model_1.NsModel; } });
|
|
87
|
+
var rx_model_hook_1 = require("./common/rx-model-hook");
|
|
88
|
+
Object.defineProperty(exports, "useModel", { enumerable: true, get: function () { return rx_model_hook_1.useModel; } });
|
|
89
|
+
Object.defineProperty(exports, "createComponentModel", { enumerable: true, get: function () { return rx_model_hook_1.createComponentModel; } });
|
|
90
|
+
Object.defineProperty(exports, "useModelAsync", { enumerable: true, get: function () { return rx_model_hook_1.useModelAsync; } });
|
|
91
|
+
Object.defineProperty(exports, "useIsMountedRef", { enumerable: true, get: function () { return rx_model_hook_1.useIsMountedRef; } });
|
|
92
|
+
/*******************************************************
|
|
93
|
+
* Toolbar:工具栏
|
|
94
|
+
*****************************************************/
|
|
95
|
+
/** Toolbar 配置 */
|
|
96
|
+
var toolbar_1 = require("./toolbar");
|
|
97
|
+
// component
|
|
98
|
+
Object.defineProperty(exports, "ToolbarRegistry", { enumerable: true, get: function () { return toolbar_1.ToolbarRegistry; } });
|
|
99
|
+
// ioc 扩展
|
|
100
|
+
Object.defineProperty(exports, "IToolbarService", { enumerable: true, get: function () { return toolbar_1.IToolbarService; } });
|
|
101
|
+
Object.defineProperty(exports, "IToolbarContribution", { enumerable: true, get: function () { return toolbar_1.IToolbarContribution; } });
|
|
102
|
+
/*******************************************************
|
|
103
|
+
* Menu:菜单
|
|
104
|
+
*****************************************************/
|
|
105
|
+
/** Menu 配置 */
|
|
106
|
+
var menu_1 = require("./menu");
|
|
107
|
+
// 扩展 Service
|
|
108
|
+
Object.defineProperty(exports, "IMenuService", { enumerable: true, get: function () { return menu_1.IMenuService; } });
|
|
109
|
+
Object.defineProperty(exports, "IMenuContribution", { enumerable: true, get: function () { return menu_1.IMenuContribution; } });
|
|
110
|
+
// menu item
|
|
111
|
+
Object.defineProperty(exports, "MenuItemType", { enumerable: true, get: function () { return menu_1.MenuItemType; } });
|
|
112
|
+
// Component
|
|
113
|
+
Object.defineProperty(exports, "MenuRegistry", { enumerable: true, get: function () { return menu_1.MenuRegistry; } });
|
|
114
|
+
/*******************************************************
|
|
115
|
+
* KeyBindings:快捷键
|
|
116
|
+
*****************************************************/
|
|
117
|
+
/** KeyBindings 配置 */
|
|
118
|
+
var keybinding_1 = require("./keybinding");
|
|
119
|
+
Object.defineProperty(exports, "KeyBindings", { enumerable: true, get: function () { return keybinding_1.KeyBindings; } });
|
|
120
|
+
Object.defineProperty(exports, "createKeybindingConfig", { enumerable: true, get: function () { return keybinding_1.createKeybindingConfig; } });
|
|
121
|
+
Object.defineProperty(exports, "KeybindingConfig", { enumerable: true, get: function () { return keybinding_1.KeybindingConfig; } });
|
|
122
|
+
Object.defineProperty(exports, "IKeyBindingContribution", { enumerable: true, get: function () { return keybinding_1.IKeyBindingContribution; } });
|
|
123
|
+
/*******************************************************
|
|
124
|
+
* UTILS:工具方法
|
|
125
|
+
*****************************************************/
|
|
126
|
+
/** utils:dispose */
|
|
127
|
+
var disposable_1 = require("./common/disposable");
|
|
128
|
+
Object.defineProperty(exports, "Disposable", { enumerable: true, get: function () { return disposable_1.Disposable; } });
|
|
129
|
+
Object.defineProperty(exports, "DisposableCollection", { enumerable: true, get: function () { return disposable_1.DisposableCollection; } });
|
|
130
|
+
/** utils:defer 延迟 */
|
|
131
|
+
var deferred_1 = require("./common/deferred");
|
|
132
|
+
Object.defineProperty(exports, "Deferred", { enumerable: true, get: function () { return deferred_1.Deferred; } });
|
|
133
|
+
/** utils:延迟 */
|
|
134
|
+
var delay_1 = require("./common/delay");
|
|
135
|
+
Object.defineProperty(exports, "delay", { enumerable: true, get: function () { return delay_1.delay; } });
|
|
136
|
+
/** utils:uuid */
|
|
137
|
+
var uuid_1 = require("./common/uuid");
|
|
138
|
+
Object.defineProperty(exports, "uuidv4", { enumerable: true, get: function () { return uuid_1.uuidv4; } });
|
|
139
|
+
/** utils:绝对定位 */
|
|
140
|
+
var position_1 = require("./common/position");
|
|
141
|
+
Object.defineProperty(exports, "usePositionStyle", { enumerable: true, get: function () { return position_1.usePositionStyle; } });
|
|
142
|
+
var types_1 = require("./common/types");
|
|
143
|
+
/** utils:insertCss */
|
|
144
|
+
var utils_1 = require("./common/utils");
|
|
145
|
+
Object.defineProperty(exports, "insertCss", { enumerable: true, get: function () { return utils_1.insertCss; } });
|
|
146
|
+
Object.defineProperty(exports, "isReactComponent", { enumerable: true, get: function () { return utils_1.isReactComponent; } });
|
|
147
|
+
/*******************************************************
|
|
148
|
+
* Icon:Antd Icon
|
|
149
|
+
*****************************************************/
|
|
150
|
+
/** ICON */
|
|
151
|
+
var antd_icons_1 = require("./antd-icons");
|
|
152
|
+
Object.defineProperty(exports, "IconStore", { enumerable: true, get: function () { return antd_icons_1.IconStore; } });
|
|
153
|
+
/** 全局常量 */
|
|
154
|
+
exports.XFlowConstants = tslib_1.__importStar(require("./constants"));
|
|
155
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;AAAA,MAAM;AACN,gEAA2C;AAClC,kCAAW;AAEpB,yBAAyB;AACzB,yCAAqC;AAA5B,oGAAA,OAAO,OAAA;AAEhB;;;;;uDAKuD;AAEvD,2CAeqB;AAdnB,KAAK;AACL,mGAAA,KAAK,OAAA;AACL,yGAAA,WAAW,OAAA;AACX,qHAAA,uBAAuB,OAAA;AACvB,cAAc;AACd,8GAAA,gBAAgB,OAAA;AAChB,6GAAA,eAAe,OAAA;AACf,yGAAA,WAAW,OAAA;AACX,qCAAqC;AACrC,+GAAA,iBAAiB,OAAA;AACjB,wHAAA,0BAA0B,OAAA;AAC1B,0BAA0B;AAC1B,sHAAA,wBAAwB,OAAA;AACxB,kHAAA,oBAAoB,OAAA;AAGtB,wBAAwB;AACxB,2CAA8D;AAE9D,gCAAgC;AAChC,2CAA2F;AAApE,4GAAA,cAAc,OAAA;AAAE,+GAAA,iBAAiB,OAAA;AAAE,yGAAA,WAAW,OAAA;AAErE,uBAAuB;AACvB,2CAMqB;AALnB,0GAAA,YAAY,OAAA;AACZ,sHAAA,wBAAwB,OAAA;AAa1B,sBAAsB;AACtB,qCAQkB;AAPhB,0GAAA,eAAe,OAAA;AACf,+GAAA,oBAAoB,OAAA;AACpB,kHAAA,uBAAuB,OAAA;AACvB,oHAAA,yBAAyB,OAAA;AACzB,+GAAA,oBAAoB,OAAA;AACpB,+GAAA,oBAAoB,OAAA;AACpB,gHAAA,qBAAqB,OAAA;AAGvB,iBAAiB;AACjB,iEAQgC;AAP9B,0HAAA,iBAAiB,OAAA;AACjB,0HAAA,iBAAiB,OAAA;AACjB,2HAAA,kBAAkB,OAAA;AAClB,2HAAA,kBAAkB,OAAA;AAClB,2HAAA,kBAAkB,OAAA;AAClB,6BAA6B;AAC7B,wHAAA,eAAe,OAAA;AAgBjB,yBAAyB;AACzB,iEAA0F;AAAjF,mHAAA,UAAU,OAAA;AAAE,sHAAA,aAAa,OAAA;AAAE,8HAAA,qBAAqB,OAAA;AAEzD;;uDAEuD;AAEvD,iCAYgB;AAXd,UAAU;AACV,qGAAA,YAAY,OAAA;AAGZ,0GAAA,iBAAiB,OAAA;AAKjB,uBAAuB;AACvB,yGAAA,gBAAgB,OAAA;AAGlB;;uDAEuD;AAEvD,iDAQwB;AAPtB,uGAAA,MAAM,OAAA;AAGN,8GAAA,aAAa,OAAA;AACb,mHAAA,kBAAkB,OAAA;AAElB,yHAAA,wBAAwB,OAAA;AAG1B,8CAAoD;AAA3C,mGAAA,OAAO,OAAA;AAAE,mGAAA,OAAO,OAAA;AAEzB,wDAK+B;AAJ7B,yGAAA,QAAQ,OAAA;AACR,qHAAA,oBAAoB,OAAA;AACpB,8GAAA,aAAa,OAAA;AACb,gHAAA,eAAe,OAAA;AAGjB;;uDAEuD;AAEvD,iBAAiB;AACjB,qCAekB;AAdhB,YAAY;AACZ,0GAAA,eAAe,OAAA;AACf,SAAS;AACT,0GAAA,eAAe,OAAA;AACf,+GAAA,oBAAoB,OAAA;AAYtB;;uDAEuD;AAEvD,cAAc;AACd,+BAee;AAdb,aAAa;AACb,oGAAA,YAAY,OAAA;AACZ,yGAAA,iBAAiB,OAAA;AAKjB,YAAY;AACZ,oGAAA,YAAY,OAAA;AAIZ,YAAY;AACZ,oGAAA,YAAY,OAAA;AAGd;;uDAEuD;AAEvD,qBAAqB;AACrB,2CAKqB;AAJnB,yGAAA,WAAW,OAAA;AACX,oHAAA,sBAAsB,OAAA;AACtB,8GAAA,gBAAgB,OAAA;AAChB,qHAAA,uBAAuB,OAAA;AAGzB;;uDAEuD;AAEvD,oBAAoB;AACpB,kDAAsE;AAA7D,wGAAA,UAAU,OAAA;AAAE,kHAAA,oBAAoB,OAAA;AACzC,qBAAqB;AACrB,8CAA4C;AAAnC,oGAAA,QAAQ,OAAA;AACjB,eAAe;AACf,wCAAsC;AAA7B,8FAAA,KAAK,OAAA;AACd,iBAAiB;AACjB,sCAAsC;AAA7B,8FAAA,MAAM,OAAA;AACf,iBAAiB;AACjB,8CAA+D;AAA3C,4GAAA,gBAAgB,OAAA;AACpC,wCAAyC;AACzC,sBAAsB;AACtB,wCAA4D;AAAnD,kGAAA,SAAS,OAAA;AAAE,yGAAA,gBAAgB,OAAA;AAEpC;;uDAEuD;AAEvD,WAAW;AACX,2CAAwC;AAA/B,uGAAA,SAAS,OAAA;AAElB,WAAW;AACX,sEAA6C"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import type { Point, Graph as X6Graph } from '@antv/x6';
|
|
2
|
+
import type { EventArgs } from '@antv/x6/lib/graph/events';
|
|
3
|
+
import type { Attr } from '@antv/x6/lib/registry/attr';
|
|
4
|
+
import type { PortManager } from '@antv/x6/lib/model/port';
|
|
5
|
+
import type { IGraphCommandService } from './command/interface';
|
|
6
|
+
import type { IModelService } from './model-service/interface';
|
|
7
|
+
import type React from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* XFlow画布数据
|
|
10
|
+
*/
|
|
11
|
+
export declare namespace NsGraph {
|
|
12
|
+
/** Graph元数据 */
|
|
13
|
+
interface IGraphMeta {
|
|
14
|
+
/** 元数据,除了flowId之外,可能包括这些业务属性:画布名称/创建时间/更新时间/用户权限/画布 */
|
|
15
|
+
flowId: string;
|
|
16
|
+
/** 自定义字段 */
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}
|
|
19
|
+
/** 图数据包括节点和边 */
|
|
20
|
+
interface IGraphData {
|
|
21
|
+
/** 节点 */
|
|
22
|
+
nodes: INodeConfig[];
|
|
23
|
+
/** 边 */
|
|
24
|
+
edges: IEdgeConfig[];
|
|
25
|
+
}
|
|
26
|
+
/** 节点信息 */
|
|
27
|
+
interface INodeConfig {
|
|
28
|
+
/** 节点的唯一标识 */
|
|
29
|
+
id: string;
|
|
30
|
+
/** 节点在画布的位置: x */
|
|
31
|
+
x?: number;
|
|
32
|
+
/** 节点在画布的位置: y */
|
|
33
|
+
y?: number;
|
|
34
|
+
/** 节点的渲染宽度 */
|
|
35
|
+
width?: number;
|
|
36
|
+
/** 节点的渲染高度 */
|
|
37
|
+
height?: number;
|
|
38
|
+
/** 节点名 */
|
|
39
|
+
label?: string;
|
|
40
|
+
/** 节点React组件的key */
|
|
41
|
+
renderKey?: string;
|
|
42
|
+
/** 是否是Group */
|
|
43
|
+
isGroup?: boolean;
|
|
44
|
+
/** 所属群组 */
|
|
45
|
+
group?: string;
|
|
46
|
+
/** ports: 链接桩 */
|
|
47
|
+
ports?: INodeAnchor[] | INodePortMeta;
|
|
48
|
+
/** cell attrs */
|
|
49
|
+
attrs?: Attr.CellAttrs;
|
|
50
|
+
/** 用户自定义字段 */
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
}
|
|
53
|
+
/** 群组节点信息 */
|
|
54
|
+
interface IGroupConfig extends INodeConfig {
|
|
55
|
+
/** 是否折叠 */
|
|
56
|
+
isCollapsed?: boolean;
|
|
57
|
+
/** group 折叠后的大小 */
|
|
58
|
+
groupCollapsedSize?: {
|
|
59
|
+
width: number;
|
|
60
|
+
height: number;
|
|
61
|
+
};
|
|
62
|
+
/** group 未折叠的大小 */
|
|
63
|
+
groupChildrenSize?: {
|
|
64
|
+
width: number;
|
|
65
|
+
height: number;
|
|
66
|
+
};
|
|
67
|
+
/** 子节点元素集合 */
|
|
68
|
+
groupChildren?: string[];
|
|
69
|
+
/** group Header */
|
|
70
|
+
groupHeaderHeight?: number;
|
|
71
|
+
/** group 内边距 */
|
|
72
|
+
groupPadding?: number;
|
|
73
|
+
}
|
|
74
|
+
/** 边信息 */
|
|
75
|
+
interface IEdgeConfig {
|
|
76
|
+
/** 边的唯一标识 */
|
|
77
|
+
id: string;
|
|
78
|
+
/** 边的上游节点id */
|
|
79
|
+
source: string;
|
|
80
|
+
/** 边的下游节点id */
|
|
81
|
+
target: string;
|
|
82
|
+
/** 边的上游节点的锚点Id */
|
|
83
|
+
sourcePortId?: string;
|
|
84
|
+
/** 边的下游节点的锚点Id */
|
|
85
|
+
targetPortId?: string;
|
|
86
|
+
/** 边上label */
|
|
87
|
+
label?: string;
|
|
88
|
+
/** 边上渲染React组件的key */
|
|
89
|
+
renderKey?: string;
|
|
90
|
+
/** 边上渲染内容的宽度 */
|
|
91
|
+
edgeContentWidth?: number;
|
|
92
|
+
/** 边上渲染内容的高度 */
|
|
93
|
+
edgeContentHeight?: number;
|
|
94
|
+
/** cell attrs */
|
|
95
|
+
attrs?: Attr.CellAttrs;
|
|
96
|
+
/** 用户自定义字段 */
|
|
97
|
+
[key: string]: any;
|
|
98
|
+
}
|
|
99
|
+
/** 节点锚点位置:上/下/左/右 */
|
|
100
|
+
enum AnchorGroup {
|
|
101
|
+
TOP = "top",
|
|
102
|
+
BOTTOM = "bottom",
|
|
103
|
+
RIGHT = "right",
|
|
104
|
+
LEFT = "left"
|
|
105
|
+
}
|
|
106
|
+
/** 锚点类型: 输入/输出 */
|
|
107
|
+
enum AnchorType {
|
|
108
|
+
INPUT = "input",
|
|
109
|
+
OUTPUT = "output"
|
|
110
|
+
}
|
|
111
|
+
/** group + anchor的配置 */
|
|
112
|
+
interface INodePortMeta extends PortManager.Metadata {
|
|
113
|
+
items: INodeAnchor[];
|
|
114
|
+
}
|
|
115
|
+
/** 节点锚点配置信息 */
|
|
116
|
+
interface INodeAnchor extends Partial<PortManager.Port> {
|
|
117
|
+
/** uuid */
|
|
118
|
+
id: string;
|
|
119
|
+
/** position enum NsGraph.AnchorGroup */
|
|
120
|
+
group?: AnchorGroup | string;
|
|
121
|
+
/** position enum NsGraph.AnchorType */
|
|
122
|
+
type?: AnchorType;
|
|
123
|
+
/** tooltip */
|
|
124
|
+
tooltip?: string;
|
|
125
|
+
/** 用户自定义字段 */
|
|
126
|
+
[key: string]: any;
|
|
127
|
+
}
|
|
128
|
+
/** XFlow画布缩放选项 */
|
|
129
|
+
interface ZoomOptions {
|
|
130
|
+
absolute?: boolean;
|
|
131
|
+
minScale?: number;
|
|
132
|
+
maxScale?: number;
|
|
133
|
+
scaleGrid?: number;
|
|
134
|
+
center?: Point.PointLike;
|
|
135
|
+
}
|
|
136
|
+
/** XFlow Node Props */
|
|
137
|
+
interface IReactNodeProps<T = any> {
|
|
138
|
+
data: T;
|
|
139
|
+
size: {
|
|
140
|
+
width: number;
|
|
141
|
+
height: number;
|
|
142
|
+
};
|
|
143
|
+
position: {
|
|
144
|
+
x: number;
|
|
145
|
+
y: number;
|
|
146
|
+
};
|
|
147
|
+
[key: string]: any;
|
|
148
|
+
}
|
|
149
|
+
type INodeRender<T extends NsGraph.INodeConfig = any> = React.ComponentType<IReactNodeProps<T>>;
|
|
150
|
+
/** XFlow Edge Props */
|
|
151
|
+
interface IReactEdgeProps<T = any> {
|
|
152
|
+
data: T;
|
|
153
|
+
}
|
|
154
|
+
/** XFlow Edge label 组件类型 */
|
|
155
|
+
type IEdgeRender<T extends NsGraph.IEdgeConfig = any> = React.ComponentType<IReactEdgeProps<T>>;
|
|
156
|
+
/** xflow 封装的 X6 event */
|
|
157
|
+
interface IEvent<Key extends keyof EventArgs = any> {
|
|
158
|
+
eventName: Key;
|
|
159
|
+
callback: (x6Event: EventArgs[Key], commandService: IGraphCommandService, modelService: IModelService, graph: X6Graph) => void;
|
|
160
|
+
}
|
|
161
|
+
}
|
package/lib/interface.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NsGraph = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* XFlow画布数据
|
|
6
|
+
*/
|
|
7
|
+
var NsGraph;
|
|
8
|
+
(function (NsGraph) {
|
|
9
|
+
/** 节点锚点位置:上/下/左/右 */
|
|
10
|
+
var AnchorGroup;
|
|
11
|
+
(function (AnchorGroup) {
|
|
12
|
+
AnchorGroup["TOP"] = "top";
|
|
13
|
+
AnchorGroup["BOTTOM"] = "bottom";
|
|
14
|
+
AnchorGroup["RIGHT"] = "right";
|
|
15
|
+
AnchorGroup["LEFT"] = "left";
|
|
16
|
+
})(AnchorGroup = NsGraph.AnchorGroup || (NsGraph.AnchorGroup = {}));
|
|
17
|
+
/** 锚点类型: 输入/输出 */
|
|
18
|
+
var AnchorType;
|
|
19
|
+
(function (AnchorType) {
|
|
20
|
+
AnchorType["INPUT"] = "input";
|
|
21
|
+
AnchorType["OUTPUT"] = "output";
|
|
22
|
+
})(AnchorType = NsGraph.AnchorType || (NsGraph.AnchorType = {}));
|
|
23
|
+
})(NsGraph = exports.NsGraph || (exports.NsGraph = {}));
|
|
24
|
+
//# sourceMappingURL=interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../src/interface.ts"],"names":[],"mappings":";;;AAOA;;GAEG;AAEH,IAAiB,OAAO,CA6JvB;AA7JD,WAAiB,OAAO;IAsFtB,qBAAqB;IACrB,IAAY,WAKX;IALD,WAAY,WAAW;QACrB,0BAAW,CAAA;QACX,gCAAiB,CAAA;QACjB,8BAAe,CAAA;QACf,4BAAa,CAAA;IACf,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB;IAED,kBAAkB;IAClB,IAAY,UAGX;IAHD,WAAY,UAAU;QACpB,6BAAe,CAAA;QACf,+BAAiB,CAAA;IACnB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AA2DH,CAAC,EA7JgB,OAAO,GAAP,eAAO,KAAP,eAAO,QA6JvB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { KeybindingConfig } from '../config';
|
|
3
|
+
export interface IProps {
|
|
4
|
+
config?: KeybindingConfig;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const KeyBindings: React.FC<IProps>;
|
|
9
|
+
interface IValueProxy<T> {
|
|
10
|
+
getValue: () => T;
|
|
11
|
+
}
|
|
12
|
+
export declare const createKeybindingConfig: <T extends unknown = any>(addOptions: (config: KeybindingConfig, container: IValueProxy<T>) => void) => (value?: T) => any;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createKeybindingConfig = exports.KeyBindings = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
var module_1 = require("../module");
|
|
7
|
+
var extension_context_1 = require("../../xflow-main/components/extension-context");
|
|
8
|
+
var config_1 = require("../config");
|
|
9
|
+
var KeyBindings = function (props) {
|
|
10
|
+
var config = props.config;
|
|
11
|
+
/** 获取配置中心 */
|
|
12
|
+
var extensionRegistry = (0, extension_context_1.useExtensionRegistry)();
|
|
13
|
+
/** 获取ContextService的配置 */
|
|
14
|
+
var keybindingConfig = react_1.default.useMemo(function () { return (config ? config : new config_1.KeybindingConfig()); }, [config]);
|
|
15
|
+
react_1.default.useEffect(function () {
|
|
16
|
+
var disposable = extensionRegistry.addCoreModule({
|
|
17
|
+
config: keybindingConfig,
|
|
18
|
+
createModule: module_1.createModule,
|
|
19
|
+
});
|
|
20
|
+
/** resolve */
|
|
21
|
+
keybindingConfig.setMountState();
|
|
22
|
+
return function () {
|
|
23
|
+
disposable.dispose();
|
|
24
|
+
keybindingConfig.dispose();
|
|
25
|
+
};
|
|
26
|
+
}, [extensionRegistry, keybindingConfig]);
|
|
27
|
+
return null;
|
|
28
|
+
};
|
|
29
|
+
exports.KeyBindings = KeyBindings;
|
|
30
|
+
var createKeybindingConfig = function (addOptions) {
|
|
31
|
+
return function (value) {
|
|
32
|
+
/** bridge config and value */
|
|
33
|
+
var valueContainer = react_1.default.useMemo(function () { return ({ getValue: function () { return ({}); } }); }, []);
|
|
34
|
+
valueContainer.getValue = function () { return value; };
|
|
35
|
+
var hookConfig = react_1.default.useMemo(function () {
|
|
36
|
+
var config = new config_1.KeybindingConfig();
|
|
37
|
+
addOptions(config, valueContainer);
|
|
38
|
+
return config;
|
|
39
|
+
}, [valueContainer]);
|
|
40
|
+
return hookConfig;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
exports.createKeybindingConfig = createKeybindingConfig;
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/keybinding/components/index.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AACzB,oCAAwC;AACxC,mFAAoF;AACpF,oCAA4C;AAQrC,IAAM,WAAW,GAAqB,UAAA,KAAK;IACxC,IAAA,MAAM,GAAK,KAAK,OAAV,CAAU;IACxB,aAAa;IACb,IAAM,iBAAiB,GAAG,IAAA,wCAAoB,GAAE,CAAA;IAEhD,0BAA0B;IAC1B,IAAM,gBAAgB,GAAG,eAAK,CAAC,OAAO,CACpC,cAAM,OAAA,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,yBAAgB,EAAE,CAAC,EAA1C,CAA0C,EAChD,CAAC,MAAM,CAAC,CACT,CAAA;IAED,eAAK,CAAC,SAAS,CAAC;QACd,IAAM,UAAU,GAAG,iBAAiB,CAAC,aAAa,CAAC;YACjD,MAAM,EAAE,gBAAgB;YACxB,YAAY,uBAAA;SACb,CAAC,CAAA;QACF,cAAc;QACd,gBAAgB,CAAC,aAAa,EAAE,CAAA;QAChC,OAAO;YACL,UAAU,CAAC,OAAO,EAAE,CAAA;YACpB,gBAAgB,CAAC,OAAO,EAAE,CAAA;QAC5B,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,CAAC,CAAA;IAEzC,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAzBY,QAAA,WAAW,eAyBvB;AAMM,IAAM,sBAAsB,GACjC,UACE,UAAyE;IAE3E,OAAA,UAAC,KAAS;QACR,8BAA8B;QAC9B,IAAM,cAAc,GAAG,eAAK,CAAC,OAAO,CAAC,cAAM,OAAA,CAAC,EAAE,QAAQ,EAAE,cAAM,OAAA,CAAC,EAAQ,CAAA,EAAT,CAAS,EAAE,CAAC,EAA/B,CAA+B,EAAE,EAAE,CAAC,CAAA;QAC/E,cAAc,CAAC,QAAQ,GAAG,cAAM,OAAA,KAAK,EAAL,CAAK,CAAA;QAErC,IAAM,UAAU,GAAG,eAAK,CAAC,OAAO,CAAC;YAC/B,IAAM,MAAM,GAAG,IAAI,yBAAgB,EAAE,CAAA;YACrC,UAAU,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;YAClC,OAAO,MAAM,CAAA;QACf,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAA;QAEpB,OAAO,UAAU,CAAA;IACnB,CAAC;AAZD,CAYC,CAAA;AAhBU,QAAA,sBAAsB,0BAgBhC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IKeyBinding, IRegisterKeybindingFunction } from './interface';
|
|
2
|
+
import type { IModuleConfig } from '../xflow-main/interface';
|
|
3
|
+
export declare namespace NsContext {
|
|
4
|
+
const CONFIG_TYPE = "CONTEXT_CONFIG";
|
|
5
|
+
interface IRenderConfig {
|
|
6
|
+
keybindings: IKeyBinding[];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare class KeybindingConfig implements IModuleConfig {
|
|
10
|
+
/** CONFIG_TYPE */
|
|
11
|
+
readonly CONFIG_TYPE = "CONTEXT_CONFIG";
|
|
12
|
+
/** 外部注册context的方法 */
|
|
13
|
+
private keybindingFunc;
|
|
14
|
+
/** 是否已加载 */
|
|
15
|
+
private isMounted;
|
|
16
|
+
setKeybindingFunc: (fn: IRegisterKeybindingFunction) => void;
|
|
17
|
+
setMountState: () => void;
|
|
18
|
+
getConfig: () => Promise<{
|
|
19
|
+
CONFIG_TYPE: string;
|
|
20
|
+
registerKeybindingFunc: IRegisterKeybindingFunction;
|
|
21
|
+
}>;
|
|
22
|
+
dispose: () => void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KeybindingConfig = exports.NsContext = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var deferred_1 = require("../common/deferred");
|
|
6
|
+
var disposable_1 = require("../common/disposable");
|
|
7
|
+
var NsContext;
|
|
8
|
+
(function (NsContext) {
|
|
9
|
+
NsContext.CONFIG_TYPE = 'CONTEXT_CONFIG';
|
|
10
|
+
})(NsContext = exports.NsContext || (exports.NsContext = {}));
|
|
11
|
+
var noop = function () { return disposable_1.Disposable.create(function () { }); };
|
|
12
|
+
var KeybindingConfig = /** @class */ (function () {
|
|
13
|
+
function KeybindingConfig() {
|
|
14
|
+
var _this = this;
|
|
15
|
+
/** CONFIG_TYPE */
|
|
16
|
+
this.CONFIG_TYPE = NsContext.CONFIG_TYPE;
|
|
17
|
+
/** 外部注册context的方法 */
|
|
18
|
+
this.keybindingFunc = noop;
|
|
19
|
+
/** 是否已加载 */
|
|
20
|
+
this.isMounted = new deferred_1.Deferred();
|
|
21
|
+
this.setKeybindingFunc = function (fn) {
|
|
22
|
+
_this.keybindingFunc = fn;
|
|
23
|
+
};
|
|
24
|
+
this.setMountState = function () {
|
|
25
|
+
_this.isMounted.resolve(true);
|
|
26
|
+
};
|
|
27
|
+
this.getConfig = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
28
|
+
return tslib_1.__generator(this, function (_a) {
|
|
29
|
+
switch (_a.label) {
|
|
30
|
+
case 0: return [4 /*yield*/, this.isMounted.promise];
|
|
31
|
+
case 1:
|
|
32
|
+
_a.sent();
|
|
33
|
+
return [2 /*return*/, {
|
|
34
|
+
CONFIG_TYPE: this.CONFIG_TYPE,
|
|
35
|
+
registerKeybindingFunc: this.keybindingFunc,
|
|
36
|
+
}];
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}); };
|
|
40
|
+
this.dispose = function () {
|
|
41
|
+
_this.keybindingFunc = noop;
|
|
42
|
+
_this.isMounted = new deferred_1.Deferred();
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
return KeybindingConfig;
|
|
46
|
+
}());
|
|
47
|
+
exports.KeybindingConfig = KeybindingConfig;
|
|
48
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/keybinding/config.ts"],"names":[],"mappings":";;;;AAAA,+CAA6C;AAG7C,mDAAiD;AACjD,IAAiB,SAAS,CAMzB;AAND,WAAiB,SAAS;IACX,qBAAW,GAAG,gBAAgB,CAAA;AAK7C,CAAC,EANgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAMzB;AAED,IAAM,IAAI,GAAG,cAAM,OAAA,uBAAU,CAAC,MAAM,CAAC,cAAO,CAAC,CAAC,EAA3B,CAA2B,CAAA;AAC9C;IAAA;QAAA,iBA4BC;QA3BC,kBAAkB;QACT,gBAAW,GAAG,SAAS,CAAC,WAAW,CAAA;QAC5C,qBAAqB;QACb,mBAAc,GAAgC,IAAI,CAAA;QAC1D,YAAY;QACJ,cAAS,GAAG,IAAI,mBAAQ,EAAW,CAAA;QAE3C,sBAAiB,GAAG,UAAC,EAA+B;YAClD,KAAI,CAAC,cAAc,GAAG,EAAE,CAAA;QAC1B,CAAC,CAAA;QAED,kBAAa,GAAG;YACd,KAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;QAC9B,CAAC,CAAA;QAED,cAAS,GAAG;;;4BACV,qBAAM,IAAI,CAAC,SAAS,CAAC,OAAO,EAAA;;wBAA5B,SAA4B,CAAA;wBAC5B,sBAAO;gCACL,WAAW,EAAE,IAAI,CAAC,WAAW;gCAC7B,sBAAsB,EAAE,IAAI,CAAC,cAAc;6BAC5C,EAAA;;;aACF,CAAA;QAED,YAAO,GAAG;YACR,KAAI,CAAC,cAAc,GAAG,IAAI,CAAA;YAC1B,KAAI,CAAC,SAAS,GAAG,IAAI,mBAAQ,EAAE,CAAA;QACjC,CAAC,CAAA;IACH,CAAC;IAAD,uBAAC;AAAD,CAAC,AA5BD,IA4BC;AA5BY,4CAAgB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IKeyBindingContribution = exports.KeybindingConfig = exports.createKeybindingConfig = exports.KeyBindings = void 0;
|
|
4
|
+
var components_1 = require("./components");
|
|
5
|
+
Object.defineProperty(exports, "createKeybindingConfig", { enumerable: true, get: function () { return components_1.createKeybindingConfig; } });
|
|
6
|
+
Object.defineProperty(exports, "KeyBindings", { enumerable: true, get: function () { return components_1.KeyBindings; } });
|
|
7
|
+
var config_1 = require("./config");
|
|
8
|
+
Object.defineProperty(exports, "KeybindingConfig", { enumerable: true, get: function () { return config_1.KeybindingConfig; } });
|
|
9
|
+
var interface_1 = require("./interface");
|
|
10
|
+
Object.defineProperty(exports, "IKeyBindingContribution", { enumerable: true, get: function () { return interface_1.IKeyBindingContribution; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/keybinding/index.ts"],"names":[],"mappings":";;;AAAA,2CAAkE;AAI5C,uGAJb,mCAAsB,OAIa;AAAnC,4FAJwB,wBAAW,OAIxB;AAHpB,mCAA2C;AAGG,iGAHrC,yBAAgB,OAGqC;AAF9D,yCAAqD;AAEW,wGAFvD,mCAAuB,OAEuD"}
|