@eclipse-glsp/client 0.10.0-next.ca17587.154 → 1.1.0-RC01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/decoration.css +5 -1
- package/css/glsp-sprotty.css +149 -8
- package/css/tool-palette.css +2 -2
- package/lib/base/action-dispatcher.d.ts +4 -3
- package/lib/base/action-dispatcher.d.ts.map +1 -1
- package/lib/base/action-dispatcher.js +22 -12
- package/lib/base/action-dispatcher.js.map +1 -1
- package/lib/base/actions/focus-change-action.d.ts +16 -7
- package/lib/base/actions/focus-change-action.d.ts.map +1 -1
- package/lib/base/actions/focus-change-action.js +31 -12
- package/lib/base/actions/focus-change-action.js.map +1 -1
- package/lib/base/actions/sprotty-actions.d.ts +7 -0
- package/lib/base/actions/sprotty-actions.d.ts.map +1 -0
- package/lib/{features/tool-palette/palette-item.js → base/actions/sprotty-actions.js} +4 -20
- package/lib/base/actions/sprotty-actions.js.map +1 -0
- package/lib/base/auto-complete/auto-complete-actions.d.ts +5 -3
- package/lib/base/auto-complete/auto-complete-actions.d.ts.map +1 -1
- package/lib/base/auto-complete/auto-complete-actions.js +24 -5
- package/lib/base/auto-complete/auto-complete-actions.js.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.d.ts +9 -2
- package/lib/base/auto-complete/auto-complete-widget.d.ts.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.js +16 -9
- package/lib/base/auto-complete/auto-complete-widget.js.map +1 -1
- package/lib/base/auto-complete/validation-decorator.js +2 -2
- package/lib/base/auto-complete/validation-decorator.js.map +1 -1
- package/lib/base/command-stack.d.ts.map +1 -1
- package/lib/base/command-stack.js +6 -5
- package/lib/base/command-stack.js.map +1 -1
- package/lib/base/container-modules.d.ts.map +1 -1
- package/lib/base/container-modules.js +10 -9
- package/lib/base/container-modules.js.map +1 -1
- package/lib/base/di.config.d.ts +1 -1
- package/lib/base/di.config.d.ts.map +1 -1
- package/lib/base/di.config.js +13 -14
- package/lib/base/di.config.js.map +1 -1
- package/lib/base/drag-aware-mouse-listener.d.ts +1 -1
- package/lib/base/drag-aware-mouse-listener.d.ts.map +1 -1
- package/lib/base/drag-aware-mouse-listener.js.map +1 -1
- package/lib/base/editor-context-service.d.ts +15 -4
- package/lib/base/editor-context-service.d.ts.map +1 -1
- package/lib/base/editor-context-service.js +31 -19
- package/lib/base/editor-context-service.js.map +1 -1
- package/lib/base/focus-tracker.d.ts +1 -1
- package/lib/base/focus-tracker.d.ts.map +1 -1
- package/lib/base/focus-tracker.js +4 -4
- package/lib/base/focus-tracker.js.map +1 -1
- package/lib/base/model/model-registry.d.ts.map +1 -1
- package/lib/base/model/model-registry.js +2 -2
- package/lib/base/model/model-registry.js.map +1 -1
- package/lib/base/model/update-model-command.d.ts +15 -8
- package/lib/base/model/update-model-command.d.ts.map +1 -1
- package/lib/base/model/update-model-command.js +43 -53
- package/lib/base/model/update-model-command.js.map +1 -1
- package/lib/base/model-initialization-constraint.d.ts +4 -5
- package/lib/base/model-initialization-constraint.d.ts.map +1 -1
- package/lib/base/model-initialization-constraint.js +11 -13
- package/lib/base/model-initialization-constraint.js.map +1 -1
- package/lib/base/selection-clearing-mouse-listener.d.ts.map +1 -1
- package/lib/base/selection-clearing-mouse-listener.js +1 -1
- package/lib/base/selection-clearing-mouse-listener.js.map +1 -1
- package/lib/base/source-uri-aware.d.ts +2 -17
- package/lib/base/source-uri-aware.d.ts.map +1 -1
- package/lib/base/source-uri-aware.js +4 -6
- package/lib/base/source-uri-aware.js.map +1 -1
- package/lib/base/tool-manager/glsp-tool-manager.d.ts +1 -1
- package/lib/base/tool-manager/glsp-tool-manager.d.ts.map +1 -1
- package/lib/base/tool-manager/glsp-tool-manager.js +10 -10
- package/lib/base/tool-manager/glsp-tool-manager.js.map +1 -1
- package/lib/base/tool-manager/tool-actions.d.ts +14 -0
- package/lib/base/tool-manager/tool-actions.d.ts.map +1 -0
- package/lib/base/tool-manager/tool-actions.js +25 -0
- package/lib/base/tool-manager/tool-actions.js.map +1 -0
- package/lib/base/types.d.ts +146 -20
- package/lib/base/types.d.ts.map +1 -1
- package/lib/base/types.js +14 -26
- package/lib/base/types.js.map +1 -1
- package/lib/base/view/view-registry.d.ts.map +1 -1
- package/lib/base/view/view-registry.js +2 -2
- package/lib/base/view/view-registry.js.map +1 -1
- package/lib/features/change-bounds/model.d.ts +1 -1
- package/lib/features/change-bounds/model.d.ts.map +1 -1
- package/lib/features/change-bounds/model.js +3 -3
- package/lib/features/change-bounds/model.js.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.d.ts +37 -7
- package/lib/features/change-bounds/movement-restrictor.d.ts.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.js +55 -40
- package/lib/features/change-bounds/movement-restrictor.js.map +1 -1
- package/lib/features/change-bounds/snap.d.ts +60 -4
- package/lib/features/change-bounds/snap.d.ts.map +1 -1
- package/lib/features/change-bounds/snap.js +96 -9
- package/lib/features/change-bounds/snap.js.map +1 -1
- package/lib/features/change-bounds/snap.spec.d.ts +17 -0
- package/lib/features/change-bounds/snap.spec.d.ts.map +1 -0
- package/lib/features/change-bounds/snap.spec.js +82 -0
- package/lib/features/change-bounds/snap.spec.js.map +1 -0
- package/lib/features/command-palette/command-palette-tool.js +3 -3
- package/lib/features/command-palette/command-palette-tool.js.map +1 -1
- package/lib/features/command-palette/di.config.d.ts +2 -2
- package/lib/features/command-palette/di.config.d.ts.map +1 -1
- package/lib/features/command-palette/di.config.js +6 -6
- package/lib/features/command-palette/di.config.js.map +1 -1
- package/lib/features/command-palette/server-command-palette-provider.d.ts +1 -1
- package/lib/features/command-palette/server-command-palette-provider.d.ts.map +1 -1
- package/lib/features/command-palette/server-command-palette-provider.js +13 -10
- package/lib/features/command-palette/server-command-palette-provider.js.map +1 -1
- package/lib/features/context-menu/delete-element-context-menu.d.ts +17 -1
- package/lib/features/context-menu/delete-element-context-menu.d.ts.map +1 -1
- package/lib/features/context-menu/delete-element-context-menu.js +4 -4
- package/lib/features/context-menu/delete-element-context-menu.js.map +1 -1
- package/lib/features/context-menu/di.config.d.ts +1 -1
- package/lib/features/context-menu/di.config.d.ts.map +1 -1
- package/lib/features/context-menu/di.config.js +8 -7
- package/lib/features/context-menu/di.config.js.map +1 -1
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.d.ts +34 -4
- 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 +37 -31
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.js.map +1 -1
- package/lib/features/context-menu/server-context-menu-provider.d.ts +1 -1
- package/lib/features/context-menu/server-context-menu-provider.d.ts.map +1 -1
- package/lib/features/context-menu/server-context-menu-provider.js +8 -7
- package/lib/features/context-menu/server-context-menu-provider.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts +12 -15
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.js +26 -33
- package/lib/features/copy-paste/copy-paste-context-menu.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.d.ts +1 -1
- package/lib/features/copy-paste/copy-paste-handler.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.js +10 -11
- package/lib/features/copy-paste/copy-paste-handler.js.map +1 -1
- package/lib/features/copy-paste/di.config.d.ts +1 -1
- package/lib/features/copy-paste/di.config.d.ts.map +1 -1
- package/lib/features/copy-paste/di.config.js +5 -7
- package/lib/features/copy-paste/di.config.js.map +1 -1
- package/lib/features/decoration/decoration-placer.d.ts +1 -1
- package/lib/features/decoration/decoration-placer.d.ts.map +1 -1
- package/lib/features/decoration/decoration-placer.js +19 -3
- package/lib/features/decoration/decoration-placer.js.map +1 -1
- package/lib/features/decoration/di.config.d.ts +2 -2
- package/lib/features/decoration/di.config.d.ts.map +1 -1
- package/lib/features/decoration/di.config.js +4 -4
- package/lib/features/decoration/di.config.js.map +1 -1
- package/lib/features/edit-label/di.config.d.ts +1 -1
- package/lib/features/edit-label/di.config.d.ts.map +1 -1
- package/lib/features/edit-label/di.config.js +5 -5
- package/lib/features/edit-label/di.config.js.map +1 -1
- package/lib/features/edit-label/edit-label-tool.d.ts.map +1 -1
- package/lib/features/edit-label/edit-label-tool.js +2 -2
- package/lib/features/edit-label/edit-label-tool.js.map +1 -1
- package/lib/features/edit-label/edit-label-validator.d.ts +4 -6
- package/lib/features/edit-label/edit-label-validator.d.ts.map +1 -1
- package/lib/features/edit-label/edit-label-validator.js +11 -13
- package/lib/features/edit-label/edit-label-validator.js.map +1 -1
- package/lib/features/hints/di.config.js +4 -4
- package/lib/features/hints/di.config.js.map +1 -1
- package/lib/features/hints/type-hints.d.ts +15 -5
- package/lib/features/hints/type-hints.d.ts.map +1 -1
- package/lib/features/hints/type-hints.js +29 -26
- package/lib/features/hints/type-hints.js.map +1 -1
- package/lib/features/hover/di.config.d.ts +1 -1
- package/lib/features/hover/di.config.d.ts.map +1 -1
- package/lib/features/hover/di.config.js +14 -10
- package/lib/features/hover/di.config.js.map +1 -1
- package/lib/features/hover/hover.d.ts +16 -5
- package/lib/features/hover/hover.d.ts.map +1 -1
- package/lib/features/hover/hover.js +44 -19
- package/lib/features/hover/hover.js.map +1 -1
- package/lib/features/layout/di.config.d.ts +3 -3
- package/lib/features/layout/di.config.d.ts.map +1 -1
- package/lib/features/layout/di.config.js +12 -7
- package/lib/features/layout/di.config.js.map +1 -1
- package/lib/features/layout/freeform-layout.d.ts +17 -1
- package/lib/features/layout/freeform-layout.d.ts.map +1 -1
- package/lib/features/layout/freeform-layout.js +4 -4
- package/lib/features/layout/freeform-layout.js.map +1 -1
- package/lib/features/layout/hbox-layout.d.ts +41 -0
- package/lib/features/layout/hbox-layout.d.ts.map +1 -0
- package/lib/features/layout/hbox-layout.js +201 -0
- package/lib/features/layout/hbox-layout.js.map +1 -0
- package/lib/features/layout/layout-elements-action.d.ts +198 -0
- package/lib/features/layout/layout-elements-action.d.ts.map +1 -0
- package/lib/features/layout/layout-elements-action.js +391 -0
- package/lib/features/layout/layout-elements-action.js.map +1 -0
- package/lib/features/layout/layout-elements-action.spec.d.ts +3 -0
- package/lib/features/layout/layout-elements-action.spec.d.ts.map +1 -0
- package/lib/features/layout/{layout-commands.spec.js → layout-elements-action.spec.js} +81 -62
- package/lib/features/layout/layout-elements-action.spec.js.map +1 -0
- package/lib/features/layout/layouter.d.ts +37 -0
- package/lib/features/layout/layouter.d.ts.map +1 -0
- package/lib/features/layout/layouter.js +131 -0
- package/lib/features/layout/layouter.js.map +1 -0
- package/lib/features/layout/tests/freeform-layout.spec.d.ts +3 -0
- package/lib/features/layout/tests/freeform-layout.spec.d.ts.map +1 -0
- package/lib/features/layout/tests/freeform-layout.spec.js +201 -0
- package/lib/features/layout/tests/freeform-layout.spec.js.map +1 -0
- package/lib/features/layout/tests/hbox-layout.spec.d.ts +3 -0
- package/lib/features/layout/tests/hbox-layout.spec.d.ts.map +1 -0
- package/lib/features/layout/tests/hbox-layout.spec.js +161 -0
- package/lib/features/layout/tests/hbox-layout.spec.js.map +1 -0
- package/lib/features/layout/tests/layouter-test-util.d.ts +34 -0
- package/lib/features/layout/tests/layouter-test-util.d.ts.map +1 -0
- package/lib/features/layout/tests/layouter-test-util.js +96 -0
- package/lib/features/layout/tests/layouter-test-util.js.map +1 -0
- package/lib/features/layout/tests/vbox-layout.spec.d.ts +3 -0
- package/lib/features/layout/tests/vbox-layout.spec.d.ts.map +1 -0
- package/lib/features/layout/tests/vbox-layout.spec.js +161 -0
- package/lib/features/layout/tests/vbox-layout.spec.js.map +1 -0
- package/lib/features/layout/vbox-layout.d.ts +18 -2
- package/lib/features/layout/vbox-layout.d.ts.map +1 -1
- package/lib/features/layout/vbox-layout.js +26 -13
- package/lib/features/layout/vbox-layout.js.map +1 -1
- package/lib/features/mouse-tool/di.config.d.ts +1 -1
- package/lib/features/mouse-tool/di.config.d.ts.map +1 -1
- package/lib/features/mouse-tool/di.config.js +2 -2
- package/lib/features/mouse-tool/di.config.js.map +1 -1
- package/lib/features/mouse-tool/mouse-tool.d.ts +9 -6
- package/lib/features/mouse-tool/mouse-tool.d.ts.map +1 -1
- package/lib/features/mouse-tool/mouse-tool.js +10 -48
- package/lib/features/mouse-tool/mouse-tool.js.map +1 -1
- package/lib/features/navigation/di.config.js +4 -4
- package/lib/features/navigation/di.config.js.map +1 -1
- package/lib/features/navigation/navigation-action-handler.d.ts +31 -16
- package/lib/features/navigation/navigation-action-handler.d.ts.map +1 -1
- package/lib/features/navigation/navigation-action-handler.js +52 -68
- package/lib/features/navigation/navigation-action-handler.js.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.d.ts +3 -3
- package/lib/features/navigation/navigation-target-resolver.d.ts.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.js +8 -9
- package/lib/features/navigation/navigation-target-resolver.js.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.spec.js +12 -12
- package/lib/features/navigation/navigation-target-resolver.spec.js.map +1 -1
- package/lib/features/reconnect/model.d.ts +1 -1
- package/lib/features/reconnect/model.d.ts.map +1 -1
- package/lib/features/reconnect/model.js +1 -1
- package/lib/features/reconnect/model.js.map +1 -1
- package/lib/features/save/di.config.d.ts +1 -1
- package/lib/features/save/di.config.d.ts.map +1 -1
- package/lib/features/save/di.config.js +3 -3
- package/lib/features/save/di.config.js.map +1 -1
- package/lib/features/save/save-keylistener.d.ts +1 -1
- package/lib/features/save/save-keylistener.d.ts.map +1 -1
- package/lib/features/save/save-keylistener.js +3 -3
- package/lib/features/save/save-keylistener.js.map +1 -1
- package/lib/features/select/di.config.d.ts +1 -1
- package/lib/features/select/di.config.d.ts.map +1 -1
- package/lib/features/select/di.config.js +7 -8
- package/lib/features/select/di.config.js.map +1 -1
- package/lib/features/select/select-feedback-action.d.ts +26 -22
- package/lib/features/select/select-feedback-action.d.ts.map +1 -1
- package/lib/features/select/select-feedback-action.js +19 -46
- package/lib/features/select/select-feedback-action.js.map +1 -1
- package/lib/features/select/select-mouse-listener.d.ts +4 -2
- package/lib/features/select/select-mouse-listener.d.ts.map +1 -1
- package/lib/features/select/select-mouse-listener.js +63 -1
- package/lib/features/select/select-mouse-listener.js.map +1 -1
- package/lib/features/select/selection-service.d.ts +14 -5
- package/lib/features/select/selection-service.d.ts.map +1 -1
- package/lib/features/select/selection-service.js +55 -64
- package/lib/features/select/selection-service.js.map +1 -1
- package/lib/features/select/selection-service.spec.js +28 -25
- package/lib/features/select/selection-service.spec.js.map +1 -1
- package/lib/features/source-model-watcher/di.config.d.ts +4 -0
- package/lib/features/{model-source-watcher → source-model-watcher}/di.config.d.ts.map +1 -1
- package/lib/features/{model-source-watcher → source-model-watcher}/di.config.js +4 -4
- package/lib/features/source-model-watcher/di.config.js.map +1 -0
- package/lib/features/{model-source-watcher/model-source-changed-action-handler.d.ts → source-model-watcher/source-model-changed-action-handler.d.ts} +10 -10
- package/lib/features/source-model-watcher/source-model-changed-action-handler.d.ts.map +1 -0
- package/lib/features/{model-source-watcher/model-source-changed-action-handler.js → source-model-watcher/source-model-changed-action-handler.js} +28 -28
- package/lib/features/source-model-watcher/source-model-changed-action-handler.js.map +1 -0
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts +17 -9
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js +68 -38
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts +24 -12
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.js +88 -35
- package/lib/features/tool-feedback/creation-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/css-feedback.d.ts +17 -10
- package/lib/features/tool-feedback/css-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/css-feedback.js +42 -38
- package/lib/features/tool-feedback/css-feedback.js.map +1 -1
- package/lib/features/tool-feedback/di.config.d.ts +1 -1
- package/lib/features/tool-feedback/di.config.d.ts.map +1 -1
- package/lib/features/tool-feedback/di.config.js +18 -18
- package/lib/features/tool-feedback/di.config.js.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts +45 -22
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js +147 -114
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/feedback-action-dispatcher.d.ts +2 -2
- package/lib/features/tool-feedback/feedback-action-dispatcher.d.ts.map +1 -1
- package/lib/features/tool-feedback/feedback-action-dispatcher.js +4 -4
- package/lib/features/tool-feedback/feedback-action-dispatcher.js.map +1 -1
- package/lib/features/tool-feedback/marquee-tool-feedback.d.ts +21 -10
- package/lib/features/tool-feedback/marquee-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/marquee-tool-feedback.js +44 -18
- package/lib/features/tool-feedback/marquee-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/model.d.ts +1 -2
- package/lib/features/tool-feedback/model.d.ts.map +1 -1
- package/lib/features/tool-feedback/model.js +1 -1
- package/lib/features/tool-feedback/model.js.map +1 -1
- package/lib/features/tool-feedback/view.d.ts +1 -1
- package/lib/features/tool-feedback/view.d.ts.map +1 -1
- package/lib/features/tool-feedback/view.js +22 -5
- package/lib/features/tool-feedback/view.js.map +1 -1
- package/lib/features/tool-palette/di.config.d.ts +1 -1
- package/lib/features/tool-palette/di.config.d.ts.map +1 -1
- package/lib/features/tool-palette/di.config.js +5 -4
- package/lib/features/tool-palette/di.config.js.map +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts +10 -7
- package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette.js +39 -32
- package/lib/features/tool-palette/tool-palette.js.map +1 -1
- package/lib/features/tools/base-glsp-tool.d.ts +3 -3
- package/lib/features/tools/base-glsp-tool.d.ts.map +1 -1
- package/lib/features/tools/base-glsp-tool.js +11 -11
- package/lib/features/tools/base-glsp-tool.js.map +1 -1
- package/lib/features/tools/change-bounds-tool.d.ts +7 -9
- package/lib/features/tools/change-bounds-tool.d.ts.map +1 -1
- package/lib/features/tools/change-bounds-tool.js +48 -71
- package/lib/features/tools/change-bounds-tool.js.map +1 -1
- package/lib/features/tools/delete-tool.d.ts +1 -1
- package/lib/features/tools/delete-tool.d.ts.map +1 -1
- package/lib/features/tools/delete-tool.js +17 -17
- package/lib/features/tools/delete-tool.js.map +1 -1
- package/lib/features/tools/di.config.d.ts +9 -2
- package/lib/features/tools/di.config.d.ts.map +1 -1
- package/lib/features/tools/di.config.js +26 -15
- package/lib/features/tools/di.config.js.map +1 -1
- package/lib/features/tools/edge-creation-tool.d.ts +1 -1
- package/lib/features/tools/edge-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-creation-tool.js +28 -21
- package/lib/features/tools/edge-creation-tool.js.map +1 -1
- package/lib/features/tools/edge-edit-tool.d.ts +3 -2
- package/lib/features/tools/edge-edit-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-edit-tool.js +41 -36
- package/lib/features/tools/edge-edit-tool.js.map +1 -1
- package/lib/features/{tool-palette/palette-item.d.ts → tools/enable-default-tools-on-focus-loss.d.ts} +11 -11
- package/lib/features/tools/enable-default-tools-on-focus-loss.d.ts.map +1 -0
- package/lib/features/tools/enable-default-tools-on-focus-loss.js +29 -0
- package/lib/features/tools/enable-default-tools-on-focus-loss.js.map +1 -0
- package/lib/features/tools/marquee-behavior.d.ts +1 -1
- package/lib/features/tools/marquee-behavior.js +2 -2
- package/lib/features/tools/marquee-behavior.js.map +1 -1
- package/lib/features/tools/marquee-behavior.spec.js +63 -63
- package/lib/features/tools/marquee-behavior.spec.js.map +1 -1
- package/lib/features/tools/marquee-mouse-tool.d.ts +1 -1
- package/lib/features/tools/marquee-mouse-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-mouse-tool.js +20 -20
- package/lib/features/tools/marquee-mouse-tool.js.map +1 -1
- package/lib/features/tools/marquee-tool.d.ts +1 -1
- package/lib/features/tools/marquee-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-tool.js +4 -4
- package/lib/features/tools/marquee-tool.js.map +1 -1
- package/lib/features/tools/model.d.ts +3 -2
- package/lib/features/tools/model.d.ts.map +1 -1
- package/lib/features/tools/model.js +0 -15
- package/lib/features/tools/model.js.map +1 -1
- package/lib/features/tools/node-creation-tool.d.ts +1 -1
- package/lib/features/tools/node-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/node-creation-tool.js +17 -17
- package/lib/features/tools/node-creation-tool.js.map +1 -1
- package/lib/features/tools/view.d.ts.map +1 -1
- package/lib/features/tools/view.js +2 -2
- package/lib/features/tools/view.js.map +1 -1
- package/lib/features/validation/di.config.d.ts +0 -15
- package/lib/features/validation/di.config.d.ts.map +1 -1
- package/lib/features/validation/di.config.js +9 -7
- package/lib/features/validation/di.config.js.map +1 -1
- package/lib/features/validation/issue-marker.d.ts +11 -5
- package/lib/features/validation/issue-marker.d.ts.map +1 -1
- package/lib/features/validation/issue-marker.js +25 -5
- package/lib/features/validation/issue-marker.js.map +1 -1
- package/lib/features/validation/marker-navigator.d.ts +27 -25
- package/lib/features/validation/marker-navigator.d.ts.map +1 -1
- package/lib/features/validation/marker-navigator.js +64 -91
- package/lib/features/validation/marker-navigator.js.map +1 -1
- package/lib/features/validation/marker-navigator.spec.d.ts.map +1 -1
- package/lib/features/validation/marker-navigator.spec.js +23 -37
- package/lib/features/validation/marker-navigator.spec.js.map +1 -1
- package/lib/features/validation/validate.d.ts +17 -30
- package/lib/features/validation/validate.d.ts.map +1 -1
- package/lib/features/validation/validate.js +66 -91
- package/lib/features/validation/validate.js.map +1 -1
- package/lib/features/viewport/di.config.d.ts +1 -1
- package/lib/features/viewport/di.config.d.ts.map +1 -1
- package/lib/features/viewport/di.config.js +7 -7
- package/lib/features/viewport/di.config.js.map +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.d.ts +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.d.ts.map +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.js +3 -3
- package/lib/features/viewport/glsp-scroll-mouse-listener.js.map +1 -1
- package/lib/index.d.ts +10 -11
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +26 -22
- package/lib/index.js.map +1 -1
- package/lib/lib/model.d.ts +3 -2
- package/lib/lib/model.d.ts.map +1 -1
- package/lib/lib/model.js +3 -18
- package/lib/lib/model.js.map +1 -1
- package/lib/model-source/glsp-diagram-server.d.ts +6 -6
- package/lib/model-source/glsp-diagram-server.d.ts.map +1 -1
- package/lib/model-source/glsp-diagram-server.js +8 -7
- package/lib/model-source/glsp-diagram-server.js.map +1 -1
- package/lib/sprotty-reexport.d.ts +174 -0
- package/lib/sprotty-reexport.d.ts.map +1 -0
- package/lib/sprotty-reexport.js +301 -0
- package/lib/sprotty-reexport.js.map +1 -0
- package/lib/utils/argument-utils.js +5 -5
- package/lib/utils/argument-utils.js.map +1 -1
- package/lib/utils/layout-utils.d.ts +6 -22
- package/lib/utils/layout-utils.d.ts.map +1 -1
- package/lib/utils/layout-utils.js +1 -1
- package/lib/utils/layout-utils.js.map +1 -1
- package/lib/utils/smodel-util.d.ts +117 -11
- package/lib/utils/smodel-util.d.ts.map +1 -1
- package/lib/utils/smodel-util.js +142 -37
- package/lib/utils/smodel-util.js.map +1 -1
- package/lib/utils/viewpoint-util.d.ts +3 -3
- package/lib/utils/viewpoint-util.d.ts.map +1 -1
- package/lib/utils/viewpoint-util.js +19 -3
- package/lib/utils/viewpoint-util.js.map +1 -1
- package/lib/views/base-view-module.d.ts.map +1 -1
- package/lib/views/base-view-module.js +21 -19
- package/lib/views/base-view-module.js.map +1 -1
- package/lib/views/compartments.js +2 -2
- package/lib/views/compartments.js.map +1 -1
- package/lib/views/glsp-edge-view.d.ts +1 -1
- package/lib/views/glsp-edge-view.d.ts.map +1 -1
- package/lib/views/glsp-edge-view.js +1 -1
- package/lib/views/glsp-edge-view.js.map +1 -1
- package/lib/views/glsp-projection-view.d.ts +30 -0
- package/lib/views/glsp-projection-view.d.ts.map +1 -0
- package/lib/views/glsp-projection-view.js +148 -0
- package/lib/views/glsp-projection-view.js.map +1 -0
- package/lib/views/index.d.ts +1 -0
- package/lib/views/index.d.ts.map +1 -1
- package/lib/views/index.js +7 -2
- package/lib/views/index.js.map +1 -1
- package/lib/views/issue-marker-view.d.ts.map +1 -1
- package/lib/views/issue-marker-view.js +3 -3
- package/lib/views/issue-marker-view.js.map +1 -1
- package/lib/views/rounded-corner-view.d.ts.map +1 -1
- package/lib/views/rounded-corner-view.js +2 -2
- package/lib/views/rounded-corner-view.js.map +1 -1
- package/package.json +10 -19
- package/src/base/action-dispatcher.ts +26 -16
- package/src/base/actions/focus-change-action.ts +25 -8
- package/src/base/actions/sprotty-actions.ts +26 -0
- package/src/base/auto-complete/auto-complete-actions.ts +7 -5
- package/src/base/auto-complete/auto-complete-widget.ts +15 -13
- package/src/base/command-stack.ts +7 -6
- package/src/base/container-modules.ts +6 -5
- package/src/base/di.config.ts +4 -5
- package/src/base/drag-aware-mouse-listener.ts +4 -4
- package/src/base/editor-context-service.ts +32 -12
- package/src/base/focus-tracker.ts +5 -4
- package/src/base/model/model-registry.ts +2 -2
- package/src/base/model/update-model-command.ts +54 -41
- package/src/base/model-initialization-constraint.ts +9 -11
- package/src/base/selection-clearing-mouse-listener.ts +1 -1
- package/src/base/source-uri-aware.ts +5 -4
- package/src/base/tool-manager/glsp-tool-manager.ts +9 -9
- package/src/base/tool-manager/tool-actions.ts +37 -0
- package/src/base/types.ts +31 -24
- package/src/base/view/view-registry.ts +2 -2
- package/src/features/change-bounds/model.ts +5 -5
- package/src/features/change-bounds/movement-restrictor.ts +74 -44
- package/src/features/change-bounds/snap.spec.ts +89 -0
- package/src/features/change-bounds/snap.ts +99 -12
- package/src/features/command-palette/di.config.ts +5 -7
- package/src/features/command-palette/server-command-palette-provider.ts +9 -8
- package/src/features/context-menu/delete-element-context-menu.ts +6 -6
- package/src/features/context-menu/di.config.ts +3 -2
- package/src/features/context-menu/selection-service-aware-context-menu-mouse-listener.ts +51 -29
- package/src/features/context-menu/server-context-menu-provider.ts +7 -6
- package/src/features/copy-paste/copy-paste-context-menu.ts +30 -23
- package/src/features/copy-paste/copy-paste-handler.ts +6 -6
- package/src/features/copy-paste/di.config.ts +7 -15
- package/src/features/decoration/decoration-placer.ts +4 -4
- package/src/features/decoration/di.config.ts +3 -5
- package/src/features/edit-label/di.config.ts +4 -5
- package/src/features/edit-label/edit-label-tool.ts +1 -2
- package/src/features/edit-label/edit-label-validator.ts +6 -10
- package/src/features/hints/di.config.ts +3 -3
- package/src/features/hints/type-hints.ts +33 -18
- package/src/features/hover/di.config.ts +8 -2
- package/src/features/hover/hover.ts +48 -28
- package/src/features/layout/di.config.ts +17 -7
- package/src/features/layout/freeform-layout.ts +6 -15
- package/src/features/layout/hbox-layout.ts +273 -0
- package/src/features/layout/{layout-commands.spec.ts → layout-elements-action.spec.ts} +89 -65
- package/src/features/layout/layout-elements-action.ts +486 -0
- package/src/features/layout/layouter.ts +137 -0
- package/src/features/layout/tests/freeform-layout.spec.ts +216 -0
- package/src/features/layout/tests/hbox-layout.spec.ts +171 -0
- package/src/features/layout/tests/layouter-test-util.ts +122 -0
- package/src/features/layout/tests/vbox-layout.spec.ts +171 -0
- package/src/features/layout/vbox-layout.ts +41 -24
- package/src/features/mouse-tool/di.config.ts +3 -4
- package/src/features/mouse-tool/mouse-tool.ts +18 -57
- package/src/features/navigation/navigation-action-handler.ts +76 -42
- package/src/features/navigation/navigation-target-resolver.spec.ts +3 -3
- package/src/features/navigation/navigation-target-resolver.ts +8 -13
- package/src/features/reconnect/model.ts +2 -2
- package/src/features/save/di.config.ts +2 -3
- package/src/features/save/save-keylistener.ts +3 -3
- package/src/features/select/di.config.ts +6 -8
- package/src/features/select/select-feedback-action.ts +18 -46
- package/src/features/select/select-mouse-listener.ts +82 -3
- package/src/features/select/selection-service.spec.ts +12 -9
- package/src/features/select/selection-service.ts +52 -60
- package/src/features/{model-source-watcher → source-model-watcher}/di.config.ts +5 -5
- package/src/features/{model-source-watcher/model-source-changed-action-handler.ts → source-model-watcher/source-model-changed-action-handler.ts} +17 -22
- package/src/features/tool-feedback/change-bounds-tool-feedback.ts +52 -22
- package/src/features/tool-feedback/creation-tool-feedback.ts +79 -30
- package/src/features/tool-feedback/css-feedback.ts +40 -37
- package/src/features/tool-feedback/di.config.ts +4 -5
- package/src/features/tool-feedback/edge-edit-tool-feedback.ts +140 -88
- package/src/features/tool-feedback/feedback-action-dispatcher.ts +4 -3
- package/src/features/tool-feedback/marquee-tool-feedback.ts +38 -13
- package/src/features/tool-feedback/model.ts +1 -3
- package/src/features/tool-feedback/view.tsx +3 -3
- package/src/features/tool-palette/di.config.ts +3 -2
- package/src/features/tool-palette/tool-palette.ts +35 -19
- package/src/features/tools/base-glsp-tool.ts +11 -11
- package/src/features/tools/change-bounds-tool.ts +37 -67
- package/src/features/tools/delete-tool.ts +9 -9
- package/src/features/tools/di.config.ts +23 -12
- package/src/features/tools/edge-creation-tool.ts +21 -12
- package/src/features/tools/edge-edit-tool.ts +25 -21
- package/src/features/tools/enable-default-tools-on-focus-loss.ts +33 -0
- package/src/features/tools/marquee-behavior.ts +2 -2
- package/src/features/tools/marquee-mouse-tool.ts +13 -14
- package/src/features/tools/marquee-tool.ts +3 -3
- package/src/features/tools/model.ts +4 -3
- package/src/features/tools/node-creation-tool.ts +8 -8
- package/src/features/tools/view.tsx +2 -3
- package/src/features/validation/di.config.ts +13 -11
- package/src/features/validation/issue-marker.ts +34 -12
- package/src/features/validation/marker-navigator.spec.ts +4 -2
- package/src/features/validation/marker-navigator.ts +67 -82
- package/src/features/validation/validate.ts +62 -90
- package/src/features/viewport/di.config.ts +1 -2
- package/src/features/viewport/glsp-scroll-mouse-listener.ts +5 -5
- package/src/index.ts +12 -12
- package/src/lib/model.ts +4 -4
- package/src/model-source/glsp-diagram-server.ts +15 -15
- package/src/sprotty-reexport.ts +288 -0
- package/src/utils/layout-utils.ts +9 -29
- package/src/utils/smodel-util.ts +139 -43
- package/src/utils/viewpoint-util.ts +5 -14
- package/src/views/base-view-module.ts +5 -1
- package/src/views/compartments.tsx +1 -1
- package/src/views/glsp-edge-view.tsx +4 -4
- package/src/views/glsp-projection-view.tsx +173 -0
- package/src/views/index.ts +2 -0
- package/src/views/issue-marker-view.tsx +2 -2
- package/src/views/rounded-corner-view.tsx +2 -3
- package/lib/features/layout/layout-commands.d.ts +0 -153
- package/lib/features/layout/layout-commands.d.ts.map +0 -1
- package/lib/features/layout/layout-commands.js +0 -412
- package/lib/features/layout/layout-commands.js.map +0 -1
- package/lib/features/layout/layout-commands.spec.d.ts +0 -3
- package/lib/features/layout/layout-commands.spec.d.ts.map +0 -1
- package/lib/features/layout/layout-commands.spec.js.map +0 -1
- package/lib/features/model-source-watcher/di.config.d.ts +0 -4
- package/lib/features/model-source-watcher/di.config.js.map +0 -1
- package/lib/features/model-source-watcher/model-source-changed-action-handler.d.ts.map +0 -1
- package/lib/features/model-source-watcher/model-source-changed-action-handler.js.map +0 -1
- package/lib/features/tool-palette/palette-item.d.ts.map +0 -1
- package/lib/features/tool-palette/palette-item.js.map +0 -1
- package/lib/protocol-reexport.d.ts +0 -45
- package/lib/protocol-reexport.d.ts.map +0 -1
- package/lib/protocol-reexport.js +0 -75
- package/lib/protocol-reexport.js.map +0 -1
- package/src/features/layout/layout-commands.ts +0 -424
- package/src/features/tool-palette/palette-item.ts +0 -38
- package/src/protocol-reexport.ts +0 -64
|
@@ -8,7 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.GLSPModelRegistry = void 0;
|
|
10
10
|
/********************************************************************************
|
|
11
|
-
* Copyright (c) 2021 EclipseSource and others.
|
|
11
|
+
* Copyright (c) 2021-2022 EclipseSource and others.
|
|
12
12
|
*
|
|
13
13
|
* This program and the accompanying materials are made available under the
|
|
14
14
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -37,7 +37,7 @@ let GLSPModelRegistry = class GLSPModelRegistry extends sprotty_1.SModelRegistry
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
GLSPModelRegistry = __decorate([
|
|
40
|
-
inversify_1.injectable()
|
|
40
|
+
(0, inversify_1.injectable)()
|
|
41
41
|
], GLSPModelRegistry);
|
|
42
42
|
exports.GLSPModelRegistry = GLSPModelRegistry;
|
|
43
43
|
//# sourceMappingURL=model-registry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-registry.js","sourceRoot":"","sources":["../../../src/base/model/model-registry.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAuC;AACvC,qCAAwD;AAGxD,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,wBAAc;
|
|
1
|
+
{"version":3,"file":"model-registry.js","sourceRoot":"","sources":["../../../src/base/model/model-registry.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAuC;AACvC,qCAAwD;AAGxD,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,wBAAc;IACxC,QAAQ,CAAC,GAAW,EAAE,OAAmC;QAC9D,IAAI,GAAG,KAAK,SAAS,EAAE;YACnB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;SACvC;QACD,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;YAClB,yCAAyC;YACzC,OAAO,CAAC,GAAG,CAAC,8BAA8B,GAAG,wBAAwB,CAAC,CAAC;SAC1E;QACD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACpC,CAAC;CACJ,CAAA;AAXY,iBAAiB;IAD7B,IAAA,sBAAU,GAAE;GACA,iBAAiB,CAW7B;AAXY,8CAAiB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2022 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -14,8 +14,14 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import { Action, UpdateModelAction } from '@eclipse-glsp/protocol';
|
|
17
|
-
import { ActionHandlerRegistry, Command, CommandExecutionContext, CommandReturn, IActionHandler, ILogger, SModelRoot, UpdateModelCommand } from 'sprotty';
|
|
17
|
+
import { ActionHandlerRegistry, Animation, Command, CommandExecutionContext, CommandReturn, IActionHandler, ILogger, SModelRoot, UpdateAnimationData, UpdateModelCommand } from 'sprotty';
|
|
18
18
|
import { IFeedbackActionDispatcher } from '../../features/tool-feedback/feedback-action-dispatcher';
|
|
19
|
+
import { FeedbackCommand } from '../../features/tool-feedback/model';
|
|
20
|
+
/**
|
|
21
|
+
* ActionHandler that transforms a {@link SetModelAction} into an {@link UpdateModelAction} that can be handled
|
|
22
|
+
* by the {@link FeedbackAwareUpdateModelCommand}. This can be done because in sprotty an {@link UpdateModelCommand} and
|
|
23
|
+
* a {@link SetModelCommand} have the same behavior of no model is present yet.
|
|
24
|
+
*/
|
|
19
25
|
export declare class SetModelActionHandler implements IActionHandler {
|
|
20
26
|
handle(action: Action): Action | void;
|
|
21
27
|
}
|
|
@@ -23,18 +29,19 @@ export interface SModelRootListener {
|
|
|
23
29
|
modelRootChanged(root: Readonly<SModelRoot>): void;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
|
-
* A special
|
|
27
|
-
* feedback to the `newRoot` before performing the update
|
|
32
|
+
* A special {@link UpdateModelCommand} that retrieves all registered {@link Action}s from the {@link IFeedbackActionDispatcher}
|
|
33
|
+
* (if present) and applies their feedback to the `newRoot` before performing the update. This enables persistent client-side feedback
|
|
34
|
+
* across model updates initiated by the GLSP server.
|
|
28
35
|
*/
|
|
29
36
|
export declare class FeedbackAwareUpdateModelCommand extends UpdateModelCommand {
|
|
30
37
|
protected logger: ILogger;
|
|
31
|
-
protected
|
|
32
|
-
protected actionHandlerRegistryProvider: () => Promise<ActionHandlerRegistry>;
|
|
38
|
+
protected feedbackActionDispatcher: IFeedbackActionDispatcher;
|
|
33
39
|
protected modelRootListeners: SModelRootListener[];
|
|
34
40
|
protected actionHandlerRegistry?: ActionHandlerRegistry;
|
|
35
|
-
constructor(action: UpdateModelAction);
|
|
36
|
-
protected initialize(): void;
|
|
41
|
+
constructor(action: UpdateModelAction, actionHandlerRegistryProvider: () => Promise<ActionHandlerRegistry>);
|
|
37
42
|
protected performUpdate(oldRoot: SModelRoot, newRoot: SModelRoot, context: CommandExecutionContext): CommandReturn;
|
|
38
43
|
protected getFeedbackCommands(registry: ActionHandlerRegistry): Command[];
|
|
44
|
+
protected getPriority(command: Partial<FeedbackCommand>): number;
|
|
45
|
+
protected createAnimations(data: UpdateAnimationData, root: SModelRoot, context: CommandExecutionContext): Animation[];
|
|
39
46
|
}
|
|
40
47
|
//# sourceMappingURL=update-model-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-model-command.d.ts","sourceRoot":"","sources":["../../../src/base/model/update-model-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"update-model-command.d.ts","sourceRoot":"","sources":["../../../src/base/model/update-model-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAA+B,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhG,OAAO,EACH,qBAAqB,EACrB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Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.FeedbackAwareUpdateModelCommand = exports.SetModelActionHandler = void 0;
|
|
16
16
|
/********************************************************************************
|
|
17
|
-
* Copyright (c) 2019-
|
|
17
|
+
* Copyright (c) 2019-2022 EclipseSource and others.
|
|
18
18
|
*
|
|
19
19
|
* This program and the accompanying materials are made available under the
|
|
20
20
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -31,45 +31,39 @@ exports.FeedbackAwareUpdateModelCommand = exports.SetModelActionHandler = void 0
|
|
|
31
31
|
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
32
32
|
const inversify_1 = require("inversify");
|
|
33
33
|
const sprotty_1 = require("sprotty");
|
|
34
|
-
const model_1 = require("../../features/tool-feedback/model");
|
|
35
34
|
const types_1 = require("../types");
|
|
36
|
-
|
|
37
|
-
*
|
|
35
|
+
/**
|
|
36
|
+
* ActionHandler that transforms a {@link SetModelAction} into an {@link UpdateModelAction} that can be handled
|
|
37
|
+
* by the {@link FeedbackAwareUpdateModelCommand}. This can be done because in sprotty an {@link UpdateModelCommand} and
|
|
38
|
+
* a {@link SetModelCommand} have the same behavior of no model is present yet.
|
|
39
|
+
*/
|
|
38
40
|
let SetModelActionHandler = class SetModelActionHandler {
|
|
39
41
|
handle(action) {
|
|
40
|
-
if (protocol_1.
|
|
41
|
-
return
|
|
42
|
+
if (protocol_1.SetModelAction.is(action)) {
|
|
43
|
+
return protocol_1.UpdateModelAction.create(action.newRoot, { animate: false });
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
};
|
|
45
47
|
SetModelActionHandler = __decorate([
|
|
46
|
-
inversify_1.injectable()
|
|
48
|
+
(0, inversify_1.injectable)()
|
|
47
49
|
], SetModelActionHandler);
|
|
48
50
|
exports.SetModelActionHandler = SetModelActionHandler;
|
|
49
51
|
/**
|
|
50
|
-
* A special
|
|
51
|
-
* feedback to the `newRoot` before performing the update
|
|
52
|
+
* A special {@link UpdateModelCommand} that retrieves all registered {@link Action}s from the {@link IFeedbackActionDispatcher}
|
|
53
|
+
* (if present) and applies their feedback to the `newRoot` before performing the update. This enables persistent client-side feedback
|
|
54
|
+
* across model updates initiated by the GLSP server.
|
|
52
55
|
*/
|
|
53
56
|
let FeedbackAwareUpdateModelCommand = class FeedbackAwareUpdateModelCommand extends sprotty_1.UpdateModelCommand {
|
|
54
|
-
constructor(action) {
|
|
55
|
-
super(action);
|
|
57
|
+
constructor(action, actionHandlerRegistryProvider) {
|
|
58
|
+
super(Object.assign({ animate: true }, action));
|
|
56
59
|
this.modelRootListeners = [];
|
|
57
|
-
|
|
58
|
-
initialize() {
|
|
59
|
-
this.actionHandlerRegistryProvider().then(registry => (this.actionHandlerRegistry = registry));
|
|
60
|
+
actionHandlerRegistryProvider().then(registry => (this.actionHandlerRegistry = registry));
|
|
60
61
|
}
|
|
61
62
|
performUpdate(oldRoot, newRoot, context) {
|
|
62
63
|
if (this.feedbackActionDispatcher && this.actionHandlerRegistry) {
|
|
63
|
-
// Create a temporary context
|
|
64
|
+
// Create a temporary context which defines the `newRoot` as `root`
|
|
64
65
|
// This way we do not corrupt the redo/undo behavior of the super class
|
|
65
|
-
const tempContext = {
|
|
66
|
-
root: newRoot,
|
|
67
|
-
duration: context.duration,
|
|
68
|
-
logger: context.logger,
|
|
69
|
-
modelChanged: context.modelChanged,
|
|
70
|
-
modelFactory: context.modelFactory,
|
|
71
|
-
syncer: context.syncer
|
|
72
|
-
};
|
|
66
|
+
const tempContext = Object.assign(Object.assign({}, context), { root: newRoot });
|
|
73
67
|
const feedbackCommands = this.getFeedbackCommands(this.actionHandlerRegistry);
|
|
74
68
|
feedbackCommands.forEach(command => command.execute(tempContext));
|
|
75
69
|
}
|
|
@@ -79,49 +73,45 @@ let FeedbackAwareUpdateModelCommand = class FeedbackAwareUpdateModelCommand exte
|
|
|
79
73
|
getFeedbackCommands(registry) {
|
|
80
74
|
const result = [];
|
|
81
75
|
this.feedbackActionDispatcher.getRegisteredFeedback().forEach(action => {
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
76
|
+
const commands = registry
|
|
77
|
+
.get(action.kind)
|
|
78
|
+
.filter((0, protocol_1.toTypeGuard)(sprotty_1.CommandActionHandler))
|
|
79
|
+
.map(handler => handler.handle(action));
|
|
80
|
+
result.push(...commands);
|
|
86
81
|
});
|
|
87
|
-
// sort commands
|
|
88
|
-
return result.sort((a, b) => getPriority(b) - getPriority(a));
|
|
82
|
+
// sort commands descanting by priority
|
|
83
|
+
return result.sort((a, b) => this.getPriority(b) - this.getPriority(a));
|
|
84
|
+
}
|
|
85
|
+
getPriority(command) {
|
|
86
|
+
var _a;
|
|
87
|
+
return (_a = command.priority) !== null && _a !== void 0 ? _a : 0;
|
|
88
|
+
}
|
|
89
|
+
// Override the `createAnimations` implementation and remove the animation for edge morphing. Otherwise routing & reconnect
|
|
90
|
+
// handles flicker after each server update.
|
|
91
|
+
createAnimations(data, root, context) {
|
|
92
|
+
const animations = super.createAnimations(data, root, context);
|
|
93
|
+
return animations.filter(animation => !(animation instanceof sprotty_1.MorphEdgesAnimation));
|
|
89
94
|
}
|
|
90
95
|
};
|
|
91
96
|
__decorate([
|
|
92
|
-
inversify_1.inject(
|
|
97
|
+
(0, inversify_1.inject)(types_1.TYPES.ILogger),
|
|
93
98
|
__metadata("design:type", Object)
|
|
94
99
|
], FeedbackAwareUpdateModelCommand.prototype, "logger", void 0);
|
|
95
100
|
__decorate([
|
|
96
|
-
inversify_1.inject(types_1.
|
|
97
|
-
inversify_1.optional(),
|
|
101
|
+
(0, inversify_1.inject)(types_1.TYPES.IFeedbackActionDispatcher),
|
|
102
|
+
(0, inversify_1.optional)(),
|
|
98
103
|
__metadata("design:type", Object)
|
|
99
104
|
], FeedbackAwareUpdateModelCommand.prototype, "feedbackActionDispatcher", void 0);
|
|
100
105
|
__decorate([
|
|
101
|
-
inversify_1.
|
|
102
|
-
|
|
103
|
-
], FeedbackAwareUpdateModelCommand.prototype, "actionHandlerRegistryProvider", void 0);
|
|
104
|
-
__decorate([
|
|
105
|
-
inversify_1.multiInject(types_1.GLSP_TYPES.SModelRootListener),
|
|
106
|
-
inversify_1.optional(),
|
|
106
|
+
(0, inversify_1.multiInject)(types_1.TYPES.SModelRootListener),
|
|
107
|
+
(0, inversify_1.optional)(),
|
|
107
108
|
__metadata("design:type", Array)
|
|
108
109
|
], FeedbackAwareUpdateModelCommand.prototype, "modelRootListeners", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
inversify_1.postConstruct(),
|
|
111
|
-
__metadata("design:type", Function),
|
|
112
|
-
__metadata("design:paramtypes", []),
|
|
113
|
-
__metadata("design:returntype", void 0)
|
|
114
|
-
], FeedbackAwareUpdateModelCommand.prototype, "initialize", null);
|
|
115
110
|
FeedbackAwareUpdateModelCommand = __decorate([
|
|
116
|
-
inversify_1.injectable(),
|
|
117
|
-
__param(0, inversify_1.inject(
|
|
118
|
-
|
|
111
|
+
(0, inversify_1.injectable)(),
|
|
112
|
+
__param(0, (0, inversify_1.inject)(types_1.TYPES.Action)),
|
|
113
|
+
__param(1, (0, inversify_1.inject)(types_1.TYPES.ActionHandlerRegistryProvider)),
|
|
114
|
+
__metadata("design:paramtypes", [Object, Function])
|
|
119
115
|
], FeedbackAwareUpdateModelCommand);
|
|
120
116
|
exports.FeedbackAwareUpdateModelCommand = FeedbackAwareUpdateModelCommand;
|
|
121
|
-
function getPriority(command) {
|
|
122
|
-
if (command instanceof model_1.FeedbackCommand) {
|
|
123
|
-
return command.priority;
|
|
124
|
-
}
|
|
125
|
-
return 0;
|
|
126
|
-
}
|
|
127
117
|
//# sourceMappingURL=update-model-command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-model-command.js","sourceRoot":"","sources":["../../../src/base/model/update-model-command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"update-model-command.js","source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AAS,YAAY,6BAAmB,CAAC,CAAC,CAAC;IACvF,CAAC;CACJ,CAAA;AA7DG;IADC,IAAA,kBAAM,EAAC,aAAK,CAAC,OAAO,CAAC;;+DACI;AAI1B;IAFC,IAAA,kBAAM,EAAC,aAAK,CAAC,yBAAyB,CAAC;IACvC,IAAA,oBAAQ,GAAE;;iFACmD;AAI9D;IAFC,IAAA,uBAAW,EAAC,aAAK,CAAC,kBAAkB,CAAC;IACrC,IAAA,oBAAQ,GAAE;;2EAC6C;AAV/C,+BAA+B;IAD3C,IAAA,sBAAU,GAAE;IAgBJ,WAAA,IAAA,kBAAM,EAAC,aAAK,CAAC,MAAM,CAAC,CAAA;IACpB,WAAA,IAAA,kBAAM,EAAC,aAAK,CAAC,6BAA6B,CAAC,CAAA;;GAhBvC,+BAA+B,CA+D3C;AA/DY,0EAA+B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020-
|
|
2
|
+
* Copyright (c) 2020-2022 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { Action } from '@eclipse-glsp/protocol';
|
|
17
|
-
import { Deferred } from 'sprotty/lib/utils/async';
|
|
16
|
+
import { Action, Deferred } from '@eclipse-glsp/protocol';
|
|
18
17
|
/**
|
|
19
18
|
* The constraint defining when the initialization of the GLSP model is completed.
|
|
20
19
|
*
|
|
@@ -47,8 +46,8 @@ export declare abstract class ModelInitializationConstraint {
|
|
|
47
46
|
* and a subsequent `InitializeCanvasBoundsAction`.
|
|
48
47
|
*/
|
|
49
48
|
export declare class DefaultModelInitializationConstraint extends ModelInitializationConstraint {
|
|
50
|
-
protected
|
|
49
|
+
protected seenNonEmptyModelAction: boolean;
|
|
51
50
|
isInitializedAfter(action: Action): boolean;
|
|
52
|
-
protected
|
|
51
|
+
protected isNonEmptyModelAction(action: Action): boolean;
|
|
53
52
|
}
|
|
54
53
|
//# sourceMappingURL=model-initialization-constraint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-initialization-constraint.d.ts","sourceRoot":"","sources":["../../src/base/model-initialization-constraint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"model-initialization-constraint.d.ts","sourceRoot":"","sources":["../../src/base/model-initialization-constraint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAqC,MAAM,wBAAwB,CAAC;AAI7F;;;;;;;;;;;;;;;;;GAiBG;AACH,8BACsB,6BAA6B;IAC/C,SAAS,CAAC,UAAU,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAkB;IACtD,SAAS,CAAC,SAAS,UAAS;IAE5B,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,SAAS,CAAC,YAAY,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI;IAOlD,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAStC,QAAQ,CAAC,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CACvD;AAED;;;GAGG;AACH,qBACa,oCAAqC,SAAQ,6BAA6B;IACnF,SAAS,CAAC,uBAAuB,UAAS;IAE1C,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAS3C,SAAS,CAAC,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CAM3D"}
|
|
@@ -8,7 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.DefaultModelInitializationConstraint = exports.ModelInitializationConstraint = void 0;
|
|
10
10
|
/********************************************************************************
|
|
11
|
-
* Copyright (c) 2020-
|
|
11
|
+
* Copyright (c) 2020-2022 EclipseSource and others.
|
|
12
12
|
*
|
|
13
13
|
* This program and the accompanying materials are made available under the
|
|
14
14
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -25,7 +25,6 @@ exports.DefaultModelInitializationConstraint = exports.ModelInitializationConstr
|
|
|
25
25
|
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
26
26
|
const inversify_1 = require("inversify");
|
|
27
27
|
const sprotty_1 = require("sprotty");
|
|
28
|
-
const async_1 = require("sprotty/lib/utils/async");
|
|
29
28
|
/**
|
|
30
29
|
* The constraint defining when the initialization of the GLSP model is completed.
|
|
31
30
|
*
|
|
@@ -46,7 +45,7 @@ const async_1 = require("sprotty/lib/utils/async");
|
|
|
46
45
|
*/
|
|
47
46
|
let ModelInitializationConstraint = class ModelInitializationConstraint {
|
|
48
47
|
constructor() {
|
|
49
|
-
this.completion = new
|
|
48
|
+
this.completion = new protocol_1.Deferred();
|
|
50
49
|
this.completed = false;
|
|
51
50
|
}
|
|
52
51
|
get isCompleted() {
|
|
@@ -71,7 +70,7 @@ let ModelInitializationConstraint = class ModelInitializationConstraint {
|
|
|
71
70
|
}
|
|
72
71
|
};
|
|
73
72
|
ModelInitializationConstraint = __decorate([
|
|
74
|
-
inversify_1.injectable()
|
|
73
|
+
(0, inversify_1.injectable)()
|
|
75
74
|
], ModelInitializationConstraint);
|
|
76
75
|
exports.ModelInitializationConstraint = ModelInitializationConstraint;
|
|
77
76
|
/**
|
|
@@ -81,27 +80,26 @@ exports.ModelInitializationConstraint = ModelInitializationConstraint;
|
|
|
81
80
|
let DefaultModelInitializationConstraint = class DefaultModelInitializationConstraint extends ModelInitializationConstraint {
|
|
82
81
|
constructor() {
|
|
83
82
|
super(...arguments);
|
|
84
|
-
this.
|
|
83
|
+
this.seenNonEmptyModelAction = false;
|
|
85
84
|
}
|
|
86
85
|
isInitializedAfter(action) {
|
|
87
|
-
if (this.
|
|
88
|
-
this.
|
|
86
|
+
if (this.isNonEmptyModelAction(action)) {
|
|
87
|
+
this.seenNonEmptyModelAction = true;
|
|
89
88
|
}
|
|
90
|
-
else if (this.
|
|
89
|
+
else if (this.seenNonEmptyModelAction && action.kind === sprotty_1.InitializeCanvasBoundsAction.KIND) {
|
|
91
90
|
return true;
|
|
92
91
|
}
|
|
93
92
|
return false;
|
|
94
93
|
}
|
|
95
|
-
|
|
96
|
-
if (action
|
|
97
|
-
|
|
98
|
-
return updateModelAction.newRoot !== undefined && updateModelAction.newRoot.type !== 'NONE';
|
|
94
|
+
isNonEmptyModelAction(action) {
|
|
95
|
+
if (protocol_1.SetModelAction.is(action) || protocol_1.UpdateModelAction.is(action)) {
|
|
96
|
+
return action.newRoot.type !== 'NONE';
|
|
99
97
|
}
|
|
100
98
|
return false;
|
|
101
99
|
}
|
|
102
100
|
};
|
|
103
101
|
DefaultModelInitializationConstraint = __decorate([
|
|
104
|
-
inversify_1.injectable()
|
|
102
|
+
(0, inversify_1.injectable)()
|
|
105
103
|
], DefaultModelInitializationConstraint);
|
|
106
104
|
exports.DefaultModelInitializationConstraint = DefaultModelInitializationConstraint;
|
|
107
105
|
//# sourceMappingURL=model-initialization-constraint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-initialization-constraint.js","sourceRoot":"","sources":["../../src/base/model-initialization-constraint.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"model-initialization-constraint.js","sourceRoot":"","sources":["../../src/base/model-initialization-constraint.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA6F;AAC7F,yCAAuC;AACvC,qCAAuD;AAEvD;;;;;;;;;;;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CAAC,IAAI,4BAAiB,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YAC3D,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM,CAAC;SACzC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ,CAAA;AAlBY,oCAAoC;IADhD,IAAA,sBAAU,GAAE;GACA,oCAAoC,CAkBhD;AAlBY,oFAAoC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection-clearing-mouse-listener.d.ts","sourceRoot":"","sources":["../../src/base/selection-clearing-mouse-listener.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEvD;;;;;;;;;;;GAWG;AACH,qBACa,8BAA+B,SAAQ,aAAa;
|
|
1
|
+
{"version":3,"file":"selection-clearing-mouse-listener.d.ts","sourceRoot":"","sources":["../../src/base/selection-clearing-mouse-listener.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEvD;;;;;;;;;;;GAWG;AACH,qBACa,8BAA+B,SAAQ,aAAa;IACpD,SAAS,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAG,KAAK,EAAE;CAUzE"}
|
|
@@ -49,7 +49,7 @@ let SelectionClearingMouseListener = class SelectionClearingMouseListener extend
|
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
SelectionClearingMouseListener = __decorate([
|
|
52
|
-
inversify_1.injectable()
|
|
52
|
+
(0, inversify_1.injectable)()
|
|
53
53
|
], SelectionClearingMouseListener);
|
|
54
54
|
exports.SelectionClearingMouseListener = SelectionClearingMouseListener;
|
|
55
55
|
//# sourceMappingURL=selection-clearing-mouse-listener.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection-clearing-mouse-listener.js","sourceRoot":"","sources":["../../src/base/selection-clearing-mouse-listener.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAuC;AACvC,qCAAuD;AAEvD;;;;;;;;;;;GAWG;AAEH,IAAa,8BAA8B,GAA3C,MAAa,8BAA+B,SAAQ,uBAAa;
|
|
1
|
+
{"version":3,"file":"selection-clearing-mouse-listener.js","sourceRoot":"","sources":["../../src/base/selection-clearing-mouse-listener.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAuC;AACvC,qCAAuD;AAEvD;;;;;;;;;;;GAWG;AAEH,IAAa,8BAA8B,GAA3C,MAAa,8BAA+B,SAAQ,uBAAa;IACpD,SAAS,CAAC,OAAsB,EAAE,KAAiB;QACxD,MAAM,SAAS,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC;QAC1C,2CAA2C;QAC3C,IAAI,SAAS,KAAK,IAAI,EAAE;YACpB,OAAO,EAAE,CAAC;SACb;QACD,SAAS,CAAC,eAAe,EAAE,CAAC;QAC5B,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;QAC3C,OAAO,EAAE,CAAC;IACd,CAAC;CACJ,CAAA;AAXY,8BAA8B;IAD1C,IAAA,sBAAU,GAAE;GACA,8BAA8B,CAW1C;AAXY,wEAA8B"}
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made available under the
|
|
5
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
*
|
|
8
|
-
* This Source Code may also be made available under the following Secondary
|
|
9
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
* with the GNU Classpath Exception which is available at
|
|
12
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
*
|
|
14
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
-
********************************************************************************/
|
|
16
|
-
export declare abstract class SourceUriAware {
|
|
17
|
-
abstract getSourceURI(): string;
|
|
1
|
+
export interface SourceUriAware {
|
|
2
|
+
sourceURI: string;
|
|
18
3
|
}
|
|
19
4
|
export declare function isSourceUriAware(obj: any): obj is SourceUriAware;
|
|
20
5
|
//# sourceMappingURL=source-uri-aware.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-uri-aware.d.ts","sourceRoot":"","sources":["../../src/base/source-uri-aware.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"source-uri-aware.d.ts","sourceRoot":"","sources":["../../src/base/source-uri-aware.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,cAAc;IAC3B,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,cAAc,CAEhE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isSourceUriAware =
|
|
3
|
+
exports.isSourceUriAware = void 0;
|
|
4
4
|
/********************************************************************************
|
|
5
|
-
* Copyright (c) 2020 EclipseSource and others.
|
|
5
|
+
* Copyright (c) 2020-2022 EclipseSource and others.
|
|
6
6
|
*
|
|
7
7
|
* This program and the accompanying materials are made available under the
|
|
8
8
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -16,11 +16,9 @@ exports.isSourceUriAware = exports.SourceUriAware = void 0;
|
|
|
16
16
|
*
|
|
17
17
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
18
|
********************************************************************************/
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
exports.SourceUriAware = SourceUriAware;
|
|
19
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
22
20
|
function isSourceUriAware(obj) {
|
|
23
|
-
return obj
|
|
21
|
+
return protocol_1.AnyObject.is(obj) && (0, protocol_1.hasStringProp)(obj, 'sourceURI');
|
|
24
22
|
}
|
|
25
23
|
exports.isSourceUriAware = isSourceUriAware;
|
|
26
24
|
//# sourceMappingURL=source-uri-aware.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-uri-aware.js","sourceRoot":"","sources":["../../src/base/source-uri-aware.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"source-uri-aware.js","sourceRoot":"","sources":["../../src/base/source-uri-aware.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAkE;AAKlE,SAAgB,gBAAgB,CAAC,GAAQ;IACrC,OAAO,oBAAS,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,IAAA,wBAAa,EAAC,GAAG,EAAE,WAAW,CAAC,CAAC;AAChE,CAAC;AAFD,4CAEC"}
|
|
@@ -18,5 +18,5 @@ export declare class GLSPToolManager extends ToolManager implements IGLSPToolMan
|
|
|
18
18
|
export interface GLSPTool extends Tool {
|
|
19
19
|
isEditTool: boolean;
|
|
20
20
|
}
|
|
21
|
-
export declare function isGLSPTool(tool:
|
|
21
|
+
export declare function isGLSPTool(tool: any): tool is GLSPTool;
|
|
22
22
|
//# sourceMappingURL=glsp-tool-manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glsp-tool-manager.d.ts","sourceRoot":"","sources":["../../../src/base/tool-manager/glsp-tool-manager.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAGjH,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IAEjD,gBAAgB,IAAI,IAAI,CAAC;CAC5B;AAED,qBACa,eAAgB,SAAQ,WAAY,YAAW,gBAAgB,EAAE,gBAAgB;IAC1F,SAAS,CAAC,aAAa,CAAC,EAAE,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"glsp-tool-manager.d.ts","sourceRoot":"","sources":["../../../src/base/tool-manager/glsp-tool-manager.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAGjH,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IAEjD,gBAAgB,IAAI,IAAI,CAAC;CAC5B;AAED,qBACa,eAAgB,SAAQ,WAAY,YAAW,gBAAgB,EAAE,gBAAgB;IAC1F,SAAS,CAAC,aAAa,CAAC,EAAE,oBAAoB,CAAC;IAEA,KAAK,EAAE,IAAI,EAAE,CAAC;IACP,YAAY,EAAE,IAAI,EAAE,CAAC;IAC9B,sBAAsB,EAAE,4BAA4B,CAAC;IAGlG,SAAS,CAAC,UAAU,IAAI,IAAI;IAUnB,oBAAoB,CAAC,GAAG,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI;IAM5C,aAAa,CAAC,GAAG,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI;IAMrC,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI;IAcxC,gBAAgB,IAAI,IAAI;IAKxB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAU5D;AAED,MAAM,WAAW,QAAS,SAAQ,IAAI;IAClC,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,QAAQ,CAEtD"}
|
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.isGLSPTool = exports.GLSPToolManager = void 0;
|
|
13
13
|
/********************************************************************************
|
|
14
|
-
* Copyright (c) 2020-
|
|
14
|
+
* Copyright (c) 2020-2022 EclipseSource and others.
|
|
15
15
|
*
|
|
16
16
|
* This program and the accompanying materials are made available under the
|
|
17
17
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -41,12 +41,12 @@ let GLSPToolManager = class GLSPToolManager extends sprotty_1.ToolManager {
|
|
|
41
41
|
}
|
|
42
42
|
registerDefaultTools(...tools) {
|
|
43
43
|
for (const tool of tools) {
|
|
44
|
-
protocol_1.distinctAdd(this.defaultTools, tool);
|
|
44
|
+
(0, protocol_1.distinctAdd)(this.defaultTools, tool);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
registerTools(...tools) {
|
|
48
48
|
for (const tool of tools) {
|
|
49
|
-
protocol_1.distinctAdd(this.tools, tool);
|
|
49
|
+
(0, protocol_1.distinctAdd)(this.tools, tool);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
enable(toolIds) {
|
|
@@ -79,27 +79,27 @@ let GLSPToolManager = class GLSPToolManager extends sprotty_1.ToolManager {
|
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
__decorate([
|
|
82
|
-
inversify_1.multiInject(types_1.
|
|
83
|
-
inversify_1.optional(),
|
|
82
|
+
(0, inversify_1.multiInject)(types_1.TYPES.ITool),
|
|
83
|
+
(0, inversify_1.optional)(),
|
|
84
84
|
__metadata("design:type", Array)
|
|
85
85
|
], GLSPToolManager.prototype, "tools", void 0);
|
|
86
86
|
__decorate([
|
|
87
|
-
inversify_1.multiInject(types_1.
|
|
88
|
-
inversify_1.optional(),
|
|
87
|
+
(0, inversify_1.multiInject)(types_1.TYPES.IDefaultTool),
|
|
88
|
+
(0, inversify_1.optional)(),
|
|
89
89
|
__metadata("design:type", Array)
|
|
90
90
|
], GLSPToolManager.prototype, "defaultTools", void 0);
|
|
91
91
|
__decorate([
|
|
92
|
-
inversify_1.inject(types_1.
|
|
92
|
+
(0, inversify_1.inject)(types_1.TYPES.IEditorContextServiceProvider),
|
|
93
93
|
__metadata("design:type", Function)
|
|
94
94
|
], GLSPToolManager.prototype, "contextServiceProvider", void 0);
|
|
95
95
|
__decorate([
|
|
96
|
-
inversify_1.postConstruct(),
|
|
96
|
+
(0, inversify_1.postConstruct)(),
|
|
97
97
|
__metadata("design:type", Function),
|
|
98
98
|
__metadata("design:paramtypes", []),
|
|
99
99
|
__metadata("design:returntype", void 0)
|
|
100
100
|
], GLSPToolManager.prototype, "initialize", null);
|
|
101
101
|
GLSPToolManager = __decorate([
|
|
102
|
-
inversify_1.injectable()
|
|
102
|
+
(0, inversify_1.injectable)()
|
|
103
103
|
], GLSPToolManager);
|
|
104
104
|
exports.GLSPToolManager = GLSPToolManager;
|
|
105
105
|
function isGLSPTool(tool) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glsp-tool-manager.js","sourceRoot":"","sources":["../../../src/base/tool-manager/glsp-tool-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA+D;AAC/D,yCAAqF;AACrF,qCAA4C;AAE5C,
|
|
1
|
+
{"version":3,"file":"glsp-tool-manager.js","sourceRoot":"","sources":["../../../src/base/tool-manager/glsp-tool-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA+D;AAC/D,yCAAqF;AACrF,qCAA4C;AAE5C,oCAAiC;AAQjC,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,qBAAW;IAQlC,UAAU;QAChB,IAAI,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;QAClC,IAAI,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC;QAChD,I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+
* Use module augmentation to add the `is` utility function to the tool action namespaces provided by sprotty
|
|
4
|
+
*/
|
|
5
|
+
declare module 'sprotty/lib/base/tool-manager/tool' {
|
|
6
|
+
namespace EnableDefaultToolsAction {
|
|
7
|
+
function is(object: any): object is EnableDefaultToolsAction;
|
|
8
|
+
}
|
|
9
|
+
namespace EnableToolsAction {
|
|
10
|
+
function is(object: any): object is EnableToolsAction;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export { EnableDefaultToolsAction, EnableToolsAction };
|
|
14
|
+
//# sourceMappingURL=tool-actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-actions.d.ts","sourceRoot":"","sources":["../../../src/base/tool-manager/tool-actions.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAGjG;;GAEG;AACH,OAAO,QAAQ,oCAAoC,CAAC;IAChD,UAAiB,wBAAwB,CAAC;QACtC,SAAgB,EAAE,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,wBAAwB,CAAC;KACvE;IACD,UAAiB,iBAAiB,CAAC;QAC/B,SAAgB,EAAE,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,iBAAiB,CAAC;KAChE;CACJ;AAOD,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnableToolsAction = exports.EnableDefaultToolsAction = void 0;
|
|
4
|
+
/********************************************************************************
|
|
5
|
+
* Copyright (c) 2022 STMicroelectronics and others.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
9
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
10
|
+
*
|
|
11
|
+
* This Source Code may also be made available under the following Secondary
|
|
12
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
13
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
14
|
+
* with the GNU Classpath Exception which is available at
|
|
15
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
16
|
+
*
|
|
17
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
|
+
********************************************************************************/
|
|
19
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
20
|
+
const tool_1 = require("sprotty/lib/base/tool-manager/tool");
|
|
21
|
+
Object.defineProperty(exports, "EnableDefaultToolsAction", { enumerable: true, get: function () { return tool_1.EnableDefaultToolsAction; } });
|
|
22
|
+
Object.defineProperty(exports, "EnableToolsAction", { enumerable: true, get: function () { return tool_1.EnableToolsAction; } });
|
|
23
|
+
tool_1.EnableDefaultToolsAction.is = (object) => protocol_1.Action.hasKind(object, tool_1.EnableDefaultToolsAction.KIND);
|
|
24
|
+
tool_1.EnableToolsAction.is = (object) => protocol_1.Action.hasKind(object, tool_1.EnableToolsAction.KIND) && (0, protocol_1.hasArrayProp)(object, 'toolIds');
|
|
25
|
+
//# sourceMappingURL=tool-actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-actions.js","sourceRoot":"","sources":["../../../src/base/tool-manager/tool-actions.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA8D;AAC9D,6DAAiG;AAoBxF,yGApBA,+BAAwB,OAoBA;AAAE,kGApBA,wBAAiB,OAoBA;AALpD,+BAAwB,CAAC,EAAE,GAAG,CAAC,MAAW,EAAsC,EAAE,CAAC,iBAAM,CAAC,OAAO,CAAC,MAAM,EAAE,+BAAwB,CAAC,IAAI,CAAC,CAAC;AAEzI,wBAAiB,CAAC,EAAE,GAAG,CAAC,MAAW,EAA+B,EAAE,CAChE,iBAAM,CAAC,OAAO,CAAC,MAAM,EAAE,wBAAiB,CAAC,IAAI,CAAC,IAAI,IAAA,uBAAY,EAAC,MAAM,EAAE,SAAS,CAAC,CAAC"}
|