@eclipse-glsp/client 1.1.0-next.976795c.271 → 1.1.0-next.9f38884.282
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/css/glsp-sprotty.css +5 -4
- package/css/keyboard-tool-palette.css +66 -0
- package/css/keyboard.css +50 -0
- package/lib/base/action-dispatcher.d.ts +8 -2
- package/lib/base/action-dispatcher.d.ts.map +1 -1
- package/lib/base/action-dispatcher.js +15 -7
- package/lib/base/action-dispatcher.js.map +1 -1
- package/lib/base/action-dispatcher.spec.d.ts +2 -0
- package/lib/base/action-dispatcher.spec.d.ts.map +1 -0
- package/lib/base/action-dispatcher.spec.js +78 -0
- package/lib/base/action-dispatcher.spec.js.map +1 -0
- package/lib/base/action-handler-registry.d.ts +25 -0
- package/lib/base/action-handler-registry.d.ts.map +1 -0
- package/lib/{features/tools/base-glsp-creation-tool.js → base/action-handler-registry.js} +20 -25
- package/lib/base/action-handler-registry.js.map +1 -0
- package/lib/base/default.module.d.ts.map +1 -1
- package/lib/base/default.module.js +14 -12
- package/lib/base/default.module.js.map +1 -1
- package/lib/base/editor-context-service.d.ts +1 -2
- package/lib/base/editor-context-service.d.ts.map +1 -1
- package/lib/base/editor-context-service.js +0 -3
- package/lib/base/editor-context-service.js.map +1 -1
- package/lib/base/feedback/css-feedback.d.ts +1 -0
- package/lib/base/feedback/css-feedback.d.ts.map +1 -1
- package/lib/base/feedback/css-feedback.js +1 -0
- package/lib/base/feedback/css-feedback.js.map +1 -1
- package/lib/base/feedback/feedback-action-dispatcher.d.ts.map +1 -1
- package/lib/base/feedback/feedback-action-dispatcher.js +5 -3
- package/lib/base/feedback/feedback-action-dispatcher.js.map +1 -1
- package/lib/base/focus/focus-tracker.d.ts +4 -0
- package/lib/base/focus/focus-tracker.d.ts.map +1 -1
- package/lib/base/focus/focus-tracker.js +12 -5
- package/lib/base/focus/focus-tracker.js.map +1 -1
- package/lib/base/model/diagram-loader.d.ts +36 -8
- package/lib/base/model/diagram-loader.d.ts.map +1 -1
- package/lib/base/model/diagram-loader.js +37 -23
- package/lib/base/model/diagram-loader.js.map +1 -1
- package/lib/base/model/glsp-model-source.d.ts +23 -8
- package/lib/base/model/glsp-model-source.d.ts.map +1 -1
- package/lib/base/model/glsp-model-source.js +62 -27
- package/lib/base/model/glsp-model-source.js.map +1 -1
- package/lib/base/{model-initialization-constraint.d.ts → model/model-initialization-constraint.d.ts} +24 -3
- package/lib/base/model/model-initialization-constraint.d.ts.map +1 -0
- package/lib/base/{model-initialization-constraint.js → model/model-initialization-constraint.js} +20 -10
- package/lib/base/model/model-initialization-constraint.js.map +1 -0
- package/lib/base/model/model-initialization-constraint.spec.d.ts +2 -0
- package/lib/base/model/model-initialization-constraint.spec.d.ts.map +1 -0
- package/lib/base/model/model-initialization-constraint.spec.js +97 -0
- package/lib/base/model/model-initialization-constraint.spec.js.map +1 -0
- package/lib/base/selection-service.spec.js +9 -8
- package/lib/base/selection-service.spec.js.map +1 -1
- package/lib/base/tool-manager/tool-manager.d.ts +82 -0
- package/lib/base/tool-manager/tool-manager.d.ts.map +1 -0
- package/lib/base/tool-manager/tool-manager.js +140 -0
- package/lib/base/tool-manager/tool-manager.js.map +1 -0
- package/lib/base/tool-manager/tool.d.ts +54 -0
- package/lib/base/tool-manager/tool.d.ts.map +1 -0
- package/lib/base/tool-manager/tool.js +60 -0
- package/lib/base/tool-manager/tool.js.map +1 -0
- package/lib/default-modules.d.ts +2 -25
- package/lib/default-modules.d.ts.map +1 -1
- package/lib/default-modules.js +1 -28
- package/lib/default-modules.js.map +1 -1
- package/lib/features/accessibility/accessibility-module.d.ts.map +1 -1
- package/lib/features/accessibility/accessibility-module.js +4 -0
- package/lib/features/accessibility/accessibility-module.js.map +1 -1
- package/lib/features/accessibility/actions.d.ts +26 -0
- package/lib/features/accessibility/actions.d.ts.map +1 -0
- package/lib/features/accessibility/actions.js +32 -0
- package/lib/features/accessibility/actions.js.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/action.d.ts +27 -0
- package/lib/features/accessibility/edge-autocomplete/action.d.ts.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/action.js +32 -0
- package/lib/features/accessibility/edge-autocomplete/action.js.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-context.d.ts +23 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-context.d.ts.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-context.js +18 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-context.js.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-palette.d.ts +27 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-palette.d.ts.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-palette.js +134 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-palette.js.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-tool.d.ts +14 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-tool.d.ts.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-tool.js +70 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-tool.js.map +1 -0
- package/lib/features/accessibility/element-navigation/diagram-navigation-tool.d.ts +4 -4
- package/lib/features/accessibility/element-navigation/diagram-navigation-tool.d.ts.map +1 -1
- package/lib/features/accessibility/element-navigation/diagram-navigation-tool.js +29 -32
- package/lib/features/accessibility/element-navigation/diagram-navigation-tool.js.map +1 -1
- package/lib/features/accessibility/focus-tracker/focus-tracker-tool.d.ts +3 -3
- package/lib/features/accessibility/focus-tracker/focus-tracker-tool.d.ts.map +1 -1
- package/lib/features/accessibility/focus-tracker/focus-tracker-tool.js +3 -3
- package/lib/features/accessibility/focus-tracker/focus-tracker-tool.js.map +1 -1
- package/lib/features/accessibility/global-keylistener-tool.d.ts +20 -0
- package/lib/features/accessibility/global-keylistener-tool.d.ts.map +1 -0
- package/lib/features/accessibility/global-keylistener-tool.js +109 -0
- package/lib/features/accessibility/global-keylistener-tool.js.map +1 -0
- package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.d.ts +2 -2
- package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.d.ts.map +1 -1
- package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.js +2 -2
- package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.js.map +1 -1
- package/lib/features/accessibility/keyboard-grid/action.d.ts +57 -0
- package/lib/features/accessibility/keyboard-grid/action.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-grid/action.js +65 -0
- package/lib/features/accessibility/keyboard-grid/action.js.map +1 -0
- package/lib/features/accessibility/keyboard-grid/constants.d.ts +23 -0
- package/lib/features/accessibility/keyboard-grid/constants.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-grid/constants.js +28 -0
- package/lib/features/accessibility/keyboard-grid/constants.js.map +1 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-grid-search-palette.d.ts +33 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-grid-search-palette.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-grid-search-palette.js +69 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-grid-search-palette.js.map +1 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-grid.d.ts +38 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-grid.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-grid.js +173 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-grid.js.map +1 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-node-grid.d.ts +29 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-node-grid.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-node-grid.js +74 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-node-grid.js.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/actions.d.ts +27 -0
- package/lib/features/accessibility/keyboard-pointer/actions.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/actions.js +32 -0
- package/lib/features/accessibility/keyboard-pointer/actions.js.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/constants.d.ts +22 -0
- package/lib/features/accessibility/keyboard-pointer/constants.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/constants.js +26 -0
- package/lib/features/accessibility/keyboard-pointer/constants.js.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-listener.d.ts +39 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-listener.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-listener.js +118 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-listener.js.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.d.ts +22 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.js +53 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.js.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-position.d.ts +35 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-position.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-position.js +67 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-position.js.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer.d.ts +23 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer.js +122 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer.js.map +1 -0
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.d.ts +20 -0
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.js +37 -0
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.js.map +1 -0
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.d.ts +37 -0
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.js +460 -0
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.js.map +1 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.d.ts +2 -2
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.d.ts.map +1 -1
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.js +14 -17
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.js.map +1 -1
- package/lib/features/accessibility/search/search-palette.d.ts +4 -0
- package/lib/features/accessibility/search/search-palette.d.ts.map +1 -1
- package/lib/features/accessibility/search/search-palette.js +23 -2
- package/lib/features/accessibility/search/search-palette.js.map +1 -1
- package/lib/features/accessibility/search/search-tool.d.ts +2 -1
- package/lib/features/accessibility/search/search-tool.d.ts.map +1 -1
- package/lib/features/accessibility/search/search-tool.js +4 -8
- package/lib/features/accessibility/search/search-tool.js.map +1 -1
- package/lib/features/accessibility/toast/messages.json +3 -1
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.d.ts +2 -2
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.d.ts.map +1 -1
- package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts +2 -2
- package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts.map +1 -1
- package/lib/features/accessibility/view-key-tools/movement-key-tool.js +4 -8
- package/lib/features/accessibility/view-key-tools/movement-key-tool.js.map +1 -1
- package/lib/features/accessibility/view-key-tools/view-key-tools-module.d.ts +1 -1
- package/lib/features/accessibility/view-key-tools/view-key-tools-module.d.ts.map +1 -1
- package/lib/features/accessibility/view-key-tools/view-key-tools-module.js +3 -0
- package/lib/features/accessibility/view-key-tools/view-key-tools-module.js.map +1 -1
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts +8 -3
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts.map +1 -1
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.js +77 -14
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.js.map +1 -1
- package/lib/features/autocomplete-palette/base-autocomplete-palette.js +2 -1
- package/lib/features/autocomplete-palette/base-autocomplete-palette.js.map +1 -1
- package/lib/features/bounds/bounds-module.d.ts.map +1 -1
- package/lib/features/bounds/bounds-module.js +2 -1
- package/lib/features/bounds/bounds-module.js.map +1 -1
- package/lib/features/command-palette/command-palette-tool.d.ts +2 -1
- package/lib/features/command-palette/command-palette-tool.d.ts.map +1 -1
- package/lib/features/command-palette/command-palette-tool.js.map +1 -1
- package/lib/features/command-palette/server-command-palette-provider.d.ts.map +1 -1
- package/lib/features/command-palette/server-command-palette-provider.js +3 -2
- package/lib/features/command-palette/server-command-palette-provider.js.map +1 -1
- package/lib/features/context-menu/context-menu-module.d.ts.map +1 -1
- package/lib/features/context-menu/context-menu-module.js +8 -8
- package/lib/features/context-menu/context-menu-module.js.map +1 -1
- package/lib/features/context-menu/{selection-service-aware-context-menu-mouse-listener.d.ts → glsp-context-menu-mouse-listener.d.ts} +1 -1
- package/lib/features/context-menu/glsp-context-menu-mouse-listener.d.ts.map +1 -0
- package/lib/features/context-menu/{selection-service-aware-context-menu-mouse-listener.js → glsp-context-menu-mouse-listener.js} +1 -1
- package/lib/features/context-menu/glsp-context-menu-mouse-listener.js.map +1 -0
- package/lib/features/context-menu/server-context-menu-provider.d.ts +1 -1
- package/lib/features/context-menu/server-context-menu-provider.d.ts.map +1 -1
- package/lib/features/context-menu/server-context-menu-provider.js +3 -2
- package/lib/features/context-menu/server-context-menu-provider.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.js +1 -4
- package/lib/features/copy-paste/copy-paste-context-menu.js.map +1 -1
- package/lib/features/hints/type-hint-provider.d.ts +81 -0
- package/lib/features/hints/type-hint-provider.d.ts.map +1 -0
- package/lib/features/hints/{type-hints.js → type-hint-provider.js} +73 -60
- package/lib/features/hints/type-hint-provider.js.map +1 -0
- package/lib/features/hints/type-hint-provider.spec.d.ts +2 -0
- package/lib/features/hints/type-hint-provider.spec.d.ts.map +1 -0
- package/lib/features/hints/type-hint-provider.spec.js +332 -0
- package/lib/features/hints/type-hint-provider.spec.js.map +1 -0
- package/lib/features/hints/type-hints-module.js +5 -5
- package/lib/features/hints/type-hints-module.js.map +1 -1
- package/lib/features/hover/hover-module.d.ts.map +1 -1
- package/lib/features/hover/hover-module.js +3 -2
- package/lib/features/hover/hover-module.js.map +1 -1
- package/lib/features/hover/hover.d.ts.map +1 -1
- package/lib/features/hover/hover.js +3 -2
- package/lib/features/hover/hover.js.map +1 -1
- package/lib/features/label-edit/edit-label-tool.d.ts +2 -2
- package/lib/features/label-edit/edit-label-tool.d.ts.map +1 -1
- package/lib/features/label-edit/edit-label-tool.js +2 -2
- package/lib/features/label-edit/edit-label-tool.js.map +1 -1
- package/lib/features/label-edit/edit-label-validator.d.ts.map +1 -1
- package/lib/features/label-edit/edit-label-validator.js +3 -2
- package/lib/features/label-edit/edit-label-validator.js.map +1 -1
- package/lib/features/navigation/navigation-action-handler.d.ts.map +1 -1
- package/lib/features/navigation/navigation-action-handler.js +1 -4
- package/lib/features/navigation/navigation-action-handler.js.map +1 -1
- package/lib/features/source-model-watcher/source-model-changed-action-handler.d.ts.map +1 -1
- package/lib/features/source-model-watcher/source-model-changed-action-handler.js +1 -4
- package/lib/features/source-model-watcher/source-model-changed-action-handler.js.map +1 -1
- package/lib/features/status/status-module.d.ts.map +1 -1
- package/lib/features/status/status-module.js +1 -1
- package/lib/features/status/status-module.js.map +1 -1
- package/lib/features/status/status-overlay.d.ts +4 -4
- package/lib/features/status/status-overlay.d.ts.map +1 -1
- package/lib/features/status/status-overlay.js +2 -2
- package/lib/features/status/status-overlay.js.map +1 -1
- package/lib/features/tool-palette/tool-palette-module.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette-module.js +2 -1
- package/lib/features/tool-palette/tool-palette-module.js.map +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts +6 -6
- package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette.js +6 -8
- package/lib/features/tool-palette/tool-palette.js.map +1 -1
- package/lib/features/tools/{base-glsp-tool.d.ts → base-tools.d.ts} +16 -5
- package/lib/features/tools/base-tools.d.ts.map +1 -0
- package/lib/features/tools/{base-glsp-tool.js → base-tools.js} +33 -11
- package/lib/features/tools/base-tools.js.map +1 -0
- package/lib/features/tools/change-bounds/change-bounds-tool.d.ts +2 -2
- package/lib/features/tools/change-bounds/change-bounds-tool.d.ts.map +1 -1
- package/lib/features/tools/change-bounds/change-bounds-tool.js +2 -2
- package/lib/features/tools/change-bounds/change-bounds-tool.js.map +1 -1
- package/lib/features/tools/deletion/delete-tool.d.ts +4 -4
- package/lib/features/tools/deletion/delete-tool.d.ts.map +1 -1
- package/lib/features/tools/deletion/delete-tool.js +4 -3
- package/lib/features/tools/deletion/delete-tool.js.map +1 -1
- package/lib/features/tools/edge-creation/edge-creation-tool.d.ts +12 -5
- package/lib/features/tools/edge-creation/edge-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-creation/edge-creation-tool.js +71 -28
- package/lib/features/tools/edge-creation/edge-creation-tool.js.map +1 -1
- package/lib/features/tools/edge-edit/edge-edit-tool.d.ts +2 -2
- package/lib/features/tools/edge-edit/edge-edit-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-edit/edge-edit-tool.js +2 -2
- package/lib/features/tools/edge-edit/edge-edit-tool.js.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-mouse-tool.d.ts +2 -2
- package/lib/features/tools/marquee-selection/marquee-mouse-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-mouse-tool.js +5 -4
- package/lib/features/tools/marquee-selection/marquee-mouse-tool.js.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-tool.d.ts +2 -2
- package/lib/features/tools/marquee-selection/marquee-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-tool.js +4 -3
- package/lib/features/tools/marquee-selection/marquee-tool.js.map +1 -1
- package/lib/features/tools/node-creation/node-creation-tool.d.ts +2 -2
- package/lib/features/tools/node-creation/node-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/node-creation/node-creation-tool.js +7 -3
- package/lib/features/tools/node-creation/node-creation-tool.js.map +1 -1
- package/lib/features/tools/tool-focus-loss-module.d.ts.map +1 -1
- package/lib/features/tools/tool-focus-loss-module.js +2 -1
- package/lib/features/tools/tool-focus-loss-module.js.map +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.d.ts.map +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.js +3 -2
- package/lib/features/viewport/glsp-scroll-mouse-listener.js.map +1 -1
- package/lib/features/viewport/viewport-handler.d.ts +29 -0
- package/lib/features/viewport/viewport-handler.d.ts.map +1 -0
- package/lib/features/viewport/viewport-handler.js +79 -0
- package/lib/features/viewport/viewport-handler.js.map +1 -0
- package/lib/features/viewport/viewport-modules.d.ts.map +1 -1
- package/lib/features/viewport/viewport-modules.js +8 -2
- package/lib/features/viewport/viewport-modules.js.map +1 -1
- package/lib/glsp-sprotty/augmented-actions.d.ts +2 -10
- package/lib/glsp-sprotty/augmented-actions.d.ts.map +1 -1
- package/lib/glsp-sprotty/augmented-actions.js +2 -6
- package/lib/glsp-sprotty/augmented-actions.js.map +1 -1
- package/lib/glsp-sprotty/index.d.ts +3 -6
- package/lib/glsp-sprotty/index.d.ts.map +1 -1
- package/lib/glsp-sprotty/index.js +4 -7
- package/lib/glsp-sprotty/index.js.map +1 -1
- package/lib/glsp-sprotty/types.d.ts +2 -95
- package/lib/glsp-sprotty/types.d.ts.map +1 -1
- package/lib/glsp-sprotty/types.js +2 -8
- package/lib/glsp-sprotty/types.js.map +1 -1
- package/lib/index.d.ts +13 -11
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +13 -11
- package/lib/index.js.map +1 -1
- package/lib/standalone-modules.js +1 -1
- package/lib/standalone-modules.js.map +1 -1
- package/lib/utils/smodel-util.d.ts +0 -5
- package/lib/utils/smodel-util.d.ts.map +1 -1
- package/lib/utils/smodel-util.js +2 -11
- package/lib/utils/smodel-util.js.map +1 -1
- package/lib/utils/viewpoint-util.d.ts +1 -0
- package/lib/utils/viewpoint-util.d.ts.map +1 -1
- package/lib/utils/viewpoint-util.js +8 -4
- package/lib/utils/viewpoint-util.js.map +1 -1
- package/lib/views/base-view-module.d.ts.map +1 -1
- package/lib/views/base-view-module.js +2 -1
- package/lib/views/base-view-module.js.map +1 -1
- package/package.json +4 -4
- package/src/base/action-dispatcher.spec.ts +87 -0
- package/src/base/action-dispatcher.ts +24 -10
- package/src/{features/tools/base-glsp-creation-tool.ts → base/action-handler-registry.ts} +10 -20
- package/src/base/default.module.ts +16 -14
- package/src/base/editor-context-service.ts +0 -5
- package/src/base/feedback/css-feedback.ts +1 -0
- package/src/base/feedback/feedback-action-dispatcher.ts +5 -3
- package/src/base/focus/focus-tracker.ts +16 -5
- package/src/base/model/diagram-loader.ts +81 -31
- package/src/base/model/glsp-model-source.ts +73 -26
- package/src/base/model/model-initialization-constraint.spec.ts +95 -0
- package/src/base/{model-initialization-constraint.ts → model/model-initialization-constraint.ts} +43 -10
- package/src/base/selection-service.spec.ts +10 -9
- package/src/base/tool-manager/tool-manager.ts +183 -0
- package/src/base/tool-manager/tool.ts +85 -0
- package/src/default-modules.ts +1 -27
- package/src/features/accessibility/README.md +68 -8
- package/src/features/accessibility/accessibility-module.ts +5 -0
- package/src/features/accessibility/actions.ts +33 -0
- package/src/features/accessibility/edge-autocomplete/action.ts +34 -0
- package/src/features/accessibility/edge-autocomplete/edge-autocomplete-context.ts +24 -0
- package/src/features/accessibility/edge-autocomplete/edge-autocomplete-palette.ts +147 -0
- package/src/features/accessibility/edge-autocomplete/edge-autocomplete-tool.ts +56 -0
- package/src/features/accessibility/element-navigation/diagram-navigation-tool.ts +36 -40
- package/src/features/accessibility/focus-tracker/focus-tracker-tool.ts +6 -6
- package/src/features/accessibility/global-keylistener-tool.ts +98 -0
- package/src/features/accessibility/key-shortcut/accessible-key-shortcut-tool.ts +3 -3
- package/src/features/accessibility/keyboard-grid/action.ts +93 -0
- package/src/features/accessibility/keyboard-grid/constants.ts +24 -0
- package/src/features/accessibility/keyboard-grid/keyboard-grid-search-palette.ts +64 -0
- package/src/features/accessibility/keyboard-grid/keyboard-grid.ts +192 -0
- package/src/features/accessibility/keyboard-grid/keyboard-node-grid.ts +63 -0
- package/src/features/accessibility/keyboard-pointer/actions.ts +34 -0
- package/src/features/accessibility/keyboard-pointer/constants.ts +22 -0
- package/src/features/accessibility/keyboard-pointer/keyboard-pointer-listener.ts +125 -0
- package/src/features/accessibility/keyboard-pointer/keyboard-pointer-module.ts +63 -0
- package/src/features/accessibility/keyboard-pointer/keyboard-pointer-position.ts +78 -0
- package/src/features/accessibility/keyboard-pointer/keyboard-pointer.ts +120 -0
- package/src/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.ts +35 -0
- package/src/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.ts +505 -0
- package/src/features/accessibility/resize-key-tool/resize-key-tool.ts +16 -18
- package/src/features/accessibility/search/search-palette.ts +23 -1
- package/src/features/accessibility/search/search-tool.ts +8 -9
- package/src/features/accessibility/toast/messages.json +3 -1
- package/src/features/accessibility/view-key-tools/deselect-key-tool.ts +2 -2
- package/src/features/accessibility/view-key-tools/movement-key-tool.ts +8 -10
- package/src/features/accessibility/view-key-tools/view-key-tools-module.ts +5 -2
- package/src/features/accessibility/view-key-tools/zoom-key-tool.ts +101 -17
- package/src/features/autocomplete-palette/base-autocomplete-palette.ts +1 -1
- package/src/features/bounds/bounds-module.ts +2 -2
- package/src/features/command-palette/command-palette-tool.ts +2 -1
- package/src/features/command-palette/server-command-palette-provider.ts +3 -2
- package/src/features/context-menu/context-menu-module.ts +10 -11
- package/src/features/context-menu/server-context-menu-provider.ts +3 -2
- package/src/features/copy-paste/copy-paste-context-menu.ts +3 -6
- package/src/features/hints/type-hint-provider.spec.ts +356 -0
- package/src/features/hints/type-hint-provider.ts +248 -0
- package/src/features/hints/type-hints-module.ts +1 -1
- package/src/features/hover/hover-module.ts +1 -2
- package/src/features/hover/hover.ts +2 -3
- package/src/features/label-edit/edit-label-tool.ts +2 -2
- package/src/features/label-edit/edit-label-validator.ts +7 -6
- package/src/features/navigation/navigation-action-handler.ts +5 -8
- package/src/features/source-model-watcher/source-model-changed-action-handler.ts +3 -6
- package/src/features/status/status-module.ts +2 -2
- package/src/features/status/status-overlay.ts +5 -5
- package/src/features/tool-palette/tool-palette-module.ts +2 -1
- package/src/features/tool-palette/tool-palette.ts +11 -10
- package/src/features/tools/{base-glsp-tool.ts → base-tools.ts} +30 -4
- package/src/features/tools/change-bounds/change-bounds-tool.ts +2 -2
- package/src/features/tools/deletion/delete-tool.ts +4 -5
- package/src/features/tools/edge-creation/edge-creation-tool.ts +73 -27
- package/src/features/tools/edge-edit/edge-edit-tool.ts +2 -2
- package/src/features/tools/marquee-selection/marquee-mouse-tool.ts +3 -3
- package/src/features/tools/marquee-selection/marquee-tool.ts +4 -3
- package/src/features/tools/node-creation/node-creation-tool.ts +7 -3
- package/src/features/tools/tool-focus-loss-module.ts +2 -1
- package/src/features/viewport/glsp-scroll-mouse-listener.ts +2 -9
- package/src/features/viewport/viewport-handler.ts +67 -0
- package/src/features/viewport/viewport-modules.ts +7 -2
- package/src/glsp-sprotty/augmented-actions.ts +1 -16
- package/src/glsp-sprotty/index.ts +4 -7
- package/src/glsp-sprotty/types.ts +2 -8
- package/src/index.ts +13 -11
- package/src/standalone-modules.ts +2 -2
- package/src/utils/smodel-util.ts +2 -11
- package/src/utils/viewpoint-util.ts +5 -2
- package/src/views/base-view-module.ts +2 -2
- package/lib/base/model-initialization-constraint.d.ts.map +0 -1
- package/lib/base/model-initialization-constraint.js.map +0 -1
- package/lib/base/tool-manager/glsp-tool-manager.d.ts +0 -21
- package/lib/base/tool-manager/glsp-tool-manager.d.ts.map +0 -1
- package/lib/base/tool-manager/glsp-tool-manager.js +0 -113
- package/lib/base/tool-manager/glsp-tool-manager.js.map +0 -1
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.d.ts.map +0 -1
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.js.map +0 -1
- package/lib/features/hints/type-hints.d.ts +0 -45
- package/lib/features/hints/type-hints.d.ts.map +0 -1
- package/lib/features/hints/type-hints.js.map +0 -1
- package/lib/features/tools/base-glsp-creation-tool.d.ts +0 -10
- package/lib/features/tools/base-glsp-creation-tool.d.ts.map +0 -1
- package/lib/features/tools/base-glsp-creation-tool.js.map +0 -1
- package/lib/features/tools/base-glsp-tool.d.ts.map +0 -1
- package/lib/features/tools/base-glsp-tool.js.map +0 -1
- package/src/base/tool-manager/glsp-tool-manager.ts +0 -96
- package/src/features/hints/type-hints.ts +0 -220
- /package/src/features/context-menu/{selection-service-aware-context-menu-mouse-listener.ts → glsp-context-menu-mouse-listener.ts} +0 -0
package/css/glsp-sprotty.css
CHANGED
|
@@ -98,9 +98,6 @@
|
|
|
98
98
|
.sprotty-edge.selected {
|
|
99
99
|
stroke: #1d80d1;
|
|
100
100
|
stroke-width: 1.5px;
|
|
101
|
-
stroke-dashoffset: 5;
|
|
102
|
-
stroke-dasharray: 5, 5;
|
|
103
|
-
stroke-linecap: round;
|
|
104
101
|
}
|
|
105
102
|
|
|
106
103
|
.sprotty-edge.mouseover:not(.selected) .arrow,
|
|
@@ -134,6 +131,10 @@
|
|
|
134
131
|
cursor: crosshair;
|
|
135
132
|
}
|
|
136
133
|
|
|
134
|
+
.sprotty .edge-check-pending-mode {
|
|
135
|
+
cursor: wait;
|
|
136
|
+
}
|
|
137
|
+
|
|
137
138
|
.sprotty .move-mode {
|
|
138
139
|
cursor: move;
|
|
139
140
|
}
|
|
@@ -263,7 +264,7 @@
|
|
|
263
264
|
}
|
|
264
265
|
|
|
265
266
|
.search-hidden {
|
|
266
|
-
opacity: 0.
|
|
267
|
+
opacity: 0.4;
|
|
267
268
|
}
|
|
268
269
|
|
|
269
270
|
.search-highlighted .sprotty-node,
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 Business Informatics Group (TU Wien) and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
|
|
17
|
+
.accessibility-tool-palette.tool-palette {
|
|
18
|
+
top: 48px;
|
|
19
|
+
width: 240px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.accessibility-tool-palette .header-tools i {
|
|
23
|
+
margin-right: 0.5em;
|
|
24
|
+
position: relative;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.accessibility-tool-palette .tool-button .key-shortcut,
|
|
28
|
+
.accessibility-tool-palette .header-tools .key-shortcut {
|
|
29
|
+
display: none;
|
|
30
|
+
position: absolute;
|
|
31
|
+
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
width: 0.5rem;
|
|
34
|
+
height: 0.5rem;
|
|
35
|
+
padding: 0.5rem;
|
|
36
|
+
|
|
37
|
+
background: #fff;
|
|
38
|
+
border: 2px solid #666;
|
|
39
|
+
color: black;
|
|
40
|
+
text-align: center;
|
|
41
|
+
|
|
42
|
+
font: bold 0.8rem Arial, sans-serif;
|
|
43
|
+
line-height: 0.5rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.accessibility-tool-palette .tool-button .key-shortcut {
|
|
47
|
+
left: -2rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.accessibility-tool-palette .header-tools .key-shortcut {
|
|
51
|
+
top: -2.5rem;
|
|
52
|
+
right: -0.3rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.accessibility-show-shortcuts:focus-within .header-tools .key-shortcut,
|
|
56
|
+
.accessibility-show-shortcuts:focus-within .tool-button .key-shortcut {
|
|
57
|
+
display: block;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.accessibility-tool-palette.collapsible-palette {
|
|
61
|
+
overflow: visible;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.accessibility-tool-palette.collapsible-palette + .minimize-palette-button {
|
|
65
|
+
top: 50px;
|
|
66
|
+
}
|
package/css/keyboard.css
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 Business Informatics Group (TU Wien) and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
|
|
17
|
+
.grid-container {
|
|
18
|
+
display: grid;
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 0.5rem;
|
|
21
|
+
bottom: 0.5rem;
|
|
22
|
+
left: 0.5rem;
|
|
23
|
+
right: 0.5rem;
|
|
24
|
+
grid-template-columns: auto auto auto;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.grid-container:focus {
|
|
28
|
+
opacity: 1 !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.grid-item {
|
|
32
|
+
border: 1px solid rgba(0, 0, 0, 0.6);
|
|
33
|
+
padding: 1rem;
|
|
34
|
+
/* Fix overlapping borders */
|
|
35
|
+
margin: 0 -1px -1px 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.grid-item-number {
|
|
39
|
+
border-radius: 50%;
|
|
40
|
+
width: 1.5rem;
|
|
41
|
+
height: 1.5rem;
|
|
42
|
+
padding: 0.5rem;
|
|
43
|
+
|
|
44
|
+
background: #fff;
|
|
45
|
+
border: 2px solid #666;
|
|
46
|
+
color: black;
|
|
47
|
+
text-align: center;
|
|
48
|
+
|
|
49
|
+
font: bold 1.3rem Arial, sans-serif;
|
|
50
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Action, ActionDispatcher, RequestAction, ResponseAction } from '../glsp-sprotty/index';
|
|
3
|
-
import { ModelInitializationConstraint } from './model-initialization-constraint';
|
|
3
|
+
import { ModelInitializationConstraint } from './model/model-initialization-constraint';
|
|
4
4
|
export declare class GLSPActionDispatcher extends ActionDispatcher {
|
|
5
5
|
protected readonly timeouts: Map<string, NodeJS.Timeout>;
|
|
6
6
|
protected initializedConstraint: boolean;
|
|
@@ -9,6 +9,12 @@ export declare class GLSPActionDispatcher extends ActionDispatcher {
|
|
|
9
9
|
startModelInitialization(): void;
|
|
10
10
|
onceModelInitialized(): Promise<void>;
|
|
11
11
|
hasHandler(action: Action): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Processes all given actions, by dispatching them to the corresponding handlers, after the model initialization is completed.
|
|
14
|
+
*
|
|
15
|
+
* @param actions The actions that should be dispatched after the model initialization
|
|
16
|
+
*/
|
|
17
|
+
dispatchOnceModelInitialized(...actions: Action[]): void;
|
|
12
18
|
dispatch(action: Action): Promise<void>;
|
|
13
19
|
protected handleAction(action: Action): Promise<void>;
|
|
14
20
|
request<Res extends ResponseAction>(action: RequestAction<Res>): Promise<Res>;
|
|
@@ -22,6 +28,6 @@ export declare class GLSPActionDispatcher extends ActionDispatcher {
|
|
|
22
28
|
* If `rejectOnTimeout` is set to false (default) the returned promise will be resolved with
|
|
23
29
|
* no value, otherwise it will be rejected.
|
|
24
30
|
*/
|
|
25
|
-
requestUntil<Res extends ResponseAction>(action: RequestAction<Res>, timeoutMs?: number, rejectOnTimeout?: boolean): Promise<Res>;
|
|
31
|
+
requestUntil<Res extends ResponseAction>(action: RequestAction<Res>, timeoutMs?: number, rejectOnTimeout?: boolean): Promise<Res | undefined>;
|
|
26
32
|
}
|
|
27
33
|
//# sourceMappingURL=action-dispatcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-dispatcher.d.ts","sourceRoot":"","sources":["../../src/base/action-dispatcher.ts"],"names":[],"mappings":";AAgBA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,EAAE,6BAA6B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"action-dispatcher.d.ts","sourceRoot":"","sources":["../../src/base/action-dispatcher.ts"],"names":[],"mappings":";AAgBA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAExF,qBACa,oBAAqB,SAAQ,gBAAgB;IACtD,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAa;IACrE,SAAS,CAAC,qBAAqB,UAAS;IAGxC,SAAS,CAAC,wBAAwB,EAAE,6BAA6B,CAAC;IAEzD,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAIpC,wBAAwB,IAAI,IAAI;IAQhC,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAInC;;;;OAIG;IACH,4BAA4B,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI;IAIzC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;cAMnC,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBrD,OAAO,CAAC,GAAG,SAAS,cAAc,EAAE,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC;IAQtF;;;;;;;;;OASG;IACH,YAAY,CAAC,GAAG,SAAS,cAAc,EACnC,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,EAC1B,SAAS,SAAO,EAChB,eAAe,UAAQ,GACxB,OAAO,CAAC,GAAG,GAAG,SAAS,CAAC;CA2B9B"}
|
|
@@ -27,7 +27,7 @@ exports.GLSPActionDispatcher = void 0;
|
|
|
27
27
|
********************************************************************************/
|
|
28
28
|
const inversify_1 = require("inversify");
|
|
29
29
|
const _glsp_sprotty_1 = require("../glsp-sprotty/index");
|
|
30
|
-
const model_initialization_constraint_1 = require("./model-initialization-constraint");
|
|
30
|
+
const model_initialization_constraint_1 = require("./model/model-initialization-constraint");
|
|
31
31
|
let GLSPActionDispatcher = exports.GLSPActionDispatcher = class GLSPActionDispatcher extends _glsp_sprotty_1.ActionDispatcher {
|
|
32
32
|
constructor() {
|
|
33
33
|
super(...arguments);
|
|
@@ -40,7 +40,7 @@ let GLSPActionDispatcher = exports.GLSPActionDispatcher = class GLSPActionDispat
|
|
|
40
40
|
startModelInitialization() {
|
|
41
41
|
if (!this.initializedConstraint) {
|
|
42
42
|
this.logger.log(this, 'Starting model initialization mode');
|
|
43
|
-
this.initializationConstraint.onInitialized(
|
|
43
|
+
this.initializationConstraint.onInitialized(() => this.logger.log(this, 'Model initialization completed'));
|
|
44
44
|
this.initializedConstraint = true;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -50,8 +50,16 @@ let GLSPActionDispatcher = exports.GLSPActionDispatcher = class GLSPActionDispat
|
|
|
50
50
|
hasHandler(action) {
|
|
51
51
|
return this.actionHandlerRegistry.get(action.kind).length > 0;
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Processes all given actions, by dispatching them to the corresponding handlers, after the model initialization is completed.
|
|
55
|
+
*
|
|
56
|
+
* @param actions The actions that should be dispatched after the model initialization
|
|
57
|
+
*/
|
|
58
|
+
dispatchOnceModelInitialized(...actions) {
|
|
59
|
+
this.initializationConstraint.onInitialized(() => this.dispatchAll(actions));
|
|
60
|
+
}
|
|
61
|
+
async dispatch(action) {
|
|
62
|
+
const result = await super.dispatch(action);
|
|
55
63
|
this.initializationConstraint.notifyDispatched(action);
|
|
56
64
|
return result;
|
|
57
65
|
}
|
|
@@ -63,11 +71,11 @@ let GLSPActionDispatcher = exports.GLSPActionDispatcher = class GLSPActionDispat
|
|
|
63
71
|
clearTimeout(timeout);
|
|
64
72
|
this.timeouts.delete(action.responseId);
|
|
65
73
|
}
|
|
66
|
-
// we
|
|
74
|
+
// Check if we have a pending request for the response.
|
|
75
|
+
// If not the we clear the responseId => action will be dispatched normally
|
|
67
76
|
const deferred = this.requests.get(action.responseId);
|
|
68
77
|
if (deferred === undefined) {
|
|
69
|
-
|
|
70
|
-
return Promise.resolve();
|
|
78
|
+
action.responseId = '';
|
|
71
79
|
}
|
|
72
80
|
}
|
|
73
81
|
return super.handleAction(action);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-dispatcher.js","sourceRoot":"","sources":["../../src/base/action-dispatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA+C;AAC/C,iDAAwF;AACxF,
|
|
1
|
+
{"version":3,"file":"action-dispatcher.js","sourceRoot":"","sources":["../../src/base/action-dispatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA+C;AAC/C,iDAAwF;AACxF,6FAAwF;AAGjF,IAAM,oBAAoB,kCAA1B,MAAM,oBAAqB,SAAQ,gCAAgB;IAAnD;;QACgB,aAAQ,GAAgC,IAAI,GAAG,EAAE,CAAC;QAC3D,0BAAqB,GAAG,KAAK,CAAC;IA4G5C,CAAC;IAvGY,UAAU;QACf,OAAO,KAAK,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,wBAAwB,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,wBAAwB;QACpB,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC7B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,oCAAoC,CAAC,CAAC;YAC5D,IAAI,CAAC,wBAAwB,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,gCAAgC,CAAC,CAAC,CAAC;YAC3G,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC;SACrC;IACL,CAAC;IAED,oBAAoB;QAChB,OAAO,IAAI,CAAC,wBAAwB,CAAC,aAAa,EAAE,CAAC;IACzD,CAAC;IAED,UAAU,CAAC,MAAc;QACrB,OAAO,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,MAAM,CAAC,IA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;8BACF,+DAA6B;sEAAC;+BALzD,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CA8GhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-dispatcher.spec.d.ts","sourceRoot":"","sources":["../../src/base/action-dispatcher.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/********************************************************************************
|
|
4
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
5
|
+
*
|
|
6
|
+
* This program and the accompanying materials are made available under the
|
|
7
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
8
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
9
|
+
*
|
|
10
|
+
* This Source Code may also be made available under the following Secondary
|
|
11
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
12
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
13
|
+
* with the GNU Classpath Exception which is available at
|
|
14
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
15
|
+
*
|
|
16
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
17
|
+
********************************************************************************/
|
|
18
|
+
const chai_1 = require("chai");
|
|
19
|
+
const inversify_1 = require("inversify");
|
|
20
|
+
const _glsp_sprotty_1 = require("../glsp-sprotty/index");
|
|
21
|
+
const action_dispatcher_1 = require("./action-dispatcher");
|
|
22
|
+
const default_module_1 = require("./default.module");
|
|
23
|
+
const container = new inversify_1.Container();
|
|
24
|
+
container.load(default_module_1.defaultModule);
|
|
25
|
+
container.bind(_glsp_sprotty_1.TYPES.IDiagramOptions).toConstantValue({
|
|
26
|
+
clientId: 'client1',
|
|
27
|
+
diagramType: 'diagramType',
|
|
28
|
+
glspClientProvider: async () => ({})
|
|
29
|
+
});
|
|
30
|
+
const registry = container.get(_glsp_sprotty_1.ActionHandlerRegistry);
|
|
31
|
+
const actionDispatcher = container.get(action_dispatcher_1.GLSPActionDispatcher);
|
|
32
|
+
let testHandlerDelay = 0;
|
|
33
|
+
const testHandler = {
|
|
34
|
+
handle: action => {
|
|
35
|
+
const request = action;
|
|
36
|
+
new Promise(resolve => setTimeout(resolve, testHandlerDelay)).then(() => actionDispatcher.dispatch({
|
|
37
|
+
kind: 'response',
|
|
38
|
+
responseId: request.requestId
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
registry.register('request', testHandler);
|
|
43
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
44
|
+
registry.register('response', { handle: () => { } });
|
|
45
|
+
actionDispatcher.initialize().then(() => {
|
|
46
|
+
actionDispatcher['blockUntil'] = undefined;
|
|
47
|
+
});
|
|
48
|
+
describe('GLSPActionDispatcher', () => {
|
|
49
|
+
describe('requestUntil', () => {
|
|
50
|
+
it('should resolve successfully if response dispatched within timeout', async () => {
|
|
51
|
+
testHandlerDelay = 15;
|
|
52
|
+
const requestAction = { kind: 'request', requestId: '' };
|
|
53
|
+
const response = await actionDispatcher.requestUntil(requestAction, 150);
|
|
54
|
+
(0, chai_1.expect)(response === null || response === void 0 ? void 0 : response.responseId).to.be.equal(requestAction.requestId);
|
|
55
|
+
});
|
|
56
|
+
it('should resolve to `undefined` if no response dispatched within timeout & `rejectOnTimeout` flag is false', async () => {
|
|
57
|
+
testHandlerDelay = 30;
|
|
58
|
+
const requestAction = { kind: 'request', requestId: '' };
|
|
59
|
+
const response = await actionDispatcher.requestUntil(requestAction, 5);
|
|
60
|
+
(0, chai_1.expect)(response).to.be.undefined;
|
|
61
|
+
});
|
|
62
|
+
it('should be rejected if no response dispatched within timeout & `rejectOnTimeout` flag is true', async () => {
|
|
63
|
+
testHandlerDelay = 30;
|
|
64
|
+
const requestAction = { kind: 'request', requestId: '' };
|
|
65
|
+
const gotRejected = await actionDispatcher.requestUntil(requestAction, 5, true).then(() => false, () => true);
|
|
66
|
+
(0, chai_1.expect)(gotRejected, 'Response promise should be rejected').to.be.true;
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
describe('request & re-dispatch', () => {
|
|
70
|
+
it('should be possible to re-dispatch the response of a `request` call', async () => {
|
|
71
|
+
const requestAction = { kind: 'request', requestId: '' };
|
|
72
|
+
const response = await actionDispatcher.request(requestAction);
|
|
73
|
+
const dispatchSuccessful = await actionDispatcher.dispatch(response).then(() => true, err => false);
|
|
74
|
+
(0, chai_1.expect)(dispatchSuccessful, 'Promise of re-dispatch should resolve successfully').to.be.true;
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
//# sourceMappingURL=action-dispatcher.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-dispatcher.spec.js","sourceRoot":"","sources":["../../src/base/action-dispatcher.spec.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,+BAA8B;AAC9B,yCAAsC;AACtC,iDAA4G;AAE5G,2DAA2D;AAC3D,qDAAiD;AAEjD,MAAM,SAAS,GAAG,IAAI,qBAAS,EAAE,CAAC;AAClC,SAAS,CAAC,IAAI,CAAC,8BAAa,CAAC,CAAC;AAC9B,SAAS,CAAC,IAAI,CAAC,qBAAK,CAAC,eAAe,CAAC,CAAC,eAAe,CAA4B;IAC7E,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,aAAa;IAC1B,kBAAkB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,EAAU,CAAA;CAC7C,CAAC,CAAC;AACJ,MAAM,QAAQ,GAAG,SAAS,CAAC,GAAG,CAAC,qCAAqB,CAAC,CAAC;AACtD,MAAM,gBAAgB,GAAG,SAAS,CAAC,GAAG,CAAC,wCAAoB,CAAC,CAAC;AAE7D,IAAI,gBAAgB,GAAG,CAAC,CAAC;AACzB,MAAM,WAAW,GAAmB;IAChC,MAAM,EAAE,MAAM,CAAC,EAAE;Q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EAAE,CAAC,IAAI,CAAC;QAChG,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
import { ActionHandlerRegistry } from '../glsp-sprotty/index';
|
|
17
|
+
export declare class GLSPActionHandlerRegistry extends ActionHandlerRegistry {
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve a set of all action kinds for which (at least) one
|
|
20
|
+
* handler is registered
|
|
21
|
+
* @returns the set of handled action kinds
|
|
22
|
+
*/
|
|
23
|
+
getHandledActionKinds(): string[];
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=action-handler-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-handler-registry.d.ts","sourceRoot":"","sources":["../../src/base/action-handler-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAGlF,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,qBACa,yBAA0B,SAAQ,qBAAqB;IAChE;;;;OAIG;IACH,qBAAqB,IAAI,MAAM,EAAE;CAGpC"}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.BaseGLSPCreationTool = void 0;
|
|
10
2
|
/********************************************************************************
|
|
11
3
|
* Copyright (c) 2023 EclipseSource and others.
|
|
12
4
|
*
|
|
@@ -22,24 +14,27 @@ exports.BaseGLSPCreationTool = void 0;
|
|
|
22
14
|
*
|
|
23
15
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
24
16
|
********************************************************************************/
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.GLSPActionHandlerRegistry = void 0;
|
|
25
25
|
const inversify_1 = require("inversify");
|
|
26
|
-
const _glsp_sprotty_1 = require("
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
enable() {
|
|
36
|
-
if (this.triggerAction === undefined) {
|
|
37
|
-
throw new TypeError(`Could not enable tool ${this.id}. The triggerAction cannot be undefined.`);
|
|
38
|
-
}
|
|
39
|
-
this.doEnable();
|
|
26
|
+
const _glsp_sprotty_1 = require("../glsp-sprotty/index");
|
|
27
|
+
let GLSPActionHandlerRegistry = exports.GLSPActionHandlerRegistry = class GLSPActionHandlerRegistry extends _glsp_sprotty_1.ActionHandlerRegistry {
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a set of all action kinds for which (at least) one
|
|
30
|
+
* handler is registered
|
|
31
|
+
* @returns the set of handled action kinds
|
|
32
|
+
*/
|
|
33
|
+
getHandledActionKinds() {
|
|
34
|
+
return Array.from(this.elements.keys());
|
|
40
35
|
}
|
|
41
36
|
};
|
|
42
|
-
exports.
|
|
37
|
+
exports.GLSPActionHandlerRegistry = GLSPActionHandlerRegistry = __decorate([
|
|
43
38
|
(0, inversify_1.injectable)()
|
|
44
|
-
],
|
|
45
|
-
//# sourceMappingURL=
|
|
39
|
+
], GLSPActionHandlerRegistry);
|
|
40
|
+
//# sourceMappingURL=action-handler-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-handler-registry.js","sourceRoot":"","sources":["../../src/base/action-handler-registry.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;AAElF,yCAAuC;AACvC,iDAAsD;AAG/C,IAAM,yBAAyB,uCAA/B,MAAM,yBAA0B,SAAQ,qCAAqB;IAChE;;;;OAIG;IACH,qBAAqB;QACjB,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IAC5C,CAAC;CACJ,CAAA;oCATY,yBAAyB;IADrC,IAAA,sBAAU,GAAE;GACA,yBAAyB,CASrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.module.d.ts","sourceRoot":"","sources":["../../src/base/default.module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,mCAAmC,CAAC;AAC3C,OAAO,
|
|
1
|
+
{"version":3,"file":"default.module.d.ts","sourceRoot":"","sources":["../../src/base/default.module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,mCAAmC,CAAC;AAC3C,OAAO,EAEH,aAAa,EAahB,MAAM,eAAe,CAAC;AACvB,OAAO,4BAA4B,CAAC;AAsBpC;;;GAGG;AACH,eAAO,MAAM,aAAa,eA0DxB,CAAC"}
|
|
@@ -20,6 +20,7 @@ require("@vscode/codicons/dist/codicon.css");
|
|
|
20
20
|
const _glsp_sprotty_1 = require("../glsp-sprotty/index");
|
|
21
21
|
require("../../css/glsp-sprotty.css");
|
|
22
22
|
const action_dispatcher_1 = require("./action-dispatcher");
|
|
23
|
+
const action_handler_registry_1 = require("./action-handler-registry");
|
|
23
24
|
const command_stack_1 = require("./command-stack");
|
|
24
25
|
const editor_context_service_1 = require("./editor-context-service");
|
|
25
26
|
const css_feedback_1 = require("./feedback/css-feedback");
|
|
@@ -27,13 +28,14 @@ const feedback_action_dispatcher_1 = require("./feedback/feedback-action-dispatc
|
|
|
27
28
|
const update_model_command_1 = require("./feedback/update-model-command");
|
|
28
29
|
const focus_state_change_action_1 = require("./focus/focus-state-change-action");
|
|
29
30
|
const focus_tracker_1 = require("./focus/focus-tracker");
|
|
30
|
-
const model_initialization_constraint_1 = require("./model-initialization-constraint");
|
|
31
31
|
const diagram_loader_1 = require("./model/diagram-loader");
|
|
32
32
|
const glsp_model_source_1 = require("./model/glsp-model-source");
|
|
33
|
+
const model_initialization_constraint_1 = require("./model/model-initialization-constraint");
|
|
33
34
|
const model_registry_1 = require("./model/model-registry");
|
|
34
35
|
const selection_clearing_mouse_listener_1 = require("./selection-clearing-mouse-listener");
|
|
35
36
|
const selection_service_1 = require("./selection-service");
|
|
36
|
-
const
|
|
37
|
+
const tool_1 = require("./tool-manager/tool");
|
|
38
|
+
const tool_manager_1 = require("./tool-manager/tool-manager");
|
|
37
39
|
const key_tool_1 = require("./view/key-tool");
|
|
38
40
|
const mouse_tool_1 = require("./view/mouse-tool");
|
|
39
41
|
const view_registry_1 = require("./view/view-registry");
|
|
@@ -46,14 +48,7 @@ exports.defaultModule = new _glsp_sprotty_1.FeatureModule((bind, unbind, isBound
|
|
|
46
48
|
_glsp_sprotty_1.sprottyDefaultModule.registry(bind, unbind, isBound, rebind, ...rest);
|
|
47
49
|
const context = { bind, unbind, isBound, rebind };
|
|
48
50
|
bind(editor_context_service_1.EditorContextService).toSelf().inSingletonScope();
|
|
49
|
-
bind(_glsp_sprotty_1.TYPES.IEditorContextServiceProvider).toProvider(ctx => () =>
|
|
50
|
-
if (ctx.container.isBound(editor_context_service_1.EditorContextService)) {
|
|
51
|
-
resolve(ctx.container.get(editor_context_service_1.EditorContextService));
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
reject();
|
|
55
|
-
}
|
|
56
|
-
}));
|
|
51
|
+
bind(_glsp_sprotty_1.TYPES.IEditorContextServiceProvider).toProvider(ctx => async () => ctx.container.get(editor_context_service_1.EditorContextService));
|
|
57
52
|
(0, _glsp_sprotty_1.configureActionHandler)(context, _glsp_sprotty_1.SetEditModeAction.KIND, editor_context_service_1.EditorContextService);
|
|
58
53
|
(0, _glsp_sprotty_1.configureActionHandler)(context, _glsp_sprotty_1.SetDirtyStateAction.KIND, editor_context_service_1.EditorContextService);
|
|
59
54
|
bind(focus_tracker_1.FocusTracker).toSelf().inSingletonScope();
|
|
@@ -67,10 +62,10 @@ exports.defaultModule = new _glsp_sprotty_1.FeatureModule((bind, unbind, isBound
|
|
|
67
62
|
(0, _glsp_sprotty_1.bindOrRebind)(context, _glsp_sprotty_1.KeyTool).toService(key_tool_1.GLSPKeyTool);
|
|
68
63
|
(0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.MouseListener, selection_clearing_mouse_listener_1.SelectionClearingMouseListener);
|
|
69
64
|
(0, _glsp_sprotty_1.bindOrRebind)(context, _glsp_sprotty_1.TYPES.ICommandStack).to(command_stack_1.GLSPCommandStack).inSingletonScope();
|
|
70
|
-
bind(glsp_tool_manager_1.GLSPToolManager).toSelf().inSingletonScope();
|
|
71
|
-
(0, _glsp_sprotty_1.bindOrRebind)(context, _glsp_sprotty_1.TYPES.IToolManager).toService(glsp_tool_manager_1.GLSPToolManager);
|
|
72
65
|
bind(action_dispatcher_1.GLSPActionDispatcher).toSelf().inSingletonScope();
|
|
73
66
|
(0, _glsp_sprotty_1.bindOrRebind)(context, _glsp_sprotty_1.TYPES.IActionDispatcher).toService(action_dispatcher_1.GLSPActionDispatcher);
|
|
67
|
+
bind(action_handler_registry_1.GLSPActionHandlerRegistry).toSelf().inSingletonScope();
|
|
68
|
+
(0, _glsp_sprotty_1.bindOrRebind)(context, _glsp_sprotty_1.ActionHandlerRegistry).toService(action_handler_registry_1.GLSPActionHandlerRegistry);
|
|
74
69
|
(0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.ModelSource, glsp_model_source_1.GLSPModelSource);
|
|
75
70
|
bind(diagram_loader_1.DiagramLoader).toSelf().inSingletonScope();
|
|
76
71
|
bind(model_initialization_constraint_1.ModelInitializationConstraint).to(model_initialization_constraint_1.DefaultModelInitializationConstraint).inSingletonScope();
|
|
@@ -86,5 +81,12 @@ exports.defaultModule = new _glsp_sprotty_1.FeatureModule((bind, unbind, isBound
|
|
|
86
81
|
(0, _glsp_sprotty_1.configureCommand)(context, _glsp_sprotty_1.MoveCommand);
|
|
87
82
|
(0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.IVNodePostprocessor, _glsp_sprotty_1.LocationPostprocessor);
|
|
88
83
|
bind(_glsp_sprotty_1.TYPES.HiddenVNodePostprocessor).toService(_glsp_sprotty_1.LocationPostprocessor);
|
|
84
|
+
// Tool manager initialization ------------------------------------
|
|
85
|
+
bind(_glsp_sprotty_1.TYPES.IToolManager).to(tool_manager_1.ToolManager).inSingletonScope();
|
|
86
|
+
bind(tool_manager_1.DefaultToolsEnablingKeyListener).toSelf().inSingletonScope();
|
|
87
|
+
bind(_glsp_sprotty_1.TYPES.KeyListener).toService(tool_manager_1.DefaultToolsEnablingKeyListener);
|
|
88
|
+
bind(tool_manager_1.ToolManagerActionHandler).toSelf().inSingletonScope();
|
|
89
|
+
(0, _glsp_sprotty_1.configureActionHandler)(context, tool_1.EnableDefaultToolsAction.KIND, tool_manager_1.ToolManagerActionHandler);
|
|
90
|
+
(0, _glsp_sprotty_1.configureActionHandler)(context, tool_1.EnableToolsAction.KIND, tool_manager_1.ToolManagerActionHandler);
|
|
89
91
|
});
|
|
90
92
|
//# sourceMappingURL=default.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.module.js","sourceRoot":"","sources":["../../src/base/default.module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,6CAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"default.module.js","sourceRoot":"","sources":["../../src/base/default.module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,6CAA2C;AAC3C,iDAeuB;AACvB,sCAAoC;AACpC,2DAA2D;AAC3D,uEAAsE;AACtE,mDAAmD;AACnD,qEAAgE;AAChE,0DAAmE;AACnE,sFAAiF;AACjF,0EAAkF;AAClF,iFAA4E;AAC5E,yDAAqD;AACrD,2DAAuD;AACvD,iEAA4D;AAC5D,6FAA8H;AAC9H,2DAA2D;AAC3D,2FAAqF;AACrF,2DAAuD;AACvD,8CAAkF;AAClF,8DAAqH;AACrH,8CAA8C;AAC9C,kDAAkD;AAClD,wDAAwD;AAExD;;;GAGG;AACU,QAAA,aAAa,GAAG,IAAI,6BAAa,CAA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AC,oCAAgB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACnD,IAAI,CAAC,qBAAK,CAAC,mBAAmB,CAAC,CAAC,SAAS,CAAC,oCAAgB,CAAC,CAAC;IAE5D,wDAAwD;IACxD,mDAAmD;IACnD,IAAA,gCAAgB,EAAC,OAAO,EAAE,uCAAwB,CAAC,CAAC;IACpD,wEAAwE;IACxE,IAAA,gCAAgB,EAAC,OAAO,EAAE,2BAAW,CAAC,CAAC;IAEvC,IAAA,6BAAa,EAAC,OAAO,EAAE,qBAAK,CAAC,mBAAmB,EAAE,qCAAqB,CAAC,CAAC;IACzE,IAAI,CAAC,qBAAK,CAAC,wBAAwB,CAAC,CAAC,SAAS,CAAC,qCAAqB,CAAC,CAAC;IAEtE,mEAAmE;IACnE,IAAI,CAAC,qBAAK,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,0BAAW,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAC5D,IAAI,CAAC,8CAA+B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAClE,IAAI,CAAC,qBAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,8CAA+B,CAAC,CAAC;IACnE,IAAI,CAAC,uCAAwB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC3D,IAAA,sCAAsB,EAAC,OAAO,EAAE,+BAAwB,CAAC,IAAI,EAAE,uCAAwB,CAAC,CAAC;IACzF,IAAA,sCAAsB,EAAC,OAAO,EAAE,wBAAiB,CAAC,IAAI,EAAE,uCAAwB,CAAC,CAAC;AACtF,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Action, Args, Disposable, DisposableCollection, EditorContext, Emitter, Event,
|
|
1
|
+
import { Action, Args, Disposable, DisposableCollection, EditorContext, Emitter, Event, IActionHandler, MaybePromise, MousePositionTracker, SModelElement, SModelRoot, SetDirtyStateAction, SetEditModeAction, ValueChange } from '../glsp-sprotty/index';
|
|
2
2
|
import { GLSPActionDispatcher } from './action-dispatcher';
|
|
3
3
|
import { IDiagramOptions, IDiagramStartup } from './model/diagram-loader';
|
|
4
4
|
import { SelectionService } from './selection-service';
|
|
@@ -42,7 +42,6 @@ export declare class EditorContextService implements IActionHandler, Disposable,
|
|
|
42
42
|
get editMode(): string;
|
|
43
43
|
get diagramType(): string;
|
|
44
44
|
get clientId(): string;
|
|
45
|
-
get glspClient(): GLSPClient;
|
|
46
45
|
get modelRoot(): Readonly<SModelRoot>;
|
|
47
46
|
get selectedElements(): Readonly<SModelElement>[];
|
|
48
47
|
get isReadonly(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-context-service.d.ts","sourceRoot":"","sources":["../../src/base/editor-context-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,MAAM,EACN,IAAI,EACJ,UAAU,EACV,oBAAoB,EAEpB,aAAa,EACb,OAAO,EACP,KAAK,EACL,
|
|
1
|
+
{"version":3,"file":"editor-context-service.d.ts","sourceRoot":"","sources":["../../src/base/editor-context-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,MAAM,EACN,IAAI,EACJ,UAAU,EACV,oBAAoB,EAEpB,aAAa,EACb,OAAO,EACP,KAAK,EACL,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,UAAU,EACV,mBAAmB,EACnB,iBAAiB,EAEjB,WAAW,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,WAAW,iBAAiB;IAC9B,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7D;AAED,MAAM,MAAM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IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,SAAS,IAAI,QAAQ,CAAC,UAAU,CAAC,CAEpC;IAED,IAAI,gBAAgB,IAAI,QAAQ,CAAC,aAAa,CAAC,EAAE,CAEhD;IAED,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,gBAAgB,IAAI,YAAY,CAAC,IAAI,CAAC;CAGzC;AAED,MAAM,MAAM,4BAA4B,GAAG,MAAM,OAAO,CAAC,oBAAoB,CAAC,CAAC"}
|
|
@@ -108,9 +108,6 @@ let EditorContextService = exports.EditorContextService = class EditorContextSer
|
|
|
108
108
|
get clientId() {
|
|
109
109
|
return this.diagramOptions.clientId;
|
|
110
110
|
}
|
|
111
|
-
get glspClient() {
|
|
112
|
-
return this.diagramOptions.glspClient;
|
|
113
|
-
}
|
|
114
111
|
get modelRoot() {
|
|
115
112
|
return this.selectionService.getModelRoot();
|
|
116
113
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-context-service.js","sourceRoot":"","sources":["../../src/base/editor-context-service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAiG;AACjG,
|
|
1
|
+
{"version":3,"file":"editor-context-service.js","sourceRoot":"","sources":["../../src/base/editor-context-service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAiG;AACjG,iDAkBuB;AACvB,2DAA2D;AAE3D,2DAAuD;AAOvD;;;;;;;;;;;GAWG;AAEI,IAAM,oBAAoB,kCAA1B,MAAM,oBAAoB;IAA1B;QAYO,sBAAiB,GAAwB,EAAE,CAAC;QAM5C,6BAAwB,GAAG,IAAI,uBAAO,EAAuB,CAAC;QAM9D,+BAA0B,GAAG,IAAI,uBAAO,EAAoB,CAAC;QAK7D,cAAS,GAAG,IAAI,oCAAoB,EAAE,CAAC;IAwFrD,CAAC;IA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CAAC,QAAQ,CAAC,iCAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5E,CAAC;CACJ,CAAA;AAnHa;IADT,IAAA,kBAAM,EAAC,oCAAgB,CAAC;8BACG,oCAAgB;8DAAC;AAGnC;IADT,IAAA,kBAAM,EAAC,oCAAoB,CAAC;8BACG,oCAAoB;kEAAC;AAG3C;IADT,IAAA,kBAAM,EAAC,qBAAK,CAAC,eAAe,CAAC;;4DACY;AAIhC;IAFT,IAAA,uBAAW,EAAC,qBAAK,CAAC,iBAAiB,CAAC;IACpC,IAAA,oBAAQ,GAAE;;+DAC2C;AAG5C;IADT,IAAA,kBAAM,EAAC,wCAAoB,CAAC;8BACD,wCAAoB;8DAAC;AAiBvC;IADT,IAAA,yBAAa,GAAE;;;;sDAOf;AAGD;IADC,IAAA,sBAAU,GAAE;;;;mDAGZ;+BA3CQ,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CAqHhC"}
|
|
@@ -28,6 +28,7 @@ export declare enum CursorCSS {
|
|
|
28
28
|
EDGE_CREATION_SOURCE = "edge-creation-select-source-mode",
|
|
29
29
|
EDGE_CREATION_TARGET = "edge-creation-select-target-mode",
|
|
30
30
|
EDGE_RECONNECT = "edge-reconnect-select-target-mode",
|
|
31
|
+
EDGE_CHECK_PENDING = "edge-check-pending-mode",
|
|
31
32
|
OPERATION_NOT_ALLOWED = "edge-modification-not-allowed-mode",
|
|
32
33
|
ELEMENT_DELETION = "element-deletion-mode",
|
|
33
34
|
RESIZE_NESW = "resize-nesw-mode",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css-feedback.d.ts","sourceRoot":"","sources":["../../../src/base/feedback/css-feedback.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,MAAM,EAAE,uBAAuB,EAAE,aAAa,EAAE,UAAU,EAAuB,MAAM,eAAe,CAAC;AAEhH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAo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C,oBAAoB,qCAAqC;IACzD,oBAAoB,qCAAqC;IACzD,cAAc,sCAAsC;IACpD,kBAAkB,4BAA4B;IAC9C,qBAAqB,uCAAuC;IAC5D,gBAAgB,0BAA0B;IAC1C,WAAW,qBAAqB;IAChC,WAAW,qBAAqB;IAChC,IAAI,cAAc;IAClB,OAAO,iBAAiB;CAC3B;AAED,wBAAgB,oBAAoB,CAAC,SAAS,CAAC,EAAE,SAAS,GAAG,uBAAuB,CAMnF;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,GAAG,EAAE,MAAM,EAAE,GAAG,uBAAuB,CAEjG;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,uBAAuB,CAErG"}
|
|
@@ -89,6 +89,7 @@ var CursorCSS;
|
|
|
89
89
|
CursorCSS["EDGE_CREATION_SOURCE"] = "edge-creation-select-source-mode";
|
|
90
90
|
CursorCSS["EDGE_CREATION_TARGET"] = "edge-creation-select-target-mode";
|
|
91
91
|
CursorCSS["EDGE_RECONNECT"] = "edge-reconnect-select-target-mode";
|
|
92
|
+
CursorCSS["EDGE_CHECK_PENDING"] = "edge-check-pending-mode";
|
|
92
93
|
CursorCSS["OPERATION_NOT_ALLOWED"] = "edge-modification-not-allowed-mode";
|
|
93
94
|
CursorCSS["ELEMENT_DELETION"] = "element-deletion-mode";
|
|
94
95
|
CursorCSS["RESIZE_NESW"] = "resize-nesw-mode";
|