@eclipse-glsp/client 1.1.0-next.964b0af.221 → 1.1.0-next.97e90c6.246
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/{lib/features/change-bounds/snap.spec.d.ts → css/autocomplete-palette.css} +8 -3
- package/css/decoration.css +1 -1
- package/css/glsp-sprotty.css +16 -1
- package/lib/base/auto-complete/auto-complete-widget.d.ts +10 -4
- package/lib/base/auto-complete/auto-complete-widget.d.ts.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.js +28 -9
- package/lib/base/auto-complete/auto-complete-widget.js.map +1 -1
- package/lib/base/command-stack.d.ts +1 -2
- package/lib/base/command-stack.d.ts.map +1 -1
- package/lib/base/command-stack.js +5 -14
- package/lib/base/command-stack.js.map +1 -1
- package/lib/base/container-modules.d.ts +16 -16
- package/lib/base/container-modules.d.ts.map +1 -1
- package/lib/base/container-modules.js +60 -64
- 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 +7 -7
- package/lib/base/di.config.js.map +1 -1
- package/lib/base/editor-context-service.d.ts +3 -3
- package/lib/base/editor-context-service.d.ts.map +1 -1
- package/lib/base/editor-context-service.js +3 -3
- package/lib/base/editor-context-service.js.map +1 -1
- package/lib/base/tool-manager/glsp-tool-manager.d.ts +4 -5
- package/lib/base/tool-manager/glsp-tool-manager.d.ts.map +1 -1
- package/lib/base/tool-manager/glsp-tool-manager.js +15 -8
- package/lib/base/tool-manager/glsp-tool-manager.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 +32 -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 +81 -0
- package/lib/features/accessibility/move-zoom/move-handler.d.ts.map +1 -0
- package/lib/features/accessibility/move-zoom/move-handler.js +173 -0
- package/lib/features/accessibility/move-zoom/move-handler.js.map +1 -0
- package/lib/features/accessibility/move-zoom/zoom-handler.d.ts +74 -0
- package/lib/features/accessibility/move-zoom/zoom-handler.d.ts.map +1 -0
- package/lib/features/accessibility/move-zoom/zoom-handler.js +159 -0
- package/lib/features/accessibility/move-zoom/zoom-handler.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 +33 -0
- package/lib/features/accessibility/search/di.config.js.map +1 -0
- package/lib/features/accessibility/search/search-palette.d.ts +47 -0
- package/lib/features/accessibility/search/search-palette.d.ts.map +1 -0
- package/lib/features/accessibility/search/search-palette.js +155 -0
- package/lib/features/accessibility/search/search-palette.js.map +1 -0
- package/lib/features/accessibility/search/search-tool.d.ts +30 -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 +35 -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 +87 -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 +35 -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 +49 -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 +131 -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 +43 -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 +109 -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/features/{tools/marquee-behavior.spec.d.ts → autocomplete-palette/autocomplete-suggestion-providers.js} +4 -3
- package/lib/features/autocomplete-palette/autocomplete-suggestion-providers.js.map +1 -0
- package/lib/features/autocomplete-palette/base-autocomplete-palette.d.ts +41 -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 +0 -16
- package/lib/features/bounds/di.config.d.ts.map +1 -1
- package/lib/features/bounds/di.config.js +12 -9
- package/lib/features/bounds/di.config.js.map +1 -1
- package/lib/features/{layout → bounds}/freeform-layout.d.ts +2 -2
- package/lib/features/{layout → bounds}/freeform-layout.d.ts.map +1 -1
- package/lib/features/{layout → bounds}/freeform-layout.js +2 -2
- package/lib/features/{layout → bounds}/freeform-layout.js.map +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts.map +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.js +3 -2
- package/lib/features/bounds/glsp-hidden-bounds-updater.js.map +1 -1
- package/lib/features/{layout → bounds}/hbox-layout.d.ts +1 -1
- package/lib/features/{layout → bounds}/hbox-layout.d.ts.map +1 -1
- package/lib/features/{layout → bounds}/hbox-layout.js +1 -1
- package/lib/features/{layout → bounds}/hbox-layout.js.map +1 -1
- package/lib/features/{layout → bounds}/layouter.d.ts +1 -1
- package/lib/features/{layout → bounds}/layouter.d.ts.map +1 -1
- package/lib/features/{layout → bounds}/layouter.js +1 -1
- package/lib/features/{layout → bounds}/layouter.js.map +1 -1
- package/lib/features/{layout → bounds}/vbox-layout.d.ts +1 -1
- package/lib/features/{layout → bounds}/vbox-layout.d.ts.map +1 -1
- package/lib/features/{layout → bounds}/vbox-layout.js +1 -1
- package/lib/features/{layout → bounds}/vbox-layout.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 +3 -3
- package/lib/features/command-palette/command-palette-tool.js.map +1 -1
- package/lib/features/command-palette/di.config.d.ts +0 -15
- package/lib/features/command-palette/di.config.d.ts.map +1 -1
- package/lib/features/command-palette/di.config.js +6 -7
- package/lib/features/command-palette/di.config.js.map +1 -1
- package/lib/features/context-menu/di.config.d.ts +0 -15
- package/lib/features/context-menu/di.config.d.ts.map +1 -1
- package/lib/features/context-menu/di.config.js +4 -3
- package/lib/features/context-menu/di.config.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.d.ts +2 -2
- package/lib/features/copy-paste/copy-paste-handler.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.js +5 -5
- package/lib/features/copy-paste/copy-paste-handler.js.map +1 -1
- package/lib/features/decoration/di.config.d.ts +0 -15
- package/lib/features/decoration/di.config.d.ts.map +1 -1
- package/lib/features/decoration/di.config.js +4 -4
- package/lib/features/decoration/di.config.js.map +1 -1
- package/lib/features/edit-label/di.config.d.ts +0 -15
- package/lib/features/edit-label/di.config.d.ts.map +1 -1
- package/lib/features/edit-label/di.config.js +3 -2
- package/lib/features/edit-label/di.config.js.map +1 -1
- package/lib/features/export/di.config.d.ts +0 -15
- package/lib/features/export/di.config.d.ts.map +1 -1
- package/lib/features/export/di.config.js +6 -5
- package/lib/features/export/di.config.js.map +1 -1
- package/lib/features/export/glsp-svg-exporter.d.ts +1 -1
- package/lib/features/export/glsp-svg-exporter.d.ts.map +1 -1
- package/lib/features/export/glsp-svg-exporter.js +1 -2
- package/lib/features/export/glsp-svg-exporter.js.map +1 -1
- package/lib/features/hover/di.config.d.ts +0 -15
- package/lib/features/hover/di.config.d.ts.map +1 -1
- package/lib/features/hover/di.config.js +7 -7
- package/lib/features/hover/di.config.js.map +1 -1
- package/lib/features/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 +1 -9
- package/lib/features/layout/di.config.js.map +1 -1
- package/lib/features/navigation/di.config.d.ts +2 -1
- package/lib/features/navigation/di.config.d.ts.map +1 -1
- package/lib/features/navigation/di.config.js +3 -3
- package/lib/features/navigation/di.config.js.map +1 -1
- package/lib/features/navigation/navigation-action-handler.d.ts +2 -2
- package/lib/features/navigation/navigation-action-handler.js +2 -2
- package/lib/features/save/di.config.d.ts +0 -15
- package/lib/features/save/di.config.d.ts.map +1 -1
- package/lib/features/save/di.config.js +3 -2
- package/lib/features/save/di.config.js.map +1 -1
- package/lib/features/select/di.config.d.ts +0 -15
- package/lib/features/select/di.config.d.ts.map +1 -1
- package/lib/features/select/di.config.js +8 -7
- package/lib/features/select/di.config.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/svg-metadata/di.config.js +26 -0
- package/lib/features/svg-metadata/di.config.js.map +1 -0
- package/lib/features/svg-metadata/metadata-placer.d.ts +24 -0
- package/lib/features/svg-metadata/metadata-placer.d.ts.map +1 -0
- package/lib/features/svg-metadata/metadata-placer.js +63 -0
- package/lib/features/svg-metadata/metadata-placer.js.map +1 -0
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts +2 -2
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js +3 -3
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts +7 -7
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.js +5 -9
- package/lib/features/tool-feedback/creation-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/di.config.d.ts +0 -15
- package/lib/features/tool-feedback/di.config.d.ts.map +1 -1
- package/lib/features/tool-feedback/di.config.js +20 -18
- package/lib/features/tool-feedback/di.config.js.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js +1 -1
- package/lib/features/tool-palette/di.config.d.ts +0 -15
- package/lib/features/tool-palette/di.config.d.ts.map +1 -1
- package/lib/features/tool-palette/di.config.js +4 -4
- package/lib/features/tool-palette/di.config.js.map +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette.js +2 -2
- package/lib/features/tool-palette/tool-palette.js.map +1 -1
- package/lib/features/tools/change-bounds-tool.d.ts +1 -1
- package/lib/features/tools/change-bounds-tool.d.ts.map +1 -1
- package/lib/features/tools/change-bounds-tool.js +6 -6
- package/lib/features/tools/change-bounds-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 +14 -15
- package/lib/features/tools/di.config.js.map +1 -1
- package/lib/features/tools/glsp-manhattan-edge-router.d.ts +2 -2
- package/lib/features/tools/glsp-manhattan-edge-router.d.ts.map +1 -1
- package/lib/features/tools/glsp-manhattan-edge-router.js +4 -4
- package/lib/features/tools/glsp-manhattan-edge-router.js.map +1 -1
- package/lib/features/validation/di.config.js +4 -4
- package/lib/features/validation/di.config.js.map +1 -1
- package/lib/features/validation/validate.d.ts +6 -6
- package/lib/features/validation/validate.d.ts.map +1 -1
- package/lib/features/validation/validate.js +18 -17
- package/lib/features/validation/validate.js.map +1 -1
- package/lib/features/viewport/di.config.d.ts +0 -15
- package/lib/features/viewport/di.config.d.ts.map +1 -1
- package/lib/features/viewport/di.config.js +12 -11
- package/lib/features/viewport/di.config.js.map +1 -1
- package/lib/index.d.ts +35 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +86 -43
- package/lib/index.js.map +1 -1
- package/lib/sprotty-reexport.d.ts +2 -2
- package/lib/sprotty-reexport.d.ts.map +1 -1
- package/lib/sprotty-reexport.js +4 -4
- package/lib/sprotty-reexport.js.map +1 -1
- package/lib/utils/smodel-util.d.ts +1 -1
- package/lib/utils/smodel-util.d.ts.map +1 -1
- package/lib/utils/smodel-util.js +1 -1
- package/lib/utils/smodel-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 +1 -1
- package/lib/views/base-view-module.js.map +1 -1
- package/lib/views/glsp-edge-view.d.ts +2 -2
- package/lib/views/glsp-edge-view.d.ts.map +1 -1
- package/lib/views/glsp-edge-view.js +2 -2
- package/lib/views/glsp-edge-view.js.map +1 -1
- package/lib/views/index.d.ts +1 -1
- package/lib/views/index.js +1 -1
- package/lib/views/rounded-corner-view.js +2 -2
- package/lib/views/rounded-corner.d.ts +1 -1
- package/lib/views/rounded-corner.js +1 -1
- package/package.json +5 -3
- package/src/base/auto-complete/auto-complete-widget.ts +34 -10
- package/src/base/command-stack.ts +13 -11
- package/src/base/container-modules.ts +21 -32
- package/src/base/di.config.ts +8 -8
- package/src/base/editor-context-service.ts +4 -4
- package/src/base/tool-manager/glsp-tool-manager.ts +15 -12
- package/src/features/accessibility/di.config.ts +30 -0
- package/src/features/accessibility/move-zoom/di.config.ts +43 -0
- package/src/features/accessibility/move-zoom/move-handler.ts +198 -0
- package/src/features/accessibility/move-zoom/zoom-handler.ts +178 -0
- package/src/features/accessibility/search/di.config.ts +31 -0
- package/src/features/accessibility/search/search-palette.ts +181 -0
- package/src/features/accessibility/search/search-tool.ts +60 -0
- package/src/features/accessibility/view-key-tools/deselect-key-tool.ts +80 -0
- package/src/features/accessibility/view-key-tools/di.config.ts +33 -0
- package/src/features/accessibility/view-key-tools/movement-key-tool.ts +115 -0
- package/src/features/accessibility/view-key-tools/zoom-key-tool.ts +94 -0
- package/src/features/autocomplete-palette/autocomplete-suggestion-providers.ts +37 -0
- package/src/features/autocomplete-palette/base-autocomplete-palette.ts +88 -0
- package/src/features/bounds/di.config.ts +21 -11
- package/src/features/{layout/tests → bounds}/freeform-layout.spec.ts +2 -2
- package/src/features/{layout → bounds}/freeform-layout.ts +2 -2
- package/src/features/bounds/glsp-hidden-bounds-updater.ts +4 -7
- package/src/features/{layout/tests → bounds}/hbox-layout.spec.ts +2 -2
- package/src/features/{layout → bounds}/hbox-layout.ts +1 -1
- package/src/features/{layout/tests/layouter-test-util.ts → bounds/layouter-test-util.spec.ts} +5 -5
- package/src/features/{layout → bounds}/layouter.ts +1 -1
- package/src/features/{layout/tests → bounds}/vbox-layout.spec.ts +2 -2
- package/src/features/{layout → bounds}/vbox-layout.ts +1 -1
- package/src/features/command-palette/command-palette-tool.ts +3 -3
- package/src/features/command-palette/di.config.ts +6 -7
- package/src/features/context-menu/di.config.ts +4 -3
- package/src/features/copy-paste/copy-paste-handler.ts +5 -5
- package/src/features/decoration/di.config.ts +4 -4
- package/src/features/edit-label/di.config.ts +3 -2
- package/src/features/export/di.config.ts +6 -5
- package/src/features/export/glsp-svg-exporter.ts +8 -7
- package/src/features/hover/di.config.ts +8 -7
- package/src/features/layout/di.config.ts +2 -11
- package/src/features/navigation/di.config.ts +4 -2
- package/src/features/navigation/navigation-action-handler.ts +2 -2
- package/src/features/save/di.config.ts +3 -2
- package/src/features/select/di.config.ts +8 -7
- package/src/features/select/selection-service.spec.ts +4 -5
- package/src/features/svg-metadata/di.config.ts +26 -0
- package/src/features/svg-metadata/metadata-placer.ts +51 -0
- package/src/features/tool-feedback/change-bounds-tool-feedback.ts +3 -3
- package/src/features/tool-feedback/creation-tool-feedback.ts +21 -15
- package/src/features/tool-feedback/di.config.ts +20 -18
- package/src/features/tool-feedback/edge-edit-tool-feedback.ts +1 -1
- package/src/features/tool-palette/di.config.ts +4 -4
- package/src/features/tool-palette/tool-palette.ts +4 -4
- package/src/features/tools/change-bounds-tool.ts +7 -7
- package/src/features/tools/di.config.ts +18 -19
- package/src/features/tools/glsp-manhattan-edge-router.ts +8 -5
- package/src/features/validation/di.config.ts +5 -5
- package/src/features/validation/validate.ts +16 -19
- package/src/features/viewport/di.config.ts +13 -11
- package/src/index.ts +48 -5
- package/src/sprotty-reexport.ts +18 -8
- package/src/utils/smodel-util.ts +12 -5
- package/src/views/base-view-module.ts +4 -9
- package/src/views/glsp-edge-view.tsx +3 -3
- package/src/views/index.ts +1 -2
- package/src/views/rounded-corner-view.tsx +2 -2
- package/src/views/rounded-corner.ts +2 -2
- package/lib/features/change-bounds/snap.spec.d.ts.map +0 -1
- package/lib/features/change-bounds/snap.spec.js +0 -82
- package/lib/features/change-bounds/snap.spec.js.map +0 -1
- package/lib/features/layout/layout-elements-action.spec.d.ts +0 -3
- package/lib/features/layout/layout-elements-action.spec.d.ts.map +0 -1
- package/lib/features/layout/layout-elements-action.spec.js +0 -325
- package/lib/features/layout/layout-elements-action.spec.js.map +0 -1
- package/lib/features/layout/tests/freeform-layout.spec.d.ts +0 -3
- package/lib/features/layout/tests/freeform-layout.spec.d.ts.map +0 -1
- package/lib/features/layout/tests/freeform-layout.spec.js +0 -201
- package/lib/features/layout/tests/freeform-layout.spec.js.map +0 -1
- package/lib/features/layout/tests/hbox-layout.spec.d.ts +0 -3
- package/lib/features/layout/tests/hbox-layout.spec.d.ts.map +0 -1
- package/lib/features/layout/tests/hbox-layout.spec.js +0 -161
- package/lib/features/layout/tests/hbox-layout.spec.js.map +0 -1
- package/lib/features/layout/tests/layouter-test-util.d.ts +0 -34
- package/lib/features/layout/tests/layouter-test-util.d.ts.map +0 -1
- package/lib/features/layout/tests/layouter-test-util.js +0 -96
- package/lib/features/layout/tests/layouter-test-util.js.map +0 -1
- package/lib/features/layout/tests/vbox-layout.spec.d.ts +0 -3
- package/lib/features/layout/tests/vbox-layout.spec.d.ts.map +0 -1
- package/lib/features/layout/tests/vbox-layout.spec.js +0 -161
- package/lib/features/layout/tests/vbox-layout.spec.js.map +0 -1
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts +0 -3
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts.map +0 -1
- package/lib/features/navigation/navigation-target-resolver.spec.js +0 -54
- package/lib/features/navigation/navigation-target-resolver.spec.js.map +0 -1
- package/lib/features/select/selection-service.spec.d.ts +0 -2
- package/lib/features/select/selection-service.spec.d.ts.map +0 -1
- package/lib/features/select/selection-service.spec.js +0 -347
- package/lib/features/select/selection-service.spec.js.map +0 -1
- package/lib/features/tools/marquee-behavior.spec.d.ts.map +0 -1
- package/lib/features/tools/marquee-behavior.spec.js +0 -165
- package/lib/features/tools/marquee-behavior.spec.js.map +0 -1
- package/lib/features/validation/marker-navigator.spec.d.ts +0 -3
- package/lib/features/validation/marker-navigator.spec.d.ts.map +0 -1
- package/lib/features/validation/marker-navigator.spec.js +0 -169
- package/lib/features/validation/marker-navigator.spec.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2023 Business Informatics Group (TU Wien) 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,5 +13,10 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
|
|
17
|
+
.autocomplete-palette {
|
|
18
|
+
position: absolute;
|
|
19
|
+
left: 20px;
|
|
20
|
+
top: 20px;
|
|
21
|
+
width: 400px;
|
|
22
|
+
}
|
package/css/decoration.css
CHANGED
package/css/glsp-sprotty.css
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
|
|
@@ -254,3 +254,18 @@
|
|
|
254
254
|
fill: transparent;
|
|
255
255
|
width: var(--theia-scrollbar-rail-width);
|
|
256
256
|
}
|
|
257
|
+
|
|
258
|
+
.search-hidden {
|
|
259
|
+
opacity: 0.2;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.search-highlighted .sprotty-node,
|
|
263
|
+
.search-highlighted .sprotty-edge {
|
|
264
|
+
stroke-width: 1.5px;
|
|
265
|
+
stroke-width: 2px;
|
|
266
|
+
stroke-dashoffset: 5;
|
|
267
|
+
stroke-dasharray: 5, 5;
|
|
268
|
+
stroke-linecap: round;
|
|
269
|
+
stroke: rgb(218, 89, 15) !important;
|
|
270
|
+
stroke: #130bf7 !important;
|
|
271
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020-
|
|
2
|
+
* Copyright (c) 2020-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
|
|
@@ -23,6 +23,7 @@ export interface AutoCompleteSettings {
|
|
|
23
23
|
readonly debounceWaitMs?: number;
|
|
24
24
|
readonly showOnFocus?: boolean;
|
|
25
25
|
}
|
|
26
|
+
export type CloseReason = 'submission' | 'blur' | 'escape';
|
|
26
27
|
export interface InputValidator {
|
|
27
28
|
validate(input: string): Promise<ValidationStatus>;
|
|
28
29
|
}
|
|
@@ -38,6 +39,10 @@ export interface SuggestionSubmitHandler {
|
|
|
38
39
|
export interface TextSubmitHandler {
|
|
39
40
|
executeFromTextOnlyInput(input: string): void;
|
|
40
41
|
}
|
|
42
|
+
export interface AutoCompleteWidgetOptions {
|
|
43
|
+
visibleSuggestionsChanged?: (suggestions: LabeledAction[]) => void;
|
|
44
|
+
selectedSuggestionChanged?: (suggestion?: LabeledAction) => void;
|
|
45
|
+
}
|
|
41
46
|
/**
|
|
42
47
|
* The `AutoCompleteWidget` is a reusable UI element that provides a text input supporting auto-completion,
|
|
43
48
|
* validation, validation messages, etc.
|
|
@@ -49,8 +54,9 @@ export declare class AutoCompleteWidget {
|
|
|
49
54
|
autoSuggestionSettings: AutoCompleteSettings;
|
|
50
55
|
suggestionProvider: SuggestionProvider;
|
|
51
56
|
suggestionSubmitHandler: SuggestionSubmitHandler;
|
|
52
|
-
protected notifyClose: () => void;
|
|
57
|
+
protected notifyClose: (reason: CloseReason) => void;
|
|
53
58
|
protected logger?: ILogger | undefined;
|
|
59
|
+
protected options?: AutoCompleteWidgetOptions | undefined;
|
|
54
60
|
loadingIndicatorClasses: string[];
|
|
55
61
|
protected containerElement: HTMLElement;
|
|
56
62
|
protected inputElement: HTMLInputElement;
|
|
@@ -61,7 +67,7 @@ export declare class AutoCompleteWidget {
|
|
|
61
67
|
protected inputValidator?: InputValidator;
|
|
62
68
|
protected validationDecorator: IValidationDecorator;
|
|
63
69
|
protected textSubmitHandler?: TextSubmitHandler;
|
|
64
|
-
constructor(autoSuggestionSettings: AutoCompleteSettings, suggestionProvider: SuggestionProvider, suggestionSubmitHandler: SuggestionSubmitHandler, notifyClose?: () => void, logger?: ILogger | undefined);
|
|
70
|
+
constructor(autoSuggestionSettings: AutoCompleteSettings, suggestionProvider: SuggestionProvider, suggestionSubmitHandler: SuggestionSubmitHandler, notifyClose?: (reason: CloseReason) => void, logger?: ILogger | undefined, options?: AutoCompleteWidgetOptions | undefined);
|
|
65
71
|
configureValidation(inputValidator: InputValidator, validationDecorator?: IValidationDecorator): void;
|
|
66
72
|
configureTextSubmitHandler(textSubmitHandler: TextSubmitHandler): void;
|
|
67
73
|
initialize(containerElement: HTMLElement): void;
|
|
@@ -77,7 +83,7 @@ export declare class AutoCompleteWidget {
|
|
|
77
83
|
protected doUpdateSuggestions(text: string, root: Readonly<SModelRoot>, ...contextElementIds: string[]): Promise<LabeledAction[]>;
|
|
78
84
|
protected onLoaded(_success: 'success' | 'error'): void;
|
|
79
85
|
protected renderSuggestions(item: LabeledAction, value: string): HTMLDivElement;
|
|
80
|
-
protected
|
|
86
|
+
protected escapeForRegExp(value: string): string;
|
|
81
87
|
protected renderIcon(itemElement: HTMLDivElement, icon: string): void;
|
|
82
88
|
protected filterActions(filterText: string, actions: LabeledAction[]): LabeledAction[];
|
|
83
89
|
protected onSelect(item: LabeledAction): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-complete-widget.d.ts","sourceRoot":"","sources":["../../../src/base/auto-complete/auto-complete-widget.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAqB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,WAAW,oBAAoB;IACjC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,WAAW,CA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IAAI;IASrB,SAAS,CAAC,2BAA2B,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAOzD,SAAS,CAAC,qBAAqB,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI;IAI/E,SAAS,CAAC,wBAAwB,IAAI,IAAI;IAM1C,IAAI,UAAU,IAAI,gBAAgB,CAEjC;IAED,OAAO,IAAI,IAAI;CAMlB;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,EAAE,CAOhF"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.toActionArray = exports.AutoCompleteWidget = 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
|
|
@@ -34,12 +34,13 @@ const configureAutocomplete = require('autocompleter');
|
|
|
34
34
|
class AutoCompleteWidget {
|
|
35
35
|
constructor(autoSuggestionSettings, suggestionProvider, suggestionSubmitHandler,
|
|
36
36
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
37
|
-
notifyClose = () => { }, logger) {
|
|
37
|
+
notifyClose = () => { }, logger, options) {
|
|
38
38
|
this.autoSuggestionSettings = autoSuggestionSettings;
|
|
39
39
|
this.suggestionProvider = suggestionProvider;
|
|
40
40
|
this.suggestionSubmitHandler = suggestionSubmitHandler;
|
|
41
41
|
this.notifyClose = notifyClose;
|
|
42
42
|
this.logger = logger;
|
|
43
|
+
this.options = options;
|
|
43
44
|
this.loadingIndicatorClasses = (0, sprotty_1.codiconCSSClasses)('loading', false, true, ['loading']);
|
|
44
45
|
this.validationDecorator = validation_decorator_1.IValidationDecorator.NO_DECORATION;
|
|
45
46
|
}
|
|
@@ -64,12 +65,16 @@ class AutoCompleteWidget {
|
|
|
64
65
|
inputElement.autocomplete = 'false';
|
|
65
66
|
inputElement.style.width = '100%';
|
|
66
67
|
inputElement.addEventListener('keydown', event => this.handleKeyDown(event));
|
|
67
|
-
inputElement.addEventListener('blur', () =>
|
|
68
|
+
inputElement.addEventListener('blur', () => {
|
|
69
|
+
if (this.containerElement.style.visibility !== 'hidden') {
|
|
70
|
+
window.setTimeout(() => this.notifyClose('blur'), 200);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
68
73
|
return inputElement;
|
|
69
74
|
}
|
|
70
75
|
handleKeyDown(event) {
|
|
71
76
|
if ((0, keyboard_1.matchesKeystroke)(event, 'Escape')) {
|
|
72
|
-
this.notifyClose();
|
|
77
|
+
this.notifyClose('escape');
|
|
73
78
|
return;
|
|
74
79
|
}
|
|
75
80
|
if ((0, keyboard_1.matchesKeystroke)(event, 'Enter') && !this.isInputElementChanged() && this.isSuggestionAvailable()) {
|
|
@@ -87,7 +92,7 @@ class AutoCompleteWidget {
|
|
|
87
92
|
}
|
|
88
93
|
if (this.textSubmitHandler) {
|
|
89
94
|
this.executeFromTextOnlyInput();
|
|
90
|
-
this.notifyClose();
|
|
95
|
+
this.notifyClose('submission');
|
|
91
96
|
}
|
|
92
97
|
}
|
|
93
98
|
isInputElementChanged() {
|
|
@@ -121,17 +126,31 @@ class AutoCompleteWidget {
|
|
|
121
126
|
};
|
|
122
127
|
}
|
|
123
128
|
customizeInputElement(input, inputRect, container, maxHeight) {
|
|
129
|
+
var _a;
|
|
124
130
|
// move container into our UIExtension container as this is already positioned correctly
|
|
125
131
|
if (this.containerElement) {
|
|
126
132
|
this.containerElement.appendChild(container);
|
|
133
|
+
if (this.options && this.options.selectedSuggestionChanged) {
|
|
134
|
+
const selectedElement = container.querySelector('.selected');
|
|
135
|
+
// eslint-disable-next-line no-null/no-null
|
|
136
|
+
if (selectedElement !== null && selectedElement !== undefined) {
|
|
137
|
+
const index = Array.from(container.children).indexOf(selectedElement);
|
|
138
|
+
this.options.selectedSuggestionChanged((_a = this.contextActions) === null || _a === void 0 ? void 0 : _a[index]);
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
this.options.selectedSuggestionChanged(undefined);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
127
144
|
}
|
|
128
145
|
}
|
|
129
146
|
updateSuggestions(update, text, root, ...contextElementIds) {
|
|
130
147
|
this.onLoading();
|
|
131
148
|
this.doUpdateSuggestions(text, root)
|
|
132
149
|
.then(actions => {
|
|
150
|
+
var _a, _b;
|
|
133
151
|
this.contextActions = this.filterActions(text, actions);
|
|
134
152
|
update(this.contextActions);
|
|
153
|
+
(_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.visibleSuggestionsChanged) === null || _b === void 0 ? void 0 : _b.call(_a, this.contextActions);
|
|
135
154
|
this.onLoaded('success');
|
|
136
155
|
})
|
|
137
156
|
.catch(reason => {
|
|
@@ -162,15 +181,15 @@ class AutoCompleteWidget {
|
|
|
162
181
|
}
|
|
163
182
|
renderSuggestions(item, value) {
|
|
164
183
|
const itemElement = document.createElement('div');
|
|
165
|
-
const wordMatcher = this.
|
|
184
|
+
const wordMatcher = this.escapeForRegExp(value).split(' ').join('|');
|
|
166
185
|
const regex = new RegExp(wordMatcher, 'gi');
|
|
167
186
|
if (item.icon) {
|
|
168
187
|
this.renderIcon(itemElement, item.icon);
|
|
169
188
|
}
|
|
170
|
-
itemElement.innerHTML += item.label.replace(regex, match => '<em>' + match + '</em>');
|
|
189
|
+
itemElement.innerHTML += item.label.replace(regex, match => '<em>' + match + '</em>').replace(/ /g, ' ');
|
|
171
190
|
return itemElement;
|
|
172
191
|
}
|
|
173
|
-
|
|
192
|
+
escapeForRegExp(value) {
|
|
174
193
|
return value.replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1');
|
|
175
194
|
}
|
|
176
195
|
renderIcon(itemElement, icon) {
|
|
@@ -191,7 +210,7 @@ class AutoCompleteWidget {
|
|
|
191
210
|
}
|
|
192
211
|
else {
|
|
193
212
|
this.executeFromSuggestion(item);
|
|
194
|
-
this.notifyClose();
|
|
213
|
+
this.notifyClose('submission');
|
|
195
214
|
}
|
|
196
215
|
}
|
|
197
216
|
validateInputIfNoContextActions() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-complete-widget.js","sourceRoot":"","sources":["../../../src/base/auto-complete/auto-complete-widget.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAiF;AAEjF,qCAAiE;AACjE,yDAAqD;AACrD,yDAA8D;AAC9D,mEAA4D;AAC5D,iEAA8D;
|
|
1
|
+
{"version":3,"file":"auto-complete-widget.js","sourceRoot":"","sources":["../../../src/base/auto-complete/auto-complete-widget.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAiF;AAEjF,qCAAiE;AACjE,yDAAqD;AACrD,yDAA8D;AAC9D,mEAA4D;AAC5D,iEAA8D;AAmC9D,8DAA8D;AAC9D,MAAM,qBAAqB,GAA0E,OAAO,CAAC,eAAe,CAAC,CAAC;AAE9H;;;;;;GAMG;AACH,MAAa,kBAAkB;IAe3B,YACW,sBAA4C,EAC5C,kBAAsC,EACtC,uBAAgD;IACvD,gEAAgE;IACtD,cAA6C,GAAG,EAAE,GAAE,CAAC,EACrD,MAAgB,EAChB,OAAmC;QANtC,2BAAsB,GAAtB,sBAAsB,CAAsB;QAC5C,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,4BAAuB,GAAvB,uBAAuB,CAAyB;QAE7C,gBAAW,GAAX,WAAW,CAA0C;QACrD,WAAM,GAAN,MAAM,CAAU;QAChB,YAAO,GAAP,OAAO,CAA4B;QArBjD,4BAAuB,GAAG,IAAA,2BAAiB,EAAC,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;QAUvE,wBAAmB,GAAyB,2CAAoB,C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;YACb,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,0BAA0B,EAAE,KAAK,CAAC,CAAC;SAC9D;QACD,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,CAAC;IACvC,CAAC;IAES,qBAAqB,CAAC,KAAwC;QACpE,IAAI,CAAC,uBAAuB,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAC9D,CAAC;IAES,wBAAwB;QAC9B,IAAI,IAAI,CAAC,iBAAiB,EAAE;YACxB,IAAI,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;SAC5E;IACL,CAAC;IAED,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAED,OAAO;QACH,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,CAAC;QACnC,IAAI,IAAI,CAAC,kBAAkB,EAAE;YACzB,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE,CAAC;SACrC;IACL,CAAC;CACJ;AApRD,gDAoRC;AAED,SAAgB,aAAa,CAAC,KAAwC;IAClE,IAAI,wBAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;QACzB,OAAO,KAAK,CAAC,OAAO,CAAC;KACxB;SAAM,IAAI,iBAAM,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;QACzB,OAAO,CAAC,KAAK,CAAC,CAAC;KAClB;IACD,OAAO,EAAE,CAAC;AACd,CAAC;AAPD,sCAOC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CommandStack,
|
|
1
|
+
import { CommandStack, SModelRoot } from 'sprotty';
|
|
2
2
|
export declare class GLSPCommandStack extends CommandStack {
|
|
3
|
-
protected actionDispatcher: () => Promise<IActionDispatcher>;
|
|
4
3
|
undo(): Promise<SModelRoot>;
|
|
5
4
|
redo(): Promise<SModelRoot>;
|
|
6
5
|
}
|
|
@@ -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,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEnD,qBACa,gBAAiB,SAAQ,YAAY;IACrC,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC;IAQ3B,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC;CAOvC"}
|
|
@@ -5,13 +5,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
9
|
exports.GLSPCommandStack = void 0;
|
|
13
10
|
/********************************************************************************
|
|
14
|
-
* Copyright (c) 2019-
|
|
11
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
15
12
|
*
|
|
16
13
|
* This program and the accompanying materials are made available under the
|
|
17
14
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -25,24 +22,18 @@ exports.GLSPCommandStack = void 0;
|
|
|
25
22
|
*
|
|
26
23
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
27
24
|
********************************************************************************/
|
|
28
|
-
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
29
25
|
const inversify_1 = require("inversify");
|
|
30
26
|
const sprotty_1 = require("sprotty");
|
|
31
|
-
const types_1 = require("./types");
|
|
32
27
|
let GLSPCommandStack = class GLSPCommandStack extends sprotty_1.CommandStack {
|
|
33
28
|
undo() {
|
|
34
|
-
this.
|
|
35
|
-
return this.
|
|
29
|
+
this.logger.warn(this, 'GLSPCommandStack.undo() was called. This should never happen as the GLSP server is responsible for handling undo requests');
|
|
30
|
+
return this.currentModel;
|
|
36
31
|
}
|
|
37
32
|
redo() {
|
|
38
|
-
this.
|
|
39
|
-
return this.
|
|
33
|
+
this.logger.warn(this, 'GLSPCommandStack.redo() was called. This should never happen as the GLSP server is responsible for handling redo requests');
|
|
34
|
+
return this.currentModel;
|
|
40
35
|
}
|
|
41
36
|
};
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, inversify_1.inject)(types_1.TYPES.IActionDispatcherProvider),
|
|
44
|
-
__metadata("design:type", Function)
|
|
45
|
-
], GLSPCommandStack.prototype, "actionDispatcher", void 0);
|
|
46
37
|
GLSPCommandStack = __decorate([
|
|
47
38
|
(0, inversify_1.injectable)()
|
|
48
39
|
], GLSPCommandStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-stack.js","sourceRoot":"","sources":["../../src/base/command-stack.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command-stack.js","sourceRoot":"","sources":["../../src/base/command-stack.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAuC;AACvC,qCAAmD;AAG5C,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,sBAAY;IACrC,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;CACJ,CAAA;AAhBY,gBAAgB;IAD5B,IAAA,sBAAU,GAAE;GACA,gBAAgB,CAgB5B;AAhBY,4CAAgB"}
|
|
@@ -13,18 +13,24 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
+
import { ContainerConfiguration } from '@eclipse-glsp/protocol';
|
|
16
17
|
import { Container, ContainerModule } from 'inversify';
|
|
17
|
-
export declare const DEFAULT_MODULES: readonly [ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule];
|
|
18
|
+
export declare const DEFAULT_MODULES: readonly [ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule];
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
20
|
+
* Initializes a GLSP Diagram container with the GLSP default modules and the specified custom `modules`.
|
|
21
|
+
* Additional modules can be passed as direct arguments or as part of a {@link ModuleConfiguration}.
|
|
22
|
+
* ```typescript
|
|
23
|
+
* const container= createDiagramContainer(myModule1, myModule2)
|
|
24
|
+
* // or
|
|
25
|
+
* const container= createDiagramContainer({ add: [myModule1, myModule2]})
|
|
26
|
+
* ```
|
|
27
|
+
* Default modules can be excluded using {@link ModuleConfiguration}s.
|
|
22
28
|
* This means, you can still customize the default modules in two ways.
|
|
23
29
|
*
|
|
24
30
|
* First, you can exclude default modules and add a module with your custom code.
|
|
25
31
|
*
|
|
26
32
|
* ```typescript
|
|
27
|
-
* const container = createDiagramContainer(
|
|
33
|
+
* const container = createDiagramContainer({ add:myModelSourceWatcherModule, remove: modelSourceWatcherModule} );
|
|
28
34
|
* ```
|
|
29
35
|
*
|
|
30
36
|
* Second, you can unbind or rebind implementations that are originally bound in one of the default modules.
|
|
@@ -33,17 +39,11 @@ export declare const DEFAULT_MODULES: readonly [ContainerModule, ContainerModule
|
|
|
33
39
|
* rebind(NavigationTargetResolver).to(MyNavigationTargetResolver);
|
|
34
40
|
* ```
|
|
35
41
|
*
|
|
36
|
-
* @param
|
|
37
|
-
*
|
|
38
|
-
* @returns The
|
|
39
|
-
*/
|
|
40
|
-
export declare function createDiagramContainer(...customModules: Array<ContainerModule | ExcludeDescription>): Container;
|
|
41
|
-
/**
|
|
42
|
-
* Can be passed to the {@link createDiagramContainer} utility function to exclude (i.e. not load) a specific default module.
|
|
42
|
+
* @param containerConfiguration
|
|
43
|
+
* Custom modules to be loaded in addition to the default modules and/or default modules that should be excluded.
|
|
44
|
+
* @returns The initialized container.
|
|
43
45
|
*/
|
|
44
|
-
export
|
|
45
|
-
exclude: ContainerModule;
|
|
46
|
-
}
|
|
46
|
+
export declare function initializeDiagramContainer(container: Container, ...containerConfiguration: ContainerConfiguration): Container;
|
|
47
47
|
/**
|
|
48
48
|
* Creates a GLSP Client container with the GLSP default modules and the specified custom `modules`.
|
|
49
49
|
*
|
|
@@ -64,7 +64,7 @@ export interface ExcludeDescription {
|
|
|
64
64
|
* ```
|
|
65
65
|
* @param modules Custom modules to be loaded in addition to the default modules.
|
|
66
66
|
* @returns The created container.
|
|
67
|
-
* @deprecated Please use `
|
|
67
|
+
* @deprecated Please use `initializeDiagramContainer` from `@eclipse-glsp/client` instead
|
|
68
68
|
*/
|
|
69
69
|
export declare function createClientContainer(...modules: ContainerModule[]): Container;
|
|
70
70
|
//# sourceMappingURL=container-modules.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-modules.d.ts","sourceRoot":"","sources":["../../src/base/container-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;
|
|
1
|
+
{"version":3,"file":"container-modules.d.ts","sourceRoot":"","sources":["../../src/base/container-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,sBAAsB,EAAuB,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAoCvD,eAAO,MAAM,eAAe,6kBAmClB,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,EAAE,GAAG,sBAAsB,EAAE,sBAAsB,GAAG,SAAS,CAE7H;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,OAAO,EAAE,eAAe,EAAE,GAAG,SAAS,CAE9E"}
|
|
@@ -15,75 +15,82 @@
|
|
|
15
15
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
16
|
********************************************************************************/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.createClientContainer = exports.
|
|
18
|
+
exports.createClientContainer = exports.initializeDiagramContainer = exports.DEFAULT_MODULES = void 0;
|
|
19
19
|
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
20
20
|
const inversify_1 = require("inversify");
|
|
21
21
|
const sprotty_1 = require("sprotty");
|
|
22
|
-
const di_config_1 = require("../features/
|
|
23
|
-
const di_config_2 = require("../features/
|
|
24
|
-
const di_config_3 = require("../features/
|
|
25
|
-
const di_config_4 = require("../features/
|
|
26
|
-
const di_config_5 = require("../features/
|
|
27
|
-
const di_config_6 = require("../features/
|
|
28
|
-
const di_config_7 = require("../features/
|
|
29
|
-
const di_config_8 = require("../features/
|
|
30
|
-
const di_config_9 = require("../features/
|
|
31
|
-
const di_config_10 = require("../features/
|
|
32
|
-
const di_config_11 = require("../features/
|
|
33
|
-
const di_config_12 = require("../features/
|
|
34
|
-
const di_config_13 = require("../features/
|
|
35
|
-
const di_config_14 = require("../features/
|
|
36
|
-
const di_config_15 = require("../features/
|
|
37
|
-
const di_config_16 = require("../features/tool-
|
|
38
|
-
const di_config_17 = require("../features/
|
|
39
|
-
const di_config_18 = require("../features/
|
|
40
|
-
const di_config_19 = require("../features/
|
|
41
|
-
const di_config_20 = require("
|
|
22
|
+
const di_config_1 = require("../features/svg-metadata/di.config");
|
|
23
|
+
const di_config_2 = require("../features/bounds/di.config");
|
|
24
|
+
const di_config_3 = require("../features/command-palette/di.config");
|
|
25
|
+
const di_config_4 = require("../features/context-menu/di.config");
|
|
26
|
+
const di_config_5 = require("../features/copy-paste/di.config");
|
|
27
|
+
const di_config_6 = require("../features/decoration/di.config");
|
|
28
|
+
const di_config_7 = require("../features/edit-label/di.config");
|
|
29
|
+
const di_config_8 = require("../features/export/di.config");
|
|
30
|
+
const di_config_9 = require("../features/hints/di.config");
|
|
31
|
+
const di_config_10 = require("../features/hover/di.config");
|
|
32
|
+
const di_config_11 = require("../features/layout/di.config");
|
|
33
|
+
const di_config_12 = require("../features/mouse-tool/di.config");
|
|
34
|
+
const di_config_13 = require("../features/navigation/di.config");
|
|
35
|
+
const di_config_14 = require("../features/select/di.config");
|
|
36
|
+
const di_config_15 = require("../features/source-model-watcher/di.config");
|
|
37
|
+
const di_config_16 = require("../features/tool-feedback/di.config");
|
|
38
|
+
const di_config_17 = require("../features/tool-palette/di.config");
|
|
39
|
+
const di_config_18 = require("../features/tools/di.config");
|
|
40
|
+
const di_config_19 = require("../features/validation/di.config");
|
|
41
|
+
const di_config_20 = require("../features/viewport/di.config");
|
|
42
|
+
const di_config_21 = require("./di.config");
|
|
42
43
|
exports.DEFAULT_MODULES = [
|
|
43
44
|
sprotty_1.defaultModule,
|
|
44
|
-
|
|
45
|
+
di_config_21.default,
|
|
45
46
|
sprotty_1.buttonModule,
|
|
46
47
|
sprotty_1.edgeIntersectionModule,
|
|
47
48
|
sprotty_1.edgeLayoutModule,
|
|
48
49
|
sprotty_1.expandModule,
|
|
49
|
-
|
|
50
|
+
di_config_8.default,
|
|
50
51
|
sprotty_1.fadeModule,
|
|
51
|
-
di_config_1.default,
|
|
52
52
|
di_config_2.default,
|
|
53
53
|
di_config_3.default,
|
|
54
|
-
|
|
54
|
+
di_config_4.default,
|
|
55
55
|
di_config_6.default,
|
|
56
|
-
|
|
57
|
-
di_config_11.default,
|
|
58
|
-
di_config_13.default,
|
|
59
|
-
di_config_4.glspServerCopyPasteModule,
|
|
60
|
-
di_config_19.default,
|
|
61
|
-
sprotty_1.labelEditUiModule,
|
|
56
|
+
di_config_7.default,
|
|
62
57
|
di_config_10.default,
|
|
63
|
-
|
|
64
|
-
di_config_8.default,
|
|
65
|
-
sprotty_1.modelSourceModule,
|
|
58
|
+
di_config_12.default,
|
|
66
59
|
di_config_14.default,
|
|
67
|
-
|
|
60
|
+
di_config_5.glspServerCopyPasteModule,
|
|
61
|
+
di_config_20.default,
|
|
62
|
+
sprotty_1.labelEditUiModule,
|
|
63
|
+
di_config_11.default,
|
|
64
|
+
di_config_19.markerNavigatorModule,
|
|
65
|
+
di_config_9.default,
|
|
66
|
+
sprotty_1.modelSourceModule,
|
|
67
|
+
di_config_15.default,
|
|
68
|
+
di_config_13.default,
|
|
68
69
|
sprotty_1.openModule,
|
|
69
|
-
|
|
70
|
+
di_config_17.default,
|
|
70
71
|
sprotty_1.routingModule,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
sprotty_1.zorderModule
|
|
72
|
+
di_config_16.default,
|
|
73
|
+
di_config_18.toolsModule,
|
|
74
|
+
di_config_18.enableDefaultToolsOnFocusLossModule,
|
|
75
|
+
di_config_19.validationModule,
|
|
76
|
+
sprotty_1.zorderModule,
|
|
77
|
+
di_config_1.default
|
|
76
78
|
];
|
|
77
79
|
/**
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
80
|
+
* Initializes a GLSP Diagram container with the GLSP default modules and the specified custom `modules`.
|
|
81
|
+
* Additional modules can be passed as direct arguments or as part of a {@link ModuleConfiguration}.
|
|
82
|
+
* ```typescript
|
|
83
|
+
* const container= createDiagramContainer(myModule1, myModule2)
|
|
84
|
+
* // or
|
|
85
|
+
* const container= createDiagramContainer({ add: [myModule1, myModule2]})
|
|
86
|
+
* ```
|
|
87
|
+
* Default modules can be excluded using {@link ModuleConfiguration}s.
|
|
81
88
|
* This means, you can still customize the default modules in two ways.
|
|
82
89
|
*
|
|
83
90
|
* First, you can exclude default modules and add a module with your custom code.
|
|
84
91
|
*
|
|
85
92
|
* ```typescript
|
|
86
|
-
* const container = createDiagramContainer(
|
|
93
|
+
* const container = createDiagramContainer({ add:myModelSourceWatcherModule, remove: modelSourceWatcherModule} );
|
|
87
94
|
* ```
|
|
88
95
|
*
|
|
89
96
|
* Second, you can unbind or rebind implementations that are originally bound in one of the default modules.
|
|
@@ -92,25 +99,14 @@ exports.DEFAULT_MODULES = [
|
|
|
92
99
|
* rebind(NavigationTargetResolver).to(MyNavigationTargetResolver);
|
|
93
100
|
* ```
|
|
94
101
|
*
|
|
95
|
-
* @param
|
|
96
|
-
*
|
|
97
|
-
* @returns The
|
|
102
|
+
* @param containerConfiguration
|
|
103
|
+
* Custom modules to be loaded in addition to the default modules and/or default modules that should be excluded.
|
|
104
|
+
* @returns The initialized container.
|
|
98
105
|
*/
|
|
99
|
-
function
|
|
100
|
-
|
|
101
|
-
const modules = [...exports.DEFAULT_MODULES];
|
|
102
|
-
customModules.forEach(customModule => {
|
|
103
|
-
if (customModule instanceof inversify_1.ContainerModule) {
|
|
104
|
-
modules.push(customModule);
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
(0, protocol_1.remove)(modules, customModule.exclude);
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
container.load(...modules);
|
|
111
|
-
return container;
|
|
106
|
+
function initializeDiagramContainer(container, ...containerConfiguration) {
|
|
107
|
+
return (0, protocol_1.initializeContainer)(container, ...exports.DEFAULT_MODULES, ...containerConfiguration);
|
|
112
108
|
}
|
|
113
|
-
exports.
|
|
109
|
+
exports.initializeDiagramContainer = initializeDiagramContainer;
|
|
114
110
|
/**
|
|
115
111
|
* Creates a GLSP Client container with the GLSP default modules and the specified custom `modules`.
|
|
116
112
|
*
|
|
@@ -131,10 +127,10 @@ exports.createDiagramContainer = createDiagramContainer;
|
|
|
131
127
|
* ```
|
|
132
128
|
* @param modules Custom modules to be loaded in addition to the default modules.
|
|
133
129
|
* @returns The created container.
|
|
134
|
-
* @deprecated Please use `
|
|
130
|
+
* @deprecated Please use `initializeDiagramContainer` from `@eclipse-glsp/client` instead
|
|
135
131
|
*/
|
|
136
132
|
function createClientContainer(...modules) {
|
|
137
|
-
return
|
|
133
|
+
return initializeDiagramContainer(new inversify_1.Container(), ...modules);
|
|
138
134
|
}
|
|
139
135
|
exports.createClientContainer = createClientContainer;
|
|
140
136
|
//# sourceMappingURL=container-modules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-modules.js","sourceRoot":"","sources":["../../src/base/container-modules.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,
|
|
1
|
+
{"version":3,"file":"container-modules.js","sourceRoot":"","sources":["../../src/base/container-modules.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,qDAAqF;AACrF,yCAAuD;AACvD,qCAYiB;AACjB,kEAAmE;AACnE,4DAA4D;AAC5D,qEAA6E;AAC7E,kEAAuE;AACvE,gEAA6E;AAC7E,gEAAoE;AACpE,gEAAmE;AACnE,4DAA4D;AAC5D,2DAA2D;AAC3D,4DAA0D;AAC1D,6DAAwD;AACxD,iEAAmE;AACnE,iEAAgE;AAChE,6DAA4D;AAC5D,2EAAkF;AAClF,oEAAqE;AACrE,mEAAmE;AACnE,4DAA+F;AAC/F,iEAA2F;AAC3F,+DAAgE;AAChE,4CAA4C;AAE/B,QAAA,eAAe,GAAG;IAC3B,uBAAa;IACb,oBAAiB;IACjB,sBAAY;IACZ,gCAAsB;IACtB,0BAAgB;IAChB,sBAAY;IACZ,mBAAgB;IAChB,oBAAU;IACV,mBAAgB;IAChB,mBAAwB;IACxB,mBAAqB;IACrB,mBAAoB;IACpB,mBAAmB;IACnB,oBAAe;IACf,oBAAmB;IACnB,oBAAgB;IAChB,qCAAyB;IACzB,oBAAkB;IAClB,2BAAiB;IACjB,oBAAY;IACZ,kCAAqB;IACrB,mBAAgB;IAChB,2BAAiB;IACjB,oBAAwB;IACxB,oBAAgB;IAChB,oBAAU;IACV,oBAAiB;IACjB,uBAAa;IACb,oBAAkB;IAClB,wBAAW;IACX,gDAAmC;IACnC,6BAAgB;IAChB,sBAAY;IACZ,mBAAiB;CACX,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAgB,0BAA0B,CAAC,SAAoB,EAAE,GAAG,sBAA8C;IAC9G,OAAO,IAAA,8BAAmB,EAAC,SAAS,EAAE,GAAG,uBAAe,EAAE,GAAG,sBAAsB,CAAC,CAAC;AACzF,CAAC;AAFD,gEAEC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,qBAAqB,CAAC,GAAG,OAA0B;IAC/D,OAAO,0BAA0B,CAAC,IAAI,qBAAS,EAAE,EAAE,GAAG,OAAO,CAAC,CAAC;AACnE,CAAC;AAFD,sDAEC"}
|
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
|
|
@@ -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,EAA+B,gBAAgB,EAAqB,MAAM,wBAAwB,CAAC;AAC1G,OAAO,mCAAmC,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEvD,OAAO,4BAA4B,CAAC;AAcpC,QAAA,MAAM,iBAAiB,iBAoCrB,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"}
|