@eclipse-glsp/client 0.9.0-next.f54fd689 → 0.9.0
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 +4 -2
- package/css/command-palette.css +9 -5
- package/css/decoration.css +3 -2
- package/css/glsp-sprotty.css +20 -7
- package/css/tool-palette.css +44 -27
- package/lib/base/action-dispatcher.d.ts +18 -2
- 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/{features/model-source-watcher/model-source-changed-action.d.ts → base/actions/focus-change-action.d.ts} +7 -7
- package/lib/base/actions/focus-change-action.d.ts.map +1 -0
- package/lib/base/actions/focus-change-action.js +16 -0
- package/lib/base/actions/focus-change-action.js.map +1 -0
- package/lib/base/argumentable.d.ts +22 -0
- package/lib/base/argumentable.d.ts.map +1 -0
- package/lib/base/argumentable.js +8 -0
- 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-actions.js.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.d.ts +12 -12
- package/lib/base/auto-complete/auto-complete-widget.d.ts.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.js +121 -152
- 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 +49 -65
- package/lib/base/auto-complete/validation-decorator.js.map +1 -1
- package/lib/base/command-stack.d.ts +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 +13 -3
- package/lib/base/di.config.d.ts.map +1 -1
- package/lib/base/di.config.js +52 -31
- 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-service.d.ts +42 -0
- 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/{features/undo-redo/model.d.ts → base/focus-tracker.d.ts} +10 -12
- package/lib/base/focus-tracker.d.ts.map +1 -0
- package/lib/base/focus-tracker.js +50 -0
- package/lib/base/focus-tracker.js.map +1 -0
- package/lib/base/model/model-registry.d.ts +5 -0
- package/lib/base/model/model-registry.d.ts.map +1 -0
- package/lib/base/model/model-registry.js +43 -0
- package/lib/base/model/model-registry.js.map +1 -0
- package/lib/base/model/update-model-command.d.ts +20 -6
- 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 +17 -2
- 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.d.ts +1 -1
- package/lib/base/selection-clearing-mouse-listener.d.ts.map +1 -1
- package/lib/base/selection-clearing-mouse-listener.js +11 -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 +2 -2
- package/lib/base/tool-manager/glsp-tool-manager.d.ts.map +1 -1
- package/lib/base/tool-manager/glsp-tool-manager.js +59 -141
- 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 +23 -21
- package/lib/base/types.js.map +1 -1
- package/lib/base/view/view-registry.d.ts +5 -0
- package/lib/base/view/view-registry.d.ts.map +1 -0
- package/lib/base/view/view-registry.js +43 -0
- package/lib/base/view/view-registry.js.map +1 -0
- package/lib/features/change-bounds/model.d.ts +4 -2
- package/lib/features/change-bounds/model.d.ts.map +1 -1
- package/lib/features/change-bounds/model.js +21 -32
- package/lib/features/change-bounds/model.js.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.d.ts +18 -2
- package/lib/features/change-bounds/movement-restrictor.d.ts.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.js +34 -46
- 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.d.ts +1 -1
- package/lib/features/command-palette/command-palette-tool.d.ts.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.d.ts +2 -2
- 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 +19 -3
- package/lib/features/command-palette/server-command-palette-provider.d.ts.map +1 -1
- package/lib/features/command-palette/server-command-palette-provider.js +31 -36
- package/lib/features/command-palette/server-command-palette-provider.js.map +1 -1
- package/lib/features/context-menu/delete-element-context-menu.d.ts +2 -2
- package/lib/features/context-menu/delete-element-context-menu.d.ts.map +1 -1
- package/lib/features/context-menu/delete-element-context-menu.js +24 -72
- package/lib/features/context-menu/delete-element-context-menu.js.map +1 -1
- package/lib/features/context-menu/di.config.d.ts +2 -2
- package/lib/features/context-menu/di.config.d.ts.map +1 -1
- package/lib/features/context-menu/di.config.js +14 -18
- 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 +2 -2
- 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 +19 -3
- package/lib/features/context-menu/server-context-menu-provider.d.ts.map +1 -1
- package/lib/features/context-menu/server-context-menu-provider.js +31 -32
- 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 +21 -4
- 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 +2 -2
- 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 +14 -47
- 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 -6
- 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.js +7 -7
- package/lib/features/edit-label/di.config.js.map +1 -1
- package/lib/features/edit-label/edit-label-tool.d.ts +2 -2
- 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 +18 -3
- 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 +1 -16
- 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 +2 -2
- package/lib/features/hints/model.js.map +1 -1
- package/lib/features/hints/type-hints.d.ts +21 -49
- package/lib/features/hints/type-hints.d.ts.map +1 -1
- package/lib/features/hints/type-hints.js +83 -142
- package/lib/features/hints/type-hints.js.map +1 -1
- package/lib/features/hover/di.config.d.ts +2 -2
- package/lib/features/hover/di.config.d.ts.map +1 -1
- package/lib/features/hover/di.config.js +9 -7
- package/lib/features/hover/di.config.js.map +1 -1
- package/lib/features/hover/hover.d.ts +18 -2
- package/lib/features/hover/hover.d.ts.map +1 -1
- package/lib/features/hover/hover.js +37 -75
- package/lib/features/hover/hover.js.map +1 -1
- package/lib/features/layout/di.config.d.ts +2 -2
- 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 +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 +26 -10
- package/lib/features/layout/layout-commands.d.ts.map +1 -1
- package/lib/features/layout/layout-commands.js +189 -264
- package/lib/features/layout/layout-commands.js.map +1 -1
- package/lib/features/layout/layout-commands.spec.d.ts +2 -17
- package/lib/features/layout/layout-commands.spec.d.ts.map +1 -1
- package/lib/features/layout/layout-commands.spec.js +124 -117
- 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 +1 -16
- 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.d.ts +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 +3 -2
- package/lib/features/mouse-tool/mouse-tool.d.ts.map +1 -1
- package/lib/features/mouse-tool/mouse-tool.js +74 -217
- package/lib/features/mouse-tool/mouse-tool.js.map +1 -1
- package/lib/features/navigation/di.config.d.ts +1 -16
- 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 -39
- package/lib/features/navigation/navigation-action-handler.d.ts.map +1 -1
- package/lib/features/navigation/navigation-action-handler.js +118 -255
- 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 +2 -17
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.spec.js +27 -26
- package/lib/features/navigation/navigation-target-resolver.spec.js.map +1 -1
- package/lib/features/rank/model.d.ts +2 -2
- package/lib/features/rank/model.d.ts.map +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 +2 -2
- package/lib/features/reconnect/model.d.ts.map +1 -1
- package/lib/features/reconnect/model.js +10 -28
- package/lib/features/reconnect/model.js.map +1 -1
- package/lib/features/save/di.config.d.ts +2 -2
- 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/model.d.ts +1 -1
- package/lib/features/save/{save.d.ts → save-keylistener.d.ts} +4 -8
- package/lib/features/save/save-keylistener.d.ts.map +1 -0
- package/lib/{utils/array-utils.js → features/save/save-keylistener.js} +14 -19
- package/lib/features/save/save-keylistener.js.map +1 -0
- package/lib/features/select/di.config.d.ts +1 -1
- 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 +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.d.ts +2 -2
- 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 +19 -3
- 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 -138
- package/lib/features/select/selection-service.spec.js.map +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts +21 -4
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js +117 -149
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts +19 -2
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.js +81 -115
- package/lib/features/tool-feedback/creation-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/css-feedback.d.ts +24 -5
- package/lib/features/tool-feedback/css-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/css-feedback.js +40 -82
- package/lib/features/tool-feedback/css-feedback.js.map +1 -1
- package/lib/features/tool-feedback/di.config.d.ts +2 -2
- package/lib/features/tool-feedback/di.config.d.ts.map +1 -1
- package/lib/features/tool-feedback/di.config.js +27 -24
- package/lib/features/tool-feedback/di.config.js.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts +21 -4
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js +160 -204
- 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 +48 -0
- package/lib/features/tool-feedback/marquee-tool-feedback.d.ts.map +1 -0
- package/lib/features/tool-feedback/marquee-tool-feedback.js +96 -0
- package/lib/features/tool-feedback/marquee-tool-feedback.js.map +1 -0
- package/lib/features/tool-feedback/model.d.ts +2 -2
- 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 +22 -6
- package/lib/features/tool-feedback/view.d.ts.map +1 -1
- package/lib/features/tool-feedback/view.js +30 -51
- package/lib/features/tool-feedback/view.js.map +1 -1
- package/lib/features/tool-palette/di.config.d.ts +2 -2
- 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 +23 -6
- package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette.js +229 -286
- package/lib/features/tool-palette/tool-palette.js.map +1 -1
- package/lib/features/tools/base-glsp-tool.d.ts +21 -5
- 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 +26 -9
- 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 +20 -4
- 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 +5 -16
- package/lib/features/tools/di.config.d.ts.map +1 -1
- package/lib/features/tools/di.config.js +26 -13
- package/lib/features/tools/di.config.js.map +1 -1
- package/lib/features/tools/edge-creation-tool.d.ts +20 -5
- package/lib/features/tools/edge-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-creation-tool.js +64 -89
- package/lib/features/tools/edge-creation-tool.js.map +1 -1
- package/lib/features/tools/edge-edit-tool.d.ts +22 -6
- package/lib/features/tools/edge-edit-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-edit-tool.js +125 -189
- 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/base/args.ts → lib/features/tools/marquee-behavior.spec.d.ts} +3 -2
- 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 +48 -0
- package/lib/features/tools/marquee-mouse-tool.d.ts.map +1 -0
- package/lib/features/tools/marquee-mouse-tool.js +148 -0
- package/lib/features/tools/marquee-mouse-tool.js.map +1 -0
- package/lib/features/tools/marquee-tool.d.ts +30 -0
- package/lib/features/tools/marquee-tool.d.ts.map +1 -0
- package/lib/features/tools/marquee-tool.js +54 -0
- package/lib/features/tools/marquee-tool.js.map +1 -0
- package/lib/features/tools/model.d.ts +22 -0
- package/lib/features/tools/model.d.ts.map +1 -0
- package/lib/features/tools/model.js +24 -0
- package/lib/features/tools/model.js.map +1 -0
- package/lib/features/tools/node-creation-tool.d.ts +20 -5
- 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 +7 -0
- package/lib/features/tools/view.d.ts.map +1 -0
- package/lib/features/tools/view.js +40 -0
- package/lib/features/tools/view.js.map +1 -0
- package/lib/features/validation/di.config.d.ts +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 +3 -3
- package/lib/features/validation/issue-marker.d.ts.map +1 -1
- package/lib/features/validation/issue-marker.js +18 -56
- package/lib/features/validation/issue-marker.js.map +1 -1
- package/lib/features/validation/marker-navigator.d.ts +19 -3
- 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 +2 -17
- package/lib/features/validation/marker-navigator.spec.d.ts.map +1 -1
- package/lib/features/validation/marker-navigator.spec.js +84 -77
- package/lib/features/validation/marker-navigator.spec.js.map +1 -1
- package/lib/features/validation/validate.d.ts +20 -31
- package/lib/features/validation/validate.d.ts.map +1 -1
- package/lib/features/validation/validate.js +148 -299
- package/lib/features/validation/validate.js.map +1 -1
- package/lib/{base/args.d.ts → features/viewport/di.config.d.ts} +5 -5
- package/lib/features/viewport/di.config.d.ts.map +1 -0
- package/lib/features/viewport/di.config.js +34 -0
- package/lib/features/viewport/di.config.js.map +1 -0
- package/{src/features/model-source-watcher/model-source-changed-action.ts → lib/features/viewport/glsp-scroll-mouse-listener.d.ts} +8 -11
- package/lib/features/viewport/glsp-scroll-mouse-listener.d.ts.map +1 -0
- package/lib/features/viewport/glsp-scroll-mouse-listener.js +39 -0
- package/lib/features/viewport/glsp-scroll-mouse-listener.js.map +1 -0
- package/lib/index.d.ts +37 -35
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +39 -35
- package/lib/index.js.map +1 -1
- package/lib/lib/model.d.ts +3 -3
- package/lib/lib/model.d.ts.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 +4 -6
- package/lib/model-source/glsp-diagram-server.d.ts.map +1 -1
- package/lib/model-source/glsp-diagram-server.js +63 -122
- 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 +50 -0
- package/lib/utils/argument-utils.d.ts.map +1 -0
- package/lib/utils/argument-utils.js +110 -0
- package/lib/utils/argument-utils.js.map +1 -0
- package/lib/utils/html-utils.js +2 -2
- package/lib/utils/html-utils.js.map +1 -1
- package/lib/utils/layout-utils.d.ts +4 -3
- 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 +1 -39
- 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 +7 -17
- package/lib/utils/smodel-util.d.ts.map +1 -1
- package/lib/utils/smodel-util.js +18 -67
- 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 +9 -0
- package/lib/views/base-view-module.d.ts.map +1 -0
- package/lib/views/base-view-module.js +59 -0
- package/lib/views/base-view-module.js.map +1 -0
- 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 +27 -0
- package/lib/views/glsp-edge-view.d.ts.map +1 -0
- package/lib/views/glsp-edge-view.js +55 -0
- package/lib/views/glsp-edge-view.js.map +1 -0
- package/lib/views/index.d.ts +22 -0
- package/lib/views/index.d.ts.map +1 -0
- package/lib/views/index.js +34 -0
- package/lib/views/index.js.map +1 -0
- package/lib/views/issue-marker-view.d.ts +9 -0
- package/lib/views/issue-marker-view.d.ts.map +1 -0
- package/lib/views/issue-marker-view.js +68 -0
- package/lib/views/issue-marker-view.js.map +1 -0
- package/lib/views/rounded-corner-view.d.ts +13 -0
- package/lib/views/rounded-corner-view.d.ts.map +1 -0
- package/lib/views/rounded-corner-view.js +82 -0
- package/lib/views/rounded-corner-view.js.map +1 -0
- package/lib/views/rounded-corner.d.ts +38 -0
- package/lib/views/rounded-corner.d.ts.map +1 -0
- package/lib/views/rounded-corner.js +62 -0
- package/lib/views/rounded-corner.js.map +1 -0
- package/package.json +27 -34
- package/src/base/action-dispatcher.ts +7 -8
- package/src/{utils/array-utils.ts → base/actions/focus-change-action.ts} +8 -16
- package/src/{features/undo-redo/model.ts → base/argumentable.ts} +7 -8
- package/src/base/auto-complete/auto-complete-actions.ts +2 -2
- package/src/base/auto-complete/auto-complete-widget.ts +73 -57
- package/src/base/auto-complete/validation-decorator.ts +21 -15
- package/src/base/command-stack.ts +4 -7
- package/src/base/container-modules.ts +112 -0
- package/src/base/di.config.ts +47 -25
- package/src/base/drag-aware-mouse-listener.ts +7 -8
- package/src/base/{editor-context.ts → editor-context-service.ts} +13 -40
- package/src/base/focus-tracker.ts +48 -0
- package/src/base/model/model-registry.ts +31 -0
- package/src/base/model/update-model-command.ts +14 -22
- package/src/base/model-initialization-constraint.ts +16 -11
- package/src/base/selection-clearing-mouse-listener.ts +4 -3
- package/src/base/tool-manager/glsp-tool-manager.ts +12 -14
- package/src/base/types.ts +23 -21
- package/src/base/view/view-registry.ts +31 -0
- package/src/features/change-bounds/model.ts +23 -13
- package/src/features/change-bounds/movement-restrictor.ts +28 -18
- package/src/features/change-bounds/snap.ts +6 -5
- package/src/features/command-palette/command-palette-tool.ts +4 -4
- package/src/features/command-palette/di.config.ts +7 -7
- package/src/features/command-palette/server-command-palette-provider.ts +16 -14
- package/src/features/context-menu/delete-element-context-menu.ts +10 -11
- package/src/features/context-menu/di.config.ts +10 -12
- package/src/features/context-menu/selection-service-aware-context-menu-mouse-listener.ts +8 -7
- package/src/features/context-menu/server-context-menu-provider.ts +13 -10
- package/src/features/copy-paste/copy-paste-context-menu.ts +66 -37
- package/src/features/copy-paste/copy-paste-handler.ts +30 -20
- package/src/features/copy-paste/di.config.ts +6 -7
- package/src/features/decoration/decoration-placer.ts +6 -15
- package/src/features/decoration/di.config.ts +4 -6
- package/src/features/edit-label/di.config.ts +5 -5
- package/src/features/edit-label/edit-label-tool.ts +4 -4
- package/src/features/edit-label/edit-label-validator.ts +18 -19
- package/src/features/hints/di.config.ts +6 -7
- package/src/features/hints/model.ts +7 -6
- package/src/features/hints/type-hints.ts +46 -113
- package/src/features/hover/di.config.ts +7 -7
- package/src/features/hover/hover.ts +11 -14
- package/src/features/layout/di.config.ts +10 -6
- package/src/features/layout/freeform-layout.ts +133 -0
- package/src/features/layout/layout-commands.spec.ts +104 -85
- package/src/features/layout/layout-commands.ts +65 -54
- package/src/features/layout/vbox-layout.ts +256 -0
- package/src/features/model-source-watcher/di.config.ts +5 -6
- package/src/features/model-source-watcher/model-source-changed-action-handler.ts +16 -12
- package/src/features/mouse-tool/di.config.ts +4 -4
- package/src/features/mouse-tool/mouse-tool.ts +44 -32
- package/src/features/navigation/di.config.ts +6 -12
- package/src/features/navigation/navigation-action-handler.ts +46 -78
- package/src/features/navigation/navigation-target-resolver.spec.ts +6 -9
- package/src/features/navigation/navigation-target-resolver.ts +16 -94
- package/src/features/rank/model.ts +3 -3
- package/src/features/reconnect/model.ts +9 -11
- package/src/features/save/di.config.ts +4 -5
- package/src/features/save/model.ts +1 -1
- package/src/features/save/{save.ts → save-keylistener.ts} +4 -8
- package/src/features/select/di.config.ts +6 -6
- package/src/features/select/select-feedback-action.ts +6 -8
- package/src/features/select/select-mouse-listener.ts +2 -2
- package/src/features/select/selection-service.spec.ts +25 -19
- package/src/features/select/selection-service.ts +25 -22
- package/src/features/tool-feedback/change-bounds-tool-feedback.ts +56 -39
- package/src/features/tool-feedback/creation-tool-feedback.ts +49 -24
- package/src/features/tool-feedback/css-feedback.ts +19 -14
- package/src/features/tool-feedback/di.config.ts +15 -14
- package/src/features/tool-feedback/edge-edit-tool-feedback.ts +56 -35
- package/src/features/tool-feedback/feedback-action-dispatcher.ts +13 -14
- package/src/features/tool-feedback/marquee-tool-feedback.ts +103 -0
- package/src/features/tool-feedback/model.ts +2 -3
- package/src/features/tool-feedback/view.tsx +20 -13
- package/src/features/tool-palette/di.config.ts +5 -7
- package/src/features/tool-palette/palette-item.ts +5 -7
- package/src/features/tool-palette/tool-palette.ts +126 -107
- package/src/features/tools/base-glsp-tool.ts +12 -12
- package/src/features/tools/change-bounds-tool.ts +83 -53
- package/src/features/tools/delete-tool.ts +23 -20
- package/src/features/tools/di.config.ts +22 -11
- package/src/features/tools/edge-creation-tool.ts +20 -25
- package/src/features/tools/edge-edit-tool.ts +43 -46
- 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 +153 -0
- package/src/features/tools/marquee-tool.ts +51 -0
- package/src/features/tools/model.ts +22 -0
- package/src/features/tools/node-creation-tool.ts +18 -22
- package/src/features/tools/view.tsx +44 -0
- package/src/features/validation/di.config.ts +5 -5
- package/src/features/validation/issue-marker.ts +4 -5
- package/src/features/validation/marker-navigator.spec.ts +38 -33
- package/src/features/validation/marker-navigator.ts +39 -26
- package/src/features/validation/validate.ts +25 -59
- package/src/features/viewport/di.config.ts +47 -0
- package/src/features/viewport/glsp-scroll-mouse-listener.ts +41 -0
- package/src/index.ts +57 -37
- package/src/lib/model.ts +4 -4
- package/src/model-source/glsp-diagram-server.ts +19 -33
- package/src/protocol-reexport.ts +64 -0
- package/src/utils/argument-utils.ts +130 -0
- package/src/utils/layout-utils.ts +19 -11
- package/src/utils/marker.ts +8 -32
- package/src/utils/smodel-util.ts +28 -22
- package/src/utils/viewpoint-util.ts +5 -6
- package/src/views/base-view-module.ts +97 -0
- package/src/views/compartments.tsx +37 -0
- package/src/views/glsp-edge-view.tsx +79 -0
- package/{lib/utils/array-utils.d.ts → src/views/index.ts} +7 -4
- package/src/views/issue-marker-view.tsx +65 -0
- package/src/views/rounded-corner-view.tsx +103 -0
- package/src/views/rounded-corner.ts +87 -0
- 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 -82
- 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 +0 -3
- package/lib/base/args.js.map +0 -1
- package/lib/base/editor-context.d.ts +0 -46
- 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 -129
- package/lib/base/operations/operation.d.ts.map +0 -1
- package/lib/base/operations/operation.js +0 -201
- 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/decoration/view.d.ts +0 -8
- package/lib/features/decoration/view.d.ts.map +0 -1
- package/lib/features/decoration/view.js +0 -80
- package/lib/features/decoration/view.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.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 -57
- 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.map +0 -1
- package/lib/utils/array-utils.js.map +0 -1
- package/src/base/actions/context-actions.ts +0 -43
- package/src/base/actions/edit-mode-action.ts +0 -33
- package/src/base/actions/edit-validation-actions.ts +0 -102
- package/src/base/actions/protocol-actions.ts +0 -82
- package/src/base/operations/operation.ts +0 -148
- package/src/features/copy-paste/copy-paste-actions.ts +0 -60
- package/src/features/decoration/view.tsx +0 -54
- package/src/features/hints/request-type-hints-action.ts +0 -36
- package/src/model-source/glsp-server-status.ts +0 -38
|
@@ -1,17 +1,4 @@
|
|
|
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
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -24,57 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
24
11
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
25
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
26
13
|
};
|
|
27
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
28
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
29
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
30
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
31
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
32
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
33
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
37
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
38
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
39
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
40
|
-
function step(op) {
|
|
41
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
42
|
-
while (_) try {
|
|
43
|
-
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;
|
|
44
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
45
|
-
switch (op[0]) {
|
|
46
|
-
case 0: case 1: t = op; break;
|
|
47
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
48
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
49
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
50
|
-
default:
|
|
51
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
52
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
53
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
54
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
55
|
-
if (t[2]) _.ops.pop();
|
|
56
|
-
_.trys.pop(); continue;
|
|
57
|
-
}
|
|
58
|
-
op = body.call(thisArg, _);
|
|
59
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
60
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
var __values = (this && this.__values) || function(o) {
|
|
64
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
65
|
-
if (m) return m.call(o);
|
|
66
|
-
if (o && typeof o.length === "number") return {
|
|
67
|
-
next: function () {
|
|
68
|
-
if (o && i >= o.length) o = void 0;
|
|
69
|
-
return { value: o && o[i++], done: !o };
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
73
|
-
};
|
|
74
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75
|
-
exports.DeleteMarkersCommand = exports.
|
|
15
|
+
exports.DeleteMarkersCommand = exports.ApplyMarkersCommand = exports.ApplyMarkersAction = exports.SetMarkersCommand = exports.ExternalMarkerManager = exports.ValidationFeedbackEmitter = void 0;
|
|
76
16
|
/********************************************************************************
|
|
77
|
-
* Copyright (c) 2019-
|
|
17
|
+
* Copyright (c) 2019-2021 EclipseSource and others.
|
|
78
18
|
*
|
|
79
19
|
* This program and the accompanying materials are made available under the
|
|
80
20
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -88,316 +28,225 @@ exports.DeleteMarkersCommand = exports.DeleteMarkersAction = exports.ApplyMarker
|
|
|
88
28
|
*
|
|
89
29
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
90
30
|
********************************************************************************/
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
31
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
32
|
+
const inversify_1 = require("inversify");
|
|
33
|
+
const sprotty_1 = require("sprotty");
|
|
34
|
+
const editor_context_service_1 = require("../../base/editor-context-service");
|
|
35
|
+
const types_1 = require("../../base/types");
|
|
36
|
+
const smodel_util_1 = require("../../utils/smodel-util");
|
|
37
|
+
const hover_1 = require("../hover/hover");
|
|
38
|
+
const model_1 = require("../tool-feedback/model");
|
|
39
|
+
const issue_marker_1 = require("./issue-marker");
|
|
99
40
|
/**
|
|
100
41
|
* Feedback emitter sending actions for visualizing model validation feedback and
|
|
101
42
|
* re-establishing this feedback visualization after the model has been updated.
|
|
102
43
|
*/
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
44
|
+
let ValidationFeedbackEmitter = class ValidationFeedbackEmitter {
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
46
|
+
constructor() { }
|
|
106
47
|
/**
|
|
107
48
|
* Register the action that should be emitted for visualizing validation feedback.
|
|
108
49
|
* @param action the action that should be emitted when the model is updated and that will visualize the model validation feedback.
|
|
109
50
|
*/
|
|
110
|
-
|
|
51
|
+
registerValidationFeedbackAction(action) {
|
|
111
52
|
// De-register old action responsible for applying markers and re-applying them when the model is updated
|
|
112
53
|
this.feedbackActionDispatcher.deregisterFeedback(this, []);
|
|
113
54
|
// Clear existing markers
|
|
114
55
|
if (this.registeredAction !== undefined) {
|
|
115
|
-
|
|
116
|
-
this.actionDispatcher().then(
|
|
56
|
+
const deleteMarkersAction = new protocol_1.DeleteMarkersAction(this.registeredAction.markers);
|
|
57
|
+
this.actionDispatcher().then(dispatcher => dispatcher.dispatch(deleteMarkersAction));
|
|
117
58
|
}
|
|
118
59
|
// Register new action responsible for applying markers and re-applying them when the model is updated
|
|
119
60
|
this.feedbackActionDispatcher.registerFeedback(this, [action]);
|
|
120
61
|
this.registeredAction = action;
|
|
121
|
-
};
|
|
122
|
-
__decorate([
|
|
123
|
-
inversify_1.inject(types_1.GLSP_TYPES.IFeedbackActionDispatcher),
|
|
124
|
-
__metadata("design:type", Object)
|
|
125
|
-
], ValidationFeedbackEmitter.prototype, "feedbackActionDispatcher", void 0);
|
|
126
|
-
__decorate([
|
|
127
|
-
inversify_1.inject(sprotty_1.TYPES.IActionDispatcherProvider),
|
|
128
|
-
__metadata("design:type", Function)
|
|
129
|
-
], ValidationFeedbackEmitter.prototype, "actionDispatcher", void 0);
|
|
130
|
-
ValidationFeedbackEmitter = __decorate([
|
|
131
|
-
inversify_1.injectable(),
|
|
132
|
-
__metadata("design:paramtypes", [])
|
|
133
|
-
], ValidationFeedbackEmitter);
|
|
134
|
-
return ValidationFeedbackEmitter;
|
|
135
|
-
}());
|
|
136
|
-
exports.ValidationFeedbackEmitter = ValidationFeedbackEmitter;
|
|
137
|
-
/**
|
|
138
|
-
* Action to set markers for a model
|
|
139
|
-
*/
|
|
140
|
-
var SetMarkersAction = /** @class */ (function () {
|
|
141
|
-
function SetMarkersAction(markers, kind) {
|
|
142
|
-
if (kind === void 0) { kind = SetMarkersCommand.KIND; }
|
|
143
|
-
this.markers = markers;
|
|
144
|
-
this.kind = kind;
|
|
145
62
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
63
|
+
};
|
|
64
|
+
__decorate([
|
|
65
|
+
inversify_1.inject(types_1.GLSP_TYPES.IFeedbackActionDispatcher),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], ValidationFeedbackEmitter.prototype, "feedbackActionDispatcher", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
inversify_1.inject(sprotty_1.TYPES.IActionDispatcherProvider),
|
|
70
|
+
__metadata("design:type", Function)
|
|
71
|
+
], ValidationFeedbackEmitter.prototype, "actionDispatcher", void 0);
|
|
72
|
+
ValidationFeedbackEmitter = __decorate([
|
|
73
|
+
inversify_1.injectable(),
|
|
74
|
+
__metadata("design:paramtypes", [])
|
|
75
|
+
], ValidationFeedbackEmitter);
|
|
76
|
+
exports.ValidationFeedbackEmitter = ValidationFeedbackEmitter;
|
|
153
77
|
/**
|
|
154
78
|
* Manages current markers for the outside of the GLSP.
|
|
155
79
|
*
|
|
156
80
|
* Typically this is rebound by the surrounding tool, e.g. Theia, to be aware of
|
|
157
81
|
* and propagate current markers.
|
|
158
82
|
*/
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
162
|
-
ExternalMarkerManager.prototype.connect = function (actionDispatcher) {
|
|
83
|
+
let ExternalMarkerManager = class ExternalMarkerManager {
|
|
84
|
+
connect(actionDispatcher) {
|
|
163
85
|
this.actionDispatcher = actionDispatcher;
|
|
164
|
-
}
|
|
165
|
-
|
|
86
|
+
}
|
|
87
|
+
removeMarkers(markers) {
|
|
166
88
|
if (this.actionDispatcher) {
|
|
167
|
-
this.actionDispatcher.dispatch(new DeleteMarkersAction(markers));
|
|
89
|
+
this.actionDispatcher.dispatch(new protocol_1.DeleteMarkersAction(markers));
|
|
168
90
|
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}());
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
ExternalMarkerManager = __decorate([
|
|
94
|
+
inversify_1.injectable()
|
|
95
|
+
], ExternalMarkerManager);
|
|
175
96
|
exports.ExternalMarkerManager = ExternalMarkerManager;
|
|
176
97
|
/**
|
|
177
98
|
* Command for handling `SetMarkersAction`
|
|
178
99
|
*/
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
_this.action = action;
|
|
184
|
-
return _this;
|
|
100
|
+
let SetMarkersCommand = class SetMarkersCommand extends sprotty_1.Command {
|
|
101
|
+
constructor(action) {
|
|
102
|
+
super();
|
|
103
|
+
this.action = action;
|
|
185
104
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
this.externalMarkerManager.setMarkers(markers, uri);
|
|
198
|
-
applyMarkersAction = new ApplyMarkersAction(markers);
|
|
199
|
-
this.validationFeedbackEmitter.registerValidationFeedbackAction(applyMarkersAction);
|
|
200
|
-
return [2 /*return*/, context.root];
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
});
|
|
204
|
-
};
|
|
205
|
-
SetMarkersCommand.prototype.undo = function (context) {
|
|
105
|
+
async execute(context) {
|
|
106
|
+
const markers = this.action.markers;
|
|
107
|
+
const uri = await this.editorContextService.getSourceUri();
|
|
108
|
+
if (this.externalMarkerManager) {
|
|
109
|
+
this.externalMarkerManager.setMarkers(markers, uri);
|
|
110
|
+
}
|
|
111
|
+
const applyMarkersAction = new ApplyMarkersAction(markers);
|
|
112
|
+
this.validationFeedbackEmitter.registerValidationFeedbackAction(applyMarkersAction);
|
|
113
|
+
return context.root;
|
|
114
|
+
}
|
|
115
|
+
undo(context) {
|
|
206
116
|
return context.root;
|
|
207
|
-
}
|
|
208
|
-
|
|
117
|
+
}
|
|
118
|
+
redo(context) {
|
|
209
119
|
return this.execute(context);
|
|
210
|
-
};
|
|
211
|
-
SetMarkersCommand.KIND = 'setMarkers';
|
|
212
|
-
__decorate([
|
|
213
|
-
inversify_1.inject(ValidationFeedbackEmitter),
|
|
214
|
-
__metadata("design:type", ValidationFeedbackEmitter)
|
|
215
|
-
], SetMarkersCommand.prototype, "validationFeedbackEmitter", void 0);
|
|
216
|
-
__decorate([
|
|
217
|
-
inversify_1.inject(ExternalMarkerManager),
|
|
218
|
-
inversify_1.optional(),
|
|
219
|
-
__metadata("design:type", ExternalMarkerManager)
|
|
220
|
-
], SetMarkersCommand.prototype, "externalMarkerManager", void 0);
|
|
221
|
-
__decorate([
|
|
222
|
-
inversify_1.inject(editor_context_1.EditorContextService),
|
|
223
|
-
__metadata("design:type", editor_context_1.EditorContextService)
|
|
224
|
-
], SetMarkersCommand.prototype, "editorContextService", void 0);
|
|
225
|
-
SetMarkersCommand = __decorate([
|
|
226
|
-
inversify_1.injectable(),
|
|
227
|
-
__param(0, inversify_1.inject(sprotty_1.TYPES.Action)),
|
|
228
|
-
__metadata("design:paramtypes", [SetMarkersAction])
|
|
229
|
-
], SetMarkersCommand);
|
|
230
|
-
return SetMarkersCommand;
|
|
231
|
-
}(sprotty_1.Command));
|
|
232
|
-
exports.SetMarkersCommand = SetMarkersCommand;
|
|
233
|
-
/**
|
|
234
|
-
* Action to retrieve markers for a model
|
|
235
|
-
*/
|
|
236
|
-
var RequestMarkersAction = /** @class */ (function () {
|
|
237
|
-
function RequestMarkersAction(elementsIDs, kind) {
|
|
238
|
-
if (elementsIDs === void 0) { elementsIDs = []; }
|
|
239
|
-
if (kind === void 0) { kind = RequestMarkersAction.KIND; }
|
|
240
|
-
this.elementsIDs = elementsIDs;
|
|
241
|
-
this.kind = kind;
|
|
242
120
|
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
121
|
+
};
|
|
122
|
+
SetMarkersCommand.KIND = protocol_1.SetMarkersAction.KIND;
|
|
123
|
+
__decorate([
|
|
124
|
+
inversify_1.inject(ValidationFeedbackEmitter),
|
|
125
|
+
__metadata("design:type", ValidationFeedbackEmitter)
|
|
126
|
+
], SetMarkersCommand.prototype, "validationFeedbackEmitter", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
inversify_1.inject(ExternalMarkerManager),
|
|
129
|
+
inversify_1.optional(),
|
|
130
|
+
__metadata("design:type", ExternalMarkerManager)
|
|
131
|
+
], SetMarkersCommand.prototype, "externalMarkerManager", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
inversify_1.inject(editor_context_service_1.EditorContextService),
|
|
134
|
+
__metadata("design:type", editor_context_service_1.EditorContextService)
|
|
135
|
+
], SetMarkersCommand.prototype, "editorContextService", void 0);
|
|
136
|
+
SetMarkersCommand = __decorate([
|
|
137
|
+
inversify_1.injectable(),
|
|
138
|
+
__param(0, inversify_1.inject(sprotty_1.TYPES.Action)),
|
|
139
|
+
__metadata("design:paramtypes", [protocol_1.SetMarkersAction])
|
|
140
|
+
], SetMarkersCommand);
|
|
141
|
+
exports.SetMarkersCommand = SetMarkersCommand;
|
|
247
142
|
/**
|
|
248
143
|
* Action for applying makers to a model
|
|
249
144
|
*/
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
if (kind === void 0) { kind = ApplyMarkersCommand.KIND; }
|
|
145
|
+
let ApplyMarkersAction = class ApplyMarkersAction {
|
|
146
|
+
constructor(markers, kind = ApplyMarkersCommand.KIND) {
|
|
253
147
|
this.markers = markers;
|
|
254
148
|
this.kind = kind;
|
|
255
149
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}());
|
|
150
|
+
};
|
|
151
|
+
ApplyMarkersAction = __decorate([
|
|
152
|
+
inversify_1.injectable(),
|
|
153
|
+
__metadata("design:paramtypes", [Array, Object])
|
|
154
|
+
], ApplyMarkersAction);
|
|
262
155
|
exports.ApplyMarkersAction = ApplyMarkersAction;
|
|
263
156
|
/**
|
|
264
157
|
* Command for handling `ApplyMarkersAction`
|
|
265
158
|
*/
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
_this.priority = 0;
|
|
272
|
-
return _this;
|
|
159
|
+
let ApplyMarkersCommand = class ApplyMarkersCommand extends model_1.FeedbackCommand {
|
|
160
|
+
constructor(action) {
|
|
161
|
+
super();
|
|
162
|
+
this.action = action;
|
|
163
|
+
this.priority = 0;
|
|
273
164
|
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
var issue = issue_marker_1.createSIssue(marker);
|
|
284
|
-
issueMarker.issues.push(issue);
|
|
285
|
-
addMaxSeverityCSSClassToIssueParent(modelElement, issueMarker);
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
290
|
-
finally {
|
|
291
|
-
try {
|
|
292
|
-
if (markers_1_1 && !markers_1_1.done && (_a = markers_1.return)) _a.call(markers_1);
|
|
165
|
+
execute(context) {
|
|
166
|
+
const markers = this.action.markers;
|
|
167
|
+
for (const marker of markers) {
|
|
168
|
+
const modelElement = context.root.index.getById(marker.elementId);
|
|
169
|
+
if (modelElement instanceof sprotty_1.SParentElement) {
|
|
170
|
+
const issueMarker = issue_marker_1.getOrCreateSIssueMarker(modelElement);
|
|
171
|
+
const issue = issue_marker_1.createSIssue(marker);
|
|
172
|
+
issueMarker.issues.push(issue);
|
|
173
|
+
addMaxSeverityCSSClassToIssueParent(modelElement, issueMarker);
|
|
293
174
|
}
|
|
294
|
-
finally { if (e_1) throw e_1.error; }
|
|
295
175
|
}
|
|
296
176
|
return context.root;
|
|
297
|
-
}
|
|
298
|
-
|
|
177
|
+
}
|
|
178
|
+
undo(context) {
|
|
299
179
|
return context.root;
|
|
300
|
-
}
|
|
301
|
-
|
|
180
|
+
}
|
|
181
|
+
redo(context) {
|
|
302
182
|
return this.execute(context);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}(model_1.FeedbackCommand));
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
ApplyMarkersCommand.KIND = 'applyMarkers';
|
|
186
|
+
ApplyMarkersCommand = __decorate([
|
|
187
|
+
inversify_1.injectable(),
|
|
188
|
+
__param(0, inversify_1.inject(sprotty_1.TYPES.Action)),
|
|
189
|
+
__metadata("design:paramtypes", [ApplyMarkersAction])
|
|
190
|
+
], ApplyMarkersCommand);
|
|
312
191
|
exports.ApplyMarkersCommand = ApplyMarkersCommand;
|
|
313
192
|
function addMaxSeverityCSSClassToIssueParent(modelElement, issueMarker) {
|
|
314
|
-
|
|
193
|
+
const maxSeverityCSSClass = hover_1.getSeverity(issueMarker);
|
|
315
194
|
if (!modelElement.cssClasses) {
|
|
316
195
|
modelElement.cssClasses = [maxSeverityCSSClass];
|
|
317
196
|
}
|
|
318
197
|
else {
|
|
319
|
-
modelElement.cssClasses = modelElement.cssClasses.filter(
|
|
198
|
+
modelElement.cssClasses = modelElement.cssClasses.filter((value) => !value.match('info|warning|error'));
|
|
320
199
|
modelElement.cssClasses.push(maxSeverityCSSClass);
|
|
321
200
|
}
|
|
322
201
|
}
|
|
323
202
|
function removeCSSClassFromIssueParent(modelElement, issueMarker) {
|
|
324
203
|
smodel_util_1.removeCssClasses(modelElement, [hover_1.getSeverity(issueMarker)]);
|
|
325
204
|
}
|
|
326
|
-
/**
|
|
327
|
-
* Action for clearing makers of a model
|
|
328
|
-
*/
|
|
329
|
-
var DeleteMarkersAction = /** @class */ (function () {
|
|
330
|
-
function DeleteMarkersAction(markers, kind) {
|
|
331
|
-
if (kind === void 0) { kind = DeleteMarkersCommand.KIND; }
|
|
332
|
-
this.markers = markers;
|
|
333
|
-
this.kind = kind;
|
|
334
|
-
}
|
|
335
|
-
DeleteMarkersAction = __decorate([
|
|
336
|
-
inversify_1.injectable(),
|
|
337
|
-
__metadata("design:paramtypes", [Array, Object])
|
|
338
|
-
], DeleteMarkersAction);
|
|
339
|
-
return DeleteMarkersAction;
|
|
340
|
-
}());
|
|
341
|
-
exports.DeleteMarkersAction = DeleteMarkersAction;
|
|
342
205
|
/**
|
|
343
206
|
* Command for handling `DeleteMarkersAction`
|
|
344
207
|
*/
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
_this.action = action;
|
|
350
|
-
return _this;
|
|
208
|
+
let DeleteMarkersCommand = class DeleteMarkersCommand extends sprotty_1.Command {
|
|
209
|
+
constructor(action) {
|
|
210
|
+
super();
|
|
211
|
+
this.action = action;
|
|
351
212
|
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
var issue = issueMarker.issues[index];
|
|
365
|
-
if (issue.message === marker.description) {
|
|
366
|
-
issueMarker.issues.splice(index--, 1);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
if (issueMarker.issues.length === 0) {
|
|
370
|
-
modelElement.remove(issueMarker);
|
|
371
|
-
}
|
|
372
|
-
else {
|
|
373
|
-
addMaxSeverityCSSClassToIssueParent(modelElement, issueMarker);
|
|
213
|
+
execute(context) {
|
|
214
|
+
const markers = this.action.markers;
|
|
215
|
+
for (const marker of markers) {
|
|
216
|
+
const modelElement = context.root.index.getById(marker.elementId);
|
|
217
|
+
if (modelElement instanceof sprotty_1.SParentElement) {
|
|
218
|
+
const issueMarker = issue_marker_1.getSIssueMarker(modelElement);
|
|
219
|
+
if (issueMarker !== undefined) {
|
|
220
|
+
removeCSSClassFromIssueParent(modelElement, issueMarker);
|
|
221
|
+
for (let index = 0; index < issueMarker.issues.length; ++index) {
|
|
222
|
+
const issue = issueMarker.issues[index];
|
|
223
|
+
if (issue.message === marker.description) {
|
|
224
|
+
issueMarker.issues.splice(index--, 1);
|
|
374
225
|
}
|
|
375
226
|
}
|
|
227
|
+
if (issueMarker.issues.length === 0) {
|
|
228
|
+
modelElement.remove(issueMarker);
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
addMaxSeverityCSSClassToIssueParent(modelElement, issueMarker);
|
|
232
|
+
}
|
|
376
233
|
}
|
|
377
234
|
}
|
|
378
235
|
}
|
|
379
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
380
|
-
finally {
|
|
381
|
-
try {
|
|
382
|
-
if (markers_2_1 && !markers_2_1.done && (_a = markers_2.return)) _a.call(markers_2);
|
|
383
|
-
}
|
|
384
|
-
finally { if (e_2) throw e_2.error; }
|
|
385
|
-
}
|
|
386
236
|
return context.root;
|
|
387
|
-
}
|
|
388
|
-
|
|
237
|
+
}
|
|
238
|
+
undo(context) {
|
|
389
239
|
return context.root;
|
|
390
|
-
}
|
|
391
|
-
|
|
240
|
+
}
|
|
241
|
+
redo(context) {
|
|
392
242
|
return this.execute(context);
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
}(sprotty_1.Command));
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
DeleteMarkersCommand.KIND = protocol_1.DeleteMarkersAction.KIND;
|
|
246
|
+
DeleteMarkersCommand = __decorate([
|
|
247
|
+
inversify_1.injectable(),
|
|
248
|
+
__param(0, inversify_1.inject(sprotty_1.TYPES.Action)),
|
|
249
|
+
__metadata("design:paramtypes", [protocol_1.DeleteMarkersAction])
|
|
250
|
+
], DeleteMarkersCommand);
|
|
402
251
|
exports.DeleteMarkersCommand = DeleteMarkersCommand;
|
|
403
252
|
//# sourceMappingURL=validate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/features/validation/validate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/features/validation/validate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA+F;AAC/F,yCAAyD;AACzD,qCAWiB;AACjB,8EAAyE;AACzE,4CAA8C;AAC9C,yDAA2D;AAC3D,0CAA6C;AAE7C,kDAAyD;AACzD,iDAAwF;AAExF;;;GAGG;AAEH,IAAa,yBAAyB,GAAtC,MAAa,yBAAyB;IAOlC,gEAAgE;IAChE,gBAAuB,CAAC;IAExB;;;OAGG;IACH,gCAAgC,CAAC,MAAqB;QAClD,yGAAyG;QACzG,IAAI,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAE3D,yBAAyB;QACzB,IAAI,IAAI,CAAC,gBAAgB,KAAK,SAAS,EAAE;YACrC,MAAM,mBAAmB,GAAG,IAAI,8BAAmB,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;YACnF,IAAI,CAAC,gBAAgB,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC,CAAC;SACxF;QAED,sGAAsG;QACtG,IAAI,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;QAC/D,IAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC;IACnC,CAAC;CACJ,CAAA;AA3BiD;IAA7C,kBAAM,CAAC,kBAAU,CAAC,yBAAyB,CAAC;;2EAA+D;AAEnE;IAAxC,kBAAM,CAAC,eAAK,CAAC,yBAAyB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CAAC;IAED,IAAI,CAAC,OAAgC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;CACJ,CAAA;AAtCU,yBAAI,GAAG,8BAAmB,CAAC,IAAI,CAAC;AAD9B,oBAAoB;IADhC,sBAAU,EAAE;IAII,WAAA,kBAAM,CAAC,eAAK,CAAC,MAAM,CAAC,CAAA;qCAAmB,8BAAmB;GAH9D,oBAAoB,CAuChC;AAvCY,oDAAoB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 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,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=
|
|
16
|
+
import { ContainerModule } from 'inversify';
|
|
17
|
+
declare const glspViewportModule: ContainerModule;
|
|
18
|
+
export default glspViewportModule;
|
|
19
|
+
//# sourceMappingURL=di.config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/viewport/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAiB5C,QAAA,MAAM,kBAAkB,iBAYtB,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/********************************************************************************
|
|
4
|
+
* Copyright (c) 2021 EclipseSource and others.
|
|
5
|
+
*
|
|
6
|
+
* This program and the accompanying materials are made available under the
|
|
7
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
8
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
9
|
+
*
|
|
10
|
+
* This Source Code may also be made available under the following Secondary
|
|
11
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
12
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
13
|
+
* with the GNU Classpath Exception which is available at
|
|
14
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
15
|
+
*
|
|
16
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
17
|
+
********************************************************************************/
|
|
18
|
+
const inversify_1 = require("inversify");
|
|
19
|
+
const sprotty_1 = require("sprotty");
|
|
20
|
+
const glsp_scroll_mouse_listener_1 = require("./glsp-scroll-mouse-listener");
|
|
21
|
+
const glspViewportModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
|
|
22
|
+
sprotty_1.configureCommand({ bind, isBound }, sprotty_1.CenterCommand);
|
|
23
|
+
sprotty_1.configureCommand({ bind, isBound }, sprotty_1.FitToScreenCommand);
|
|
24
|
+
sprotty_1.configureCommand({ bind, isBound }, sprotty_1.GetViewportCommand);
|
|
25
|
+
sprotty_1.configureCommand({ bind, isBound }, sprotty_1.SetViewportCommand);
|
|
26
|
+
bind(sprotty_1.TYPES.KeyListener).to(sprotty_1.CenterKeyboardListener);
|
|
27
|
+
bind(sprotty_1.TYPES.MouseListener).to(sprotty_1.ZoomMouseListener);
|
|
28
|
+
bind(glsp_scroll_mouse_listener_1.GLSPScrollMouseListener).toSelf().inSingletonScope();
|
|
29
|
+
bind(sprotty_1.TYPES.MouseListener).toService(glsp_scroll_mouse_listener_1.GLSPScrollMouseListener);
|
|
30
|
+
sprotty_1.configureActionHandler({ bind, isBound }, sprotty_1.EnableToolsAction.KIND, glsp_scroll_mouse_listener_1.GLSPScrollMouseListener);
|
|
31
|
+
sprotty_1.configureActionHandler({ bind, isBound }, sprotty_1.EnableDefaultToolsAction.KIND, glsp_scroll_mouse_listener_1.GLSPScrollMouseListener);
|
|
32
|
+
});
|
|
33
|
+
exports.default = glspViewportModule;
|
|
34
|
+
//# sourceMappingURL=di.config.js.map
|