@eclipse-glsp/client 1.1.0-next.6ec1da0.211 → 1.1.0-next.7be33cd.257
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/{lib/features/rank/model.d.ts → css/autocomplete-palette.css} +7 -7
- package/css/decoration.css +1 -1
- 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 +7 -8
- 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 +4 -4
- 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 +4 -4
- package/lib/base/auto-complete/auto-complete-actions.js.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.d.ts +11 -6
- package/lib/base/auto-complete/auto-complete-widget.d.ts.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.js +35 -34
- 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 +7 -8
- package/lib/base/auto-complete/validation-decorator.js.map +1 -1
- package/lib/base/command-stack.d.ts +17 -3
- package/lib/base/command-stack.d.ts.map +1 -1
- package/lib/base/command-stack.js +45 -14
- package/lib/base/command-stack.js.map +1 -1
- package/lib/base/di.config.d.ts +2 -2
- package/lib/base/di.config.d.ts.map +1 -1
- package/lib/base/di.config.js +22 -18
- 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 +12 -25
- package/lib/base/editor-context-service.d.ts.map +1 -1
- package/lib/base/editor-context-service.js +37 -22
- package/lib/base/editor-context-service.js.map +1 -1
- package/lib/{features/tool-feedback/model.d.ts → base/feedback/feeback-command.d.ts} +3 -3
- package/lib/base/feedback/feeback-command.d.ts.map +1 -0
- package/lib/{features/tool-feedback/model.js → base/feedback/feeback-command.js} +4 -4
- package/lib/base/feedback/feeback-command.js.map +1 -0
- package/lib/{features/tool-feedback → base/feedback}/feedback-action-dispatcher.d.ts +1 -17
- package/lib/base/feedback/feedback-action-dispatcher.d.ts.map +1 -0
- package/lib/{features/tool-feedback → base/feedback}/feedback-action-dispatcher.js +20 -6
- package/lib/base/feedback/feedback-action-dispatcher.js.map +1 -0
- package/lib/base/feedback/update-model-command.d.ts +19 -0
- package/lib/base/feedback/update-model-command.d.ts.map +1 -0
- package/lib/base/{model → feedback}/update-model-command.js +11 -37
- package/lib/base/feedback/update-model-command.js.map +1 -0
- 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 +19 -5
- 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 +4 -5
- package/lib/base/model/model-registry.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 +9 -12
- package/lib/base/model-initialization-constraint.js.map +1 -1
- package/lib/base/ranked.d.ts +34 -0
- package/lib/base/ranked.d.ts.map +1 -0
- package/lib/base/ranked.js +38 -0
- package/lib/base/ranked.js.map +1 -0
- 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 +4 -5
- package/lib/base/selection-clearing-mouse-listener.js.map +1 -1
- package/lib/{features/select → base}/selection-service.d.ts +34 -29
- package/lib/base/selection-service.d.ts.map +1 -0
- package/lib/{features/select → base}/selection-service.js +88 -44
- package/lib/base/selection-service.js.map +1 -0
- package/lib/base/selection-service.spec.d.ts.map +1 -0
- package/lib/{features/select → base}/selection-service.spec.js +52 -119
- package/lib/base/selection-service.spec.js.map +1 -0
- 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 +7 -8
- package/lib/base/tool-manager/glsp-tool-manager.d.ts.map +1 -1
- package/lib/base/tool-manager/glsp-tool-manager.js +27 -23
- package/lib/base/tool-manager/glsp-tool-manager.js.map +1 -1
- package/lib/{features/mouse-tool → base/view}/mouse-tool.d.ts +4 -8
- package/lib/base/view/mouse-tool.d.ts.map +1 -0
- package/lib/{features/mouse-tool → base/view}/mouse-tool.js +12 -15
- package/lib/base/view/mouse-tool.js.map +1 -0
- 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 +4 -5
- package/lib/base/view/view-registry.js.map +1 -1
- package/lib/container-modules.d.ts +70 -0
- package/lib/container-modules.d.ts.map +1 -0
- package/lib/container-modules.js +133 -0
- package/lib/container-modules.js.map +1 -0
- package/{src/features/rank/model.ts → lib/features/accessibility/di.config.d.ts} +7 -15
- package/lib/features/accessibility/di.config.d.ts.map +1 -0
- package/lib/features/{mouse-tool → accessibility}/di.config.js +16 -10
- 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 +169 -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 +155 -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 +123 -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 +124 -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 +161 -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 +72 -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 +85 -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 +129 -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 +106 -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 +1 -2
- package/lib/features/bounds/di.config.d.ts.map +1 -1
- package/lib/features/bounds/di.config.js +15 -14
- package/lib/features/bounds/di.config.js.map +1 -1
- package/lib/features/bounds/freeform-layout.d.ts +14 -0
- package/lib/features/bounds/freeform-layout.d.ts.map +1 -0
- package/lib/features/{layout → bounds}/freeform-layout.js +6 -8
- package/lib/features/bounds/freeform-layout.js.map +1 -0
- package/lib/features/bounds/freeform-layout.spec.d.ts.map +1 -0
- package/lib/features/{layout/tests → bounds}/freeform-layout.spec.js +39 -39
- package/lib/features/bounds/freeform-layout.spec.js.map +1 -0
- package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts +2 -3
- package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts.map +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.js +9 -10
- package/lib/features/bounds/glsp-hidden-bounds-updater.js.map +1 -1
- package/lib/features/{layout → bounds}/hbox-layout.d.ts +1 -17
- package/lib/features/bounds/hbox-layout.d.ts.map +1 -0
- package/lib/features/{layout → bounds}/hbox-layout.js +11 -13
- package/lib/features/bounds/hbox-layout.js.map +1 -0
- package/lib/features/bounds/hbox-layout.spec.d.ts.map +1 -0
- package/lib/features/{layout/tests → bounds}/hbox-layout.spec.js +20 -21
- package/lib/features/bounds/hbox-layout.spec.js.map +1 -0
- package/lib/features/{layout/tests/layouter-test-util.d.ts → bounds/layouter-test-util.spec.d.ts} +4 -6
- package/lib/features/bounds/layouter-test-util.spec.d.ts.map +1 -0
- package/lib/features/{layout/tests/layouter-test-util.js → bounds/layouter-test-util.spec.js} +16 -16
- package/lib/features/bounds/layouter-test-util.spec.js.map +1 -0
- package/lib/features/bounds/layouter.d.ts +21 -0
- package/lib/features/bounds/layouter.d.ts.map +1 -0
- package/lib/features/{layout → bounds}/layouter.js +10 -12
- package/lib/features/bounds/layouter.js.map +1 -0
- package/lib/features/{layout → bounds}/vbox-layout.d.ts +1 -17
- package/lib/features/bounds/vbox-layout.d.ts.map +1 -0
- package/lib/features/{layout → bounds}/vbox-layout.js +11 -13
- package/lib/features/bounds/vbox-layout.js.map +1 -0
- package/lib/features/bounds/vbox-layout.spec.d.ts.map +1 -0
- package/lib/features/{layout/tests → bounds}/vbox-layout.spec.js +20 -21
- package/lib/features/bounds/vbox-layout.spec.js.map +1 -0
- 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 +21 -7
- 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 +19 -5
- package/lib/features/change-bounds/snap.js.map +1 -1
- package/lib/features/change-bounds/snap.spec.d.ts +1 -1
- package/lib/features/change-bounds/snap.spec.js +6 -6
- package/lib/features/change-bounds/snap.spec.js.map +1 -1
- package/lib/features/command-palette/command-palette-tool.d.ts +2 -2
- package/lib/features/command-palette/command-palette-tool.d.ts.map +1 -1
- package/lib/features/command-palette/command-palette-tool.js +9 -10
- package/lib/features/command-palette/command-palette-tool.js.map +1 -1
- package/lib/features/command-palette/di.config.d.ts +1 -1
- package/lib/features/command-palette/di.config.d.ts.map +1 -1
- package/lib/features/command-palette/di.config.js +6 -9
- 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 +8 -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 +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 +6 -8
- 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 -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 +2 -18
- 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 +23 -10
- 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 +9 -12
- 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 +12 -16
- package/lib/features/copy-paste/copy-paste-context-menu.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.d.ts +2 -18
- package/lib/features/copy-paste/copy-paste-handler.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.js +16 -19
- 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 +7 -9
- package/lib/features/decoration/decoration-placer.js.map +1 -1
- package/lib/features/decoration/di.config.d.ts +1 -1
- package/lib/features/decoration/di.config.d.ts.map +1 -1
- package/lib/features/decoration/di.config.js +4 -5
- 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 +6 -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 +6 -7
- 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 +12 -15
- package/lib/features/edit-label/edit-label-validator.js.map +1 -1
- package/lib/features/{mouse-tool → export}/di.config.d.ts +3 -3
- package/lib/features/export/di.config.d.ts.map +1 -0
- package/lib/features/export/di.config.js +29 -0
- package/lib/features/export/di.config.js.map +1 -0
- 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 +20 -7
- 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 +3 -19
- package/lib/features/hints/type-hints.d.ts.map +1 -1
- package/lib/features/hints/type-hints.js +23 -27
- 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 +20 -22
- 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 +10 -14
- package/lib/features/hover/hover.js.map +1 -1
- package/lib/features/layout/di.config.d.ts +1 -1
- package/lib/features/layout/di.config.d.ts.map +1 -1
- package/lib/features/layout/di.config.js +4 -12
- package/lib/features/layout/di.config.js.map +1 -1
- package/lib/features/layout/layout-elements-action.d.ts +2 -18
- package/lib/features/layout/layout-elements-action.d.ts.map +1 -1
- package/lib/features/layout/layout-elements-action.js +28 -35
- package/lib/features/layout/layout-elements-action.js.map +1 -1
- package/lib/features/layout/layout-elements-action.spec.d.ts.map +1 -1
- package/lib/features/layout/layout-elements-action.spec.js +14 -16
- package/lib/features/layout/layout-elements-action.spec.js.map +1 -1
- package/lib/features/navigation/di.config.d.ts +17 -1
- package/lib/features/navigation/di.config.d.ts.map +1 -1
- package/lib/features/navigation/di.config.js +8 -9
- package/lib/features/navigation/di.config.js.map +1 -1
- package/lib/features/navigation/navigation-action-handler.d.ts +2 -18
- package/lib/features/navigation/navigation-action-handler.d.ts.map +1 -1
- package/lib/features/navigation/navigation-action-handler.js +25 -27
- 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 +11 -13
- package/lib/features/navigation/navigation-target-resolver.js.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.spec.js +16 -17
- package/lib/features/navigation/navigation-target-resolver.spec.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 +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/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 +1 -1
- package/lib/features/select/di.config.d.ts.map +1 -1
- package/lib/features/select/di.config.js +9 -12
- package/lib/features/select/di.config.js.map +1 -1
- package/lib/features/select/select-feedback-command.d.ts +12 -0
- package/lib/features/select/select-feedback-command.d.ts.map +1 -0
- package/lib/features/select/{select-feedback-action.js → select-feedback-command.js} +10 -24
- package/lib/features/select/select-feedback-command.js.map +1 -0
- package/lib/features/select/select-mouse-listener.d.ts +3 -4
- package/lib/features/select/select-mouse-listener.d.ts.map +1 -1
- package/lib/features/select/select-mouse-listener.js +25 -28
- package/lib/features/select/select-mouse-listener.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 +11 -14
- package/lib/features/source-model-watcher/source-model-changed-action-handler.js.map +1 -1
- package/lib/features/svg-metadata/di.config.d.ts +19 -0
- package/lib/features/svg-metadata/di.config.d.ts.map +1 -0
- package/lib/features/{rank/model.js → svg-metadata/di.config.js} +10 -12
- package/lib/features/svg-metadata/di.config.js.map +1 -0
- package/lib/features/svg-metadata/metadata-placer.d.ts +23 -0
- package/lib/features/svg-metadata/metadata-placer.d.ts.map +1 -0
- package/lib/features/svg-metadata/metadata-placer.js +60 -0
- package/lib/features/svg-metadata/metadata-placer.js.map +1 -0
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts +12 -22
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js +51 -37
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts +6 -22
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.js +33 -41
- package/lib/features/tool-feedback/creation-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/css-feedback.d.ts +2 -18
- package/lib/features/tool-feedback/css-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/css-feedback.js +9 -12
- 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 +20 -22
- package/lib/features/tool-feedback/di.config.js.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts +3 -20
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js +41 -53
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/marquee-tool-feedback.d.ts +2 -18
- package/lib/features/tool-feedback/marquee-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/marquee-tool-feedback.js +14 -17
- package/lib/features/tool-feedback/marquee-tool-feedback.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 +9 -12
- 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 +6 -8
- package/lib/features/tool-palette/di.config.js.map +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts +7 -21
- package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette.js +39 -35
- package/lib/features/tool-palette/tool-palette.js.map +1 -1
- package/lib/features/tools/base-glsp-tool.d.ts +3 -20
- package/lib/features/tools/base-glsp-tool.d.ts.map +1 -1
- package/lib/features/tools/base-glsp-tool.js +24 -11
- package/lib/features/tools/base-glsp-tool.js.map +1 -1
- package/lib/features/tools/change-bounds-tool.d.ts +7 -21
- package/lib/features/tools/change-bounds-tool.d.ts.map +1 -1
- package/lib/features/tools/change-bounds-tool.js +56 -36
- package/lib/features/tools/change-bounds-tool.js.map +1 -1
- package/lib/features/tools/delete-tool.d.ts +3 -20
- package/lib/features/tools/delete-tool.d.ts.map +1 -1
- package/lib/features/tools/delete-tool.js +22 -29
- package/lib/features/tools/delete-tool.js.map +1 -1
- package/lib/features/tools/di.config.d.ts +18 -5
- package/lib/features/tools/di.config.d.ts.map +1 -1
- package/lib/features/tools/di.config.js +18 -24
- 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 +18 -21
- package/lib/features/tools/edge-creation-tool.js.map +1 -1
- package/lib/features/tools/edge-edit-tool.d.ts +4 -19
- package/lib/features/tools/edge-edit-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-edit-tool.js +27 -26
- 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 +19 -5
- package/lib/features/tools/enable-default-tools-on-focus-loss.js.map +1 -1
- package/lib/features/tools/glsp-manhattan-edge-router.d.ts +3 -3
- package/lib/features/tools/glsp-manhattan-edge-router.d.ts.map +1 -1
- package/lib/features/tools/glsp-manhattan-edge-router.js +8 -9
- 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 +17 -26
- 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 +23 -10
- 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 +14 -17
- 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 +5 -6
- 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 +9 -11
- 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 +2 -18
- package/lib/features/validation/marker-navigator.d.ts.map +1 -1
- package/lib/features/validation/marker-navigator.js +28 -36
- 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 -10
- package/lib/features/validation/marker-navigator.spec.js.map +1 -1
- package/lib/features/validation/validate.d.ts +8 -24
- package/lib/features/validation/validate.d.ts.map +1 -1
- package/lib/features/validation/validate.js +40 -46
- 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 +12 -12
- 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 +20 -6
- 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} +33 -17
- package/lib/glsp-sprotty/index.d.ts.map +1 -0
- package/lib/{sprotty-reexport.js → glsp-sprotty/index.js} +73 -39
- package/lib/glsp-sprotty/index.js.map +1 -0
- package/lib/{base → glsp-sprotty}/types.d.ts +4 -8
- package/lib/glsp-sprotty/types.d.ts.map +1 -0
- package/lib/{base → glsp-sprotty}/types.js +3 -2
- package/lib/glsp-sprotty/types.js.map +1 -0
- package/lib/index.d.ts +46 -14
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +96 -52
- package/lib/index.js.map +1 -1
- package/lib/lib/model.d.ts +6 -3
- package/lib/lib/model.d.ts.map +1 -1
- package/lib/lib/model.js +50 -4
- 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 +11 -13
- 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 +2 -2
- package/lib/utils/argument-utils.js.map +1 -1
- package/lib/utils/html-utils.d.ts +1 -1
- package/lib/utils/html-utils.js +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 +7 -8
- package/lib/utils/marker.js.map +1 -1
- package/lib/utils/smodel-util.d.ts +7 -6
- package/lib/utils/smodel-util.d.ts.map +1 -1
- package/lib/utils/smodel-util.js +33 -17
- package/lib/utils/smodel-util.js.map +1 -1
- package/lib/utils/smodel-util.spec.d.ts +2 -0
- package/lib/utils/smodel-util.spec.d.ts.map +1 -0
- package/lib/utils/smodel-util.spec.js +184 -0
- package/lib/utils/smodel-util.spec.js.map +1 -0
- 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 +18 -6
- package/lib/views/base-view-module.d.ts.map +1 -1
- package/lib/views/base-view-module.js +22 -23
- 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 +5 -6
- package/lib/views/compartments.js.map +1 -1
- package/lib/views/glsp-edge-view.d.ts +2 -18
- package/lib/views/glsp-edge-view.d.ts.map +1 -1
- package/lib/views/glsp-edge-view.js +21 -7
- 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 +12 -11
- package/lib/views/glsp-projection-view.js.map +1 -1
- package/lib/views/index.d.ts +1 -1
- package/lib/views/index.js +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 +6 -7
- 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 +7 -8
- package/lib/views/rounded-corner-view.js.map +1 -1
- package/lib/views/rounded-corner.d.ts +2 -3
- package/lib/views/rounded-corner.d.ts.map +1 -1
- package/lib/views/rounded-corner.js +1 -1
- package/lib/views/rounded-corner.js.map +1 -1
- package/package.json +21 -18
- 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 +35 -14
- package/src/base/auto-complete/validation-decorator.ts +2 -3
- package/src/base/command-stack.ts +65 -11
- package/src/base/di.config.ts +29 -12
- package/src/base/drag-aware-mouse-listener.ts +2 -3
- package/src/base/editor-context-service.ts +45 -18
- package/src/{features/tool-feedback/model.ts → base/feedback/feeback-command.ts} +2 -2
- package/src/{features/tool-feedback → base/feedback}/feedback-action-dispatcher.ts +2 -4
- package/src/base/{model → feedback}/update-model-command.ts +9 -32
- package/src/base/focus-tracker.ts +2 -4
- package/src/base/model/model-registry.ts +2 -2
- package/src/base/model-initialization-constraint.ts +2 -3
- package/src/base/ranked.ts +42 -0
- package/src/base/selection-clearing-mouse-listener.ts +2 -2
- package/src/{features/select → base}/selection-service.spec.ts +42 -127
- package/src/{features/select → base}/selection-service.ts +98 -40
- package/src/base/source-uri-aware.ts +2 -2
- package/src/base/tool-manager/glsp-tool-manager.ts +18 -17
- package/src/{features/mouse-tool → base/view}/mouse-tool.ts +10 -18
- package/src/base/view/view-registry.ts +2 -2
- package/src/container-modules.ts +145 -0
- 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/{base/actions/sprotty-actions.ts → features/autocomplete-palette/autocomplete-suggestion-providers.ts} +21 -10
- package/src/features/autocomplete-palette/base-autocomplete-palette.ts +87 -0
- package/src/features/bounds/di.config.ts +23 -13
- package/src/features/{layout/tests → bounds}/freeform-layout.spec.ts +3 -3
- package/src/features/{layout → bounds}/freeform-layout.ts +14 -6
- package/src/features/bounds/glsp-hidden-bounds-updater.ts +16 -8
- package/src/features/{layout/tests → bounds}/hbox-layout.spec.ts +3 -4
- package/src/features/{layout → bounds}/hbox-layout.ts +9 -7
- package/src/features/{layout/tests/layouter-test-util.ts → bounds/layouter-test-util.spec.ts} +12 -11
- package/src/features/{layout → bounds}/layouter.ts +7 -7
- package/src/features/{layout/tests → bounds}/vbox-layout.spec.ts +3 -4
- package/src/features/{layout → bounds}/vbox-layout.ts +8 -6
- 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 +4 -4
- package/src/features/command-palette/di.config.ts +6 -9
- 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 +4 -5
- package/src/features/context-menu/selection-service-aware-context-menu-mouse-listener.ts +4 -6
- 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 +14 -8
- 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 +4 -5
- package/src/features/edit-label/di.config.ts +3 -4
- 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/{mouse-tool → export}/di.config.ts +10 -9
- package/src/features/export/glsp-svg-exporter.ts +9 -9
- package/src/features/hints/di.config.ts +2 -4
- package/src/features/hints/model.ts +2 -3
- package/src/features/hints/type-hints.ts +15 -11
- package/src/features/hover/di.config.ts +13 -12
- package/src/features/hover/hover.ts +14 -9
- package/src/features/layout/di.config.ts +2 -11
- package/src/features/layout/layout-elements-action.spec.ts +15 -17
- package/src/features/layout/layout-elements-action.ts +15 -13
- package/src/features/navigation/di.config.ts +5 -4
- package/src/features/navigation/navigation-action-handler.ts +13 -9
- 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 +3 -3
- package/src/features/save/model.ts +2 -2
- package/src/features/save/save-keylistener.ts +2 -4
- package/src/features/select/di.config.ts +9 -12
- package/src/features/select/{select-feedback-action.ts → select-feedback-command.ts} +3 -19
- package/src/features/select/select-mouse-listener.ts +13 -12
- 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 +26 -0
- package/src/features/svg-metadata/metadata-placer.ts +49 -0
- package/src/features/tool-feedback/change-bounds-tool-feedback.ts +56 -25
- package/src/features/tool-feedback/creation-tool-feedback.ts +32 -23
- package/src/features/tool-feedback/css-feedback.ts +3 -6
- package/src/features/tool-feedback/di.config.ts +20 -22
- package/src/features/tool-feedback/edge-edit-tool-feedback.ts +16 -21
- package/src/features/tool-feedback/marquee-tool-feedback.ts +7 -5
- package/src/features/tool-feedback/view.tsx +2 -3
- package/src/features/tool-palette/di.config.ts +4 -6
- package/src/features/tool-palette/tool-palette.ts +30 -20
- package/src/features/tools/base-glsp-tool.ts +4 -7
- package/src/features/tools/change-bounds-tool.ts +57 -32
- package/src/features/tools/delete-tool.ts +13 -12
- package/src/features/tools/di.config.ts +29 -26
- package/src/features/tools/edge-creation-tool.ts +9 -7
- package/src/features/tools/edge-edit-tool.ts +22 -16
- package/src/features/tools/enable-default-tools-on-focus-loss.ts +2 -3
- package/src/features/tools/glsp-manhattan-edge-router.ts +9 -7
- package/src/features/tools/marquee-behavior.ts +2 -3
- package/src/features/tools/marquee-mouse-tool.ts +10 -13
- 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 +5 -7
- 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 +19 -14
- package/src/features/validation/validate.ts +34 -25
- package/src/features/viewport/di.config.ts +14 -12
- 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} +97 -47
- package/src/{base → glsp-sprotty}/types.ts +4 -5
- package/src/index.ts +74 -29
- package/src/lib/model.ts +45 -3
- package/src/model-source/glsp-diagram-server.ts +10 -5
- package/src/utils/argument-utils.ts +2 -2
- package/src/utils/html-utils.ts +1 -1
- package/src/utils/layout-utils.ts +2 -3
- package/src/utils/marker.ts +2 -3
- package/src/utils/smodel-util.spec.ts +222 -0
- package/src/utils/smodel-util.ts +40 -15
- package/src/utils/viewpoint-util.ts +13 -3
- package/src/views/base-view-module.ts +11 -15
- package/src/views/compartments.tsx +2 -2
- package/src/views/glsp-edge-view.tsx +4 -5
- package/src/views/glsp-projection-view.tsx +6 -5
- package/src/views/index.ts +1 -2
- package/src/views/issue-marker-view.tsx +2 -2
- package/src/views/rounded-corner-view.tsx +3 -3
- package/src/views/rounded-corner.ts +3 -4
- 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/container-modules.d.ts +0 -40
- package/lib/base/container-modules.d.ts.map +0 -1
- package/lib/base/container-modules.js +0 -102
- package/lib/base/container-modules.js.map +0 -1
- package/lib/base/model/update-model-command.d.ts +0 -47
- package/lib/base/model/update-model-command.d.ts.map +0 -1
- package/lib/base/model/update-model-command.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/features/layout/freeform-layout.d.ts +0 -32
- package/lib/features/layout/freeform-layout.d.ts.map +0 -1
- package/lib/features/layout/freeform-layout.js.map +0 -1
- package/lib/features/layout/hbox-layout.d.ts.map +0 -1
- package/lib/features/layout/hbox-layout.js.map +0 -1
- package/lib/features/layout/layouter.d.ts +0 -37
- package/lib/features/layout/layouter.d.ts.map +0 -1
- package/lib/features/layout/layouter.js.map +0 -1
- package/lib/features/layout/tests/freeform-layout.spec.d.ts.map +0 -1
- package/lib/features/layout/tests/freeform-layout.spec.js.map +0 -1
- package/lib/features/layout/tests/hbox-layout.spec.d.ts.map +0 -1
- package/lib/features/layout/tests/hbox-layout.spec.js.map +0 -1
- package/lib/features/layout/tests/layouter-test-util.d.ts.map +0 -1
- package/lib/features/layout/tests/layouter-test-util.js.map +0 -1
- package/lib/features/layout/tests/vbox-layout.spec.d.ts.map +0 -1
- package/lib/features/layout/tests/vbox-layout.spec.js.map +0 -1
- package/lib/features/layout/vbox-layout.d.ts.map +0 -1
- package/lib/features/layout/vbox-layout.js.map +0 -1
- package/lib/features/mouse-tool/di.config.d.ts.map +0 -1
- package/lib/features/mouse-tool/di.config.js.map +0 -1
- package/lib/features/mouse-tool/mouse-tool.d.ts.map +0 -1
- package/lib/features/mouse-tool/mouse-tool.js.map +0 -1
- package/lib/features/rank/model.d.ts.map +0 -1
- package/lib/features/rank/model.js.map +0 -1
- package/lib/features/select/select-feedback-action.d.ts +0 -38
- package/lib/features/select/select-feedback-action.d.ts.map +0 -1
- package/lib/features/select/select-feedback-action.js.map +0 -1
- package/lib/features/select/selection-service.d.ts.map +0 -1
- package/lib/features/select/selection-service.js.map +0 -1
- package/lib/features/select/selection-service.spec.d.ts.map +0 -1
- package/lib/features/select/selection-service.spec.js.map +0 -1
- package/lib/features/tool-feedback/feedback-action-dispatcher.d.ts.map +0 -1
- package/lib/features/tool-feedback/feedback-action-dispatcher.js.map +0 -1
- package/lib/features/tool-feedback/model.d.ts.map +0 -1
- package/lib/features/tool-feedback/model.js.map +0 -1
- package/lib/sprotty-reexport.d.ts.map +0 -1
- package/lib/sprotty-reexport.js.map +0 -1
- package/src/base/container-modules.ts +0 -113
- /package/lib/{features/select → base}/selection-service.spec.d.ts +0 -0
- /package/lib/features/{layout/tests → bounds}/freeform-layout.spec.d.ts +0 -0
- /package/lib/features/{layout/tests → bounds}/hbox-layout.spec.d.ts +0 -0
- /package/lib/features/{layout/tests → bounds}/vbox-layout.spec.d.ts +0 -0
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2020-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
|
+
********************************************************************************/
|
|
16
|
+
import { ValidationStatus } from '../../glsp-sprotty/index';
|
|
2
17
|
export interface IValidationDecorator {
|
|
3
18
|
decorateValidationResult(status: ValidationStatus): void;
|
|
4
19
|
isValidatedOk(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-decorator.d.ts","sourceRoot":"","sources":["../../../src/base/auto-complete/validation-decorator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validation-decorator.d.ts","sourceRoot":"","sources":["../../../src/base/auto-complete/validation-decorator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,gBAAgB,EAAoB,MAAM,eAAe,CAAC;AAEnE,MAAM,WAAW,oBAAoB;IACjC,wBAAwB,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACzD,aAAa,IAAI,OAAO,CAAC;IACzB,UAAU,IAAI,IAAI,CAAC;IACnB,OAAO,IAAI,IAAI,CAAC;CACnB;AAED,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,aAAa,EAAE,oBAU3B,CAAC;CACL;AAED,qBAAa,mBAAoB,YAAW,oBAAoB;IAWhD,SAAS,CAAC,gBAAgB,EAAE,WAAW;IAVnD,cAAc,WAAe;IAC7B,kBAAkB,SAA+B;IACjD,YAAY,WAAa;IACzB,gBAAgB,SAA6B;IAE7C,WAAW,UAAS;IACpB,kBAAkB,UAAS;IAE3B,SAAS,CAAC,aAAa,CAAC,EAAE,cAAc,CAAC;gBAEnB,gBAAgB,EAAE,WAAW;IAEnD,wBAAwB,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI;IAcxD,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAQ9C,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAQhD,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI;IAK5E,SAAS,CAAC,mBAAmB,IAAI,cAAc;IAW/C,SAAS,CAAC,wBAAwB,IAAI,MAAM;IAI5C,SAAS,CAAC,cAAc,IAAI,IAAI;IAOhC,aAAa,IAAI,OAAO;IAIxB,UAAU,IAAI,IAAI;IAIlB,OAAO,IAAI,IAAI;CASlB"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ValidationDecorator = exports.IValidationDecorator = void 0;
|
|
4
4
|
/********************************************************************************
|
|
5
|
-
* Copyright (c) 2020-
|
|
5
|
+
* Copyright (c) 2020-2023 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,8 +16,7 @@ exports.ValidationDecorator = exports.IValidationDecorator = void 0;
|
|
|
16
16
|
*
|
|
17
17
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
18
|
********************************************************************************/
|
|
19
|
-
const
|
|
20
|
-
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
19
|
+
const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
|
|
21
20
|
var IValidationDecorator;
|
|
22
21
|
(function (IValidationDecorator) {
|
|
23
22
|
IValidationDecorator.NO_DECORATION = {
|
|
@@ -31,23 +30,23 @@ var IValidationDecorator;
|
|
|
31
30
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
32
31
|
dispose() { }
|
|
33
32
|
};
|
|
34
|
-
})(IValidationDecorator
|
|
33
|
+
})(IValidationDecorator || (exports.IValidationDecorator = IValidationDecorator = {}));
|
|
35
34
|
class ValidationDecorator {
|
|
36
35
|
constructor(containerElement) {
|
|
37
36
|
this.containerElement = containerElement;
|
|
38
37
|
this.warningClasses = ['warning'];
|
|
39
|
-
this.warningIconClasses = (0,
|
|
38
|
+
this.warningIconClasses = (0, _glsp_sprotty_1.codiconCSSString)('warning');
|
|
40
39
|
this.errorClasses = ['error'];
|
|
41
|
-
this.errorIconClasses = (0,
|
|
40
|
+
this.errorIconClasses = (0, _glsp_sprotty_1.codiconCSSString)('error');
|
|
42
41
|
this.isValidated = false;
|
|
43
42
|
this.hasValidationError = false;
|
|
44
43
|
}
|
|
45
44
|
decorateValidationResult(status) {
|
|
46
|
-
if (
|
|
45
|
+
if (_glsp_sprotty_1.ValidationStatus.isError(status)) {
|
|
47
46
|
this.hasValidationError = true;
|
|
48
47
|
this.decorateError(status.message ? status.message : 'Error');
|
|
49
48
|
}
|
|
50
|
-
else if (
|
|
49
|
+
else if (_glsp_sprotty_1.ValidationStatus.isWarning(status)) {
|
|
51
50
|
this.hasValidationError = false;
|
|
52
51
|
this.decorateWarning(status.message ? status.message : 'Warning');
|
|
53
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-decorator.js","sourceRoot":"","sources":["../../../src/base/auto-complete/validation-decorator.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"validation-decorator.js","sourceRoot":"","sources":["../../../src/base/auto-complete/validation-decorator.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
import { CommandStack,
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { CommandStack, Disposable, DisposableCollection, Emitter, Event, ICommand, SModelRoot } from '../glsp-sprotty/index';
|
|
2
|
+
/**
|
|
3
|
+
* A hook to listen for model root changes. Will be called after a server update
|
|
4
|
+
* has been processed
|
|
5
|
+
*/
|
|
6
|
+
export interface ISModelRootListener {
|
|
7
|
+
modelRootChanged(root: Readonly<SModelRoot>): void;
|
|
8
|
+
}
|
|
9
|
+
export declare class GLSPCommandStack extends CommandStack implements Disposable {
|
|
10
|
+
protected modelRootListeners: ISModelRootListener[];
|
|
11
|
+
protected toDispose: DisposableCollection;
|
|
12
|
+
protected initialize(): void;
|
|
13
|
+
dispose(): void;
|
|
14
|
+
protected onModelRootChangedEmitter: Emitter<Readonly<SModelRoot>>;
|
|
15
|
+
get onModelRootChanged(): Event<Readonly<SModelRoot>>;
|
|
4
16
|
undo(): Promise<SModelRoot>;
|
|
5
17
|
redo(): Promise<SModelRoot>;
|
|
18
|
+
execute(command: ICommand): Promise<SModelRoot>;
|
|
19
|
+
protected notifyListeners(root: Readonly<SModelRoot>): void;
|
|
6
20
|
}
|
|
7
21
|
//# sourceMappingURL=command-stack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-stack.d.ts","sourceRoot":"","sources":["../../src/base/command-stack.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command-stack.d.ts","sourceRoot":"","sources":["../../src/base/command-stack.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,YAAY,EACZ,UAAU,EACV,oBAAoB,EACpB,OAAO,EACP,KAAK,EACL,QAAQ,EACR,UAAU,EAIb,MAAM,eAAe,CAAC;AAEvB;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAChC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;CACtD;AAED,qBACa,gBAAiB,SAAQ,YAAa,YAAW,UAAU;IAGpE,SAAS,CAAC,kBAAkB,EAAE,mBAAmB,EAAE,CAAM;IACzD,SAAS,CAAC,SAAS,uBAA8B;cAE9B,UAAU,IAAI,IAAI;IAOrC,OAAO,IAAI,IAAI;IAIf,SAAS,CAAC,yBAAyB,gCAAuC;IAC1E,IAAI,kBAAkB,IAAI,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAEpD;IAEQ,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC;IAQ3B,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC;IAQ3B,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAQxD,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,IAAI;CAG9D"}
|
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.GLSPCommandStack = void 0;
|
|
13
13
|
/********************************************************************************
|
|
14
|
-
* Copyright (c) 2019-
|
|
14
|
+
* Copyright (c) 2019-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,26 +25,57 @@ exports.GLSPCommandStack = void 0;
|
|
|
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
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
const _glsp_sprotty_1 = require("../glsp-sprotty/index");
|
|
30
|
+
let GLSPCommandStack = exports.GLSPCommandStack = class GLSPCommandStack extends _glsp_sprotty_1.CommandStack {
|
|
31
|
+
constructor() {
|
|
32
|
+
super(...arguments);
|
|
33
|
+
this.modelRootListeners = [];
|
|
34
|
+
this.toDispose = new _glsp_sprotty_1.DisposableCollection();
|
|
35
|
+
this.onModelRootChangedEmitter = new _glsp_sprotty_1.Emitter();
|
|
36
|
+
}
|
|
37
|
+
initialize() {
|
|
38
|
+
super.initialize();
|
|
39
|
+
this.toDispose.push(this.onModelRootChangedEmitter);
|
|
40
|
+
this.modelRootListeners.forEach(listener => this.onModelRootChanged(root => listener.modelRootChanged(root)));
|
|
41
|
+
}
|
|
42
|
+
dispose() {
|
|
43
|
+
this.toDispose.dispose();
|
|
44
|
+
}
|
|
45
|
+
get onModelRootChanged() {
|
|
46
|
+
return this.onModelRootChangedEmitter.event;
|
|
47
|
+
}
|
|
33
48
|
undo() {
|
|
34
|
-
this.
|
|
35
|
-
return this.
|
|
49
|
+
this.logger.warn(this, 'GLSPCommandStack.undo() was called. This should never happen as the GLSP server is responsible for handling undo requests');
|
|
50
|
+
return this.currentModel;
|
|
36
51
|
}
|
|
37
52
|
redo() {
|
|
38
|
-
this.
|
|
39
|
-
return this.
|
|
53
|
+
this.logger.warn(this, 'GLSPCommandStack.redo() was called. This should never happen as the GLSP server is responsible for handling redo requests');
|
|
54
|
+
return this.currentModel;
|
|
55
|
+
}
|
|
56
|
+
execute(command) {
|
|
57
|
+
const result = super.execute(command);
|
|
58
|
+
if (command instanceof _glsp_sprotty_1.SetModelCommand || command instanceof _glsp_sprotty_1.UpdateModelCommand) {
|
|
59
|
+
result.then(root => this.notifyListeners(root));
|
|
60
|
+
}
|
|
61
|
+
return result;
|
|
62
|
+
}
|
|
63
|
+
notifyListeners(root) {
|
|
64
|
+
this.onModelRootChangedEmitter.fire(root);
|
|
40
65
|
}
|
|
41
66
|
};
|
|
42
67
|
__decorate([
|
|
43
|
-
(0, inversify_1.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
GLSPCommandStack
|
|
68
|
+
(0, inversify_1.multiInject)(_glsp_sprotty_1.TYPES.ISModelRootListener),
|
|
69
|
+
(0, inversify_1.optional)(),
|
|
70
|
+
__metadata("design:type", Array)
|
|
71
|
+
], GLSPCommandStack.prototype, "modelRootListeners", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, inversify_1.preDestroy)(),
|
|
74
|
+
__metadata("design:type", Function),
|
|
75
|
+
__metadata("design:paramtypes", []),
|
|
76
|
+
__metadata("design:returntype", void 0)
|
|
77
|
+
], GLSPCommandStack.prototype, "dispose", null);
|
|
78
|
+
exports.GLSPCommandStack = GLSPCommandStack = __decorate([
|
|
47
79
|
(0, inversify_1.injectable)()
|
|
48
80
|
], GLSPCommandStack);
|
|
49
|
-
exports.GLSPCommandStack = GLSPCommandStack;
|
|
50
81
|
//# sourceMappingURL=command-stack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-stack.js","sourceRoot":"","sources":["../../src/base/command-stack.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"command-stack.js","sourceRoot":"","sources":["../../src/base/command-stack.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA0E;AAC1E,iDAWuB;AAWhB,IAAM,gBAAgB,8BAAtB,MAAM,gBAAiB,SAAQ,4BAAY;IAA3C;;QAGO,uBAAkB,GAA0B,EAAE,CAAC;QAC/C,cAAS,GAAG,IAAI,oCAAoB,EAAE,CAAC;QAavC,8BAAyB,GAAG,IAAI,uBAAO,EAAwB,CAAC;IAgC9E,CAAC;IA3CsB,UAAU;QACzB,KAAK,CAAC,UAAU,EAAE,CAAC;QACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;QACpD,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClH,CAAC;IAGD,OAAO;QACH,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;IAGD,IAAI,kBAAkB;QAClB,OAAO,IAAI,CAAC,yBAAyB,CAAC,KAAK,CAAC;IAChD,CAAC;IAEQ,IAAI;QACT,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,IAAI,EACJ,2HAA2H,CAC9H,CAAC;QACF,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEQ,IAAI;QACT,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,IAAI,EACJ,2HAA2H,CAC9H,CAAC;QACF,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEQ,OAAO,CAAC,OAAiB;QAC9B,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACtC,IAAI,OAAO,YAAY,+BAAe,IAAI,OAAO,YAAY,kCAAkB,EAAE;YAC7E,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;SACnD;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IAES,eAAe,CAAC,IAA0B;QAChD,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;CACJ,CAAA;AA9Ca;IAFT,IAAA,uBAAW,EAAC,qBAAK,CAAC,mBAAmB,CAAC;IACtC,IAAA,oBAAQ,GAAE;;4DAC8C;AAUzD;IADC,IAAA,sBAAU,GAAE;;;;+CAGZ;2BAfQ,gBAAgB;IAD5B,IAAA,sBAAU,GAAE;GACA,gBAAgB,CAiD5B"}
|
package/lib/base/di.config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2023 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,9 +13,9 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { InitializeResult } from '@eclipse-glsp/protocol';
|
|
17
16
|
import '@vscode/codicons/dist/codicon.css';
|
|
18
17
|
import { Container, ContainerModule } from 'inversify';
|
|
18
|
+
import { InitializeResult } from '../glsp-sprotty/index';
|
|
19
19
|
import '../../css/glsp-sprotty.css';
|
|
20
20
|
declare const defaultGLSPModule: ContainerModule;
|
|
21
21
|
export default defaultGLSPModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../src/base/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,
|
|
1
|
+
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../src/base/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,mCAAmC,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAEH,gBAAgB,EASnB,MAAM,eAAe,CAAC;AACvB,OAAO,4BAA4B,CAAC;AAgBpC,QAAA,MAAM,iBAAiB,iBAyCrB,CAAC;AAEH,eAAe,iBAAiB,CAAC;AAEjC;;;;;;GAMG;AACH,wBAAsB,sBAAsB,CAAC,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAQ/H"}
|
package/lib/base/di.config.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.configureServerActions = void 0;
|
|
4
4
|
/********************************************************************************
|
|
5
|
-
* Copyright (c) 2019-
|
|
5
|
+
* Copyright (c) 2019-2023 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,27 +16,28 @@ exports.configureServerActions = void 0;
|
|
|
16
16
|
*
|
|
17
17
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
18
|
********************************************************************************/
|
|
19
|
-
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
20
19
|
require("@vscode/codicons/dist/codicon.css");
|
|
21
20
|
const inversify_1 = require("inversify");
|
|
22
|
-
const
|
|
21
|
+
const _glsp_sprotty_1 = require("../glsp-sprotty/index");
|
|
23
22
|
require("../../css/glsp-sprotty.css");
|
|
24
23
|
const action_dispatcher_1 = require("./action-dispatcher");
|
|
25
24
|
const focus_change_action_1 = require("./actions/focus-change-action");
|
|
26
25
|
const command_stack_1 = require("./command-stack");
|
|
27
26
|
const editor_context_service_1 = require("./editor-context-service");
|
|
27
|
+
const feedback_action_dispatcher_1 = require("./feedback/feedback-action-dispatcher");
|
|
28
|
+
const update_model_command_1 = require("./feedback/update-model-command");
|
|
28
29
|
const focus_tracker_1 = require("./focus-tracker");
|
|
29
30
|
const model_initialization_constraint_1 = require("./model-initialization-constraint");
|
|
30
31
|
const model_registry_1 = require("./model/model-registry");
|
|
31
|
-
const update_model_command_1 = require("./model/update-model-command");
|
|
32
32
|
const selection_clearing_mouse_listener_1 = require("./selection-clearing-mouse-listener");
|
|
33
|
+
const selection_service_1 = require("./selection-service");
|
|
33
34
|
const glsp_tool_manager_1 = require("./tool-manager/glsp-tool-manager");
|
|
34
|
-
const
|
|
35
|
+
const mouse_tool_1 = require("./view/mouse-tool");
|
|
35
36
|
const view_registry_1 = require("./view/view-registry");
|
|
36
37
|
const defaultGLSPModule = new inversify_1.ContainerModule((bind, _unbind, isBound, rebind) => {
|
|
37
38
|
const context = { bind, _unbind, isBound, rebind };
|
|
38
39
|
bind(editor_context_service_1.EditorContextService).toSelf().inSingletonScope();
|
|
39
|
-
bind(
|
|
40
|
+
bind(_glsp_sprotty_1.TYPES.IEditorContextServiceProvider).toProvider(ctx => () => new Promise((resolve, reject) => {
|
|
40
41
|
if (ctx.container.isBound(editor_context_service_1.EditorContextService)) {
|
|
41
42
|
resolve(ctx.container.get(editor_context_service_1.EditorContextService));
|
|
42
43
|
}
|
|
@@ -44,22 +45,25 @@ const defaultGLSPModule = new inversify_1.ContainerModule((bind, _unbind, isBoun
|
|
|
44
45
|
reject();
|
|
45
46
|
}
|
|
46
47
|
}));
|
|
47
|
-
(0,
|
|
48
|
+
(0, _glsp_sprotty_1.configureActionHandler)(context, _glsp_sprotty_1.SetEditModeAction.KIND, editor_context_service_1.EditorContextService);
|
|
48
49
|
bind(focus_tracker_1.FocusTracker).toSelf().inSingletonScope();
|
|
49
|
-
(0,
|
|
50
|
+
(0, _glsp_sprotty_1.configureActionHandler)(context, focus_change_action_1.FocusStateChangedAction.KIND, focus_tracker_1.FocusTracker);
|
|
50
51
|
// Model update initialization ------------------------------------
|
|
51
|
-
(
|
|
52
|
-
(0,
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
bind(_glsp_sprotty_1.TYPES.IFeedbackActionDispatcher).to(feedback_action_dispatcher_1.FeedbackActionDispatcher).inSingletonScope();
|
|
53
|
+
(0, _glsp_sprotty_1.configureCommand)(context, update_model_command_1.FeedbackAwareUpdateModelCommand);
|
|
54
|
+
rebind(_glsp_sprotty_1.MouseTool).to(mouse_tool_1.RankingMouseTool).inSingletonScope();
|
|
55
|
+
(0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.MouseListener, selection_clearing_mouse_listener_1.SelectionClearingMouseListener);
|
|
56
|
+
(0, _glsp_sprotty_1.bindOrRebind)(context, _glsp_sprotty_1.TYPES.ICommandStack).to(command_stack_1.GLSPCommandStack).inSingletonScope();
|
|
55
57
|
bind(glsp_tool_manager_1.GLSPToolManager).toSelf().inSingletonScope();
|
|
56
|
-
|
|
58
|
+
(0, _glsp_sprotty_1.bindOrRebind)(context, _glsp_sprotty_1.TYPES.IToolManager).toService(glsp_tool_manager_1.GLSPToolManager);
|
|
57
59
|
bind(action_dispatcher_1.GLSPActionDispatcher).toSelf().inSingletonScope();
|
|
58
|
-
|
|
60
|
+
(0, _glsp_sprotty_1.bindOrRebind)(context, _glsp_sprotty_1.TYPES.IActionDispatcher).toService(action_dispatcher_1.GLSPActionDispatcher);
|
|
59
61
|
bind(model_initialization_constraint_1.ModelInitializationConstraint).to(model_initialization_constraint_1.DefaultModelInitializationConstraint).inSingletonScope();
|
|
60
62
|
// support re-registration of model elements and views
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
(0, _glsp_sprotty_1.bindOrRebind)(context, _glsp_sprotty_1.TYPES.SModelRegistry).to(model_registry_1.GLSPModelRegistry).inSingletonScope();
|
|
64
|
+
(0, _glsp_sprotty_1.bindOrRebind)(context, _glsp_sprotty_1.TYPES.ViewRegistry).to(view_registry_1.GLSPViewRegistry).inSingletonScope();
|
|
65
|
+
bind(selection_service_1.SelectionService).toSelf().inSingletonScope();
|
|
66
|
+
bind(_glsp_sprotty_1.TYPES.ISModelRootListener).toService(selection_service_1.SelectionService);
|
|
63
67
|
});
|
|
64
68
|
exports.default = defaultGLSPModule;
|
|
65
69
|
/**
|
|
@@ -70,8 +74,8 @@ exports.default = defaultGLSPModule;
|
|
|
70
74
|
* @param container The di container.
|
|
71
75
|
*/
|
|
72
76
|
async function configureServerActions(result, diagramType, container) {
|
|
73
|
-
const modelSource = container.get(
|
|
74
|
-
const actionHandlerRegistry = container.get(
|
|
77
|
+
const modelSource = container.get(_glsp_sprotty_1.TYPES.ModelSource);
|
|
78
|
+
const actionHandlerRegistry = container.get(_glsp_sprotty_1.ActionHandlerRegistry);
|
|
75
79
|
const serverActions = result.serverActions[diagramType];
|
|
76
80
|
if (serverActions.length === 0) {
|
|
77
81
|
throw new Error(`No server-handled actions could be derived from the initialize result for diagramType: ${diagramType}!`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../src/base/di.config.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../src/base/di.config.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2023 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 '
|
|
17
|
-
import { MouseListener, SModelElement } from 'sprotty';
|
|
16
|
+
import { Action, MouseListener, SModelElement } from '../glsp-sprotty/index';
|
|
18
17
|
/**
|
|
19
18
|
* A mouse listener that is aware of prior mouse dragging.
|
|
20
19
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drag-aware-mouse-listener.d.ts","sourceRoot":"","sources":["../../src/base/drag-aware-mouse-listener.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"drag-aware-mouse-listener.d.ts","sourceRoot":"","sources":["../../src/base/drag-aware-mouse-listener.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAErE;;;;;;;GAOG;AACH,qBAAa,sBAAuB,SAAQ,aAAa;IACrD,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,YAAY,CAAS;IAEpB,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE;IAK7D,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE;IAO7D,OAAO,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE;IAUrE,kBAAkB,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE;IAIvE,eAAe,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE;IAIpE,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,IAAI,WAAW,IAAI,OAAO,CAEzB;CACJ"}
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DragAwareMouseListener = void 0;
|
|
4
|
-
|
|
4
|
+
/********************************************************************************
|
|
5
|
+
* Copyright (c) 2019-2023 EclipseSource 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 _glsp_sprotty_1 = require("../glsp-sprotty/index");
|
|
5
20
|
/**
|
|
6
21
|
* A mouse listener that is aware of prior mouse dragging.
|
|
7
22
|
*
|
|
@@ -10,7 +25,7 @@ const sprotty_1 = require("sprotty");
|
|
|
10
25
|
* `draggingMouseUp` and/or `nonDraggingMouseUp` to react to only these specific kinds
|
|
11
26
|
* of mouse up events.
|
|
12
27
|
*/
|
|
13
|
-
class DragAwareMouseListener extends
|
|
28
|
+
class DragAwareMouseListener extends _glsp_sprotty_1.MouseListener {
|
|
14
29
|
constructor() {
|
|
15
30
|
super(...arguments);
|
|
16
31
|
this._isMouseDown = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drag-aware-mouse-listener.js","sourceRoot":"","sources":["../../src/base/drag-aware-mouse-listener.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"drag-aware-mouse-listener.js","sourceRoot":"","sources":["../../src/base/drag-aware-mouse-listener.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAAqE;AAErE;;;;;;;GAOG;AACH,MAAa,sBAAuB,SAAQ,6BAAa;IAAzD;;QACY,iBAAY,GAAG,KAAK,CAAC;QACrB,iBAAY,GAAG,KAAK,CAAC;IAuCjC,CAAC;IArCY,SAAS,CAAC,MAAqB,EAAE,KAAiB;QACvD,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QACzB,OAAO,EAAE,CAAC;IACd,CAAC;IAEQ,SAAS,CAAC,MAAqB,EAAE,KAAiB;QACvD,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;SAC5B;QACD,OAAO,EAAE,CAAC;IACd,CAAC;IAEQ,OAAO,CAAC,OAAsB,EAAE,KAAiB;QACtD,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC1B,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;YAC1B,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;SAC/C;QAED,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACnD,CAAC;IAED,kBAAkB,CAAC,OAAsB,EAAE,KAAiB;QACxD,OAAO,EAAE,CAAC;IACd,CAAC;IAED,eAAe,CAAC,OAAsB,EAAE,KAAiB;QACrD,OAAO,EAAE,CAAC;IACd,CAAC;IAED,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAED,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;CACJ;AAzCD,wDAyCC"}
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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, Args, EditorContext } from '@eclipse-glsp/protocol';
|
|
17
|
-
import { IActionHandler, ModelSource, MousePositionTracker, SModelElement, SModelRoot } from 'sprotty';
|
|
18
|
-
import { SelectionService } from '../features/select/selection-service';
|
|
19
|
-
export interface EditModeListener {
|
|
20
|
-
editModeChanged(newValue: string, oldvalue: string): void;
|
|
1
|
+
import { Action, Args, Disposable, DisposableCollection, EditorContext, Emitter, Event, IActionHandler, ModelSource, MousePositionTracker, SModelElement, SModelRoot, ValueChange } from '../glsp-sprotty/index';
|
|
2
|
+
import { SelectionService } from './selection-service';
|
|
3
|
+
export interface IEditModeListener {
|
|
4
|
+
editModeChanged(newValue: string, oldValue: string): void;
|
|
21
5
|
}
|
|
22
6
|
/**
|
|
23
7
|
* The `EditorContextService` is a central injectable component that gives read-only access to
|
|
@@ -31,18 +15,21 @@ export interface EditModeListener {
|
|
|
31
15
|
* actions to the server to describe the current state of the editor (selection, last mouse
|
|
32
16
|
* position, etc.).
|
|
33
17
|
*/
|
|
34
|
-
export declare class EditorContextService implements IActionHandler {
|
|
18
|
+
export declare class EditorContextService implements IActionHandler, Disposable {
|
|
35
19
|
protected selectionService: SelectionService;
|
|
36
20
|
protected mousePositionTracker: MousePositionTracker;
|
|
37
|
-
protected editModeListeners:
|
|
21
|
+
protected editModeListeners: IEditModeListener[];
|
|
38
22
|
protected modelSourceProvider: () => Promise<ModelSource>;
|
|
39
23
|
protected _editMode: string;
|
|
40
|
-
|
|
41
|
-
|
|
24
|
+
protected onEditModeChangedEmitter: Emitter<ValueChange<string>>;
|
|
25
|
+
get onEditModeChanged(): Event<ValueChange<string>>;
|
|
26
|
+
protected toDispose: DisposableCollection;
|
|
27
|
+
protected initialize(): void;
|
|
28
|
+
dispose(): void;
|
|
42
29
|
get(args?: Args): EditorContext;
|
|
43
30
|
getWithSelection(selectedElementIds: string[], args?: Args): EditorContext;
|
|
44
31
|
handle(action: Action): void;
|
|
45
|
-
protected
|
|
32
|
+
protected notifyEditModeListeners(oldValue: string): void;
|
|
46
33
|
getSourceUri(): Promise<string | undefined>;
|
|
47
34
|
get editMode(): string;
|
|
48
35
|
get modelRoot(): Readonly<SModelRoot>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-context-service.d.ts","sourceRoot":"","sources":["../../src/base/editor-context-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"editor-context-service.d.ts","sourceRoot":"","sources":["../../src/base/editor-context-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,MAAM,EACN,IAAI,EACJ,UAAU,EACV,oBAAoB,EAEpB,aAAa,EACb,OAAO,EACP,KAAK,EACL,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,aAAa,EACb,UAAU,EAGV,WAAW,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,MAAM,WAAW,iBAAiB;IAC9B,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7D;AAED;;;;;;;;;;;GAWG;AACH,qBACa,oBAAqB,YAAW,cAAc,EAAE,UAAU;IAEnE,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAG7C,SAAS,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAIrD,SAAS,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,CAAM;IAGtD,SAAS,CAAC,mBAAmB,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;IAE1D,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAE5B,SAAS,CAAC,wBAAwB,+BAAsC;IACxE,IAAI,iBAAiB,IAAI,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAElD;IAED,SAAS,CAAC,SAAS,uBAA8B;IAGjD,SAAS,CAAC,UAAU,IAAI,IAAI;IAQ5B,OAAO,IAAI,IAAI;IAIf,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,aAAa;IAQ/B,gBAAgB,CAAC,kBAAkB,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,aAAa;IAQ1E,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAQ5B,SAAS,CAAC,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAInD,YAAY,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAQjD,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,SAAS,IAAI,QAAQ,CAAC,UAAU,CAAC,CAEpC;IAED,IAAI,gBAAgB,IAAI,QAAQ,CAAC,aAAa,CAAC,EAAE,CAEhD;IAED,IAAI,UAAU,IAAI,OAAO,CAExB;CACJ;AAED,MAAM,MAAM,4BAA4B,GAAG,MAAM,OAAO,CAAC,oBAAoB,CAAC,CAAC"}
|
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.EditorContextService = 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,12 +25,10 @@ exports.EditorContextService = void 0;
|
|
|
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
|
|
31
|
-
const selection_service_1 = require("
|
|
29
|
+
const _glsp_sprotty_1 = require("../glsp-sprotty/index");
|
|
30
|
+
const selection_service_1 = require("./selection-service");
|
|
32
31
|
const source_uri_aware_1 = require("./source-uri-aware");
|
|
33
|
-
const types_1 = require("./types");
|
|
34
32
|
/**
|
|
35
33
|
* The `EditorContextService` is a central injectable component that gives read-only access to
|
|
36
34
|
* certain aspects of the diagram, such as the currently selected elements, the model root,
|
|
@@ -43,15 +41,21 @@ const types_1 = require("./types");
|
|
|
43
41
|
* actions to the server to describe the current state of the editor (selection, last mouse
|
|
44
42
|
* position, etc.).
|
|
45
43
|
*/
|
|
46
|
-
let EditorContextService = class EditorContextService {
|
|
44
|
+
let EditorContextService = exports.EditorContextService = class EditorContextService {
|
|
47
45
|
constructor() {
|
|
48
46
|
this.editModeListeners = [];
|
|
47
|
+
this.onEditModeChangedEmitter = new _glsp_sprotty_1.Emitter();
|
|
48
|
+
this.toDispose = new _glsp_sprotty_1.DisposableCollection();
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
get onEditModeChanged() {
|
|
51
|
+
return this.onEditModeChangedEmitter.event;
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
initialize() {
|
|
54
|
+
this.toDispose.push(this.onEditModeChangedEmitter);
|
|
55
|
+
this.editModeListeners.forEach(listener => this.onEditModeChanged(change => listener.editModeChanged(change.newValue, change.oldValue)));
|
|
56
|
+
}
|
|
57
|
+
dispose() {
|
|
58
|
+
this.toDispose.dispose();
|
|
55
59
|
}
|
|
56
60
|
get(args) {
|
|
57
61
|
return {
|
|
@@ -68,14 +72,14 @@ let EditorContextService = class EditorContextService {
|
|
|
68
72
|
};
|
|
69
73
|
}
|
|
70
74
|
handle(action) {
|
|
71
|
-
if (
|
|
75
|
+
if (_glsp_sprotty_1.SetEditModeAction.is(action)) {
|
|
72
76
|
const oldValue = this._editMode;
|
|
73
77
|
this._editMode = action.editMode;
|
|
74
|
-
this.
|
|
78
|
+
this.notifyEditModeListeners(oldValue);
|
|
75
79
|
}
|
|
76
80
|
}
|
|
77
|
-
|
|
78
|
-
this.
|
|
81
|
+
notifyEditModeListeners(oldValue) {
|
|
82
|
+
this.onEditModeChangedEmitter.fire({ newValue: this.editMode, oldValue });
|
|
79
83
|
}
|
|
80
84
|
async getSourceUri() {
|
|
81
85
|
const modelSource = await this.modelSourceProvider();
|
|
@@ -94,28 +98,39 @@ let EditorContextService = class EditorContextService {
|
|
|
94
98
|
return this.selectionService.getSelectedElements();
|
|
95
99
|
}
|
|
96
100
|
get isReadonly() {
|
|
97
|
-
return this.editMode ===
|
|
101
|
+
return this.editMode === _glsp_sprotty_1.EditMode.READONLY;
|
|
98
102
|
}
|
|
99
103
|
};
|
|
100
104
|
__decorate([
|
|
101
|
-
(0, inversify_1.inject)(
|
|
105
|
+
(0, inversify_1.inject)(selection_service_1.SelectionService),
|
|
102
106
|
__metadata("design:type", selection_service_1.SelectionService)
|
|
103
107
|
], EditorContextService.prototype, "selectionService", void 0);
|
|
104
108
|
__decorate([
|
|
105
|
-
(0, inversify_1.inject)(
|
|
106
|
-
__metadata("design:type",
|
|
109
|
+
(0, inversify_1.inject)(_glsp_sprotty_1.MousePositionTracker),
|
|
110
|
+
__metadata("design:type", _glsp_sprotty_1.MousePositionTracker)
|
|
107
111
|
], EditorContextService.prototype, "mousePositionTracker", void 0);
|
|
108
112
|
__decorate([
|
|
109
|
-
(0, inversify_1.multiInject)(
|
|
113
|
+
(0, inversify_1.multiInject)(_glsp_sprotty_1.TYPES.IEditModeListener),
|
|
110
114
|
(0, inversify_1.optional)(),
|
|
111
115
|
__metadata("design:type", Array)
|
|
112
116
|
], EditorContextService.prototype, "editModeListeners", void 0);
|
|
113
117
|
__decorate([
|
|
114
|
-
(0, inversify_1.inject)(
|
|
118
|
+
(0, inversify_1.inject)(_glsp_sprotty_1.TYPES.ModelSourceProvider),
|
|
115
119
|
__metadata("design:type", Function)
|
|
116
120
|
], EditorContextService.prototype, "modelSourceProvider", void 0);
|
|
117
|
-
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, inversify_1.postConstruct)(),
|
|
123
|
+
__metadata("design:type", Function),
|
|
124
|
+
__metadata("design:paramtypes", []),
|
|
125
|
+
__metadata("design:returntype", void 0)
|
|
126
|
+
], EditorContextService.prototype, "initialize", null);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, inversify_1.preDestroy)(),
|
|
129
|
+
__metadata("design:type", Function),
|
|
130
|
+
__metadata("design:paramtypes", []),
|
|
131
|
+
__metadata("design:returntype", void 0)
|
|
132
|
+
], EditorContextService.prototype, "dispose", null);
|
|
133
|
+
exports.EditorContextService = EditorContextService = __decorate([
|
|
118
134
|
(0, inversify_1.injectable)()
|
|
119
135
|
], EditorContextService);
|
|
120
|
-
exports.EditorContextService = EditorContextService;
|
|
121
136
|
//# sourceMappingURL=editor-context-service.js.map
|