@eclipse-glsp/client 1.1.0-next.383e4e9.264 → 1.1.0-next.3d1b3e6.280
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/decoration.css +0 -7
- package/css/glsp-sprotty.css +7 -0
- package/css/key-shortcut.css +5 -1
- package/{lib/base/source-uri-aware.js → css/navigation.css} +11 -9
- package/css/status-overlay.css +75 -0
- package/css/toast.css +45 -0
- package/lib/base/action-dispatcher.d.ts +8 -2
- package/lib/base/action-dispatcher.d.ts.map +1 -1
- package/lib/base/action-dispatcher.js +15 -7
- 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/default.module.d.ts +1 -10
- package/lib/base/default.module.d.ts.map +1 -1
- package/lib/base/default.module.js +20 -30
- package/lib/base/default.module.js.map +1 -1
- package/lib/base/editor-context-service.d.ts +17 -5
- package/lib/base/editor-context-service.d.ts.map +1 -1
- package/lib/base/editor-context-service.js +41 -14
- package/lib/base/editor-context-service.js.map +1 -1
- package/lib/base/feedback/feedback-action-dispatcher.d.ts.map +1 -1
- package/lib/base/feedback/feedback-action-dispatcher.js +5 -3
- package/lib/base/feedback/feedback-action-dispatcher.js.map +1 -1
- package/lib/base/focus/focus-tracker.d.ts +4 -0
- package/lib/base/focus/focus-tracker.d.ts.map +1 -1
- package/lib/base/focus/focus-tracker.js +12 -5
- package/lib/base/focus/focus-tracker.js.map +1 -1
- package/lib/base/model/diagram-loader.d.ts +116 -0
- package/lib/base/model/diagram-loader.d.ts.map +1 -0
- package/lib/base/model/diagram-loader.js +130 -0
- package/lib/base/model/diagram-loader.js.map +1 -0
- package/lib/base/model/glsp-model-source.d.ts +74 -0
- package/lib/base/model/glsp-model-source.d.ts.map +1 -0
- package/lib/base/model/glsp-model-source.js +178 -0
- package/lib/base/model/glsp-model-source.js.map +1 -0
- 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} +20 -10
- 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/selection-service.spec.js +9 -8
- 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/default-modules.d.ts +20 -26
- package/lib/default-modules.d.ts.map +1 -1
- package/lib/default-modules.js +31 -29
- package/lib/default-modules.js.map +1 -1
- package/lib/features/accessibility/accessibility-module.d.ts.map +1 -1
- package/lib/features/accessibility/accessibility-module.js +6 -0
- package/lib/features/accessibility/accessibility-module.js.map +1 -1
- package/lib/features/accessibility/element-navigation/diagram-navigation-tool.d.ts +65 -0
- package/lib/features/accessibility/element-navigation/diagram-navigation-tool.d.ts.map +1 -0
- package/lib/features/accessibility/element-navigation/diagram-navigation-tool.js +290 -0
- package/lib/features/accessibility/element-navigation/diagram-navigation-tool.js.map +1 -0
- package/lib/features/accessibility/element-navigation/element-navigation-module.d.ts +24 -0
- package/lib/features/accessibility/element-navigation/element-navigation-module.d.ts.map +1 -0
- package/lib/features/accessibility/element-navigation/element-navigation-module.js +38 -0
- package/lib/features/accessibility/element-navigation/element-navigation-module.js.map +1 -0
- package/lib/features/accessibility/element-navigation/element-navigator.d.ts +26 -0
- package/lib/features/accessibility/element-navigation/element-navigator.d.ts.map +1 -0
- package/{src/base/source-uri-aware.ts → lib/features/accessibility/element-navigation/element-navigator.js} +4 -9
- package/lib/features/accessibility/element-navigation/element-navigator.js.map +1 -0
- package/lib/features/accessibility/element-navigation/left-right-top-bottom-navigator.d.ts +28 -0
- package/lib/features/accessibility/element-navigation/left-right-top-bottom-navigator.d.ts.map +1 -0
- package/lib/features/accessibility/element-navigation/left-right-top-bottom-navigator.js +104 -0
- package/lib/features/accessibility/element-navigation/left-right-top-bottom-navigator.js.map +1 -0
- package/lib/features/accessibility/element-navigation/local-element-navigator.d.ts +35 -0
- package/lib/features/accessibility/element-navigation/local-element-navigator.d.ts.map +1 -0
- package/lib/features/accessibility/element-navigation/local-element-navigator.js +117 -0
- package/lib/features/accessibility/element-navigation/local-element-navigator.js.map +1 -0
- package/lib/features/accessibility/element-navigation/position-navigator.d.ts +32 -0
- package/lib/features/accessibility/element-navigation/position-navigator.d.ts.map +1 -0
- package/lib/features/accessibility/element-navigation/position-navigator.js +80 -0
- package/lib/features/accessibility/element-navigation/position-navigator.js.map +1 -0
- package/lib/features/accessibility/focus-tracker/focus-tracker-module.d.ts +23 -0
- package/lib/features/accessibility/focus-tracker/focus-tracker-module.d.ts.map +1 -0
- package/lib/features/accessibility/focus-tracker/focus-tracker-module.js +33 -0
- package/lib/features/accessibility/focus-tracker/focus-tracker-module.js.map +1 -0
- package/lib/features/accessibility/focus-tracker/focus-tracker-tool.d.ts +37 -0
- package/lib/features/accessibility/focus-tracker/focus-tracker-tool.d.ts.map +1 -0
- package/lib/features/accessibility/focus-tracker/focus-tracker-tool.js +133 -0
- package/lib/features/accessibility/focus-tracker/focus-tracker-tool.js.map +1 -0
- package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.d.ts +2 -2
- 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 +2 -2
- 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 +1 -0
- package/lib/features/accessibility/key-shortcut/accessible-key-shortcut.d.ts.map +1 -1
- package/lib/features/accessibility/key-shortcut/accessible-key-shortcut.js +15 -3
- package/lib/features/accessibility/key-shortcut/accessible-key-shortcut.js.map +1 -1
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.d.ts +2 -2
- 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 +22 -15
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.js.map +1 -1
- package/lib/features/accessibility/search/search-palette.d.ts.map +1 -1
- package/lib/features/accessibility/search/search-palette.js +3 -1
- package/lib/features/accessibility/search/search-palette.js.map +1 -1
- package/lib/features/accessibility/search/search-tool.d.ts +2 -1
- package/lib/features/accessibility/search/search-tool.d.ts.map +1 -1
- package/lib/features/accessibility/search/search-tool.js +4 -8
- package/lib/features/accessibility/search/search-tool.js.map +1 -1
- package/lib/features/accessibility/toast/messages.json +16 -0
- package/lib/features/accessibility/toast/toast-handler.d.ts +45 -0
- package/lib/features/accessibility/toast/toast-handler.d.ts.map +1 -0
- package/lib/features/accessibility/toast/toast-handler.js +54 -0
- package/lib/features/accessibility/toast/toast-handler.js.map +1 -0
- package/lib/features/accessibility/toast/toast-module.d.ts +24 -0
- package/lib/features/accessibility/toast/toast-module.d.ts.map +1 -0
- package/lib/features/accessibility/toast/toast-module.js +38 -0
- package/lib/features/accessibility/toast/toast-module.js.map +1 -0
- package/lib/features/accessibility/toast/toast-tool.d.ts +43 -0
- package/lib/features/accessibility/toast/toast-tool.d.ts.map +1 -0
- package/lib/features/accessibility/toast/toast-tool.js +115 -0
- package/lib/features/accessibility/toast/toast-tool.js.map +1 -0
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.d.ts +2 -2
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.d.ts.map +1 -1
- package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts +2 -2
- 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 +4 -8
- package/lib/features/accessibility/view-key-tools/movement-key-tool.js.map +1 -1
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts +2 -2
- 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 +9 -13
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.js.map +1 -1
- package/lib/features/bounds/bounds-module.d.ts.map +1 -1
- package/lib/features/bounds/bounds-module.js +2 -1
- package/lib/features/bounds/bounds-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.map +1 -1
- package/lib/features/command-palette/server-command-palette-provider.d.ts.map +1 -1
- package/lib/features/command-palette/server-command-palette-provider.js +3 -2
- package/lib/features/command-palette/server-command-palette-provider.js.map +1 -1
- package/lib/features/context-menu/context-menu-module.d.ts.map +1 -1
- package/lib/features/context-menu/context-menu-module.js +8 -8
- package/lib/features/context-menu/context-menu-module.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} +2 -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} +7 -12
- 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 +1 -1
- package/lib/features/context-menu/server-context-menu-provider.d.ts.map +1 -1
- package/lib/features/context-menu/server-context-menu-provider.js +3 -2
- package/lib/features/context-menu/server-context-menu-provider.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.js +1 -4
- package/lib/features/copy-paste/copy-paste-context-menu.js.map +1 -1
- package/lib/features/hints/type-hints-module.d.ts.map +1 -1
- package/lib/features/hints/type-hints-module.js +6 -5
- package/lib/features/hints/type-hints-module.js.map +1 -1
- package/lib/features/hints/type-hints.d.ts +6 -2
- package/lib/features/hints/type-hints.d.ts.map +1 -1
- package/lib/features/hints/type-hints.js +8 -0
- package/lib/features/hints/type-hints.js.map +1 -1
- package/lib/features/hover/hover-module.d.ts.map +1 -1
- package/lib/features/hover/hover-module.js +3 -2
- package/lib/features/hover/hover-module.js.map +1 -1
- package/lib/features/hover/hover.d.ts.map +1 -1
- package/lib/features/hover/hover.js +3 -2
- package/lib/features/hover/hover.js.map +1 -1
- package/lib/features/label-edit/edit-label-tool.d.ts +2 -2
- package/lib/features/label-edit/edit-label-tool.d.ts.map +1 -1
- package/lib/features/label-edit/edit-label-tool.js +2 -2
- package/lib/features/label-edit/edit-label-tool.js.map +1 -1
- package/lib/features/label-edit/edit-label-validator.d.ts.map +1 -1
- package/lib/features/label-edit/edit-label-validator.js +3 -2
- package/lib/features/label-edit/edit-label-validator.js.map +1 -1
- package/lib/features/navigation/navigation-action-handler.d.ts.map +1 -1
- package/lib/features/navigation/navigation-action-handler.js +1 -4
- package/lib/features/navigation/navigation-action-handler.js.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.d.ts +3 -3
- package/lib/features/navigation/navigation-target-resolver.d.ts.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.js +5 -7
- package/lib/features/navigation/navigation-target-resolver.js.map +1 -1
- package/lib/features/select/select-mouse-listener.d.ts +4 -2
- package/lib/features/select/select-mouse-listener.d.ts.map +1 -1
- package/lib/features/select/select-mouse-listener.js +17 -58
- package/lib/features/select/select-mouse-listener.js.map +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 +1 -4
- package/lib/features/source-model-watcher/source-model-changed-action-handler.js.map +1 -1
- package/lib/features/status/status-module.d.ts +19 -0
- package/lib/features/status/status-module.d.ts.map +1 -0
- package/lib/features/status/status-module.js +28 -0
- package/lib/features/status/status-module.js.map +1 -0
- package/lib/features/status/status-overlay.d.ts +25 -0
- package/lib/features/status/status-overlay.d.ts.map +1 -0
- package/lib/features/status/status-overlay.js +124 -0
- package/lib/features/status/status-overlay.js.map +1 -0
- package/lib/features/tool-palette/tool-palette-module.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette-module.js +3 -2
- package/lib/features/tool-palette/tool-palette-module.js.map +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts +10 -8
- package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette.js +36 -29
- package/lib/features/tool-palette/tool-palette.js.map +1 -1
- package/lib/features/tools/{base-glsp-tool.d.ts → base-tools.d.ts} +14 -4
- package/lib/features/tools/base-tools.d.ts.map +1 -0
- package/lib/features/tools/{base-glsp-tool.js → base-tools.js} +31 -10
- package/lib/features/tools/base-tools.js.map +1 -0
- package/lib/features/tools/change-bounds/change-bounds-tool.d.ts +2 -2
- package/lib/features/tools/change-bounds/change-bounds-tool.d.ts.map +1 -1
- package/lib/features/tools/change-bounds/change-bounds-tool.js +2 -2
- package/lib/features/tools/change-bounds/change-bounds-tool.js.map +1 -1
- package/lib/features/tools/deletion/delete-tool.d.ts +4 -4
- package/lib/features/tools/deletion/delete-tool.d.ts.map +1 -1
- package/lib/features/tools/deletion/delete-tool.js +4 -3
- package/lib/features/tools/deletion/delete-tool.js.map +1 -1
- package/lib/features/tools/edge-creation/edge-creation-tool.d.ts +2 -2
- package/lib/features/tools/edge-creation/edge-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-creation/edge-creation-tool.js +5 -4
- package/lib/features/tools/edge-creation/edge-creation-tool.js.map +1 -1
- package/lib/features/tools/edge-edit/edge-edit-tool.d.ts +2 -2
- package/lib/features/tools/edge-edit/edge-edit-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-edit/edge-edit-tool.js +2 -2
- package/lib/features/tools/edge-edit/edge-edit-tool.js.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-mouse-tool.d.ts +2 -2
- package/lib/features/tools/marquee-selection/marquee-mouse-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-mouse-tool.js +5 -4
- package/lib/features/tools/marquee-selection/marquee-mouse-tool.js.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-tool.d.ts +2 -2
- package/lib/features/tools/marquee-selection/marquee-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-tool.js +4 -3
- package/lib/features/tools/marquee-selection/marquee-tool.js.map +1 -1
- package/lib/features/tools/node-creation/node-creation-tool.d.ts +2 -2
- package/lib/features/tools/node-creation/node-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/node-creation/node-creation-tool.js +4 -3
- package/lib/features/tools/node-creation/node-creation-tool.js.map +1 -1
- package/lib/features/tools/tool-focus-loss-module.d.ts.map +1 -1
- package/lib/features/tools/tool-focus-loss-module.js +2 -1
- package/lib/features/tools/tool-focus-loss-module.js.map +1 -1
- package/lib/features/validation/validate.js +1 -1
- package/lib/features/validation/validate.js.map +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.d.ts.map +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.js +3 -2
- package/lib/features/viewport/glsp-scroll-mouse-listener.js.map +1 -1
- package/lib/features/viewport/reposition.d.ts +38 -0
- package/lib/features/viewport/reposition.d.ts.map +1 -0
- package/lib/features/viewport/reposition.js +109 -0
- package/lib/features/viewport/reposition.js.map +1 -0
- package/lib/features/viewport/viewport-modules.d.ts.map +1 -1
- package/lib/features/viewport/viewport-modules.js +5 -2
- package/lib/features/viewport/viewport-modules.js.map +1 -1
- package/lib/glsp-sprotty/augmented-actions.d.ts +2 -10
- package/lib/glsp-sprotty/augmented-actions.d.ts.map +1 -1
- package/lib/glsp-sprotty/augmented-actions.js +2 -6
- package/lib/glsp-sprotty/augmented-actions.js.map +1 -1
- package/lib/glsp-sprotty/index.d.ts +3 -6
- package/lib/glsp-sprotty/index.d.ts.map +1 -1
- package/lib/glsp-sprotty/index.js +4 -7
- package/lib/glsp-sprotty/index.js.map +1 -1
- package/lib/glsp-sprotty/types.d.ts +5 -82
- package/lib/glsp-sprotty/types.d.ts.map +1 -1
- package/lib/glsp-sprotty/types.js +2 -8
- package/lib/glsp-sprotty/types.js.map +1 -1
- package/lib/index.d.ts +17 -7
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +17 -7
- package/lib/index.js.map +1 -1
- package/lib/standalone-modules.d.ts +11 -2
- package/lib/standalone-modules.d.ts.map +1 -1
- package/lib/standalone-modules.js +37 -1
- package/lib/standalone-modules.js.map +1 -1
- package/lib/views/base-view-module.d.ts.map +1 -1
- package/lib/views/base-view-module.js +2 -1
- package/lib/views/base-view-module.js.map +1 -1
- package/lib/views/glsp-projection-view.d.ts +2 -1
- package/lib/views/glsp-projection-view.d.ts.map +1 -1
- package/lib/views/glsp-projection-view.js +11 -2
- package/lib/views/glsp-projection-view.js.map +1 -1
- package/package.json +4 -4
- package/src/base/action-dispatcher.spec.ts +87 -0
- package/src/base/action-dispatcher.ts +24 -10
- package/src/{features/tools/base-glsp-creation-tool.ts → base/action-handler-registry.ts} +10 -20
- package/src/base/default.module.ts +21 -34
- package/src/base/editor-context-service.ts +49 -16
- package/src/base/feedback/feedback-action-dispatcher.ts +5 -3
- package/src/base/focus/focus-tracker.ts +16 -5
- package/src/base/model/diagram-loader.ts +215 -0
- package/src/base/model/glsp-model-source.ts +199 -0
- package/src/base/model/model-initialization-constraint.spec.ts +95 -0
- package/src/base/{model-initialization-constraint.ts → model/model-initialization-constraint.ts} +43 -10
- package/src/base/selection-service.spec.ts +10 -9
- package/src/base/tool-manager/tool-manager.ts +183 -0
- package/src/base/tool-manager/tool.ts +85 -0
- package/src/default-modules.ts +37 -28
- package/src/features/accessibility/README.md +18 -0
- package/src/features/accessibility/accessibility-module.ts +6 -1
- package/src/features/accessibility/element-navigation/diagram-navigation-tool.ts +307 -0
- package/src/features/accessibility/element-navigation/element-navigation-module.ts +36 -0
- package/src/features/accessibility/element-navigation/element-navigator.ts +57 -0
- package/src/features/accessibility/element-navigation/left-right-top-bottom-navigator.ts +113 -0
- package/src/features/accessibility/element-navigation/local-element-navigator.ts +147 -0
- package/src/features/accessibility/element-navigation/position-navigator.ts +102 -0
- package/src/features/accessibility/focus-tracker/focus-tracker-module.ts +32 -0
- package/src/features/accessibility/focus-tracker/focus-tracker-tool.ts +129 -0
- package/src/features/accessibility/key-shortcut/accessible-key-shortcut-tool.ts +3 -3
- package/src/features/accessibility/key-shortcut/accessible-key-shortcut.ts +18 -3
- package/src/features/accessibility/resize-key-tool/resize-key-tool.ts +30 -16
- package/src/features/accessibility/search/search-palette.ts +4 -2
- package/src/features/accessibility/search/search-tool.ts +8 -9
- package/src/features/accessibility/toast/messages.json +16 -0
- package/src/features/accessibility/toast/toast-handler.ts +69 -0
- package/src/features/accessibility/toast/toast-module.ts +36 -0
- package/src/features/accessibility/toast/toast-tool.ts +108 -0
- package/src/features/accessibility/view-key-tools/deselect-key-tool.ts +2 -2
- package/src/features/accessibility/view-key-tools/movement-key-tool.ts +8 -10
- package/src/features/accessibility/view-key-tools/zoom-key-tool.ts +13 -15
- package/src/features/bounds/bounds-module.ts +2 -2
- package/src/features/command-palette/command-palette-tool.ts +2 -1
- package/src/features/command-palette/server-command-palette-provider.ts +3 -2
- package/src/features/context-menu/context-menu-module.ts +11 -12
- package/src/features/context-menu/{selection-service-aware-context-menu-mouse-listener.ts → glsp-context-menu-mouse-listener.ts} +1 -5
- package/src/features/context-menu/server-context-menu-provider.ts +3 -2
- package/src/features/copy-paste/copy-paste-context-menu.ts +3 -6
- package/src/features/hints/type-hints-module.ts +7 -6
- package/src/features/hints/type-hints.ts +12 -1
- package/src/features/hover/hover-module.ts +1 -2
- package/src/features/hover/hover.ts +2 -3
- package/src/features/label-edit/edit-label-tool.ts +2 -2
- package/src/features/label-edit/edit-label-validator.ts +7 -6
- package/src/features/navigation/navigation-action-handler.ts +5 -8
- package/src/features/navigation/navigation-target-resolver.ts +10 -7
- package/src/features/select/select-mouse-listener.ts +27 -79
- package/src/features/source-model-watcher/source-model-changed-action-handler.ts +3 -6
- package/src/features/status/status-module.ts +26 -0
- package/src/features/status/status-overlay.ts +121 -0
- package/src/features/tool-palette/tool-palette-module.ts +4 -3
- package/src/features/tool-palette/tool-palette.ts +44 -33
- package/src/features/tools/{base-glsp-tool.ts → base-tools.ts} +28 -3
- package/src/features/tools/change-bounds/change-bounds-tool.ts +2 -2
- package/src/features/tools/deletion/delete-tool.ts +4 -5
- package/src/features/tools/edge-creation/edge-creation-tool.ts +3 -3
- package/src/features/tools/edge-edit/edge-edit-tool.ts +2 -2
- package/src/features/tools/marquee-selection/marquee-mouse-tool.ts +3 -3
- package/src/features/tools/marquee-selection/marquee-tool.ts +4 -3
- package/src/features/tools/node-creation/node-creation-tool.ts +3 -3
- package/src/features/tools/tool-focus-loss-module.ts +2 -1
- package/src/features/validation/validate.ts +1 -1
- package/src/features/viewport/glsp-scroll-mouse-listener.ts +2 -9
- package/src/features/viewport/reposition.ts +119 -0
- package/src/features/viewport/viewport-modules.ts +3 -2
- package/src/glsp-sprotty/augmented-actions.ts +1 -16
- package/src/glsp-sprotty/index.ts +4 -7
- package/src/glsp-sprotty/types.ts +6 -8
- package/src/index.ts +17 -7
- package/src/standalone-modules.ts +40 -1
- package/src/views/base-view-module.ts +2 -2
- package/src/views/glsp-projection-view.tsx +18 -8
- package/lib/base/model-initialization-constraint.d.ts.map +0 -1
- package/lib/base/model-initialization-constraint.js.map +0 -1
- package/lib/base/source-uri-aware.d.ts +0 -5
- package/lib/base/source-uri-aware.d.ts.map +0 -1
- package/lib/base/source-uri-aware.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/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/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/model-source/glsp-diagram-server.d.ts +0 -21
- package/lib/model-source/glsp-diagram-server.d.ts.map +0 -1
- package/lib/model-source/glsp-diagram-server.js +0 -107
- package/lib/model-source/glsp-diagram-server.js.map +0 -1
- package/src/base/tool-manager/glsp-tool-manager.ts +0 -96
- package/src/model-source/glsp-diagram-server.ts +0 -125
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.module.js","sourceRoot":"","sources":["../../src/base/default.module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,6CAA2C;
|
|
1
|
+
{"version":3,"file":"default.module.js","sourceRoot":"","sources":["../../src/base/default.module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,6CAA2C;AAC3C,iDAeuB;AACvB,sCAAoC;AACpC,2DAA2D;AAC3D,uEAAsE;AACtE,mDAAmD;AACnD,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CAAsB,EAAC,OAAO,EAAE,wBAAiB,CAAC,IAAI,EAAE,uCAAwB,CAAC,CAAC;AACtF,CAAC,CAAC,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Action, Args, Disposable, DisposableCollection, EditorContext, Emitter, Event, IActionHandler,
|
|
1
|
+
import { Action, Args, Disposable, DisposableCollection, EditorContext, Emitter, Event, IActionHandler, MaybePromise, MousePositionTracker, SModelElement, SModelRoot, SetDirtyStateAction, SetEditModeAction, ValueChange } from '../glsp-sprotty/index';
|
|
2
|
+
import { GLSPActionDispatcher } from './action-dispatcher';
|
|
3
|
+
import { IDiagramOptions, IDiagramStartup } from './model/diagram-loader';
|
|
2
4
|
import { SelectionService } from './selection-service';
|
|
3
5
|
export interface IEditModeListener {
|
|
4
6
|
editModeChanged(newValue: string, oldValue: string): void;
|
|
5
7
|
}
|
|
8
|
+
export type DirtyStateChange = Pick<SetDirtyStateAction, 'isDirty' | 'reason'>;
|
|
6
9
|
/**
|
|
7
10
|
* The `EditorContextService` is a central injectable component that gives read-only access to
|
|
8
11
|
* certain aspects of the diagram, such as the currently selected elements, the model root,
|
|
@@ -15,26 +18,35 @@ export interface IEditModeListener {
|
|
|
15
18
|
* actions to the server to describe the current state of the editor (selection, last mouse
|
|
16
19
|
* position, etc.).
|
|
17
20
|
*/
|
|
18
|
-
export declare class EditorContextService implements IActionHandler, Disposable {
|
|
21
|
+
export declare class EditorContextService implements IActionHandler, Disposable, IDiagramStartup {
|
|
19
22
|
protected selectionService: SelectionService;
|
|
20
23
|
protected mousePositionTracker: MousePositionTracker;
|
|
24
|
+
protected diagramOptions: IDiagramOptions;
|
|
21
25
|
protected editModeListeners: IEditModeListener[];
|
|
22
|
-
protected
|
|
26
|
+
protected actionDispatcher: GLSPActionDispatcher;
|
|
23
27
|
protected _editMode: string;
|
|
24
28
|
protected onEditModeChangedEmitter: Emitter<ValueChange<string>>;
|
|
25
29
|
get onEditModeChanged(): Event<ValueChange<string>>;
|
|
30
|
+
protected _isDirty: boolean;
|
|
31
|
+
protected onDirtyStateChangedEmitter: Emitter<DirtyStateChange>;
|
|
32
|
+
get onDirtyStateChanged(): Event<DirtyStateChange>;
|
|
26
33
|
protected toDispose: DisposableCollection;
|
|
27
34
|
protected initialize(): void;
|
|
28
35
|
dispose(): void;
|
|
29
36
|
get(args?: Args): EditorContext;
|
|
30
37
|
getWithSelection(selectedElementIds: string[], args?: Args): EditorContext;
|
|
31
38
|
handle(action: Action): void;
|
|
32
|
-
protected
|
|
33
|
-
|
|
39
|
+
protected handleSetEditModeAction(action: SetEditModeAction): void;
|
|
40
|
+
protected handleSetDirtyStateAction(action: SetDirtyStateAction): void;
|
|
41
|
+
get sourceUri(): string | undefined;
|
|
34
42
|
get editMode(): string;
|
|
43
|
+
get diagramType(): string;
|
|
44
|
+
get clientId(): string;
|
|
35
45
|
get modelRoot(): Readonly<SModelRoot>;
|
|
36
46
|
get selectedElements(): Readonly<SModelElement>[];
|
|
37
47
|
get isReadonly(): boolean;
|
|
48
|
+
get isDirty(): boolean;
|
|
49
|
+
postRequestModel(): MaybePromise<void>;
|
|
38
50
|
}
|
|
39
51
|
export type EditorContextServiceProvider = () => Promise<EditorContextService>;
|
|
40
52
|
//# sourceMappingURL=editor-context-service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-context-service.d.ts","sourceRoot":"","sources":["../../src/base/editor-context-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,MAAM,EACN,IAAI,EACJ,UAAU,EACV,oBAAoB,EAEpB,aAAa,EACb,OAAO,EACP,KAAK,EACL,cAAc,EACd,
|
|
1
|
+
{"version":3,"file":"editor-context-service.d.ts","sourceRoot":"","sources":["../../src/base/editor-context-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,MAAM,EACN,IAAI,EACJ,UAAU,EACV,oBAAoB,EAEpB,aAAa,EACb,OAAO,EACP,KAAK,EACL,cAAc,EACd,YAAY,EACZ,oBAAoB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/B,gBAAgB,CAAC,kBAAkB,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,aAAa;IAQ1E,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAQ5B,SAAS,CAAC,uBAAuB,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI;IAMlE,SAAS,CAAC,yBAAyB,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI;IAOtE,IAAI,SAAS,IAAI,MAAM,GAAG,SAAS,CAElC;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,SAAS,IAAI,QAAQ,CAAC,UAAU,CAAC,CAEpC;IAED,IAAI,gBAAgB,IAAI,QAAQ,CAAC,aAAa,CAAC,EAAE,CAEhD;IAED,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,gBAAgB,IAAI,YAAY,CAAC,IAAI,CAAC;CAGzC;AAED,MAAM,MAAM,4BAA4B,GAAG,MAAM,OAAO,CAAC,oBAAoB,CAAC,CAAC"}
|
|
@@ -27,8 +27,8 @@ exports.EditorContextService = void 0;
|
|
|
27
27
|
********************************************************************************/
|
|
28
28
|
const inversify_1 = require("inversify");
|
|
29
29
|
const _glsp_sprotty_1 = require("../glsp-sprotty/index");
|
|
30
|
+
const action_dispatcher_1 = require("./action-dispatcher");
|
|
30
31
|
const selection_service_1 = require("./selection-service");
|
|
31
|
-
const source_uri_aware_1 = require("./source-uri-aware");
|
|
32
32
|
/**
|
|
33
33
|
* The `EditorContextService` is a central injectable component that gives read-only access to
|
|
34
34
|
* certain aspects of the diagram, such as the currently selected elements, the model root,
|
|
@@ -45,13 +45,19 @@ let EditorContextService = exports.EditorContextService = class EditorContextSer
|
|
|
45
45
|
constructor() {
|
|
46
46
|
this.editModeListeners = [];
|
|
47
47
|
this.onEditModeChangedEmitter = new _glsp_sprotty_1.Emitter();
|
|
48
|
+
this.onDirtyStateChangedEmitter = new _glsp_sprotty_1.Emitter();
|
|
48
49
|
this.toDispose = new _glsp_sprotty_1.DisposableCollection();
|
|
49
50
|
}
|
|
50
51
|
get onEditModeChanged() {
|
|
51
52
|
return this.onEditModeChangedEmitter.event;
|
|
52
53
|
}
|
|
54
|
+
get onDirtyStateChanged() {
|
|
55
|
+
return this.onDirtyStateChangedEmitter.event;
|
|
56
|
+
}
|
|
53
57
|
initialize() {
|
|
54
|
-
|
|
58
|
+
var _a;
|
|
59
|
+
this._editMode = (_a = this.diagramOptions.editMode) !== null && _a !== void 0 ? _a : _glsp_sprotty_1.EditMode.EDITABLE;
|
|
60
|
+
this.toDispose.push(this.onEditModeChangedEmitter, this.onDirtyStateChangedEmitter);
|
|
55
61
|
this.editModeListeners.forEach(listener => this.onEditModeChanged(change => listener.editModeChanged(change.newValue, change.oldValue)));
|
|
56
62
|
}
|
|
57
63
|
dispose() {
|
|
@@ -73,24 +79,35 @@ let EditorContextService = exports.EditorContextService = class EditorContextSer
|
|
|
73
79
|
}
|
|
74
80
|
handle(action) {
|
|
75
81
|
if (_glsp_sprotty_1.SetEditModeAction.is(action)) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
82
|
+
this.handleSetEditModeAction(action);
|
|
83
|
+
}
|
|
84
|
+
else if (_glsp_sprotty_1.SetDirtyStateAction.is(action)) {
|
|
85
|
+
this.handleSetDirtyStateAction(action);
|
|
79
86
|
}
|
|
80
87
|
}
|
|
81
|
-
|
|
88
|
+
handleSetEditModeAction(action) {
|
|
89
|
+
const oldValue = this._editMode;
|
|
90
|
+
this._editMode = action.editMode;
|
|
82
91
|
this.onEditModeChangedEmitter.fire({ newValue: this.editMode, oldValue });
|
|
83
92
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
93
|
+
handleSetDirtyStateAction(action) {
|
|
94
|
+
if (action.isDirty !== this._isDirty) {
|
|
95
|
+
this._isDirty = action.isDirty;
|
|
96
|
+
this.onDirtyStateChangedEmitter.fire(action);
|
|
88
97
|
}
|
|
89
|
-
|
|
98
|
+
}
|
|
99
|
+
get sourceUri() {
|
|
100
|
+
return this.diagramOptions.sourceUri;
|
|
90
101
|
}
|
|
91
102
|
get editMode() {
|
|
92
103
|
return this._editMode;
|
|
93
104
|
}
|
|
105
|
+
get diagramType() {
|
|
106
|
+
return this.diagramOptions.diagramType;
|
|
107
|
+
}
|
|
108
|
+
get clientId() {
|
|
109
|
+
return this.diagramOptions.clientId;
|
|
110
|
+
}
|
|
94
111
|
get modelRoot() {
|
|
95
112
|
return this.selectionService.getModelRoot();
|
|
96
113
|
}
|
|
@@ -100,6 +117,12 @@ let EditorContextService = exports.EditorContextService = class EditorContextSer
|
|
|
100
117
|
get isReadonly() {
|
|
101
118
|
return this.editMode === _glsp_sprotty_1.EditMode.READONLY;
|
|
102
119
|
}
|
|
120
|
+
get isDirty() {
|
|
121
|
+
return this._isDirty;
|
|
122
|
+
}
|
|
123
|
+
postRequestModel() {
|
|
124
|
+
this.actionDispatcher.dispatch(_glsp_sprotty_1.SetEditModeAction.create(this.editMode));
|
|
125
|
+
}
|
|
103
126
|
};
|
|
104
127
|
__decorate([
|
|
105
128
|
(0, inversify_1.inject)(selection_service_1.SelectionService),
|
|
@@ -109,15 +132,19 @@ __decorate([
|
|
|
109
132
|
(0, inversify_1.inject)(_glsp_sprotty_1.MousePositionTracker),
|
|
110
133
|
__metadata("design:type", _glsp_sprotty_1.MousePositionTracker)
|
|
111
134
|
], EditorContextService.prototype, "mousePositionTracker", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, inversify_1.inject)(_glsp_sprotty_1.TYPES.IDiagramOptions),
|
|
137
|
+
__metadata("design:type", Object)
|
|
138
|
+
], EditorContextService.prototype, "diagramOptions", void 0);
|
|
112
139
|
__decorate([
|
|
113
140
|
(0, inversify_1.multiInject)(_glsp_sprotty_1.TYPES.IEditModeListener),
|
|
114
141
|
(0, inversify_1.optional)(),
|
|
115
142
|
__metadata("design:type", Array)
|
|
116
143
|
], EditorContextService.prototype, "editModeListeners", void 0);
|
|
117
144
|
__decorate([
|
|
118
|
-
(0, inversify_1.inject)(
|
|
119
|
-
__metadata("design:type",
|
|
120
|
-
], EditorContextService.prototype, "
|
|
145
|
+
(0, inversify_1.inject)(action_dispatcher_1.GLSPActionDispatcher),
|
|
146
|
+
__metadata("design:type", action_dispatcher_1.GLSPActionDispatcher)
|
|
147
|
+
], EditorContextService.prototype, "actionDispatcher", void 0);
|
|
121
148
|
__decorate([
|
|
122
149
|
(0, inversify_1.postConstruct)(),
|
|
123
150
|
__metadata("design:type", Function),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-context-service.js","sourceRoot":"","sources":["../../src/base/editor-context-service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAiG;AACjG,
|
|
1
|
+
{"version":3,"file":"editor-context-service.js","sourceRoot":"","sources":["../../src/base/editor-context-service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAiG;AACjG,iDAkBuB;AACvB,2DAA2D;AAE3D,2DAAuD;AAOvD;;;;;;;;;;;GAWG;AAEI,IAAM,oBAAoB,kCAA1B,MAAM,oBAAoB;IAA1B;QAYO,sBAAiB,GAAwB,EAAE,CAAC;QAM5C,6BAAwB,GAAG,IAAI,uBAAO,EAAuB,CAAC;QAM9D,+BAA0B,GAAG,IAAI,uBAAO,EAAoB,CAAC;QAK7D,cAAS,GAAG,IAAI,oCAAoB,EAAE,CAAC;IAwFrD,CAAC;IAlGG,IAAI,iBAAiB;QACjB,OAAO,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAC/C,CAAC;IAID,IAAI,mBAAmB;QACnB,OAAO,IAAI,CAAC,0BAA0B,CAAC,KAAK,CAAC;IACjD,CAAC;IAKS,UA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C;AAGnC;IADT,IAAA,kBAAM,EAAC,oCAAoB,CAAC;8BACG,oCAAoB;kEAAC;AAG3C;IADT,IAAA,kBAAM,EAAC,qBAAK,CAAC,eAAe,CAAC;;4DACY;AAIhC;IAFT,IAAA,uBAAW,EAAC,qBAAK,CAAC,iBAAiB,CAAC;IACpC,IAAA,oBAAQ,GAAE;;+DAC2C;AAG5C;IADT,IAAA,kBAAM,EAAC,wCAAoB,CAAC;8BACD,wCAAoB;8DAAC;AAiBvC;IADT,IAAA,yBAAa,GAAE;;;;sDAOf;AAGD;IADC,IAAA,sBAAU,GAAE;;;;mDAGZ;+BA3CQ,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CAqHhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feedback-action-dispatcher.d.ts","sourceRoot":"","sources":["../../../src/base/feedback/feedback-action-dispatcher.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAS,MAAM,eAAe,CAAC;AAEtF,MAAM,WAAW,gBAAgB;CAAG;AAEpC;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;;;OAMG;IACH,gBAAgB,CAAC,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,EAAE,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC;IAEtH;;;;;;;;;OASG;IACH,kBAAkB,CAAC,eAAe,EAAE,gBAAgB,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAEvF;;OAEG;IACH,qBAAqB,IAAI,MAAM,EAAE,CAAC;CACrC;AAED,qBACa,wBAAyB,YAAW,yBAAyB;IACtE,SAAS,CAAC,kBAAkB,EAAE,GAAG,CAAC,gBAAgB,EAAE,MAAM,EAAE,CAAC,CAAa;IAEjC,SAAS,CAAC,gBAAgB,EAAE,MAAM,OAAO,CAA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AAE,GAAG,SAAS,GAAG,IAAI;IAOlG,qBAAqB,IAAI,MAAM,EAAE;IAMjC,6BAA6B,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,EAAE;cAUjD,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,eAAe,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;CASxG"}
|
|
@@ -32,13 +32,15 @@ let FeedbackActionDispatcher = exports.FeedbackActionDispatcher = class Feedback
|
|
|
32
32
|
this.registeredFeedback = new Map();
|
|
33
33
|
}
|
|
34
34
|
registerFeedback(feedbackEmitter, feedbackActions, cleanupActions) {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
if (feedbackActions.length > 0) {
|
|
36
|
+
this.registeredFeedback.set(feedbackEmitter, feedbackActions);
|
|
37
|
+
this.dispatchFeedback(feedbackActions, feedbackEmitter);
|
|
38
|
+
}
|
|
37
39
|
return _glsp_sprotty_1.Disposable.create(() => this.deregisterFeedback(feedbackEmitter, cleanupActions));
|
|
38
40
|
}
|
|
39
41
|
deregisterFeedback(feedbackEmitter, cleanupActions) {
|
|
40
42
|
this.registeredFeedback.delete(feedbackEmitter);
|
|
41
|
-
if (cleanupActions) {
|
|
43
|
+
if (cleanupActions && cleanupActions.length > 0) {
|
|
42
44
|
this.dispatchFeedback(cleanupActions, feedbackEmitter);
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feedback-action-dispatcher.js","sourceRoot":"","sources":["../../../src/base/feedback/feedback-action-dispatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA+C;AAC/C,iDAAsF;AA8C/E,IAAM,wBAAwB,sCAA9B,MAAM,wBAAwB;IAA9B;QACO,uBAAkB,GAAoC,IAAI,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"feedback-action-dispatcher.js","sourceRoot":"","sources":["../../../src/base/fe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C,MAAM,CAAC,EAAE;gBAC1B,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACxB;QACL,CAAC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAClB,CAAC;IAES,KAAK,CAAC,gBAAgB,CAAC,OAAiB,EAAE,eAAiC;QACjF,IAAI;YACA,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACvD,MAAM,gBAAgB,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YAC5C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,mCAAmC,eAAe,EAAE,CAAC,CAAC;SAChF;QAAC,OAAO,MAAM,EAAE;YACb,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,qCAAqC,EAAE,MAAM,CAAC,CAAC;SAC1E;IACL,CAAC;CACJ,CAAA;AA3CsD;IAAlD,IAAA,kBAAM,EAAC,qBAAK,CAAC,yBAAyB,CAAC;;kEAA8D;AACrE;IAAhC,IAAA,kBAAM,EAAC,qBAAK,CAAC,OAAO,CAAC;;wDAA2B;mCAJxC,wBAAwB;IADpC,IAAA,sBAAU,GAAE;GACA,wBAAwB,CA8CpC"}
|
|
@@ -2,8 +2,12 @@ import { Action, IActionHandler, ICommand, ViewerOptions } from '../../glsp-spro
|
|
|
2
2
|
export declare class FocusTracker implements IActionHandler {
|
|
3
3
|
protected inActiveCssClass: string;
|
|
4
4
|
protected _hasFocus: boolean;
|
|
5
|
+
protected _focusElement: HTMLOrSVGElement | null;
|
|
6
|
+
protected _diagramElement: HTMLElement | null;
|
|
5
7
|
protected options: ViewerOptions;
|
|
6
8
|
get hasFocus(): boolean;
|
|
9
|
+
get focusElement(): HTMLOrSVGElement | null;
|
|
10
|
+
get diagramElement(): HTMLElement | null;
|
|
7
11
|
handle(action: Action): void | Action | ICommand;
|
|
8
12
|
}
|
|
9
13
|
//# sourceMappingURL=focus-tracker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus-tracker.d.ts","sourceRoot":"","sources":["../../../src/base/focus/focus-tracker.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAS,aAAa,EAAE,MAAM,eAAe,CAAC;AAGvF,qBACa,YAAa,YAAW,cAAc;IAC/C,SAAS,CAAC,gBAAgB,SAAc;IACxC,SAAS,CAAC,SAAS,UAAQ;
|
|
1
|
+
{"version":3,"file":"focus-tracker.d.ts","sourceRoot":"","sources":["../../../src/base/focus/focus-tracker.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAS,aAAa,EAAE,MAAM,eAAe,CAAC;AAGvF,qBACa,YAAa,YAAW,cAAc;IAC/C,SAAS,CAAC,gBAAgB,SAAc;IACxC,SAAS,CAAC,SAAS,UAAQ;IAC3B,SAAS,CAAC,aAAa,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACjD,SAAS,CAAC,eAAe,EAAE,WAAW,GAAG,IAAI,CAAC;IAEjB,SAAS,CAAC,OAAO,EAAE,aAAa,CAAC;IAE9D,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,YAAY,IAAI,gBAAgB,GAAG,IAAI,CAE1C;IAED,IAAI,cAAc,IAAI,WAAW,GAAG,IAAI,CAEvC;IAED,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,QAAQ;CAiBnD"}
|
|
@@ -36,20 +36,27 @@ let FocusTracker = exports.FocusTracker = class FocusTracker {
|
|
|
36
36
|
get hasFocus() {
|
|
37
37
|
return this._hasFocus;
|
|
38
38
|
}
|
|
39
|
+
get focusElement() {
|
|
40
|
+
return this._focusElement;
|
|
41
|
+
}
|
|
42
|
+
get diagramElement() {
|
|
43
|
+
return this._diagramElement;
|
|
44
|
+
}
|
|
39
45
|
handle(action) {
|
|
40
46
|
if (focus_state_change_action_1.FocusStateChangedAction.is(action)) {
|
|
41
47
|
this._hasFocus = action.hasFocus;
|
|
42
|
-
|
|
43
|
-
|
|
48
|
+
this._focusElement = document.activeElement;
|
|
49
|
+
this._diagramElement = document.getElementById(this.options.baseDiv);
|
|
50
|
+
if (!this._diagramElement) {
|
|
44
51
|
return;
|
|
45
52
|
}
|
|
46
53
|
if (this.hasFocus) {
|
|
47
|
-
if (
|
|
48
|
-
|
|
54
|
+
if (this._diagramElement.classList.contains(this.inActiveCssClass)) {
|
|
55
|
+
this._diagramElement.classList.remove(this.inActiveCssClass);
|
|
49
56
|
}
|
|
50
57
|
}
|
|
51
58
|
else {
|
|
52
|
-
|
|
59
|
+
this._diagramElement.classList.add(this.inActiveCssClass);
|
|
53
60
|
}
|
|
54
61
|
}
|
|
55
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus-tracker.js","sourceRoot":"","sources":["../../../src/base/focus/focus-tracker.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA+C;AAC/C,iDAAuF;AACvF,2EAAsE;AAG/D,IAAM,YAAY,0BAAlB,MAAM,YAAY;IAAlB;QACO,qBAAgB,GAAG,UAAU,CAAC;QAC9B,cAAS,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"focus-tracker.js","sourceRoot":"","sources":["../../../src/base/focus/focus-tracker.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA+C;AAC/C,iDAAuF;AACvF,2EAAsE;AAG/D,IAAM,YAAY,0BAAlB,MAAM,YAAY;IAAlB;QACO,qBAAgB,GAAG,UAAU,CAAC;QAC9B,cAAS,GAAG,IAAI,CAAC;IAmC/B,CAAC;IA7BG,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAED,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,MAAc;QACjB,IAAI,mDAAuB,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACpC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;YACjC,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAwC,CAAC;YACvE,IAAI,CAAC,eAAe,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACrE,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE;gBACvB,OAAO;aACV;YACD,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACf,IAAI,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE;oBAChE,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;iBAChE;aACJ;iBAAM;gBACH,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;aAC7D;SACJ;IACL,CAAC;CACJ,CAAA;AA/B0C;IAAtC,IAAA,kBAAM,EAAC,qBAAK,CAAC,aAAa,CAAC;;6CAAkC;uBANrD,YAAY;IADxB,IAAA,sBAAU,GAAE;GACA,YAAY,CAqCxB"}
|
|
@@ -0,0 +1,116 @@
|
|
|
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 { Args, GLSPClient, InitializeParameters, MaybePromise } from '../../glsp-sprotty/index';
|
|
17
|
+
import { GLSPActionDispatcher } from '../action-dispatcher';
|
|
18
|
+
import { Ranked } from '../ranked';
|
|
19
|
+
import { GLSPModelSource } from './glsp-model-source';
|
|
20
|
+
import { ModelInitializationConstraint } from './model-initialization-constraint';
|
|
21
|
+
/**
|
|
22
|
+
* Configuration options for a specific GLSP diagram instance.
|
|
23
|
+
*/
|
|
24
|
+
export interface IDiagramOptions {
|
|
25
|
+
/**
|
|
26
|
+
* Unique id associated with this diagram. Used on the server side to identify the
|
|
27
|
+
* corresponding client session.
|
|
28
|
+
*/
|
|
29
|
+
clientId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The diagram type i.e. diagram language this diagram is associated with.
|
|
32
|
+
*/
|
|
33
|
+
diagramType: string;
|
|
34
|
+
/**
|
|
35
|
+
* The provider function to retrieve the GLSP client used by this diagram to communicate with the server.
|
|
36
|
+
* Multiple invocations of the provder function should always return the same `GLSPClient` instance.
|
|
37
|
+
*/
|
|
38
|
+
glspClientProvider: () => Promise<GLSPClient>;
|
|
39
|
+
/**
|
|
40
|
+
* The file source URI associated with this diagram.
|
|
41
|
+
*/
|
|
42
|
+
sourceUri?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The initial edit mode of diagram. Defaults to `editable`.
|
|
45
|
+
*/
|
|
46
|
+
editMode?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Services that implement startup hooks which are invoked during the {@link DiagramLoader.load} process.
|
|
50
|
+
* Typically used to dispatch additional initial actions and/or activate UI extensions on startup.
|
|
51
|
+
* Execution order is derived by the `rank` property of the service. If not present, the {@link Ranked.DEFAULT_RANK} will be assumed.
|
|
52
|
+
*/
|
|
53
|
+
export interface IDiagramStartup extends Partial<Ranked> {
|
|
54
|
+
/**
|
|
55
|
+
* Hook for services that should be executed before the underlying GLSP client is configured and the server is initialized.
|
|
56
|
+
*/
|
|
57
|
+
preInitialize?(): MaybePromise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Hook for services that should be executed before the initial model loading request (i.e. `RequestModelAction`) but
|
|
60
|
+
* after the underlying GLSP client has been configured and the server is initialized.
|
|
61
|
+
*/
|
|
62
|
+
preRequestModel?(): MaybePromise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Hook for services that should be executed after the initial model loading request (i.e. `RequestModelAction`).
|
|
65
|
+
* Note that this hook is invoked directly after the `RequestModelAction` has been dispatched. It does not necessarily wait
|
|
66
|
+
* until the client-server update roundtrip is completed. If you need to wait until the diagram is fully initialized use the
|
|
67
|
+
* {@link postModelInitialization} hook.
|
|
68
|
+
*/
|
|
69
|
+
postRequestModel?(): MaybePromise<void>;
|
|
70
|
+
postModelInitialization?(): MaybePromise<void>;
|
|
71
|
+
}
|
|
72
|
+
export declare namespace IDiagramStartup {
|
|
73
|
+
function is(object: unknown): object is IDiagramStartup;
|
|
74
|
+
}
|
|
75
|
+
export interface DiagramLoadingOptions {
|
|
76
|
+
/**
|
|
77
|
+
* Optional custom options that should be used the initial {@link RequestModelAction}.
|
|
78
|
+
* These options will be merged with the default options (`diagramType` and `sourceUri`).
|
|
79
|
+
* Defaults to an empty object if not defined.
|
|
80
|
+
*/
|
|
81
|
+
requestModelOptions?: Args;
|
|
82
|
+
/**
|
|
83
|
+
* Optional partial {@link InitializeParameters} that should be used for `initializeServer` request if the underlying
|
|
84
|
+
* {@link GLSPClient} has not been initialized yet.
|
|
85
|
+
*/
|
|
86
|
+
initializeParameters?: Partial<InitializeParameters>;
|
|
87
|
+
/**
|
|
88
|
+
* Flag to enable/disable client side notifications during the loading process.
|
|
89
|
+
* Defaults to `true` if not defined
|
|
90
|
+
*/
|
|
91
|
+
enableNotifications?: boolean;
|
|
92
|
+
}
|
|
93
|
+
export interface ResolvedDiagramLoadingOptions {
|
|
94
|
+
requestModelOptions: Args;
|
|
95
|
+
initializeParameters: InitializeParameters;
|
|
96
|
+
enableNotifications: boolean;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* The central component responsible for initializing the diagram and loading the graphical model
|
|
100
|
+
* from the GLSP server.
|
|
101
|
+
* Invoking the {@link DiagramLoader.load} method is typically the first operation that is executed after
|
|
102
|
+
* a diagram DI container has been created.
|
|
103
|
+
*/
|
|
104
|
+
export declare class DiagramLoader {
|
|
105
|
+
protected options: IDiagramOptions;
|
|
106
|
+
protected actionDispatcher: GLSPActionDispatcher;
|
|
107
|
+
protected diagramStartups: IDiagramStartup[];
|
|
108
|
+
protected modelSource: GLSPModelSource;
|
|
109
|
+
protected modelInitializationConstraint: ModelInitializationConstraint;
|
|
110
|
+
protected postConstruct(): void;
|
|
111
|
+
load(options?: DiagramLoadingOptions): Promise<void>;
|
|
112
|
+
protected invokeStartupHook(hook: keyof Omit<IDiagramStartup, 'rank'>): Promise<void>;
|
|
113
|
+
protected requestModel(options: ResolvedDiagramLoadingOptions): Promise<void>;
|
|
114
|
+
protected initialize(options: ResolvedDiagramLoadingOptions): Promise<void>;
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=diagram-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagram-loader.d.ts","sourceRoot":"","sources":["../../../src/base/model/diagram-loader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAGlF,OAAO,EAGH,IAAI,EAEJ,UAAU,EACV,oBAAoB,EACpB,YAAY,EAMf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAA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C,OAAO,EAAE,eAAe,CAAC;IAGnC,SAAS,CAAC,gBAAgB,EAAE,oBAAoB,CAAC;IAIjD,SAAS,CAAC,eAAe,EAAE,eAAe,EAAE,CAAM;IAGlD,SAAS,CAAC,WAAW,EAAE,eAAe,CAAC;IAGvC,SAAS,CAAC,6BAA6B,EAAE,6BAA6B,CAAC;IAGvE,SAAS,CAAC,aAAa,IAAI,IAAI;IAIzB,IAAI,CAAC,OAAO,GAAE,qBAA0B,GAAG,OAAO,CAAC,IAAI,CAAC;cAwB9C,iBAAiB,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;cAM3E,YAAY,CAAC,OAAO,EAAE,6BAA6B,GAAG,OAAO,CAAC,IAAI,CAAC;cAOnE,UAAU,CAAC,OAAO,EAAE,6BAA6B,GAAG,OAAO,CAAC,IAAI,CAAC;CAgBpF"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
4
|
+
*
|
|
5
|
+
* This program and the accompanying materials are made available under the
|
|
6
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
*
|
|
9
|
+
* This Source Code may also be made available under the following Secondary
|
|
10
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
* with the GNU Classpath Exception which is available at
|
|
13
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
*
|
|
15
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.DiagramLoader = exports.IDiagramStartup = void 0;
|
|
28
|
+
const inversify_1 = require("inversify");
|
|
29
|
+
const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
|
|
30
|
+
const action_dispatcher_1 = require("../action-dispatcher");
|
|
31
|
+
const ranked_1 = require("../ranked");
|
|
32
|
+
const glsp_model_source_1 = require("./glsp-model-source");
|
|
33
|
+
const model_initialization_constraint_1 = require("./model-initialization-constraint");
|
|
34
|
+
var IDiagramStartup;
|
|
35
|
+
(function (IDiagramStartup) {
|
|
36
|
+
function is(object) {
|
|
37
|
+
return (_glsp_sprotty_1.AnyObject.is(object) &&
|
|
38
|
+
(0, _glsp_sprotty_1.hasNumberProp)(object, 'rank', true) &&
|
|
39
|
+
('preInitialize' in object ||
|
|
40
|
+
'preRequestModel' in object ||
|
|
41
|
+
'postRequestModel' in object ||
|
|
42
|
+
'postModelInitialization' in object));
|
|
43
|
+
}
|
|
44
|
+
IDiagramStartup.is = is;
|
|
45
|
+
})(IDiagramStartup || (exports.IDiagramStartup = IDiagramStartup = {}));
|
|
46
|
+
/**
|
|
47
|
+
* The central component responsible for initializing the diagram and loading the graphical model
|
|
48
|
+
* from the GLSP server.
|
|
49
|
+
* Invoking the {@link DiagramLoader.load} method is typically the first operation that is executed after
|
|
50
|
+
* a diagram DI container has been created.
|
|
51
|
+
*/
|
|
52
|
+
let DiagramLoader = exports.DiagramLoader = class DiagramLoader {
|
|
53
|
+
constructor() {
|
|
54
|
+
this.diagramStartups = [];
|
|
55
|
+
}
|
|
56
|
+
postConstruct() {
|
|
57
|
+
this.diagramStartups.sort((a, b) => ranked_1.Ranked.getRank(a) - ranked_1.Ranked.getRank(b));
|
|
58
|
+
}
|
|
59
|
+
async load(options = {}) {
|
|
60
|
+
var _a, _b;
|
|
61
|
+
const resolvedOptions = {
|
|
62
|
+
requestModelOptions: Object.assign({ sourceUri: (_a = this.options.sourceUri) !== null && _a !== void 0 ? _a : '', diagramType: this.options.diagramType }, options.requestModelOptions),
|
|
63
|
+
initializeParameters: Object.assign({ applicationId: _glsp_sprotty_1.ApplicationIdProvider.get(), protocolVersion: _glsp_sprotty_1.GLSPClient.protocolVersion }, options.initializeParameters),
|
|
64
|
+
enableNotifications: (_b = options.enableNotifications) !== null && _b !== void 0 ? _b : true
|
|
65
|
+
};
|
|
66
|
+
// Set empty place holder model until actual model from server is available
|
|
67
|
+
await this.actionDispatcher.dispatch(_glsp_sprotty_1.SetModelAction.create(_glsp_sprotty_1.EMPTY_ROOT));
|
|
68
|
+
await this.invokeStartupHook('preInitialize');
|
|
69
|
+
await this.initialize(resolvedOptions);
|
|
70
|
+
await this.invokeStartupHook('preRequestModel');
|
|
71
|
+
await this.requestModel(resolvedOptions);
|
|
72
|
+
await this.invokeStartupHook('postRequestModel');
|
|
73
|
+
this.modelInitializationConstraint.onInitialized(() => this.invokeStartupHook('postModelInitialization'));
|
|
74
|
+
}
|
|
75
|
+
async invokeStartupHook(hook) {
|
|
76
|
+
var _a;
|
|
77
|
+
for (const startup of this.diagramStartups) {
|
|
78
|
+
await ((_a = startup[hook]) === null || _a === void 0 ? void 0 : _a.call(startup));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
async requestModel(options) {
|
|
82
|
+
const response = await this.actionDispatcher.request(_glsp_sprotty_1.RequestModelAction.create({ options: options.requestModelOptions }));
|
|
83
|
+
return this.actionDispatcher.dispatch(response);
|
|
84
|
+
}
|
|
85
|
+
async initialize(options) {
|
|
86
|
+
if (options.enableNotifications) {
|
|
87
|
+
await this.actionDispatcher.dispatch(_glsp_sprotty_1.StatusAction.create('Initializing...', { severity: 'INFO' }));
|
|
88
|
+
}
|
|
89
|
+
const glspClient = await this.options.glspClientProvider();
|
|
90
|
+
await glspClient.start();
|
|
91
|
+
if (!glspClient.initializeResult) {
|
|
92
|
+
await glspClient.initializeServer(options.initializeParameters);
|
|
93
|
+
}
|
|
94
|
+
this.modelSource.configure(glspClient);
|
|
95
|
+
if (options.enableNotifications) {
|
|
96
|
+
this.actionDispatcher.dispatch(_glsp_sprotty_1.StatusAction.create('', { severity: 'NONE' }));
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, inversify_1.inject)(_glsp_sprotty_1.TYPES.IDiagramOptions),
|
|
102
|
+
__metadata("design:type", Object)
|
|
103
|
+
], DiagramLoader.prototype, "options", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, inversify_1.inject)(action_dispatcher_1.GLSPActionDispatcher),
|
|
106
|
+
__metadata("design:type", action_dispatcher_1.GLSPActionDispatcher)
|
|
107
|
+
], DiagramLoader.prototype, "actionDispatcher", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, inversify_1.multiInject)(_glsp_sprotty_1.TYPES.IDiagramStartup),
|
|
110
|
+
(0, inversify_1.optional)(),
|
|
111
|
+
__metadata("design:type", Array)
|
|
112
|
+
], DiagramLoader.prototype, "diagramStartups", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, inversify_1.inject)(glsp_model_source_1.GLSPModelSource),
|
|
115
|
+
__metadata("design:type", glsp_model_source_1.GLSPModelSource)
|
|
116
|
+
], DiagramLoader.prototype, "modelSource", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, inversify_1.inject)(model_initialization_constraint_1.ModelInitializationConstraint),
|
|
119
|
+
__metadata("design:type", model_initialization_constraint_1.ModelInitializationConstraint)
|
|
120
|
+
], DiagramLoader.prototype, "modelInitializationConstraint", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, inversify_1.postConstruct)(),
|
|
123
|
+
__metadata("design:type", Function),
|
|
124
|
+
__metadata("design:paramtypes", []),
|
|
125
|
+
__metadata("design:returntype", void 0)
|
|
126
|
+
], DiagramLoader.prototype, "postConstruct", null);
|
|
127
|
+
exports.DiagramLoader = DiagramLoader = __decorate([
|
|
128
|
+
(0, inversify_1.injectable)()
|
|
129
|
+
], DiagramLoader);
|
|
130
|
+
//# sourceMappingURL=diagram-loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagram-loader.js","sourceRoot":"","sources":["../../../src/base/model/diagram-loader.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,yCAAqF;AACrF,iDAauB;AACvB,4DAA4D;AAC5D,sCAAmC;AACnC,2DAAsD;AACtD,uFAAkF;AA0DlF,IAAiB,eAAe,CAW/B;AAXD,WAAiB,eAAe;IAC5B,SAAgB,EAAE,CAAC,MAAe;QAC9B,OAAO,CACH,yBAAS,CAAC,EAAE,CAAC,MAAM,CAAC;YACpB,IAAA,6BAAa,EAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC;YACnC,CAAC,eAAe,IAAI,MAAM;gBACtB,iBAAiB,IAAI,MAAM;gBAC3B,kBAAkB,IAAI,MAAM;gBAC5B,yBAAyB,IAAI,MAAM,CAAC,CAC3C,CAAC;IACN,CAAC;IATe,kBAAE,KASjB,CAAA;AACL,CAAC,EAXgB,eAAe,+BAAf,eAAe,QAW/B;AA6BD;;;;;GAKG;AAEI,IAAM,aAAa,2BAAnB,MAAM,aAAa;IAAnB;QASO,oBAAe,GAAsB,EAAE,CAAC;IAkEtD,CAAC;IAzDa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