@eclipse-glsp/client 1.1.0-RC09 → 1.1.0-RC10
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/{src/base/actions/sprotty-actions.ts → css/autocomplete-palette.css} +7 -11
- package/css/glsp-sprotty.css +16 -1
- package/lib/base/action-dispatcher.d.ts +1 -17
- package/lib/base/action-dispatcher.d.ts.map +1 -1
- package/lib/base/action-dispatcher.js +6 -7
- package/lib/base/action-dispatcher.js.map +1 -1
- package/lib/base/actions/focus-change-action.d.ts +2 -2
- package/lib/base/actions/focus-change-action.d.ts.map +1 -1
- package/lib/base/actions/focus-change-action.js +3 -3
- package/lib/base/actions/focus-change-action.js.map +1 -1
- package/lib/base/argumentable.d.ts +2 -3
- package/lib/base/argumentable.d.ts.map +1 -1
- package/lib/base/argumentable.js.map +1 -1
- package/lib/base/auto-complete/auto-complete-actions.d.ts +2 -2
- package/lib/base/auto-complete/auto-complete-actions.d.ts.map +1 -1
- package/lib/base/auto-complete/auto-complete-actions.js +3 -3
- package/lib/base/auto-complete/auto-complete-actions.js.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.d.ts +9 -4
- package/lib/base/auto-complete/auto-complete-widget.d.ts.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.js +33 -32
- package/lib/base/auto-complete/auto-complete-widget.js.map +1 -1
- package/lib/base/auto-complete/validation-decorator.d.ts +16 -1
- package/lib/base/auto-complete/validation-decorator.d.ts.map +1 -1
- package/lib/base/auto-complete/validation-decorator.js +6 -7
- package/lib/base/auto-complete/validation-decorator.js.map +1 -1
- package/lib/base/command-stack.d.ts +1 -1
- package/lib/base/command-stack.d.ts.map +1 -1
- package/lib/base/command-stack.js +2 -2
- package/lib/base/command-stack.js.map +1 -1
- package/lib/base/container-modules.d.ts +1 -1
- package/lib/base/container-modules.d.ts.map +1 -1
- package/lib/base/container-modules.js +40 -41
- 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 +14 -16
- package/lib/base/di.config.js.map +1 -1
- package/lib/base/drag-aware-mouse-listener.d.ts +2 -3
- package/lib/base/drag-aware-mouse-listener.d.ts.map +1 -1
- package/lib/base/drag-aware-mouse-listener.js +17 -2
- package/lib/base/drag-aware-mouse-listener.js.map +1 -1
- package/lib/base/editor-context-service.d.ts +1 -17
- package/lib/base/editor-context-service.d.ts.map +1 -1
- package/lib/base/editor-context-service.js +10 -12
- package/lib/base/editor-context-service.js.map +1 -1
- package/lib/base/focus-tracker.d.ts +1 -17
- package/lib/base/focus-tracker.d.ts.map +1 -1
- package/lib/base/focus-tracker.js +17 -2
- package/lib/base/focus-tracker.js.map +1 -1
- package/lib/base/model/model-registry.d.ts +1 -1
- package/lib/base/model/model-registry.d.ts.map +1 -1
- package/lib/base/model/model-registry.js +3 -3
- package/lib/base/model/model-registry.js.map +1 -1
- package/lib/base/model/update-model-command.d.ts +1 -17
- package/lib/base/model/update-model-command.d.ts.map +1 -1
- package/lib/base/model/update-model-command.js +12 -14
- package/lib/base/model/update-model-command.js.map +1 -1
- package/lib/base/model-initialization-constraint.d.ts +1 -16
- package/lib/base/model-initialization-constraint.d.ts.map +1 -1
- package/lib/base/model-initialization-constraint.js +5 -6
- package/lib/base/model-initialization-constraint.js.map +1 -1
- package/lib/base/selection-clearing-mouse-listener.d.ts +1 -1
- package/lib/base/selection-clearing-mouse-listener.d.ts.map +1 -1
- package/lib/base/selection-clearing-mouse-listener.js +3 -3
- package/lib/base/selection-clearing-mouse-listener.js.map +1 -1
- package/lib/base/source-uri-aware.js +3 -3
- 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 +14 -16
- package/lib/base/tool-manager/glsp-tool-manager.js.map +1 -1
- package/lib/base/view/view-registry.d.ts +1 -1
- package/lib/base/view/view-registry.d.ts.map +1 -1
- package/lib/base/view/view-registry.js +3 -3
- package/lib/base/view/view-registry.js.map +1 -1
- package/lib/features/accessibility/di.config.d.ts +21 -0
- package/lib/features/accessibility/di.config.d.ts.map +1 -0
- package/lib/features/accessibility/di.config.js +34 -0
- package/lib/features/accessibility/di.config.js.map +1 -0
- package/lib/features/accessibility/move-zoom/di.config.d.ts +23 -0
- package/lib/features/accessibility/move-zoom/di.config.d.ts.map +1 -0
- package/lib/features/accessibility/move-zoom/di.config.js +41 -0
- package/lib/features/accessibility/move-zoom/di.config.js.map +1 -0
- package/lib/features/accessibility/move-zoom/move-handler.d.ts +80 -0
- package/lib/features/accessibility/move-zoom/move-handler.d.ts.map +1 -0
- package/lib/features/accessibility/move-zoom/move-handler.js +171 -0
- package/lib/features/accessibility/move-zoom/move-handler.js.map +1 -0
- package/lib/features/accessibility/move-zoom/zoom-handler.d.ts +73 -0
- package/lib/features/accessibility/move-zoom/zoom-handler.d.ts.map +1 -0
- package/lib/features/accessibility/move-zoom/zoom-handler.js +157 -0
- package/lib/features/accessibility/move-zoom/zoom-handler.js.map +1 -0
- package/lib/features/accessibility/resize-key-tool/di.config.d.ts +23 -0
- package/lib/features/accessibility/resize-key-tool/di.config.d.ts.map +1 -0
- package/lib/features/accessibility/resize-key-tool/di.config.js +36 -0
- package/lib/features/accessibility/resize-key-tool/di.config.js.map +1 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-handler.d.ts +54 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-handler.d.ts.map +1 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-handler.js +124 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-handler.js.map +1 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.d.ts +43 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.d.ts.map +1 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.js +126 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.js.map +1 -0
- package/lib/features/accessibility/search/di.config.d.ts +20 -0
- package/lib/features/accessibility/search/di.config.d.ts.map +1 -0
- package/lib/features/accessibility/search/di.config.js +32 -0
- package/lib/features/accessibility/search/di.config.js.map +1 -0
- package/lib/features/accessibility/search/search-palette.d.ts +46 -0
- package/lib/features/accessibility/search/search-palette.d.ts.map +1 -0
- package/lib/features/accessibility/search/search-palette.js +162 -0
- package/lib/features/accessibility/search/search-palette.js.map +1 -0
- package/lib/features/accessibility/search/search-tool.d.ts +29 -0
- package/lib/features/accessibility/search/search-tool.d.ts.map +1 -0
- package/lib/features/accessibility/search/search-tool.js +73 -0
- package/lib/features/accessibility/search/search-tool.js.map +1 -0
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.d.ts +34 -0
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.d.ts.map +1 -0
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.js +86 -0
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.js.map +1 -0
- package/lib/features/accessibility/view-key-tools/di.config.d.ts +20 -0
- package/lib/features/accessibility/view-key-tools/di.config.d.ts.map +1 -0
- package/lib/features/accessibility/view-key-tools/di.config.js +34 -0
- package/lib/features/accessibility/view-key-tools/di.config.js.map +1 -0
- package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts +48 -0
- package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts.map +1 -0
- package/lib/features/accessibility/view-key-tools/movement-key-tool.js +130 -0
- package/lib/features/accessibility/view-key-tools/movement-key-tool.js.map +1 -0
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts +42 -0
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts.map +1 -0
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.js +107 -0
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.js.map +1 -0
- package/lib/features/autocomplete-palette/autocomplete-suggestion-providers.d.ts +35 -0
- package/lib/features/autocomplete-palette/autocomplete-suggestion-providers.d.ts.map +1 -0
- package/lib/{base/actions/sprotty-actions.js → features/autocomplete-palette/autocomplete-suggestion-providers.js} +3 -6
- package/lib/features/autocomplete-palette/autocomplete-suggestion-providers.js.map +1 -0
- package/lib/features/autocomplete-palette/base-autocomplete-palette.d.ts +40 -0
- package/lib/features/autocomplete-palette/base-autocomplete-palette.d.ts.map +1 -0
- package/lib/features/autocomplete-palette/base-autocomplete-palette.js +82 -0
- package/lib/features/autocomplete-palette/base-autocomplete-palette.js.map +1 -0
- package/lib/features/bounds/di.config.d.ts +15 -0
- package/lib/features/bounds/di.config.d.ts.map +1 -1
- package/lib/features/bounds/di.config.js +10 -12
- package/lib/features/bounds/di.config.js.map +1 -1
- package/lib/features/bounds/freeform-layout.d.ts +1 -19
- package/lib/features/bounds/freeform-layout.d.ts.map +1 -1
- package/lib/features/bounds/freeform-layout.js +3 -4
- package/lib/features/bounds/freeform-layout.js.map +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts +1 -2
- package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts.map +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.js +6 -7
- package/lib/features/bounds/glsp-hidden-bounds-updater.js.map +1 -1
- package/lib/features/bounds/hbox-layout.d.ts +1 -17
- package/lib/features/bounds/hbox-layout.d.ts.map +1 -1
- package/lib/features/bounds/hbox-layout.js +9 -10
- package/lib/features/bounds/hbox-layout.js.map +1 -1
- package/lib/features/bounds/layouter.d.ts +1 -17
- package/lib/features/bounds/layouter.d.ts.map +1 -1
- package/lib/features/bounds/layouter.js +8 -9
- package/lib/features/bounds/layouter.js.map +1 -1
- package/lib/features/bounds/vbox-layout.d.ts +1 -17
- package/lib/features/bounds/vbox-layout.d.ts.map +1 -1
- package/lib/features/bounds/vbox-layout.js +9 -10
- package/lib/features/bounds/vbox-layout.js.map +1 -1
- package/lib/features/change-bounds/model.d.ts +2 -2
- package/lib/features/change-bounds/model.d.ts.map +1 -1
- package/lib/features/change-bounds/model.js +7 -7
- package/lib/features/change-bounds/model.js.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.d.ts +1 -17
- package/lib/features/change-bounds/movement-restrictor.d.ts.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.js +19 -4
- package/lib/features/change-bounds/movement-restrictor.js.map +1 -1
- package/lib/features/change-bounds/snap.d.ts +1 -17
- package/lib/features/change-bounds/snap.d.ts.map +1 -1
- package/lib/features/change-bounds/snap.js +17 -2
- package/lib/features/change-bounds/snap.js.map +1 -1
- package/lib/features/command-palette/command-palette-tool.d.ts +1 -1
- package/lib/features/command-palette/command-palette-tool.d.ts.map +1 -1
- package/lib/features/command-palette/command-palette-tool.js +4 -4
- package/lib/features/command-palette/command-palette-tool.js.map +1 -1
- package/lib/features/command-palette/di.config.d.ts +15 -0
- package/lib/features/command-palette/di.config.d.ts.map +1 -1
- package/lib/features/command-palette/di.config.js +5 -7
- package/lib/features/command-palette/di.config.js.map +1 -1
- package/lib/features/command-palette/server-command-palette-provider.d.ts +1 -17
- package/lib/features/command-palette/server-command-palette-provider.d.ts.map +1 -1
- package/lib/features/command-palette/server-command-palette-provider.js +5 -6
- package/lib/features/command-palette/server-command-palette-provider.js.map +1 -1
- package/lib/features/context-menu/delete-element-context-menu.d.ts +1 -17
- 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 -5
- package/lib/features/context-menu/delete-element-context-menu.js.map +1 -1
- package/lib/features/context-menu/di.config.d.ts +15 -0
- package/lib/features/context-menu/di.config.d.ts.map +1 -1
- package/lib/features/context-menu/di.config.js +7 -9
- 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 +1 -17
- 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 +21 -7
- 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 -17
- package/lib/features/context-menu/server-context-menu-provider.d.ts.map +1 -1
- package/lib/features/context-menu/server-context-menu-provider.js +6 -8
- package/lib/features/context-menu/server-context-menu-provider.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts +1 -17
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.js +7 -9
- package/lib/features/copy-paste/copy-paste-context-menu.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.d.ts +1 -17
- package/lib/features/copy-paste/copy-paste-handler.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.js +7 -8
- 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 +6 -7
- package/lib/features/copy-paste/di.config.js.map +1 -1
- package/lib/features/decoration/decoration-placer.d.ts +1 -17
- package/lib/features/decoration/decoration-placer.d.ts.map +1 -1
- package/lib/features/decoration/decoration-placer.js +6 -7
- package/lib/features/decoration/decoration-placer.js.map +1 -1
- package/lib/features/decoration/di.config.d.ts +15 -0
- package/lib/features/decoration/di.config.d.ts.map +1 -1
- package/lib/features/decoration/di.config.js +2 -3
- package/lib/features/decoration/di.config.js.map +1 -1
- package/lib/features/edit-label/di.config.d.ts +15 -0
- package/lib/features/edit-label/di.config.d.ts.map +1 -1
- package/lib/features/edit-label/di.config.js +5 -7
- package/lib/features/edit-label/di.config.js.map +1 -1
- package/lib/features/edit-label/edit-label-tool.d.ts +1 -1
- package/lib/features/edit-label/edit-label-tool.d.ts.map +1 -1
- package/lib/features/edit-label/edit-label-tool.js +4 -4
- package/lib/features/edit-label/edit-label-tool.js.map +1 -1
- package/lib/features/edit-label/edit-label-validator.d.ts +1 -17
- package/lib/features/edit-label/edit-label-validator.d.ts.map +1 -1
- package/lib/features/edit-label/edit-label-validator.js +7 -8
- package/lib/features/edit-label/edit-label-validator.js.map +1 -1
- package/lib/features/export/di.config.d.ts +15 -0
- package/lib/features/export/di.config.d.ts.map +1 -1
- package/lib/features/export/di.config.js +5 -6
- package/lib/features/export/di.config.js.map +1 -1
- package/lib/features/export/glsp-svg-exporter.d.ts +1 -17
- package/lib/features/export/glsp-svg-exporter.d.ts.map +1 -1
- package/lib/features/export/glsp-svg-exporter.js +18 -3
- package/lib/features/export/glsp-svg-exporter.js.map +1 -1
- package/lib/features/hints/di.config.d.ts +15 -0
- package/lib/features/hints/di.config.d.ts.map +1 -1
- package/lib/features/hints/di.config.js +5 -7
- package/lib/features/hints/di.config.js.map +1 -1
- package/lib/features/hints/model.d.ts +2 -3
- package/lib/features/hints/model.d.ts.map +1 -1
- package/lib/features/hints/model.js.map +1 -1
- package/lib/features/hints/type-hints.d.ts +1 -17
- package/lib/features/hints/type-hints.d.ts.map +1 -1
- package/lib/features/hints/type-hints.js +14 -16
- package/lib/features/hints/type-hints.js.map +1 -1
- package/lib/features/hover/di.config.d.ts +15 -0
- package/lib/features/hover/di.config.d.ts.map +1 -1
- package/lib/features/hover/di.config.js +18 -20
- package/lib/features/hover/di.config.js.map +1 -1
- package/lib/features/hover/hover.d.ts +1 -17
- package/lib/features/hover/hover.d.ts.map +1 -1
- package/lib/features/hover/hover.js +9 -12
- package/lib/features/hover/hover.js.map +1 -1
- package/lib/features/layout/di.config.js +3 -3
- package/lib/features/layout/di.config.js.map +1 -1
- package/lib/features/layout/layout-elements-action.d.ts +1 -17
- package/lib/features/layout/layout-elements-action.d.ts.map +1 -1
- package/lib/features/layout/layout-elements-action.js +15 -19
- package/lib/features/layout/layout-elements-action.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 +4 -5
- package/lib/features/mouse-tool/di.config.js.map +1 -1
- package/lib/features/mouse-tool/mouse-tool.d.ts +1 -1
- package/lib/features/mouse-tool/mouse-tool.d.ts.map +1 -1
- package/lib/features/mouse-tool/mouse-tool.js +5 -7
- package/lib/features/mouse-tool/mouse-tool.js.map +1 -1
- package/lib/features/navigation/di.config.d.ts +15 -0
- package/lib/features/navigation/di.config.d.ts.map +1 -1
- package/lib/features/navigation/di.config.js +5 -6
- package/lib/features/navigation/di.config.js.map +1 -1
- package/lib/features/navigation/navigation-action-handler.d.ts +1 -17
- package/lib/features/navigation/navigation-action-handler.d.ts.map +1 -1
- package/lib/features/navigation/navigation-action-handler.js +19 -20
- package/lib/features/navigation/navigation-action-handler.js.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.d.ts +1 -17
- package/lib/features/navigation/navigation-target-resolver.d.ts.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.js +9 -10
- package/lib/features/navigation/navigation-target-resolver.js.map +1 -1
- package/lib/features/reconnect/model.d.ts +2 -2
- package/lib/features/reconnect/model.d.ts.map +1 -1
- package/lib/features/reconnect/model.js +7 -7
- package/lib/features/reconnect/model.js.map +1 -1
- package/lib/features/save/di.config.d.ts +15 -0
- package/lib/features/save/di.config.d.ts.map +1 -1
- package/lib/features/save/di.config.js +2 -3
- package/lib/features/save/di.config.js.map +1 -1
- package/lib/features/save/model.d.ts +2 -2
- package/lib/features/save/model.d.ts.map +1 -1
- package/lib/features/save/save-keylistener.d.ts +2 -3
- package/lib/features/save/save-keylistener.d.ts.map +1 -1
- package/lib/features/save/save-keylistener.js +5 -7
- package/lib/features/save/save-keylistener.js.map +1 -1
- package/lib/features/select/di.config.d.ts +15 -0
- package/lib/features/select/di.config.d.ts.map +1 -1
- package/lib/features/select/di.config.js +7 -9
- package/lib/features/select/di.config.js.map +1 -1
- package/lib/features/select/select-feedback-action.d.ts +1 -17
- package/lib/features/select/select-feedback-action.d.ts.map +1 -1
- package/lib/features/select/select-feedback-action.js +7 -9
- package/lib/features/select/select-feedback-action.js.map +1 -1
- package/lib/features/select/select-mouse-listener.d.ts +2 -3
- package/lib/features/select/select-mouse-listener.d.ts.map +1 -1
- package/lib/features/select/select-mouse-listener.js +23 -26
- package/lib/features/select/select-mouse-listener.js.map +1 -1
- package/lib/features/select/selection-service.d.ts +1 -17
- package/lib/features/select/selection-service.d.ts.map +1 -1
- package/lib/features/select/selection-service.js +20 -22
- package/lib/features/select/selection-service.js.map +1 -1
- package/lib/features/source-model-watcher/di.config.d.ts +15 -0
- package/lib/features/source-model-watcher/di.config.d.ts.map +1 -1
- package/lib/features/source-model-watcher/di.config.js +3 -4
- package/lib/features/source-model-watcher/di.config.js.map +1 -1
- package/lib/features/source-model-watcher/source-model-changed-action-handler.d.ts +1 -17
- package/lib/features/source-model-watcher/source-model-changed-action-handler.d.ts.map +1 -1
- package/lib/features/source-model-watcher/source-model-changed-action-handler.js +7 -8
- package/lib/features/source-model-watcher/source-model-changed-action-handler.js.map +1 -1
- package/lib/features/svg-metadata/di.config.js +2 -2
- package/lib/features/svg-metadata/di.config.js.map +1 -1
- package/lib/features/svg-metadata/metadata-placer.d.ts +1 -2
- package/lib/features/svg-metadata/metadata-placer.d.ts.map +1 -1
- package/lib/features/svg-metadata/metadata-placer.js +11 -13
- package/lib/features/svg-metadata/metadata-placer.js.map +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts +1 -18
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js +14 -16
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts +1 -17
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.js +22 -24
- package/lib/features/tool-feedback/creation-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/css-feedback.d.ts +1 -17
- package/lib/features/tool-feedback/css-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/css-feedback.js +4 -6
- package/lib/features/tool-feedback/css-feedback.js.map +1 -1
- package/lib/features/tool-feedback/di.config.d.ts +15 -0
- package/lib/features/tool-feedback/di.config.d.ts.map +1 -1
- package/lib/features/tool-feedback/di.config.js +18 -20
- package/lib/features/tool-feedback/di.config.js.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts +1 -17
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js +27 -29
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/feedback-action-dispatcher.d.ts +1 -17
- package/lib/features/tool-feedback/feedback-action-dispatcher.d.ts.map +1 -1
- package/lib/features/tool-feedback/feedback-action-dispatcher.js +18 -3
- package/lib/features/tool-feedback/feedback-action-dispatcher.js.map +1 -1
- package/lib/features/tool-feedback/marquee-tool-feedback.d.ts +1 -17
- package/lib/features/tool-feedback/marquee-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/marquee-tool-feedback.js +7 -8
- package/lib/features/tool-feedback/marquee-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/model.d.ts +2 -2
- package/lib/features/tool-feedback/model.d.ts.map +1 -1
- package/lib/features/tool-feedback/model.js +3 -3
- package/lib/features/tool-feedback/model.js.map +1 -1
- package/lib/features/tool-feedback/view.d.ts +1 -17
- package/lib/features/tool-feedback/view.d.ts.map +1 -1
- package/lib/features/tool-feedback/view.js +5 -6
- package/lib/features/tool-feedback/view.js.map +1 -1
- package/lib/features/tool-palette/di.config.d.ts +15 -0
- package/lib/features/tool-palette/di.config.d.ts.map +1 -1
- package/lib/features/tool-palette/di.config.js +4 -6
- package/lib/features/tool-palette/di.config.js.map +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts +1 -17
- package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette.js +19 -22
- package/lib/features/tool-palette/tool-palette.js.map +1 -1
- package/lib/features/tools/base-glsp-tool.d.ts +1 -17
- package/lib/features/tools/base-glsp-tool.d.ts.map +1 -1
- package/lib/features/tools/base-glsp-tool.js +21 -7
- package/lib/features/tools/base-glsp-tool.js.map +1 -1
- package/lib/features/tools/change-bounds-tool.d.ts +1 -17
- package/lib/features/tools/change-bounds-tool.d.ts.map +1 -1
- package/lib/features/tools/change-bounds-tool.js +22 -24
- package/lib/features/tools/change-bounds-tool.js.map +1 -1
- package/lib/features/tools/delete-tool.d.ts +1 -17
- package/lib/features/tools/delete-tool.d.ts.map +1 -1
- package/lib/features/tools/delete-tool.js +15 -18
- package/lib/features/tools/delete-tool.js.map +1 -1
- package/lib/features/tools/di.config.d.ts +1 -1
- package/lib/features/tools/di.config.d.ts.map +1 -1
- package/lib/features/tools/di.config.js +14 -16
- package/lib/features/tools/di.config.js.map +1 -1
- package/lib/features/tools/edge-creation-tool.d.ts +1 -17
- package/lib/features/tools/edge-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-creation-tool.js +14 -15
- package/lib/features/tools/edge-creation-tool.js.map +1 -1
- package/lib/features/tools/edge-edit-tool.d.ts +1 -17
- package/lib/features/tools/edge-edit-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-edit-tool.js +18 -20
- package/lib/features/tools/edge-edit-tool.js.map +1 -1
- package/lib/features/tools/enable-default-tools-on-focus-loss.d.ts +1 -17
- package/lib/features/tools/enable-default-tools-on-focus-loss.d.ts.map +1 -1
- package/lib/features/tools/enable-default-tools-on-focus-loss.js +17 -2
- package/lib/features/tools/enable-default-tools-on-focus-loss.js.map +1 -1
- package/lib/features/tools/glsp-manhattan-edge-router.d.ts +1 -1
- package/lib/features/tools/glsp-manhattan-edge-router.d.ts.map +1 -1
- package/lib/features/tools/glsp-manhattan-edge-router.js +5 -6
- package/lib/features/tools/glsp-manhattan-edge-router.js.map +1 -1
- package/lib/features/tools/marquee-behavior.d.ts +2 -2
- package/lib/features/tools/marquee-behavior.d.ts.map +1 -1
- package/lib/features/tools/marquee-behavior.js +4 -4
- package/lib/features/tools/marquee-behavior.js.map +1 -1
- package/lib/features/tools/marquee-mouse-tool.d.ts +1 -18
- package/lib/features/tools/marquee-mouse-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-mouse-tool.js +15 -18
- package/lib/features/tools/marquee-mouse-tool.js.map +1 -1
- package/lib/features/tools/marquee-tool.d.ts +1 -17
- package/lib/features/tools/marquee-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-tool.js +20 -5
- package/lib/features/tools/marquee-tool.js.map +1 -1
- package/lib/features/tools/model.d.ts +2 -3
- package/lib/features/tools/model.d.ts.map +1 -1
- package/lib/features/tools/model.js +18 -3
- package/lib/features/tools/model.js.map +1 -1
- package/lib/features/tools/node-creation-tool.d.ts +1 -17
- package/lib/features/tools/node-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/node-creation-tool.js +10 -11
- 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 +4 -4
- package/lib/features/tools/view.js.map +1 -1
- package/lib/features/validation/di.config.d.ts +15 -0
- package/lib/features/validation/di.config.d.ts.map +1 -1
- package/lib/features/validation/di.config.js +7 -9
- package/lib/features/validation/di.config.js.map +1 -1
- package/lib/features/validation/issue-marker.d.ts +2 -3
- package/lib/features/validation/issue-marker.d.ts.map +1 -1
- package/lib/features/validation/issue-marker.js +9 -10
- package/lib/features/validation/issue-marker.js.map +1 -1
- package/lib/features/validation/marker-navigator.d.ts +1 -17
- package/lib/features/validation/marker-navigator.d.ts.map +1 -1
- package/lib/features/validation/marker-navigator.js +17 -20
- package/lib/features/validation/marker-navigator.js.map +1 -1
- package/lib/features/validation/validate.d.ts +1 -17
- package/lib/features/validation/validate.d.ts.map +1 -1
- package/lib/features/validation/validate.js +11 -13
- package/lib/features/validation/validate.js.map +1 -1
- package/lib/features/viewport/di.config.d.ts +15 -0
- package/lib/features/viewport/di.config.d.ts.map +1 -1
- package/lib/features/viewport/di.config.js +10 -11
- package/lib/features/viewport/di.config.js.map +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.d.ts +1 -17
- package/lib/features/viewport/glsp-scroll-mouse-listener.d.ts.map +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.js +19 -4
- package/lib/features/viewport/glsp-scroll-mouse-listener.js.map +1 -1
- package/lib/{base/tool-manager/tool-actions.d.ts → glsp-sprotty/augmented-actions.d.ts} +7 -2
- package/lib/glsp-sprotty/augmented-actions.d.ts.map +1 -0
- package/lib/{base/tool-manager/tool-actions.js → glsp-sprotty/augmented-actions.js} +6 -2
- package/lib/glsp-sprotty/augmented-actions.js.map +1 -0
- package/lib/{sprotty-reexport.d.ts → glsp-sprotty/index.d.ts} +31 -15
- package/lib/glsp-sprotty/index.d.ts.map +1 -0
- package/lib/{sprotty-reexport.js → glsp-sprotty/index.js} +70 -37
- package/lib/glsp-sprotty/index.js.map +1 -0
- package/lib/glsp-sprotty/types.d.ts.map +1 -0
- package/lib/{base → glsp-sprotty}/types.js +2 -1
- package/lib/glsp-sprotty/types.js.map +1 -0
- package/lib/index.d.ts +14 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +64 -51
- package/lib/index.js.map +1 -1
- package/lib/lib/model.d.ts +1 -2
- package/lib/lib/model.d.ts.map +1 -1
- package/lib/lib/model.js +8 -9
- package/lib/lib/model.js.map +1 -1
- package/lib/model-source/glsp-diagram-server.d.ts +1 -17
- package/lib/model-source/glsp-diagram-server.d.ts.map +1 -1
- package/lib/model-source/glsp-diagram-server.js +10 -11
- package/lib/model-source/glsp-diagram-server.js.map +1 -1
- package/lib/utils/argument-utils.d.ts +2 -2
- package/lib/utils/argument-utils.d.ts.map +1 -1
- package/lib/utils/argument-utils.js +1 -1
- package/lib/utils/argument-utils.js.map +1 -1
- package/lib/utils/layout-utils.d.ts +2 -3
- package/lib/utils/layout-utils.d.ts.map +1 -1
- package/lib/utils/layout-utils.js.map +1 -1
- package/lib/utils/marker.d.ts +16 -1
- package/lib/utils/marker.d.ts.map +1 -1
- package/lib/utils/marker.js +6 -7
- package/lib/utils/marker.js.map +1 -1
- package/lib/utils/smodel-util.d.ts +1 -3
- package/lib/utils/smodel-util.d.ts.map +1 -1
- package/lib/utils/smodel-util.js +11 -12
- package/lib/utils/smodel-util.js.map +1 -1
- package/lib/utils/viewpoint-util.d.ts +2 -3
- package/lib/utils/viewpoint-util.d.ts.map +1 -1
- package/lib/utils/viewpoint-util.js +5 -6
- package/lib/utils/viewpoint-util.js.map +1 -1
- package/lib/views/base-view-module.d.ts +1 -1
- package/lib/views/base-view-module.d.ts.map +1 -1
- package/lib/views/base-view-module.js +21 -22
- package/lib/views/base-view-module.js.map +1 -1
- package/lib/views/compartments.d.ts +1 -1
- package/lib/views/compartments.d.ts.map +1 -1
- package/lib/views/compartments.js +4 -4
- package/lib/views/compartments.js.map +1 -1
- package/lib/views/glsp-edge-view.d.ts +1 -17
- package/lib/views/glsp-edge-view.d.ts.map +1 -1
- package/lib/views/glsp-edge-view.js +18 -3
- package/lib/views/glsp-edge-view.js.map +1 -1
- package/lib/views/glsp-projection-view.d.ts +2 -4
- package/lib/views/glsp-projection-view.d.ts.map +1 -1
- package/lib/views/glsp-projection-view.js +11 -9
- package/lib/views/glsp-projection-view.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 +5 -5
- package/lib/views/issue-marker-view.js.map +1 -1
- package/lib/views/rounded-corner-view.d.ts +1 -1
- package/lib/views/rounded-corner-view.d.ts.map +1 -1
- package/lib/views/rounded-corner-view.js +4 -4
- package/lib/views/rounded-corner-view.js.map +1 -1
- package/lib/views/rounded-corner.d.ts +1 -2
- package/lib/views/rounded-corner.d.ts.map +1 -1
- package/lib/views/rounded-corner.js.map +1 -1
- package/package.json +9 -6
- package/src/base/action-dispatcher.ts +2 -3
- package/src/base/actions/focus-change-action.ts +2 -2
- package/src/base/argumentable.ts +2 -3
- package/src/base/auto-complete/auto-complete-actions.ts +2 -2
- package/src/base/auto-complete/auto-complete-widget.ts +32 -11
- package/src/base/auto-complete/validation-decorator.ts +2 -3
- package/src/base/command-stack.ts +1 -1
- package/src/base/container-modules.ts +4 -3
- package/src/base/di.config.ts +12 -3
- package/src/base/drag-aware-mouse-listener.ts +2 -3
- package/src/base/editor-context-service.ts +15 -3
- package/src/base/focus-tracker.ts +2 -4
- package/src/base/model/model-registry.ts +2 -2
- package/src/base/model/update-model-command.ts +8 -5
- package/src/base/model-initialization-constraint.ts +2 -3
- package/src/base/selection-clearing-mouse-listener.ts +2 -2
- package/src/base/source-uri-aware.ts +2 -2
- package/src/base/tool-manager/glsp-tool-manager.ts +1 -3
- package/src/base/view/view-registry.ts +2 -2
- package/src/features/accessibility/README.md +65 -0
- package/src/features/accessibility/di.config.ts +32 -0
- package/src/features/accessibility/move-zoom/di.config.ts +42 -0
- package/src/features/accessibility/move-zoom/move-handler.ts +209 -0
- package/src/features/accessibility/move-zoom/zoom-handler.ts +182 -0
- package/src/features/accessibility/resize-key-tool/di.config.ts +35 -0
- package/src/features/accessibility/resize-key-tool/resize-key-handler.ts +129 -0
- package/src/features/accessibility/resize-key-tool/resize-key-tool.ts +106 -0
- package/src/features/accessibility/search/di.config.ts +30 -0
- package/src/features/accessibility/search/search-palette.ts +193 -0
- package/src/features/accessibility/search/search-tool.ts +59 -0
- package/src/features/accessibility/view-key-tools/deselect-key-tool.ts +88 -0
- package/src/features/accessibility/view-key-tools/di.config.ts +32 -0
- package/src/features/accessibility/view-key-tools/movement-key-tool.ts +113 -0
- package/src/features/accessibility/view-key-tools/zoom-key-tool.ts +92 -0
- package/src/features/autocomplete-palette/autocomplete-suggestion-providers.ts +37 -0
- package/src/features/autocomplete-palette/base-autocomplete-palette.ts +87 -0
- package/src/features/bounds/di.config.ts +7 -7
- package/src/features/bounds/freeform-layout.spec.ts +2 -2
- package/src/features/bounds/freeform-layout.ts +12 -4
- package/src/features/bounds/glsp-hidden-bounds-updater.ts +13 -2
- package/src/features/bounds/hbox-layout.spec.ts +2 -3
- package/src/features/bounds/hbox-layout.ts +8 -6
- package/src/features/bounds/layouter-test-util.spec.ts +6 -5
- package/src/features/bounds/layouter.ts +6 -6
- package/src/features/bounds/vbox-layout.spec.ts +2 -3
- package/src/features/bounds/vbox-layout.ts +7 -5
- package/src/features/change-bounds/model.ts +2 -2
- package/src/features/change-bounds/movement-restrictor.ts +3 -4
- package/src/features/change-bounds/snap.spec.ts +2 -2
- package/src/features/change-bounds/snap.ts +2 -3
- package/src/features/command-palette/command-palette-tool.ts +1 -1
- package/src/features/command-palette/di.config.ts +1 -3
- package/src/features/command-palette/server-command-palette-provider.ts +11 -4
- package/src/features/context-menu/delete-element-context-menu.ts +2 -4
- package/src/features/context-menu/di.config.ts +1 -3
- package/src/features/context-menu/selection-service-aware-context-menu-mouse-listener.ts +2 -4
- package/src/features/context-menu/server-context-menu-provider.ts +12 -4
- package/src/features/copy-paste/copy-paste-context-menu.ts +15 -4
- package/src/features/copy-paste/copy-paste-handler.ts +9 -3
- package/src/features/copy-paste/di.config.ts +2 -3
- package/src/features/decoration/decoration-placer.ts +2 -3
- package/src/features/decoration/di.config.ts +1 -2
- package/src/features/edit-label/di.config.ts +1 -3
- package/src/features/edit-label/edit-label-tool.ts +2 -2
- package/src/features/edit-label/edit-label-validator.ts +9 -6
- package/src/features/export/di.config.ts +1 -2
- package/src/features/export/glsp-svg-exporter.ts +1 -2
- package/src/features/hints/di.config.ts +2 -4
- package/src/features/hints/model.ts +2 -3
- package/src/features/hints/type-hints.ts +13 -9
- package/src/features/hover/di.config.ts +6 -6
- package/src/features/hover/hover.ts +14 -9
- package/src/features/layout/di.config.ts +1 -1
- package/src/features/layout/layout-elements-action.spec.ts +13 -15
- package/src/features/layout/layout-elements-action.ts +13 -11
- package/src/features/mouse-tool/di.config.ts +2 -3
- package/src/features/mouse-tool/mouse-tool.ts +2 -4
- package/src/features/navigation/di.config.ts +1 -2
- package/src/features/navigation/navigation-action-handler.ts +11 -7
- package/src/features/navigation/navigation-target-resolver.spec.ts +2 -3
- package/src/features/navigation/navigation-target-resolver.ts +10 -4
- package/src/features/reconnect/model.ts +2 -2
- package/src/features/save/di.config.ts +1 -2
- package/src/features/save/model.ts +2 -2
- package/src/features/save/save-keylistener.ts +2 -4
- package/src/features/select/di.config.ts +1 -3
- package/src/features/select/select-feedback-action.ts +11 -4
- package/src/features/select/select-mouse-listener.ts +11 -10
- package/src/features/select/selection-service.spec.ts +1 -4
- package/src/features/select/selection-service.ts +14 -9
- package/src/features/source-model-watcher/di.config.ts +2 -3
- package/src/features/source-model-watcher/source-model-changed-action-handler.ts +11 -4
- package/src/features/svg-metadata/di.config.ts +1 -1
- package/src/features/svg-metadata/metadata-placer.ts +2 -4
- package/src/features/tool-feedback/change-bounds-tool-feedback.ts +11 -9
- package/src/features/tool-feedback/creation-tool-feedback.ts +11 -8
- package/src/features/tool-feedback/css-feedback.ts +2 -5
- package/src/features/tool-feedback/di.config.ts +1 -3
- package/src/features/tool-feedback/edge-edit-tool-feedback.ts +13 -10
- package/src/features/tool-feedback/feedback-action-dispatcher.ts +2 -4
- package/src/features/tool-feedback/marquee-tool-feedback.ts +6 -4
- package/src/features/tool-feedback/model.ts +2 -2
- package/src/features/tool-feedback/view.tsx +2 -3
- package/src/features/tool-palette/di.config.ts +1 -3
- package/src/features/tool-palette/tool-palette.ts +10 -5
- package/src/features/tools/base-glsp-tool.ts +2 -4
- package/src/features/tools/change-bounds-tool.ts +14 -16
- package/src/features/tools/delete-tool.ts +10 -9
- package/src/features/tools/di.config.ts +11 -3
- package/src/features/tools/edge-creation-tool.ts +9 -7
- package/src/features/tools/edge-edit-tool.ts +13 -11
- package/src/features/tools/enable-default-tools-on-focus-loss.ts +2 -3
- package/src/features/tools/glsp-manhattan-edge-router.ts +1 -2
- package/src/features/tools/marquee-behavior.ts +2 -3
- package/src/features/tools/marquee-mouse-tool.ts +9 -8
- package/src/features/tools/marquee-tool.ts +2 -3
- package/src/features/tools/model.ts +2 -3
- package/src/features/tools/node-creation-tool.ts +8 -6
- package/src/features/tools/view.tsx +2 -2
- package/src/features/validation/di.config.ts +1 -3
- package/src/features/validation/issue-marker.ts +13 -3
- package/src/features/validation/marker-navigator.spec.ts +7 -8
- package/src/features/validation/marker-navigator.ts +16 -11
- package/src/features/validation/validate.ts +16 -4
- package/src/features/viewport/di.config.ts +2 -2
- package/src/features/viewport/glsp-scroll-mouse-listener.ts +10 -3
- package/src/{base/tool-manager/tool-actions.ts → glsp-sprotty/augmented-actions.ts} +14 -3
- package/src/{sprotty-reexport.ts → glsp-sprotty/index.ts} +81 -41
- package/src/{base → glsp-sprotty}/types.ts +2 -1
- package/src/index.ts +19 -6
- package/src/lib/model.ts +12 -2
- package/src/model-source/glsp-diagram-server.ts +10 -5
- package/src/utils/argument-utils.ts +2 -2
- package/src/utils/layout-utils.ts +2 -3
- package/src/utils/marker.ts +2 -3
- package/src/utils/smodel-util.ts +9 -11
- package/src/utils/viewpoint-util.ts +13 -3
- package/src/views/base-view-module.ts +8 -7
- package/src/views/compartments.tsx +2 -2
- package/src/views/glsp-edge-view.tsx +1 -2
- package/src/views/glsp-projection-view.tsx +6 -5
- package/src/views/issue-marker-view.tsx +2 -2
- package/src/views/rounded-corner-view.tsx +1 -1
- package/src/views/rounded-corner.ts +1 -2
- package/lib/base/actions/sprotty-actions.d.ts +0 -7
- package/lib/base/actions/sprotty-actions.d.ts.map +0 -1
- package/lib/base/actions/sprotty-actions.js.map +0 -1
- package/lib/base/tool-manager/tool-actions.d.ts.map +0 -1
- package/lib/base/tool-manager/tool-actions.js.map +0 -1
- package/lib/base/types.d.ts.map +0 -1
- package/lib/base/types.js.map +0 -1
- package/lib/sprotty-reexport.d.ts.map +0 -1
- package/lib/sprotty-reexport.js.map +0 -1
- /package/lib/{base → glsp-sprotty}/types.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection-service.d.ts","sourceRoot":"","sources":["../../../src/features/select/selection-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"selection-service.d.ts","sourceRoot":"","sources":["../../../src/features/select/selection-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,MAAM,EACN,OAAO,EACP,uBAAuB,EACvB,OAAO,EAEP,aAAa,EACb,UAAU,EACV,YAAY,EACZ,eAAe,EACf,UAAU,EAQb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAE3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AAGxF,MAAM,WAAW,iBAAiB;IAC9B,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAClF;AAED,qBACa,gBAAiB,YAAW,kBAAkB;IAOO,SAAS,CAAC,kBAAkB,EAAE,iBAAiB,EAAE;IAN/G,OAAO,CAAC,IAAI,CAAuB;IACnC,OAAO,CAAC,kBAAkB,CAA0B;IAEX,SAAS,CAAC,kBAAkB,EAAE,yBAAyB,CAAC;IAC1E,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC;gBAEuB,kBAAkB,GAAE,iBAAiB,EAAO;IAEpH,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,IAAI;IAIpD,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,IAAI;IAItD,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,IAAI;IAIlD,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI;IAuDvF,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI;IAIzC,eAAe,CAAC,IAAI,EAAE,UAAU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(this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.SelectAllCommand = exports.SelectCommand = exports.SelectionService = void 0;
|
|
16
16
|
/********************************************************************************
|
|
17
|
-
* Copyright (c) 2019-
|
|
17
|
+
* Copyright (c) 2019-2023 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
|
|
@@ -28,10 +28,8 @@ exports.SelectAllCommand = exports.SelectCommand = exports.SelectionService = vo
|
|
|
28
28
|
*
|
|
29
29
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
30
30
|
********************************************************************************/
|
|
31
|
-
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
32
31
|
const inversify_1 = require("inversify");
|
|
33
|
-
const
|
|
34
|
-
const types_1 = require("../../base/types");
|
|
32
|
+
const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
|
|
35
33
|
const smodel_util_1 = require("../../utils/smodel-util");
|
|
36
34
|
const select_feedback_action_1 = require("./select-feedback-action");
|
|
37
35
|
let SelectionService = class SelectionService {
|
|
@@ -40,10 +38,10 @@ let SelectionService = class SelectionService {
|
|
|
40
38
|
this.selectedElementIDs = new Set();
|
|
41
39
|
}
|
|
42
40
|
register(selectionListener) {
|
|
43
|
-
(0,
|
|
41
|
+
(0, _glsp_sprotty_1.distinctAdd)(this.selectionListeners, selectionListener);
|
|
44
42
|
}
|
|
45
43
|
deregister(selectionListener) {
|
|
46
|
-
(0,
|
|
44
|
+
(0, _glsp_sprotty_1.remove)(this.selectionListeners, selectionListener);
|
|
47
45
|
}
|
|
48
46
|
modelRootChanged(root) {
|
|
49
47
|
this.updateSelection(root, [], []);
|
|
@@ -106,7 +104,7 @@ let SelectionService = class SelectionService {
|
|
|
106
104
|
return this.root;
|
|
107
105
|
}
|
|
108
106
|
getSelectedElements() {
|
|
109
|
-
return (0, smodel_util_1.getElements)(this.root.index, Array.from(this.selectedElementIDs),
|
|
107
|
+
return (0, smodel_util_1.getElements)(this.root.index, Array.from(this.selectedElementIDs), _glsp_sprotty_1.isSelectable);
|
|
110
108
|
}
|
|
111
109
|
/**
|
|
112
110
|
* QUERY METHODS
|
|
@@ -125,16 +123,16 @@ let SelectionService = class SelectionService {
|
|
|
125
123
|
}
|
|
126
124
|
};
|
|
127
125
|
__decorate([
|
|
128
|
-
(0, inversify_1.inject)(
|
|
126
|
+
(0, inversify_1.inject)(_glsp_sprotty_1.TYPES.IFeedbackActionDispatcher),
|
|
129
127
|
__metadata("design:type", Object)
|
|
130
128
|
], SelectionService.prototype, "feedbackDispatcher", void 0);
|
|
131
129
|
__decorate([
|
|
132
|
-
(0, inversify_1.inject)(
|
|
130
|
+
(0, inversify_1.inject)(_glsp_sprotty_1.TYPES.ILogger),
|
|
133
131
|
__metadata("design:type", Object)
|
|
134
132
|
], SelectionService.prototype, "logger", void 0);
|
|
135
133
|
SelectionService = __decorate([
|
|
136
134
|
(0, inversify_1.injectable)(),
|
|
137
|
-
__param(0, (0, inversify_1.multiInject)(
|
|
135
|
+
__param(0, (0, inversify_1.multiInject)(_glsp_sprotty_1.TYPES.SelectionListener)),
|
|
138
136
|
__param(0, (0, inversify_1.optional)()),
|
|
139
137
|
__metadata("design:paramtypes", [Array])
|
|
140
138
|
], SelectionService);
|
|
@@ -144,7 +142,7 @@ exports.SelectionService = SelectionService;
|
|
|
144
142
|
* Other tools might be selection-sensitive which means {@link SelectAction}s must be processed as fast as possible.
|
|
145
143
|
* Handling the action with a command ensures that the action is processed before the next render tick.
|
|
146
144
|
*/
|
|
147
|
-
let SelectCommand = class SelectCommand extends
|
|
145
|
+
let SelectCommand = class SelectCommand extends _glsp_sprotty_1.Command {
|
|
148
146
|
constructor(action, selectionService) {
|
|
149
147
|
super();
|
|
150
148
|
this.action = action;
|
|
@@ -154,10 +152,10 @@ let SelectCommand = class SelectCommand extends sprotty_1.Command {
|
|
|
154
152
|
}
|
|
155
153
|
execute(context) {
|
|
156
154
|
const model = context.root;
|
|
157
|
-
const selectionGuard = (element) => element instanceof
|
|
155
|
+
const selectionGuard = (element) => element instanceof _glsp_sprotty_1.SChildElement && (0, _glsp_sprotty_1.isSelectable)(element);
|
|
158
156
|
const selectedElements = (0, smodel_util_1.getElements)(model.index, this.action.selectedElementsIDs, selectionGuard);
|
|
159
157
|
const deselectedElements = (0, smodel_util_1.getElements)(model.index, this.action.deselectedElementsIDs, selectionGuard);
|
|
160
|
-
this.selectionService.updateSelection(model, (0,
|
|
158
|
+
this.selectionService.updateSelection(model, (0, _glsp_sprotty_1.pluck)(selectedElements, 'id'), (0, _glsp_sprotty_1.pluck)(deselectedElements, 'id'));
|
|
161
159
|
return model;
|
|
162
160
|
}
|
|
163
161
|
// Basically no-op since client-side undo is not supported in GLSP.
|
|
@@ -169,11 +167,11 @@ let SelectCommand = class SelectCommand extends sprotty_1.Command {
|
|
|
169
167
|
return context.root;
|
|
170
168
|
}
|
|
171
169
|
};
|
|
172
|
-
SelectCommand.KIND =
|
|
170
|
+
SelectCommand.KIND = _glsp_sprotty_1.SprottySelectCommand.KIND;
|
|
173
171
|
SelectCommand = __decorate([
|
|
174
172
|
(0, inversify_1.injectable)(),
|
|
175
|
-
__param(0, (0, inversify_1.inject)(
|
|
176
|
-
__param(1, (0, inversify_1.inject)(
|
|
173
|
+
__param(0, (0, inversify_1.inject)(_glsp_sprotty_1.TYPES.Action)),
|
|
174
|
+
__param(1, (0, inversify_1.inject)(_glsp_sprotty_1.TYPES.SelectionService)),
|
|
177
175
|
__metadata("design:paramtypes", [Object, SelectionService])
|
|
178
176
|
], SelectCommand);
|
|
179
177
|
exports.SelectCommand = SelectCommand;
|
|
@@ -182,7 +180,7 @@ exports.SelectCommand = SelectCommand;
|
|
|
182
180
|
* Other tools might be selection-sensitive which means {@link SelectionAllAction}s must be processed as fast as possible.
|
|
183
181
|
* Handling the action with a command ensures that the action is processed before the next render tick.
|
|
184
182
|
*/
|
|
185
|
-
let SelectAllCommand = class SelectAllCommand extends
|
|
183
|
+
let SelectAllCommand = class SelectAllCommand extends _glsp_sprotty_1.Command {
|
|
186
184
|
constructor(action, selectionService) {
|
|
187
185
|
super();
|
|
188
186
|
this.action = action;
|
|
@@ -191,9 +189,9 @@ let SelectAllCommand = class SelectAllCommand extends sprotty_1.Command {
|
|
|
191
189
|
}
|
|
192
190
|
execute(context) {
|
|
193
191
|
const model = context.root;
|
|
194
|
-
const selectionGuard = (element) => element instanceof
|
|
192
|
+
const selectionGuard = (element) => element instanceof _glsp_sprotty_1.SChildElement && (0, _glsp_sprotty_1.isSelectable)(element);
|
|
195
193
|
const selectables = (0, smodel_util_1.getMatchingElements)(model.index, selectionGuard);
|
|
196
|
-
const selectableIds = (0,
|
|
194
|
+
const selectableIds = (0, _glsp_sprotty_1.pluck)(selectables, 'id');
|
|
197
195
|
if (this.action.select) {
|
|
198
196
|
this.selectionService.updateSelection(model, selectableIds, []);
|
|
199
197
|
}
|
|
@@ -211,11 +209,11 @@ let SelectAllCommand = class SelectAllCommand extends sprotty_1.Command {
|
|
|
211
209
|
return context.root;
|
|
212
210
|
}
|
|
213
211
|
};
|
|
214
|
-
SelectAllCommand.KIND =
|
|
212
|
+
SelectAllCommand.KIND = _glsp_sprotty_1.SprottySelectAllCommand.KIND;
|
|
215
213
|
SelectAllCommand = __decorate([
|
|
216
214
|
(0, inversify_1.injectable)(),
|
|
217
|
-
__param(0, (0, inversify_1.inject)(
|
|
218
|
-
__param(1, (0, inversify_1.inject)(
|
|
215
|
+
__param(0, (0, inversify_1.inject)(_glsp_sprotty_1.TYPES.Action)),
|
|
216
|
+
__param(1, (0, inversify_1.inject)(_glsp_sprotty_1.TYPES.SelectionService)),
|
|
219
217
|
__metadata("design:paramtypes", [Object, SelectionService])
|
|
220
218
|
], SelectAllCommand);
|
|
221
219
|
exports.SelectAllCommand = SelectAllCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection-service.js","sourceRoot":"","sources":["../../../src/features/select/selection-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"selection-service.js","sourceRoot":"","sources":["../../../src/features/select/selection-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAsE;AACtE,iDAkBuB;AAEvB,yDAA2E;AAE3E,qEAAgE;AAMhE,IACa,gBAAgB,GAD7B,MACa,gBAAgB;IAOzB,YAA8D,qBAAoD,EAAE;QAA5C,uBAAkB,GAAlB,kBAAkB,CAA0B;QAL5G,uBAAkB,GAAgB,IAAI,GAAG,EAAE,CAAC;IAKmE,CAAC;IAExH,QAAQ,CAAC,iBAAoC;QACzC,IAAA,2BAAW,EAAC,IAAI,CAAC,kBAAkB,EAAE,iBAAiB,CAAC,CAAC;IAC5D,CAAC;IAED,UAAU,CAAC,iBAAoC;QAC3C,IAAA,sBAAM,EAAC,IAAI,CAAC,kBAAkB,EAAE,iBAAiB,CAAC,CAAC;IACvD,CAAC;IAED,gBAAgB,CAAC,IAA0B;QACvC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACvC,CAAC;IAED,eAAe,CAAC,IAA0B,EAAE,MAAgB,EAAE,QAAkB;QAC5E,IAAI,IAAI,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;YACpE,OAAO;SACV;QACD,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;QAC3B,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAEhE,cAAc;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAEjB,8DAA8D;QAC9D,yEAAyE;QACzE,0FAA0F;Q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AAc,CAAC,CAAC;QACrE,MAAM,aAAa,GAAG,IAAA,qBAAK,EAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QAC/C,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;YACpB,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,KAAK,EAAE,aAAa,EAAE,EAAE,CAAC,CAAC;SACnE;aAAM;YACH,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,KAAK,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC;SACnE;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,mEAAmE;IACnE,IAAI,CAAC,OAAgC;QACjC,OAAO,OAAO,CAAC,IAAI,CAAC;IACxB,CAAC;IAED,mEAAmE;IACnE,IAAI,CAAC,OAAgC;QACjC,OAAO,OAAO,CAAC,IAAI,CAAC;IACxB,CAAC;;AAjCe,qBAAI,GAAG,uCAAuB,CAAC,IAAI,AAA/B,CAAgC;AAD3C,gBAAgB;IAD5B,IAAA,sBAAU,GAAE;IAMJ,WAAA,IAAA,kBAAM,EAAC,qBAAK,CAAC,MAAM,CAAC,CAAA;IACpB,WAAA,IAAA,kBAAM,EAAC,qBAAK,CAAC,gBAAgB,CAAC,CAAA;6CAA0B,gBAAgB;GANpE,gBAAgB,CAmC5B;AAnCY,4CAAgB"}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
1
16
|
import { ContainerModule } from 'inversify';
|
|
2
17
|
declare const sourceModelWatcherModule: ContainerModule;
|
|
3
18
|
export default sourceModelWatcherModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/source-model-watcher/di.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/source-model-watcher/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAI5C,QAAA,MAAM,wBAAwB,iBAE5B,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/********************************************************************************
|
|
4
|
-
* Copyright (c) 2019-
|
|
4
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
5
5
|
*
|
|
6
6
|
* This program and the accompanying materials are made available under the
|
|
7
7
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -15,12 +15,11 @@ 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
|
-
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
19
18
|
const inversify_1 = require("inversify");
|
|
20
|
-
const
|
|
19
|
+
const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
|
|
21
20
|
const source_model_changed_action_handler_1 = require("./source-model-changed-action-handler");
|
|
22
21
|
const sourceModelWatcherModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
|
|
23
|
-
(0,
|
|
22
|
+
(0, _glsp_sprotty_1.configureActionHandler)({ bind, isBound }, _glsp_sprotty_1.SourceModelChangedAction.KIND, source_model_changed_action_handler_1.SourceModelChangedActionHandler);
|
|
24
23
|
});
|
|
25
24
|
exports.default = sourceModelWatcherModule;
|
|
26
25
|
//# sourceMappingURL=di.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/source-model-watcher/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/source-model-watcher/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,iDAAiF;AACjF,+FAAwF;AAExF,MAAM,wBAAwB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IAC5E,IAAA,sCAAsB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,wCAAwB,CAAC,IAAI,EAAE,qEAA+B,CAAC,CAAC;AAC9G,CAAC,CAAC,CAAC;AAEH,kBAAe,wBAAwB,CAAC"}
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright (c) 2020-2022 EclipseSource and others.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made available under the
|
|
5
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
*
|
|
8
|
-
* This Source Code may also be made available under the following Secondary
|
|
9
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
* with the GNU Classpath Exception which is available at
|
|
12
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
*
|
|
14
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
-
********************************************************************************/
|
|
16
|
-
import { Action, SourceModelChangedAction } from '@eclipse-glsp/protocol';
|
|
17
|
-
import { IActionDispatcher, IActionHandler, ViewerOptions } from 'sprotty';
|
|
1
|
+
import { Action, IActionDispatcher, IActionHandler, SourceModelChangedAction, ViewerOptions } from '../../glsp-sprotty/index';
|
|
18
2
|
/**
|
|
19
3
|
* An external handler of the source model change event.
|
|
20
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-model-changed-action-handler.d.ts","sourceRoot":"","sources":["../../../src/features/source-model-watcher/source-model-changed-action-handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"source-model-changed-action-handler.d.ts","sourceRoot":"","sources":["../../../src/features/source-model-watcher/source-model-changed-action-handler.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,MAAM,EACN,iBAAiB,EACjB,cAAc,EAGd,wBAAwB,EAExB,aAAa,EAChB,MAAM,eAAe,CAAC;AAEvB;;;;;GAKG;AACH,8BACsB,iCAAiC;IACnD;;;OAGG;IACH,QAAQ,CAAC,uBAAuB,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CACvG;AAED,qBACa,+BAAgC,YAAW,cAAc;IAElE,SAAS,CAAC,UAAU,EAAE,iBAAiB,CAAC;IAGxC,SAAS,CAAC,OAAO,EAAE,aAAa,CAAC;IAIjC,SAAS,CAAC,iCAAiC,CAAC,EAAE,iCAAiC,CAAC;IAEhF,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAY5B,SAAS,CAAC,sBAAsB,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI;CAS3E"}
|
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SourceModelChangedActionHandler = exports.ExternalSourceModelChangedHandler = void 0;
|
|
13
13
|
/********************************************************************************
|
|
14
|
-
* Copyright (c) 2020-
|
|
14
|
+
* Copyright (c) 2020-2023 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
|
|
@@ -25,9 +25,8 @@ exports.SourceModelChangedActionHandler = exports.ExternalSourceModelChangedHand
|
|
|
25
25
|
*
|
|
26
26
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
27
27
|
********************************************************************************/
|
|
28
|
-
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
29
28
|
const inversify_1 = require("inversify");
|
|
30
|
-
const
|
|
29
|
+
const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
|
|
31
30
|
/**
|
|
32
31
|
* An external handler of the source model change event.
|
|
33
32
|
*
|
|
@@ -42,7 +41,7 @@ ExternalSourceModelChangedHandler = __decorate([
|
|
|
42
41
|
exports.ExternalSourceModelChangedHandler = ExternalSourceModelChangedHandler;
|
|
43
42
|
let SourceModelChangedActionHandler = class SourceModelChangedActionHandler {
|
|
44
43
|
handle(action) {
|
|
45
|
-
if (
|
|
44
|
+
if (_glsp_sprotty_1.SourceModelChangedAction.is(action)) {
|
|
46
45
|
if (this.externalModelSourceChangedHandler) {
|
|
47
46
|
this.externalModelSourceChangedHandler
|
|
48
47
|
.notifySourceModelChange(action.sourceModelName, this.options)
|
|
@@ -57,17 +56,17 @@ let SourceModelChangedActionHandler = class SourceModelChangedActionHandler {
|
|
|
57
56
|
const timeout = 0;
|
|
58
57
|
const severity = 'WARNING';
|
|
59
58
|
this.dispatcher.dispatchAll([
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
_glsp_sprotty_1.ServerStatusAction.create(message, { severity, timeout }),
|
|
60
|
+
_glsp_sprotty_1.ServerMessageAction.create(message, { severity, timeout })
|
|
62
61
|
]);
|
|
63
62
|
}
|
|
64
63
|
};
|
|
65
64
|
__decorate([
|
|
66
|
-
(0, inversify_1.inject)(
|
|
65
|
+
(0, inversify_1.inject)(_glsp_sprotty_1.TYPES.IActionDispatcher),
|
|
67
66
|
__metadata("design:type", Object)
|
|
68
67
|
], SourceModelChangedActionHandler.prototype, "dispatcher", void 0);
|
|
69
68
|
__decorate([
|
|
70
|
-
(0, inversify_1.inject)(
|
|
69
|
+
(0, inversify_1.inject)(_glsp_sprotty_1.TYPES.ViewerOptions),
|
|
71
70
|
__metadata("design:type", Object)
|
|
72
71
|
], SourceModelChangedActionHandler.prototype, "options", void 0);
|
|
73
72
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-model-changed-action-handler.js","sourceRoot":"","sources":["../../../src/features/source-model-watcher/source-model-changed-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"source-model-changed-action-handler.js","sourceRoot":"","sources":["../../../src/features/source-model-watcher/source-model-changed-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAyD;AACzD,iDASuB;AAEvB;;;;;GAKG;AAEH,IAAsB,iCAAiC,GAAvD,MAAsB,iCAAiC;CAMtD,CAAA;AANqB,iCAAiC;IADtD,IAAA,sBAAU,GAAE;GACS,iCAAiC,CAMtD;AANqB,8EAAiC;AASvD,IAAa,+BAA+B,GAA5C,MAAa,+BAA+B;IAWxC,MAAM,CAAC,MAAc;QACjB,IAAI,wCAAwB,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACrC,IAAI,IAAI,CAAC,iCAAiC,EAAE;gBACxC,IAAI,CAAC,iCAAiC;qBACjC,uBAAuB,CAAC,MAAM,CAAC,eAAe,EAAE,IAAI,CAAC,OAAO,CAAC;qBAC7D,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;gBAC3D,OAAO;aACV;YACD,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;SACvC;IACL,CAAC;IAES,sBAAsB,CAAC,MAAgC;QAC7D,MAAM,OAAO,GAAG,oBAAoB,MAAM,CAAC,eAAe,qDAAqD,CAAC;QAChH,MAAM,OAAO,GAAG,CAAC,CAAC;QAClB,MAAM,QAAQ,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;YACxB,kCAAkB,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;YACzD,mCAAmB,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;SAC7D,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AA9Ba;IADT,IAAA,kBAAM,EAAC,qBAAK,CAAC,iBAAiB,CAAC;;mEACQ;AAG9B;IADT,IAAA,kBAAM,EAAC,qBAAK,CAAC,aAAa,CAAC;;gEACK;AAIvB;IAFT,IAAA,kBAAM,EAAC,iCAAiC,CAAC;IACzC,IAAA,oBAAQ,GAAE;8BACmC,iCAAiC;0FAAC;AATvE,+BAA+B;IAD3C,IAAA,sBAAU,GAAE;GACA,+BAA+B,CAgC3C;AAhCY,0EAA+B"}
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
********************************************************************************/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const inversify_1 = require("inversify");
|
|
19
|
-
const
|
|
19
|
+
const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
|
|
20
20
|
const metadata_placer_1 = require("./metadata-placer");
|
|
21
21
|
const svgMetadataModule = new inversify_1.ContainerModule(bind => {
|
|
22
22
|
bind(metadata_placer_1.MetadataPlacer).toSelf().inSingletonScope();
|
|
23
|
-
bind(
|
|
23
|
+
bind(_glsp_sprotty_1.TYPES.IVNodePostprocessor).toService(metadata_placer_1.MetadataPlacer);
|
|
24
24
|
});
|
|
25
25
|
exports.default = svgMetadataModule;
|
|
26
26
|
//# sourceMappingURL=di.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/svg-metadata/di.config.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;AAElF,yCAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/svg-metadata/di.config.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;AAElF,yCAA4C;AAC5C,iDAAsC;AACtC,uDAAmD;AAEnD,MAAM,iBAAiB,GAAG,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACjD,IAAI,CAAC,gCAAc,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACjD,IAAI,CAAC,qBAAK,CAAC,mBAAmB,CAAC,CAAC,SAAS,CAAC,gCAAc,CAAC,CAAC;AAC9D,CAAC,CAAC,CAAC;AAEH,kBAAe,iBAAiB,CAAC"}
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import { VNode } from 'snabbdom';
|
|
17
|
-
import { IVNodePostprocessor, SModelElement } from 'sprotty';
|
|
18
|
-
import { DOMHelper } from 'sprotty/lib/base/views/dom-helper';
|
|
17
|
+
import { DOMHelper, IVNodePostprocessor, SModelElement } from '../../glsp-sprotty/index';
|
|
19
18
|
export declare class MetadataPlacer implements IVNodePostprocessor {
|
|
20
19
|
protected domHelper: DOMHelper;
|
|
21
20
|
decorate(vnode: VNode, element: SModelElement): VNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata-placer.d.ts","sourceRoot":"","sources":["../../../src/features/svg-metadata/metadata-placer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAGlF,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"metadata-placer.d.ts","sourceRoot":"","sources":["../../../src/features/svg-metadata/metadata-placer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAGlF,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAwB,aAAa,EAA8B,MAAM,eAAe,CAAC;AAEhI,qBACa,cAAe,YAAW,mBAAmB;IAC7B,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAExD,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,GAAG,KAAK;IAqBrD,UAAU,IAAI,IAAI;CAGrB"}
|
|
@@ -26,24 +26,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
exports.MetadataPlacer = void 0;
|
|
28
28
|
const inversify_1 = require("inversify");
|
|
29
|
-
const
|
|
30
|
-
const dom_helper_1 = require("sprotty/lib/base/views/dom-helper");
|
|
31
|
-
const types_1 = require("../../base/types");
|
|
29
|
+
const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
|
|
32
30
|
let MetadataPlacer = class MetadataPlacer {
|
|
33
31
|
decorate(vnode, element) {
|
|
34
|
-
if (element instanceof
|
|
35
|
-
(0,
|
|
32
|
+
if (element instanceof _glsp_sprotty_1.SModelRoot) {
|
|
33
|
+
(0, _glsp_sprotty_1.setAttr)(vnode, 'data-svg-metadata-api', true);
|
|
36
34
|
}
|
|
37
|
-
(0,
|
|
38
|
-
if (element instanceof
|
|
39
|
-
(0,
|
|
35
|
+
(0, _glsp_sprotty_1.setAttr)(vnode, 'data-svg-metadata-type', element.type);
|
|
36
|
+
if (element instanceof _glsp_sprotty_1.SChildElement) {
|
|
37
|
+
(0, _glsp_sprotty_1.setAttr)(vnode, 'data-svg-metadata-parent-id', this.domHelper.createUniqueDOMElementId(element.parent));
|
|
40
38
|
}
|
|
41
|
-
if (element instanceof
|
|
39
|
+
if (element instanceof _glsp_sprotty_1.SEdge) {
|
|
42
40
|
if (element.source !== undefined) {
|
|
43
|
-
(0,
|
|
41
|
+
(0, _glsp_sprotty_1.setAttr)(vnode, 'data-svg-metadata-edge-source-id', this.domHelper.createUniqueDOMElementId(element.source));
|
|
44
42
|
}
|
|
45
43
|
if (element.target !== undefined) {
|
|
46
|
-
(0,
|
|
44
|
+
(0, _glsp_sprotty_1.setAttr)(vnode, 'data-svg-metadata-edge-target-id', this.domHelper.createUniqueDOMElementId(element.target));
|
|
47
45
|
}
|
|
48
46
|
}
|
|
49
47
|
return vnode;
|
|
@@ -53,8 +51,8 @@ let MetadataPlacer = class MetadataPlacer {
|
|
|
53
51
|
}
|
|
54
52
|
};
|
|
55
53
|
__decorate([
|
|
56
|
-
(0, inversify_1.inject)(
|
|
57
|
-
__metadata("design:type",
|
|
54
|
+
(0, inversify_1.inject)(_glsp_sprotty_1.TYPES.DOMHelper),
|
|
55
|
+
__metadata("design:type", _glsp_sprotty_1.DOMHelper)
|
|
58
56
|
], MetadataPlacer.prototype, "domHelper", void 0);
|
|
59
57
|
MetadataPlacer = __decorate([
|
|
60
58
|
(0, inversify_1.injectable)()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata-placer.js","sourceRoot":"","sources":["../../../src/features/svg-metadata/metadata-placer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,yCAA+C;AAE/C,
|
|
1
|
+
{"version":3,"file":"metadata-placer.js","sourceRoot":"","sources":["../../../src/features/svg-metadata/metadata-placer.ts"],"names":[],"mappings":";AAAA;;;;;;;;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 EclipseSource and others.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made available under the
|
|
5
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
*
|
|
8
|
-
* This Source Code may also be made available under the following Secondary
|
|
9
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
* with the GNU Classpath Exception which is available at
|
|
12
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
*
|
|
14
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
-
********************************************************************************/
|
|
16
|
-
import { Action, Point } from '@eclipse-glsp/protocol';
|
|
17
1
|
import { VNode } from 'snabbdom';
|
|
18
|
-
import { CommandExecutionContext, CommandReturn, MouseListener, SModelElement, SModelRoot } from 'sprotty';
|
|
19
|
-
import { MoveAction } from 'sprotty-protocol/lib/actions';
|
|
2
|
+
import { Action, CommandExecutionContext, CommandReturn, MouseListener, MoveAction, Point, SModelElement, SModelRoot } from '../../glsp-sprotty/index';
|
|
20
3
|
import { ChangeBoundsTool } from '../tools/change-bounds-tool';
|
|
21
4
|
import { FeedbackCommand } from './model';
|
|
22
5
|
export interface ShowChangeBoundsToolResizeFeedbackAction extends Action {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-bounds-tool-feedback.d.ts","sourceRoot":"","sources":["../../../src/features/tool-feedback/change-bounds-tool-feedback.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"change-bounds-tool-feedback.d.ts","sourceRoot":"","sources":["../../../src/features/tool-feedback/change-bounds-tool-feedback.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EACH,MAAM,EACN,uBAAuB,EACvB,aAAa,EAEb,aAAa,EACb,UAAU,EAC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R GPL-2.0 WITH Classpath-exception-2.0
|
|
27
27
|
********************************************************************************/
|
|
28
|
-
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
29
28
|
const inversify_1 = require("inversify");
|
|
30
|
-
const
|
|
31
|
-
const actions_1 = require("sprotty-protocol/lib/actions");
|
|
29
|
+
const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
|
|
32
30
|
const smodel_util_1 = require("../../utils/smodel-util");
|
|
33
31
|
const model_1 = require("../change-bounds/model");
|
|
34
32
|
const movement_restrictor_1 = require("../change-bounds/movement-restrictor");
|
|
@@ -38,7 +36,7 @@ var ShowChangeBoundsToolResizeFeedbackAction;
|
|
|
38
36
|
(function (ShowChangeBoundsToolResizeFeedbackAction) {
|
|
39
37
|
ShowChangeBoundsToolResizeFeedbackAction.KIND = 'showChangeBoundsToolResizeFeedback';
|
|
40
38
|
function is(object) {
|
|
41
|
-
return
|
|
39
|
+
return _glsp_sprotty_1.Action.hasKind(object, ShowChangeBoundsToolResizeFeedbackAction.KIND) && (0, _glsp_sprotty_1.hasStringProp)(object, 'elementId');
|
|
42
40
|
}
|
|
43
41
|
ShowChangeBoundsToolResizeFeedbackAction.is = is;
|
|
44
42
|
function create(elementId) {
|
|
@@ -53,7 +51,7 @@ var HideChangeBoundsToolResizeFeedbackAction;
|
|
|
53
51
|
(function (HideChangeBoundsToolResizeFeedbackAction) {
|
|
54
52
|
HideChangeBoundsToolResizeFeedbackAction.KIND = 'hideChangeBoundsToolResizeFeedback';
|
|
55
53
|
function is(object) {
|
|
56
|
-
return
|
|
54
|
+
return _glsp_sprotty_1.Action.hasKind(object, HideChangeBoundsToolResizeFeedbackAction.KIND);
|
|
57
55
|
}
|
|
58
56
|
HideChangeBoundsToolResizeFeedbackAction.is = is;
|
|
59
57
|
function create() {
|
|
@@ -76,7 +74,7 @@ let ShowChangeBoundsToolResizeFeedbackCommand = class ShowChangeBoundsToolResize
|
|
|
76
74
|
};
|
|
77
75
|
ShowChangeBoundsToolResizeFeedbackCommand.KIND = ShowChangeBoundsToolResizeFeedbackAction.KIND;
|
|
78
76
|
__decorate([
|
|
79
|
-
(0, inversify_1.inject)(
|
|
77
|
+
(0, inversify_1.inject)(_glsp_sprotty_1.TYPES.Action),
|
|
80
78
|
__metadata("design:type", Object)
|
|
81
79
|
], ShowChangeBoundsToolResizeFeedbackCommand.prototype, "action", void 0);
|
|
82
80
|
ShowChangeBoundsToolResizeFeedbackCommand = __decorate([
|
|
@@ -92,7 +90,7 @@ let HideChangeBoundsToolResizeFeedbackCommand = class HideChangeBoundsToolResize
|
|
|
92
90
|
};
|
|
93
91
|
HideChangeBoundsToolResizeFeedbackCommand.KIND = HideChangeBoundsToolResizeFeedbackAction.KIND;
|
|
94
92
|
__decorate([
|
|
95
|
-
(0, inversify_1.inject)(
|
|
93
|
+
(0, inversify_1.inject)(_glsp_sprotty_1.TYPES.Action),
|
|
96
94
|
__metadata("design:type", Object)
|
|
97
95
|
], HideChangeBoundsToolResizeFeedbackCommand.prototype, "action", void 0);
|
|
98
96
|
HideChangeBoundsToolResizeFeedbackCommand = __decorate([
|
|
@@ -106,7 +104,7 @@ exports.HideChangeBoundsToolResizeFeedbackCommand = HideChangeBoundsToolResizeFe
|
|
|
106
104
|
* the visual feedback but also the basis for sending the change to the server
|
|
107
105
|
* (see also `tools/MoveTool`).
|
|
108
106
|
*/
|
|
109
|
-
class FeedbackMoveMouseListener extends
|
|
107
|
+
class FeedbackMoveMouseListener extends _glsp_sprotty_1.MouseListener {
|
|
110
108
|
constructor(tool) {
|
|
111
109
|
super();
|
|
112
110
|
this.tool = tool;
|
|
@@ -115,7 +113,7 @@ class FeedbackMoveMouseListener extends sprotty_1.MouseListener {
|
|
|
115
113
|
}
|
|
116
114
|
mouseDown(target, event) {
|
|
117
115
|
if (event.button === 0 && !(target instanceof model_1.SResizeHandle)) {
|
|
118
|
-
const moveable = (0,
|
|
116
|
+
const moveable = (0, _glsp_sprotty_1.findParentByFeature)(target, _glsp_sprotty_1.isMoveable);
|
|
119
117
|
if (moveable !== undefined) {
|
|
120
118
|
this.startDragPosition = { x: event.pageX, y: event.pageY };
|
|
121
119
|
}
|
|
@@ -145,18 +143,18 @@ class FeedbackMoveMouseListener extends sprotty_1.MouseListener {
|
|
|
145
143
|
return result;
|
|
146
144
|
}
|
|
147
145
|
collectStartPositions(root) {
|
|
148
|
-
const selectedElements = root.index.all().filter(element => (0,
|
|
146
|
+
const selectedElements = root.index.all().filter(element => (0, _glsp_sprotty_1.isSelectable)(element) && element.selected);
|
|
149
147
|
const elementsSet = new Set(selectedElements);
|
|
150
148
|
selectedElements
|
|
151
149
|
.filter(element => !this.isChildOfSelected(elementsSet, element))
|
|
152
150
|
.forEach(element => {
|
|
153
|
-
if ((0,
|
|
151
|
+
if ((0, _glsp_sprotty_1.isMoveable)(element)) {
|
|
154
152
|
this.elementId2startPos.set(element.id, element.position);
|
|
155
153
|
}
|
|
156
154
|
});
|
|
157
155
|
}
|
|
158
156
|
isChildOfSelected(selectedElements, element) {
|
|
159
|
-
while (element instanceof
|
|
157
|
+
while (element instanceof _glsp_sprotty_1.SChildElement) {
|
|
160
158
|
element = element.parent;
|
|
161
159
|
if (selectedElements.has(element)) {
|
|
162
160
|
return true;
|
|
@@ -169,7 +167,7 @@ class FeedbackMoveMouseListener extends sprotty_1.MouseListener {
|
|
|
169
167
|
return undefined;
|
|
170
168
|
}
|
|
171
169
|
const elementMoves = [];
|
|
172
|
-
const viewport = (0,
|
|
170
|
+
const viewport = (0, _glsp_sprotty_1.findParentByFeature)(target, _glsp_sprotty_1.isViewport);
|
|
173
171
|
const zoom = viewport ? viewport.zoom : 1;
|
|
174
172
|
const delta = {
|
|
175
173
|
x: (event.pageX - this.startDragPosition.x) / zoom,
|
|
@@ -182,7 +180,7 @@ class FeedbackMoveMouseListener extends sprotty_1.MouseListener {
|
|
|
182
180
|
x: startPosition.x + delta.x,
|
|
183
181
|
y: startPosition.y + delta.y
|
|
184
182
|
}, element, !event.shiftKey);
|
|
185
|
-
if ((0,
|
|
183
|
+
if ((0, _glsp_sprotty_1.isMoveable)(element)) {
|
|
186
184
|
toPosition = this.validateMove(startPosition, toPosition, element, finished);
|
|
187
185
|
elementMoves.push({
|
|
188
186
|
elementId: element.id,
|
|
@@ -196,7 +194,7 @@ class FeedbackMoveMouseListener extends sprotty_1.MouseListener {
|
|
|
196
194
|
}
|
|
197
195
|
});
|
|
198
196
|
if (elementMoves.length > 0) {
|
|
199
|
-
return
|
|
197
|
+
return _glsp_sprotty_1.MoveAction.create(elementMoves, { animate: false, finished });
|
|
200
198
|
}
|
|
201
199
|
else {
|
|
202
200
|
return undefined;
|
|
@@ -229,7 +227,7 @@ class FeedbackMoveMouseListener extends sprotty_1.MouseListener {
|
|
|
229
227
|
}
|
|
230
228
|
}
|
|
231
229
|
mouseEnter(target, event) {
|
|
232
|
-
if (target instanceof
|
|
230
|
+
if (target instanceof _glsp_sprotty_1.SModelRoot && event.buttons === 0 && !this.startDragPosition) {
|
|
233
231
|
this.mouseUp(target, event);
|
|
234
232
|
}
|
|
235
233
|
return [];
|