@eclipse-glsp/client 0.9.0-next.d2f88f00 → 0.9.0-next.d3c64530
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 +642 -277
- package/README.md +2 -1
- package/css/command-palette.css +9 -5
- package/css/decoration.css +3 -2
- package/css/glsp-sprotty.css +16 -7
- package/css/tool-palette.css +44 -27
- package/lib/base/action-dispatcher.d.ts +17 -1
- package/lib/base/action-dispatcher.d.ts.map +1 -1
- package/lib/base/action-dispatcher.js +41 -61
- package/lib/base/action-dispatcher.js.map +1 -1
- package/lib/base/actions/focus-change-action.d.ts +1 -1
- package/lib/base/actions/focus-change-action.d.ts.map +1 -1
- package/lib/base/actions/focus-change-action.js +4 -5
- package/lib/base/actions/focus-change-action.js.map +1 -1
- package/lib/base/{args.d.ts → argumentable.d.ts} +3 -5
- package/lib/base/argumentable.d.ts.map +1 -0
- package/lib/base/{args.js → argumentable.js} +1 -1
- package/lib/base/argumentable.js.map +1 -0
- package/lib/base/auto-complete/auto-complete-actions.d.ts +1 -1
- package/lib/base/auto-complete/auto-complete-actions.d.ts.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.d.ts +3 -3
- package/lib/base/auto-complete/auto-complete-widget.d.ts.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.js +119 -153
- package/lib/base/auto-complete/auto-complete-widget.js.map +1 -1
- package/lib/base/auto-complete/validation-decorator.d.ts +3 -18
- package/lib/base/auto-complete/validation-decorator.d.ts.map +1 -1
- package/lib/base/auto-complete/validation-decorator.js +44 -65
- package/lib/base/auto-complete/validation-decorator.js.map +1 -1
- package/lib/base/command-stack.d.ts.map +1 -1
- package/lib/base/command-stack.js +19 -37
- package/lib/base/command-stack.js.map +1 -1
- package/lib/base/container-modules.d.ts +40 -0
- package/lib/base/container-modules.d.ts.map +1 -0
- package/lib/base/container-modules.js +100 -0
- package/lib/base/container-modules.js.map +1 -0
- package/lib/base/di.config.d.ts +12 -2
- package/lib/base/di.config.d.ts.map +1 -1
- package/lib/base/di.config.js +43 -27
- package/lib/base/di.config.js.map +1 -1
- package/lib/base/drag-aware-mouse-listener.d.ts +3 -2
- package/lib/base/drag-aware-mouse-listener.d.ts.map +1 -1
- package/lib/base/drag-aware-mouse-listener.js +23 -62
- package/lib/base/drag-aware-mouse-listener.js.map +1 -1
- package/lib/base/{editor-context.d.ts → editor-context-service.d.ts} +18 -22
- package/lib/base/editor-context-service.d.ts.map +1 -0
- package/lib/base/editor-context-service.js +109 -0
- package/lib/base/editor-context-service.js.map +1 -0
- package/lib/base/focus-tracker.d.ts +17 -1
- package/lib/base/focus-tracker.d.ts.map +1 -1
- package/lib/base/focus-tracker.js +19 -39
- package/lib/base/focus-tracker.js.map +1 -1
- package/lib/base/model/model-registry.js +10 -28
- package/lib/base/model/model-registry.js.map +1 -1
- package/lib/base/model/update-model-command.d.ts +19 -5
- package/lib/base/model/update-model-command.d.ts.map +1 -1
- package/lib/base/model/update-model-command.js +69 -94
- package/lib/base/model/update-model-command.js.map +1 -1
- package/lib/base/model-initialization-constraint.d.ts +16 -1
- package/lib/base/model-initialization-constraint.d.ts.map +1 -1
- package/lib/base/model-initialization-constraint.js +34 -54
- package/lib/base/model-initialization-constraint.js.map +1 -1
- package/lib/base/selection-clearing-mouse-listener.js +10 -28
- package/lib/base/selection-clearing-mouse-listener.js.map +1 -1
- package/lib/base/source-uri-aware.js +2 -5
- package/lib/base/source-uri-aware.js.map +1 -1
- package/lib/base/tool-manager/glsp-tool-manager.d.ts +1 -1
- package/lib/base/tool-manager/glsp-tool-manager.d.ts.map +1 -1
- package/lib/base/tool-manager/glsp-tool-manager.js +58 -140
- package/lib/base/tool-manager/glsp-tool-manager.js.map +1 -1
- package/lib/base/types.d.ts +3 -1
- package/lib/base/types.d.ts.map +1 -1
- package/lib/base/types.js +4 -2
- package/lib/base/types.js.map +1 -1
- package/lib/base/view/view-registry.js +10 -28
- package/lib/base/view/view-registry.js.map +1 -1
- package/lib/features/change-bounds/model.d.ts +3 -1
- package/lib/features/change-bounds/model.d.ts.map +1 -1
- package/lib/features/change-bounds/model.js +20 -31
- package/lib/features/change-bounds/model.js.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.d.ts +17 -1
- package/lib/features/change-bounds/movement-restrictor.d.ts.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.js +28 -42
- package/lib/features/change-bounds/movement-restrictor.js.map +1 -1
- package/lib/features/change-bounds/snap.d.ts +17 -1
- package/lib/features/change-bounds/snap.d.ts.map +1 -1
- package/lib/features/change-bounds/snap.js +13 -39
- package/lib/features/change-bounds/snap.js.map +1 -1
- package/lib/features/command-palette/command-palette-tool.js +30 -38
- package/lib/features/command-palette/command-palette-tool.js.map +1 -1
- package/lib/features/command-palette/di.config.js +6 -6
- package/lib/features/command-palette/di.config.js.map +1 -1
- package/lib/features/command-palette/server-command-palette-provider.d.ts +18 -2
- package/lib/features/command-palette/server-command-palette-provider.d.ts.map +1 -1
- package/lib/features/command-palette/server-command-palette-provider.js +28 -33
- package/lib/features/command-palette/server-command-palette-provider.js.map +1 -1
- package/lib/features/context-menu/delete-element-context-menu.d.ts +1 -1
- package/lib/features/context-menu/delete-element-context-menu.d.ts.map +1 -1
- package/lib/features/context-menu/delete-element-context-menu.js +20 -68
- package/lib/features/context-menu/delete-element-context-menu.js.map +1 -1
- package/lib/features/context-menu/di.config.d.ts +1 -1
- package/lib/features/context-menu/di.config.d.ts.map +1 -1
- package/lib/features/context-menu/di.config.js +8 -8
- package/lib/features/context-menu/di.config.js.map +1 -1
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.d.ts.map +1 -1
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.js +29 -67
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.js.map +1 -1
- package/lib/features/context-menu/server-context-menu-provider.d.ts +18 -2
- package/lib/features/context-menu/server-context-menu-provider.d.ts.map +1 -1
- package/lib/features/context-menu/server-context-menu-provider.js +30 -31
- package/lib/features/context-menu/server-context-menu-provider.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts +22 -2
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.js +99 -72
- package/lib/features/copy-paste/copy-paste-context-menu.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.d.ts +19 -2
- package/lib/features/copy-paste/copy-paste-handler.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.js +70 -70
- package/lib/features/copy-paste/copy-paste-handler.js.map +1 -1
- package/lib/features/copy-paste/di.config.d.ts +1 -1
- package/lib/features/copy-paste/di.config.d.ts.map +1 -1
- package/lib/features/copy-paste/di.config.js +11 -11
- package/lib/features/copy-paste/di.config.js.map +1 -1
- package/lib/features/decoration/decoration-placer.d.ts +17 -1
- package/lib/features/decoration/decoration-placer.d.ts.map +1 -1
- package/lib/features/decoration/decoration-placer.js +12 -46
- package/lib/features/decoration/decoration-placer.js.map +1 -1
- package/lib/features/decoration/di.config.js +4 -4
- package/lib/features/decoration/di.config.js.map +1 -1
- package/lib/features/edit-label/di.config.js +7 -7
- package/lib/features/edit-label/di.config.js.map +1 -1
- package/lib/features/edit-label/edit-label-tool.js +20 -43
- package/lib/features/edit-label/edit-label-tool.js.map +1 -1
- package/lib/features/edit-label/edit-label-validator.d.ts +16 -1
- package/lib/features/edit-label/edit-label-validator.d.ts.map +1 -1
- package/lib/features/edit-label/edit-label-validator.js +40 -62
- package/lib/features/edit-label/edit-label-validator.js.map +1 -1
- package/lib/features/hints/di.config.d.ts +0 -15
- package/lib/features/hints/di.config.d.ts.map +1 -1
- package/lib/features/hints/di.config.js +9 -9
- package/lib/features/hints/di.config.js.map +1 -1
- package/lib/features/hints/model.d.ts +3 -2
- package/lib/features/hints/model.d.ts.map +1 -1
- package/lib/features/hints/model.js.map +1 -1
- package/lib/features/hints/type-hints.d.ts +17 -45
- package/lib/features/hints/type-hints.d.ts.map +1 -1
- package/lib/features/hints/type-hints.js +81 -140
- package/lib/features/hints/type-hints.js.map +1 -1
- package/lib/features/hover/di.config.d.ts +1 -1
- package/lib/features/hover/di.config.d.ts.map +1 -1
- package/lib/features/hover/di.config.js +8 -8
- package/lib/features/hover/di.config.js.map +1 -1
- package/lib/features/hover/hover.d.ts +17 -1
- package/lib/features/hover/hover.d.ts.map +1 -1
- package/lib/features/hover/hover.js +37 -77
- package/lib/features/hover/hover.js.map +1 -1
- package/lib/features/layout/di.config.d.ts +5 -1
- package/lib/features/layout/di.config.d.ts.map +1 -1
- package/lib/features/layout/di.config.js +47 -7
- package/lib/features/layout/di.config.js.map +1 -1
- package/lib/features/layout/freeform-layout.d.ts +16 -0
- package/lib/features/layout/freeform-layout.d.ts.map +1 -0
- package/lib/features/layout/freeform-layout.js +107 -0
- package/lib/features/layout/freeform-layout.js.map +1 -0
- package/lib/features/layout/layout-commands.d.ts +19 -3
- package/lib/features/layout/layout-commands.d.ts.map +1 -1
- package/lib/features/layout/layout-commands.js +189 -265
- package/lib/features/layout/layout-commands.js.map +1 -1
- package/lib/features/layout/layout-commands.spec.d.ts +0 -15
- package/lib/features/layout/layout-commands.spec.d.ts.map +1 -1
- package/lib/features/layout/layout-commands.spec.js +95 -89
- package/lib/features/layout/layout-commands.spec.js.map +1 -1
- package/lib/features/layout/vbox-layout.d.ts +25 -0
- package/lib/features/layout/vbox-layout.d.ts.map +1 -0
- package/lib/features/layout/vbox-layout.js +188 -0
- package/lib/features/layout/vbox-layout.js.map +1 -0
- package/lib/features/model-source-watcher/di.config.d.ts +0 -15
- package/lib/features/model-source-watcher/di.config.d.ts.map +1 -1
- package/lib/features/model-source-watcher/di.config.js +7 -7
- package/lib/features/model-source-watcher/di.config.js.map +1 -1
- package/lib/features/model-source-watcher/model-source-changed-action-handler.d.ts +17 -2
- package/lib/features/model-source-watcher/model-source-changed-action-handler.d.ts.map +1 -1
- package/lib/features/model-source-watcher/model-source-changed-action-handler.js +38 -46
- package/lib/features/model-source-watcher/model-source-changed-action-handler.js.map +1 -1
- package/lib/features/mouse-tool/di.config.js +5 -5
- package/lib/features/mouse-tool/di.config.js.map +1 -1
- package/lib/features/mouse-tool/mouse-tool.d.ts +2 -1
- package/lib/features/mouse-tool/mouse-tool.d.ts.map +1 -1
- package/lib/features/mouse-tool/mouse-tool.js +70 -215
- package/lib/features/mouse-tool/mouse-tool.js.map +1 -1
- package/lib/features/navigation/di.config.d.ts +0 -15
- package/lib/features/navigation/di.config.d.ts.map +1 -1
- package/lib/features/navigation/di.config.js +11 -10
- package/lib/features/navigation/di.config.js.map +1 -1
- package/lib/features/navigation/navigation-action-handler.d.ts +19 -38
- package/lib/features/navigation/navigation-action-handler.d.ts.map +1 -1
- package/lib/features/navigation/navigation-action-handler.js +118 -254
- package/lib/features/navigation/navigation-action-handler.js.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.d.ts +18 -40
- package/lib/features/navigation/navigation-target-resolver.d.ts.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.js +46 -188
- package/lib/features/navigation/navigation-target-resolver.js.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts +0 -15
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.spec.js +26 -26
- package/lib/features/navigation/navigation-target-resolver.spec.js.map +1 -1
- package/lib/features/rank/model.d.ts +1 -1
- package/lib/features/rank/model.js +2 -2
- package/lib/features/rank/model.js.map +1 -1
- package/lib/features/reconnect/model.d.ts +1 -1
- package/lib/features/reconnect/model.d.ts.map +1 -1
- package/lib/features/reconnect/model.js +9 -27
- package/lib/features/reconnect/model.js.map +1 -1
- package/lib/features/save/di.config.d.ts +1 -1
- package/lib/features/save/di.config.d.ts.map +1 -1
- package/lib/features/save/di.config.js +6 -6
- package/lib/features/save/di.config.js.map +1 -1
- package/lib/features/save/{save.d.ts → save-keylistener.d.ts} +4 -10
- package/lib/features/save/save-keylistener.d.ts.map +1 -0
- package/lib/features/{undo-redo/model.d.ts → save/save-keylistener.js} +16 -12
- package/lib/features/save/save-keylistener.js.map +1 -0
- package/lib/features/select/di.config.js +11 -11
- package/lib/features/select/di.config.js.map +1 -1
- package/lib/features/select/select-feedback-action.d.ts.map +1 -1
- package/lib/features/select/select-feedback-action.js +45 -71
- package/lib/features/select/select-feedback-action.js.map +1 -1
- package/lib/features/select/select-mouse-listener.js +7 -23
- package/lib/features/select/select-mouse-listener.js.map +1 -1
- package/lib/features/select/selection-service.d.ts +17 -1
- package/lib/features/select/selection-service.d.ts.map +1 -1
- package/lib/features/select/selection-service.js +134 -236
- package/lib/features/select/selection-service.js.map +1 -1
- package/lib/features/select/selection-service.spec.js +96 -139
- package/lib/features/select/selection-service.spec.js.map +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts +19 -2
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js +102 -142
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts +17 -1
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.js +69 -118
- package/lib/features/tool-feedback/creation-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/css-feedback.d.ts +20 -2
- package/lib/features/tool-feedback/css-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/css-feedback.js +37 -81
- package/lib/features/tool-feedback/css-feedback.js.map +1 -1
- package/lib/features/tool-feedback/di.config.d.ts +1 -1
- package/lib/features/tool-feedback/di.config.d.ts.map +1 -1
- package/lib/features/tool-feedback/di.config.js +27 -27
- package/lib/features/tool-feedback/di.config.js.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts +18 -2
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js +147 -208
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/feedback-action-dispatcher.d.ts +19 -3
- package/lib/features/tool-feedback/feedback-action-dispatcher.d.ts.map +1 -1
- package/lib/features/tool-feedback/feedback-action-dispatcher.js +35 -72
- package/lib/features/tool-feedback/feedback-action-dispatcher.js.map +1 -1
- package/lib/features/tool-feedback/marquee-tool-feedback.d.ts +17 -1
- package/lib/features/tool-feedback/marquee-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/marquee-tool-feedback.js +41 -84
- package/lib/features/tool-feedback/marquee-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/model.d.ts +1 -1
- package/lib/features/tool-feedback/model.js +11 -27
- package/lib/features/tool-feedback/model.js.map +1 -1
- package/lib/features/tool-feedback/view.d.ts +21 -5
- package/lib/features/tool-feedback/view.d.ts.map +1 -1
- package/lib/features/tool-feedback/view.js +29 -51
- package/lib/features/tool-feedback/view.js.map +1 -1
- package/lib/features/tool-palette/di.config.d.ts +1 -1
- package/lib/features/tool-palette/di.config.d.ts.map +1 -1
- package/lib/features/tool-palette/di.config.js +6 -6
- package/lib/features/tool-palette/di.config.js.map +1 -1
- package/lib/features/tool-palette/palette-item.d.ts +2 -3
- package/lib/features/tool-palette/palette-item.d.ts.map +1 -1
- package/lib/features/tool-palette/palette-item.js +6 -6
- package/lib/features/tool-palette/palette-item.js.map +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts +19 -3
- package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette.js +199 -269
- package/lib/features/tool-palette/tool-palette.js.map +1 -1
- package/lib/features/tools/base-glsp-tool.d.ts +18 -2
- package/lib/features/tools/base-glsp-tool.d.ts.map +1 -1
- package/lib/features/tools/base-glsp-tool.js +37 -59
- package/lib/features/tools/base-glsp-tool.js.map +1 -1
- package/lib/features/tools/change-bounds-tool.d.ts +20 -3
- package/lib/features/tools/change-bounds-tool.d.ts.map +1 -1
- package/lib/features/tools/change-bounds-tool.js +192 -241
- package/lib/features/tools/change-bounds-tool.js.map +1 -1
- package/lib/features/tools/delete-tool.d.ts +17 -1
- package/lib/features/tools/delete-tool.d.ts.map +1 -1
- package/lib/features/tools/delete-tool.js +71 -104
- package/lib/features/tools/delete-tool.js.map +1 -1
- package/lib/features/tools/di.config.d.ts +0 -15
- package/lib/features/tools/di.config.d.ts.map +1 -1
- package/lib/features/tools/di.config.js +19 -19
- package/lib/features/tools/di.config.js.map +1 -1
- package/lib/features/tools/edge-creation-tool.d.ts +17 -2
- package/lib/features/tools/edge-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-creation-tool.js +62 -87
- package/lib/features/tools/edge-creation-tool.js.map +1 -1
- package/lib/features/tools/edge-edit-tool.d.ts +17 -1
- package/lib/features/tools/edge-edit-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-edit-tool.js +112 -183
- package/lib/features/tools/edge-edit-tool.js.map +1 -1
- package/lib/features/tools/marquee-behavior.d.ts +42 -0
- package/lib/features/tools/marquee-behavior.d.ts.map +1 -0
- package/lib/features/tools/marquee-behavior.js +128 -0
- package/lib/features/tools/marquee-behavior.js.map +1 -0
- package/{src/features/undo-redo/model.ts → lib/features/tools/marquee-behavior.spec.d.ts} +3 -12
- package/lib/features/tools/marquee-behavior.spec.d.ts.map +1 -0
- package/lib/features/tools/marquee-behavior.spec.js +165 -0
- package/lib/features/tools/marquee-behavior.spec.js.map +1 -0
- package/lib/features/tools/marquee-mouse-tool.d.ts +24 -13
- package/lib/features/tools/marquee-mouse-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-mouse-tool.js +86 -195
- package/lib/features/tools/marquee-mouse-tool.js.map +1 -1
- package/lib/features/tools/marquee-tool.d.ts +17 -1
- package/lib/features/tools/marquee-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-tool.js +32 -73
- package/lib/features/tools/marquee-tool.js.map +1 -1
- package/lib/features/tools/model.js +4 -22
- package/lib/features/tools/model.js.map +1 -1
- package/lib/features/tools/node-creation-tool.d.ts +17 -2
- package/lib/features/tools/node-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/node-creation-tool.js +60 -90
- package/lib/features/tools/node-creation-tool.js.map +1 -1
- package/lib/features/tools/view.d.ts +1 -1
- package/lib/features/tools/view.d.ts.map +1 -1
- package/lib/features/tools/view.js +12 -31
- package/lib/features/tools/view.js.map +1 -1
- package/lib/features/validation/di.config.js +12 -12
- package/lib/features/validation/di.config.js.map +1 -1
- package/lib/features/validation/issue-marker.d.ts +2 -2
- package/lib/features/validation/issue-marker.d.ts.map +1 -1
- package/lib/features/validation/issue-marker.js +17 -55
- package/lib/features/validation/issue-marker.js.map +1 -1
- package/lib/features/validation/marker-navigator.d.ts +17 -1
- package/lib/features/validation/marker-navigator.d.ts.map +1 -1
- package/lib/features/validation/marker-navigator.js +131 -164
- package/lib/features/validation/marker-navigator.js.map +1 -1
- package/lib/features/validation/marker-navigator.spec.d.ts +0 -15
- package/lib/features/validation/marker-navigator.spec.d.ts.map +1 -1
- package/lib/features/validation/marker-navigator.spec.js +83 -77
- package/lib/features/validation/marker-navigator.spec.js.map +1 -1
- package/lib/features/validation/validate.d.ts +18 -29
- package/lib/features/validation/validate.d.ts.map +1 -1
- package/lib/features/validation/validate.js +147 -300
- package/lib/features/validation/validate.js.map +1 -1
- package/lib/features/viewport/di.config.js +10 -10
- package/lib/features/viewport/di.config.js.map +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.d.ts +18 -2
- package/lib/features/viewport/glsp-scroll-mouse-listener.d.ts.map +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.js +16 -47
- package/lib/features/viewport/glsp-scroll-mouse-listener.js.map +1 -1
- package/lib/index.d.ts +9 -15
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +29 -34
- package/lib/index.js.map +1 -1
- package/lib/lib/model.js +11 -27
- package/lib/lib/model.js.map +1 -1
- package/lib/model-source/glsp-diagram-server.d.ts +3 -5
- package/lib/model-source/glsp-diagram-server.d.ts.map +1 -1
- package/lib/model-source/glsp-diagram-server.js +60 -121
- package/lib/model-source/glsp-diagram-server.js.map +1 -1
- package/lib/protocol-reexport.d.ts +45 -0
- package/lib/protocol-reexport.d.ts.map +1 -0
- package/lib/protocol-reexport.js +75 -0
- package/lib/protocol-reexport.js.map +1 -0
- package/lib/utils/argument-utils.d.ts +3 -3
- package/lib/utils/argument-utils.d.ts.map +1 -1
- package/lib/utils/argument-utils.js +32 -97
- package/lib/utils/argument-utils.js.map +1 -1
- package/lib/utils/html-utils.js +2 -2
- package/lib/utils/html-utils.js.map +1 -1
- package/lib/utils/layout-utils.d.ts +3 -2
- package/lib/utils/layout-utils.d.ts.map +1 -1
- package/lib/utils/layout-utils.js +5 -5
- package/lib/utils/layout-utils.js.map +1 -1
- package/lib/utils/marker.d.ts +0 -38
- package/lib/utils/marker.d.ts.map +1 -1
- package/lib/utils/marker.js +14 -61
- package/lib/utils/marker.js.map +1 -1
- package/lib/utils/smodel-util.d.ts +4 -4
- package/lib/utils/smodel-util.d.ts.map +1 -1
- package/lib/utils/smodel-util.js +16 -65
- package/lib/utils/smodel-util.js.map +1 -1
- package/lib/utils/viewpoint-util.d.ts +3 -2
- package/lib/utils/viewpoint-util.d.ts.map +1 -1
- package/lib/utils/viewpoint-util.js +15 -30
- package/lib/utils/viewpoint-util.js.map +1 -1
- package/lib/views/base-view-module.d.ts +0 -15
- package/lib/views/base-view-module.d.ts.map +1 -1
- package/lib/views/base-view-module.js +28 -28
- package/lib/views/base-view-module.js.map +1 -1
- package/lib/views/compartments.d.ts +6 -0
- package/lib/views/compartments.d.ts.map +1 -0
- package/lib/views/compartments.js +43 -0
- package/lib/views/compartments.js.map +1 -0
- package/lib/views/glsp-edge-view.d.ts +18 -3
- package/lib/views/glsp-edge-view.d.ts.map +1 -1
- package/lib/views/glsp-edge-view.js +32 -77
- package/lib/views/glsp-edge-view.js.map +1 -1
- package/lib/views/index.d.ts +1 -1
- package/lib/views/index.d.ts.map +1 -1
- package/lib/views/index.js +1 -1
- package/lib/views/index.js.map +1 -1
- package/lib/views/issue-marker-view.d.ts +2 -1
- package/lib/views/issue-marker-view.d.ts.map +1 -1
- package/lib/views/issue-marker-view.js +36 -50
- package/lib/views/issue-marker-view.js.map +1 -1
- package/lib/views/rounded-corner-view.d.ts +2 -3
- package/lib/views/rounded-corner-view.d.ts.map +1 -1
- package/lib/views/rounded-corner-view.js +40 -70
- package/lib/views/rounded-corner-view.js.map +1 -1
- package/lib/views/rounded-corner.d.ts +2 -1
- package/lib/views/rounded-corner.d.ts.map +1 -1
- package/lib/views/rounded-corner.js +44 -65
- package/lib/views/rounded-corner.js.map +1 -1
- package/package.json +10 -18
- package/src/base/action-dispatcher.ts +3 -4
- package/src/base/actions/focus-change-action.ts +2 -2
- package/src/base/{args.ts → argumentable.ts} +2 -3
- package/src/base/auto-complete/auto-complete-actions.ts +1 -1
- package/src/base/auto-complete/auto-complete-widget.ts +37 -25
- package/src/base/auto-complete/validation-decorator.ts +12 -11
- package/src/base/command-stack.ts +2 -5
- package/src/base/container-modules.ts +112 -0
- package/src/base/di.config.ts +33 -18
- package/src/base/drag-aware-mouse-listener.ts +3 -4
- package/src/base/{editor-context.ts → editor-context-service.ts} +4 -31
- package/src/base/focus-tracker.ts +2 -4
- package/src/base/model/update-model-command.ts +8 -16
- package/src/base/model-initialization-constraint.ts +3 -2
- package/src/base/tool-manager/glsp-tool-manager.ts +3 -5
- package/src/base/types.ts +4 -2
- package/src/features/change-bounds/model.ts +15 -5
- package/src/features/change-bounds/movement-restrictor.ts +17 -9
- package/src/features/change-bounds/snap.ts +3 -2
- package/src/features/command-palette/server-command-palette-provider.ts +11 -9
- package/src/features/context-menu/delete-element-context-menu.ts +3 -4
- package/src/features/context-menu/di.config.ts +11 -9
- package/src/features/context-menu/selection-service-aware-context-menu-mouse-listener.ts +4 -3
- package/src/features/context-menu/server-context-menu-provider.ts +10 -7
- package/src/features/copy-paste/copy-paste-context-menu.ts +59 -30
- package/src/features/copy-paste/copy-paste-handler.ts +18 -10
- package/src/features/copy-paste/di.config.ts +2 -3
- package/src/features/decoration/decoration-placer.ts +3 -13
- package/src/features/edit-label/edit-label-validator.ts +11 -12
- package/src/features/hints/di.config.ts +2 -3
- package/src/features/hints/model.ts +4 -3
- package/src/features/hints/type-hints.ts +23 -90
- package/src/features/hover/di.config.ts +1 -2
- package/src/features/hover/hover.ts +2 -7
- package/src/features/layout/di.config.ts +31 -5
- package/src/features/layout/freeform-layout.ts +133 -0
- package/src/features/layout/layout-commands.spec.ts +82 -64
- package/src/features/layout/layout-commands.ts +43 -34
- package/src/features/layout/vbox-layout.ts +256 -0
- package/src/features/model-source-watcher/di.config.ts +3 -4
- package/src/features/model-source-watcher/model-source-changed-action-handler.ts +11 -7
- package/src/features/mouse-tool/mouse-tool.ts +33 -23
- package/src/features/navigation/di.config.ts +4 -10
- package/src/features/navigation/navigation-action-handler.ts +33 -69
- package/src/features/navigation/navigation-target-resolver.spec.ts +3 -7
- package/src/features/navigation/navigation-target-resolver.ts +13 -91
- package/src/features/rank/model.ts +2 -2
- package/src/features/reconnect/model.ts +2 -3
- package/src/features/save/di.config.ts +2 -3
- package/src/features/save/{save.ts → save-keylistener.ts} +3 -11
- package/src/features/select/select-feedback-action.ts +4 -6
- package/src/features/select/selection-service.spec.ts +11 -6
- package/src/features/select/selection-service.ts +14 -10
- package/src/features/tool-feedback/change-bounds-tool-feedback.ts +26 -20
- package/src/features/tool-feedback/creation-tool-feedback.ts +17 -10
- package/src/features/tool-feedback/css-feedback.ts +9 -6
- package/src/features/tool-feedback/di.config.ts +2 -5
- package/src/features/tool-feedback/edge-edit-tool-feedback.ts +19 -18
- package/src/features/tool-feedback/feedback-action-dispatcher.ts +8 -9
- package/src/features/tool-feedback/marquee-tool-feedback.ts +4 -5
- package/src/features/tool-feedback/model.ts +1 -2
- package/src/features/tool-feedback/view.tsx +17 -11
- package/src/features/tool-palette/di.config.ts +2 -4
- package/src/features/tool-palette/palette-item.ts +4 -6
- package/src/features/tool-palette/tool-palette.ts +44 -40
- package/src/features/tools/base-glsp-tool.ts +4 -4
- package/src/features/tools/change-bounds-tool.ts +64 -34
- package/src/features/tools/delete-tool.ts +9 -6
- package/src/features/tools/di.config.ts +2 -3
- package/src/features/tools/edge-creation-tool.ts +5 -10
- package/src/features/tools/edge-edit-tool.ts +10 -20
- package/src/features/tools/marquee-behavior.spec.ts +175 -0
- package/src/features/tools/marquee-behavior.ts +158 -0
- package/src/features/tools/marquee-mouse-tool.ts +43 -134
- package/src/features/tools/marquee-tool.ts +2 -3
- package/src/features/tools/node-creation-tool.ts +4 -11
- package/src/features/tools/view.tsx +17 -12
- package/src/features/validation/issue-marker.ts +2 -3
- package/src/features/validation/marker-navigator.spec.ts +18 -14
- package/src/features/validation/marker-navigator.ts +24 -12
- package/src/features/validation/validate.ts +7 -40
- package/src/features/viewport/glsp-scroll-mouse-listener.ts +3 -12
- package/src/index.ts +30 -19
- package/src/model-source/glsp-diagram-server.ts +12 -28
- package/src/protocol-reexport.ts +64 -0
- package/src/utils/argument-utils.ts +14 -11
- package/src/utils/layout-utils.ts +13 -7
- package/src/utils/marker.ts +2 -26
- package/src/utils/smodel-util.ts +15 -11
- package/src/utils/viewpoint-util.ts +4 -4
- package/src/views/base-view-module.ts +1 -2
- package/src/{base/actions/edit-mode-action.ts → views/compartments.tsx} +18 -14
- package/src/views/glsp-edge-view.tsx +21 -14
- package/src/views/index.ts +1 -1
- package/src/views/issue-marker-view.tsx +28 -19
- package/src/views/rounded-corner-view.tsx +38 -25
- package/src/views/rounded-corner.ts +5 -6
- package/lib/base/actions/context-actions.d.ts +0 -36
- package/lib/base/actions/context-actions.d.ts.map +0 -1
- package/lib/base/actions/context-actions.js +0 -51
- package/lib/base/actions/context-actions.js.map +0 -1
- package/lib/base/actions/edit-mode-action.d.ts +0 -13
- package/lib/base/actions/edit-mode-action.d.ts.map +0 -1
- package/lib/base/actions/edit-mode-action.js +0 -56
- package/lib/base/actions/edit-mode-action.js.map +0 -1
- package/lib/base/actions/edit-validation-actions.d.ts +0 -78
- package/lib/base/actions/edit-validation-actions.d.ts.map +0 -1
- package/lib/base/actions/edit-validation-actions.js +0 -83
- package/lib/base/actions/edit-validation-actions.js.map +0 -1
- package/lib/base/actions/protocol-actions.d.ts +0 -41
- package/lib/base/actions/protocol-actions.d.ts.map +0 -1
- package/lib/base/actions/protocol-actions.js +0 -151
- package/lib/base/actions/protocol-actions.js.map +0 -1
- package/lib/base/args.d.ts.map +0 -1
- package/lib/base/args.js.map +0 -1
- package/lib/base/editor-context.d.ts.map +0 -1
- package/lib/base/editor-context.js +0 -174
- package/lib/base/editor-context.js.map +0 -1
- package/lib/base/operations/operation.d.ts +0 -135
- package/lib/base/operations/operation.d.ts.map +0 -1
- package/lib/base/operations/operation.js +0 -231
- package/lib/base/operations/operation.js.map +0 -1
- package/lib/features/copy-paste/copy-paste-actions.d.ts +0 -50
- package/lib/features/copy-paste/copy-paste-actions.d.ts.map +0 -1
- package/lib/features/copy-paste/copy-paste-actions.js +0 -68
- package/lib/features/copy-paste/copy-paste-actions.js.map +0 -1
- package/lib/features/hints/request-type-hints-action.d.ts +0 -32
- package/lib/features/hints/request-type-hints-action.d.ts.map +0 -1
- package/lib/features/hints/request-type-hints-action.js +0 -30
- package/lib/features/hints/request-type-hints-action.js.map +0 -1
- package/lib/features/model-source-watcher/model-source-changed-action.d.ts +0 -24
- package/lib/features/model-source-watcher/model-source-changed-action.d.ts.map +0 -1
- package/lib/features/model-source-watcher/model-source-changed-action.js +0 -17
- package/lib/features/model-source-watcher/model-source-changed-action.js.map +0 -1
- package/lib/features/save/save.d.ts.map +0 -1
- package/lib/features/save/save.js +0 -62
- package/lib/features/save/save.js.map +0 -1
- package/lib/features/undo-redo/model.d.ts.map +0 -1
- package/lib/features/undo-redo/model.js +0 -22
- package/lib/features/undo-redo/model.js.map +0 -1
- package/lib/model-source/glsp-server-status.d.ts +0 -30
- package/lib/model-source/glsp-server-status.d.ts.map +0 -1
- package/lib/model-source/glsp-server-status.js +0 -61
- package/lib/model-source/glsp-server-status.js.map +0 -1
- package/lib/utils/array-utils.d.ts +0 -28
- package/lib/utils/array-utils.d.ts.map +0 -1
- package/lib/utils/array-utils.js +0 -61
- package/lib/utils/array-utils.js.map +0 -1
- package/lib/views/default-types.d.ts +0 -37
- package/lib/views/default-types.d.ts.map +0 -1
- package/lib/views/default-types.js +0 -47
- package/lib/views/default-types.js.map +0 -1
- package/src/base/actions/context-actions.ts +0 -43
- package/src/base/actions/edit-validation-actions.ts +0 -103
- package/src/base/actions/protocol-actions.ts +0 -82
- package/src/base/operations/operation.ts +0 -178
- package/src/features/copy-paste/copy-paste-actions.ts +0 -60
- package/src/features/hints/request-type-hints-action.ts +0 -36
- package/src/features/model-source-watcher/model-source-changed-action.ts +0 -26
- package/src/model-source/glsp-server-status.ts +0 -38
- package/src/utils/array-utils.ts +0 -55
- package/src/views/default-types.ts +0 -48
|
@@ -8,46 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
21
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
22
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
23
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
24
|
-
function step(op) {
|
|
25
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
26
|
-
while (_) try {
|
|
27
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
28
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
29
|
-
switch (op[0]) {
|
|
30
|
-
case 0: case 1: t = op; break;
|
|
31
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
32
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
33
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
34
|
-
default:
|
|
35
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
36
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
37
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
38
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
39
|
-
if (t[2]) _.ops.pop();
|
|
40
|
-
_.trys.pop(); continue;
|
|
41
|
-
}
|
|
42
|
-
op = body.call(thisArg, _);
|
|
43
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
44
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.NavigationTargetResolver =
|
|
12
|
+
exports.NavigationTargetResolver = void 0;
|
|
49
13
|
/********************************************************************************
|
|
50
|
-
* Copyright (c) 2020 EclipseSource and others.
|
|
14
|
+
* Copyright (c) 2020-2021 EclipseSource and others.
|
|
51
15
|
*
|
|
52
16
|
* This program and the accompanying materials are made available under the
|
|
53
17
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -61,162 +25,56 @@ exports.NavigationTargetResolver = exports.isSetResolvedNavigationTargets = expo
|
|
|
61
25
|
*
|
|
62
26
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
63
27
|
********************************************************************************/
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
(function (NavigationTarget) {
|
|
69
|
-
NavigationTarget.ELEMENT_IDS = 'elementIds';
|
|
70
|
-
NavigationTarget.ELEMENT_IDS_SEPARATOR = '&';
|
|
71
|
-
NavigationTarget.TEXT_LINE = 'line';
|
|
72
|
-
NavigationTarget.TEXT_COLUMN = 'column';
|
|
73
|
-
function hasArguments(target) {
|
|
74
|
-
return target.args !== undefined && Object.keys(target.args).length > 0;
|
|
75
|
-
}
|
|
76
|
-
NavigationTarget.hasArguments = hasArguments;
|
|
77
|
-
function addArgument(target, key, value) {
|
|
78
|
-
if (target.args === undefined) {
|
|
79
|
-
target.args = {};
|
|
80
|
-
}
|
|
81
|
-
target.args[key] = value;
|
|
82
|
-
}
|
|
83
|
-
NavigationTarget.addArgument = addArgument;
|
|
84
|
-
function getElementIds(target) {
|
|
85
|
-
if (target.args === undefined || target.args[NavigationTarget.ELEMENT_IDS] === undefined) {
|
|
86
|
-
return [];
|
|
87
|
-
}
|
|
88
|
-
var elementIdsValue = target.args[NavigationTarget.ELEMENT_IDS].toString();
|
|
89
|
-
return elementIdsValue.split(NavigationTarget.ELEMENT_IDS_SEPARATOR);
|
|
90
|
-
}
|
|
91
|
-
NavigationTarget.getElementIds = getElementIds;
|
|
92
|
-
function setElementIds(target, elementIds) {
|
|
93
|
-
if (target.args === undefined) {
|
|
94
|
-
target.args = {};
|
|
95
|
-
}
|
|
96
|
-
return target.args[NavigationTarget.ELEMENT_IDS] = elementIds.join(NavigationTarget.ELEMENT_IDS_SEPARATOR);
|
|
97
|
-
}
|
|
98
|
-
NavigationTarget.setElementIds = setElementIds;
|
|
99
|
-
function setTextPosition(target, position) {
|
|
100
|
-
if (position) {
|
|
101
|
-
if (target.args === undefined) {
|
|
102
|
-
target.args = {};
|
|
103
|
-
}
|
|
104
|
-
target.args[NavigationTarget.TEXT_LINE] = position.line;
|
|
105
|
-
target.args[NavigationTarget.TEXT_COLUMN] = position.character;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
NavigationTarget.setTextPosition = setTextPosition;
|
|
109
|
-
function getTextPosition(target) {
|
|
110
|
-
if (target.args === undefined
|
|
111
|
-
|| target.args[NavigationTarget.TEXT_LINE] === undefined
|
|
112
|
-
|| target.args[NavigationTarget.TEXT_COLUMN] === undefined) {
|
|
113
|
-
return undefined;
|
|
114
|
-
}
|
|
115
|
-
return {
|
|
116
|
-
line: Number(target.args[NavigationTarget.TEXT_LINE]),
|
|
117
|
-
character: Number(target.args[NavigationTarget.TEXT_COLUMN])
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
NavigationTarget.getTextPosition = getTextPosition;
|
|
121
|
-
})(NavigationTarget = exports.NavigationTarget || (exports.NavigationTarget = {}));
|
|
122
|
-
var ResolveNavigationTargetAction = /** @class */ (function () {
|
|
123
|
-
function ResolveNavigationTargetAction(navigationTarget, requestId) {
|
|
124
|
-
if (requestId === void 0) { requestId = sprotty_1.generateRequestId(); }
|
|
125
|
-
this.navigationTarget = navigationTarget;
|
|
126
|
-
this.requestId = requestId;
|
|
127
|
-
this.kind = ResolveNavigationTargetAction.KIND;
|
|
128
|
-
}
|
|
129
|
-
ResolveNavigationTargetAction.KIND = 'resolveNavigationTarget';
|
|
130
|
-
return ResolveNavigationTargetAction;
|
|
131
|
-
}());
|
|
132
|
-
exports.ResolveNavigationTargetAction = ResolveNavigationTargetAction;
|
|
133
|
-
var SetResolvedNavigationTargetAction = /** @class */ (function () {
|
|
134
|
-
function SetResolvedNavigationTargetAction(elementIds, args, responseId) {
|
|
135
|
-
if (elementIds === void 0) { elementIds = []; }
|
|
136
|
-
if (responseId === void 0) { responseId = ''; }
|
|
137
|
-
this.elementIds = elementIds;
|
|
138
|
-
this.args = args;
|
|
139
|
-
this.responseId = responseId;
|
|
140
|
-
this.kind = SetResolvedNavigationTargetAction.KIND;
|
|
141
|
-
}
|
|
142
|
-
SetResolvedNavigationTargetAction.KIND = 'setResolvedNavigationTarget';
|
|
143
|
-
return SetResolvedNavigationTargetAction;
|
|
144
|
-
}());
|
|
145
|
-
exports.SetResolvedNavigationTargetAction = SetResolvedNavigationTargetAction;
|
|
146
|
-
function isSetResolvedNavigationTargets(action) {
|
|
147
|
-
return action !== undefined && (action.kind === SetResolvedNavigationTargetAction.KIND);
|
|
148
|
-
}
|
|
149
|
-
exports.isSetResolvedNavigationTargets = isSetResolvedNavigationTargets;
|
|
28
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
29
|
+
const inversify_1 = require("inversify");
|
|
30
|
+
const sprotty_1 = require("sprotty");
|
|
31
|
+
const types_1 = require("../../base/types");
|
|
150
32
|
/**
|
|
151
33
|
* Resolves `NavigationTargets` to element ids.
|
|
152
34
|
*
|
|
153
35
|
* If the `NavigationTarget` doesn't have element ids itself, this resolver queries the server via a
|
|
154
36
|
* `ResolveNavigationTargetAction` for element ids.
|
|
155
37
|
*/
|
|
156
|
-
|
|
157
|
-
|
|
38
|
+
let NavigationTargetResolver = class NavigationTargetResolver {
|
|
39
|
+
async resolve(navigationTarget) {
|
|
40
|
+
const contextService = await this.editorContextService();
|
|
41
|
+
const sourceUri = await contextService.getSourceUri();
|
|
42
|
+
return this.resolveWithSourceUri(sourceUri, navigationTarget);
|
|
43
|
+
}
|
|
44
|
+
async resolveWithSourceUri(sourceUri, target) {
|
|
45
|
+
const targetUri = decodeURIComponent(target.uri);
|
|
46
|
+
if (sourceUri && sourceUri !== targetUri && `file://${sourceUri}` !== targetUri) {
|
|
47
|
+
// different URI, so we can't resolve it locally
|
|
48
|
+
this.logger.info("Source and Target URI are different. Can't resolve locally.", sourceUri, targetUri);
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
if (protocol_1.NavigationTarget.getElementIds(target).length > 0) {
|
|
52
|
+
return new protocol_1.SetResolvedNavigationTargetAction(protocol_1.NavigationTarget.getElementIds(target));
|
|
53
|
+
}
|
|
54
|
+
const response = await this.requestResolution(target);
|
|
55
|
+
if (protocol_1.isSetResolvedNavigationTargets(response)) {
|
|
56
|
+
return response;
|
|
57
|
+
}
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
60
|
+
requestResolution(target) {
|
|
61
|
+
return this.dispatcher.request(new protocol_1.ResolveNavigationTargetAction(target));
|
|
158
62
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
NavigationTargetResolver.prototype.resolveWithSourceUri = function (sourceUri, target) {
|
|
176
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
177
|
-
var targetUri, response;
|
|
178
|
-
return __generator(this, function (_a) {
|
|
179
|
-
switch (_a.label) {
|
|
180
|
-
case 0:
|
|
181
|
-
targetUri = decodeURIComponent(target.uri);
|
|
182
|
-
if (sourceUri && sourceUri !== targetUri && "file://" + sourceUri !== targetUri) {
|
|
183
|
-
// different URI, so we can't resolve it locally
|
|
184
|
-
this.logger.info("Source and Target URI are different. Can't resolve locally.", sourceUri, targetUri);
|
|
185
|
-
return [2 /*return*/, undefined];
|
|
186
|
-
}
|
|
187
|
-
if (NavigationTarget.getElementIds(target).length > 0) {
|
|
188
|
-
return [2 /*return*/, new SetResolvedNavigationTargetAction(NavigationTarget.getElementIds(target))];
|
|
189
|
-
}
|
|
190
|
-
return [4 /*yield*/, this.requestResolution(target)];
|
|
191
|
-
case 1:
|
|
192
|
-
response = _a.sent();
|
|
193
|
-
if (isSetResolvedNavigationTargets(response)) {
|
|
194
|
-
return [2 /*return*/, response];
|
|
195
|
-
}
|
|
196
|
-
return [2 /*return*/, undefined];
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
});
|
|
200
|
-
};
|
|
201
|
-
NavigationTargetResolver.prototype.requestResolution = function (target) {
|
|
202
|
-
return this.dispatcher.request(new ResolveNavigationTargetAction(target));
|
|
203
|
-
};
|
|
204
|
-
__decorate([
|
|
205
|
-
inversify_1.inject(types_1.GLSP_TYPES.IEditorContextServiceProvider),
|
|
206
|
-
__metadata("design:type", Function)
|
|
207
|
-
], NavigationTargetResolver.prototype, "editorContextService", void 0);
|
|
208
|
-
__decorate([
|
|
209
|
-
inversify_1.inject(sprotty_1.TYPES.IActionDispatcher),
|
|
210
|
-
__metadata("design:type", Object)
|
|
211
|
-
], NavigationTargetResolver.prototype, "dispatcher", void 0);
|
|
212
|
-
__decorate([
|
|
213
|
-
inversify_1.inject(sprotty_1.TYPES.ILogger),
|
|
214
|
-
__metadata("design:type", Object)
|
|
215
|
-
], NavigationTargetResolver.prototype, "logger", void 0);
|
|
216
|
-
NavigationTargetResolver = __decorate([
|
|
217
|
-
inversify_1.injectable()
|
|
218
|
-
], NavigationTargetResolver);
|
|
219
|
-
return NavigationTargetResolver;
|
|
220
|
-
}());
|
|
63
|
+
};
|
|
64
|
+
__decorate([
|
|
65
|
+
inversify_1.inject(types_1.GLSP_TYPES.IEditorContextServiceProvider),
|
|
66
|
+
__metadata("design:type", Function)
|
|
67
|
+
], NavigationTargetResolver.prototype, "editorContextService", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
inversify_1.inject(sprotty_1.TYPES.IActionDispatcher),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], NavigationTargetResolver.prototype, "dispatcher", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
inversify_1.inject(sprotty_1.TYPES.ILogger),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], NavigationTargetResolver.prototype, "logger", void 0);
|
|
76
|
+
NavigationTargetResolver = __decorate([
|
|
77
|
+
inversify_1.injectable()
|
|
78
|
+
], NavigationTargetResolver);
|
|
221
79
|
exports.NavigationTargetResolver = NavigationTargetResolver;
|
|
222
80
|
//# sourceMappingURL=navigation-target-resolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-target-resolver.js","sourceRoot":"","sources":["../../../src/features/navigation/navigation-target-resolver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"navigation-target-resolver.js","sourceRoot":"","sources":["../../../src/features/navigation/navigation-target-resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAKgC;AAChC,yCAA+C;AAC/C,qCAA4E;AAE5E,4CAA8C;AAE9C;;;;;GAKG;AAEH,IAAa,wBAAwB,GAArC,MAAa,wBAAwB;IAKjC,KAAK,CAAC,OAAO,CAAC,gBAAkC;QAC5C,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,oBAAoB,EAAE,CAAC;QACzD,MAAM,SAAS,GAAG,MAAM,cAAc,CAAC,YAAY,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;IAClE,CAAC;IAED,KAAK,CAAC,oBAAoB,CACtB,SAA6B,EAC7B,MAAwB;QAExB,MAAM,SAAS,GAAG,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACjD,IAAI,SAAS,IAAI,SAAS,KAAK,SAAS,IAAI,UAAU,SAAS,EAAE,KAAK,SAAS,EAAE;YAC7E,gDAAgD;YAChD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,6DAA6D,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;YACtG,OAAO,SAAS,CAAC;SACpB;QACD,IAAI,2BAAgB,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACnD,OAAO,IAAI,4CAAiC,CAAC,2BAAgB,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;SACxF;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,yCAA8B,CAAC,QAAQ,CAAC,EAAE;YAC1C,OAAO,QAAQ,CAAC;SACnB;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;IAES,iBAAiB,CAAC,MAAwB;QAChD,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,wCAA6B,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9E,CAAC;CACJ,CAAA;AAjCqD;IAAjD,kBAAM,CAAC,kBAAU,CAAC,6BAA6B,CAAC;;sEAA8D;AAC9E;IAAhC,kBAAM,CAAC,eAAK,CAAC,iBAAiB,CAAC;;4DAAyC;AAClD;IAAtB,kBAAM,CAAC,eAAK,CAAC,OAAO,CAAC;;wDAAoC;AAHjD,wBAAwB;IADpC,sBAAU,EAAE;GACA,wBAAwB,CAkCpC;AAlCY,4DAAwB"}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020 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
1
|
import 'mocha';
|
|
17
2
|
import 'reflect-metadata';
|
|
18
3
|
//# sourceMappingURL=navigation-target-resolver.spec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-target-resolver.spec.d.ts","sourceRoot":"","sources":["../../../src/features/navigation/navigation-target-resolver.spec.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"navigation-target-resolver.spec.d.ts","sourceRoot":"","sources":["../../../src/features/navigation/navigation-target-resolver.spec.ts"],"names":[],"mappings":"AAkBA,OAAO,OAAO,CAAC;AACf,OAAO,kBAAkB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/********************************************************************************
|
|
4
|
-
* Copyright (c) 2020 EclipseSource and others.
|
|
4
|
+
* Copyright (c) 2020-2021 EclipseSource and others.
|
|
5
5
|
*
|
|
6
6
|
* This program and the accompanying materials are made available under the
|
|
7
7
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -16,39 +16,39 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
17
17
|
********************************************************************************/
|
|
18
18
|
/* eslint-disable no-unused-expressions */
|
|
19
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
20
|
+
const chai_1 = require("chai");
|
|
19
21
|
require("mocha");
|
|
20
22
|
require("reflect-metadata");
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
navigation_target_resolver_1.NavigationTarget.setElementIds(navigationTarget, ['id1', 'id2']);
|
|
27
|
-
chai_1.expect(navigation_target_resolver_1.NavigationTarget.getElementIds(navigationTarget)).to.be.eql(['id1', 'id2']);
|
|
23
|
+
describe('NavigationTarget', () => {
|
|
24
|
+
it('should be able to set and get element IDs', () => {
|
|
25
|
+
const navigationTarget = { uri: 'uri' };
|
|
26
|
+
protocol_1.NavigationTarget.setElementIds(navigationTarget, ['id1', 'id2']);
|
|
27
|
+
chai_1.expect(protocol_1.NavigationTarget.getElementIds(navigationTarget)).to.be.eql(['id1', 'id2']);
|
|
28
28
|
});
|
|
29
|
-
it('should be able to set and get textual positions',
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
chai_1.expect(
|
|
29
|
+
it('should be able to set and get textual positions', () => {
|
|
30
|
+
const navigationTarget = { uri: 'uri' };
|
|
31
|
+
protocol_1.NavigationTarget.setTextPosition(navigationTarget, { line: 1, character: 2 });
|
|
32
|
+
chai_1.expect(protocol_1.NavigationTarget.getTextPosition(navigationTarget)).to.be.eql({ line: 1, character: 2 });
|
|
33
33
|
});
|
|
34
|
-
it('should be able to set and get custom query arguments',
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
it('should be able to set and get custom query arguments', () => {
|
|
35
|
+
const navigationTarget = { uri: 'uri' };
|
|
36
|
+
protocol_1.NavigationTarget.addArgument(navigationTarget, 'name', 'test');
|
|
37
37
|
chai_1.expect(navigationTarget.args.name).to.be.eql('test');
|
|
38
38
|
});
|
|
39
|
-
it('should specify whether it has arguments',
|
|
40
|
-
|
|
41
|
-
chai_1.expect(
|
|
42
|
-
|
|
43
|
-
chai_1.expect(
|
|
39
|
+
it('should specify whether it has arguments', () => {
|
|
40
|
+
let navigationTarget = { uri: 'uri' };
|
|
41
|
+
chai_1.expect(protocol_1.NavigationTarget.hasArguments(navigationTarget)).to.be.false;
|
|
42
|
+
protocol_1.NavigationTarget.addArgument(navigationTarget, 'name', 'test');
|
|
43
|
+
chai_1.expect(protocol_1.NavigationTarget.hasArguments(navigationTarget)).to.be.true;
|
|
44
44
|
navigationTarget = { uri: 'uri' };
|
|
45
|
-
chai_1.expect(
|
|
46
|
-
|
|
47
|
-
chai_1.expect(
|
|
45
|
+
chai_1.expect(protocol_1.NavigationTarget.hasArguments(navigationTarget)).to.be.false;
|
|
46
|
+
protocol_1.NavigationTarget.setElementIds(navigationTarget, ['id1', 'id2']);
|
|
47
|
+
chai_1.expect(protocol_1.NavigationTarget.hasArguments(navigationTarget)).to.be.true;
|
|
48
48
|
navigationTarget = { uri: 'uri' };
|
|
49
|
-
chai_1.expect(
|
|
50
|
-
|
|
51
|
-
chai_1.expect(
|
|
49
|
+
chai_1.expect(protocol_1.NavigationTarget.hasArguments(navigationTarget)).to.be.false;
|
|
50
|
+
protocol_1.NavigationTarget.setTextPosition(navigationTarget, { line: 1, character: 2 });
|
|
51
|
+
chai_1.expect(protocol_1.NavigationTarget.hasArguments(navigationTarget)).to.be.true;
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
//# sourceMappingURL=navigation-target-resolver.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-target-resolver.spec.js","sourceRoot":"","sources":["../../../src/features/navigation/navigation-target-resolver.spec.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,0CAA0C;AAC1C,iBAAe;AACf,4BAA0B;AAE1B,
|
|
1
|
+
{"version":3,"file":"navigation-target-resolver.spec.js","sourceRoot":"","sources":["../../../src/features/navigation/navigation-target-resolver.spec.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,0CAA0C;AAC1C,qDAA0D;AAC1D,+BAA8B;AAC9B,iBAAe;AACf,4BAA0B;AAE1B,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACjD,MAAM,gBAAgB,GAAqB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;QAC1D,2BAAgB,CAAC,aAAa,CAAC,gBAAgB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;QACjE,aAAM,CAAC,2BAAgB,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;IACvF,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;QACvD,MAAM,gBAAgB,GAAqB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;QAC1D,2BAAgB,CAAC,eAAe,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;QAC9E,aAAM,CAAC,2BAAgB,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;IACpG,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;QAC5D,MAAM,gBAAgB,GAAqB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;QAC1D,2BAAgB,CAAC,WAAW,CAAC,gBAAgB,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAC/D,aAAM,CAAC,gBAAgB,CAAC,IAAK,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yCAAyC,EAAE,GAAG,EAAE;QAC/C,IAAI,gBAAgB,GAAqB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;QACxD,aAAM,CAAC,2BAAgB,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QACpE,2BAAgB,CAAC,WAAW,CAAC,gBAAgB,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAC/D,aAAM,CAAC,2BAAgB,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAEnE,gBAAgB,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;QAClC,aAAM,CAAC,2BAAgB,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QACpE,2BAAgB,CAAC,aAAa,CAAC,gBAAgB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;QACjE,aAAM,CAAC,2BAAgB,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAEnE,gBAAgB,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;QAClC,aAAM,CAAC,2BAAgB,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QACpE,2BAAgB,CAAC,eAAe,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;QAC9E,aAAM,CAAC,2BAAgB,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACvE,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2019-2021 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/********************************************************************************
|
|
3
|
-
* Copyright (c) 2019 EclipseSource and others.
|
|
3
|
+
* Copyright (c) 2019-2021 EclipseSource and others.
|
|
4
4
|
*
|
|
5
5
|
* This program and the accompanying materials are made available under the
|
|
6
6
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.getRank = exports.isRanked = exports.DEFAULT_RANK = void 0;
|
|
19
19
|
exports.DEFAULT_RANK = 0;
|
|
20
20
|
function isRanked(arg) {
|
|
21
|
-
return arg !== undefined && arg.rank !== undefined && typeof
|
|
21
|
+
return arg !== undefined && arg.rank !== undefined && typeof arg.rank === 'number';
|
|
22
22
|
}
|
|
23
23
|
exports.isRanked = isRanked;
|
|
24
24
|
function getRank(arg) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/features/rank/model.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAErE,QAAA,YAAY,GAAG,CAAC,CAAC;AAM9B,SAAgB,QAAQ,CAAC,GAAQ;IAC7B,OAAO,GAAG,KAAK,SAAS,IAAI,GAAG,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/features/rank/model.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAErE,QAAA,YAAY,GAAG,CAAC,CAAC;AAM9B,SAAgB,QAAQ,CAAC,GAAQ;IAC7B,OAAO,GAAG,KAAK,SAAS,IAAI,GAAG,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,CAAC;AACvF,CAAC;AAFD,4BAEC;AAED,SAAgB,OAAO,CAAC,GAAQ;IAC5B,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAY,CAAC;AACnD,CAAC;AAFD,0BAEC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2019-2021 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/features/reconnect/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAGH,iBAAiB,EAEjB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,cAAc,EACjB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,gBAAgB,eAA6B,CAAC;AAE3D,MAAM,WAAW,aAAc,SAAQ,eAAe;
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/features/reconnect/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAGH,iBAAiB,EAEjB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,cAAc,EACjB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,gBAAgB,eAA6B,CAAC;AAE3D,MAAM,WAAW,aAAc,SAAQ,eAAe;CAAG;AAEzD,wBAAgB,eAAe,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,IAAI,gBAAgB,GAAG,aAAa,CAEnG;AAID,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,SAAS,GAAG,OAAO,IAAI,gBAAgB,CAEjG;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAInE;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAEtE;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,GAAG,OAAO,CAEtG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,GAAG,OAAO,CAEtG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,GAAG,gBAAgB,CAUlI;AAED,qBAAa,gBAAiB,SAAQ,cAAc;IAChD,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;CAGvC"}
|
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
extendStatics(d, b);
|
|
11
|
-
function __() { this.constructor = d; }
|
|
12
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
-
};
|
|
14
|
-
})();
|
|
15
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
3
|
exports.SReconnectHandle = exports.createReconnectHandle = exports.isTargetRoutingHandle = exports.isSourceRoutingHandle = exports.removeReconnectHandles = exports.addReconnectHandles = exports.isReconnectHandle = exports.isReconnectable = exports.reconnectFeature = void 0;
|
|
17
4
|
/********************************************************************************
|
|
18
|
-
* Copyright (c) 2019 EclipseSource and others.
|
|
5
|
+
* Copyright (c) 2019-2021 EclipseSource and others.
|
|
19
6
|
*
|
|
20
7
|
* This program and the accompanying materials are made available under the
|
|
21
8
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -29,13 +16,13 @@ exports.SReconnectHandle = exports.createReconnectHandle = exports.isTargetRouti
|
|
|
29
16
|
*
|
|
30
17
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
31
18
|
********************************************************************************/
|
|
32
|
-
|
|
19
|
+
const sprotty_1 = require("sprotty");
|
|
33
20
|
exports.reconnectFeature = Symbol('reconnectFeature');
|
|
34
21
|
function isReconnectable(element) {
|
|
35
22
|
return element instanceof sprotty_1.SRoutableElement && element.hasFeature(exports.reconnectFeature);
|
|
36
23
|
}
|
|
37
24
|
exports.isReconnectable = isReconnectable;
|
|
38
|
-
|
|
25
|
+
const ROUTING_HANDLE_SOURCE_INDEX = -2;
|
|
39
26
|
function isReconnectHandle(element) {
|
|
40
27
|
return element !== undefined && element instanceof SReconnectHandle;
|
|
41
28
|
}
|
|
@@ -47,7 +34,7 @@ function addReconnectHandles(element) {
|
|
|
47
34
|
}
|
|
48
35
|
exports.addReconnectHandles = addReconnectHandles;
|
|
49
36
|
function removeReconnectHandles(element) {
|
|
50
|
-
element.removeAll(
|
|
37
|
+
element.removeAll(child => child instanceof SReconnectHandle);
|
|
51
38
|
}
|
|
52
39
|
exports.removeReconnectHandles = removeReconnectHandles;
|
|
53
40
|
function isSourceRoutingHandle(edge, routingHandle) {
|
|
@@ -59,7 +46,7 @@ function isTargetRoutingHandle(edge, routingHandle) {
|
|
|
59
46
|
}
|
|
60
47
|
exports.isTargetRoutingHandle = isTargetRoutingHandle;
|
|
61
48
|
function createReconnectHandle(edge, kind, routingPointIndex) {
|
|
62
|
-
|
|
49
|
+
const handle = new SReconnectHandle();
|
|
63
50
|
handle.kind = kind;
|
|
64
51
|
handle.pointIndex = routingPointIndex;
|
|
65
52
|
handle.type = 'routing-point';
|
|
@@ -70,15 +57,10 @@ function createReconnectHandle(edge, kind, routingPointIndex) {
|
|
|
70
57
|
return handle;
|
|
71
58
|
}
|
|
72
59
|
exports.createReconnectHandle = createReconnectHandle;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
60
|
+
class SReconnectHandle extends sprotty_1.SRoutingHandle {
|
|
61
|
+
hasFeature(feature) {
|
|
62
|
+
return feature !== sprotty_1.selectFeature && super.hasFeature(feature);
|
|
77
63
|
}
|
|
78
|
-
|
|
79
|
-
return feature !== sprotty_1.selectFeature && _super.prototype.hasFeature.call(this, feature);
|
|
80
|
-
};
|
|
81
|
-
return SReconnectHandle;
|
|
82
|
-
}(sprotty_1.SRoutingHandle));
|
|
64
|
+
}
|
|
83
65
|
exports.SReconnectHandle = SReconnectHandle;
|
|
84
66
|
//# sourceMappingURL=model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/features/reconnect/model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/features/reconnect/model.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qCASiB;AAEJ,QAAA,gBAAgB,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAI3D,SAAgB,eAAe,CAAC,OAAsB;IAClD,OAAO,OAAO,YAAY,0BAAgB,IAAI,OAAO,CAAC,UAAU,CAAC,wBAAgB,CAAC,CAAC;AACvF,CAAC;AAFD,0CAEC;AAED,MAAM,2BAA2B,GAAG,CAAC,CAAC,CAAC;AAEvC,SAAgB,iBAAiB,CAAC,OAAkC;IAChE,OAAO,OAAO,KAAK,SAAS,IAAI,OAAO,YAAY,gBAAgB,CAAC;AACxE,CAAC;AAFD,8CAEC;AAED,SAAgB,mBAAmB,CAAC,OAAyB;IACzD,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAChC,qBAAqB,CAAC,OAAO,EAAE,QAAQ,EAAE,2BAA2B,CAAC,CAAC;IACtE,qBAAqB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AAC3E,CAAC;AAJD,kDAIC;AAED,SAAgB,sBAAsB,CAAC,OAAyB;IAC5D,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,YAAY,gBAAgB,CAAC,CAAC;AAClE,CAAC;AAFD,wDAEC;AAED,SAAgB,qBAAqB,CAAC,IAAsB,EAAE,aAA+B;IACzF,OAAO,aAAa,CAAC,UAAU,KAAK,2BAA2B,CAAC;AACpE,CAAC;AAFD,sDAEC;AAED,SAAgB,qBAAqB,CAAC,IAAsB,EAAE,aAA+B;IACzF,OAAO,aAAa,CAAC,UAAU,KAAK,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;AAClE,CAAC;AAFD,sDAEC;AAED,SAAgB,qBAAqB,CAAC,IAAsB,EAAE,IAAuB,EAAE,iBAAyB;IAC5G,MAAM,MAAM,GAAG,IAAI,gBAAgB,EAAE,CAAC;IACtC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,MAAM,CAAC,UAAU,GAAG,iBAAiB,CAAC;IACtC,MAAM,CAAC,IAAI,GAAG,eAAe,CAAC;IAC9B,IAAI,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,EAAE,KAAK,0BAAgB,EAAE;QACnD,MAAM,CAAC,EAAE,GAAG,sCAA4B,CAAC;KAC5C;IACD,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACjB,OAAO,MAAM,CAAC;AAClB,CAAC;AAVD,sDAUC;AAED,MAAa,gBAAiB,SAAQ,wBAAc;IAChD,UAAU,CAAC,OAAe;QACtB,OAAO,OAAO,KAAK,uBAAa,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;CACJ;AAJD,4CAIC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2019-2021 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/save/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAK5C;;;GAGG;AACH,QAAA,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/save/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAK5C;;;GAGG;AACH,QAAA,MAAM,UAAU,iBAEd,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/********************************************************************************
|
|
4
|
-
* Copyright (c) 2019 EclipseSource and others.
|
|
4
|
+
* Copyright (c) 2019-2021 EclipseSource and others.
|
|
5
5
|
*
|
|
6
6
|
* This program and the accompanying materials are made available under the
|
|
7
7
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -15,15 +15,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
*
|
|
16
16
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
17
17
|
********************************************************************************/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
const inversify_1 = require("inversify");
|
|
19
|
+
const sprotty_1 = require("sprotty");
|
|
20
|
+
const save_keylistener_1 = require("./save-keylistener");
|
|
21
21
|
/**
|
|
22
22
|
* This module is not required the diagram is deployed in Theia with the `GLSPDiagramWidget`
|
|
23
23
|
* but only intended to be used in a standalone deployment of GLSP.
|
|
24
24
|
*/
|
|
25
|
-
|
|
26
|
-
bind(sprotty_1.TYPES.KeyListener).to(
|
|
25
|
+
const saveModule = new inversify_1.ContainerModule(bind => {
|
|
26
|
+
bind(sprotty_1.TYPES.KeyListener).to(save_keylistener_1.SaveModelKeyboardListener);
|
|
27
27
|
});
|
|
28
28
|
exports.default = saveModule;
|
|
29
29
|
//# sourceMappingURL=di.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/save/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/save/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,qCAAgC;AAEhC,yDAA+D;AAE/D;;;GAGG;AACH,MAAM,UAAU,GAAG,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IAC1C,IAAI,CAAC,eAAK,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,4CAAyB,CAAC,CAAC;AAC1D,CAAC,CAAC,CAAC;AAEH,kBAAe,UAAU,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2019-2021 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,15 +13,9 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { Action
|
|
17
|
-
|
|
18
|
-
readonly fileUri?: string | undefined;
|
|
19
|
-
readonly kind: string;
|
|
20
|
-
static readonly KIND = "saveModel";
|
|
21
|
-
constructor(fileUri?: string | undefined, kind?: string);
|
|
22
|
-
}
|
|
23
|
-
export declare function isSaveModelAction(action: Action): action is SaveModelAction;
|
|
16
|
+
import { Action } from '@eclipse-glsp/protocol';
|
|
17
|
+
import { KeyListener, SModelRoot } from 'sprotty';
|
|
24
18
|
export declare class SaveModelKeyboardListener extends KeyListener {
|
|
25
19
|
keyDown(_element: SModelRoot, event: KeyboardEvent): Action[];
|
|
26
20
|
}
|
|
27
|
-
//# sourceMappingURL=save.d.ts.map
|
|
21
|
+
//# sourceMappingURL=save-keylistener.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"save-keylistener.d.ts","sourceRoot":"","sources":["../../../src/features/save/save-keylistener.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAmB,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGlD,qBAAa,yBAA0B,SAAQ,WAAW;IACtD,OAAO,CAAC,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,GAAG,MAAM,EAAE;CAMhE"}
|