@eclipse-glsp/client 0.9.0-next.d0112315 → 0.9.0-next.f12e3d87
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/README.md +2 -1
- package/css/command-palette.css +6 -5
- package/css/glsp-sprotty.css +17 -8
- package/css/tool-palette.css +14 -14
- package/lib/base/action-dispatcher.d.ts.map +1 -1
- package/lib/base/action-dispatcher.js +39 -60
- package/lib/base/action-dispatcher.js.map +1 -1
- package/lib/base/actions/context-actions.d.ts +1 -1
- package/lib/base/actions/context-actions.d.ts.map +1 -1
- package/lib/base/actions/context-actions.js +11 -18
- package/lib/base/actions/context-actions.js.map +1 -1
- package/lib/base/actions/edit-mode-action.d.ts.map +1 -1
- package/lib/base/actions/edit-mode-action.js +12 -17
- package/lib/base/actions/edit-mode-action.js.map +1 -1
- package/lib/base/actions/edit-validation-actions.d.ts +1 -1
- package/lib/base/actions/edit-validation-actions.d.ts.map +1 -1
- package/lib/base/actions/edit-validation-actions.js +23 -26
- package/lib/base/actions/edit-validation-actions.js.map +1 -1
- package/lib/base/actions/focus-change-action.js +4 -5
- package/lib/base/actions/focus-change-action.js.map +1 -1
- package/lib/base/args.d.ts +1 -1
- package/lib/base/args.d.ts.map +1 -1
- package/lib/base/args.js.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.d.ts +1 -1
- package/lib/base/auto-complete/auto-complete-widget.d.ts.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.js +100 -150
- package/lib/base/auto-complete/auto-complete-widget.js.map +1 -1
- package/lib/base/auto-complete/validation-decorator.d.ts +1 -1
- package/lib/base/auto-complete/validation-decorator.js +38 -60
- package/lib/base/auto-complete/validation-decorator.js.map +1 -1
- package/lib/base/command-stack.d.ts.map +1 -1
- package/lib/base/command-stack.js +19 -37
- package/lib/base/command-stack.js.map +1 -1
- package/lib/base/container-modules.d.ts +40 -0
- package/lib/base/container-modules.d.ts.map +1 -0
- package/lib/base/container-modules.js +84 -0
- package/lib/base/container-modules.js.map +1 -0
- package/lib/base/di.config.d.ts +11 -2
- package/lib/base/di.config.d.ts.map +1 -1
- package/lib/base/di.config.js +37 -37
- 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 +24 -48
- package/lib/base/drag-aware-mouse-listener.js.map +1 -1
- package/lib/base/editor-context.d.ts.map +1 -1
- package/lib/base/editor-context.js +64 -128
- package/lib/base/editor-context.js.map +1 -1
- package/lib/base/focus-tracker.d.ts.map +1 -1
- package/lib/base/focus-tracker.js +19 -24
- package/lib/base/focus-tracker.js.map +1 -1
- package/lib/base/model/model-registry.js +10 -28
- package/lib/base/model/model-registry.js.map +1 -1
- package/lib/base/model/update-model-command.d.ts +2 -2
- package/lib/base/model/update-model-command.d.ts.map +1 -1
- package/lib/base/model/update-model-command.js +67 -88
- package/lib/base/model/update-model-command.js.map +1 -1
- package/lib/base/model-initialization-constraint.js +31 -52
- package/lib/base/model-initialization-constraint.js.map +1 -1
- package/lib/base/operations/operation.d.ts +5 -5
- package/lib/base/operations/operation.d.ts.map +1 -1
- package/lib/base/operations/operation.js +75 -115
- package/lib/base/operations/operation.js.map +1 -1
- package/lib/base/selection-clearing-mouse-listener.js +10 -28
- package/lib/base/selection-clearing-mouse-listener.js.map +1 -1
- package/lib/base/source-uri-aware.js +2 -5
- package/lib/base/source-uri-aware.js.map +1 -1
- package/lib/base/tool-manager/glsp-tool-manager.js +56 -137
- package/lib/base/tool-manager/glsp-tool-manager.js.map +1 -1
- package/lib/base/types.d.ts +2 -1
- package/lib/base/types.d.ts.map +1 -1
- package/lib/base/types.js +3 -2
- package/lib/base/types.js.map +1 -1
- package/lib/base/view/view-registry.js +10 -28
- package/lib/base/view/view-registry.js.map +1 -1
- package/lib/features/change-bounds/model.d.ts +3 -1
- package/lib/features/change-bounds/model.d.ts.map +1 -1
- package/lib/features/change-bounds/model.js +20 -31
- package/lib/features/change-bounds/model.js.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.d.ts.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.js +29 -28
- package/lib/features/change-bounds/movement-restrictor.js.map +1 -1
- package/lib/features/change-bounds/snap.js +13 -24
- package/lib/features/change-bounds/snap.js.map +1 -1
- package/lib/features/command-palette/command-palette-tool.js +30 -38
- package/lib/features/command-palette/command-palette-tool.js.map +1 -1
- package/lib/features/command-palette/di.config.js +6 -6
- package/lib/features/command-palette/di.config.js.map +1 -1
- package/lib/features/command-palette/server-command-palette-provider.d.ts.map +1 -1
- package/lib/features/command-palette/server-command-palette-provider.js +27 -32
- package/lib/features/command-palette/server-command-palette-provider.js.map +1 -1
- package/lib/features/context-menu/delete-element-context-menu.js +19 -67
- package/lib/features/context-menu/delete-element-context-menu.js.map +1 -1
- package/lib/features/context-menu/di.config.d.ts +1 -1
- package/lib/features/context-menu/di.config.d.ts.map +1 -1
- package/lib/features/context-menu/di.config.js +8 -8
- package/lib/features/context-menu/di.config.js.map +1 -1
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.d.ts.map +1 -1
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.js +29 -67
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.js.map +1 -1
- package/lib/features/context-menu/server-context-menu-provider.d.ts.map +1 -1
- package/lib/features/context-menu/server-context-menu-provider.js +29 -30
- package/lib/features/context-menu/server-context-menu-provider.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-actions.d.ts +1 -1
- package/lib/features/copy-paste/copy-paste-actions.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-actions.js +20 -30
- package/lib/features/copy-paste/copy-paste-actions.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts +5 -1
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.js +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 +2 -0
- package/lib/features/copy-paste/copy-paste-handler.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.js +67 -67
- package/lib/features/copy-paste/copy-paste-handler.js.map +1 -1
- package/lib/features/copy-paste/di.config.js +10 -10
- package/lib/features/copy-paste/di.config.js.map +1 -1
- package/lib/features/decoration/decoration-placer.d.ts.map +1 -1
- package/lib/features/decoration/decoration-placer.js +13 -32
- package/lib/features/decoration/decoration-placer.js.map +1 -1
- package/lib/features/decoration/di.config.js +4 -4
- package/lib/features/decoration/di.config.js.map +1 -1
- package/lib/features/edit-label/di.config.js +7 -7
- package/lib/features/edit-label/di.config.js.map +1 -1
- package/lib/features/edit-label/edit-label-tool.js +20 -43
- package/lib/features/edit-label/edit-label-tool.js.map +1 -1
- package/lib/features/edit-label/edit-label-validator.d.ts.map +1 -1
- package/lib/features/edit-label/edit-label-validator.js +37 -59
- package/lib/features/edit-label/edit-label-validator.js.map +1 -1
- package/lib/features/hints/di.config.js +8 -8
- package/lib/features/hints/di.config.js.map +1 -1
- package/lib/features/hints/model.d.ts +1 -1
- package/lib/features/hints/model.d.ts.map +1 -1
- package/lib/features/hints/request-type-hints-action.d.ts +1 -1
- package/lib/features/hints/request-type-hints-action.d.ts.map +1 -1
- package/lib/features/hints/request-type-hints-action.js +12 -14
- package/lib/features/hints/request-type-hints-action.js.map +1 -1
- package/lib/features/hints/type-hints.d.ts +4 -4
- package/lib/features/hints/type-hints.d.ts.map +1 -1
- package/lib/features/hints/type-hints.js +91 -133
- package/lib/features/hints/type-hints.js.map +1 -1
- package/lib/features/hover/di.config.js +7 -7
- package/lib/features/hover/di.config.js.map +1 -1
- package/lib/features/hover/hover.d.ts.map +1 -1
- package/lib/features/hover/hover.js +35 -76
- package/lib/features/hover/hover.js.map +1 -1
- package/lib/features/layout/di.config.d.ts +5 -1
- package/lib/features/layout/di.config.d.ts.map +1 -1
- package/lib/features/layout/di.config.js +47 -7
- package/lib/features/layout/di.config.js.map +1 -1
- package/lib/features/layout/freeform-layout.d.ts +16 -0
- package/lib/features/layout/freeform-layout.d.ts.map +1 -0
- package/lib/features/layout/freeform-layout.js +107 -0
- package/lib/features/layout/freeform-layout.js.map +1 -0
- package/lib/features/layout/layout-commands.d.ts +2 -2
- package/lib/features/layout/layout-commands.d.ts.map +1 -1
- package/lib/features/layout/layout-commands.js +187 -263
- package/lib/features/layout/layout-commands.js.map +1 -1
- package/lib/features/layout/layout-commands.spec.d.ts +1 -1
- package/lib/features/layout/layout-commands.spec.js +94 -88
- 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 +187 -0
- package/lib/features/layout/vbox-layout.js.map +1 -0
- package/lib/features/model-source-watcher/di.config.js +6 -6
- 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.map +1 -1
- package/lib/features/model-source-watcher/model-source-changed-action-handler.js +38 -45
- package/lib/features/model-source-watcher/model-source-changed-action-handler.js.map +1 -1
- package/lib/features/model-source-watcher/model-source-changed-action.d.ts +1 -1
- package/lib/features/model-source-watcher/model-source-changed-action.js +4 -5
- package/lib/features/model-source-watcher/model-source-changed-action.js.map +1 -1
- package/lib/features/mouse-tool/di.config.js +5 -5
- package/lib/features/mouse-tool/di.config.js.map +1 -1
- package/lib/features/mouse-tool/mouse-tool.d.ts +2 -1
- package/lib/features/mouse-tool/mouse-tool.d.ts.map +1 -1
- package/lib/features/mouse-tool/mouse-tool.js +69 -215
- package/lib/features/mouse-tool/mouse-tool.js.map +1 -1
- package/lib/features/navigation/di.config.js +9 -9
- package/lib/features/navigation/di.config.js.map +1 -1
- package/lib/features/navigation/navigation-action-handler.d.ts.map +1 -1
- package/lib/features/navigation/navigation-action-handler.js +136 -217
- package/lib/features/navigation/navigation-action-handler.js.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.d.ts.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.js +57 -122
- package/lib/features/navigation/navigation-target-resolver.js.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts +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/rank/model.d.ts +1 -1
- package/lib/features/rank/model.js +2 -2
- package/lib/features/rank/model.js.map +1 -1
- package/lib/features/reconnect/model.d.ts +1 -1
- package/lib/features/reconnect/model.d.ts.map +1 -1
- package/lib/features/reconnect/model.js +9 -27
- package/lib/features/reconnect/model.js.map +1 -1
- package/lib/features/save/di.config.d.ts +1 -1
- package/lib/features/save/di.config.d.ts.map +1 -1
- package/lib/features/save/di.config.js +5 -5
- package/lib/features/save/di.config.js.map +1 -1
- package/lib/features/save/save.d.ts +1 -1
- package/lib/features/save/save.js +11 -31
- package/lib/features/save/save.js.map +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.map +1 -1
- package/lib/features/select/select-feedback-action.js +45 -71
- package/lib/features/select/select-feedback-action.js.map +1 -1
- package/lib/features/select/select-mouse-listener.js +7 -23
- package/lib/features/select/select-mouse-listener.js.map +1 -1
- package/lib/features/select/selection-service.d.ts.map +1 -1
- package/lib/features/select/selection-service.js +132 -234
- package/lib/features/select/selection-service.js.map +1 -1
- package/lib/features/select/selection-service.spec.js +97 -124
- package/lib/features/select/selection-service.spec.js.map +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts +2 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js +104 -127
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.js +69 -103
- package/lib/features/tool-feedback/creation-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/css-feedback.d.ts +3 -1
- package/lib/features/tool-feedback/css-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/css-feedback.js +37 -81
- package/lib/features/tool-feedback/css-feedback.js.map +1 -1
- package/lib/features/tool-feedback/di.config.d.ts +1 -1
- package/lib/features/tool-feedback/di.config.d.ts.map +1 -1
- package/lib/features/tool-feedback/di.config.js +27 -27
- package/lib/features/tool-feedback/di.config.js.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts +1 -1
- 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 -193
- 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 +36 -58
- package/lib/features/tool-feedback/feedback-action-dispatcher.js.map +1 -1
- package/lib/features/tool-feedback/marquee-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/marquee-tool-feedback.js +41 -69
- package/lib/features/tool-feedback/marquee-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/model.d.ts +1 -1
- package/lib/features/tool-feedback/model.js +11 -27
- package/lib/features/tool-feedback/model.js.map +1 -1
- package/lib/features/tool-feedback/view.d.ts +4 -4
- package/lib/features/tool-feedback/view.d.ts.map +1 -1
- package/lib/features/tool-feedback/view.js +30 -37
- package/lib/features/tool-feedback/view.js.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 +1 -1
- package/lib/features/tool-palette/palette-item.d.ts.map +1 -1
- package/lib/features/tool-palette/palette-item.js +6 -5
- package/lib/features/tool-palette/palette-item.js.map +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette.js +182 -259
- package/lib/features/tool-palette/tool-palette.js.map +1 -1
- package/lib/features/tools/base-glsp-tool.js +37 -44
- package/lib/features/tools/base-glsp-tool.js.map +1 -1
- package/lib/features/tools/change-bounds-tool.d.ts +3 -2
- package/lib/features/tools/change-bounds-tool.d.ts.map +1 -1
- package/lib/features/tools/change-bounds-tool.js +187 -237
- package/lib/features/tools/change-bounds-tool.js.map +1 -1
- package/lib/features/tools/delete-tool.d.ts.map +1 -1
- package/lib/features/tools/delete-tool.js +69 -102
- package/lib/features/tools/delete-tool.js.map +1 -1
- package/lib/features/tools/di.config.js +18 -18
- package/lib/features/tools/di.config.js.map +1 -1
- package/lib/features/tools/edge-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-creation-tool.js +60 -85
- package/lib/features/tools/edge-creation-tool.js.map +1 -1
- package/lib/features/tools/edge-edit-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-edit-tool.js +110 -181
- package/lib/features/tools/edge-edit-tool.js.map +1 -1
- package/lib/features/tools/marquee-mouse-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-mouse-tool.js +128 -149
- package/lib/features/tools/marquee-mouse-tool.js.map +1 -1
- package/lib/features/tools/marquee-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-tool.js +32 -58
- package/lib/features/tools/marquee-tool.js.map +1 -1
- package/lib/features/tools/model.js +4 -22
- package/lib/features/tools/model.js.map +1 -1
- package/lib/features/tools/node-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/node-creation-tool.js +59 -89
- package/lib/features/tools/node-creation-tool.js.map +1 -1
- package/lib/features/tools/view.d.ts +1 -1
- package/lib/features/tools/view.d.ts.map +1 -1
- package/lib/features/tools/view.js +12 -31
- package/lib/features/tools/view.js.map +1 -1
- package/lib/features/undo-redo/model.d.ts +1 -1
- package/lib/features/undo-redo/model.js +8 -12
- package/lib/features/undo-redo/model.js.map +1 -1
- package/lib/features/validation/di.config.js +12 -12
- package/lib/features/validation/di.config.js.map +1 -1
- package/lib/features/validation/issue-marker.js +13 -51
- package/lib/features/validation/issue-marker.js.map +1 -1
- package/lib/features/validation/marker-navigator.d.ts.map +1 -1
- package/lib/features/validation/marker-navigator.js +129 -163
- package/lib/features/validation/marker-navigator.js.map +1 -1
- package/lib/features/validation/marker-navigator.spec.d.ts +1 -1
- package/lib/features/validation/marker-navigator.spec.js +79 -73
- package/lib/features/validation/marker-navigator.spec.js.map +1 -1
- package/lib/features/validation/validate.d.ts +2 -2
- package/lib/features/validation/validate.d.ts.map +1 -1
- package/lib/features/validation/validate.js +161 -276
- package/lib/features/validation/validate.js.map +1 -1
- package/lib/features/viewport/di.config.js +10 -10
- package/lib/features/viewport/di.config.js.map +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.d.ts.map +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.js +16 -32
- package/lib/features/viewport/glsp-scroll-mouse-listener.js.map +1 -1
- package/lib/index.d.ts +5 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +25 -23
- package/lib/index.js.map +1 -1
- package/lib/lib/model.js +11 -27
- package/lib/lib/model.js.map +1 -1
- package/lib/model-source/glsp-diagram-server.d.ts +1 -1
- package/lib/model-source/glsp-diagram-server.d.ts.map +1 -1
- package/lib/model-source/glsp-diagram-server.js +43 -118
- package/lib/model-source/glsp-diagram-server.js.map +1 -1
- package/lib/model-source/glsp-server-status.js +10 -27
- package/lib/model-source/glsp-server-status.js.map +1 -1
- package/lib/utils/argument-utils.d.ts +3 -3
- package/lib/utils/argument-utils.d.ts.map +1 -1
- package/lib/utils/argument-utils.js +27 -92
- package/lib/utils/argument-utils.js.map +1 -1
- package/lib/utils/array-utils.d.ts +1 -1
- package/lib/utils/array-utils.d.ts.map +1 -1
- package/lib/utils/array-utils.js +10 -15
- package/lib/utils/array-utils.js.map +1 -1
- package/lib/utils/html-utils.js +2 -2
- package/lib/utils/html-utils.js.map +1 -1
- package/lib/utils/layout-utils.d.ts +1 -1
- 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.js +11 -53
- package/lib/utils/marker.js.map +1 -1
- package/lib/utils/smodel-util.d.ts +3 -3
- package/lib/utils/smodel-util.d.ts.map +1 -1
- package/lib/utils/smodel-util.js +17 -51
- package/lib/utils/smodel-util.js.map +1 -1
- package/lib/utils/viewpoint-util.d.ts +1 -1
- package/lib/utils/viewpoint-util.d.ts.map +1 -1
- package/lib/utils/viewpoint-util.js +16 -16
- package/lib/utils/viewpoint-util.js.map +1 -1
- package/lib/views/base-view-module.js +9 -9
- package/lib/views/base-view-module.js.map +1 -1
- package/lib/views/compartments.d.ts +6 -0
- package/lib/views/compartments.d.ts.map +1 -0
- package/lib/views/compartments.js +43 -0
- package/lib/views/compartments.js.map +1 -0
- package/lib/views/default-types.js +1 -1
- package/lib/views/default-types.js.map +1 -1
- package/lib/views/glsp-edge-view.d.ts +1 -2
- package/lib/views/glsp-edge-view.d.ts.map +1 -1
- package/lib/views/glsp-edge-view.js +32 -62
- package/lib/views/glsp-edge-view.js.map +1 -1
- package/lib/views/index.d.ts +1 -0
- package/lib/views/index.d.ts.map +1 -1
- package/lib/views/index.js +1 -0
- package/lib/views/index.js.map +1 -1
- package/lib/views/issue-marker-view.d.ts +1 -1
- package/lib/views/issue-marker-view.d.ts.map +1 -1
- package/lib/views/issue-marker-view.js +19 -42
- package/lib/views/issue-marker-view.js.map +1 -1
- package/lib/views/rounded-corner-view.d.ts +2 -3
- package/lib/views/rounded-corner-view.d.ts.map +1 -1
- package/lib/views/rounded-corner-view.js +40 -70
- package/lib/views/rounded-corner-view.js.map +1 -1
- package/lib/views/rounded-corner.d.ts.map +1 -1
- package/lib/views/rounded-corner.js +44 -65
- package/lib/views/rounded-corner.js.map +1 -1
- package/package.json +6 -16
- package/src/base/action-dispatcher.ts +1 -2
- package/src/base/actions/context-actions.ts +6 -6
- package/src/base/actions/edit-mode-action.ts +3 -4
- package/src/base/actions/edit-validation-actions.ts +26 -14
- package/src/base/actions/focus-change-action.ts +1 -1
- package/src/base/args.ts +4 -2
- package/src/base/auto-complete/auto-complete-widget.ts +34 -21
- package/src/base/auto-complete/validation-decorator.ts +5 -5
- package/src/base/command-stack.ts +1 -3
- package/src/base/container-modules.ts +113 -0
- package/src/base/di.config.ts +31 -16
- package/src/base/drag-aware-mouse-listener.ts +1 -3
- package/src/base/editor-context.ts +2 -4
- package/src/base/focus-tracker.ts +0 -2
- package/src/base/model/update-model-command.ts +6 -8
- package/src/base/operations/operation.ts +57 -31
- package/src/base/types.ts +3 -2
- package/src/features/change-bounds/model.ts +16 -5
- package/src/features/change-bounds/movement-restrictor.ts +15 -7
- package/src/features/command-palette/server-command-palette-provider.ts +8 -5
- package/src/features/context-menu/di.config.ts +11 -9
- package/src/features/context-menu/selection-service-aware-context-menu-mouse-listener.ts +4 -3
- package/src/features/context-menu/server-context-menu-provider.ts +7 -3
- package/src/features/copy-paste/copy-paste-actions.ts +11 -8
- package/src/features/copy-paste/copy-paste-context-menu.ts +57 -17
- package/src/features/copy-paste/copy-paste-handler.ts +15 -6
- package/src/features/decoration/decoration-placer.ts +2 -13
- package/src/features/edit-label/edit-label-validator.ts +11 -12
- package/src/features/hints/model.ts +2 -2
- package/src/features/hints/request-type-hints-action.ts +10 -5
- package/src/features/hints/type-hints.ts +26 -30
- package/src/features/hover/hover.ts +1 -2
- package/src/features/layout/di.config.ts +30 -5
- package/src/features/layout/freeform-layout.ts +132 -0
- package/src/features/layout/layout-commands.spec.ts +79 -56
- package/src/features/layout/layout-commands.ts +42 -31
- package/src/features/layout/vbox-layout.ts +241 -0
- package/src/features/model-source-watcher/model-source-changed-action-handler.ts +3 -3
- package/src/features/model-source-watcher/model-source-changed-action.ts +2 -2
- package/src/features/mouse-tool/mouse-tool.ts +31 -22
- package/src/features/navigation/navigation-action-handler.ts +32 -22
- package/src/features/navigation/navigation-target-resolver.spec.ts +1 -3
- package/src/features/navigation/navigation-target-resolver.ts +14 -12
- package/src/features/rank/model.ts +2 -2
- package/src/features/reconnect/model.ts +2 -3
- package/src/features/save/di.config.ts +1 -2
- package/src/features/save/save.ts +2 -2
- package/src/features/select/select-feedback-action.ts +4 -6
- package/src/features/select/selection-service.spec.ts +9 -4
- package/src/features/select/selection-service.ts +13 -5
- package/src/features/tool-feedback/change-bounds-tool-feedback.ts +26 -17
- package/src/features/tool-feedback/creation-tool-feedback.ts +16 -7
- package/src/features/tool-feedback/css-feedback.ts +7 -4
- package/src/features/tool-feedback/di.config.ts +2 -5
- package/src/features/tool-feedback/edge-edit-tool-feedback.ts +18 -15
- package/src/features/tool-feedback/feedback-action-dispatcher.ts +6 -8
- package/src/features/tool-feedback/marquee-tool-feedback.ts +3 -2
- package/src/features/tool-feedback/model.ts +1 -2
- package/src/features/tool-feedback/view.tsx +16 -10
- package/src/features/tool-palette/di.config.ts +1 -1
- package/src/features/tool-palette/palette-item.ts +3 -3
- package/src/features/tool-palette/tool-palette.ts +12 -14
- package/src/features/tools/change-bounds-tool.ts +54 -25
- package/src/features/tools/delete-tool.ts +8 -3
- package/src/features/tools/edge-creation-tool.ts +5 -8
- package/src/features/tools/edge-edit-tool.ts +9 -18
- package/src/features/tools/marquee-mouse-tool.ts +57 -37
- package/src/features/tools/marquee-tool.ts +0 -1
- package/src/features/tools/node-creation-tool.ts +4 -9
- package/src/features/tools/view.tsx +17 -12
- package/src/features/undo-redo/model.ts +3 -3
- package/src/features/validation/marker-navigator.spec.ts +15 -9
- package/src/features/validation/marker-navigator.ts +23 -8
- package/src/features/validation/validate.ts +9 -13
- package/src/features/viewport/glsp-scroll-mouse-listener.ts +1 -10
- package/src/index.ts +26 -8
- package/src/model-source/glsp-diagram-server.ts +2 -14
- package/src/utils/argument-utils.ts +13 -9
- package/src/utils/array-utils.ts +4 -2
- package/src/utils/layout-utils.ts +11 -5
- package/src/utils/smodel-util.ts +14 -10
- package/src/utils/viewpoint-util.ts +3 -2
- package/src/views/compartments.tsx +37 -0
- package/src/views/glsp-edge-view.tsx +20 -13
- package/src/views/index.ts +1 -0
- package/src/views/issue-marker-view.tsx +11 -12
- package/src/views/rounded-corner-view.tsx +38 -25
- package/src/views/rounded-corner.ts +3 -4
- 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/src/base/actions/protocol-actions.ts +0 -82
|
@@ -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
15
|
exports.DeleteMarkersCommand = exports.DeleteMarkersAction = exports.ApplyMarkersCommand = exports.ApplyMarkersAction = exports.RequestMarkersAction = exports.SetMarkersCommand = exports.ExternalMarkerManager = exports.isSetMarkersAction = exports.SetMarkersAction = 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,67 +28,63 @@ 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 inversify_1 = require("inversify");
|
|
32
|
+
const sprotty_1 = require("sprotty");
|
|
33
|
+
const editor_context_1 = require("../../base/editor-context");
|
|
34
|
+
const types_1 = require("../../base/types");
|
|
35
|
+
const smodel_util_1 = require("../../utils/smodel-util");
|
|
36
|
+
const hover_1 = require("../hover/hover");
|
|
37
|
+
const model_1 = require("../tool-feedback/model");
|
|
38
|
+
const issue_marker_1 = require("./issue-marker");
|
|
99
39
|
/**
|
|
100
40
|
* Feedback emitter sending actions for visualizing model validation feedback and
|
|
101
41
|
* re-establishing this feedback visualization after the model has been updated.
|
|
102
42
|
*/
|
|
103
|
-
|
|
43
|
+
let ValidationFeedbackEmitter = class ValidationFeedbackEmitter {
|
|
104
44
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
105
|
-
|
|
106
|
-
}
|
|
45
|
+
constructor() { }
|
|
107
46
|
/**
|
|
108
47
|
* Register the action that should be emitted for visualizing validation feedback.
|
|
109
48
|
* @param action the action that should be emitted when the model is updated and that will visualize the model validation feedback.
|
|
110
49
|
*/
|
|
111
|
-
|
|
50
|
+
registerValidationFeedbackAction(action) {
|
|
112
51
|
// De-register old action responsible for applying markers and re-applying them when the model is updated
|
|
113
52
|
this.feedbackActionDispatcher.deregisterFeedback(this, []);
|
|
114
53
|
// Clear existing markers
|
|
115
54
|
if (this.registeredAction !== undefined) {
|
|
116
|
-
|
|
117
|
-
this.actionDispatcher().then(
|
|
55
|
+
const deleteMarkersAction = new DeleteMarkersAction(this.registeredAction.markers);
|
|
56
|
+
this.actionDispatcher().then(dispatcher => dispatcher.dispatch(deleteMarkersAction));
|
|
118
57
|
}
|
|
119
58
|
// Register new action responsible for applying markers and re-applying them when the model is updated
|
|
120
59
|
this.feedbackActionDispatcher.registerFeedback(this, [action]);
|
|
121
60
|
this.registeredAction = action;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}());
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
__decorate([
|
|
64
|
+
inversify_1.inject(types_1.GLSP_TYPES.IFeedbackActionDispatcher),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], ValidationFeedbackEmitter.prototype, "feedbackActionDispatcher", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
inversify_1.inject(sprotty_1.TYPES.IActionDispatcherProvider),
|
|
69
|
+
__metadata("design:type", Function)
|
|
70
|
+
], ValidationFeedbackEmitter.prototype, "actionDispatcher", void 0);
|
|
71
|
+
ValidationFeedbackEmitter = __decorate([
|
|
72
|
+
inversify_1.injectable(),
|
|
73
|
+
__metadata("design:paramtypes", [])
|
|
74
|
+
], ValidationFeedbackEmitter);
|
|
137
75
|
exports.ValidationFeedbackEmitter = ValidationFeedbackEmitter;
|
|
138
76
|
/**
|
|
139
77
|
* Action to set markers for a model
|
|
140
78
|
*/
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
if (kind === void 0) { kind = SetMarkersCommand.KIND; }
|
|
79
|
+
class SetMarkersAction {
|
|
80
|
+
constructor(markers, kind = SetMarkersCommand.KIND) {
|
|
144
81
|
this.markers = markers;
|
|
145
82
|
this.kind = kind;
|
|
146
83
|
}
|
|
147
|
-
|
|
148
|
-
}());
|
|
84
|
+
}
|
|
149
85
|
exports.SetMarkersAction = SetMarkersAction;
|
|
150
86
|
function isSetMarkersAction(action) {
|
|
151
|
-
return SetMarkersCommand.KIND === action.kind &&
|
|
87
|
+
return SetMarkersCommand.KIND === action.kind && 'markers' in action;
|
|
152
88
|
}
|
|
153
89
|
exports.isSetMarkersAction = isSetMarkersAction;
|
|
154
90
|
/**
|
|
@@ -157,168 +93,133 @@ exports.isSetMarkersAction = isSetMarkersAction;
|
|
|
157
93
|
* Typically this is rebound by the surrounding tool, e.g. Theia, to be aware of
|
|
158
94
|
* and propagate current markers.
|
|
159
95
|
*/
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
ExternalMarkerManager.prototype.connect = function (actionDispatcher) {
|
|
96
|
+
let ExternalMarkerManager = class ExternalMarkerManager {
|
|
97
|
+
connect(actionDispatcher) {
|
|
164
98
|
this.actionDispatcher = actionDispatcher;
|
|
165
|
-
}
|
|
166
|
-
|
|
99
|
+
}
|
|
100
|
+
removeMarkers(markers) {
|
|
167
101
|
if (this.actionDispatcher) {
|
|
168
102
|
this.actionDispatcher.dispatch(new DeleteMarkersAction(markers));
|
|
169
103
|
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}());
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
ExternalMarkerManager = __decorate([
|
|
107
|
+
inversify_1.injectable()
|
|
108
|
+
], ExternalMarkerManager);
|
|
176
109
|
exports.ExternalMarkerManager = ExternalMarkerManager;
|
|
177
110
|
/**
|
|
178
111
|
* Command for handling `SetMarkersAction`
|
|
179
112
|
*/
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
_this.action = action;
|
|
185
|
-
return _this;
|
|
113
|
+
let SetMarkersCommand = class SetMarkersCommand extends sprotty_1.Command {
|
|
114
|
+
constructor(action) {
|
|
115
|
+
super();
|
|
116
|
+
this.action = action;
|
|
186
117
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
case 1:
|
|
196
|
-
uri = _a.sent();
|
|
197
|
-
if (this.externalMarkerManager) {
|
|
198
|
-
this.externalMarkerManager.setMarkers(markers, uri);
|
|
199
|
-
}
|
|
200
|
-
applyMarkersAction = new ApplyMarkersAction(markers);
|
|
201
|
-
this.validationFeedbackEmitter.registerValidationFeedbackAction(applyMarkersAction);
|
|
202
|
-
return [2 /*return*/, context.root];
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
});
|
|
206
|
-
};
|
|
207
|
-
SetMarkersCommand.prototype.undo = function (context) {
|
|
118
|
+
async execute(context) {
|
|
119
|
+
const markers = this.action.markers;
|
|
120
|
+
const uri = await this.editorContextService.getSourceUri();
|
|
121
|
+
if (this.externalMarkerManager) {
|
|
122
|
+
this.externalMarkerManager.setMarkers(markers, uri);
|
|
123
|
+
}
|
|
124
|
+
const applyMarkersAction = new ApplyMarkersAction(markers);
|
|
125
|
+
this.validationFeedbackEmitter.registerValidationFeedbackAction(applyMarkersAction);
|
|
208
126
|
return context.root;
|
|
209
|
-
}
|
|
210
|
-
|
|
127
|
+
}
|
|
128
|
+
undo(context) {
|
|
129
|
+
return context.root;
|
|
130
|
+
}
|
|
131
|
+
redo(context) {
|
|
211
132
|
return this.execute(context);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}(sprotty_1.Command));
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
SetMarkersCommand.KIND = 'setMarkers';
|
|
136
|
+
__decorate([
|
|
137
|
+
inversify_1.inject(ValidationFeedbackEmitter),
|
|
138
|
+
__metadata("design:type", ValidationFeedbackEmitter)
|
|
139
|
+
], SetMarkersCommand.prototype, "validationFeedbackEmitter", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
inversify_1.inject(ExternalMarkerManager),
|
|
142
|
+
inversify_1.optional(),
|
|
143
|
+
__metadata("design:type", ExternalMarkerManager)
|
|
144
|
+
], SetMarkersCommand.prototype, "externalMarkerManager", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
inversify_1.inject(editor_context_1.EditorContextService),
|
|
147
|
+
__metadata("design:type", editor_context_1.EditorContextService)
|
|
148
|
+
], SetMarkersCommand.prototype, "editorContextService", void 0);
|
|
149
|
+
SetMarkersCommand = __decorate([
|
|
150
|
+
inversify_1.injectable(),
|
|
151
|
+
__param(0, inversify_1.inject(sprotty_1.TYPES.Action)),
|
|
152
|
+
__metadata("design:paramtypes", [SetMarkersAction])
|
|
153
|
+
], SetMarkersCommand);
|
|
234
154
|
exports.SetMarkersCommand = SetMarkersCommand;
|
|
235
155
|
/**
|
|
236
|
-
* Action to retrieve markers for a model
|
|
237
|
-
*/
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
if (elementsIDs === void 0) { elementsIDs = []; }
|
|
241
|
-
if (kind === void 0) { kind = RequestMarkersAction.KIND; }
|
|
156
|
+
* Action to retrieve markers for a model
|
|
157
|
+
*/
|
|
158
|
+
class RequestMarkersAction {
|
|
159
|
+
constructor(elementsIDs = [], kind = RequestMarkersAction.KIND) {
|
|
242
160
|
this.elementsIDs = elementsIDs;
|
|
243
161
|
this.kind = kind;
|
|
244
162
|
}
|
|
245
|
-
|
|
246
|
-
return RequestMarkersAction;
|
|
247
|
-
}());
|
|
163
|
+
}
|
|
248
164
|
exports.RequestMarkersAction = RequestMarkersAction;
|
|
165
|
+
RequestMarkersAction.KIND = 'requestMarkers';
|
|
249
166
|
/**
|
|
250
167
|
* Action for applying makers to a model
|
|
251
168
|
*/
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
if (kind === void 0) { kind = ApplyMarkersCommand.KIND; }
|
|
169
|
+
let ApplyMarkersAction = class ApplyMarkersAction {
|
|
170
|
+
constructor(markers, kind = ApplyMarkersCommand.KIND) {
|
|
255
171
|
this.markers = markers;
|
|
256
172
|
this.kind = kind;
|
|
257
173
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}());
|
|
174
|
+
};
|
|
175
|
+
ApplyMarkersAction = __decorate([
|
|
176
|
+
inversify_1.injectable(),
|
|
177
|
+
__metadata("design:paramtypes", [Array, Object])
|
|
178
|
+
], ApplyMarkersAction);
|
|
264
179
|
exports.ApplyMarkersAction = ApplyMarkersAction;
|
|
265
180
|
/**
|
|
266
181
|
* Command for handling `ApplyMarkersAction`
|
|
267
182
|
*/
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
_this.priority = 0;
|
|
274
|
-
return _this;
|
|
183
|
+
let ApplyMarkersCommand = class ApplyMarkersCommand extends model_1.FeedbackCommand {
|
|
184
|
+
constructor(action) {
|
|
185
|
+
super();
|
|
186
|
+
this.action = action;
|
|
187
|
+
this.priority = 0;
|
|
275
188
|
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
var issue = issue_marker_1.createSIssue(marker);
|
|
286
|
-
issueMarker.issues.push(issue);
|
|
287
|
-
addMaxSeverityCSSClassToIssueParent(modelElement, issueMarker);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
292
|
-
finally {
|
|
293
|
-
try {
|
|
294
|
-
if (markers_1_1 && !markers_1_1.done && (_a = markers_1.return)) _a.call(markers_1);
|
|
189
|
+
execute(context) {
|
|
190
|
+
const markers = this.action.markers;
|
|
191
|
+
for (const marker of markers) {
|
|
192
|
+
const modelElement = context.root.index.getById(marker.elementId);
|
|
193
|
+
if (modelElement instanceof sprotty_1.SParentElement) {
|
|
194
|
+
const issueMarker = issue_marker_1.getOrCreateSIssueMarker(modelElement);
|
|
195
|
+
const issue = issue_marker_1.createSIssue(marker);
|
|
196
|
+
issueMarker.issues.push(issue);
|
|
197
|
+
addMaxSeverityCSSClassToIssueParent(modelElement, issueMarker);
|
|
295
198
|
}
|
|
296
|
-
finally { if (e_1) throw e_1.error; }
|
|
297
199
|
}
|
|
298
200
|
return context.root;
|
|
299
|
-
}
|
|
300
|
-
|
|
201
|
+
}
|
|
202
|
+
undo(context) {
|
|
301
203
|
return context.root;
|
|
302
|
-
}
|
|
303
|
-
|
|
204
|
+
}
|
|
205
|
+
redo(context) {
|
|
304
206
|
return this.execute(context);
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}(model_1.FeedbackCommand));
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
ApplyMarkersCommand.KIND = 'applyMarkers';
|
|
210
|
+
ApplyMarkersCommand = __decorate([
|
|
211
|
+
inversify_1.injectable(),
|
|
212
|
+
__param(0, inversify_1.inject(sprotty_1.TYPES.Action)),
|
|
213
|
+
__metadata("design:paramtypes", [ApplyMarkersAction])
|
|
214
|
+
], ApplyMarkersCommand);
|
|
314
215
|
exports.ApplyMarkersCommand = ApplyMarkersCommand;
|
|
315
216
|
function addMaxSeverityCSSClassToIssueParent(modelElement, issueMarker) {
|
|
316
|
-
|
|
217
|
+
const maxSeverityCSSClass = hover_1.getSeverity(issueMarker);
|
|
317
218
|
if (!modelElement.cssClasses) {
|
|
318
219
|
modelElement.cssClasses = [maxSeverityCSSClass];
|
|
319
220
|
}
|
|
320
221
|
else {
|
|
321
|
-
modelElement.cssClasses = modelElement.cssClasses.filter(
|
|
222
|
+
modelElement.cssClasses = modelElement.cssClasses.filter((value) => !value.match('info|warning|error'));
|
|
322
223
|
modelElement.cssClasses.push(maxSeverityCSSClass);
|
|
323
224
|
}
|
|
324
225
|
}
|
|
@@ -328,78 +229,62 @@ function removeCSSClassFromIssueParent(modelElement, issueMarker) {
|
|
|
328
229
|
/**
|
|
329
230
|
* Action for clearing makers of a model
|
|
330
231
|
*/
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
if (kind === void 0) { kind = DeleteMarkersCommand.KIND; }
|
|
232
|
+
let DeleteMarkersAction = class DeleteMarkersAction {
|
|
233
|
+
constructor(markers, kind = DeleteMarkersCommand.KIND) {
|
|
334
234
|
this.markers = markers;
|
|
335
235
|
this.kind = kind;
|
|
336
236
|
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}());
|
|
237
|
+
};
|
|
238
|
+
DeleteMarkersAction = __decorate([
|
|
239
|
+
inversify_1.injectable(),
|
|
240
|
+
__metadata("design:paramtypes", [Array, Object])
|
|
241
|
+
], DeleteMarkersAction);
|
|
343
242
|
exports.DeleteMarkersAction = DeleteMarkersAction;
|
|
344
243
|
/**
|
|
345
244
|
* Command for handling `DeleteMarkersAction`
|
|
346
245
|
*/
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
_this.action = action;
|
|
352
|
-
return _this;
|
|
246
|
+
let DeleteMarkersCommand = class DeleteMarkersCommand extends sprotty_1.Command {
|
|
247
|
+
constructor(action) {
|
|
248
|
+
super();
|
|
249
|
+
this.action = action;
|
|
353
250
|
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
var issue = issueMarker.issues[index];
|
|
367
|
-
if (issue.message === marker.description) {
|
|
368
|
-
issueMarker.issues.splice(index--, 1);
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
if (issueMarker.issues.length === 0) {
|
|
372
|
-
modelElement.remove(issueMarker);
|
|
373
|
-
}
|
|
374
|
-
else {
|
|
375
|
-
addMaxSeverityCSSClassToIssueParent(modelElement, issueMarker);
|
|
251
|
+
execute(context) {
|
|
252
|
+
const markers = this.action.markers;
|
|
253
|
+
for (const marker of markers) {
|
|
254
|
+
const modelElement = context.root.index.getById(marker.elementId);
|
|
255
|
+
if (modelElement instanceof sprotty_1.SParentElement) {
|
|
256
|
+
const issueMarker = issue_marker_1.getSIssueMarker(modelElement);
|
|
257
|
+
if (issueMarker !== undefined) {
|
|
258
|
+
removeCSSClassFromIssueParent(modelElement, issueMarker);
|
|
259
|
+
for (let index = 0; index < issueMarker.issues.length; ++index) {
|
|
260
|
+
const issue = issueMarker.issues[index];
|
|
261
|
+
if (issue.message === marker.description) {
|
|
262
|
+
issueMarker.issues.splice(index--, 1);
|
|
376
263
|
}
|
|
377
264
|
}
|
|
265
|
+
if (issueMarker.issues.length === 0) {
|
|
266
|
+
modelElement.remove(issueMarker);
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
addMaxSeverityCSSClassToIssueParent(modelElement, issueMarker);
|
|
270
|
+
}
|
|
378
271
|
}
|
|
379
272
|
}
|
|
380
273
|
}
|
|
381
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
382
|
-
finally {
|
|
383
|
-
try {
|
|
384
|
-
if (markers_2_1 && !markers_2_1.done && (_a = markers_2.return)) _a.call(markers_2);
|
|
385
|
-
}
|
|
386
|
-
finally { if (e_2) throw e_2.error; }
|
|
387
|
-
}
|
|
388
274
|
return context.root;
|
|
389
|
-
}
|
|
390
|
-
|
|
275
|
+
}
|
|
276
|
+
undo(context) {
|
|
391
277
|
return context.root;
|
|
392
|
-
}
|
|
393
|
-
|
|
278
|
+
}
|
|
279
|
+
redo(context) {
|
|
394
280
|
return this.execute(context);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
}(sprotty_1.Command));
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
DeleteMarkersCommand.KIND = 'deleteMarkers';
|
|
284
|
+
DeleteMarkersCommand = __decorate([
|
|
285
|
+
inversify_1.injectable(),
|
|
286
|
+
__param(0, inversify_1.inject(sprotty_1.TYPES.Action)),
|
|
287
|
+
__metadata("design:paramtypes", [DeleteMarkersAction])
|
|
288
|
+
], DeleteMarkersCommand);
|
|
404
289
|
exports.DeleteMarkersCommand = DeleteMarkersCommand;
|
|
405
290
|
//# 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,yCAAyD;AACzD,qCAYiB;AAEjB,8DAAiE;AACjE,4CAA8C;AAE9C,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,mBAAmB,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,sG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,oBAAoB;IADhC,sBAAU,EAAE;IAII,WAAA,kBAAM,CAAC,eAAK,CAAC,MAAM,CAAC,CAAA;qCAAmB,mBAAmB;GAH9D,oBAAoB,CAuChC;AAvCY,oDAAoB"}
|
|
@@ -15,20 +15,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
*
|
|
16
16
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
17
17
|
********************************************************************************/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
sprotty_1.configureCommand({ bind
|
|
23
|
-
sprotty_1.configureCommand({ bind
|
|
24
|
-
sprotty_1.configureCommand({ bind
|
|
25
|
-
sprotty_1.configureCommand({ bind
|
|
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
26
|
bind(sprotty_1.TYPES.KeyListener).to(sprotty_1.CenterKeyboardListener);
|
|
27
27
|
bind(sprotty_1.TYPES.MouseListener).to(sprotty_1.ZoomMouseListener);
|
|
28
28
|
bind(glsp_scroll_mouse_listener_1.GLSPScrollMouseListener).toSelf().inSingletonScope();
|
|
29
29
|
bind(sprotty_1.TYPES.MouseListener).toService(glsp_scroll_mouse_listener_1.GLSPScrollMouseListener);
|
|
30
|
-
sprotty_1.configureActionHandler({ bind
|
|
31
|
-
sprotty_1.configureActionHandler({ bind
|
|
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
32
|
});
|
|
33
33
|
exports.default = glspViewportModule;
|
|
34
34
|
//# sourceMappingURL=di.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/viewport/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/viewport/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,qCAYiB;AAEjB,6EAAuE;AAEvE,MAAM,kBAAkB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACtE,0BAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,uBAAa,CAAC,CAAC;IACnD,0BAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,4BAAkB,CAAC,CAAC;IACxD,0BAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,4BAAkB,CAAC,CAAC;IACxD,0BAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,4BAAkB,CAAC,CAAC;IACxD,IAAI,CAAC,eAAK,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,gCAAsB,CAAC,CAAC;IACnD,IAAI,CAAC,eAAK,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,2BAAiB,CAAC,CAAC;IAChD,IAAI,CAAC,oDAAuB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC1D,IAAI,CAAC,eAAK,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,oDAAuB,CAAC,CAAC;IAE7D,gCAAsB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,2BAAiB,CAAC,IAAI,EAAE,oDAAuB,CAAC,CAAC;IAC3F,gCAAsB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,kCAAwB,CAAC,IAAI,EAAE,oDAAuB,CAAC,CAAC;AACtG,CAAC,CAAC,CAAC;AAEH,kBAAe,kBAAkB,CAAC"}
|