@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,52 @@
|
|
|
1
|
+
import type { Disposable } from '../common/disposable';
|
|
2
|
+
import type { IGraphCommandService } from '../command/interface';
|
|
3
|
+
import type { IModelService } from '../model-service/interface';
|
|
4
|
+
import { Syringe } from 'mana-syringe';
|
|
5
|
+
export declare const IKeyBindingService: unique symbol;
|
|
6
|
+
export interface IKeyBindingService {
|
|
7
|
+
registerKeybinding: (keybindings: IKeyBinding[]) => Disposable;
|
|
8
|
+
}
|
|
9
|
+
/** 实现这个扩展点来注册更多的keybinding */
|
|
10
|
+
export declare const IKeyBindingContribution: Syringe.DefinedToken;
|
|
11
|
+
/** 扩展keybinding */
|
|
12
|
+
export interface IKeyBindingContribution {
|
|
13
|
+
/**
|
|
14
|
+
* 注册keybinding
|
|
15
|
+
* @param registry KeyBindingRegistry.
|
|
16
|
+
*/
|
|
17
|
+
registerKeybinding: (registry: IKeyBindingService) => Disposable;
|
|
18
|
+
}
|
|
19
|
+
/** keybinding item的 cmdOptions 字段 */
|
|
20
|
+
export interface ICmdExecutor {
|
|
21
|
+
(item: IKeyBinding, modelService: IModelService, cmd: IGraphCommandService, e: KeyboardEvent): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
export interface IKeyBinding {
|
|
24
|
+
/** keybinding的唯一标识 */
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Unique command identifier of the command to be triggered by this keybinding.
|
|
28
|
+
*/
|
|
29
|
+
command?: string;
|
|
30
|
+
/**
|
|
31
|
+
* 快捷键
|
|
32
|
+
* https://craig.is/killing/mice
|
|
33
|
+
* https://x6.antv.vision/zh/docs/api/graph/keyboard#bindkey
|
|
34
|
+
*/
|
|
35
|
+
keybinding: string | string[];
|
|
36
|
+
/**
|
|
37
|
+
* 执行command时的参数
|
|
38
|
+
*/
|
|
39
|
+
callback: ICmdExecutor;
|
|
40
|
+
}
|
|
41
|
+
export interface IKeybindingRegistry {
|
|
42
|
+
registerKeybinding: (configs: IKeyBinding[]) => Disposable;
|
|
43
|
+
}
|
|
44
|
+
export interface IRegisterKeybindingFunction {
|
|
45
|
+
(registry: IKeybindingRegistry): Disposable;
|
|
46
|
+
}
|
|
47
|
+
export interface IKeyBindingOptionProvider {
|
|
48
|
+
getOption: () => Promise<{
|
|
49
|
+
registerKeybindingFunc: IRegisterKeybindingFunction;
|
|
50
|
+
}>;
|
|
51
|
+
}
|
|
52
|
+
export declare const IKeyBindingOptionProvider: unique symbol;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IKeyBindingOptionProvider = exports.IKeyBindingContribution = exports.IKeyBindingService = void 0;
|
|
4
|
+
var mana_syringe_1 = require("mana-syringe");
|
|
5
|
+
exports.IKeyBindingService = Symbol('IKeyBindingService');
|
|
6
|
+
/** 实现这个扩展点来注册更多的keybinding */
|
|
7
|
+
exports.IKeyBindingContribution = mana_syringe_1.Syringe.defineToken('IKeyBindingContribution');
|
|
8
|
+
exports.IKeyBindingOptionProvider = Symbol('IKeyBindingOptionProvider');
|
|
9
|
+
//# sourceMappingURL=interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../src/keybinding/interface.ts"],"names":[],"mappings":";;;AAIA,6CAAsC;AAEzB,QAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAA;AAK9D,8BAA8B;AACjB,QAAA,uBAAuB,GAAG,sBAAO,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAA;AAmDxE,QAAA,yBAAyB,GAAG,MAAM,CAAC,2BAA2B,CAAC,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Contribution } from 'mana-syringe';
|
|
2
|
+
import { DisposableCollection, Disposable } from '../common/disposable';
|
|
3
|
+
import { IFrontendApplicationContribution } from '../xflow-main/interface';
|
|
4
|
+
import { IGraphProvider } from '../xflow-main/graph/graph-provider';
|
|
5
|
+
import type { IKeyBinding, IKeybindingRegistry } from './interface';
|
|
6
|
+
import { IKeyBindingContribution } from './interface';
|
|
7
|
+
export declare class KeyBindingRegistry implements IFrontendApplicationContribution, IKeybindingRegistry {
|
|
8
|
+
/** disposables */
|
|
9
|
+
private toDispose;
|
|
10
|
+
/** disposables */
|
|
11
|
+
private keyBindingMap;
|
|
12
|
+
/** disposables */
|
|
13
|
+
private enabledKeyBindingMap;
|
|
14
|
+
/** KeyBinding 配置 */
|
|
15
|
+
private optionProvider;
|
|
16
|
+
/** GraphCommandRegistry 用于执行 */
|
|
17
|
+
private commandService;
|
|
18
|
+
/** IModelService 实例 */
|
|
19
|
+
private modelService;
|
|
20
|
+
/** context 扩展点 */
|
|
21
|
+
protected readonly contributionProvider: Contribution.Provider<IKeyBindingContribution>;
|
|
22
|
+
/**
|
|
23
|
+
* app启动时, 注册keybinding的扩展
|
|
24
|
+
*/
|
|
25
|
+
onStart(): void;
|
|
26
|
+
/**
|
|
27
|
+
* app停止的逻辑
|
|
28
|
+
*/
|
|
29
|
+
onStop(): void;
|
|
30
|
+
/** 注册用户定义在config中的keybinding */
|
|
31
|
+
protected registerExternalKeybindings: () => Promise<Disposable>;
|
|
32
|
+
/** 注册可Dispose的Keybinding */
|
|
33
|
+
registerKeybinding: (keybindings?: IKeyBinding[]) => DisposableCollection;
|
|
34
|
+
/**
|
|
35
|
+
* 启用keybinding, 用于触发command
|
|
36
|
+
* @param id contextId
|
|
37
|
+
*/
|
|
38
|
+
enableKeyBindings: (keybindingId: string) => Promise<Disposable>;
|
|
39
|
+
/**
|
|
40
|
+
* 禁用keybinding
|
|
41
|
+
*/
|
|
42
|
+
disableKeyBindings: (ids: string[]) => void;
|
|
43
|
+
/**
|
|
44
|
+
* 执行command
|
|
45
|
+
*/
|
|
46
|
+
protected runCommand: (keybinding: IKeyBinding) => (e: KeyboardEvent) => Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* 获取画布实例
|
|
49
|
+
*/
|
|
50
|
+
private getX6Graph;
|
|
51
|
+
protected readonly graphProvider: IGraphProvider;
|
|
52
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KeyBindingRegistry = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var mana_syringe_1 = require("mana-syringe");
|
|
6
|
+
var disposable_1 = require("../common/disposable");
|
|
7
|
+
var interface_1 = require("../xflow-main/interface");
|
|
8
|
+
var graph_provider_1 = require("../xflow-main/graph/graph-provider");
|
|
9
|
+
var interface_2 = require("./interface");
|
|
10
|
+
var interface_3 = require("../command/interface");
|
|
11
|
+
var interface_4 = require("../model-service/interface");
|
|
12
|
+
var KeyBindingRegistry = /** @class */ (function () {
|
|
13
|
+
function KeyBindingRegistry() {
|
|
14
|
+
var _this = this;
|
|
15
|
+
/** disposables */
|
|
16
|
+
this.toDispose = new disposable_1.DisposableCollection();
|
|
17
|
+
/** disposables */
|
|
18
|
+
this.keyBindingMap = new Map();
|
|
19
|
+
/** disposables */
|
|
20
|
+
this.enabledKeyBindingMap = new Map();
|
|
21
|
+
/** 注册用户定义在config中的keybinding */
|
|
22
|
+
this.registerExternalKeybindings = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
23
|
+
var registerKeybindingFunc;
|
|
24
|
+
return tslib_1.__generator(this, function (_a) {
|
|
25
|
+
switch (_a.label) {
|
|
26
|
+
case 0: return [4 /*yield*/, this.optionProvider.getOption()];
|
|
27
|
+
case 1:
|
|
28
|
+
registerKeybindingFunc = (_a.sent()).registerKeybindingFunc;
|
|
29
|
+
return [2 /*return*/, registerKeybindingFunc(this)];
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}); };
|
|
33
|
+
/** 注册可Dispose的Keybinding */
|
|
34
|
+
this.registerKeybinding = function (keybindings) {
|
|
35
|
+
if (keybindings === void 0) { keybindings = []; }
|
|
36
|
+
var toDispose = new disposable_1.DisposableCollection();
|
|
37
|
+
keybindings.forEach(function (keybinding) {
|
|
38
|
+
/** 注册 Keybinding config */
|
|
39
|
+
_this.keyBindingMap.set(keybinding.id, keybinding);
|
|
40
|
+
/** enable Keybinding */
|
|
41
|
+
_this.enableKeyBindings(keybinding.id).then(function (d) {
|
|
42
|
+
toDispose.push(disposable_1.Disposable.create(function () {
|
|
43
|
+
d.dispose();
|
|
44
|
+
_this.keyBindingMap.delete(keybinding.id);
|
|
45
|
+
}));
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
_this.toDispose.push(toDispose);
|
|
49
|
+
return toDispose;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* 启用keybinding, 用于触发command
|
|
53
|
+
* @param id contextId
|
|
54
|
+
*/
|
|
55
|
+
this.enableKeyBindings = function (keybindingId) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
56
|
+
var keybinding, graph, handler, toDispose;
|
|
57
|
+
var _this = this;
|
|
58
|
+
return tslib_1.__generator(this, function (_a) {
|
|
59
|
+
switch (_a.label) {
|
|
60
|
+
case 0:
|
|
61
|
+
/** 清理同样的键盘事件 */
|
|
62
|
+
this.disableKeyBindings([keybindingId]);
|
|
63
|
+
keybinding = this.keyBindingMap.get(keybindingId);
|
|
64
|
+
return [4 /*yield*/, this.getX6Graph()
|
|
65
|
+
/**
|
|
66
|
+
* x6文档:https://x6.antv.vision/zh/docs/api/graph/keyboard
|
|
67
|
+
* x6源码:packages/x6/src/graph/keyboard.ts
|
|
68
|
+
*/
|
|
69
|
+
];
|
|
70
|
+
case 1:
|
|
71
|
+
graph = _a.sent();
|
|
72
|
+
handler = this.runCommand(keybinding);
|
|
73
|
+
graph.bindKey(keybinding.keybinding, handler);
|
|
74
|
+
toDispose = disposable_1.Disposable.create(function () {
|
|
75
|
+
graph.unbindKey(keybinding.keybinding);
|
|
76
|
+
_this.enabledKeyBindingMap.delete(keybinding.id);
|
|
77
|
+
});
|
|
78
|
+
/** 注册disposable */
|
|
79
|
+
this.enabledKeyBindingMap.set(keybinding.id, toDispose);
|
|
80
|
+
return [2 /*return*/, toDispose];
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}); };
|
|
84
|
+
/**
|
|
85
|
+
* 禁用keybinding
|
|
86
|
+
*/
|
|
87
|
+
this.disableKeyBindings = function (ids) {
|
|
88
|
+
ids.forEach(function (id) {
|
|
89
|
+
var disposable = _this.enabledKeyBindingMap.get(id);
|
|
90
|
+
if (disposable) {
|
|
91
|
+
disposable.dispose();
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* 执行command
|
|
97
|
+
*/
|
|
98
|
+
this.runCommand = function (keybinding) { return function (e) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
99
|
+
return tslib_1.__generator(this, function (_a) {
|
|
100
|
+
switch (_a.label) {
|
|
101
|
+
case 0: return [4 /*yield*/, keybinding.callback(keybinding, this.modelService, this.commandService, e)];
|
|
102
|
+
case 1:
|
|
103
|
+
_a.sent();
|
|
104
|
+
return [2 /*return*/];
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}); }; };
|
|
108
|
+
/**
|
|
109
|
+
* 获取画布实例
|
|
110
|
+
*/
|
|
111
|
+
this.getX6Graph = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
112
|
+
var graphInstance;
|
|
113
|
+
return tslib_1.__generator(this, function (_a) {
|
|
114
|
+
switch (_a.label) {
|
|
115
|
+
case 0: return [4 /*yield*/, this.graphProvider.getGraphInstance()];
|
|
116
|
+
case 1:
|
|
117
|
+
graphInstance = _a.sent();
|
|
118
|
+
return [2 /*return*/, graphInstance];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}); };
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* app启动时, 注册keybinding的扩展
|
|
125
|
+
*/
|
|
126
|
+
KeyBindingRegistry.prototype.onStart = function () {
|
|
127
|
+
var contributions = this.contributionProvider.getContributions();
|
|
128
|
+
for (var _i = 0, contributions_1 = contributions; _i < contributions_1.length; _i++) {
|
|
129
|
+
var contribution = contributions_1[_i];
|
|
130
|
+
contribution.registerKeybinding(this);
|
|
131
|
+
}
|
|
132
|
+
this.registerExternalKeybindings();
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* app停止的逻辑
|
|
136
|
+
*/
|
|
137
|
+
KeyBindingRegistry.prototype.onStop = function () {
|
|
138
|
+
this.toDispose.dispose();
|
|
139
|
+
};
|
|
140
|
+
tslib_1.__decorate([
|
|
141
|
+
(0, mana_syringe_1.inject)(interface_2.IKeyBindingOptionProvider),
|
|
142
|
+
tslib_1.__metadata("design:type", Object)
|
|
143
|
+
], KeyBindingRegistry.prototype, "optionProvider", void 0);
|
|
144
|
+
tslib_1.__decorate([
|
|
145
|
+
(0, mana_syringe_1.inject)(interface_3.IGraphCommandService),
|
|
146
|
+
tslib_1.__metadata("design:type", Object)
|
|
147
|
+
], KeyBindingRegistry.prototype, "commandService", void 0);
|
|
148
|
+
tslib_1.__decorate([
|
|
149
|
+
(0, mana_syringe_1.inject)(interface_4.IModelService),
|
|
150
|
+
tslib_1.__metadata("design:type", Object)
|
|
151
|
+
], KeyBindingRegistry.prototype, "modelService", void 0);
|
|
152
|
+
tslib_1.__decorate([
|
|
153
|
+
(0, mana_syringe_1.contrib)(interface_2.IKeyBindingContribution),
|
|
154
|
+
tslib_1.__metadata("design:type", Object)
|
|
155
|
+
], KeyBindingRegistry.prototype, "contributionProvider", void 0);
|
|
156
|
+
tslib_1.__decorate([
|
|
157
|
+
(0, mana_syringe_1.inject)(graph_provider_1.IGraphProvider),
|
|
158
|
+
tslib_1.__metadata("design:type", Object)
|
|
159
|
+
], KeyBindingRegistry.prototype, "graphProvider", void 0);
|
|
160
|
+
KeyBindingRegistry = tslib_1.__decorate([
|
|
161
|
+
(0, mana_syringe_1.singleton)({ contrib: [interface_1.IFrontendApplicationContribution, interface_2.IKeyBindingService] })
|
|
162
|
+
], KeyBindingRegistry);
|
|
163
|
+
return KeyBindingRegistry;
|
|
164
|
+
}());
|
|
165
|
+
exports.KeyBindingRegistry = KeyBindingRegistry;
|
|
166
|
+
//# sourceMappingURL=keybinding-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keybinding-registry.js","sourceRoot":"","sources":["../../src/keybinding/keybinding-registry.ts"],"names":[],"mappings":";;;;AAAA,6CAAuE;AACvE,mDAAuE;AACvE,qDAA0E;AAC1E,qEAAmE;AAEnE,yCAAoG;AACpG,kDAA2D;AAC3D,wDAA0D;AAG1D;IAAA;QAAA,iBAkHC;QAjHC,kBAAkB;QACV,cAAS,GAAG,IAAI,iCAAoB,EAAE,CAAA;QAC9C,kBAAkB;QACV,kBAAa,GAAG,IAAI,GAAG,EAAuB,CAAA;QACtD,kBAAkB;QACV,yBAAoB,GAAG,IAAI,GAAG,EAAsB,CAAA;QA8B5D,gCAAgC;QACtB,gCAA2B,GAAG;;;;4BACH,qBAAM,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,EAAA;;wBAAhE,sBAAsB,GAAK,CAAA,SAAqC,CAAA,uBAA1C;wBAC9B,sBAAO,sBAAsB,CAAC,IAAI,CAAC,EAAA;;;aACpC,CAAA;QAED,4BAA4B;QAC5B,uBAAkB,GAAG,UAAC,WAA+B;YAA/B,4BAAA,EAAA,gBAA+B;YACnD,IAAM,SAAS,GAAG,IAAI,iCAAoB,EAAE,CAAA;YAC5C,WAAW,CAAC,OAAO,CAAC,UAAA,UAAU;gBAC5B,2BAA2B;gBAC3B,KAAI,CAAC,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,CAAA;gBACjD,wBAAwB;gBACxB,KAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,UAAA,CAAC;oBAC1C,SAAS,CAAC,IAAI,CACZ,uBAAU,CAAC,MAAM,CAAC;wBAChB,CAAC,CAAC,OAAO,EAAE,CAAA;wBACX,KAAI,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,CAAA;oBAC1C,CAAC,CAAC,CACH,CAAA;gBACH,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;YACF,KAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;YAC9B,OAAO,SAAS,CAAA;QAClB,CAAC,CAAA;QAED;;;WAGG;QACH,sBAAiB,GAAG,UAAO,YAAoB;;;;;;wBAC7C,gBAAgB;wBAChB,IAAI,CAAC,kBAAkB,CAAC,CAAC,YAAY,CAAC,CAAC,CAAA;wBACjC,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;wBACzC,qBAAM,IAAI,CAAC,UAAU,EAAE;4BACrC;;;+BAGG;0BAJkC;;wBAA/B,KAAK,GAAG,SAAuB;wBAK/B,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;wBAC3C,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;wBAEvC,SAAS,GAAG,uBAAU,CAAC,MAAM,CAAC;4BAClC,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;4BACtC,KAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,CAAA;wBACjD,CAAC,CAAC,CAAA;wBACF,mBAAmB;wBACnB,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,EAAE,SAAS,CAAC,CAAA;wBACvD,sBAAO,SAAS,EAAA;;;aACjB,CAAA;QACD;;WAEG;QACH,uBAAkB,GAAG,UAAC,GAAa;YACjC,GAAG,CAAC,OAAO,CAAC,UAAA,EAAE;gBACZ,IAAM,UAAU,GAAG,KAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;gBACpD,IAAI,UAAU,EAAE;oBACd,UAAU,CAAC,OAAO,EAAE,CAAA;iBACrB;YACH,CAAC,CAAC,CAAA;QACJ,CAAC,CAAA;QACD;;WAEG;QACO,eAAU,GAAG,UAAC,UAAuB,IAAK,OAAA,UAAO,CAAgB;;;4BACzE,qBAAM,UAAU,CAAC,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,EAAA;;wBAAhF,SAAgF,CAAA;;;;aACjF,EAFmD,CAEnD,CAAA;QAED;;WAEG;QACK,eAAU,GAAG;;;;4BACG,qBAAM,IAAI,CAAC,aAAa,CAAC,gBAAgB,EAAE,EAAA;;wBAA3D,aAAa,GAAG,SAA2C;wBACjE,sBAAO,aAAa,EAAA;;;aACrB,CAAA;IAIH,CAAC;IA/FC;;OAEG;IACH,oCAAO,GAAP;QACE,IAAM,aAAa,GAAG,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,EAAE,CAAA;QAClE,KAA2B,UAAa,EAAb,+BAAa,EAAb,2BAAa,EAAb,IAAa,EAAE;YAArC,IAAM,YAAY,sBAAA;YACrB,YAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAA;SACtC;QACD,IAAI,CAAC,2BAA2B,EAAE,CAAA;IACpC,CAAC;IACD;;OAEG;IACH,mCAAM,GAAN;QACE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAA;IAC1B,CAAC;IA1BD;QAAC,IAAA,qBAAM,EAAC,qCAAyB,CAAC;;8DACe;IAEjD;QAAC,IAAA,qBAAM,EAAC,gCAAoB,CAAC;;8DACe;IAE5C;QAAC,IAAA,qBAAM,EAAC,yBAAa,CAAC;;4DACa;IAEnC;QAAC,IAAA,sBAAO,EAAC,mCAAuB,CAAC;;oEACsD;IA8FvF;QAAC,IAAA,qBAAM,EAAC,+BAAc,CAAC;;6DACyB;IAjHrC,kBAAkB;QAD9B,IAAA,wBAAS,EAAC,EAAE,OAAO,EAAE,CAAC,4CAAgC,EAAE,8BAAkB,CAAC,EAAE,CAAC;OAClE,kBAAkB,CAkH9B;IAAD,yBAAC;CAAA,AAlHD,IAkHC;AAlHY,gDAAkB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
/** Application 扩展依赖 */
|
|
3
|
+
/** 扩展Toolbar注册 */
|
|
4
|
+
import type { KeybindingConfig } from './config';
|
|
5
|
+
import { Syringe } from 'mana-syringe';
|
|
6
|
+
export declare const registerKeybindingConfig: (register: Syringe.Register, config: KeybindingConfig) => void;
|
|
7
|
+
/** 依赖扩展模块,必须要加载 */
|
|
8
|
+
export declare const createModule: (keyBindingConfig: KeybindingConfig) => import("mana-syringe").SyringeModule;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createModule = exports.registerKeybindingConfig = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-redeclare */
|
|
6
|
+
require("reflect-metadata");
|
|
7
|
+
/** Toolbar扩展点依赖 */
|
|
8
|
+
var keybinding_registry_1 = require("./keybinding-registry");
|
|
9
|
+
var interface_1 = require("./interface");
|
|
10
|
+
var mana_syringe_1 = require("mana-syringe");
|
|
11
|
+
var registerKeybindingConfig = function (register, config) {
|
|
12
|
+
register(interface_1.IKeyBindingOptionProvider, {
|
|
13
|
+
useDynamic: function () {
|
|
14
|
+
return {
|
|
15
|
+
getOption: function () { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
16
|
+
return tslib_1.__generator(this, function (_a) {
|
|
17
|
+
return [2 /*return*/, config.getConfig()];
|
|
18
|
+
});
|
|
19
|
+
}); },
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
lifecycle: mana_syringe_1.Syringe.Lifecycle.singleton,
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
exports.registerKeybindingConfig = registerKeybindingConfig;
|
|
26
|
+
/** 依赖扩展模块,必须要加载 */
|
|
27
|
+
var createModule = function (keyBindingConfig) {
|
|
28
|
+
return (0, mana_syringe_1.Module)(function (register) {
|
|
29
|
+
/** 绑定 context 配置 */
|
|
30
|
+
(0, exports.registerKeybindingConfig)(register, keyBindingConfig);
|
|
31
|
+
/** 注册 IContextContribution */
|
|
32
|
+
mana_syringe_1.Contribution.register(register, interface_1.IKeyBindingContribution);
|
|
33
|
+
/** 注册 KeyBindingRegistry 到 IFrontendApplicationContribution */
|
|
34
|
+
/** 注册 KeyBindingRegistry */
|
|
35
|
+
/** 注册 KeyBindingRegistry alias IKeybindingService */
|
|
36
|
+
register(keybinding_registry_1.KeyBindingRegistry);
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
exports.createModule = createModule;
|
|
40
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/keybinding/module.ts"],"names":[],"mappings":";;;;AAAA,oDAAoD;AACpD,4BAAyB;AAIzB,mBAAmB;AACnB,6DAA0D;AAC1D,yCAAgF;AAChF,6CAA4D;AAErD,IAAM,wBAAwB,GAAG,UAAC,QAA0B,EAAE,MAAwB;IAC3F,QAAQ,CAA4B,qCAAyB,EAAE;QAC7D,UAAU,EAAE;YACV,OAAO;gBACL,SAAS,EAAE;;wBACT,sBAAO,MAAM,CAAC,SAAS,EAAE,EAAA;;qBAC1B;aACF,CAAA;QACH,CAAC;QACD,SAAS,EAAE,sBAAO,CAAC,SAAS,CAAC,SAAS;KACvC,CAAC,CAAA;AACJ,CAAC,CAAA;AAXY,QAAA,wBAAwB,4BAWpC;AAED,mBAAmB;AACZ,IAAM,YAAY,GAAG,UAAC,gBAAkC;IAC7D,OAAO,IAAA,qBAAM,EAAC,UAAA,QAAQ;QACpB,oBAAoB;QACpB,IAAA,gCAAwB,EAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAA;QAEpD,8BAA8B;QAC9B,2BAAY,CAAC,QAAQ,CAAC,QAAQ,EAAE,mCAAuB,CAAC,CAAA;QAExD,gEAAgE;QAChE,4BAA4B;QAC5B,sDAAsD;QACtD,QAAQ,CAAC,wCAAkB,CAAC,CAAA;IAC9B,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA;AAbY,QAAA,YAAY,gBAaxB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MenuRegistry = 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 MenuRegistry = function (props) {
|
|
9
|
+
var _a = props;
|
|
10
|
+
/** 获取配置中心 */
|
|
11
|
+
var extensionRegistry = (0, extension_context_1.useExtensionRegistry)();
|
|
12
|
+
react_1.default.useEffect(function () {
|
|
13
|
+
var disposable = extensionRegistry.addCoreModule({
|
|
14
|
+
config: { CONFIG_TYPE: 'MenuRegistry', getConfig: function () { return tslib_1.__awaiter(void 0, void 0, void 0, function () { return tslib_1.__generator(this, function (_a) {
|
|
15
|
+
return [2 /*return*/];
|
|
16
|
+
}); }); } },
|
|
17
|
+
createModule: module_1.createModule,
|
|
18
|
+
});
|
|
19
|
+
return function () {
|
|
20
|
+
disposable.dispose();
|
|
21
|
+
};
|
|
22
|
+
/* eslint-disable-next-line */
|
|
23
|
+
}, []);
|
|
24
|
+
return null;
|
|
25
|
+
};
|
|
26
|
+
exports.MenuRegistry = MenuRegistry;
|
|
27
|
+
exports.MenuRegistry.defaultProps = { XFlowModuleType: 'MenuRegistry' };
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/menu/components/index.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AACzB,oCAAwC;AACxC,mFAAoF;AAI7E,IAAM,YAAY,GAAqB,UAAA,KAAK;IAC3C,IAAA,KAAK,KAAK,CAAA;IAChB,aAAa;IACb,IAAM,iBAAiB,GAAG,IAAA,wCAAoB,GAAE,CAAA;IAEhD,eAAK,CAAC,SAAS,CAAC;QACd,IAAM,UAAU,GAAG,iBAAiB,CAAC,aAAa,CAAC;YACjD,MAAM,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE;;yBAAc,EAAE;YAClE,YAAY,uBAAA;SACb,CAAC,CAAA;QACF,OAAO;YACL,UAAU,CAAC,OAAO,EAAE,CAAA;QACtB,CAAC,CAAA;QACD,+BAA+B;IACjC,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAjBY,QAAA,YAAY,gBAiBxB;AAED,oBAAY,CAAC,YAAY,GAAG,EAAE,eAAe,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IMenuId, IAnchor, IMenuTarget, MenuItemType, IMenuOptions, IMenuModel, IMenuService, IRegisterMenuFunction, IMenuContribution } from './interface';
|
|
2
|
+
import { MenuRegistry } from './components';
|
|
3
|
+
export { IMenuService, IMenuContribution, IMenuId, IAnchor, IMenuTarget, MenuItemType, IMenuModel, IMenuOptions, IRegisterMenuFunction, MenuRegistry, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MenuRegistry = exports.MenuItemType = exports.IMenuContribution = exports.IMenuService = void 0;
|
|
4
|
+
var interface_1 = require("./interface");
|
|
5
|
+
Object.defineProperty(exports, "MenuItemType", { enumerable: true, get: function () { return interface_1.MenuItemType; } });
|
|
6
|
+
Object.defineProperty(exports, "IMenuService", { enumerable: true, get: function () { return interface_1.IMenuService; } });
|
|
7
|
+
Object.defineProperty(exports, "IMenuContribution", { enumerable: true, get: function () { return interface_1.IMenuContribution; } });
|
|
8
|
+
var components_1 = require("./components");
|
|
9
|
+
Object.defineProperty(exports, "MenuRegistry", { enumerable: true, get: function () { return components_1.MenuRegistry; } });
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/menu/index.ts"],"names":[],"mappings":";;;AAAA,yCAUoB;AAYlB,6FAlBA,wBAAY,OAkBA;AAPZ,6FARA,wBAAY,OAQA;AACZ,kGAPA,6BAAiB,OAOA;AALnB,2CAA2C;AAgBzC,6FAhBO,yBAAY,OAgBP"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { Syringe } from 'mana-syringe';
|
|
3
|
+
import type { Disposable } from '../common/disposable';
|
|
4
|
+
import type { RxModel } from '../common/rx-model';
|
|
5
|
+
import type { IGraphCommandService } from '../command/interface';
|
|
6
|
+
import type { IModelService, MODELS } from '../model-service';
|
|
7
|
+
import type { NsGraph } from '../interface';
|
|
8
|
+
/** rootMenuId */
|
|
9
|
+
export declare const ROOT_MENU_ID: unique symbol;
|
|
10
|
+
/** MenuId */
|
|
11
|
+
export type IMenuId = string;
|
|
12
|
+
/** Menu UI Model Service */
|
|
13
|
+
export declare const IMenuService: unique symbol;
|
|
14
|
+
/** Menu UI Model Service */
|
|
15
|
+
export interface IMenuService {
|
|
16
|
+
/**
|
|
17
|
+
* 注册 menu
|
|
18
|
+
* @param config IMenuOptions
|
|
19
|
+
*/
|
|
20
|
+
registerMenu: (config: IMenuOptions) => Disposable;
|
|
21
|
+
/**
|
|
22
|
+
* 注册一批可单独dispose的扩展项目
|
|
23
|
+
* @param externalRegisterFn IRegisterMenuFunction
|
|
24
|
+
*/
|
|
25
|
+
registerDisposableMenu: (externalRegisterFn: IRegisterMenuFunction) => Disposable;
|
|
26
|
+
/**
|
|
27
|
+
* 获取menu model
|
|
28
|
+
* @param menuId menu id
|
|
29
|
+
*/
|
|
30
|
+
getMenu: (menuId: IMenuId) => IMenuOptions;
|
|
31
|
+
}
|
|
32
|
+
/** IRegisterMenuFunction */
|
|
33
|
+
export interface IRegisterMenuFunction {
|
|
34
|
+
(registry: Pick<IMenuService, 'registerMenu'>): void;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 应该实现这个扩展点来注册更多的Menu
|
|
38
|
+
*/
|
|
39
|
+
export declare const IMenuContribution: Syringe.DefinedToken;
|
|
40
|
+
/**
|
|
41
|
+
* 扩展Menu
|
|
42
|
+
*/
|
|
43
|
+
export interface IMenuContribution {
|
|
44
|
+
/**
|
|
45
|
+
* 注册Menu
|
|
46
|
+
* @param registry the toolbar registry.
|
|
47
|
+
*/
|
|
48
|
+
registerMenu: (registry: IMenuService) => void;
|
|
49
|
+
}
|
|
50
|
+
/** A type alias for a menu item type. */
|
|
51
|
+
export type ItemType = typeof MenuItemType;
|
|
52
|
+
/** menu item type. */
|
|
53
|
+
export declare enum MenuItemType {
|
|
54
|
+
Separator = "separator",
|
|
55
|
+
Submenu = "submenu",
|
|
56
|
+
Root = "root",
|
|
57
|
+
Leaf = "leaf"
|
|
58
|
+
}
|
|
59
|
+
export interface IMenuTarget {
|
|
60
|
+
type: MODELS.CONTEXTMENU_TARGET.TargetType;
|
|
61
|
+
data: NsGraph.INodeConfig | NsGraph.IEdgeConfig | null;
|
|
62
|
+
}
|
|
63
|
+
/** menu item model */
|
|
64
|
+
export interface IMenuOptions<T = any> {
|
|
65
|
+
/** The type of the menu item. */
|
|
66
|
+
id: IMenuId;
|
|
67
|
+
/** The type of the menu item. */
|
|
68
|
+
type?: MenuItemType;
|
|
69
|
+
/** The submenu id */
|
|
70
|
+
submenu?: IMenuOptions[];
|
|
71
|
+
/** The display label for the menu item. */
|
|
72
|
+
label?: string;
|
|
73
|
+
/** Whether submenu is active */
|
|
74
|
+
active?: boolean;
|
|
75
|
+
/** The hotkey for the menu item */
|
|
76
|
+
hotkey?: string;
|
|
77
|
+
/** The icon label for the menu item */
|
|
78
|
+
iconName?: string;
|
|
79
|
+
/** Whether the menu item is enabled */
|
|
80
|
+
isEnabled?: boolean;
|
|
81
|
+
/** Whether the menu item is visible */
|
|
82
|
+
isVisible?: boolean;
|
|
83
|
+
/** data. */
|
|
84
|
+
data?: T;
|
|
85
|
+
/** 自定义渲染 */
|
|
86
|
+
render?: React.ComponentType<{
|
|
87
|
+
menuItem: IMenuOptions;
|
|
88
|
+
target: IMenuTarget;
|
|
89
|
+
commandService: IGraphCommandService;
|
|
90
|
+
modelService: IModelService;
|
|
91
|
+
onHide: () => void;
|
|
92
|
+
}>;
|
|
93
|
+
/** onClick */
|
|
94
|
+
onClick?: (args: IClickArgs) => Promise<void>;
|
|
95
|
+
}
|
|
96
|
+
export interface IClickArgs {
|
|
97
|
+
menuItem: IMenuOptions;
|
|
98
|
+
target: IMenuTarget;
|
|
99
|
+
commandService: IGraphCommandService;
|
|
100
|
+
modelService: IModelService;
|
|
101
|
+
}
|
|
102
|
+
export type IMenuModel = RxModel<IMenuOptions>;
|
|
103
|
+
/** 渲染 menu 的锚点数据 */
|
|
104
|
+
export interface IAnchor {
|
|
105
|
+
x: number;
|
|
106
|
+
y: number;
|
|
107
|
+
}
|
|
108
|
+
/** Config */
|
|
109
|
+
export interface IConfig {
|
|
110
|
+
/** 画布的 root 节点 */
|
|
111
|
+
getProps: () => any;
|
|
112
|
+
/** 从事件对象中解析出 menuid */
|
|
113
|
+
createMenuOptions: (data: MODELS.CONTEXTMENU_TARGET.IState, modelService: IModelService, getProps: () => any) => IMenuOptions[];
|
|
114
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MenuItemType = exports.IMenuContribution = exports.IMenuService = exports.ROOT_MENU_ID = void 0;
|
|
4
|
+
var mana_syringe_1 = require("mana-syringe");
|
|
5
|
+
/** rootMenuId */
|
|
6
|
+
exports.ROOT_MENU_ID = Symbol('xflow-menu-root');
|
|
7
|
+
/** Menu UI Model Service */
|
|
8
|
+
exports.IMenuService = Symbol('IMenuService');
|
|
9
|
+
/**
|
|
10
|
+
* 应该实现这个扩展点来注册更多的Menu
|
|
11
|
+
*/
|
|
12
|
+
exports.IMenuContribution = mana_syringe_1.Syringe.defineToken('IMenuContribution');
|
|
13
|
+
/** menu item type. */
|
|
14
|
+
var MenuItemType;
|
|
15
|
+
(function (MenuItemType) {
|
|
16
|
+
MenuItemType["Separator"] = "separator";
|
|
17
|
+
MenuItemType["Submenu"] = "submenu";
|
|
18
|
+
MenuItemType["Root"] = "root";
|
|
19
|
+
MenuItemType["Leaf"] = "leaf";
|
|
20
|
+
})(MenuItemType = exports.MenuItemType || (exports.MenuItemType = {}));
|
|
21
|
+
//# sourceMappingURL=interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../src/menu/interface.ts"],"names":[],"mappings":";;;AAEA,6CAAsC;AAStC,iBAAiB;AACJ,QAAA,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAA;AAKrD,4BAA4B;AACf,QAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAA;AAyBlD;;GAEG;AACU,QAAA,iBAAiB,GAAG,sBAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAA;AAazE,uBAAuB;AACvB,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,mCAAmB,CAAA;IACnB,6BAAa,CAAA;IACb,6BAAa,CAAA;AACf,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Contribution } from 'mana-syringe';
|
|
2
|
+
import { DisposableCollection, Disposable } from '../common/disposable';
|
|
3
|
+
import { IFrontendApplicationContribution } from '../xflow-main/interface';
|
|
4
|
+
import type { IMenuId, IMenuOptions, IRegisterMenuFunction } from './interface';
|
|
5
|
+
import { IMenuService, IMenuContribution } from './interface';
|
|
6
|
+
export declare class MenuRegistry implements IMenuService, IFrontendApplicationContribution {
|
|
7
|
+
/** disposables */
|
|
8
|
+
private toDispose;
|
|
9
|
+
/** menuMap */
|
|
10
|
+
private menuMap;
|
|
11
|
+
/** menu扩展 */
|
|
12
|
+
protected readonly contributionProvider: Contribution.Provider<IMenuContribution>;
|
|
13
|
+
/** app启动时,收集menu扩展点的注册项 */
|
|
14
|
+
onStart(): void;
|
|
15
|
+
/** app的停止逻辑 */
|
|
16
|
+
onStop(): void;
|
|
17
|
+
/**
|
|
18
|
+
* 注册 menu 类型
|
|
19
|
+
* @param config IMenu
|
|
20
|
+
*/
|
|
21
|
+
registerMenu(config: IMenuOptions): Disposable;
|
|
22
|
+
/**
|
|
23
|
+
* 获取 menu
|
|
24
|
+
* @param menuId menuId
|
|
25
|
+
*/
|
|
26
|
+
getMenu: (menuId: IMenuId) => IMenuOptions<any>;
|
|
27
|
+
/**
|
|
28
|
+
* 注册一批可单独dispose的扩展项目
|
|
29
|
+
* @param externalRegisterFn IRegisterMenuFunction
|
|
30
|
+
*/
|
|
31
|
+
registerDisposableMenu: (externalRegisterFn: IRegisterMenuFunction) => DisposableCollection;
|
|
32
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MenuRegistry = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var mana_syringe_1 = require("mana-syringe");
|
|
6
|
+
var disposable_1 = require("../common/disposable");
|
|
7
|
+
var interface_1 = require("../xflow-main/interface");
|
|
8
|
+
var interface_2 = require("./interface");
|
|
9
|
+
var MenuRegistry = /** @class */ (function () {
|
|
10
|
+
function MenuRegistry() {
|
|
11
|
+
var _this = this;
|
|
12
|
+
/** disposables */
|
|
13
|
+
this.toDispose = new disposable_1.DisposableCollection();
|
|
14
|
+
/** menuMap */
|
|
15
|
+
this.menuMap = new Map();
|
|
16
|
+
/**
|
|
17
|
+
* 获取 menu
|
|
18
|
+
* @param menuId menuId
|
|
19
|
+
*/
|
|
20
|
+
this.getMenu = function (menuId) {
|
|
21
|
+
return _this.menuMap.get(menuId);
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* 注册一批可单独dispose的扩展项目
|
|
25
|
+
* @param externalRegisterFn IRegisterMenuFunction
|
|
26
|
+
*/
|
|
27
|
+
this.registerDisposableMenu = function (externalRegisterFn) {
|
|
28
|
+
var toDispose = new disposable_1.DisposableCollection();
|
|
29
|
+
var disposableRegistry = {
|
|
30
|
+
registerMenu: function (config) {
|
|
31
|
+
var disposable = _this.registerMenu(config);
|
|
32
|
+
toDispose.push(disposable);
|
|
33
|
+
return disposable;
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
externalRegisterFn(disposableRegistry);
|
|
37
|
+
_this.toDispose.push(toDispose);
|
|
38
|
+
return toDispose;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/** app启动时,收集menu扩展点的注册项 */
|
|
42
|
+
MenuRegistry.prototype.onStart = function () {
|
|
43
|
+
var contributions = this.contributionProvider.getContributions();
|
|
44
|
+
for (var _i = 0, contributions_1 = contributions; _i < contributions_1.length; _i++) {
|
|
45
|
+
var contribution = contributions_1[_i];
|
|
46
|
+
contribution.registerMenu(this);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
/** app的停止逻辑 */
|
|
50
|
+
MenuRegistry.prototype.onStop = function () {
|
|
51
|
+
this.toDispose.dispose();
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* 注册 menu 类型
|
|
55
|
+
* @param config IMenu
|
|
56
|
+
*/
|
|
57
|
+
MenuRegistry.prototype.registerMenu = function (config) {
|
|
58
|
+
var _this = this;
|
|
59
|
+
this.menuMap.set(config.id, config);
|
|
60
|
+
return disposable_1.Disposable.create(function () { return _this.menuMap.delete(config.id); });
|
|
61
|
+
};
|
|
62
|
+
tslib_1.__decorate([
|
|
63
|
+
(0, mana_syringe_1.contrib)(interface_2.IMenuContribution),
|
|
64
|
+
tslib_1.__metadata("design:type", Object)
|
|
65
|
+
], MenuRegistry.prototype, "contributionProvider", void 0);
|
|
66
|
+
MenuRegistry = tslib_1.__decorate([
|
|
67
|
+
(0, mana_syringe_1.singleton)({ contrib: [interface_1.IFrontendApplicationContribution, interface_2.IMenuService] })
|
|
68
|
+
], MenuRegistry);
|
|
69
|
+
return MenuRegistry;
|
|
70
|
+
}());
|
|
71
|
+
exports.MenuRegistry = MenuRegistry;
|
|
72
|
+
//# sourceMappingURL=menu-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-registry.js","sourceRoot":"","sources":["../../src/menu/menu-registry.ts"],"names":[],"mappings":";;;;AAAA,6CAA+D;AAC/D,mDAAuE;AACvE,qDAA0E;AAG1E,yCAA6D;AAG7D;IAAA;QAAA,iBAmDC;QAlDC,kBAAkB;QACV,cAAS,GAAG,IAAI,iCAAoB,EAAE,CAAA;QAC9C,cAAc;QACN,YAAO,GAAG,IAAI,GAAG,EAAyB,CAAA;QAuBlD;;;WAGG;QACH,YAAO,GAAG,UAAC,MAAe;YACxB,OAAO,KAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QACjC,CAAC,CAAA;QACD;;;WAGG;QACH,2BAAsB,GAAG,UAAC,kBAAyC;YACjE,IAAM,SAAS,GAAG,IAAI,iCAAoB,EAAE,CAAA;YAC5C,IAAM,kBAAkB,GAAG;gBACzB,YAAY,EAAE,UAAC,MAAoB;oBACjC,IAAM,UAAU,GAAG,KAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAA;oBAC5C,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;oBAC1B,OAAO,UAAU,CAAA;gBACnB,CAAC;aACF,CAAA;YACD,kBAAkB,CAAC,kBAAkB,CAAC,CAAA;YACtC,KAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;YAC9B,OAAO,SAAS,CAAA;QAClB,CAAC,CAAA;IACH,CAAC;IA3CC,2BAA2B;IAC3B,8BAAO,GAAP;QACE,IAAM,aAAa,GAAG,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,EAAE,CAAA;QAClE,KAA2B,UAAa,EAAb,+BAAa,EAAb,2BAAa,EAAb,IAAa,EAAE;YAArC,IAAM,YAAY,sBAAA;YACrB,YAAY,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;SAChC;IACH,CAAC;IACD,eAAe;IACf,6BAAM,GAAN;QACE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAA;IAC1B,CAAC;IACD;;;OAGG;IACH,mCAAY,GAAZ,UAAa,MAAoB;QAAjC,iBAGC;QAFC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAA;QACnC,OAAO,uBAAU,CAAC,MAAM,CAAC,cAAM,OAAA,KAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,EAA9B,CAA8B,CAAC,CAAA;IAChE,CAAC;IApBD;QAAC,IAAA,sBAAO,EAAC,6BAAiB,CAAC;;8DACsD;IAPtE,YAAY;QADxB,IAAA,wBAAS,EAAC,EAAE,OAAO,EAAE,CAAC,4CAAgC,EAAE,wBAAY,CAAC,EAAE,CAAC;OAC5D,YAAY,CAmDxB;IAAD,mBAAC;CAAA,AAnDD,IAmDC;AAnDY,oCAAY"}
|