@eclipse-glsp/client 1.1.0-next.976795c.271 → 1.1.0-next.97ea035.286
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/glsp-sprotty.css +5 -4
- package/css/keyboard-tool-palette.css +66 -0
- package/css/keyboard.css +50 -0
- package/lib/base/action-dispatcher.d.ts +9 -3
- package/lib/base/action-dispatcher.d.ts.map +1 -1
- package/lib/base/action-dispatcher.js +20 -12
- package/lib/base/action-dispatcher.js.map +1 -1
- package/lib/base/action-dispatcher.spec.d.ts +2 -0
- package/lib/base/action-dispatcher.spec.d.ts.map +1 -0
- package/lib/base/action-dispatcher.spec.js +78 -0
- package/lib/base/action-dispatcher.spec.js.map +1 -0
- package/lib/base/action-handler-registry.d.ts +25 -0
- package/lib/base/action-handler-registry.d.ts.map +1 -0
- package/lib/{features/tools/base-glsp-creation-tool.js → base/action-handler-registry.js} +20 -25
- package/lib/base/action-handler-registry.js.map +1 -0
- package/lib/base/args-feature.d.ts +30 -0
- package/lib/base/args-feature.d.ts.map +1 -0
- package/lib/base/args-feature.js +13 -0
- package/lib/base/args-feature.js.map +1 -0
- package/lib/base/auto-complete/auto-complete-actions.d.ts +2 -1
- package/lib/base/auto-complete/auto-complete-actions.d.ts.map +1 -1
- package/lib/base/auto-complete/auto-complete-actions.js +2 -2
- package/lib/base/auto-complete/auto-complete-actions.js.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.d.ts +7 -7
- package/lib/base/auto-complete/auto-complete-widget.d.ts.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.js +9 -9
- package/lib/base/auto-complete/auto-complete-widget.js.map +1 -1
- package/lib/{features/autocomplete-palette → base/auto-complete}/autocomplete-suggestion-providers.d.ts +3 -3
- package/lib/base/auto-complete/autocomplete-suggestion-providers.d.ts.map +1 -0
- package/lib/base/auto-complete/autocomplete-suggestion-providers.js.map +1 -0
- package/lib/{features/autocomplete-palette → base/auto-complete}/base-autocomplete-palette.d.ts +13 -8
- package/lib/base/auto-complete/base-autocomplete-palette.d.ts.map +1 -0
- package/lib/{features/autocomplete-palette → base/auto-complete}/base-autocomplete-palette.js +12 -6
- package/lib/base/auto-complete/base-autocomplete-palette.js.map +1 -0
- package/lib/base/auto-complete/validation-decorator.d.ts +1 -1
- package/lib/base/auto-complete/validation-decorator.d.ts.map +1 -1
- package/lib/base/auto-complete/validation-decorator.js +5 -5
- package/lib/base/auto-complete/validation-decorator.js.map +1 -1
- package/lib/base/command-stack.d.ts +8 -8
- package/lib/base/command-stack.d.ts.map +1 -1
- package/lib/base/command-stack.js +6 -6
- package/lib/base/command-stack.js.map +1 -1
- package/lib/base/default.module.d.ts +1 -1
- package/lib/base/default.module.d.ts.map +1 -1
- package/lib/base/default.module.js +35 -33
- package/lib/base/default.module.js.map +1 -1
- package/lib/base/drag-aware-mouse-listener.d.ts +6 -6
- package/lib/base/drag-aware-mouse-listener.d.ts.map +1 -1
- package/lib/base/drag-aware-mouse-listener.js +2 -2
- package/lib/base/drag-aware-mouse-listener.js.map +1 -1
- package/lib/base/editor-context-service.d.ts +3 -4
- package/lib/base/editor-context-service.d.ts.map +1 -1
- package/lib/base/editor-context-service.js +13 -16
- package/lib/base/editor-context-service.js.map +1 -1
- package/lib/base/feedback/css-feedback.d.ts +6 -5
- package/lib/base/feedback/css-feedback.d.ts.map +1 -1
- package/lib/base/feedback/css-feedback.js +8 -7
- package/lib/base/feedback/css-feedback.js.map +1 -1
- package/lib/base/feedback/feedback-action-dispatcher.d.ts +3 -3
- package/lib/base/feedback/feedback-action-dispatcher.d.ts.map +1 -1
- package/lib/base/feedback/feedback-action-dispatcher.js +9 -7
- package/lib/base/feedback/feedback-action-dispatcher.js.map +1 -1
- package/lib/base/feedback/feedback-command.d.ts +1 -1
- package/lib/base/feedback/feedback-command.d.ts.map +1 -1
- package/lib/base/feedback/feedback-command.js +2 -2
- package/lib/base/feedback/feedback-command.js.map +1 -1
- package/lib/base/feedback/update-model-command.d.ts +3 -3
- package/lib/base/feedback/update-model-command.d.ts.map +1 -1
- package/lib/base/feedback/update-model-command.js +8 -8
- package/lib/base/feedback/update-model-command.js.map +1 -1
- package/lib/base/focus/focus-state-change-action.d.ts +1 -1
- package/lib/base/focus/focus-state-change-action.d.ts.map +1 -1
- package/lib/base/focus/focus-state-change-action.js +2 -2
- package/lib/base/focus/focus-state-change-action.js.map +1 -1
- package/lib/base/focus/focus-tracker.d.ts +5 -1
- package/lib/base/focus/focus-tracker.d.ts.map +1 -1
- package/lib/base/focus/focus-tracker.js +14 -7
- package/lib/base/focus/focus-tracker.js.map +1 -1
- package/lib/base/model/diagram-loader.d.ts +36 -8
- package/lib/base/model/diagram-loader.d.ts.map +1 -1
- package/lib/base/model/diagram-loader.js +43 -29
- package/lib/base/model/diagram-loader.js.map +1 -1
- package/lib/base/model/glsp-model-source.d.ts +24 -9
- package/lib/base/model/glsp-model-source.d.ts.map +1 -1
- package/lib/base/model/glsp-model-source.js +67 -32
- package/lib/base/model/glsp-model-source.js.map +1 -1
- package/lib/base/{model-initialization-constraint.d.ts → model/model-initialization-constraint.d.ts} +24 -3
- package/lib/base/model/model-initialization-constraint.d.ts.map +1 -0
- package/lib/base/{model-initialization-constraint.js → model/model-initialization-constraint.js} +23 -13
- package/lib/base/model/model-initialization-constraint.js.map +1 -0
- package/lib/base/model/model-initialization-constraint.spec.d.ts +2 -0
- package/lib/base/model/model-initialization-constraint.spec.d.ts.map +1 -0
- package/lib/base/model/model-initialization-constraint.spec.js +97 -0
- package/lib/base/model/model-initialization-constraint.spec.js.map +1 -0
- package/lib/base/model/model-registry.d.ts +24 -3
- package/lib/base/model/model-registry.d.ts.map +1 -1
- package/lib/base/model/model-registry.js +22 -5
- package/lib/base/model/model-registry.js.map +1 -1
- package/lib/base/ranked.js +2 -2
- package/lib/base/ranked.js.map +1 -1
- package/lib/base/selection-clearing-mouse-listener.d.ts +2 -2
- package/lib/base/selection-clearing-mouse-listener.d.ts.map +1 -1
- package/lib/base/selection-clearing-mouse-listener.js +2 -2
- package/lib/base/selection-clearing-mouse-listener.js.map +1 -1
- package/lib/base/selection-service.d.ts +17 -17
- package/lib/base/selection-service.d.ts.map +1 -1
- package/lib/base/selection-service.js +26 -26
- package/lib/base/selection-service.js.map +1 -1
- package/lib/base/selection-service.spec.js +14 -14
- package/lib/base/selection-service.spec.js.map +1 -1
- package/lib/base/tool-manager/tool-manager.d.ts +82 -0
- package/lib/base/tool-manager/tool-manager.d.ts.map +1 -0
- package/lib/base/tool-manager/tool-manager.js +140 -0
- package/lib/base/tool-manager/tool-manager.js.map +1 -0
- package/lib/base/tool-manager/tool.d.ts +54 -0
- package/lib/base/tool-manager/tool.d.ts.map +1 -0
- package/lib/base/tool-manager/tool.js +60 -0
- package/lib/base/tool-manager/tool.js.map +1 -0
- package/lib/base/view/key-tool.d.ts +1 -1
- package/lib/base/view/key-tool.d.ts.map +1 -1
- package/lib/base/view/key-tool.js +3 -3
- package/lib/base/view/key-tool.js.map +1 -1
- package/lib/base/view/mouse-tool.d.ts +4 -4
- package/lib/base/view/mouse-tool.d.ts.map +1 -1
- package/lib/base/view/mouse-tool.js +5 -5
- package/lib/base/view/mouse-tool.js.map +1 -1
- package/lib/base/view/view-registry.d.ts +20 -2
- package/lib/base/view/view-registry.d.ts.map +1 -1
- package/lib/base/view/view-registry.js +10 -5
- package/lib/base/view/view-registry.js.map +1 -1
- package/lib/default-modules.d.ts +3 -26
- package/lib/default-modules.d.ts.map +1 -1
- package/lib/default-modules.js +15 -42
- package/lib/default-modules.js.map +1 -1
- package/lib/features/accessibility/accessibility-module.d.ts +1 -1
- package/lib/features/accessibility/accessibility-module.d.ts.map +1 -1
- package/lib/features/accessibility/accessibility-module.js +6 -2
- package/lib/features/accessibility/accessibility-module.js.map +1 -1
- package/lib/features/accessibility/actions.d.ts +26 -0
- package/lib/features/accessibility/actions.d.ts.map +1 -0
- package/lib/features/accessibility/actions.js +32 -0
- package/lib/features/accessibility/actions.js.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/action.d.ts +27 -0
- package/lib/features/accessibility/edge-autocomplete/action.d.ts.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/action.js +32 -0
- package/lib/features/accessibility/edge-autocomplete/action.js.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-context.d.ts +23 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-context.d.ts.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-context.js +18 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-context.js.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-palette.d.ts +28 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-palette.d.ts.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-palette.js +135 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-palette.js.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-tool.d.ts +14 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-tool.d.ts.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-tool.js +70 -0
- package/lib/features/accessibility/edge-autocomplete/edge-autocomplete-tool.js.map +1 -0
- package/lib/features/accessibility/element-navigation/diagram-navigation-tool.d.ts +13 -13
- package/lib/features/accessibility/element-navigation/diagram-navigation-tool.d.ts.map +1 -1
- package/lib/features/accessibility/element-navigation/diagram-navigation-tool.js +41 -43
- package/lib/features/accessibility/element-navigation/diagram-navigation-tool.js.map +1 -1
- package/lib/features/accessibility/element-navigation/element-navigation-module.d.ts +1 -1
- package/lib/features/accessibility/element-navigation/element-navigation-module.d.ts.map +1 -1
- package/lib/features/accessibility/element-navigation/element-navigation-module.js +4 -4
- package/lib/features/accessibility/element-navigation/element-navigation-module.js.map +1 -1
- package/lib/features/accessibility/element-navigation/element-navigator.d.ts +8 -8
- package/lib/features/accessibility/element-navigation/element-navigator.d.ts.map +1 -1
- package/lib/features/accessibility/element-navigation/left-right-top-bottom-navigator.d.ts +8 -8
- package/lib/features/accessibility/element-navigation/left-right-top-bottom-navigator.d.ts.map +1 -1
- package/lib/features/accessibility/element-navigation/left-right-top-bottom-navigator.js +13 -12
- package/lib/features/accessibility/element-navigation/left-right-top-bottom-navigator.js.map +1 -1
- package/lib/features/accessibility/element-navigation/local-element-navigator.d.ts +13 -13
- package/lib/features/accessibility/element-navigation/local-element-navigator.d.ts.map +1 -1
- package/lib/features/accessibility/element-navigation/local-element-navigator.js +12 -11
- package/lib/features/accessibility/element-navigation/local-element-navigator.js.map +1 -1
- package/lib/features/accessibility/element-navigation/position-navigator.d.ts +12 -12
- package/lib/features/accessibility/element-navigation/position-navigator.d.ts.map +1 -1
- package/lib/features/accessibility/element-navigation/position-navigator.js +5 -5
- package/lib/features/accessibility/element-navigation/position-navigator.js.map +1 -1
- package/lib/features/accessibility/focus-tracker/focus-tracker-module.d.ts +1 -1
- package/lib/features/accessibility/focus-tracker/focus-tracker-module.d.ts.map +1 -1
- package/lib/features/accessibility/focus-tracker/focus-tracker-module.js +2 -2
- package/lib/features/accessibility/focus-tracker/focus-tracker-module.js.map +1 -1
- package/lib/features/accessibility/focus-tracker/focus-tracker-tool.d.ts +3 -3
- package/lib/features/accessibility/focus-tracker/focus-tracker-tool.d.ts.map +1 -1
- package/lib/features/accessibility/focus-tracker/focus-tracker-tool.js +5 -5
- package/lib/features/accessibility/focus-tracker/focus-tracker-tool.js.map +1 -1
- package/lib/features/accessibility/global-keylistener-tool.d.ts +20 -0
- package/lib/features/accessibility/global-keylistener-tool.d.ts.map +1 -0
- package/lib/features/accessibility/global-keylistener-tool.js +109 -0
- package/lib/features/accessibility/global-keylistener-tool.js.map +1 -0
- package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.d.ts +4 -4
- package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.d.ts.map +1 -1
- package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.js +8 -8
- package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.js.map +1 -1
- package/lib/features/accessibility/key-shortcut/accessible-key-shortcut.d.ts +2 -2
- package/lib/features/accessibility/key-shortcut/accessible-key-shortcut.d.ts.map +1 -1
- package/lib/features/accessibility/key-shortcut/accessible-key-shortcut.js +4 -4
- package/lib/features/accessibility/key-shortcut/accessible-key-shortcut.js.map +1 -1
- package/lib/features/accessibility/key-shortcut/di.config.d.ts +1 -1
- package/lib/features/accessibility/key-shortcut/di.config.d.ts.map +1 -1
- package/lib/features/accessibility/key-shortcut/di.config.js +4 -4
- package/lib/features/accessibility/key-shortcut/di.config.js.map +1 -1
- package/lib/features/accessibility/keyboard-grid/action.d.ts +57 -0
- package/lib/features/accessibility/keyboard-grid/action.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-grid/action.js +65 -0
- package/lib/features/accessibility/keyboard-grid/action.js.map +1 -0
- package/lib/{base/argumentable.d.ts → features/accessibility/keyboard-grid/constants.d.ts} +8 -6
- package/lib/features/accessibility/keyboard-grid/constants.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-grid/constants.js +28 -0
- package/lib/features/accessibility/keyboard-grid/constants.js.map +1 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-grid-search-palette.d.ts +34 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-grid-search-palette.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-grid-search-palette.js +69 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-grid-search-palette.js.map +1 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-grid.d.ts +38 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-grid.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-grid.js +173 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-grid.js.map +1 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-node-grid.d.ts +29 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-node-grid.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-node-grid.js +74 -0
- package/lib/features/accessibility/keyboard-grid/keyboard-node-grid.js.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/actions.d.ts +27 -0
- package/lib/features/accessibility/keyboard-pointer/actions.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/actions.js +32 -0
- package/lib/features/accessibility/keyboard-pointer/actions.js.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/constants.d.ts +22 -0
- package/lib/features/accessibility/keyboard-pointer/constants.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/constants.js +26 -0
- package/lib/features/accessibility/keyboard-pointer/constants.js.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-listener.d.ts +39 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-listener.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-listener.js +118 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-listener.js.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.d.ts +22 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.js +53 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.js.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-position.d.ts +35 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-position.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-position.js +67 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-position.js.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer.d.ts +23 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer.js +122 -0
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer.js.map +1 -0
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.d.ts +20 -0
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.js +37 -0
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.js.map +1 -0
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.d.ts +37 -0
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.js +460 -0
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.js.map +1 -0
- package/lib/features/accessibility/move-zoom/move-handler.d.ts +5 -5
- package/lib/features/accessibility/move-zoom/move-handler.d.ts.map +1 -1
- package/lib/features/accessibility/move-zoom/move-handler.js +11 -11
- package/lib/features/accessibility/move-zoom/move-handler.js.map +1 -1
- package/lib/features/accessibility/move-zoom/move-zoom-module.d.ts +1 -1
- package/lib/features/accessibility/move-zoom/move-zoom-module.d.ts.map +1 -1
- package/lib/features/accessibility/move-zoom/move-zoom-module.js +6 -6
- package/lib/features/accessibility/move-zoom/move-zoom-module.js.map +1 -1
- package/lib/features/accessibility/move-zoom/zoom-handler.d.ts +6 -6
- package/lib/features/accessibility/move-zoom/zoom-handler.d.ts.map +1 -1
- package/lib/features/accessibility/move-zoom/zoom-handler.js +14 -14
- package/lib/features/accessibility/move-zoom/zoom-handler.js.map +1 -1
- package/lib/features/accessibility/resize-key-tool/resize-key-handler.d.ts +2 -2
- package/lib/features/accessibility/resize-key-tool/resize-key-handler.d.ts.map +1 -1
- package/lib/features/accessibility/resize-key-tool/resize-key-handler.js +7 -7
- package/lib/features/accessibility/resize-key-tool/resize-key-handler.js.map +1 -1
- package/lib/features/accessibility/resize-key-tool/resize-key-module.d.ts +1 -1
- package/lib/features/accessibility/resize-key-tool/resize-key-module.d.ts.map +1 -1
- package/lib/features/accessibility/resize-key-tool/resize-key-module.js +4 -4
- package/lib/features/accessibility/resize-key-tool/resize-key-module.js.map +1 -1
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.d.ts +4 -4
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.d.ts.map +1 -1
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.js +21 -24
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.js.map +1 -1
- package/lib/features/accessibility/search/search-palette-module.d.ts +1 -1
- package/lib/features/accessibility/search/search-palette-module.d.ts.map +1 -1
- package/lib/features/accessibility/search/search-palette-module.js +4 -4
- package/lib/features/accessibility/search/search-palette-module.js.map +1 -1
- package/lib/features/accessibility/search/search-palette.d.ts +22 -17
- package/lib/features/accessibility/search/search-palette.d.ts.map +1 -1
- package/lib/features/accessibility/search/search-palette.js +37 -15
- package/lib/features/accessibility/search/search-palette.js.map +1 -1
- package/lib/features/accessibility/search/search-tool.d.ts +3 -2
- package/lib/features/accessibility/search/search-tool.d.ts.map +1 -1
- package/lib/features/accessibility/search/search-tool.js +10 -14
- package/lib/features/accessibility/search/search-tool.js.map +1 -1
- package/lib/features/accessibility/toast/messages.json +3 -1
- package/lib/features/accessibility/toast/toast-handler.d.ts +1 -1
- package/lib/features/accessibility/toast/toast-handler.d.ts.map +1 -1
- package/lib/features/accessibility/toast/toast-handler.js +3 -3
- package/lib/features/accessibility/toast/toast-handler.js.map +1 -1
- package/lib/features/accessibility/toast/toast-module.d.ts +1 -1
- package/lib/features/accessibility/toast/toast-module.d.ts.map +1 -1
- package/lib/features/accessibility/toast/toast-module.js +5 -5
- package/lib/features/accessibility/toast/toast-module.js.map +1 -1
- package/lib/features/accessibility/toast/toast-tool.d.ts +1 -1
- package/lib/features/accessibility/toast/toast-tool.d.ts.map +1 -1
- package/lib/features/accessibility/toast/toast-tool.js +3 -3
- package/lib/features/accessibility/toast/toast-tool.js.map +1 -1
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.d.ts +4 -4
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.d.ts.map +1 -1
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.js +8 -8
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.js.map +1 -1
- package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts +4 -4
- package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts.map +1 -1
- package/lib/features/accessibility/view-key-tools/movement-key-tool.js +10 -14
- package/lib/features/accessibility/view-key-tools/movement-key-tool.js.map +1 -1
- package/lib/features/accessibility/view-key-tools/view-key-tools-module.d.ts +2 -2
- package/lib/features/accessibility/view-key-tools/view-key-tools-module.d.ts.map +1 -1
- package/lib/features/accessibility/view-key-tools/view-key-tools-module.js +8 -5
- package/lib/features/accessibility/view-key-tools/view-key-tools-module.js.map +1 -1
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts +9 -4
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts.map +1 -1
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.js +83 -20
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.js.map +1 -1
- package/lib/features/bounds/bounds-module.d.ts +1 -1
- package/lib/features/bounds/bounds-module.d.ts.map +1 -1
- package/lib/features/bounds/bounds-module.js +12 -11
- package/lib/features/bounds/bounds-module.js.map +1 -1
- package/lib/features/bounds/freeform-layout.d.ts +5 -5
- package/lib/features/bounds/freeform-layout.d.ts.map +1 -1
- package/lib/features/bounds/freeform-layout.js +3 -3
- package/lib/features/bounds/freeform-layout.js.map +1 -1
- package/lib/features/bounds/freeform-layout.spec.js +32 -32
- package/lib/features/bounds/freeform-layout.spec.js.map +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts +3 -3
- package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts.map +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.js +9 -9
- package/lib/features/bounds/glsp-hidden-bounds-updater.js.map +1 -1
- package/lib/features/bounds/hbox-layout.d.ts +10 -10
- package/lib/features/bounds/hbox-layout.d.ts.map +1 -1
- package/lib/features/bounds/hbox-layout.js +9 -9
- package/lib/features/bounds/hbox-layout.js.map +1 -1
- package/lib/features/bounds/hbox-layout.spec.js +6 -6
- package/lib/features/bounds/hbox-layout.spec.js.map +1 -1
- package/lib/features/bounds/layouter-test-util.spec.d.ts +11 -11
- package/lib/features/bounds/layouter-test-util.spec.d.ts.map +1 -1
- package/lib/features/bounds/layouter-test-util.spec.js +20 -20
- package/lib/features/bounds/layouter-test-util.spec.js.map +1 -1
- package/lib/features/bounds/layouter.d.ts +7 -7
- package/lib/features/bounds/layouter.d.ts.map +1 -1
- package/lib/features/bounds/layouter.js +8 -8
- package/lib/features/bounds/layouter.js.map +1 -1
- package/lib/features/bounds/vbox-layout.d.ts +10 -10
- package/lib/features/bounds/vbox-layout.d.ts.map +1 -1
- package/lib/features/bounds/vbox-layout.js +9 -9
- package/lib/features/bounds/vbox-layout.js.map +1 -1
- package/lib/features/bounds/vbox-layout.spec.js +6 -6
- package/lib/features/bounds/vbox-layout.spec.js.map +1 -1
- package/lib/features/change-bounds/model.d.ts +6 -6
- package/lib/features/change-bounds/model.d.ts.map +1 -1
- package/lib/features/change-bounds/model.js +5 -5
- package/lib/features/change-bounds/model.js.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.d.ts +6 -6
- package/lib/features/change-bounds/movement-restrictor.d.ts.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.js +4 -4
- package/lib/features/change-bounds/movement-restrictor.js.map +1 -1
- package/lib/features/change-bounds/snap.d.ts +4 -4
- package/lib/features/change-bounds/snap.d.ts.map +1 -1
- package/lib/features/change-bounds/snap.js +2 -2
- package/lib/features/change-bounds/snap.js.map +1 -1
- package/lib/features/change-bounds/snap.spec.js +5 -5
- package/lib/features/change-bounds/snap.spec.js.map +1 -1
- package/lib/features/command-palette/command-palette-module.d.ts +1 -1
- package/lib/features/command-palette/command-palette-module.d.ts.map +1 -1
- package/lib/features/command-palette/command-palette-module.js +6 -6
- package/lib/features/command-palette/command-palette-module.js.map +1 -1
- package/lib/features/command-palette/command-palette-tool.d.ts +2 -1
- package/lib/features/command-palette/command-palette-tool.d.ts.map +1 -1
- package/lib/features/command-palette/command-palette-tool.js +4 -4
- package/lib/features/command-palette/command-palette-tool.js.map +1 -1
- package/lib/features/command-palette/server-command-palette-provider.d.ts +2 -2
- package/lib/features/command-palette/server-command-palette-provider.d.ts.map +1 -1
- package/lib/features/command-palette/server-command-palette-provider.js +7 -6
- package/lib/features/command-palette/server-command-palette-provider.js.map +1 -1
- package/lib/features/context-menu/context-menu-module.d.ts +1 -1
- package/lib/features/context-menu/context-menu-module.d.ts.map +1 -1
- package/lib/features/context-menu/context-menu-module.js +13 -13
- package/lib/features/context-menu/context-menu-module.js.map +1 -1
- package/lib/features/context-menu/delete-element-context-menu.d.ts +2 -2
- package/lib/features/context-menu/delete-element-context-menu.d.ts.map +1 -1
- package/lib/features/context-menu/delete-element-context-menu.js +3 -3
- package/lib/features/context-menu/delete-element-context-menu.js.map +1 -1
- package/lib/features/context-menu/{selection-service-aware-context-menu-mouse-listener.d.ts → glsp-context-menu-mouse-listener.d.ts} +4 -4
- package/lib/features/context-menu/glsp-context-menu-mouse-listener.d.ts.map +1 -0
- package/lib/features/context-menu/{selection-service-aware-context-menu-mouse-listener.js → glsp-context-menu-mouse-listener.js} +6 -6
- package/lib/features/context-menu/glsp-context-menu-mouse-listener.js.map +1 -0
- package/lib/features/context-menu/server-context-menu-provider.d.ts +2 -2
- package/lib/features/context-menu/server-context-menu-provider.d.ts.map +1 -1
- package/lib/features/context-menu/server-context-menu-provider.js +8 -7
- package/lib/features/context-menu/server-context-menu-provider.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts +2 -2
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.js +5 -8
- package/lib/features/copy-paste/copy-paste-context-menu.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.d.ts +1 -1
- package/lib/features/copy-paste/copy-paste-handler.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.js +7 -7
- package/lib/features/copy-paste/copy-paste-handler.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-modules.d.ts +1 -1
- package/lib/features/copy-paste/copy-paste-modules.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-modules.js +7 -7
- package/lib/features/copy-paste/copy-paste-modules.js.map +1 -1
- package/lib/features/decoration/decoration-module.d.ts +1 -1
- package/lib/features/decoration/decoration-module.d.ts.map +1 -1
- package/lib/features/decoration/decoration-module.js +3 -3
- package/lib/features/decoration/decoration-module.js.map +1 -1
- package/lib/features/decoration/decoration-placer.d.ts +2 -2
- package/lib/features/decoration/decoration-placer.d.ts.map +1 -1
- package/lib/features/decoration/decoration-placer.js +5 -5
- package/lib/features/decoration/decoration-placer.js.map +1 -1
- package/lib/features/export/export-modules.d.ts +1 -1
- package/lib/features/export/export-modules.d.ts.map +1 -1
- package/lib/features/export/export-modules.js +8 -8
- package/lib/features/export/export-modules.js.map +1 -1
- package/lib/features/export/export-svg-action-handler.d.ts +1 -1
- package/lib/features/export/export-svg-action-handler.d.ts.map +1 -1
- package/lib/features/export/glsp-svg-exporter.d.ts +2 -2
- package/lib/features/export/glsp-svg-exporter.d.ts.map +1 -1
- package/lib/features/export/glsp-svg-exporter.js +3 -3
- package/lib/features/export/glsp-svg-exporter.js.map +1 -1
- package/lib/features/hints/model.d.ts +12 -6
- package/lib/features/hints/model.d.ts.map +1 -1
- package/lib/features/hints/model.js.map +1 -1
- package/lib/features/hints/type-hint-provider.d.ts +81 -0
- package/lib/features/hints/type-hint-provider.d.ts.map +1 -0
- package/lib/features/hints/{type-hints.js → type-hint-provider.js} +86 -72
- package/lib/features/hints/type-hint-provider.js.map +1 -0
- package/lib/features/hints/type-hint-provider.spec.d.ts +2 -0
- package/lib/features/hints/type-hint-provider.spec.d.ts.map +1 -0
- package/lib/features/hints/type-hint-provider.spec.js +333 -0
- package/lib/features/hints/type-hint-provider.spec.js.map +1 -0
- package/lib/features/hints/type-hints-module.d.ts +1 -1
- package/lib/features/hints/type-hints-module.d.ts.map +1 -1
- package/lib/features/hints/type-hints-module.js +7 -7
- package/lib/features/hints/type-hints-module.js.map +1 -1
- package/lib/features/hover/hover-module.d.ts +1 -1
- package/lib/features/hover/hover-module.d.ts.map +1 -1
- package/lib/features/hover/hover-module.js +20 -19
- package/lib/features/hover/hover-module.js.map +1 -1
- package/lib/features/hover/hover.d.ts +5 -5
- package/lib/features/hover/hover.d.ts.map +1 -1
- package/lib/features/hover/hover.js +9 -8
- package/lib/features/hover/hover.js.map +1 -1
- package/lib/features/label-edit/edit-label-tool.d.ts +3 -3
- package/lib/features/label-edit/edit-label-tool.d.ts.map +1 -1
- package/lib/features/label-edit/edit-label-tool.js +5 -5
- package/lib/features/label-edit/edit-label-tool.js.map +1 -1
- package/lib/features/label-edit/edit-label-validator.d.ts +2 -2
- package/lib/features/label-edit/edit-label-validator.d.ts.map +1 -1
- package/lib/features/label-edit/edit-label-validator.js +9 -8
- package/lib/features/label-edit/edit-label-validator.js.map +1 -1
- package/lib/features/label-edit/label-edit-module.d.ts +1 -1
- package/lib/features/label-edit/label-edit-module.d.ts.map +1 -1
- package/lib/features/label-edit/label-edit-module.js +6 -6
- package/lib/features/label-edit/label-edit-module.js.map +1 -1
- package/lib/features/layout/layout-elements-action.d.ts +5 -5
- package/lib/features/layout/layout-elements-action.d.ts.map +1 -1
- package/lib/features/layout/layout-elements-action.js +15 -15
- 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 +24 -17
- package/lib/features/layout/layout-elements-action.spec.js.map +1 -1
- package/lib/features/layout/layout-module.d.ts +1 -1
- package/lib/features/layout/layout-module.d.ts.map +1 -1
- package/lib/features/layout/layout-module.js +4 -4
- package/lib/features/layout/layout-module.js.map +1 -1
- package/lib/features/navigation/navigation-action-handler.d.ts +1 -1
- package/lib/features/navigation/navigation-action-handler.d.ts.map +1 -1
- package/lib/features/navigation/navigation-action-handler.js +18 -21
- package/lib/features/navigation/navigation-action-handler.js.map +1 -1
- package/lib/features/navigation/navigation-module.d.ts +1 -1
- package/lib/features/navigation/navigation-module.d.ts.map +1 -1
- package/lib/features/navigation/navigation-module.js +6 -6
- package/lib/features/navigation/navigation-module.js.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.d.ts +1 -1
- package/lib/features/navigation/navigation-target-resolver.d.ts.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.js +8 -8
- package/lib/features/navigation/navigation-target-resolver.js.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.spec.js +15 -15
- package/lib/features/navigation/navigation-target-resolver.spec.js.map +1 -1
- package/lib/features/reconnect/model.d.ts +13 -10
- package/lib/features/reconnect/model.d.ts.map +1 -1
- package/lib/features/reconnect/model.js +11 -11
- package/lib/features/reconnect/model.js.map +1 -1
- package/lib/features/routing/glsp-manhattan-edge-router.d.ts +2 -2
- package/lib/features/routing/glsp-manhattan-edge-router.d.ts.map +1 -1
- package/lib/features/routing/glsp-manhattan-edge-router.js +5 -5
- package/lib/features/routing/glsp-manhattan-edge-router.js.map +1 -1
- package/lib/features/routing/routing-module.d.ts +1 -1
- package/lib/features/routing/routing-module.d.ts.map +1 -1
- package/lib/features/routing/routing-module.js +17 -17
- package/lib/features/routing/routing-module.js.map +1 -1
- package/lib/features/save/save-keylistener.d.ts +2 -2
- package/lib/features/save/save-keylistener.d.ts.map +1 -1
- package/lib/features/save/save-keylistener.js +4 -4
- package/lib/features/save/save-keylistener.js.map +1 -1
- package/lib/features/save/save-module.d.ts +1 -1
- package/lib/features/save/save-module.d.ts.map +1 -1
- package/lib/features/save/save-module.js +3 -3
- package/lib/features/save/save-module.js.map +1 -1
- package/lib/features/select/select-feedback-command.d.ts +4 -4
- package/lib/features/select/select-feedback-command.d.ts.map +1 -1
- package/lib/features/select/select-feedback-command.js +4 -4
- package/lib/features/select/select-feedback-command.js.map +1 -1
- package/lib/features/select/select-module.d.ts +1 -1
- package/lib/features/select/select-module.d.ts.map +1 -1
- package/lib/features/select/select-module.js +8 -8
- package/lib/features/select/select-module.js.map +1 -1
- package/lib/features/select/select-mouse-listener.d.ts +4 -4
- package/lib/features/select/select-mouse-listener.d.ts.map +1 -1
- package/lib/features/select/select-mouse-listener.js +6 -6
- package/lib/features/select/select-mouse-listener.js.map +1 -1
- package/lib/features/source-model-watcher/source-model-changed-action-handler.d.ts +1 -1
- 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 +5 -8
- package/lib/features/source-model-watcher/source-model-changed-action-handler.js.map +1 -1
- package/lib/features/source-model-watcher/source-model-wacher-module.d.ts +1 -1
- package/lib/features/source-model-watcher/source-model-wacher-module.d.ts.map +1 -1
- package/lib/features/source-model-watcher/source-model-wacher-module.js +3 -3
- package/lib/features/source-model-watcher/source-model-wacher-module.js.map +1 -1
- package/lib/features/status/status-module.d.ts +1 -1
- package/lib/features/status/status-module.d.ts.map +1 -1
- package/lib/features/status/status-module.js +5 -5
- package/lib/features/status/status-module.js.map +1 -1
- package/lib/features/status/status-overlay.d.ts +4 -4
- package/lib/features/status/status-overlay.d.ts.map +1 -1
- package/lib/features/status/status-overlay.js +8 -8
- package/lib/features/status/status-overlay.js.map +1 -1
- package/lib/features/svg-metadata/metadata-placer.d.ts +2 -2
- package/lib/features/svg-metadata/metadata-placer.d.ts.map +1 -1
- package/lib/features/svg-metadata/metadata-placer.js +12 -11
- package/lib/features/svg-metadata/metadata-placer.js.map +1 -1
- package/lib/features/svg-metadata/svg-metadata-module.d.ts +1 -1
- package/lib/features/svg-metadata/svg-metadata-module.d.ts.map +1 -1
- package/lib/features/svg-metadata/svg-metadata-module.js +3 -3
- package/lib/features/svg-metadata/svg-metadata-module.js.map +1 -1
- package/lib/features/tool-palette/tool-palette-module.d.ts +1 -1
- package/lib/features/tool-palette/tool-palette-module.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette-module.js +6 -5
- package/lib/features/tool-palette/tool-palette-module.js.map +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts +7 -7
- package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette.js +18 -20
- package/lib/features/tool-palette/tool-palette.js.map +1 -1
- package/lib/features/tools/{base-glsp-tool.d.ts → base-tools.d.ts} +17 -6
- package/lib/features/tools/base-tools.d.ts.map +1 -0
- package/lib/features/tools/{base-glsp-tool.js → base-tools.js} +38 -16
- package/lib/features/tools/base-tools.js.map +1 -0
- package/lib/features/tools/change-bounds/change-boounds-tool-module.d.ts +1 -1
- package/lib/features/tools/change-bounds/change-boounds-tool-module.d.ts.map +1 -1
- package/lib/features/tools/change-bounds/change-boounds-tool-module.js +6 -6
- package/lib/features/tools/change-bounds/change-boounds-tool-module.js.map +1 -1
- package/lib/features/tools/change-bounds/change-bounds-tool-feedback.d.ts +13 -13
- package/lib/features/tools/change-bounds/change-bounds-tool-feedback.d.ts.map +1 -1
- package/lib/features/tools/change-bounds/change-bounds-tool-feedback.js +18 -18
- package/lib/features/tools/change-bounds/change-bounds-tool-feedback.js.map +1 -1
- package/lib/features/tools/change-bounds/change-bounds-tool.d.ts +25 -25
- package/lib/features/tools/change-bounds/change-bounds-tool.d.ts.map +1 -1
- package/lib/features/tools/change-bounds/change-bounds-tool.js +32 -32
- package/lib/features/tools/change-bounds/change-bounds-tool.js.map +1 -1
- package/lib/features/tools/change-bounds/view.d.ts +1 -1
- package/lib/features/tools/change-bounds/view.d.ts.map +1 -1
- package/lib/features/tools/change-bounds/view.js +3 -3
- package/lib/features/tools/change-bounds/view.js.map +1 -1
- package/lib/features/tools/deletion/delete-tool.d.ts +7 -7
- package/lib/features/tools/deletion/delete-tool.d.ts.map +1 -1
- package/lib/features/tools/deletion/delete-tool.js +15 -14
- package/lib/features/tools/deletion/delete-tool.js.map +1 -1
- package/lib/features/tools/deletion/deletion-tool-module.d.ts +1 -1
- package/lib/features/tools/deletion/deletion-tool-module.d.ts.map +1 -1
- package/lib/features/tools/deletion/deletion-tool-module.js +4 -4
- package/lib/features/tools/deletion/deletion-tool-module.js.map +1 -1
- package/lib/features/tools/edge-creation/dangling-edge-feedback.d.ts +11 -11
- package/lib/features/tools/edge-creation/dangling-edge-feedback.d.ts.map +1 -1
- package/lib/features/tools/edge-creation/dangling-edge-feedback.js +14 -14
- package/lib/features/tools/edge-creation/dangling-edge-feedback.js.map +1 -1
- package/lib/features/tools/edge-creation/edege-creation-module.d.ts +1 -1
- package/lib/features/tools/edge-creation/edege-creation-module.d.ts.map +1 -1
- package/lib/features/tools/edge-creation/edege-creation-module.js +4 -4
- package/lib/features/tools/edge-creation/edege-creation-module.js.map +1 -1
- package/lib/features/tools/edge-creation/edge-creation-tool-feedback.d.ts +3 -3
- package/lib/features/tools/edge-creation/edge-creation-tool-feedback.d.ts.map +1 -1
- package/lib/features/tools/edge-creation/edge-creation-tool-feedback.js +12 -12
- package/lib/features/tools/edge-creation/edge-creation-tool-feedback.js.map +1 -1
- package/lib/features/tools/edge-creation/edge-creation-tool.d.ts +18 -10
- package/lib/features/tools/edge-creation/edge-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-creation/edge-creation-tool.js +79 -35
- package/lib/features/tools/edge-creation/edge-creation-tool.js.map +1 -1
- package/lib/features/tools/edge-creation/view.d.ts +2 -2
- package/lib/features/tools/edge-creation/view.d.ts.map +1 -1
- package/lib/features/tools/edge-creation/view.js +3 -3
- package/lib/features/tools/edge-creation/view.js.map +1 -1
- package/lib/features/tools/edge-edit/edge-edit-module.d.ts +1 -1
- package/lib/features/tools/edge-edit/edge-edit-module.d.ts.map +1 -1
- package/lib/features/tools/edge-edit/edge-edit-module.js +7 -7
- package/lib/features/tools/edge-edit/edge-edit-module.js.map +1 -1
- package/lib/features/tools/edge-edit/edge-edit-tool-feedback.d.ts +11 -11
- package/lib/features/tools/edge-edit/edge-edit-tool-feedback.d.ts.map +1 -1
- package/lib/features/tools/edge-edit/edge-edit-tool-feedback.js +34 -34
- package/lib/features/tools/edge-edit/edge-edit-tool-feedback.js.map +1 -1
- package/lib/features/tools/edge-edit/edge-edit-tool.d.ts +17 -17
- package/lib/features/tools/edge-edit/edge-edit-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-edit/edge-edit-tool.js +22 -22
- package/lib/features/tools/edge-edit/edge-edit-tool.js.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-behavior.d.ts +1 -1
- package/lib/features/tools/marquee-selection/marquee-behavior.d.ts.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-behavior.js +3 -3
- package/lib/features/tools/marquee-selection/marquee-behavior.js.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-mouse-tool.d.ts +24 -9
- package/lib/features/tools/marquee-selection/marquee-mouse-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-mouse-tool.js +17 -15
- package/lib/features/tools/marquee-selection/marquee-mouse-tool.js.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-selection-module.d.ts +1 -1
- package/lib/features/tools/marquee-selection/marquee-selection-module.d.ts.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-selection-module.js +7 -7
- package/lib/features/tools/marquee-selection/marquee-selection-module.js.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-tool-feedback.d.ts +4 -4
- package/lib/features/tools/marquee-selection/marquee-tool-feedback.d.ts.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-tool-feedback.js +6 -6
- package/lib/features/tools/marquee-selection/marquee-tool-feedback.js.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-tool.d.ts +4 -4
- package/lib/features/tools/marquee-selection/marquee-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-tool.js +6 -5
- package/lib/features/tools/marquee-selection/marquee-tool.js.map +1 -1
- package/lib/features/tools/marquee-selection/model.d.ts +1 -1
- package/lib/features/tools/marquee-selection/model.d.ts.map +1 -1
- package/lib/features/tools/marquee-selection/model.js +3 -3
- package/lib/features/tools/marquee-selection/model.js.map +1 -1
- package/lib/features/tools/marquee-selection/view.d.ts +1 -1
- package/lib/features/tools/marquee-selection/view.d.ts.map +1 -1
- package/lib/features/tools/marquee-selection/view.js +3 -3
- package/lib/features/tools/marquee-selection/view.js.map +1 -1
- package/lib/features/tools/node-creation/node-creation-module.d.ts +1 -1
- package/lib/features/tools/node-creation/node-creation-module.d.ts.map +1 -1
- package/lib/features/tools/node-creation/node-creation-module.js +4 -4
- package/lib/features/tools/node-creation/node-creation-module.js.map +1 -1
- package/lib/features/tools/node-creation/node-creation-tool.d.ts +6 -6
- package/lib/features/tools/node-creation/node-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/node-creation/node-creation-tool.js +14 -10
- package/lib/features/tools/node-creation/node-creation-tool.js.map +1 -1
- package/lib/features/tools/tool-focus-loss-module.d.ts +1 -1
- package/lib/features/tools/tool-focus-loss-module.d.ts.map +1 -1
- package/lib/features/tools/tool-focus-loss-module.js +5 -4
- package/lib/features/tools/tool-focus-loss-module.js.map +1 -1
- package/lib/features/undo-redo/undo-redo-key-listener.d.ts +2 -2
- package/lib/features/undo-redo/undo-redo-key-listener.d.ts.map +1 -1
- package/lib/features/undo-redo/undo-redo-key-listener.js +6 -6
- package/lib/features/undo-redo/undo-redo-key-listener.js.map +1 -1
- package/lib/features/undo-redo/undo-redo-module.js +2 -2
- package/lib/features/undo-redo/undo-redo-module.js.map +1 -1
- package/lib/features/validation/issue-marker.d.ts +18 -18
- package/lib/features/validation/issue-marker.d.ts.map +1 -1
- package/lib/features/validation/issue-marker.js +28 -28
- package/lib/features/validation/issue-marker.js.map +1 -1
- package/lib/features/validation/marker-navigator.d.ts +35 -19
- package/lib/features/validation/marker-navigator.d.ts.map +1 -1
- package/lib/features/validation/marker-navigator.js +21 -21
- 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 +22 -40
- package/lib/features/validation/marker-navigator.spec.js.map +1 -1
- package/lib/features/validation/validate.d.ts +2 -2
- package/lib/features/validation/validate.d.ts.map +1 -1
- package/lib/features/validation/validate.js +17 -17
- package/lib/features/validation/validate.js.map +1 -1
- package/lib/features/validation/validation-modules.d.ts +1 -1
- package/lib/features/validation/validation-modules.d.ts.map +1 -1
- package/lib/features/validation/validation-modules.js +11 -11
- package/lib/features/validation/validation-modules.js.map +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.d.ts +2 -2
- package/lib/features/viewport/glsp-scroll-mouse-listener.d.ts.map +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.js +5 -4
- package/lib/features/viewport/glsp-scroll-mouse-listener.js.map +1 -1
- package/lib/features/viewport/reposition.d.ts +4 -4
- package/lib/features/viewport/reposition.d.ts.map +1 -1
- package/lib/features/viewport/reposition.js +13 -12
- package/lib/features/viewport/reposition.js.map +1 -1
- package/lib/features/viewport/viewport-handler.d.ts +29 -0
- package/lib/features/viewport/viewport-handler.d.ts.map +1 -0
- package/lib/features/viewport/viewport-handler.js +79 -0
- package/lib/features/viewport/viewport-handler.js.map +1 -0
- package/lib/features/viewport/viewport-modules.d.ts +1 -1
- package/lib/features/viewport/viewport-modules.d.ts.map +1 -1
- package/lib/features/viewport/viewport-modules.js +19 -13
- package/lib/features/viewport/viewport-modules.js.map +1 -1
- package/lib/index.d.ts +17 -16
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +17 -18
- package/lib/index.js.map +1 -1
- package/lib/{lib/model.d.ts → model.d.ts} +10 -7
- package/lib/model.d.ts.map +1 -0
- package/lib/{lib/model.js → model.js} +15 -17
- package/lib/model.js.map +1 -0
- package/lib/standalone-modules.d.ts +1 -1
- package/lib/standalone-modules.d.ts.map +1 -1
- package/lib/standalone-modules.js +7 -7
- package/lib/standalone-modules.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/utils/argument-utils.d.ts +11 -11
- package/lib/utils/argument-utils.d.ts.map +1 -1
- package/lib/utils/argument-utils.js +6 -6
- package/lib/utils/argument-utils.js.map +1 -1
- package/lib/utils/{smodel-util.d.ts → gmodel-util.d.ts} +40 -45
- package/lib/utils/gmodel-util.d.ts.map +1 -0
- package/lib/utils/{smodel-util.js → gmodel-util.js} +31 -40
- package/lib/utils/{smodel-util.js.map → gmodel-util.js.map} +1 -1
- package/lib/utils/gmodel-util.spec.d.ts +2 -0
- package/lib/utils/gmodel-util.spec.d.ts.map +1 -0
- package/lib/utils/{smodel-util.spec.js → gmodel-util.spec.js} +16 -15
- package/lib/utils/gmodel-util.spec.js.map +1 -0
- package/lib/utils/layout-utils.d.ts +8 -8
- 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 +7 -6
- package/lib/utils/marker.d.ts.map +1 -1
- package/lib/utils/marker.js +6 -5
- package/lib/utils/marker.js.map +1 -1
- package/lib/utils/viewpoint-util.d.ts +8 -7
- package/lib/utils/viewpoint-util.d.ts.map +1 -1
- package/lib/utils/viewpoint-util.js +13 -9
- package/lib/utils/viewpoint-util.js.map +1 -1
- package/lib/views/base-view-module.d.ts +1 -1
- package/lib/views/base-view-module.d.ts.map +1 -1
- package/lib/views/base-view-module.js +25 -24
- package/lib/views/base-view-module.js.map +1 -1
- package/lib/views/compartments.d.ts +2 -2
- package/lib/views/compartments.d.ts.map +1 -1
- package/lib/views/compartments.js +4 -4
- package/lib/views/compartments.js.map +1 -1
- package/lib/views/gedge-view.d.ts +27 -0
- package/lib/views/gedge-view.d.ts.map +1 -0
- package/lib/views/{glsp-edge-view.js → gedge-view.js} +4 -4
- package/lib/views/gedge-view.js.map +1 -0
- package/lib/views/glsp-projection-view.d.ts +6 -6
- package/lib/views/glsp-projection-view.d.ts.map +1 -1
- package/lib/views/glsp-projection-view.js +8 -8
- package/lib/views/glsp-projection-view.js.map +1 -1
- package/lib/views/index.d.ts +1 -1
- package/lib/views/index.d.ts.map +1 -1
- package/lib/views/index.js +1 -1
- package/lib/views/index.js.map +1 -1
- package/lib/views/issue-marker-view.d.ts +20 -4
- package/lib/views/issue-marker-view.d.ts.map +1 -1
- package/lib/views/issue-marker-view.js +4 -4
- package/lib/views/issue-marker-view.js.map +1 -1
- package/lib/views/rounded-corner-view.d.ts +5 -5
- package/lib/views/rounded-corner-view.d.ts.map +1 -1
- package/lib/views/rounded-corner-view.js +4 -4
- package/lib/views/rounded-corner-view.js.map +1 -1
- package/lib/views/rounded-corner.d.ts +3 -3
- package/lib/views/rounded-corner.d.ts.map +1 -1
- package/package.json +9 -11
- package/src/base/action-dispatcher.spec.ts +87 -0
- package/src/base/action-dispatcher.ts +25 -11
- package/src/base/action-handler-registry.ts +30 -0
- package/src/base/args-feature.ts +37 -0
- package/src/base/auto-complete/auto-complete-actions.ts +2 -1
- package/src/base/auto-complete/auto-complete-widget.ts +23 -9
- package/src/{features/autocomplete-palette → base/auto-complete}/autocomplete-suggestion-providers.ts +3 -3
- package/src/{features/autocomplete-palette → base/auto-complete}/base-autocomplete-palette.ts +14 -9
- package/src/base/auto-complete/validation-decorator.ts +1 -1
- package/src/base/command-stack.ts +9 -9
- package/src/base/default.module.ts +21 -19
- package/src/base/drag-aware-mouse-listener.ts +6 -6
- package/src/base/editor-context-service.ts +5 -10
- package/src/base/feedback/css-feedback.ts +7 -6
- package/src/base/feedback/feedback-action-dispatcher.ts +8 -6
- package/src/base/feedback/feedback-command.ts +1 -1
- package/src/base/feedback/update-model-command.ts +4 -4
- package/src/base/focus/focus-state-change-action.ts +1 -1
- package/src/base/focus/focus-tracker.ts +17 -6
- package/src/base/model/diagram-loader.ts +82 -32
- package/src/base/model/glsp-model-source.ts +76 -29
- package/src/base/model/model-initialization-constraint.spec.ts +95 -0
- package/src/base/{model-initialization-constraint.ts → model/model-initialization-constraint.ts} +51 -10
- package/src/base/model/model-registry.ts +20 -3
- package/src/base/ranked.ts +1 -1
- package/src/base/selection-clearing-mouse-listener.ts +2 -2
- package/src/base/selection-service.spec.ts +14 -14
- package/src/base/selection-service.ts +23 -23
- package/src/base/tool-manager/tool-manager.ts +183 -0
- package/src/base/tool-manager/tool.ts +85 -0
- package/src/base/view/key-tool.ts +1 -1
- package/src/base/view/mouse-tool.ts +4 -4
- package/src/base/view/view-registry.ts +7 -2
- package/src/default-modules.ts +2 -28
- package/src/features/accessibility/README.md +68 -8
- package/src/features/accessibility/accessibility-module.ts +6 -1
- package/src/features/accessibility/actions.ts +33 -0
- package/src/features/accessibility/edge-autocomplete/action.ts +34 -0
- package/src/features/accessibility/edge-autocomplete/edge-autocomplete-context.ts +24 -0
- package/src/features/accessibility/edge-autocomplete/edge-autocomplete-palette.ts +147 -0
- package/src/features/accessibility/edge-autocomplete/edge-autocomplete-tool.ts +56 -0
- package/src/features/accessibility/element-navigation/diagram-navigation-tool.ts +47 -51
- package/src/features/accessibility/element-navigation/element-navigation-module.ts +1 -1
- package/src/features/accessibility/element-navigation/element-navigator.ts +17 -17
- package/src/features/accessibility/element-navigation/left-right-top-bottom-navigator.ts +16 -15
- package/src/features/accessibility/element-navigation/local-element-navigator.ts +41 -40
- package/src/features/accessibility/element-navigation/position-navigator.ts +24 -24
- package/src/features/accessibility/focus-tracker/focus-tracker-module.ts +1 -1
- package/src/features/accessibility/focus-tracker/focus-tracker-tool.ts +6 -6
- package/src/features/accessibility/global-keylistener-tool.ts +98 -0
- package/src/features/accessibility/key-shortcut/accessible-key-shortcut-tool.ts +4 -4
- package/src/features/accessibility/key-shortcut/accessible-key-shortcut.ts +2 -2
- package/src/features/accessibility/key-shortcut/di.config.ts +1 -1
- package/src/features/accessibility/keyboard-grid/action.ts +93 -0
- package/src/{base/argumentable.ts → features/accessibility/keyboard-grid/constants.ts} +6 -6
- package/src/features/accessibility/keyboard-grid/keyboard-grid-search-palette.ts +65 -0
- package/src/features/accessibility/keyboard-grid/keyboard-grid.ts +192 -0
- package/src/features/accessibility/keyboard-grid/keyboard-node-grid.ts +63 -0
- package/src/features/accessibility/keyboard-pointer/actions.ts +34 -0
- package/src/features/accessibility/keyboard-pointer/constants.ts +22 -0
- package/src/features/accessibility/keyboard-pointer/keyboard-pointer-listener.ts +125 -0
- package/src/features/accessibility/keyboard-pointer/keyboard-pointer-module.ts +63 -0
- package/src/features/accessibility/keyboard-pointer/keyboard-pointer-position.ts +78 -0
- package/src/features/accessibility/keyboard-pointer/keyboard-pointer.ts +120 -0
- package/src/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.ts +35 -0
- package/src/features/accessibility/keyboard-tool-palette/keyboard-tool-palette.ts +505 -0
- package/src/features/accessibility/move-zoom/move-handler.ts +6 -6
- package/src/features/accessibility/move-zoom/move-zoom-module.ts +1 -1
- package/src/features/accessibility/move-zoom/zoom-handler.ts +10 -10
- package/src/features/accessibility/resize-key-tool/resize-key-handler.ts +5 -5
- package/src/features/accessibility/resize-key-tool/resize-key-module.ts +1 -1
- package/src/features/accessibility/resize-key-tool/resize-key-tool.ts +17 -19
- package/src/features/accessibility/search/search-palette-module.ts +1 -1
- package/src/features/accessibility/search/search-palette.ts +46 -24
- package/src/features/accessibility/search/search-tool.ts +9 -10
- package/src/features/accessibility/toast/messages.json +3 -1
- package/src/features/accessibility/toast/toast-handler.ts +1 -1
- package/src/features/accessibility/toast/toast-module.ts +1 -1
- package/src/features/accessibility/toast/toast-tool.ts +1 -1
- package/src/features/accessibility/view-key-tools/deselect-key-tool.ts +7 -7
- package/src/features/accessibility/view-key-tools/movement-key-tool.ts +10 -12
- package/src/features/accessibility/view-key-tools/view-key-tools-module.ts +5 -2
- package/src/features/accessibility/view-key-tools/zoom-key-tool.ts +102 -18
- package/src/features/bounds/bounds-module.ts +3 -3
- package/src/features/bounds/freeform-layout.spec.ts +33 -33
- package/src/features/bounds/freeform-layout.ts +7 -7
- package/src/features/bounds/glsp-hidden-bounds-updater.ts +6 -6
- package/src/features/bounds/hbox-layout.spec.ts +8 -8
- package/src/features/bounds/hbox-layout.ts +13 -13
- package/src/features/bounds/layouter-test-util.spec.ts +28 -24
- package/src/features/bounds/layouter.ts +8 -8
- package/src/features/bounds/vbox-layout.spec.ts +8 -8
- package/src/features/bounds/vbox-layout.ts +13 -13
- package/src/features/change-bounds/model.ts +13 -13
- package/src/features/change-bounds/movement-restrictor.ts +13 -13
- package/src/features/change-bounds/snap.spec.ts +5 -5
- package/src/features/change-bounds/snap.ts +4 -4
- package/src/features/command-palette/command-palette-module.ts +1 -1
- package/src/features/command-palette/command-palette-tool.ts +2 -1
- package/src/features/command-palette/server-command-palette-provider.ts +5 -4
- package/src/features/context-menu/context-menu-module.ts +11 -12
- package/src/features/context-menu/delete-element-context-menu.ts +2 -2
- package/src/features/context-menu/{selection-service-aware-context-menu-mouse-listener.ts → glsp-context-menu-mouse-listener.ts} +10 -3
- package/src/features/context-menu/server-context-menu-provider.ts +5 -4
- package/src/features/copy-paste/copy-paste-context-menu.ts +6 -9
- package/src/features/copy-paste/copy-paste-handler.ts +1 -1
- package/src/features/copy-paste/copy-paste-modules.ts +1 -1
- package/src/features/decoration/decoration-module.ts +1 -1
- package/src/features/decoration/decoration-placer.ts +3 -3
- package/src/features/export/export-modules.ts +1 -1
- package/src/features/export/export-svg-action-handler.ts +1 -1
- package/src/features/export/glsp-svg-exporter.ts +3 -3
- package/src/features/hints/model.ts +12 -6
- package/src/features/hints/type-hint-provider.spec.ts +355 -0
- package/src/features/hints/type-hint-provider.ts +249 -0
- package/src/features/hints/type-hints-module.ts +2 -2
- package/src/features/hover/hover-module.ts +2 -3
- package/src/features/hover/hover.ts +14 -15
- package/src/features/label-edit/edit-label-tool.ts +3 -3
- package/src/features/label-edit/edit-label-validator.ts +9 -8
- package/src/features/label-edit/label-edit-module.ts +1 -1
- package/src/features/layout/layout-elements-action.spec.ts +36 -26
- package/src/features/layout/layout-elements-action.ts +6 -6
- package/src/features/layout/layout-module.ts +1 -1
- package/src/features/navigation/navigation-action-handler.ts +6 -9
- package/src/features/navigation/navigation-module.ts +1 -1
- package/src/features/navigation/navigation-target-resolver.spec.ts +1 -1
- package/src/features/navigation/navigation-target-resolver.ts +1 -1
- package/src/features/reconnect/model.ts +22 -20
- package/src/features/routing/glsp-manhattan-edge-router.ts +2 -2
- package/src/features/routing/routing-module.ts +1 -1
- package/src/features/save/save-keylistener.ts +2 -2
- package/src/features/save/save-module.ts +1 -1
- package/src/features/select/select-feedback-command.ts +4 -4
- package/src/features/select/select-module.ts +1 -1
- package/src/features/select/select-mouse-listener.ts +5 -5
- package/src/features/source-model-watcher/source-model-changed-action-handler.ts +4 -7
- package/src/features/source-model-watcher/source-model-wacher-module.ts +1 -1
- package/src/features/status/status-module.ts +2 -2
- package/src/features/status/status-overlay.ts +5 -5
- package/src/features/svg-metadata/metadata-placer.ts +6 -5
- package/src/features/svg-metadata/svg-metadata-module.ts +1 -1
- package/src/features/tool-palette/tool-palette-module.ts +2 -1
- package/src/features/tool-palette/tool-palette.ts +14 -13
- package/src/features/tools/{base-glsp-tool.ts → base-tools.ts} +31 -5
- package/src/features/tools/change-bounds/change-boounds-tool-module.ts +1 -1
- package/src/features/tools/change-bounds/change-bounds-tool-feedback.ts +20 -19
- package/src/features/tools/change-bounds/change-bounds-tool.ts +36 -36
- package/src/features/tools/change-bounds/view.tsx +1 -1
- package/src/features/tools/deletion/delete-tool.ts +8 -9
- package/src/features/tools/deletion/deletion-tool-module.ts +1 -1
- package/src/features/tools/edge-creation/dangling-edge-feedback.ts +20 -20
- package/src/features/tools/edge-creation/edege-creation-module.ts +1 -1
- package/src/features/tools/edge-creation/edge-creation-tool-feedback.ts +6 -6
- package/src/features/tools/edge-creation/edge-creation-tool.ts +81 -35
- package/src/features/tools/edge-creation/view.tsx +2 -2
- package/src/features/tools/edge-edit/edge-edit-module.ts +1 -1
- package/src/features/tools/edge-edit/edge-edit-tool-feedback.ts +16 -16
- package/src/features/tools/edge-edit/edge-edit-tool.ts +22 -22
- package/src/features/tools/marquee-selection/marquee-behavior.ts +1 -1
- package/src/features/tools/marquee-selection/marquee-mouse-tool.ts +19 -19
- package/src/features/tools/marquee-selection/marquee-selection-module.ts +1 -1
- package/src/features/tools/marquee-selection/marquee-tool-feedback.ts +8 -8
- package/src/features/tools/marquee-selection/marquee-tool.ts +5 -4
- package/src/features/tools/marquee-selection/model.ts +1 -1
- package/src/features/tools/marquee-selection/view.tsx +1 -1
- package/src/features/tools/node-creation/node-creation-module.ts +1 -1
- package/src/features/tools/node-creation/node-creation-tool.ts +14 -10
- package/src/features/tools/tool-focus-loss-module.ts +2 -1
- package/src/features/undo-redo/undo-redo-key-listener.ts +2 -2
- package/src/features/undo-redo/undo-redo-module.ts +1 -1
- package/src/features/validation/issue-marker.ts +26 -26
- package/src/features/validation/marker-navigator.spec.ts +35 -64
- package/src/features/validation/marker-navigator.ts +33 -33
- package/src/features/validation/validate.ts +12 -13
- package/src/features/validation/validation-modules.ts +4 -4
- package/src/features/viewport/glsp-scroll-mouse-listener.ts +3 -10
- package/src/features/viewport/reposition.ts +17 -17
- package/src/features/viewport/viewport-handler.ts +67 -0
- package/src/features/viewport/viewport-modules.ts +8 -3
- package/src/index.ts +19 -18
- package/src/{lib/model.ts → model.ts} +20 -16
- package/src/standalone-modules.ts +3 -3
- package/src/utils/argument-utils.ts +17 -17
- package/src/utils/{smodel-util.spec.ts → gmodel-util.spec.ts} +18 -19
- package/src/utils/{smodel-util.ts → gmodel-util.ts} +50 -59
- package/src/utils/layout-utils.ts +17 -8
- package/src/utils/marker.ts +8 -7
- package/src/utils/viewpoint-util.ts +14 -11
- package/src/views/base-view-module.ts +35 -36
- package/src/views/compartments.tsx +3 -3
- package/src/views/{glsp-edge-view.tsx → gedge-view.tsx} +6 -5
- package/src/views/glsp-projection-view.tsx +11 -7
- package/src/views/index.ts +1 -1
- package/src/views/issue-marker-view.tsx +5 -4
- package/src/views/rounded-corner-view.tsx +7 -7
- package/src/views/rounded-corner.ts +2 -2
- package/lib/base/argumentable.d.ts.map +0 -1
- package/lib/base/argumentable.js +0 -8
- package/lib/base/argumentable.js.map +0 -1
- package/lib/base/model-initialization-constraint.d.ts.map +0 -1
- package/lib/base/model-initialization-constraint.js.map +0 -1
- package/lib/base/tool-manager/glsp-tool-manager.d.ts +0 -21
- package/lib/base/tool-manager/glsp-tool-manager.d.ts.map +0 -1
- package/lib/base/tool-manager/glsp-tool-manager.js +0 -113
- package/lib/base/tool-manager/glsp-tool-manager.js.map +0 -1
- package/lib/features/autocomplete-palette/autocomplete-suggestion-providers.d.ts.map +0 -1
- package/lib/features/autocomplete-palette/autocomplete-suggestion-providers.js.map +0 -1
- package/lib/features/autocomplete-palette/base-autocomplete-palette.d.ts.map +0 -1
- package/lib/features/autocomplete-palette/base-autocomplete-palette.js.map +0 -1
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.d.ts.map +0 -1
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.js.map +0 -1
- package/lib/features/hints/type-hints.d.ts +0 -45
- package/lib/features/hints/type-hints.d.ts.map +0 -1
- package/lib/features/hints/type-hints.js.map +0 -1
- package/lib/features/tools/base-glsp-creation-tool.d.ts +0 -10
- package/lib/features/tools/base-glsp-creation-tool.d.ts.map +0 -1
- package/lib/features/tools/base-glsp-creation-tool.js.map +0 -1
- package/lib/features/tools/base-glsp-tool.d.ts.map +0 -1
- package/lib/features/tools/base-glsp-tool.js.map +0 -1
- package/lib/glsp-sprotty/augmented-actions.d.ts +0 -19
- package/lib/glsp-sprotty/augmented-actions.d.ts.map +0 -1
- package/lib/glsp-sprotty/augmented-actions.js +0 -29
- package/lib/glsp-sprotty/augmented-actions.js.map +0 -1
- package/lib/glsp-sprotty/index.d.ts +0 -189
- package/lib/glsp-sprotty/index.d.ts.map +0 -1
- package/lib/glsp-sprotty/index.js +0 -349
- package/lib/glsp-sprotty/index.js.map +0 -1
- package/lib/glsp-sprotty/types.d.ts +0 -178
- package/lib/glsp-sprotty/types.d.ts.map +0 -1
- package/lib/glsp-sprotty/types.js +0 -32
- package/lib/glsp-sprotty/types.js.map +0 -1
- package/lib/lib/model.d.ts.map +0 -1
- package/lib/lib/model.js.map +0 -1
- package/lib/utils/smodel-util.d.ts.map +0 -1
- package/lib/utils/smodel-util.spec.d.ts +0 -2
- package/lib/utils/smodel-util.spec.d.ts.map +0 -1
- package/lib/utils/smodel-util.spec.js.map +0 -1
- package/lib/views/glsp-edge-view.d.ts +0 -11
- package/lib/views/glsp-edge-view.d.ts.map +0 -1
- package/lib/views/glsp-edge-view.js.map +0 -1
- package/src/base/tool-manager/glsp-tool-manager.ts +0 -96
- package/src/features/hints/type-hints.ts +0 -220
- package/src/features/tools/base-glsp-creation-tool.ts +0 -40
- package/src/glsp-sprotty/augmented-actions.ts +0 -48
- package/src/glsp-sprotty/index.ts +0 -347
- package/src/glsp-sprotty/types.ts +0 -49
- /package/lib/{features/autocomplete-palette → base/auto-complete}/autocomplete-suggestion-providers.js +0 -0
package/css/glsp-sprotty.css
CHANGED
|
@@ -98,9 +98,6 @@
|
|
|
98
98
|
.sprotty-edge.selected {
|
|
99
99
|
stroke: #1d80d1;
|
|
100
100
|
stroke-width: 1.5px;
|
|
101
|
-
stroke-dashoffset: 5;
|
|
102
|
-
stroke-dasharray: 5, 5;
|
|
103
|
-
stroke-linecap: round;
|
|
104
101
|
}
|
|
105
102
|
|
|
106
103
|
.sprotty-edge.mouseover:not(.selected) .arrow,
|
|
@@ -134,6 +131,10 @@
|
|
|
134
131
|
cursor: crosshair;
|
|
135
132
|
}
|
|
136
133
|
|
|
134
|
+
.sprotty .edge-check-pending-mode {
|
|
135
|
+
cursor: wait;
|
|
136
|
+
}
|
|
137
|
+
|
|
137
138
|
.sprotty .move-mode {
|
|
138
139
|
cursor: move;
|
|
139
140
|
}
|
|
@@ -263,7 +264,7 @@
|
|
|
263
264
|
}
|
|
264
265
|
|
|
265
266
|
.search-hidden {
|
|
266
|
-
opacity: 0.
|
|
267
|
+
opacity: 0.4;
|
|
267
268
|
}
|
|
268
269
|
|
|
269
270
|
.search-highlighted .sprotty-node,
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 Business Informatics Group (TU Wien) 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
|
+
|
|
17
|
+
.accessibility-tool-palette.tool-palette {
|
|
18
|
+
top: 48px;
|
|
19
|
+
width: 240px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.accessibility-tool-palette .header-tools i {
|
|
23
|
+
margin-right: 0.5em;
|
|
24
|
+
position: relative;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.accessibility-tool-palette .tool-button .key-shortcut,
|
|
28
|
+
.accessibility-tool-palette .header-tools .key-shortcut {
|
|
29
|
+
display: none;
|
|
30
|
+
position: absolute;
|
|
31
|
+
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
width: 0.5rem;
|
|
34
|
+
height: 0.5rem;
|
|
35
|
+
padding: 0.5rem;
|
|
36
|
+
|
|
37
|
+
background: #fff;
|
|
38
|
+
border: 2px solid #666;
|
|
39
|
+
color: black;
|
|
40
|
+
text-align: center;
|
|
41
|
+
|
|
42
|
+
font: bold 0.8rem Arial, sans-serif;
|
|
43
|
+
line-height: 0.5rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.accessibility-tool-palette .tool-button .key-shortcut {
|
|
47
|
+
left: -2rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.accessibility-tool-palette .header-tools .key-shortcut {
|
|
51
|
+
top: -2.5rem;
|
|
52
|
+
right: -0.3rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.accessibility-show-shortcuts:focus-within .header-tools .key-shortcut,
|
|
56
|
+
.accessibility-show-shortcuts:focus-within .tool-button .key-shortcut {
|
|
57
|
+
display: block;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.accessibility-tool-palette.collapsible-palette {
|
|
61
|
+
overflow: visible;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.accessibility-tool-palette.collapsible-palette + .minimize-palette-button {
|
|
65
|
+
top: 50px;
|
|
66
|
+
}
|
package/css/keyboard.css
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 Business Informatics Group (TU Wien) 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
|
+
|
|
17
|
+
.grid-container {
|
|
18
|
+
display: grid;
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 0.5rem;
|
|
21
|
+
bottom: 0.5rem;
|
|
22
|
+
left: 0.5rem;
|
|
23
|
+
right: 0.5rem;
|
|
24
|
+
grid-template-columns: auto auto auto;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.grid-container:focus {
|
|
28
|
+
opacity: 1 !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.grid-item {
|
|
32
|
+
border: 1px solid rgba(0, 0, 0, 0.6);
|
|
33
|
+
padding: 1rem;
|
|
34
|
+
/* Fix overlapping borders */
|
|
35
|
+
margin: 0 -1px -1px 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.grid-item-number {
|
|
39
|
+
border-radius: 50%;
|
|
40
|
+
width: 1.5rem;
|
|
41
|
+
height: 1.5rem;
|
|
42
|
+
padding: 0.5rem;
|
|
43
|
+
|
|
44
|
+
background: #fff;
|
|
45
|
+
border: 2px solid #666;
|
|
46
|
+
color: black;
|
|
47
|
+
text-align: center;
|
|
48
|
+
|
|
49
|
+
font: bold 1.3rem Arial, sans-serif;
|
|
50
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { Action, ActionDispatcher, RequestAction, ResponseAction } from '
|
|
3
|
-
import { ModelInitializationConstraint } from './model-initialization-constraint';
|
|
2
|
+
import { Action, ActionDispatcher, RequestAction, ResponseAction } from '@eclipse-glsp/sprotty';
|
|
3
|
+
import { ModelInitializationConstraint } from './model/model-initialization-constraint';
|
|
4
4
|
export declare class GLSPActionDispatcher extends ActionDispatcher {
|
|
5
5
|
protected readonly timeouts: Map<string, NodeJS.Timeout>;
|
|
6
6
|
protected initializedConstraint: boolean;
|
|
@@ -9,6 +9,12 @@ export declare class GLSPActionDispatcher extends ActionDispatcher {
|
|
|
9
9
|
startModelInitialization(): void;
|
|
10
10
|
onceModelInitialized(): Promise<void>;
|
|
11
11
|
hasHandler(action: Action): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Processes all given actions, by dispatching them to the corresponding handlers, after the model initialization is completed.
|
|
14
|
+
*
|
|
15
|
+
* @param actions The actions that should be dispatched after the model initialization
|
|
16
|
+
*/
|
|
17
|
+
dispatchOnceModelInitialized(...actions: Action[]): void;
|
|
12
18
|
dispatch(action: Action): Promise<void>;
|
|
13
19
|
protected handleAction(action: Action): Promise<void>;
|
|
14
20
|
request<Res extends ResponseAction>(action: RequestAction<Res>): Promise<Res>;
|
|
@@ -22,6 +28,6 @@ export declare class GLSPActionDispatcher extends ActionDispatcher {
|
|
|
22
28
|
* If `rejectOnTimeout` is set to false (default) the returned promise will be resolved with
|
|
23
29
|
* no value, otherwise it will be rejected.
|
|
24
30
|
*/
|
|
25
|
-
requestUntil<Res extends ResponseAction>(action: RequestAction<Res>, timeoutMs?: number, rejectOnTimeout?: boolean): Promise<Res>;
|
|
31
|
+
requestUntil<Res extends ResponseAction>(action: RequestAction<Res>, timeoutMs?: number, rejectOnTimeout?: boolean): Promise<Res | undefined>;
|
|
26
32
|
}
|
|
27
33
|
//# sourceMappingURL=action-dispatcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-dispatcher.d.ts","sourceRoot":"","sources":["../../src/base/action-dispatcher.ts"],"names":[],"mappings":";AAgBA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"action-dispatcher.d.ts","sourceRoot":"","sources":["../../src/base/action-dispatcher.ts"],"names":[],"mappings":";AAgBA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAExF,qBACa,oBAAqB,SAAQ,gBAAgB;IACtD,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAa;IACrE,SAAS,CAAC,qBAAqB,UAAS;IAGxC,SAAS,CAAC,wBAAwB,EAAE,6BAA6B,CAAC;IAEzD,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAIpC,wBAAwB,IAAI,IAAI;IAQhC,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAInC;;;;OAIG;IACH,4BAA4B,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI;IAIzC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;cAMnC,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBrD,OAAO,CAAC,GAAG,SAAS,cAAc,EAAE,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC;IAQtF;;;;;;;;;OASG;IACH,YAAY,CAAC,GAAG,SAAS,cAAc,EACnC,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,EAC1B,SAAS,SAAO,EAChB,eAAe,UAAQ,GACxB,OAAO,CAAC,GAAG,GAAG,SAAS,CAAC;CA2B9B"}
|
|
@@ -26,9 +26,9 @@ exports.GLSPActionDispatcher = void 0;
|
|
|
26
26
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
27
27
|
********************************************************************************/
|
|
28
28
|
const inversify_1 = require("inversify");
|
|
29
|
-
const
|
|
30
|
-
const model_initialization_constraint_1 = require("./model-initialization-constraint");
|
|
31
|
-
let GLSPActionDispatcher = exports.GLSPActionDispatcher = class GLSPActionDispatcher extends
|
|
29
|
+
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
30
|
+
const model_initialization_constraint_1 = require("./model/model-initialization-constraint");
|
|
31
|
+
let GLSPActionDispatcher = exports.GLSPActionDispatcher = class GLSPActionDispatcher extends sprotty_1.ActionDispatcher {
|
|
32
32
|
constructor() {
|
|
33
33
|
super(...arguments);
|
|
34
34
|
this.timeouts = new Map();
|
|
@@ -40,7 +40,7 @@ let GLSPActionDispatcher = exports.GLSPActionDispatcher = class GLSPActionDispat
|
|
|
40
40
|
startModelInitialization() {
|
|
41
41
|
if (!this.initializedConstraint) {
|
|
42
42
|
this.logger.log(this, 'Starting model initialization mode');
|
|
43
|
-
this.initializationConstraint.onInitialized(
|
|
43
|
+
this.initializationConstraint.onInitialized(() => this.logger.log(this, 'Model initialization completed'));
|
|
44
44
|
this.initializedConstraint = true;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -50,24 +50,32 @@ let GLSPActionDispatcher = exports.GLSPActionDispatcher = class GLSPActionDispat
|
|
|
50
50
|
hasHandler(action) {
|
|
51
51
|
return this.actionHandlerRegistry.get(action.kind).length > 0;
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Processes all given actions, by dispatching them to the corresponding handlers, after the model initialization is completed.
|
|
55
|
+
*
|
|
56
|
+
* @param actions The actions that should be dispatched after the model initialization
|
|
57
|
+
*/
|
|
58
|
+
dispatchOnceModelInitialized(...actions) {
|
|
59
|
+
this.initializationConstraint.onInitialized(() => this.dispatchAll(actions));
|
|
60
|
+
}
|
|
61
|
+
async dispatch(action) {
|
|
62
|
+
const result = await super.dispatch(action);
|
|
55
63
|
this.initializationConstraint.notifyDispatched(action);
|
|
56
64
|
return result;
|
|
57
65
|
}
|
|
58
66
|
handleAction(action) {
|
|
59
|
-
if (
|
|
67
|
+
if (sprotty_1.ResponseAction.hasValidResponseId(action)) {
|
|
60
68
|
// clear timeout
|
|
61
69
|
const timeout = this.timeouts.get(action.responseId);
|
|
62
70
|
if (timeout !== undefined) {
|
|
63
71
|
clearTimeout(timeout);
|
|
64
72
|
this.timeouts.delete(action.responseId);
|
|
65
73
|
}
|
|
66
|
-
// we
|
|
74
|
+
// Check if we have a pending request for the response.
|
|
75
|
+
// If not the we clear the responseId => action will be dispatched normally
|
|
67
76
|
const deferred = this.requests.get(action.responseId);
|
|
68
77
|
if (deferred === undefined) {
|
|
69
|
-
|
|
70
|
-
return Promise.resolve();
|
|
78
|
+
action.responseId = '';
|
|
71
79
|
}
|
|
72
80
|
}
|
|
73
81
|
return super.handleAction(action);
|
|
@@ -75,7 +83,7 @@ let GLSPActionDispatcher = exports.GLSPActionDispatcher = class GLSPActionDispat
|
|
|
75
83
|
request(action) {
|
|
76
84
|
if (!action.requestId && action.requestId === '') {
|
|
77
85
|
// No request id has been specified. So we use a generated one.
|
|
78
|
-
action.requestId =
|
|
86
|
+
action.requestId = sprotty_1.RequestAction.generateRequestId();
|
|
79
87
|
}
|
|
80
88
|
return super.request(action);
|
|
81
89
|
}
|
|
@@ -92,7 +100,7 @@ let GLSPActionDispatcher = exports.GLSPActionDispatcher = class GLSPActionDispat
|
|
|
92
100
|
requestUntil(action, timeoutMs = 2000, rejectOnTimeout = false) {
|
|
93
101
|
if (!action.requestId && action.requestId === '') {
|
|
94
102
|
// No request id has been specified. So we use a generated one.
|
|
95
|
-
action.requestId =
|
|
103
|
+
action.requestId = sprotty_1.RequestAction.generateRequestId();
|
|
96
104
|
}
|
|
97
105
|
const requestId = action.requestId;
|
|
98
106
|
const timeout = setTimeout(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-dispatcher.js","sourceRoot":"","sources":["../../src/base/action-dispatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"action-dispatcher.js","sourceRoot":"","sources":["../../src/base/action-dispatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA+C;AAC/C,mDAAgG;AAChG,6FAAwF;AAGjF,IAAM,oBAAoB,kCAA1B,MAAM,oBAAqB,SAAQ,0BAAgB;IAAnD;;QACgB,aAAQ,GAAgC,IAAI,GAAG,EAAE,CAAC;QAC3D,0BAAqB,GAA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BACxB,UAAU;gBACV,YAAY,CAAC,OAAO,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;gBAEhC,MAAM,YAAY,GAAG,UAAU,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,mBAAmB,GAAG,SAAS,GAAG,KAAK,CAAC;gBACtG,IAAI,eAAe,EAAE;oBACjB,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;iBACjC;qBAAM;oBACH,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;oBACrC,QAAQ,CAAC,OAAO,EAAE,CAAC;iBACtB;aACJ;QACL,CAAC,EAAE,SAAS,CAAC,CAAC;QACd,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAEtC,OAAO,KAAK,CAAC,OAAO,CAAM,MAAM,CAAC,CAAC;IACtC,CAAC;CACJ,CAAA;AAzGa;IADT,IAAA,kBAAM,EAAC,+DAA6B,CAAC;8BACF,+DAA6B;sEAAC;+BALzD,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CA8GhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-dispatcher.spec.d.ts","sourceRoot":"","sources":["../../src/base/action-dispatcher.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/********************************************************************************
|
|
4
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
5
|
+
*
|
|
6
|
+
* This program and the accompanying materials are made available under the
|
|
7
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
8
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
9
|
+
*
|
|
10
|
+
* This Source Code may also be made available under the following Secondary
|
|
11
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
12
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
13
|
+
* with the GNU Classpath Exception which is available at
|
|
14
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
15
|
+
*
|
|
16
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
17
|
+
********************************************************************************/
|
|
18
|
+
const chai_1 = require("chai");
|
|
19
|
+
const inversify_1 = require("inversify");
|
|
20
|
+
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
21
|
+
const action_dispatcher_1 = require("./action-dispatcher");
|
|
22
|
+
const default_module_1 = require("./default.module");
|
|
23
|
+
const container = new inversify_1.Container();
|
|
24
|
+
container.load(default_module_1.defaultModule);
|
|
25
|
+
container.bind(sprotty_1.TYPES.IDiagramOptions).toConstantValue({
|
|
26
|
+
clientId: 'client1',
|
|
27
|
+
diagramType: 'diagramType',
|
|
28
|
+
glspClientProvider: async () => ({})
|
|
29
|
+
});
|
|
30
|
+
const registry = container.get(sprotty_1.ActionHandlerRegistry);
|
|
31
|
+
const actionDispatcher = container.get(action_dispatcher_1.GLSPActionDispatcher);
|
|
32
|
+
let testHandlerDelay = 0;
|
|
33
|
+
const testHandler = {
|
|
34
|
+
handle: action => {
|
|
35
|
+
const request = action;
|
|
36
|
+
new Promise(resolve => setTimeout(resolve, testHandlerDelay)).then(() => actionDispatcher.dispatch({
|
|
37
|
+
kind: 'response',
|
|
38
|
+
responseId: request.requestId
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
registry.register('request', testHandler);
|
|
43
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
44
|
+
registry.register('response', { handle: () => { } });
|
|
45
|
+
actionDispatcher.initialize().then(() => {
|
|
46
|
+
actionDispatcher['blockUntil'] = undefined;
|
|
47
|
+
});
|
|
48
|
+
describe('GLSPActionDispatcher', () => {
|
|
49
|
+
describe('requestUntil', () => {
|
|
50
|
+
it('should resolve successfully if response dispatched within timeout', async () => {
|
|
51
|
+
testHandlerDelay = 15;
|
|
52
|
+
const requestAction = { kind: 'request', requestId: '' };
|
|
53
|
+
const response = await actionDispatcher.requestUntil(requestAction, 150);
|
|
54
|
+
(0, chai_1.expect)(response === null || response === void 0 ? void 0 : response.responseId).to.be.equal(requestAction.requestId);
|
|
55
|
+
});
|
|
56
|
+
it('should resolve to `undefined` if no response dispatched within timeout & `rejectOnTimeout` flag is false', async () => {
|
|
57
|
+
testHandlerDelay = 30;
|
|
58
|
+
const requestAction = { kind: 'request', requestId: '' };
|
|
59
|
+
const response = await actionDispatcher.requestUntil(requestAction, 5);
|
|
60
|
+
(0, chai_1.expect)(response).to.be.undefined;
|
|
61
|
+
});
|
|
62
|
+
it('should be rejected if no response dispatched within timeout & `rejectOnTimeout` flag is true', async () => {
|
|
63
|
+
testHandlerDelay = 30;
|
|
64
|
+
const requestAction = { kind: 'request', requestId: '' };
|
|
65
|
+
const gotRejected = await actionDispatcher.requestUntil(requestAction, 5, true).then(() => false, () => true);
|
|
66
|
+
(0, chai_1.expect)(gotRejected, 'Response promise should be rejected').to.be.true;
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
describe('request & re-dispatch', () => {
|
|
70
|
+
it('should be possible to re-dispatch the response of a `request` call', async () => {
|
|
71
|
+
const requestAction = { kind: 'request', requestId: '' };
|
|
72
|
+
const response = await actionDispatcher.request(requestAction);
|
|
73
|
+
const dispatchSuccessful = await actionDispatcher.dispatch(response).then(() => true, err => false);
|
|
74
|
+
(0, chai_1.expect)(dispatchSuccessful, 'Promise of re-dispatch should resolve successfully').to.be.true;
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
//# sourceMappingURL=action-dispatcher.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-dispatcher.spec.js","sourceRoot":"","sources":["../../src/base/action-dispatcher.spec.ts"],"names":[],"mappings":";;AA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AE,CAAC,IAAI,CACb,CAAC;YACF,IAAA,aAAM,EAAC,WAAW,EAAE,qCAAqC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAC1E,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;QACnC,EAAE,CAAC,oEAAoE,EAAE,KAAK,IAAI,EAAE;YAChF,MAAM,aAAa,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;YACzD,MAAM,QAAQ,GAAG,MAAM,gBAAgB,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;YAC/D,MAAM,kBAAkB,GAAG,MAAM,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,IAAI,CACrE,GAAG,EAAE,CAAC,IAAI,EACV,GAAG,CAAC,EAAE,CAAC,KAAK,CACf,CAAC;YACF,IAAA,aAAM,EAAC,kBAAkB,EAAE,oDAAoD,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAChG,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 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 { ActionHandlerRegistry } from '@eclipse-glsp/sprotty';
|
|
17
|
+
export declare class GLSPActionHandlerRegistry extends ActionHandlerRegistry {
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve a set of all action kinds for which (at least) one
|
|
20
|
+
* handler is registered
|
|
21
|
+
* @returns the set of handled action kinds
|
|
22
|
+
*/
|
|
23
|
+
getHandledActionKinds(): string[];
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=action-handler-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-handler-registry.d.ts","sourceRoot":"","sources":["../../src/base/action-handler-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAGlF,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,qBACa,yBAA0B,SAAQ,qBAAqB;IAChE;;;;OAIG;IACH,qBAAqB,IAAI,MAAM,EAAE;CAGpC"}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.BaseGLSPCreationTool = void 0;
|
|
10
2
|
/********************************************************************************
|
|
11
3
|
* Copyright (c) 2023 EclipseSource and others.
|
|
12
4
|
*
|
|
@@ -22,24 +14,27 @@ exports.BaseGLSPCreationTool = void 0;
|
|
|
22
14
|
*
|
|
23
15
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
24
16
|
********************************************************************************/
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
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;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.GLSPActionHandlerRegistry = void 0;
|
|
25
25
|
const inversify_1 = require("inversify");
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
enable() {
|
|
36
|
-
if (this.triggerAction === undefined) {
|
|
37
|
-
throw new TypeError(`Could not enable tool ${this.id}. The triggerAction cannot be undefined.`);
|
|
38
|
-
}
|
|
39
|
-
this.doEnable();
|
|
26
|
+
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
27
|
+
let GLSPActionHandlerRegistry = exports.GLSPActionHandlerRegistry = class GLSPActionHandlerRegistry extends sprotty_1.ActionHandlerRegistry {
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a set of all action kinds for which (at least) one
|
|
30
|
+
* handler is registered
|
|
31
|
+
* @returns the set of handled action kinds
|
|
32
|
+
*/
|
|
33
|
+
getHandledActionKinds() {
|
|
34
|
+
return Array.from(this.elements.keys());
|
|
40
35
|
}
|
|
41
36
|
};
|
|
42
|
-
exports.
|
|
37
|
+
exports.GLSPActionHandlerRegistry = GLSPActionHandlerRegistry = __decorate([
|
|
43
38
|
(0, inversify_1.injectable)()
|
|
44
|
-
],
|
|
45
|
-
//# sourceMappingURL=
|
|
39
|
+
], GLSPActionHandlerRegistry);
|
|
40
|
+
//# sourceMappingURL=action-handler-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-handler-registry.js","sourceRoot":"","sources":["../../src/base/action-handler-registry.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;AAElF,yCAAuC;AACvC,mDAA8D;AAGvD,IAAM,yBAAyB,uCAA/B,MAAM,yBAA0B,SAAQ,+BAAqB;IAChE;;;;OAIG;IACH,qBAAqB;QACjB,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IAC5C,CAAC;CACJ,CAAA;oCATY,yBAAyB;IADrC,IAAA,sBAAU,GAAE;GACA,yBAAyB,CASrC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { Args, GModelElement } from '@eclipse-glsp/sprotty';
|
|
17
|
+
export declare const argsFeature: unique symbol;
|
|
18
|
+
/**
|
|
19
|
+
* Adds an optional `args` property to a {@link GModelElement}. This allows
|
|
20
|
+
* to add arbitrary arguments to the element (on client or server side) without having
|
|
21
|
+
* to extend the model class.
|
|
22
|
+
*
|
|
23
|
+
* Feature extension interface for {@link argsFeature}.
|
|
24
|
+
*/
|
|
25
|
+
export interface ArgsAware {
|
|
26
|
+
args?: Args;
|
|
27
|
+
}
|
|
28
|
+
export declare function isArgsAware(element: GModelElement): element is GModelElement & ArgsAware;
|
|
29
|
+
export declare function hasArgs(element?: GModelElement): element is GModelElement & Required<ArgsAware>;
|
|
30
|
+
//# sourceMappingURL=args-feature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"args-feature.d.ts","sourceRoot":"","sources":["../../src/base/args-feature.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE5D,eAAO,MAAM,WAAW,eAAwB,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACtB,IAAI,CAAC,EAAE,IAAI,CAAC;CACf;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,IAAI,aAAa,GAAG,SAAS,CAExF;AAED,wBAAgB,OAAO,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,IAAI,aAAa,GAAG,QAAQ,CAAC,SAAS,CAAC,CAE/F"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hasArgs = exports.isArgsAware = exports.argsFeature = void 0;
|
|
4
|
+
exports.argsFeature = Symbol('argsFeature');
|
|
5
|
+
function isArgsAware(element) {
|
|
6
|
+
return element.hasFeature(exports.argsFeature);
|
|
7
|
+
}
|
|
8
|
+
exports.isArgsAware = isArgsAware;
|
|
9
|
+
function hasArgs(element) {
|
|
10
|
+
return element !== undefined && isArgsAware(element) && element.args !== undefined;
|
|
11
|
+
}
|
|
12
|
+
exports.hasArgs = hasArgs;
|
|
13
|
+
//# sourceMappingURL=args-feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"args-feature.js","sourceRoot":"","sources":["../../src/base/args-feature.ts"],"names":[],"mappings":";;;AAiBa,QAAA,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AAajD,SAAgB,WAAW,CAAC,OAAsB;IAC9C,OAAO,OAAO,CAAC,UAAU,CAAC,mBAAW,CAAC,CAAC;AAC3C,CAAC;AAFD,kCAEC;AAED,SAAgB,OAAO,CAAC,OAAuB;IAC3C,OAAO,OAAO,KAAK,SAAS,IAAI,WAAW,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,CAAC;AACvF,CAAC;AAFD,0BAEC"}
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { LabeledAction } from '
|
|
16
|
+
import { LabeledAction } from '@eclipse-glsp/sprotty';
|
|
17
|
+
/** A special {@link LabeledAction} that has a `text` property in addition to the `label */
|
|
17
18
|
export interface AutoCompleteValue extends LabeledAction {
|
|
18
19
|
readonly text: string;
|
|
19
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-complete-actions.d.ts","sourceRoot":"","sources":["../../../src/base/auto-complete/auto-complete-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAiB,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"auto-complete-actions.d.ts","sourceRoot":"","sources":["../../../src/base/auto-complete/auto-complete-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAiB,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAErE,4FAA4F;AAC5F,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACpD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB;AAED,yBAAiB,iBAAiB,CAAC;IAC/B,SAAgB,EAAE,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,iBAAiB,CAE3D;CACJ"}
|
|
@@ -16,11 +16,11 @@ exports.AutoCompleteValue = 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
|
|
19
|
+
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
20
20
|
var AutoCompleteValue;
|
|
21
21
|
(function (AutoCompleteValue) {
|
|
22
22
|
function is(object) {
|
|
23
|
-
return
|
|
23
|
+
return sprotty_1.LabeledAction.is(object) && (0, sprotty_1.hasStringProp)(object, 'text');
|
|
24
24
|
}
|
|
25
25
|
AutoCompleteValue.is = is;
|
|
26
26
|
})(AutoCompleteValue || (exports.AutoCompleteValue = AutoCompleteValue = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-complete-actions.js","sourceRoot":"","sources":["../../../src/base/auto-complete/auto-complete-actions.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"auto-complete-actions.js","sourceRoot":"","sources":["../../../src/base/auto-complete/auto-complete-actions.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mDAAqE;AAOrE,IAAiB,iBAAiB,CAIjC;AAJD,WAAiB,iBAAiB;IAC9B,SAAgB,EAAE,CAAC,MAAW;QAC1B,OAAO,uBAAa,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,IAAA,uBAAa,EAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrE,CAAC;IAFe,oBAAE,KAEjB,CAAA;AACL,CAAC,EAJgB,iBAAiB,iCAAjB,iBAAiB,QAIjC"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import { AutocompleteResult, AutocompleteSettings } from 'autocompleter';
|
|
17
|
-
import { Action, ILogger, LabeledAction,
|
|
17
|
+
import { Action, ILogger, LabeledAction, GModelRoot, ValidationStatus } from '@eclipse-glsp/sprotty';
|
|
18
18
|
import { IValidationDecorator } from './validation-decorator';
|
|
19
19
|
export interface AutoCompleteSettings {
|
|
20
20
|
readonly noSuggestionsMessage?: string;
|
|
@@ -30,7 +30,7 @@ export interface SuggestionProvider {
|
|
|
30
30
|
provideSuggestions(input: string): Promise<LabeledAction[]>;
|
|
31
31
|
}
|
|
32
32
|
export interface InputValueInitializer {
|
|
33
|
-
initializeValue(containerElement: HTMLElement, root: Readonly<
|
|
33
|
+
initializeValue(containerElement: HTMLElement, root: Readonly<GModelRoot>, ...contextElementIds: string[]): string;
|
|
34
34
|
}
|
|
35
35
|
export interface SuggestionSubmitHandler {
|
|
36
36
|
executeFromSuggestion(input: LabeledAction | Action | Action[]): void;
|
|
@@ -74,12 +74,12 @@ export declare class AutoCompleteWidget {
|
|
|
74
74
|
protected handleKeyDown(event: KeyboardEvent): void;
|
|
75
75
|
protected isInputElementChanged(): boolean;
|
|
76
76
|
protected invalidateValidationResultAndContextActions(): void;
|
|
77
|
-
open(root: Readonly<
|
|
78
|
-
protected autocompleteSettings(root: Readonly<
|
|
79
|
-
protected customizeInputElement(input: HTMLInputElement, inputRect: DOMRect, container: HTMLDivElement, maxHeight: number): void;
|
|
80
|
-
protected updateSuggestions(update: (items: LabeledAction[]) => void, text: string, root: Readonly<
|
|
77
|
+
open(root: Readonly<GModelRoot>, ...contextElementIds: string[]): void;
|
|
78
|
+
protected autocompleteSettings(root: Readonly<GModelRoot>): AutocompleteSettings<LabeledAction>;
|
|
79
|
+
protected customizeInputElement(input: HTMLInputElement | HTMLTextAreaElement, inputRect: DOMRect, container: HTMLDivElement, maxHeight: number): void;
|
|
80
|
+
protected updateSuggestions(update: (items: LabeledAction[]) => void, text: string, root: Readonly<GModelRoot>, ...contextElementIds: string[]): void;
|
|
81
81
|
protected onLoading(): void;
|
|
82
|
-
protected doUpdateSuggestions(text: string, root: Readonly<
|
|
82
|
+
protected doUpdateSuggestions(text: string, root: Readonly<GModelRoot>, ...contextElementIds: string[]): Promise<LabeledAction[]>;
|
|
83
83
|
protected onLoaded(_success: 'success' | 'error'): void;
|
|
84
84
|
protected renderSuggestions(item: LabeledAction, value: string): HTMLDivElement;
|
|
85
85
|
protected escapeForRegExp(value: string): string;
|
|
@@ -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,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,
|
|
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,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EACH,MAAM,EACN,OAAO,EACP,aAAa,EACb,UAAU,EACV,gBAAgB,EAInB,MAAM,uBAAuB,CAAC;AAE/B,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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