@eclipse-glsp/client 0.9.0 → 0.10.0-next.17bfb07.173
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 +110 -8
- package/lib/base/action-dispatcher.d.ts +4 -3
- package/lib/base/action-dispatcher.d.ts.map +1 -1
- package/lib/base/action-dispatcher.js +22 -12
- package/lib/base/action-dispatcher.js.map +1 -1
- package/lib/base/actions/focus-change-action.d.ts +16 -7
- package/lib/base/actions/focus-change-action.d.ts.map +1 -1
- package/lib/base/actions/focus-change-action.js +31 -12
- package/lib/base/actions/focus-change-action.js.map +1 -1
- package/lib/base/actions/sprotty-actions.d.ts +7 -0
- package/lib/base/actions/sprotty-actions.d.ts.map +1 -0
- package/lib/{features/tool-palette/palette-item.js → base/actions/sprotty-actions.js} +4 -20
- package/lib/base/actions/sprotty-actions.js.map +1 -0
- package/lib/base/auto-complete/auto-complete-actions.d.ts +5 -3
- package/lib/base/auto-complete/auto-complete-actions.d.ts.map +1 -1
- package/lib/base/auto-complete/auto-complete-actions.js +24 -5
- package/lib/base/auto-complete/auto-complete-actions.js.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.d.ts +9 -2
- package/lib/base/auto-complete/auto-complete-widget.d.ts.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.js +16 -9
- package/lib/base/auto-complete/auto-complete-widget.js.map +1 -1
- package/lib/base/auto-complete/validation-decorator.js +2 -2
- 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 +6 -5
- package/lib/base/command-stack.js.map +1 -1
- package/lib/base/container-modules.d.ts.map +1 -1
- package/lib/base/container-modules.js +2 -1
- package/lib/base/container-modules.js.map +1 -1
- package/lib/base/di.config.d.ts +1 -1
- package/lib/base/di.config.d.ts.map +1 -1
- package/lib/base/di.config.js +13 -14
- package/lib/base/di.config.js.map +1 -1
- package/lib/base/drag-aware-mouse-listener.d.ts +1 -1
- package/lib/base/drag-aware-mouse-listener.d.ts.map +1 -1
- package/lib/base/drag-aware-mouse-listener.js.map +1 -1
- package/lib/base/editor-context-service.d.ts +18 -5
- package/lib/base/editor-context-service.d.ts.map +1 -1
- package/lib/base/editor-context-service.js +39 -22
- package/lib/base/editor-context-service.js.map +1 -1
- package/lib/base/focus-tracker.d.ts +1 -1
- package/lib/base/focus-tracker.d.ts.map +1 -1
- package/lib/base/focus-tracker.js +4 -4
- package/lib/base/focus-tracker.js.map +1 -1
- package/lib/base/model/model-registry.d.ts.map +1 -1
- package/lib/base/model/model-registry.js +2 -2
- package/lib/base/model/model-registry.js.map +1 -1
- package/lib/base/model/update-model-command.d.ts +1 -1
- package/lib/base/model/update-model-command.d.ts.map +1 -1
- package/lib/base/model/update-model-command.js +15 -15
- package/lib/base/model/update-model-command.js.map +1 -1
- package/lib/base/model-initialization-constraint.d.ts +4 -5
- package/lib/base/model-initialization-constraint.d.ts.map +1 -1
- package/lib/base/model-initialization-constraint.js +11 -13
- package/lib/base/model-initialization-constraint.js.map +1 -1
- package/lib/base/selection-clearing-mouse-listener.d.ts.map +1 -1
- package/lib/base/selection-clearing-mouse-listener.js +1 -1
- package/lib/base/selection-clearing-mouse-listener.js.map +1 -1
- package/lib/base/source-uri-aware.d.ts +2 -17
- package/lib/base/source-uri-aware.d.ts.map +1 -1
- package/lib/base/source-uri-aware.js +4 -6
- 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 +10 -10
- package/lib/base/tool-manager/glsp-tool-manager.js.map +1 -1
- package/lib/base/tool-manager/tool-actions.d.ts +14 -0
- package/lib/base/tool-manager/tool-actions.d.ts.map +1 -0
- package/lib/base/tool-manager/tool-actions.js +25 -0
- package/lib/base/tool-manager/tool-actions.js.map +1 -0
- package/lib/base/types.d.ts +144 -20
- package/lib/base/types.d.ts.map +1 -1
- package/lib/base/types.js +14 -26
- package/lib/base/types.js.map +1 -1
- package/lib/base/view/view-registry.d.ts.map +1 -1
- package/lib/base/view/view-registry.js +2 -2
- package/lib/base/view/view-registry.js.map +1 -1
- package/lib/features/change-bounds/model.d.ts +1 -1
- package/lib/features/change-bounds/model.d.ts.map +1 -1
- package/lib/features/change-bounds/model.js +3 -3
- package/lib/features/change-bounds/model.js.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.d.ts +37 -7
- package/lib/features/change-bounds/movement-restrictor.d.ts.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.js +55 -40
- package/lib/features/change-bounds/movement-restrictor.js.map +1 -1
- package/lib/features/change-bounds/snap.d.ts +42 -2
- package/lib/features/change-bounds/snap.d.ts.map +1 -1
- package/lib/features/change-bounds/snap.js +78 -2
- package/lib/features/change-bounds/snap.js.map +1 -1
- package/lib/features/change-bounds/snap.spec.d.ts +17 -0
- package/lib/features/change-bounds/snap.spec.d.ts.map +1 -0
- package/lib/features/change-bounds/snap.spec.js +82 -0
- package/lib/features/change-bounds/snap.spec.js.map +1 -0
- package/lib/features/command-palette/command-palette-tool.js +3 -3
- package/lib/features/command-palette/command-palette-tool.js.map +1 -1
- package/lib/features/command-palette/di.config.d.ts +2 -2
- package/lib/features/command-palette/di.config.d.ts.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 +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 +13 -10
- package/lib/features/command-palette/server-command-palette-provider.js.map +1 -1
- package/lib/features/context-menu/delete-element-context-menu.d.ts +17 -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 +4 -4
- 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 -7
- 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 +33 -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 +41 -28
- 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 +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 +8 -7
- package/lib/features/context-menu/server-context-menu-provider.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts +12 -15
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.js +26 -33
- package/lib/features/copy-paste/copy-paste-context-menu.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.d.ts +1 -1
- package/lib/features/copy-paste/copy-paste-handler.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.js +10 -11
- 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 +5 -7
- package/lib/features/copy-paste/di.config.js.map +1 -1
- package/lib/features/decoration/decoration-placer.d.ts +1 -1
- package/lib/features/decoration/decoration-placer.d.ts.map +1 -1
- package/lib/features/decoration/decoration-placer.js +19 -3
- package/lib/features/decoration/decoration-placer.js.map +1 -1
- package/lib/features/decoration/di.config.d.ts +2 -2
- package/lib/features/decoration/di.config.d.ts.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.d.ts +1 -1
- package/lib/features/edit-label/di.config.d.ts.map +1 -1
- package/lib/features/edit-label/di.config.js +5 -5
- package/lib/features/edit-label/di.config.js.map +1 -1
- package/lib/features/edit-label/edit-label-tool.d.ts.map +1 -1
- package/lib/features/edit-label/edit-label-tool.js +2 -2
- package/lib/features/edit-label/edit-label-tool.js.map +1 -1
- package/lib/features/edit-label/edit-label-validator.d.ts +4 -6
- package/lib/features/edit-label/edit-label-validator.d.ts.map +1 -1
- package/lib/features/edit-label/edit-label-validator.js +11 -13
- package/lib/features/edit-label/edit-label-validator.js.map +1 -1
- package/lib/features/hints/di.config.js +4 -4
- package/lib/features/hints/di.config.js.map +1 -1
- package/lib/features/hints/type-hints.d.ts +15 -5
- package/lib/features/hints/type-hints.d.ts.map +1 -1
- package/lib/features/hints/type-hints.js +29 -26
- 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 +14 -10
- package/lib/features/hover/di.config.js.map +1 -1
- package/lib/features/hover/hover.d.ts +16 -4
- package/lib/features/hover/hover.d.ts.map +1 -1
- package/lib/features/hover/hover.js +42 -4
- package/lib/features/hover/hover.js.map +1 -1
- package/lib/features/layout/di.config.d.ts +3 -3
- package/lib/features/layout/di.config.d.ts.map +1 -1
- package/lib/features/layout/di.config.js +11 -7
- package/lib/features/layout/di.config.js.map +1 -1
- package/lib/features/layout/freeform-layout.d.ts +17 -1
- package/lib/features/layout/freeform-layout.d.ts.map +1 -1
- package/lib/features/layout/freeform-layout.js +4 -4
- package/lib/features/layout/freeform-layout.js.map +1 -1
- package/lib/features/layout/hbox-layout.d.ts +41 -0
- package/lib/features/layout/hbox-layout.d.ts.map +1 -0
- package/lib/features/layout/hbox-layout.js +189 -0
- package/lib/features/layout/hbox-layout.js.map +1 -0
- package/lib/features/layout/layout-elements-action.d.ts +198 -0
- package/lib/features/layout/layout-elements-action.d.ts.map +1 -0
- package/lib/features/layout/layout-elements-action.js +391 -0
- package/lib/features/layout/layout-elements-action.js.map +1 -0
- package/lib/features/layout/layout-elements-action.spec.d.ts +3 -0
- package/lib/features/layout/layout-elements-action.spec.d.ts.map +1 -0
- package/lib/features/layout/{layout-commands.spec.js → layout-elements-action.spec.js} +81 -62
- package/lib/features/layout/layout-elements-action.spec.js.map +1 -0
- package/lib/features/layout/vbox-layout.d.ts +17 -1
- package/lib/features/layout/vbox-layout.d.ts.map +1 -1
- package/lib/features/layout/vbox-layout.js +9 -8
- package/lib/features/layout/vbox-layout.js.map +1 -1
- package/lib/features/model-source-watcher/di.config.js +1 -1
- 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 +1 -1
- 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 +11 -11
- package/lib/features/model-source-watcher/model-source-changed-action-handler.js.map +1 -1
- package/lib/features/mouse-tool/di.config.d.ts +1 -1
- package/lib/features/mouse-tool/di.config.d.ts.map +1 -1
- package/lib/features/mouse-tool/di.config.js +2 -2
- package/lib/features/mouse-tool/di.config.js.map +1 -1
- package/lib/features/mouse-tool/mouse-tool.d.ts +9 -5
- package/lib/features/mouse-tool/mouse-tool.d.ts.map +1 -1
- package/lib/features/mouse-tool/mouse-tool.js +11 -53
- package/lib/features/mouse-tool/mouse-tool.js.map +1 -1
- package/lib/features/navigation/di.config.js +4 -4
- package/lib/features/navigation/di.config.js.map +1 -1
- package/lib/features/navigation/navigation-action-handler.d.ts +31 -16
- package/lib/features/navigation/navigation-action-handler.d.ts.map +1 -1
- package/lib/features/navigation/navigation-action-handler.js +52 -68
- package/lib/features/navigation/navigation-action-handler.js.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.d.ts +3 -3
- package/lib/features/navigation/navigation-target-resolver.d.ts.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.js +9 -10
- package/lib/features/navigation/navigation-target-resolver.js.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.spec.js +12 -12
- package/lib/features/navigation/navigation-target-resolver.spec.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 +1 -1
- 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 +3 -3
- package/lib/features/save/di.config.js.map +1 -1
- package/lib/features/save/save-keylistener.d.ts +1 -1
- package/lib/features/save/save-keylistener.d.ts.map +1 -1
- package/lib/features/save/save-keylistener.js +3 -3
- package/lib/features/save/save-keylistener.js.map +1 -1
- package/lib/features/select/di.config.d.ts +1 -1
- package/lib/features/select/di.config.d.ts.map +1 -1
- package/lib/features/select/di.config.js +7 -8
- package/lib/features/select/di.config.js.map +1 -1
- package/lib/features/select/select-feedback-action.d.ts +26 -22
- package/lib/features/select/select-feedback-action.d.ts.map +1 -1
- package/lib/features/select/select-feedback-action.js +19 -46
- package/lib/features/select/select-feedback-action.js.map +1 -1
- package/lib/features/select/select-mouse-listener.d.ts +1 -1
- package/lib/features/select/select-mouse-listener.d.ts.map +1 -1
- package/lib/features/select/select-mouse-listener.js +1 -1
- package/lib/features/select/select-mouse-listener.js.map +1 -1
- package/lib/features/select/selection-service.d.ts +14 -5
- package/lib/features/select/selection-service.d.ts.map +1 -1
- package/lib/features/select/selection-service.js +55 -64
- package/lib/features/select/selection-service.js.map +1 -1
- package/lib/features/select/selection-service.spec.js +28 -25
- package/lib/features/select/selection-service.spec.js.map +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts +17 -9
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js +68 -38
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts +24 -12
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.js +88 -35
- package/lib/features/tool-feedback/creation-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/css-feedback.d.ts +17 -10
- package/lib/features/tool-feedback/css-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/css-feedback.js +42 -38
- 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 +18 -18
- package/lib/features/tool-feedback/di.config.js.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts +45 -22
- 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 -114
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/feedback-action-dispatcher.d.ts +2 -2
- package/lib/features/tool-feedback/feedback-action-dispatcher.d.ts.map +1 -1
- package/lib/features/tool-feedback/feedback-action-dispatcher.js +4 -4
- package/lib/features/tool-feedback/feedback-action-dispatcher.js.map +1 -1
- package/lib/features/tool-feedback/marquee-tool-feedback.d.ts +21 -10
- package/lib/features/tool-feedback/marquee-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/marquee-tool-feedback.js +44 -18
- package/lib/features/tool-feedback/marquee-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/model.d.ts +1 -2
- package/lib/features/tool-feedback/model.d.ts.map +1 -1
- package/lib/features/tool-feedback/model.js +1 -1
- package/lib/features/tool-feedback/model.js.map +1 -1
- package/lib/features/tool-feedback/view.d.ts +1 -1
- package/lib/features/tool-feedback/view.d.ts.map +1 -1
- package/lib/features/tool-feedback/view.js +22 -5
- 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 +5 -4
- package/lib/features/tool-palette/di.config.js.map +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts +10 -7
- package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette.js +39 -32
- package/lib/features/tool-palette/tool-palette.js.map +1 -1
- package/lib/features/tools/base-glsp-tool.d.ts +3 -3
- package/lib/features/tools/base-glsp-tool.d.ts.map +1 -1
- package/lib/features/tools/base-glsp-tool.js +11 -11
- package/lib/features/tools/base-glsp-tool.js.map +1 -1
- package/lib/features/tools/change-bounds-tool.d.ts +7 -9
- package/lib/features/tools/change-bounds-tool.d.ts.map +1 -1
- package/lib/features/tools/change-bounds-tool.js +48 -71
- package/lib/features/tools/change-bounds-tool.js.map +1 -1
- package/lib/features/tools/delete-tool.d.ts +1 -1
- package/lib/features/tools/delete-tool.d.ts.map +1 -1
- package/lib/features/tools/delete-tool.js +17 -17
- package/lib/features/tools/delete-tool.js.map +1 -1
- package/lib/features/tools/di.config.d.ts +9 -2
- package/lib/features/tools/di.config.d.ts.map +1 -1
- package/lib/features/tools/di.config.js +26 -15
- package/lib/features/tools/di.config.js.map +1 -1
- package/lib/features/tools/edge-creation-tool.d.ts +1 -1
- package/lib/features/tools/edge-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-creation-tool.js +28 -21
- package/lib/features/tools/edge-creation-tool.js.map +1 -1
- package/lib/features/tools/edge-edit-tool.d.ts +3 -2
- package/lib/features/tools/edge-edit-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-edit-tool.js +41 -36
- package/lib/features/tools/edge-edit-tool.js.map +1 -1
- package/lib/features/{tool-palette/palette-item.d.ts → tools/enable-default-tools-on-focus-loss.d.ts} +11 -11
- package/lib/features/tools/enable-default-tools-on-focus-loss.d.ts.map +1 -0
- package/lib/features/tools/enable-default-tools-on-focus-loss.js +29 -0
- package/lib/features/tools/enable-default-tools-on-focus-loss.js.map +1 -0
- package/lib/features/tools/marquee-behavior.d.ts +1 -1
- package/lib/features/tools/marquee-behavior.js +2 -2
- package/lib/features/tools/marquee-behavior.js.map +1 -1
- package/lib/features/tools/marquee-behavior.spec.js +63 -63
- package/lib/features/tools/marquee-behavior.spec.js.map +1 -1
- package/lib/features/tools/marquee-mouse-tool.d.ts +1 -1
- package/lib/features/tools/marquee-mouse-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-mouse-tool.js +20 -20
- package/lib/features/tools/marquee-mouse-tool.js.map +1 -1
- package/lib/features/tools/marquee-tool.d.ts +1 -1
- package/lib/features/tools/marquee-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-tool.js +4 -4
- package/lib/features/tools/marquee-tool.js.map +1 -1
- package/lib/features/tools/model.d.ts +3 -2
- package/lib/features/tools/model.d.ts.map +1 -1
- package/lib/features/tools/model.js +0 -15
- package/lib/features/tools/model.js.map +1 -1
- package/lib/features/tools/node-creation-tool.d.ts +1 -1
- package/lib/features/tools/node-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/node-creation-tool.js +17 -17
- package/lib/features/tools/node-creation-tool.js.map +1 -1
- package/lib/features/tools/view.d.ts.map +1 -1
- package/lib/features/tools/view.js +2 -2
- package/lib/features/tools/view.js.map +1 -1
- package/lib/features/validation/di.config.d.ts +0 -15
- package/lib/features/validation/di.config.d.ts.map +1 -1
- package/lib/features/validation/di.config.js +9 -7
- package/lib/features/validation/di.config.js.map +1 -1
- package/lib/features/validation/marker-navigator.d.ts +27 -25
- package/lib/features/validation/marker-navigator.d.ts.map +1 -1
- package/lib/features/validation/marker-navigator.js +64 -91
- package/lib/features/validation/marker-navigator.js.map +1 -1
- package/lib/features/validation/marker-navigator.spec.d.ts.map +1 -1
- package/lib/features/validation/marker-navigator.spec.js +23 -37
- package/lib/features/validation/marker-navigator.spec.js.map +1 -1
- package/lib/features/validation/validate.d.ts +16 -30
- package/lib/features/validation/validate.d.ts.map +1 -1
- package/lib/features/validation/validate.js +61 -92
- package/lib/features/validation/validate.js.map +1 -1
- package/lib/features/viewport/di.config.d.ts +1 -1
- package/lib/features/viewport/di.config.d.ts.map +1 -1
- package/lib/features/viewport/di.config.js +7 -7
- package/lib/features/viewport/di.config.js.map +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.d.ts +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 -3
- package/lib/features/viewport/glsp-scroll-mouse-listener.js.map +1 -1
- package/lib/index.d.ts +8 -9
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +15 -11
- package/lib/index.js.map +1 -1
- package/lib/lib/model.d.ts +3 -2
- package/lib/lib/model.d.ts.map +1 -1
- package/lib/lib/model.js +3 -18
- package/lib/lib/model.js.map +1 -1
- package/lib/model-source/glsp-diagram-server.d.ts +6 -6
- package/lib/model-source/glsp-diagram-server.d.ts.map +1 -1
- package/lib/model-source/glsp-diagram-server.js +8 -7
- package/lib/model-source/glsp-diagram-server.js.map +1 -1
- package/lib/sprotty-reexport.d.ts +174 -0
- package/lib/sprotty-reexport.d.ts.map +1 -0
- package/lib/sprotty-reexport.js +299 -0
- package/lib/sprotty-reexport.js.map +1 -0
- package/lib/utils/argument-utils.js +5 -5
- package/lib/utils/argument-utils.js.map +1 -1
- package/lib/utils/layout-utils.d.ts +6 -22
- package/lib/utils/layout-utils.d.ts.map +1 -1
- package/lib/utils/layout-utils.js +1 -1
- package/lib/utils/layout-utils.js.map +1 -1
- package/lib/utils/smodel-util.d.ts +117 -11
- package/lib/utils/smodel-util.d.ts.map +1 -1
- package/lib/utils/smodel-util.js +142 -37
- package/lib/utils/smodel-util.js.map +1 -1
- package/lib/utils/viewpoint-util.d.ts +3 -3
- package/lib/utils/viewpoint-util.d.ts.map +1 -1
- package/lib/utils/viewpoint-util.js +19 -3
- 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 +21 -19
- package/lib/views/base-view-module.js.map +1 -1
- package/lib/views/compartments.js +2 -2
- package/lib/views/compartments.js.map +1 -1
- package/lib/views/glsp-edge-view.d.ts +1 -1
- package/lib/views/glsp-edge-view.d.ts.map +1 -1
- package/lib/views/glsp-edge-view.js +1 -1
- package/lib/views/glsp-edge-view.js.map +1 -1
- package/lib/views/index.js +6 -2
- package/lib/views/index.js.map +1 -1
- package/lib/views/issue-marker-view.d.ts.map +1 -1
- package/lib/views/issue-marker-view.js +3 -3
- package/lib/views/issue-marker-view.js.map +1 -1
- package/lib/views/rounded-corner-view.d.ts.map +1 -1
- package/lib/views/rounded-corner-view.js +2 -2
- package/lib/views/rounded-corner-view.js.map +1 -1
- package/package.json +8 -18
- package/src/base/action-dispatcher.ts +26 -16
- package/src/base/actions/focus-change-action.ts +25 -8
- package/src/base/actions/sprotty-actions.ts +26 -0
- package/src/base/auto-complete/auto-complete-actions.ts +7 -5
- package/src/base/auto-complete/auto-complete-widget.ts +15 -13
- package/src/base/command-stack.ts +7 -6
- package/src/base/container-modules.ts +4 -3
- package/src/base/di.config.ts +4 -5
- package/src/base/drag-aware-mouse-listener.ts +4 -4
- package/src/base/editor-context-service.ts +38 -16
- package/src/base/focus-tracker.ts +5 -4
- package/src/base/model/model-registry.ts +2 -2
- package/src/base/model/update-model-command.ts +9 -10
- package/src/base/model-initialization-constraint.ts +9 -11
- package/src/base/selection-clearing-mouse-listener.ts +1 -1
- package/src/base/source-uri-aware.ts +5 -4
- package/src/base/tool-manager/glsp-tool-manager.ts +9 -9
- package/src/base/tool-manager/tool-actions.ts +37 -0
- package/src/base/types.ts +31 -24
- package/src/base/view/view-registry.ts +2 -2
- package/src/features/change-bounds/model.ts +5 -5
- package/src/features/change-bounds/movement-restrictor.ts +74 -44
- package/src/features/change-bounds/snap.spec.ts +89 -0
- package/src/features/change-bounds/snap.ts +86 -3
- package/src/features/command-palette/di.config.ts +5 -7
- package/src/features/command-palette/server-command-palette-provider.ts +9 -8
- package/src/features/context-menu/delete-element-context-menu.ts +6 -6
- package/src/features/context-menu/di.config.ts +3 -2
- package/src/features/context-menu/selection-service-aware-context-menu-mouse-listener.ts +45 -17
- package/src/features/context-menu/server-context-menu-provider.ts +7 -6
- package/src/features/copy-paste/copy-paste-context-menu.ts +30 -23
- package/src/features/copy-paste/copy-paste-handler.ts +6 -6
- package/src/features/copy-paste/di.config.ts +7 -15
- package/src/features/decoration/decoration-placer.ts +4 -4
- package/src/features/decoration/di.config.ts +3 -5
- package/src/features/edit-label/di.config.ts +4 -5
- package/src/features/edit-label/edit-label-tool.ts +1 -2
- package/src/features/edit-label/edit-label-validator.ts +6 -10
- package/src/features/hints/di.config.ts +3 -3
- package/src/features/hints/type-hints.ts +33 -18
- package/src/features/hover/di.config.ts +8 -2
- package/src/features/hover/hover.ts +53 -11
- package/src/features/layout/di.config.ts +11 -7
- package/src/features/layout/freeform-layout.ts +6 -15
- package/src/features/layout/hbox-layout.ts +256 -0
- package/src/features/layout/{layout-commands.spec.ts → layout-elements-action.spec.ts} +89 -65
- package/src/features/layout/layout-elements-action.ts +486 -0
- package/src/features/layout/vbox-layout.ts +20 -20
- package/src/features/model-source-watcher/model-source-changed-action-handler.ts +7 -12
- package/src/features/mouse-tool/di.config.ts +3 -4
- package/src/features/mouse-tool/mouse-tool.ts +18 -59
- package/src/features/navigation/navigation-action-handler.ts +76 -42
- package/src/features/navigation/navigation-target-resolver.spec.ts +3 -3
- package/src/features/navigation/navigation-target-resolver.ts +9 -14
- package/src/features/reconnect/model.ts +2 -2
- package/src/features/save/di.config.ts +2 -3
- package/src/features/save/save-keylistener.ts +3 -3
- package/src/features/select/di.config.ts +6 -8
- package/src/features/select/select-feedback-action.ts +18 -46
- package/src/features/select/select-mouse-listener.ts +1 -2
- package/src/features/select/selection-service.spec.ts +12 -9
- package/src/features/select/selection-service.ts +52 -60
- package/src/features/tool-feedback/change-bounds-tool-feedback.ts +52 -22
- package/src/features/tool-feedback/creation-tool-feedback.ts +79 -30
- package/src/features/tool-feedback/css-feedback.ts +40 -37
- package/src/features/tool-feedback/di.config.ts +4 -5
- package/src/features/tool-feedback/edge-edit-tool-feedback.ts +140 -88
- package/src/features/tool-feedback/feedback-action-dispatcher.ts +4 -3
- package/src/features/tool-feedback/marquee-tool-feedback.ts +38 -13
- package/src/features/tool-feedback/model.ts +1 -3
- package/src/features/tool-feedback/view.tsx +3 -3
- package/src/features/tool-palette/di.config.ts +3 -2
- package/src/features/tool-palette/tool-palette.ts +35 -19
- package/src/features/tools/base-glsp-tool.ts +11 -11
- package/src/features/tools/change-bounds-tool.ts +37 -67
- package/src/features/tools/delete-tool.ts +9 -9
- package/src/features/tools/di.config.ts +23 -12
- package/src/features/tools/edge-creation-tool.ts +21 -12
- package/src/features/tools/edge-edit-tool.ts +25 -21
- package/src/features/tools/enable-default-tools-on-focus-loss.ts +33 -0
- package/src/features/tools/marquee-behavior.ts +2 -2
- package/src/features/tools/marquee-mouse-tool.ts +13 -14
- package/src/features/tools/marquee-tool.ts +3 -3
- package/src/features/tools/model.ts +4 -3
- package/src/features/tools/node-creation-tool.ts +8 -8
- package/src/features/tools/view.tsx +2 -3
- package/src/features/validation/di.config.ts +13 -11
- package/src/features/validation/marker-navigator.spec.ts +4 -2
- package/src/features/validation/marker-navigator.ts +67 -82
- package/src/features/validation/validate.ts +57 -91
- package/src/features/viewport/di.config.ts +1 -2
- package/src/features/viewport/glsp-scroll-mouse-listener.ts +5 -5
- package/src/index.ts +9 -9
- package/src/lib/model.ts +4 -4
- package/src/model-source/glsp-diagram-server.ts +15 -15
- package/src/sprotty-reexport.ts +283 -0
- package/src/utils/layout-utils.ts +9 -29
- package/src/utils/smodel-util.ts +139 -43
- package/src/utils/viewpoint-util.ts +5 -14
- package/src/views/base-view-module.ts +5 -1
- package/src/views/compartments.tsx +1 -1
- package/src/views/glsp-edge-view.tsx +4 -4
- package/src/views/issue-marker-view.tsx +2 -2
- package/src/views/rounded-corner-view.tsx +2 -3
- package/lib/features/layout/layout-commands.d.ts +0 -153
- package/lib/features/layout/layout-commands.d.ts.map +0 -1
- package/lib/features/layout/layout-commands.js +0 -412
- package/lib/features/layout/layout-commands.js.map +0 -1
- package/lib/features/layout/layout-commands.spec.d.ts +0 -3
- package/lib/features/layout/layout-commands.spec.d.ts.map +0 -1
- package/lib/features/layout/layout-commands.spec.js.map +0 -1
- package/lib/features/tool-palette/palette-item.d.ts.map +0 -1
- package/lib/features/tool-palette/palette-item.js.map +0 -1
- package/lib/protocol-reexport.d.ts +0 -45
- package/lib/protocol-reexport.d.ts.map +0 -1
- package/lib/protocol-reexport.js +0 -75
- package/lib/protocol-reexport.js.map +0 -1
- package/src/features/layout/layout-commands.ts +0 -424
- package/src/features/tool-palette/palette-item.ts +0 -38
- package/src/protocol-reexport.ts +0 -64
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-creation-tool.d.ts","sourceRoot":"","sources":["../../../src/features/tools/node-creation-tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"node-creation-tool.d.ts","sourceRoot":"","sources":["../../../src/features/tools/node-creation-tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAuB,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAEhG,OAAO,EAIH,cAAc,EAEd,QAAQ,EACR,aAAa,EAGhB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,WAAW,EAAiB,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,qBACa,gBAAiB,SAAQ,YAAa,YAAW,cAAc;IACxE,MAAM,CAAC,EAAE,SAAsB;IAEK,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC;IAEhE,SAAS,CAAC,yBAAyB,EAAE,6BAA6B,CAAC;IACnE,SAAS,CAAC,aAAa,EAAE,yBAAyB,CAAC;IAEnD,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,MAAM,IAAI,IAAI;IASd,OAAO,IAAI,IAAI;IAKf,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CAMxC;AAED,qBACa,6BAA8B,SAAQ,sBAAsB;IAGzD,SAAS,CAAC,aAAa,EAAE,yBAAyB;IAAE,SAAS,CAAC,IAAI,EAAE,gBAAgB;IAFhG,SAAS,CAAC,SAAS,CAAC,EAAE,aAAa,GAAG,WAAW,CAAC;gBAE5B,aAAa,EAAE,yBAAyB,EAAY,IAAI,EAAE,gBAAgB;IAIhG,SAAS,CAAC,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;IAIrE,IAAI,aAAa,IAAI,MAAM,CAE1B;IAEQ,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE;IAmBtE,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE;CAWzE"}
|
|
@@ -12,7 +12,7 @@ var NodeCreationTool_1;
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.NodeCreationToolMouseListener = exports.NodeCreationTool = void 0;
|
|
14
14
|
/********************************************************************************
|
|
15
|
-
* Copyright (c) 2020-
|
|
15
|
+
* Copyright (c) 2020-2022 EclipseSource and others.
|
|
16
16
|
*
|
|
17
17
|
* This program and the accompanying materials are made available under the
|
|
18
18
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -44,27 +44,27 @@ let NodeCreationTool = NodeCreationTool_1 = class NodeCreationTool extends base_
|
|
|
44
44
|
}
|
|
45
45
|
this.creationToolMouseListener = new NodeCreationToolMouseListener(this.triggerAction, this);
|
|
46
46
|
this.mouseTool.register(this.creationToolMouseListener);
|
|
47
|
-
this.dispatchFeedback([css_feedback_1.cursorFeedbackAction(css_feedback_1.CursorCSS.NODE_CREATION)]);
|
|
47
|
+
this.dispatchFeedback([(0, css_feedback_1.cursorFeedbackAction)(css_feedback_1.CursorCSS.NODE_CREATION)]);
|
|
48
48
|
}
|
|
49
49
|
disable() {
|
|
50
50
|
this.mouseTool.deregister(this.creationToolMouseListener);
|
|
51
|
-
this.deregisterFeedback([css_feedback_1.cursorFeedbackAction()]);
|
|
51
|
+
this.deregisterFeedback([(0, css_feedback_1.cursorFeedbackAction)()]);
|
|
52
52
|
}
|
|
53
53
|
handle(action) {
|
|
54
|
-
if (protocol_1.
|
|
54
|
+
if (protocol_1.TriggerNodeCreationAction.is(action)) {
|
|
55
55
|
this.triggerAction = action;
|
|
56
|
-
return
|
|
56
|
+
return sprotty_1.EnableToolsAction.create([this.id]);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
NodeCreationTool.ID = 'tool_create_node';
|
|
61
61
|
__decorate([
|
|
62
|
-
inversify_1.inject(sprotty_1.TYPES.ISnapper),
|
|
63
|
-
inversify_1.optional(),
|
|
62
|
+
(0, inversify_1.inject)(sprotty_1.TYPES.ISnapper),
|
|
63
|
+
(0, inversify_1.optional)(),
|
|
64
64
|
__metadata("design:type", Object)
|
|
65
65
|
], NodeCreationTool.prototype, "snapper", void 0);
|
|
66
66
|
NodeCreationTool = NodeCreationTool_1 = __decorate([
|
|
67
|
-
inversify_1.injectable()
|
|
67
|
+
(0, inversify_1.injectable)()
|
|
68
68
|
], NodeCreationTool);
|
|
69
69
|
exports.NodeCreationTool = NodeCreationTool;
|
|
70
70
|
let NodeCreationToolMouseListener = class NodeCreationToolMouseListener extends drag_aware_mouse_listener_1.DragAwareMouseListener {
|
|
@@ -83,35 +83,35 @@ let NodeCreationToolMouseListener = class NodeCreationToolMouseListener extends
|
|
|
83
83
|
const result = [];
|
|
84
84
|
if (this.creationAllowed(this.elementTypeId)) {
|
|
85
85
|
const containerId = this.container ? this.container.id : undefined;
|
|
86
|
-
let location = viewpoint_util_1.getAbsolutePosition(target, event);
|
|
86
|
+
let location = (0, viewpoint_util_1.getAbsolutePosition)(target, event);
|
|
87
87
|
if (this.tool.snapper) {
|
|
88
88
|
// Create a 0-bounds proxy element for snapping
|
|
89
89
|
const elementProxy = new sprotty_1.SNode();
|
|
90
90
|
elementProxy.size = { width: 0, height: 0 };
|
|
91
91
|
location = this.tool.snapper.snap(location, elementProxy);
|
|
92
92
|
}
|
|
93
|
-
result.push(
|
|
94
|
-
if (!sprotty_1.isCtrlOrCmd(event)) {
|
|
95
|
-
result.push(
|
|
93
|
+
result.push(protocol_1.CreateNodeOperation.create(this.elementTypeId, { location, containerId, args: this.triggerAction.args }));
|
|
94
|
+
if (!(0, sprotty_1.isCtrlOrCmd)(event)) {
|
|
95
|
+
result.push(sprotty_1.EnableDefaultToolsAction.create());
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
return result;
|
|
99
99
|
}
|
|
100
100
|
mouseOver(target, event) {
|
|
101
|
-
const currentContainer = sprotty_1.findParentByFeature(target, model_1.isContainable);
|
|
101
|
+
const currentContainer = (0, sprotty_1.findParentByFeature)(target, model_1.isContainable);
|
|
102
102
|
if (!this.container || currentContainer !== this.container) {
|
|
103
103
|
this.container = currentContainer;
|
|
104
104
|
const feedback = this.creationAllowed(this.elementTypeId)
|
|
105
|
-
? css_feedback_1.cursorFeedbackAction(css_feedback_1.CursorCSS.NODE_CREATION)
|
|
106
|
-
: css_feedback_1.cursorFeedbackAction(css_feedback_1.CursorCSS.OPERATION_NOT_ALLOWED);
|
|
105
|
+
? (0, css_feedback_1.cursorFeedbackAction)(css_feedback_1.CursorCSS.NODE_CREATION)
|
|
106
|
+
: (0, css_feedback_1.cursorFeedbackAction)(css_feedback_1.CursorCSS.OPERATION_NOT_ALLOWED);
|
|
107
107
|
this.tool.dispatchFeedback([feedback]);
|
|
108
108
|
}
|
|
109
109
|
return [];
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
NodeCreationToolMouseListener = __decorate([
|
|
113
|
-
inversify_1.injectable(),
|
|
114
|
-
__metadata("design:paramtypes", [
|
|
113
|
+
(0, inversify_1.injectable)(),
|
|
114
|
+
__metadata("design:paramtypes", [Object, NodeCreationTool])
|
|
115
115
|
], NodeCreationToolMouseListener);
|
|
116
116
|
exports.NodeCreationToolMouseListener = NodeCreationToolMouseListener;
|
|
117
117
|
//# sourceMappingURL=node-creation-tool.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-creation-tool.js","sourceRoot":"","sources":["../../../src/features/tools/node-creation-tool.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"node-creation-tool.js","sourceRoot":"","sources":["../../../src/features/tools/node-creation-tool.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAgG;AAChG,yCAAyD;AACzD,qCAUiB;AACjB,oFAA8E;AAC9E,+DAAiE;AACjE,0CAA4D;AAC5D,gEAAgF;AAChF,qDAAgD;AAGhD,IAAa,gBAAgB,wBAA7B,MAAa,gBAAiB,SAAQ,6BAAY;IAQ9C,IAAI,EAAE;QACF,OAAO,kBAAgB,CAAC,EAAE,CAAC;IAC/B,CAAC;IAED,MAAM;QACF,IAAI,IAAI,CAAC,aAAa,KAAK,SAAS,EAAE;YAClC,MAAM,IAAI,SAAS,CAAC,yBAAyB,IAAI,CAAC,EAAE,yCAAyC,CAAC,CAAC;SAClG;QACD,IAAI,CAAC,yBAAyB,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;QAC7F,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;QACxD,IAAI,CAAC,gBAAgB,CAAC,CAAC,IAAA,mCAAoB,EAAC,wBAAS,CAA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AC,CAAC,IAAA,mCAAoB,EAAC,wBAAS,CAAC,qBAAqB,CAAC,CAAC;YAC5D,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;SAC1C;QACD,OAAO,EAAE,CAAC;IACd,CAAC;CACJ,CAAA;AA7CY,6BAA6B;IADzC,IAAA,sBAAU,GAAE;6CAIuE,gBAAgB;GAHvF,6BAA6B,CA6CzC;AA7CY,sEAA6B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../src/features/tools/view.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAO,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../src/features/tools/view.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAO,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAKtC,qBACa,WAAY,SAAQ,mBAAmB;IACvC,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,GAAG,KAAK;CAiBvE"}
|
|
@@ -8,7 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.MarqueeView = void 0;
|
|
10
10
|
/********************************************************************************
|
|
11
|
-
* Copyright (c) 2021 EclipseSource and others.
|
|
11
|
+
* Copyright (c) 2021-2022 EclipseSource and others.
|
|
12
12
|
*
|
|
13
13
|
* This program and the accompanying materials are made available under the
|
|
14
14
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -34,7 +34,7 @@ let MarqueeView = class MarqueeView extends sprotty_1.RectangularNodeView {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
MarqueeView = __decorate([
|
|
37
|
-
inversify_1.injectable()
|
|
37
|
+
(0, inversify_1.injectable)()
|
|
38
38
|
], MarqueeView);
|
|
39
39
|
exports.MarqueeView = MarqueeView;
|
|
40
40
|
//# sourceMappingURL=view.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../src/features/tools/view.tsx"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAuC;AAEvC,qCAAqE;
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../src/features/tools/view.tsx"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAuC;AAEvC,qCAAqE;AAGrE,6DAA6D;AAC7D,MAAM,GAAG,GAAG,EAAE,aAAa,EAAE,aAAG,EAAE,CAAC;AAGnC,IAAa,WAAW,GAAxB,MAAa,WAAY,SAAQ,6BAAmB;IACvC,MAAM,CAAC,IAAiB,EAAE,OAAyB;QACxD,MAAM,KAAK,GAAG,CACV;YACI,kDACwB,IAAI,mBACT,IAAI,EACnB,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EACjF,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EACjF,EAAE,EAAE,CAAC,EACL,EAAE,EAAE,CAAC,EACL,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EACpD,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,GACjD,CACR,CACP,CAAC;QACF,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ,CAAA;AAlBY,WAAW;IADvB,IAAA,sBAAU,GAAE;GACA,WAAW,CAkBvB;AAlBY,kCAAW"}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019 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 { ContainerModule } from 'inversify';
|
|
17
2
|
export declare const validationModule: ContainerModule;
|
|
18
3
|
export declare const markerNavigatorModule: ContainerModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/validation/di.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/validation/di.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAc5C,eAAO,MAAM,gBAAgB,iBAM3B,CAAC;AAEH,eAAO,MAAM,qBAAqB,iBAIhC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,iBAG3C,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.markerNavigatorContextMenuModule = exports.markerNavigatorModule = exports.validationModule = void 0;
|
|
4
4
|
/********************************************************************************
|
|
5
|
-
* Copyright (c) 2019 EclipseSource and others.
|
|
5
|
+
* Copyright (c) 2019-2022 EclipseSource and others.
|
|
6
6
|
*
|
|
7
7
|
* This program and the accompanying materials are made available under the
|
|
8
8
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -16,21 +16,23 @@ exports.markerNavigatorContextMenuModule = exports.markerNavigatorModule = expor
|
|
|
16
16
|
*
|
|
17
17
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
18
|
********************************************************************************/
|
|
19
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
19
20
|
const inversify_1 = require("inversify");
|
|
20
21
|
const sprotty_1 = require("sprotty");
|
|
21
22
|
const types_1 = require("../../base/types");
|
|
22
23
|
const marker_navigator_1 = require("./marker-navigator");
|
|
23
24
|
const validate_1 = require("./validate");
|
|
24
25
|
exports.validationModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
|
|
25
|
-
|
|
26
|
-
sprotty_1.
|
|
27
|
-
sprotty_1.configureCommand(
|
|
26
|
+
const context = { bind, isBound };
|
|
27
|
+
(0, sprotty_1.configureActionHandler)(context, protocol_1.SetMarkersAction.KIND, validate_1.SetMarkersActionHandler);
|
|
28
|
+
(0, sprotty_1.configureCommand)(context, validate_1.ApplyMarkersCommand);
|
|
29
|
+
(0, sprotty_1.configureCommand)(context, validate_1.DeleteMarkersCommand);
|
|
28
30
|
bind(validate_1.ValidationFeedbackEmitter).toSelf().inSingletonScope();
|
|
29
31
|
});
|
|
30
32
|
exports.markerNavigatorModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
|
|
31
33
|
bind(marker_navigator_1.SModelElementComparator).to(marker_navigator_1.LeftToRightTopToBottomComparator).inSingletonScope();
|
|
32
34
|
bind(marker_navigator_1.MarkerNavigator).toSelf().inSingletonScope();
|
|
33
|
-
sprotty_1.
|
|
35
|
+
(0, sprotty_1.configureActionHandler)({ bind, isBound }, marker_navigator_1.NavigateToMarkerAction.KIND, marker_navigator_1.NavigateToMarkerActionHandler);
|
|
34
36
|
});
|
|
35
37
|
/**
|
|
36
38
|
* This module is not required if the diagram is deployed in Theia but only intended to be used
|
|
@@ -38,7 +40,7 @@ exports.markerNavigatorModule = new inversify_1.ContainerModule((bind, _unbind,
|
|
|
38
40
|
* `registerMarkerNavigationCommands()` in `glsp-theia-integration` instead.
|
|
39
41
|
*/
|
|
40
42
|
exports.markerNavigatorContextMenuModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
|
|
41
|
-
bind(types_1.
|
|
42
|
-
bind(
|
|
43
|
+
bind(types_1.TYPES.IContextMenuProvider).to(marker_navigator_1.MarkerNavigatorContextMenuItemProvider).inSingletonScope();
|
|
44
|
+
bind(types_1.TYPES.KeyListener).to(marker_navigator_1.MarkerNavigatorKeyListener).inSingletonScope();
|
|
43
45
|
});
|
|
44
46
|
//# sourceMappingURL=di.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/validation/di.config.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/validation/di.config.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA0D;AAC1D,yCAA4C;AAC5C,qCAAmE;AACnE,4CAAyC;AACzC,yDAQ4B;AAC5B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@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020-
|
|
2
|
+
* Copyright (c) 2020-2022 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
|
|
@@ -14,15 +14,23 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import { Action, Point } from '@eclipse-glsp/protocol';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
import { ActionDispatcher, BoundsAware, IActionHandler, IContextMenuItemProvider, KeyListener, MenuItem, Selectable, SIssueMarker, SIssueSeverity, SModelElement, SModelRoot } from 'sprotty';
|
|
18
|
+
import { SelectionService } from '../select/selection-service';
|
|
19
|
+
export interface NavigateToMarkerAction extends Action {
|
|
20
|
+
kind: typeof NavigateToMarkerAction.KIND;
|
|
21
|
+
direction: MarkerNavigationDirection;
|
|
22
|
+
selectedElementIds?: string[];
|
|
23
|
+
severities: SIssueSeverity[];
|
|
24
|
+
}
|
|
25
|
+
export declare type MarkerNavigationDirection = 'next' | 'previous';
|
|
26
|
+
export declare namespace NavigateToMarkerAction {
|
|
27
|
+
const KIND = "navigateToMarker";
|
|
28
|
+
function is(object: any): object is NavigateToMarkerAction;
|
|
29
|
+
function create(options: {
|
|
30
|
+
direction?: MarkerNavigationDirection;
|
|
31
|
+
selectedElementIds?: string[];
|
|
32
|
+
severities?: SIssueSeverity[];
|
|
33
|
+
}): NavigateToMarkerAction;
|
|
26
34
|
}
|
|
27
35
|
export declare class SModelElementComparator {
|
|
28
36
|
compare(_one: SModelElement, _other: SModelElement): number;
|
|
@@ -39,27 +47,21 @@ export declare class LeftToRightTopToBottomComparator {
|
|
|
39
47
|
export declare class MarkerNavigator {
|
|
40
48
|
static readonly ALL_SEVERITIES: SIssueSeverity[];
|
|
41
49
|
protected markerComparator: SModelElementComparator;
|
|
42
|
-
next(root: SModelRoot
|
|
43
|
-
previous(root: SModelRoot
|
|
44
|
-
protected getMarkers(root: SModelRoot
|
|
50
|
+
next(root: Readonly<SModelRoot>, current?: SModelElement & BoundsAware, predicate?: (marker: SIssueMarker) => boolean): SIssueMarker | undefined;
|
|
51
|
+
previous(root: Readonly<SModelRoot>, current?: SModelElement & BoundsAware, predicate?: (marker: SIssueMarker) => boolean): SIssueMarker | undefined;
|
|
52
|
+
protected getMarkers(root: Readonly<SModelRoot>, predicate: (marker: SIssueMarker) => boolean): SIssueMarker[];
|
|
45
53
|
protected getNextIndex(current: SModelElement & BoundsAware, markers: SIssueMarker[]): number;
|
|
46
54
|
protected getPreviousIndex(current: SModelElement & BoundsAware, markers: SIssueMarker[]): number;
|
|
47
55
|
}
|
|
48
|
-
export declare class
|
|
49
|
-
protected action: NavigateToMarkerAction;
|
|
50
|
-
static KIND: string;
|
|
56
|
+
export declare class NavigateToMarkerActionHandler implements IActionHandler {
|
|
51
57
|
protected markerComparator: SModelElementComparator;
|
|
52
58
|
protected markerNavigator: MarkerNavigator;
|
|
53
59
|
protected selectionService: SelectionService;
|
|
54
|
-
protected
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
protected
|
|
59
|
-
protected getTarget(selected: SModelElement[], root: SModelRoot): SIssueMarker | undefined;
|
|
60
|
-
protected matchesSeverities(marker: SIssueMarker): boolean;
|
|
61
|
-
undo(context: CommandExecutionContext): CommandReturn;
|
|
62
|
-
redo(context: CommandExecutionContext): CommandReturn;
|
|
60
|
+
protected actionDispatcher: ActionDispatcher;
|
|
61
|
+
handle(action: NavigateToMarkerAction): void;
|
|
62
|
+
protected getSelectedElements(action: NavigateToMarkerAction): (SModelElement & Selectable)[];
|
|
63
|
+
protected getTarget(action: NavigateToMarkerAction, selected: SModelElement[]): SIssueMarker | undefined;
|
|
64
|
+
protected matchesSeverities(action: NavigateToMarkerAction, marker: SIssueMarker): boolean;
|
|
63
65
|
}
|
|
64
66
|
export declare class MarkerNavigatorContextMenuItemProvider implements IContextMenuItemProvider {
|
|
65
67
|
protected selectionService: SelectionService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marker-navigator.d.ts","sourceRoot":"","sources":["../../../src/features/validation/marker-navigator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"marker-navigator.d.ts","sourceRoot":"","sources":["../../../src/features/validation/marker-navigator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAA6C,KAAK,EAAgB,MAAM,wBAAwB,CAAC;AAEhH,OAAO,EACH,gBAAgB,EAChB,WAAW,EAEX,cAAc,EACd,wBAAwB,EAGxB,WAAW,EACX,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,cAAc,EACd,aAAa,EACb,UAAU,EACb,MAAM,SAAS,CAAC;AAKjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,WAAW,sBAAuB,SAAQ,MAAM;IAClD,IAAI,EAAE,OAAO,sBAAsB,CAAC,IAAI,CAAC;IAEzC,SAAS,EAAE,yBAAyB,CAAC;IACrC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,UAAU,EAAE,cAAc,EAAE,CAAC;CAChC;AAED,oBAAY,yBAAyB,GAAG,MAAM,GAAG,UAAU,CAAC;AAE5D,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,IAAI,qBAAqB,CAAC;IAEvC,SAAgB,EAAE,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,sBAAsB,CAEhE;IAED,SAAgB,MAAM,CAAC,OAAO,EAAE;QAC5B,SAAS,CAAC,EAAE,yBAAyB,CA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EhE,SAAS,CAAC,gBAAgB,EAAE,uBAAuB,CAAC;IAGpD,SAAS,CAAC,eAAe,EAAE,eAAe,CAAC;IAG3C,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAG7C,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAE7C,MAAM,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI;IAY5C,SAAS,CAAC,mBAAmB,CAAC,MAAM,EAAE,sBAAsB,GAAG,CAAC,aAAa,GAAG,UAAU,CAAC,EAAE;IAO7F,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,sBAAsB,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,YAAY,GAAG,SAAS;IAUxG,SAAS,CAAC,iBAAiB,CAAC,MAAM,EAAE,sBAAsB,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO;CAG7F;AAED,qBACa,sCAAuC,YAAW,wBAAwB;IACnD,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAE7E,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,iBAAiB,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;CA4BvF;AAED,qBACa,0BAA2B,SAAQ,WAAW;IAC9C,OAAO,CAAC,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,GAAG,MAAM,EAAE;CAQ5E"}
|
|
@@ -8,13 +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 __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.MarkerNavigatorKeyListener = exports.MarkerNavigatorContextMenuItemProvider = exports.
|
|
12
|
+
exports.MarkerNavigatorKeyListener = exports.MarkerNavigatorContextMenuItemProvider = exports.NavigateToMarkerActionHandler = exports.MarkerNavigator = exports.LeftToRightTopToBottomComparator = exports.SModelElementComparator = exports.NavigateToMarkerAction = void 0;
|
|
16
13
|
/********************************************************************************
|
|
17
|
-
* Copyright (c) 2020-
|
|
14
|
+
* Copyright (c) 2020-2022 EclipseSource and others.
|
|
18
15
|
*
|
|
19
16
|
* This program and the accompanying materials are made available under the
|
|
20
17
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -36,16 +33,18 @@ const types_1 = require("../../base/types");
|
|
|
36
33
|
const marker_1 = require("../../utils/marker");
|
|
37
34
|
const smodel_util_1 = require("../../utils/smodel-util");
|
|
38
35
|
const selection_service_1 = require("../select/selection-service");
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
36
|
+
var NavigateToMarkerAction;
|
|
37
|
+
(function (NavigateToMarkerAction) {
|
|
38
|
+
NavigateToMarkerAction.KIND = 'navigateToMarker';
|
|
39
|
+
function is(object) {
|
|
40
|
+
return protocol_1.Action.hasKind(object, NavigateToMarkerAction.KIND) && (0, protocol_1.hasStringProp)(object, 'direction') && (0, protocol_1.hasArrayProp)(object, 'severities');
|
|
41
|
+
}
|
|
42
|
+
NavigateToMarkerAction.is = is;
|
|
43
|
+
function create(options) {
|
|
44
|
+
return Object.assign({ kind: NavigateToMarkerAction.KIND, direction: 'next', severities: MarkerNavigator.ALL_SEVERITIES }, options);
|
|
45
|
+
}
|
|
46
|
+
NavigateToMarkerAction.create = create;
|
|
47
|
+
})(NavigateToMarkerAction = exports.NavigateToMarkerAction || (exports.NavigateToMarkerAction = {}));
|
|
49
48
|
class SModelElementComparator {
|
|
50
49
|
compare(_one, _other) {
|
|
51
50
|
return 0;
|
|
@@ -55,8 +54,8 @@ exports.SModelElementComparator = SModelElementComparator;
|
|
|
55
54
|
/** Specifies the order of two selectable and bounds-aware elements left-to-right and top-to-bottom. */
|
|
56
55
|
let LeftToRightTopToBottomComparator = class LeftToRightTopToBottomComparator {
|
|
57
56
|
compare(one, other) {
|
|
58
|
-
const boundsOne = sprotty_1.findParentByFeature(one, smodel_util_1.isSelectableAndBoundsAware);
|
|
59
|
-
const boundsOther = sprotty_1.findParentByFeature(other, smodel_util_1.isSelectableAndBoundsAware);
|
|
57
|
+
const boundsOne = (0, sprotty_1.findParentByFeature)(one, smodel_util_1.isSelectableAndBoundsAware);
|
|
58
|
+
const boundsOther = (0, sprotty_1.findParentByFeature)(other, smodel_util_1.isSelectableAndBoundsAware);
|
|
60
59
|
if (boundsOne && boundsOther) {
|
|
61
60
|
if (boundsOne.bounds.y !== boundsOther.bounds.y) {
|
|
62
61
|
return boundsOne.bounds.y - boundsOther.bounds.y;
|
|
@@ -69,7 +68,7 @@ let LeftToRightTopToBottomComparator = class LeftToRightTopToBottomComparator {
|
|
|
69
68
|
}
|
|
70
69
|
};
|
|
71
70
|
LeftToRightTopToBottomComparator = __decorate([
|
|
72
|
-
inversify_1.injectable()
|
|
71
|
+
(0, inversify_1.injectable)()
|
|
73
72
|
], LeftToRightTopToBottomComparator);
|
|
74
73
|
exports.LeftToRightTopToBottomComparator = LeftToRightTopToBottomComparator;
|
|
75
74
|
/**
|
|
@@ -93,7 +92,7 @@ let MarkerNavigator = class MarkerNavigator {
|
|
|
93
92
|
return markers[this.getPreviousIndex(current, markers) % markers.length];
|
|
94
93
|
}
|
|
95
94
|
getMarkers(root, predicate) {
|
|
96
|
-
const markers = marker_1.collectIssueMarkers(root);
|
|
95
|
+
const markers = (0, marker_1.collectIssueMarkers)(root);
|
|
97
96
|
return markers.filter(predicate).sort(this.markerComparator.compare);
|
|
98
97
|
}
|
|
99
98
|
getNextIndex(current, markers) {
|
|
@@ -115,94 +114,68 @@ let MarkerNavigator = class MarkerNavigator {
|
|
|
115
114
|
};
|
|
116
115
|
MarkerNavigator.ALL_SEVERITIES = ['error', 'warning', 'info'];
|
|
117
116
|
__decorate([
|
|
118
|
-
inversify_1.inject(SModelElementComparator),
|
|
117
|
+
(0, inversify_1.inject)(SModelElementComparator),
|
|
119
118
|
__metadata("design:type", SModelElementComparator)
|
|
120
119
|
], MarkerNavigator.prototype, "markerComparator", void 0);
|
|
121
120
|
MarkerNavigator = __decorate([
|
|
122
|
-
inversify_1.injectable()
|
|
121
|
+
(0, inversify_1.injectable)()
|
|
123
122
|
], MarkerNavigator);
|
|
124
123
|
exports.MarkerNavigator = MarkerNavigator;
|
|
125
|
-
let
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
this.action
|
|
129
|
-
|
|
130
|
-
execute(context) {
|
|
131
|
-
const root = context.root;
|
|
132
|
-
const selected = this.getSelectedElements(root);
|
|
133
|
-
const target = this.getTarget(selected, root);
|
|
134
|
-
if (target === undefined) {
|
|
135
|
-
return root;
|
|
136
|
-
}
|
|
137
|
-
const selectableTarget = sprotty_1.findParentByFeature(target, sprotty_1.isSelectable);
|
|
124
|
+
let NavigateToMarkerActionHandler = class NavigateToMarkerActionHandler {
|
|
125
|
+
handle(action) {
|
|
126
|
+
const selected = this.getSelectedElements(action);
|
|
127
|
+
const target = this.getTarget(action, selected);
|
|
128
|
+
const selectableTarget = target ? (0, sprotty_1.findParentByFeature)(target, sprotty_1.isSelectable) : undefined;
|
|
138
129
|
if (selectableTarget) {
|
|
139
|
-
const
|
|
140
|
-
this.
|
|
141
|
-
this.
|
|
142
|
-
this.centerCommand.execute(context);
|
|
143
|
-
return this.selectCommand.execute(context);
|
|
130
|
+
const deselectedElementsIDs = selected.map(e => e.id).filter(id => id !== selectableTarget.id);
|
|
131
|
+
this.actionDispatcher.dispatch(protocol_1.SelectAction.create({ selectedElementsIDs: [selectableTarget.id], deselectedElementsIDs }));
|
|
132
|
+
this.actionDispatcher.dispatch(protocol_1.CenterAction.create([selectableTarget.id]));
|
|
144
133
|
}
|
|
145
|
-
return root;
|
|
146
134
|
}
|
|
147
|
-
getSelectedElements(
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
selectedIds = this.action.selectedElementIds;
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
selectedIds = Array.from(this.selectionService.getSelectedElementIDs());
|
|
135
|
+
getSelectedElements(action) {
|
|
136
|
+
if (action.selectedElementIds && action.selectedElementIds.length > 0) {
|
|
137
|
+
return (0, smodel_util_1.getElements)(this.selectionService.getModelRoot().index, action.selectedElementIds, sprotty_1.isSelectable);
|
|
154
138
|
}
|
|
155
|
-
return
|
|
139
|
+
return this.selectionService.getSelectedElements();
|
|
156
140
|
}
|
|
157
|
-
getTarget(
|
|
158
|
-
const
|
|
159
|
-
const
|
|
160
|
-
if (
|
|
161
|
-
return this.markerNavigator.previous(root,
|
|
141
|
+
getTarget(action, selected) {
|
|
142
|
+
const root = this.selectionService.getModelRoot();
|
|
143
|
+
const target = selected.sort(this.markerComparator.compare).find(sprotty_1.isBoundsAware);
|
|
144
|
+
if (action.direction === 'previous') {
|
|
145
|
+
return this.markerNavigator.previous(root, target, marker => this.matchesSeverities(action, marker));
|
|
162
146
|
}
|
|
163
147
|
else {
|
|
164
|
-
return this.markerNavigator.next(root,
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
matchesSeverities(marker) {
|
|
168
|
-
return marker.issues.find(issue => this.action.severities.includes(issue.severity)) !== undefined;
|
|
169
|
-
}
|
|
170
|
-
undo(context) {
|
|
171
|
-
if (this.selectCommand) {
|
|
172
|
-
context.root = this.selectCommand.undo(context);
|
|
148
|
+
return this.markerNavigator.next(root, target, marker => this.matchesSeverities(action, marker));
|
|
173
149
|
}
|
|
174
|
-
return this.centerCommand ? this.centerCommand.undo(context) : context.root;
|
|
175
150
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
context.root = this.selectCommand.redo(context);
|
|
179
|
-
}
|
|
180
|
-
return this.centerCommand ? this.centerCommand.redo(context) : context.root;
|
|
151
|
+
matchesSeverities(action, marker) {
|
|
152
|
+
return marker.issues.find(issue => action.severities.includes(issue.severity)) !== undefined;
|
|
181
153
|
}
|
|
182
154
|
};
|
|
183
|
-
NavigateToMarkerCommand.KIND = NavigateToMarkerAction.KIND;
|
|
184
155
|
__decorate([
|
|
185
|
-
inversify_1.inject(SModelElementComparator),
|
|
156
|
+
(0, inversify_1.inject)(SModelElementComparator),
|
|
186
157
|
__metadata("design:type", SModelElementComparator)
|
|
187
|
-
],
|
|
158
|
+
], NavigateToMarkerActionHandler.prototype, "markerComparator", void 0);
|
|
188
159
|
__decorate([
|
|
189
|
-
inversify_1.inject(MarkerNavigator),
|
|
160
|
+
(0, inversify_1.inject)(MarkerNavigator),
|
|
190
161
|
__metadata("design:type", MarkerNavigator)
|
|
191
|
-
],
|
|
162
|
+
], NavigateToMarkerActionHandler.prototype, "markerNavigator", void 0);
|
|
192
163
|
__decorate([
|
|
193
|
-
inversify_1.inject(types_1.
|
|
164
|
+
(0, inversify_1.inject)(types_1.TYPES.SelectionService),
|
|
194
165
|
__metadata("design:type", selection_service_1.SelectionService)
|
|
195
|
-
],
|
|
196
|
-
|
|
197
|
-
inversify_1.
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
166
|
+
], NavigateToMarkerActionHandler.prototype, "selectionService", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, inversify_1.inject)(types_1.TYPES.IActionDispatcher),
|
|
169
|
+
__metadata("design:type", sprotty_1.ActionDispatcher)
|
|
170
|
+
], NavigateToMarkerActionHandler.prototype, "actionDispatcher", void 0);
|
|
171
|
+
NavigateToMarkerActionHandler = __decorate([
|
|
172
|
+
(0, inversify_1.injectable)()
|
|
173
|
+
], NavigateToMarkerActionHandler);
|
|
174
|
+
exports.NavigateToMarkerActionHandler = NavigateToMarkerActionHandler;
|
|
202
175
|
let MarkerNavigatorContextMenuItemProvider = class MarkerNavigatorContextMenuItemProvider {
|
|
203
176
|
getItems(root, lastMousePosition) {
|
|
204
177
|
const selectedElementIds = Array.from(this.selectionService.getSelectedElementIDs());
|
|
205
|
-
const hasMarkers = marker_1.collectIssueMarkers(root).length > 0;
|
|
178
|
+
const hasMarkers = (0, marker_1.collectIssueMarkers)(root).length > 0;
|
|
206
179
|
return Promise.resolve([
|
|
207
180
|
{
|
|
208
181
|
id: 'navigate',
|
|
@@ -214,14 +187,14 @@ let MarkerNavigatorContextMenuItemProvider = class MarkerNavigatorContextMenuIte
|
|
|
214
187
|
id: 'next-marker',
|
|
215
188
|
label: 'Next marker',
|
|
216
189
|
group: 'marker',
|
|
217
|
-
actions: [
|
|
190
|
+
actions: [NavigateToMarkerAction.create({ direction: 'next', selectedElementIds })],
|
|
218
191
|
isEnabled: () => hasMarkers
|
|
219
192
|
},
|
|
220
193
|
{
|
|
221
194
|
id: 'previous-marker',
|
|
222
195
|
label: 'Previous marker',
|
|
223
196
|
group: 'marker',
|
|
224
|
-
actions: [
|
|
197
|
+
actions: [NavigateToMarkerAction.create({ direction: 'previous', selectedElementIds })],
|
|
225
198
|
isEnabled: () => hasMarkers
|
|
226
199
|
}
|
|
227
200
|
]
|
|
@@ -230,26 +203,26 @@ let MarkerNavigatorContextMenuItemProvider = class MarkerNavigatorContextMenuIte
|
|
|
230
203
|
}
|
|
231
204
|
};
|
|
232
205
|
__decorate([
|
|
233
|
-
inversify_1.inject(types_1.
|
|
206
|
+
(0, inversify_1.inject)(types_1.TYPES.SelectionService),
|
|
234
207
|
__metadata("design:type", selection_service_1.SelectionService)
|
|
235
208
|
], MarkerNavigatorContextMenuItemProvider.prototype, "selectionService", void 0);
|
|
236
209
|
MarkerNavigatorContextMenuItemProvider = __decorate([
|
|
237
|
-
inversify_1.injectable()
|
|
210
|
+
(0, inversify_1.injectable)()
|
|
238
211
|
], MarkerNavigatorContextMenuItemProvider);
|
|
239
212
|
exports.MarkerNavigatorContextMenuItemProvider = MarkerNavigatorContextMenuItemProvider;
|
|
240
213
|
let MarkerNavigatorKeyListener = class MarkerNavigatorKeyListener extends sprotty_1.KeyListener {
|
|
241
214
|
keyDown(_element, event) {
|
|
242
|
-
if (keyboard_1.matchesKeystroke(event, 'Period', 'ctrl')) {
|
|
243
|
-
return [
|
|
215
|
+
if ((0, keyboard_1.matchesKeystroke)(event, 'Period', 'ctrl')) {
|
|
216
|
+
return [NavigateToMarkerAction.create({ direction: 'next' })];
|
|
244
217
|
}
|
|
245
|
-
else if (keyboard_1.matchesKeystroke(event, 'Comma', 'ctrl')) {
|
|
246
|
-
return [
|
|
218
|
+
else if ((0, keyboard_1.matchesKeystroke)(event, 'Comma', 'ctrl')) {
|
|
219
|
+
return [NavigateToMarkerAction.create({ direction: 'previous' })];
|
|
247
220
|
}
|
|
248
221
|
return [];
|
|
249
222
|
}
|
|
250
223
|
};
|
|
251
224
|
MarkerNavigatorKeyListener = __decorate([
|
|
252
|
-
inversify_1.injectable()
|
|
225
|
+
(0, inversify_1.injectable)()
|
|
253
226
|
], MarkerNavigatorKeyListener);
|
|
254
227
|
exports.MarkerNavigatorKeyListener = MarkerNavigatorKeyListener;
|
|
255
228
|
//# sourceMappingURL=marker-navigator.js.map
|