@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.
Files changed (387) hide show
  1. package/css/decoration.css +0 -7
  2. package/css/glsp-sprotty.css +7 -0
  3. package/css/key-shortcut.css +5 -1
  4. package/{lib/base/source-uri-aware.js → css/navigation.css} +11 -9
  5. package/css/status-overlay.css +75 -0
  6. package/css/toast.css +45 -0
  7. package/lib/base/action-dispatcher.d.ts +8 -2
  8. package/lib/base/action-dispatcher.d.ts.map +1 -1
  9. package/lib/base/action-dispatcher.js +15 -7
  10. package/lib/base/action-dispatcher.js.map +1 -1
  11. package/lib/base/action-dispatcher.spec.d.ts +2 -0
  12. package/lib/base/action-dispatcher.spec.d.ts.map +1 -0
  13. package/lib/base/action-dispatcher.spec.js +78 -0
  14. package/lib/base/action-dispatcher.spec.js.map +1 -0
  15. package/lib/base/action-handler-registry.d.ts +25 -0
  16. package/lib/base/action-handler-registry.d.ts.map +1 -0
  17. package/lib/{features/tools/base-glsp-creation-tool.js → base/action-handler-registry.js} +20 -25
  18. package/lib/base/action-handler-registry.js.map +1 -0
  19. package/lib/base/default.module.d.ts +1 -10
  20. package/lib/base/default.module.d.ts.map +1 -1
  21. package/lib/base/default.module.js +20 -30
  22. package/lib/base/default.module.js.map +1 -1
  23. package/lib/base/editor-context-service.d.ts +17 -5
  24. package/lib/base/editor-context-service.d.ts.map +1 -1
  25. package/lib/base/editor-context-service.js +41 -14
  26. package/lib/base/editor-context-service.js.map +1 -1
  27. package/lib/base/feedback/feedback-action-dispatcher.d.ts.map +1 -1
  28. package/lib/base/feedback/feedback-action-dispatcher.js +5 -3
  29. package/lib/base/feedback/feedback-action-dispatcher.js.map +1 -1
  30. package/lib/base/focus/focus-tracker.d.ts +4 -0
  31. package/lib/base/focus/focus-tracker.d.ts.map +1 -1
  32. package/lib/base/focus/focus-tracker.js +12 -5
  33. package/lib/base/focus/focus-tracker.js.map +1 -1
  34. package/lib/base/model/diagram-loader.d.ts +116 -0
  35. package/lib/base/model/diagram-loader.d.ts.map +1 -0
  36. package/lib/base/model/diagram-loader.js +130 -0
  37. package/lib/base/model/diagram-loader.js.map +1 -0
  38. package/lib/base/model/glsp-model-source.d.ts +74 -0
  39. package/lib/base/model/glsp-model-source.d.ts.map +1 -0
  40. package/lib/base/model/glsp-model-source.js +178 -0
  41. package/lib/base/model/glsp-model-source.js.map +1 -0
  42. package/lib/base/{model-initialization-constraint.d.ts → model/model-initialization-constraint.d.ts} +24 -3
  43. package/lib/base/model/model-initialization-constraint.d.ts.map +1 -0
  44. package/lib/base/{model-initialization-constraint.js → model/model-initialization-constraint.js} +20 -10
  45. package/lib/base/model/model-initialization-constraint.js.map +1 -0
  46. package/lib/base/model/model-initialization-constraint.spec.d.ts +2 -0
  47. package/lib/base/model/model-initialization-constraint.spec.d.ts.map +1 -0
  48. package/lib/base/model/model-initialization-constraint.spec.js +97 -0
  49. package/lib/base/model/model-initialization-constraint.spec.js.map +1 -0
  50. package/lib/base/selection-service.spec.js +9 -8
  51. package/lib/base/selection-service.spec.js.map +1 -1
  52. package/lib/base/tool-manager/tool-manager.d.ts +82 -0
  53. package/lib/base/tool-manager/tool-manager.d.ts.map +1 -0
  54. package/lib/base/tool-manager/tool-manager.js +140 -0
  55. package/lib/base/tool-manager/tool-manager.js.map +1 -0
  56. package/lib/base/tool-manager/tool.d.ts +54 -0
  57. package/lib/base/tool-manager/tool.d.ts.map +1 -0
  58. package/lib/base/tool-manager/tool.js +60 -0
  59. package/lib/base/tool-manager/tool.js.map +1 -0
  60. package/lib/default-modules.d.ts +20 -26
  61. package/lib/default-modules.d.ts.map +1 -1
  62. package/lib/default-modules.js +31 -29
  63. package/lib/default-modules.js.map +1 -1
  64. package/lib/features/accessibility/accessibility-module.d.ts.map +1 -1
  65. package/lib/features/accessibility/accessibility-module.js +6 -0
  66. package/lib/features/accessibility/accessibility-module.js.map +1 -1
  67. package/lib/features/accessibility/element-navigation/diagram-navigation-tool.d.ts +65 -0
  68. package/lib/features/accessibility/element-navigation/diagram-navigation-tool.d.ts.map +1 -0
  69. package/lib/features/accessibility/element-navigation/diagram-navigation-tool.js +290 -0
  70. package/lib/features/accessibility/element-navigation/diagram-navigation-tool.js.map +1 -0
  71. package/lib/features/accessibility/element-navigation/element-navigation-module.d.ts +24 -0
  72. package/lib/features/accessibility/element-navigation/element-navigation-module.d.ts.map +1 -0
  73. package/lib/features/accessibility/element-navigation/element-navigation-module.js +38 -0
  74. package/lib/features/accessibility/element-navigation/element-navigation-module.js.map +1 -0
  75. package/lib/features/accessibility/element-navigation/element-navigator.d.ts +26 -0
  76. package/lib/features/accessibility/element-navigation/element-navigator.d.ts.map +1 -0
  77. package/{src/base/source-uri-aware.ts → lib/features/accessibility/element-navigation/element-navigator.js} +4 -9
  78. package/lib/features/accessibility/element-navigation/element-navigator.js.map +1 -0
  79. package/lib/features/accessibility/element-navigation/left-right-top-bottom-navigator.d.ts +28 -0
  80. package/lib/features/accessibility/element-navigation/left-right-top-bottom-navigator.d.ts.map +1 -0
  81. package/lib/features/accessibility/element-navigation/left-right-top-bottom-navigator.js +104 -0
  82. package/lib/features/accessibility/element-navigation/left-right-top-bottom-navigator.js.map +1 -0
  83. package/lib/features/accessibility/element-navigation/local-element-navigator.d.ts +35 -0
  84. package/lib/features/accessibility/element-navigation/local-element-navigator.d.ts.map +1 -0
  85. package/lib/features/accessibility/element-navigation/local-element-navigator.js +117 -0
  86. package/lib/features/accessibility/element-navigation/local-element-navigator.js.map +1 -0
  87. package/lib/features/accessibility/element-navigation/position-navigator.d.ts +32 -0
  88. package/lib/features/accessibility/element-navigation/position-navigator.d.ts.map +1 -0
  89. package/lib/features/accessibility/element-navigation/position-navigator.js +80 -0
  90. package/lib/features/accessibility/element-navigation/position-navigator.js.map +1 -0
  91. package/lib/features/accessibility/focus-tracker/focus-tracker-module.d.ts +23 -0
  92. package/lib/features/accessibility/focus-tracker/focus-tracker-module.d.ts.map +1 -0
  93. package/lib/features/accessibility/focus-tracker/focus-tracker-module.js +33 -0
  94. package/lib/features/accessibility/focus-tracker/focus-tracker-module.js.map +1 -0
  95. package/lib/features/accessibility/focus-tracker/focus-tracker-tool.d.ts +37 -0
  96. package/lib/features/accessibility/focus-tracker/focus-tracker-tool.d.ts.map +1 -0
  97. package/lib/features/accessibility/focus-tracker/focus-tracker-tool.js +133 -0
  98. package/lib/features/accessibility/focus-tracker/focus-tracker-tool.js.map +1 -0
  99. package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.d.ts +2 -2
  100. package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.d.ts.map +1 -1
  101. package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.js +2 -2
  102. package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.js.map +1 -1
  103. package/lib/features/accessibility/key-shortcut/accessible-key-shortcut.d.ts +1 -0
  104. package/lib/features/accessibility/key-shortcut/accessible-key-shortcut.d.ts.map +1 -1
  105. package/lib/features/accessibility/key-shortcut/accessible-key-shortcut.js +15 -3
  106. package/lib/features/accessibility/key-shortcut/accessible-key-shortcut.js.map +1 -1
  107. package/lib/features/accessibility/resize-key-tool/resize-key-tool.d.ts +2 -2
  108. package/lib/features/accessibility/resize-key-tool/resize-key-tool.d.ts.map +1 -1
  109. package/lib/features/accessibility/resize-key-tool/resize-key-tool.js +22 -15
  110. package/lib/features/accessibility/resize-key-tool/resize-key-tool.js.map +1 -1
  111. package/lib/features/accessibility/search/search-palette.d.ts.map +1 -1
  112. package/lib/features/accessibility/search/search-palette.js +3 -1
  113. package/lib/features/accessibility/search/search-palette.js.map +1 -1
  114. package/lib/features/accessibility/search/search-tool.d.ts +2 -1
  115. package/lib/features/accessibility/search/search-tool.d.ts.map +1 -1
  116. package/lib/features/accessibility/search/search-tool.js +4 -8
  117. package/lib/features/accessibility/search/search-tool.js.map +1 -1
  118. package/lib/features/accessibility/toast/messages.json +16 -0
  119. package/lib/features/accessibility/toast/toast-handler.d.ts +45 -0
  120. package/lib/features/accessibility/toast/toast-handler.d.ts.map +1 -0
  121. package/lib/features/accessibility/toast/toast-handler.js +54 -0
  122. package/lib/features/accessibility/toast/toast-handler.js.map +1 -0
  123. package/lib/features/accessibility/toast/toast-module.d.ts +24 -0
  124. package/lib/features/accessibility/toast/toast-module.d.ts.map +1 -0
  125. package/lib/features/accessibility/toast/toast-module.js +38 -0
  126. package/lib/features/accessibility/toast/toast-module.js.map +1 -0
  127. package/lib/features/accessibility/toast/toast-tool.d.ts +43 -0
  128. package/lib/features/accessibility/toast/toast-tool.d.ts.map +1 -0
  129. package/lib/features/accessibility/toast/toast-tool.js +115 -0
  130. package/lib/features/accessibility/toast/toast-tool.js.map +1 -0
  131. package/lib/features/accessibility/view-key-tools/deselect-key-tool.d.ts +2 -2
  132. package/lib/features/accessibility/view-key-tools/deselect-key-tool.d.ts.map +1 -1
  133. package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts +2 -2
  134. package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts.map +1 -1
  135. package/lib/features/accessibility/view-key-tools/movement-key-tool.js +4 -8
  136. package/lib/features/accessibility/view-key-tools/movement-key-tool.js.map +1 -1
  137. package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts +2 -2
  138. package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts.map +1 -1
  139. package/lib/features/accessibility/view-key-tools/zoom-key-tool.js +9 -13
  140. package/lib/features/accessibility/view-key-tools/zoom-key-tool.js.map +1 -1
  141. package/lib/features/bounds/bounds-module.d.ts.map +1 -1
  142. package/lib/features/bounds/bounds-module.js +2 -1
  143. package/lib/features/bounds/bounds-module.js.map +1 -1
  144. package/lib/features/command-palette/command-palette-tool.d.ts +2 -1
  145. package/lib/features/command-palette/command-palette-tool.d.ts.map +1 -1
  146. package/lib/features/command-palette/command-palette-tool.js.map +1 -1
  147. package/lib/features/command-palette/server-command-palette-provider.d.ts.map +1 -1
  148. package/lib/features/command-palette/server-command-palette-provider.js +3 -2
  149. package/lib/features/command-palette/server-command-palette-provider.js.map +1 -1
  150. package/lib/features/context-menu/context-menu-module.d.ts.map +1 -1
  151. package/lib/features/context-menu/context-menu-module.js +8 -8
  152. package/lib/features/context-menu/context-menu-module.js.map +1 -1
  153. package/lib/features/context-menu/{selection-service-aware-context-menu-mouse-listener.d.ts → glsp-context-menu-mouse-listener.d.ts} +2 -4
  154. package/lib/features/context-menu/glsp-context-menu-mouse-listener.d.ts.map +1 -0
  155. package/lib/features/context-menu/{selection-service-aware-context-menu-mouse-listener.js → glsp-context-menu-mouse-listener.js} +7 -12
  156. package/lib/features/context-menu/glsp-context-menu-mouse-listener.js.map +1 -0
  157. package/lib/features/context-menu/server-context-menu-provider.d.ts +1 -1
  158. package/lib/features/context-menu/server-context-menu-provider.d.ts.map +1 -1
  159. package/lib/features/context-menu/server-context-menu-provider.js +3 -2
  160. package/lib/features/context-menu/server-context-menu-provider.js.map +1 -1
  161. package/lib/features/copy-paste/copy-paste-context-menu.d.ts.map +1 -1
  162. package/lib/features/copy-paste/copy-paste-context-menu.js +1 -4
  163. package/lib/features/copy-paste/copy-paste-context-menu.js.map +1 -1
  164. package/lib/features/hints/type-hints-module.d.ts.map +1 -1
  165. package/lib/features/hints/type-hints-module.js +6 -5
  166. package/lib/features/hints/type-hints-module.js.map +1 -1
  167. package/lib/features/hints/type-hints.d.ts +6 -2
  168. package/lib/features/hints/type-hints.d.ts.map +1 -1
  169. package/lib/features/hints/type-hints.js +8 -0
  170. package/lib/features/hints/type-hints.js.map +1 -1
  171. package/lib/features/hover/hover-module.d.ts.map +1 -1
  172. package/lib/features/hover/hover-module.js +3 -2
  173. package/lib/features/hover/hover-module.js.map +1 -1
  174. package/lib/features/hover/hover.d.ts.map +1 -1
  175. package/lib/features/hover/hover.js +3 -2
  176. package/lib/features/hover/hover.js.map +1 -1
  177. package/lib/features/label-edit/edit-label-tool.d.ts +2 -2
  178. package/lib/features/label-edit/edit-label-tool.d.ts.map +1 -1
  179. package/lib/features/label-edit/edit-label-tool.js +2 -2
  180. package/lib/features/label-edit/edit-label-tool.js.map +1 -1
  181. package/lib/features/label-edit/edit-label-validator.d.ts.map +1 -1
  182. package/lib/features/label-edit/edit-label-validator.js +3 -2
  183. package/lib/features/label-edit/edit-label-validator.js.map +1 -1
  184. package/lib/features/navigation/navigation-action-handler.d.ts.map +1 -1
  185. package/lib/features/navigation/navigation-action-handler.js +1 -4
  186. package/lib/features/navigation/navigation-action-handler.js.map +1 -1
  187. package/lib/features/navigation/navigation-target-resolver.d.ts +3 -3
  188. package/lib/features/navigation/navigation-target-resolver.d.ts.map +1 -1
  189. package/lib/features/navigation/navigation-target-resolver.js +5 -7
  190. package/lib/features/navigation/navigation-target-resolver.js.map +1 -1
  191. package/lib/features/select/select-mouse-listener.d.ts +4 -2
  192. package/lib/features/select/select-mouse-listener.d.ts.map +1 -1
  193. package/lib/features/select/select-mouse-listener.js +17 -58
  194. package/lib/features/select/select-mouse-listener.js.map +1 -1
  195. package/lib/features/source-model-watcher/source-model-changed-action-handler.d.ts.map +1 -1
  196. package/lib/features/source-model-watcher/source-model-changed-action-handler.js +1 -4
  197. package/lib/features/source-model-watcher/source-model-changed-action-handler.js.map +1 -1
  198. package/lib/features/status/status-module.d.ts +19 -0
  199. package/lib/features/status/status-module.d.ts.map +1 -0
  200. package/lib/features/status/status-module.js +28 -0
  201. package/lib/features/status/status-module.js.map +1 -0
  202. package/lib/features/status/status-overlay.d.ts +25 -0
  203. package/lib/features/status/status-overlay.d.ts.map +1 -0
  204. package/lib/features/status/status-overlay.js +124 -0
  205. package/lib/features/status/status-overlay.js.map +1 -0
  206. package/lib/features/tool-palette/tool-palette-module.d.ts.map +1 -1
  207. package/lib/features/tool-palette/tool-palette-module.js +3 -2
  208. package/lib/features/tool-palette/tool-palette-module.js.map +1 -1
  209. package/lib/features/tool-palette/tool-palette.d.ts +10 -8
  210. package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
  211. package/lib/features/tool-palette/tool-palette.js +36 -29
  212. package/lib/features/tool-palette/tool-palette.js.map +1 -1
  213. package/lib/features/tools/{base-glsp-tool.d.ts → base-tools.d.ts} +14 -4
  214. package/lib/features/tools/base-tools.d.ts.map +1 -0
  215. package/lib/features/tools/{base-glsp-tool.js → base-tools.js} +31 -10
  216. package/lib/features/tools/base-tools.js.map +1 -0
  217. package/lib/features/tools/change-bounds/change-bounds-tool.d.ts +2 -2
  218. package/lib/features/tools/change-bounds/change-bounds-tool.d.ts.map +1 -1
  219. package/lib/features/tools/change-bounds/change-bounds-tool.js +2 -2
  220. package/lib/features/tools/change-bounds/change-bounds-tool.js.map +1 -1
  221. package/lib/features/tools/deletion/delete-tool.d.ts +4 -4
  222. package/lib/features/tools/deletion/delete-tool.d.ts.map +1 -1
  223. package/lib/features/tools/deletion/delete-tool.js +4 -3
  224. package/lib/features/tools/deletion/delete-tool.js.map +1 -1
  225. package/lib/features/tools/edge-creation/edge-creation-tool.d.ts +2 -2
  226. package/lib/features/tools/edge-creation/edge-creation-tool.d.ts.map +1 -1
  227. package/lib/features/tools/edge-creation/edge-creation-tool.js +5 -4
  228. package/lib/features/tools/edge-creation/edge-creation-tool.js.map +1 -1
  229. package/lib/features/tools/edge-edit/edge-edit-tool.d.ts +2 -2
  230. package/lib/features/tools/edge-edit/edge-edit-tool.d.ts.map +1 -1
  231. package/lib/features/tools/edge-edit/edge-edit-tool.js +2 -2
  232. package/lib/features/tools/edge-edit/edge-edit-tool.js.map +1 -1
  233. package/lib/features/tools/marquee-selection/marquee-mouse-tool.d.ts +2 -2
  234. package/lib/features/tools/marquee-selection/marquee-mouse-tool.d.ts.map +1 -1
  235. package/lib/features/tools/marquee-selection/marquee-mouse-tool.js +5 -4
  236. package/lib/features/tools/marquee-selection/marquee-mouse-tool.js.map +1 -1
  237. package/lib/features/tools/marquee-selection/marquee-tool.d.ts +2 -2
  238. package/lib/features/tools/marquee-selection/marquee-tool.d.ts.map +1 -1
  239. package/lib/features/tools/marquee-selection/marquee-tool.js +4 -3
  240. package/lib/features/tools/marquee-selection/marquee-tool.js.map +1 -1
  241. package/lib/features/tools/node-creation/node-creation-tool.d.ts +2 -2
  242. package/lib/features/tools/node-creation/node-creation-tool.d.ts.map +1 -1
  243. package/lib/features/tools/node-creation/node-creation-tool.js +4 -3
  244. package/lib/features/tools/node-creation/node-creation-tool.js.map +1 -1
  245. package/lib/features/tools/tool-focus-loss-module.d.ts.map +1 -1
  246. package/lib/features/tools/tool-focus-loss-module.js +2 -1
  247. package/lib/features/tools/tool-focus-loss-module.js.map +1 -1
  248. package/lib/features/validation/validate.js +1 -1
  249. package/lib/features/validation/validate.js.map +1 -1
  250. package/lib/features/viewport/glsp-scroll-mouse-listener.d.ts.map +1 -1
  251. package/lib/features/viewport/glsp-scroll-mouse-listener.js +3 -2
  252. package/lib/features/viewport/glsp-scroll-mouse-listener.js.map +1 -1
  253. package/lib/features/viewport/reposition.d.ts +38 -0
  254. package/lib/features/viewport/reposition.d.ts.map +1 -0
  255. package/lib/features/viewport/reposition.js +109 -0
  256. package/lib/features/viewport/reposition.js.map +1 -0
  257. package/lib/features/viewport/viewport-modules.d.ts.map +1 -1
  258. package/lib/features/viewport/viewport-modules.js +5 -2
  259. package/lib/features/viewport/viewport-modules.js.map +1 -1
  260. package/lib/glsp-sprotty/augmented-actions.d.ts +2 -10
  261. package/lib/glsp-sprotty/augmented-actions.d.ts.map +1 -1
  262. package/lib/glsp-sprotty/augmented-actions.js +2 -6
  263. package/lib/glsp-sprotty/augmented-actions.js.map +1 -1
  264. package/lib/glsp-sprotty/index.d.ts +3 -6
  265. package/lib/glsp-sprotty/index.d.ts.map +1 -1
  266. package/lib/glsp-sprotty/index.js +4 -7
  267. package/lib/glsp-sprotty/index.js.map +1 -1
  268. package/lib/glsp-sprotty/types.d.ts +5 -82
  269. package/lib/glsp-sprotty/types.d.ts.map +1 -1
  270. package/lib/glsp-sprotty/types.js +2 -8
  271. package/lib/glsp-sprotty/types.js.map +1 -1
  272. package/lib/index.d.ts +17 -7
  273. package/lib/index.d.ts.map +1 -1
  274. package/lib/index.js +17 -7
  275. package/lib/index.js.map +1 -1
  276. package/lib/standalone-modules.d.ts +11 -2
  277. package/lib/standalone-modules.d.ts.map +1 -1
  278. package/lib/standalone-modules.js +37 -1
  279. package/lib/standalone-modules.js.map +1 -1
  280. package/lib/views/base-view-module.d.ts.map +1 -1
  281. package/lib/views/base-view-module.js +2 -1
  282. package/lib/views/base-view-module.js.map +1 -1
  283. package/lib/views/glsp-projection-view.d.ts +2 -1
  284. package/lib/views/glsp-projection-view.d.ts.map +1 -1
  285. package/lib/views/glsp-projection-view.js +11 -2
  286. package/lib/views/glsp-projection-view.js.map +1 -1
  287. package/package.json +4 -4
  288. package/src/base/action-dispatcher.spec.ts +87 -0
  289. package/src/base/action-dispatcher.ts +24 -10
  290. package/src/{features/tools/base-glsp-creation-tool.ts → base/action-handler-registry.ts} +10 -20
  291. package/src/base/default.module.ts +21 -34
  292. package/src/base/editor-context-service.ts +49 -16
  293. package/src/base/feedback/feedback-action-dispatcher.ts +5 -3
  294. package/src/base/focus/focus-tracker.ts +16 -5
  295. package/src/base/model/diagram-loader.ts +215 -0
  296. package/src/base/model/glsp-model-source.ts +199 -0
  297. package/src/base/model/model-initialization-constraint.spec.ts +95 -0
  298. package/src/base/{model-initialization-constraint.ts → model/model-initialization-constraint.ts} +43 -10
  299. package/src/base/selection-service.spec.ts +10 -9
  300. package/src/base/tool-manager/tool-manager.ts +183 -0
  301. package/src/base/tool-manager/tool.ts +85 -0
  302. package/src/default-modules.ts +37 -28
  303. package/src/features/accessibility/README.md +18 -0
  304. package/src/features/accessibility/accessibility-module.ts +6 -1
  305. package/src/features/accessibility/element-navigation/diagram-navigation-tool.ts +307 -0
  306. package/src/features/accessibility/element-navigation/element-navigation-module.ts +36 -0
  307. package/src/features/accessibility/element-navigation/element-navigator.ts +57 -0
  308. package/src/features/accessibility/element-navigation/left-right-top-bottom-navigator.ts +113 -0
  309. package/src/features/accessibility/element-navigation/local-element-navigator.ts +147 -0
  310. package/src/features/accessibility/element-navigation/position-navigator.ts +102 -0
  311. package/src/features/accessibility/focus-tracker/focus-tracker-module.ts +32 -0
  312. package/src/features/accessibility/focus-tracker/focus-tracker-tool.ts +129 -0
  313. package/src/features/accessibility/key-shortcut/accessible-key-shortcut-tool.ts +3 -3
  314. package/src/features/accessibility/key-shortcut/accessible-key-shortcut.ts +18 -3
  315. package/src/features/accessibility/resize-key-tool/resize-key-tool.ts +30 -16
  316. package/src/features/accessibility/search/search-palette.ts +4 -2
  317. package/src/features/accessibility/search/search-tool.ts +8 -9
  318. package/src/features/accessibility/toast/messages.json +16 -0
  319. package/src/features/accessibility/toast/toast-handler.ts +69 -0
  320. package/src/features/accessibility/toast/toast-module.ts +36 -0
  321. package/src/features/accessibility/toast/toast-tool.ts +108 -0
  322. package/src/features/accessibility/view-key-tools/deselect-key-tool.ts +2 -2
  323. package/src/features/accessibility/view-key-tools/movement-key-tool.ts +8 -10
  324. package/src/features/accessibility/view-key-tools/zoom-key-tool.ts +13 -15
  325. package/src/features/bounds/bounds-module.ts +2 -2
  326. package/src/features/command-palette/command-palette-tool.ts +2 -1
  327. package/src/features/command-palette/server-command-palette-provider.ts +3 -2
  328. package/src/features/context-menu/context-menu-module.ts +11 -12
  329. package/src/features/context-menu/{selection-service-aware-context-menu-mouse-listener.ts → glsp-context-menu-mouse-listener.ts} +1 -5
  330. package/src/features/context-menu/server-context-menu-provider.ts +3 -2
  331. package/src/features/copy-paste/copy-paste-context-menu.ts +3 -6
  332. package/src/features/hints/type-hints-module.ts +7 -6
  333. package/src/features/hints/type-hints.ts +12 -1
  334. package/src/features/hover/hover-module.ts +1 -2
  335. package/src/features/hover/hover.ts +2 -3
  336. package/src/features/label-edit/edit-label-tool.ts +2 -2
  337. package/src/features/label-edit/edit-label-validator.ts +7 -6
  338. package/src/features/navigation/navigation-action-handler.ts +5 -8
  339. package/src/features/navigation/navigation-target-resolver.ts +10 -7
  340. package/src/features/select/select-mouse-listener.ts +27 -79
  341. package/src/features/source-model-watcher/source-model-changed-action-handler.ts +3 -6
  342. package/src/features/status/status-module.ts +26 -0
  343. package/src/features/status/status-overlay.ts +121 -0
  344. package/src/features/tool-palette/tool-palette-module.ts +4 -3
  345. package/src/features/tool-palette/tool-palette.ts +44 -33
  346. package/src/features/tools/{base-glsp-tool.ts → base-tools.ts} +28 -3
  347. package/src/features/tools/change-bounds/change-bounds-tool.ts +2 -2
  348. package/src/features/tools/deletion/delete-tool.ts +4 -5
  349. package/src/features/tools/edge-creation/edge-creation-tool.ts +3 -3
  350. package/src/features/tools/edge-edit/edge-edit-tool.ts +2 -2
  351. package/src/features/tools/marquee-selection/marquee-mouse-tool.ts +3 -3
  352. package/src/features/tools/marquee-selection/marquee-tool.ts +4 -3
  353. package/src/features/tools/node-creation/node-creation-tool.ts +3 -3
  354. package/src/features/tools/tool-focus-loss-module.ts +2 -1
  355. package/src/features/validation/validate.ts +1 -1
  356. package/src/features/viewport/glsp-scroll-mouse-listener.ts +2 -9
  357. package/src/features/viewport/reposition.ts +119 -0
  358. package/src/features/viewport/viewport-modules.ts +3 -2
  359. package/src/glsp-sprotty/augmented-actions.ts +1 -16
  360. package/src/glsp-sprotty/index.ts +4 -7
  361. package/src/glsp-sprotty/types.ts +6 -8
  362. package/src/index.ts +17 -7
  363. package/src/standalone-modules.ts +40 -1
  364. package/src/views/base-view-module.ts +2 -2
  365. package/src/views/glsp-projection-view.tsx +18 -8
  366. package/lib/base/model-initialization-constraint.d.ts.map +0 -1
  367. package/lib/base/model-initialization-constraint.js.map +0 -1
  368. package/lib/base/source-uri-aware.d.ts +0 -5
  369. package/lib/base/source-uri-aware.d.ts.map +0 -1
  370. package/lib/base/source-uri-aware.js.map +0 -1
  371. package/lib/base/tool-manager/glsp-tool-manager.d.ts +0 -21
  372. package/lib/base/tool-manager/glsp-tool-manager.d.ts.map +0 -1
  373. package/lib/base/tool-manager/glsp-tool-manager.js +0 -113
  374. package/lib/base/tool-manager/glsp-tool-manager.js.map +0 -1
  375. package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.d.ts.map +0 -1
  376. package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.js.map +0 -1
  377. package/lib/features/tools/base-glsp-creation-tool.d.ts +0 -10
  378. package/lib/features/tools/base-glsp-creation-tool.d.ts.map +0 -1
  379. package/lib/features/tools/base-glsp-creation-tool.js.map +0 -1
  380. package/lib/features/tools/base-glsp-tool.d.ts.map +0 -1
  381. package/lib/features/tools/base-glsp-tool.js.map +0 -1
  382. package/lib/model-source/glsp-diagram-server.d.ts +0 -21
  383. package/lib/model-source/glsp-diagram-server.d.ts.map +0 -1
  384. package/lib/model-source/glsp-diagram-server.js +0 -107
  385. package/lib/model-source/glsp-diagram-server.js.map +0 -1
  386. package/src/base/tool-manager/glsp-tool-manager.ts +0 -96
  387. package/src/model-source/glsp-diagram-server.ts +0 -125
@@ -0,0 +1,290 @@
1
+ "use strict";
2
+ /********************************************************************************
3
+ * Copyright (c) 2023 Business Informatics Group (TU Wien) 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
+ var ElementNavigatorTool_1;
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.ElementNavigatorKeyListener = exports.ElementNavigatorTool = void 0;
29
+ const inversify_1 = require("inversify");
30
+ const iterable_1 = require("sprotty/lib/utils/iterable");
31
+ const keyboard_1 = require("sprotty/lib/utils/keyboard");
32
+ const _glsp_sprotty_1 = require("../../../glsp-sprotty/index");
33
+ const action_dispatcher_1 = require("../../../base/action-dispatcher");
34
+ const tool_1 = require("../../../base/tool-manager/tool");
35
+ const reposition_1 = require("../../viewport/reposition");
36
+ const accessible_key_shortcut_1 = require("../key-shortcut/accessible-key-shortcut");
37
+ const accessible_key_shortcut_tool_1 = require("../key-shortcut/accessible-key-shortcut-tool");
38
+ const search_tool_1 = require("../search/search-tool");
39
+ const messages = require("../toast/messages.json");
40
+ const toast_handler_1 = require("../toast/toast-handler");
41
+ let ElementNavigatorTool = exports.ElementNavigatorTool = ElementNavigatorTool_1 = class ElementNavigatorTool {
42
+ constructor() {
43
+ this.isEditTool = false;
44
+ this.elementNavigatorKeyListener = new ElementNavigatorKeyListener(this);
45
+ }
46
+ get id() {
47
+ return ElementNavigatorTool_1.ID;
48
+ }
49
+ enable() {
50
+ this.keytool.register(this.elementNavigatorKeyListener);
51
+ this.elementNavigatorKeyListener.registerShortcutKey();
52
+ }
53
+ disable() {
54
+ this.keytool.deregister(this.elementNavigatorKeyListener);
55
+ }
56
+ };
57
+ ElementNavigatorTool.ID = 'glsp.diagram-navigation';
58
+ __decorate([
59
+ (0, inversify_1.inject)(_glsp_sprotty_1.KeyTool),
60
+ __metadata("design:type", _glsp_sprotty_1.KeyTool)
61
+ ], ElementNavigatorTool.prototype, "keytool", void 0);
62
+ __decorate([
63
+ (0, inversify_1.inject)(_glsp_sprotty_1.TYPES.IElementNavigator),
64
+ __metadata("design:type", Object)
65
+ ], ElementNavigatorTool.prototype, "elementNavigator", void 0);
66
+ __decorate([
67
+ (0, inversify_1.inject)(_glsp_sprotty_1.TYPES.ILocalElementNavigator),
68
+ __metadata("design:type", Object)
69
+ ], ElementNavigatorTool.prototype, "localElementNavigator", void 0);
70
+ __decorate([
71
+ (0, inversify_1.inject)(_glsp_sprotty_1.TYPES.IActionDispatcher),
72
+ __metadata("design:type", action_dispatcher_1.GLSPActionDispatcher)
73
+ ], ElementNavigatorTool.prototype, "actionDispatcher", void 0);
74
+ exports.ElementNavigatorTool = ElementNavigatorTool = ElementNavigatorTool_1 = __decorate([
75
+ (0, inversify_1.injectable)()
76
+ ], ElementNavigatorTool);
77
+ var NavigationMode;
78
+ (function (NavigationMode) {
79
+ NavigationMode["POSITION"] = "position";
80
+ NavigationMode["DEFAULT"] = "default";
81
+ NavigationMode["NONE"] = "none";
82
+ })(NavigationMode || (NavigationMode = {}));
83
+ class ElementNavigatorKeyListener extends _glsp_sprotty_1.KeyListener {
84
+ constructor(tool) {
85
+ super();
86
+ this.tool = tool;
87
+ this.mode = NavigationMode.NONE;
88
+ this.token = ElementNavigatorKeyListener.name;
89
+ }
90
+ registerShortcutKey() {
91
+ this.tool.actionDispatcher.dispatchOnceModelInitialized(accessible_key_shortcut_1.SetAccessibleKeyShortcutAction.create({
92
+ token: this.token,
93
+ keys: [
94
+ { shortcuts: ['N'], description: 'Activate default navigation', group: 'Navigation', position: 0 },
95
+ {
96
+ shortcuts: ['ALT', 'N'],
97
+ description: 'Activate position based navigation',
98
+ group: 'Navigation',
99
+ position: 1
100
+ },
101
+ {
102
+ shortcuts: ['⬅ ⬆ ➡ ⬇'],
103
+ description: 'Navigate by relation or neighbors according to navigation mode',
104
+ group: 'Navigation',
105
+ position: 2
106
+ }
107
+ ]
108
+ }));
109
+ }
110
+ keyDown(element, event) {
111
+ this.resetOnEscape(event, element);
112
+ if (this.getSelectedElements(element.root).length > 0) {
113
+ if (!this.triggerPositionNavigationOnEvent(event, element)) {
114
+ this.triggerDefaultNavigationOnEvent(event, element);
115
+ }
116
+ return this.navigate(element, event);
117
+ }
118
+ this.resetPositionNavigationOnEvent(event, element);
119
+ this.resetDefaultNavigationOnEvent(event, element);
120
+ return [];
121
+ }
122
+ resetOnEscape(event, element) {
123
+ var _a, _b;
124
+ if (this.mode !== NavigationMode.NONE && this.matchesDeactivateNavigationMode(event)) {
125
+ (_b = (_a = this.navigator) === null || _a === void 0 ? void 0 : _a.clean) === null || _b === void 0 ? void 0 : _b.call(_a, element.root);
126
+ this.clean();
127
+ if (this.mode === NavigationMode.POSITION) {
128
+ this.tool.actionDispatcher.dispatchAll([
129
+ tool_1.EnableDefaultToolsAction.create(),
130
+ toast_handler_1.ShowToastMessageAction.createWithTimeout({
131
+ id: Symbol.for(ElementNavigatorKeyListener.name),
132
+ message: messages.navigation.local_navigation_mode_deactivated
133
+ })
134
+ ]);
135
+ }
136
+ else if (this.mode === NavigationMode.DEFAULT) {
137
+ this.tool.actionDispatcher.dispatchAll([
138
+ tool_1.EnableDefaultToolsAction.create(),
139
+ toast_handler_1.ShowToastMessageAction.createWithTimeout({
140
+ id: Symbol.for(ElementNavigatorKeyListener.name),
141
+ message: messages.navigation.default_navigation_mode_deactivated
142
+ })
143
+ ]);
144
+ }
145
+ this.mode = NavigationMode.NONE;
146
+ }
147
+ }
148
+ triggerPositionNavigationOnEvent(event, element) {
149
+ if (this.matchesActivatePositionNavigation(event)) {
150
+ if (this.mode !== NavigationMode.POSITION) {
151
+ this.clean();
152
+ this.tool.actionDispatcher.dispatchAll([
153
+ tool_1.EnableToolsAction.create([ElementNavigatorTool.ID, search_tool_1.SearchAutocompletePaletteTool.ID, accessible_key_shortcut_tool_1.AccessibleKeyShortcutTool.ID]),
154
+ toast_handler_1.ShowToastMessageAction.create({
155
+ id: Symbol.for(ElementNavigatorKeyListener.name),
156
+ message: messages.navigation.local_navigation_mode_activated
157
+ })
158
+ ]);
159
+ this.navigator = this.tool.elementNavigator;
160
+ this.mode = NavigationMode.POSITION;
161
+ }
162
+ else {
163
+ this.resetPositionNavigationOnEvent(event, element);
164
+ }
165
+ return true;
166
+ }
167
+ return false;
168
+ }
169
+ resetPositionNavigationOnEvent(event, element) {
170
+ var _a, _b;
171
+ if (this.mode === NavigationMode.POSITION && this.matchesActivatePositionNavigation(event)) {
172
+ (_b = (_a = this.navigator) === null || _a === void 0 ? void 0 : _a.clean) === null || _b === void 0 ? void 0 : _b.call(_a, element.root);
173
+ this.clean();
174
+ this.mode = NavigationMode.NONE;
175
+ this.tool.actionDispatcher.dispatchAll([
176
+ tool_1.EnableDefaultToolsAction.create(),
177
+ toast_handler_1.ShowToastMessageAction.createWithTimeout({
178
+ id: Symbol.for(ElementNavigatorKeyListener.name),
179
+ message: messages.navigation.local_navigation_mode_deactivated
180
+ })
181
+ ]);
182
+ }
183
+ }
184
+ triggerDefaultNavigationOnEvent(event, element) {
185
+ if (this.matchesActivateDefaultNavigation(event)) {
186
+ if (this.mode !== NavigationMode.DEFAULT) {
187
+ this.clean();
188
+ this.tool.actionDispatcher.dispatchAll([
189
+ tool_1.EnableToolsAction.create([ElementNavigatorTool.ID, search_tool_1.SearchAutocompletePaletteTool.ID, accessible_key_shortcut_tool_1.AccessibleKeyShortcutTool.ID]),
190
+ toast_handler_1.ShowToastMessageAction.create({
191
+ id: Symbol.for(ElementNavigatorKeyListener.name),
192
+ message: messages.navigation.default_navigation_mode_activated
193
+ })
194
+ ]);
195
+ this.navigator = this.tool.localElementNavigator;
196
+ this.mode = NavigationMode.DEFAULT;
197
+ }
198
+ else {
199
+ this.resetDefaultNavigationOnEvent(event, element);
200
+ }
201
+ return true;
202
+ }
203
+ return false;
204
+ }
205
+ resetDefaultNavigationOnEvent(event, element) {
206
+ var _a, _b;
207
+ if (this.mode === NavigationMode.DEFAULT && this.matchesActivateDefaultNavigation(event)) {
208
+ (_b = (_a = this.navigator) === null || _a === void 0 ? void 0 : _a.clean) === null || _b === void 0 ? void 0 : _b.call(_a, element.root);
209
+ this.clean();
210
+ this.mode = NavigationMode.NONE;
211
+ this.tool.actionDispatcher.dispatchAll([
212
+ tool_1.EnableDefaultToolsAction.create(),
213
+ toast_handler_1.ShowToastMessageAction.createWithTimeout({
214
+ id: Symbol.for(ElementNavigatorKeyListener.name),
215
+ message: messages.navigation.default_navigation_mode_deactivated
216
+ })
217
+ ]);
218
+ }
219
+ }
220
+ navigate(element, event) {
221
+ var _a, _b, _c, _d;
222
+ const selected = this.getSelectedElements(element.root);
223
+ const current = selected.length > 0 ? selected[0] : undefined;
224
+ if (this.mode !== NavigationMode.NONE && this.navigator !== undefined && current !== undefined && (0, _glsp_sprotty_1.isBoundsAware)(current)) {
225
+ (_b = (_a = this.navigator).clean) === null || _b === void 0 ? void 0 : _b.call(_a, current.root, current, this.previousNode);
226
+ const target = this.navigateOnEvent(event, this.navigator, current);
227
+ if (target !== undefined) {
228
+ (_d = (_c = this.navigator).process) === null || _d === void 0 ? void 0 : _d.call(_c, current.root, current, target, this.previousNode);
229
+ }
230
+ const selectableTarget = target ? (0, _glsp_sprotty_1.findParentByFeature)(target, _glsp_sprotty_1.isSelectable) : undefined;
231
+ if (selectableTarget) {
232
+ if (!(current instanceof _glsp_sprotty_1.SEdge)) {
233
+ this.previousNode = current;
234
+ }
235
+ const deselectedElementsIDs = selected.map(e => e.id).filter(id => id !== selectableTarget.id);
236
+ return [
237
+ _glsp_sprotty_1.SelectAction.create({ selectedElementsIDs: [selectableTarget.id], deselectedElementsIDs }),
238
+ reposition_1.RepositionAction.create([selectableTarget.id])
239
+ ];
240
+ }
241
+ }
242
+ return [];
243
+ }
244
+ navigateOnEvent(event, navigator, current) {
245
+ var _a, _b;
246
+ if (this.matchesNavigatePrevious(event)) {
247
+ return navigator.previous(current.root, current);
248
+ }
249
+ else if (this.matchesNavigateNext(event)) {
250
+ return navigator.next(current.root, current);
251
+ }
252
+ else if (this.matchesNavigateUp(event)) {
253
+ return (_a = navigator.up) === null || _a === void 0 ? void 0 : _a.call(navigator, current.root, current, this.previousNode);
254
+ }
255
+ else if (this.matchesNavigateDown(event)) {
256
+ return (_b = navigator.down) === null || _b === void 0 ? void 0 : _b.call(navigator, current.root, current, this.previousNode);
257
+ }
258
+ return undefined;
259
+ }
260
+ clean() {
261
+ this.previousNode = undefined;
262
+ this.navigator = undefined;
263
+ }
264
+ getSelectedElements(root) {
265
+ return (0, iterable_1.toArray)(root.index.all().filter(e => (0, _glsp_sprotty_1.isSelected)(e)));
266
+ }
267
+ matchesDeactivateNavigationMode(event) {
268
+ return (0, keyboard_1.matchesKeystroke)(event, 'Escape');
269
+ }
270
+ matchesActivateDefaultNavigation(event) {
271
+ return (0, keyboard_1.matchesKeystroke)(event, 'KeyN');
272
+ }
273
+ matchesActivatePositionNavigation(event) {
274
+ return (0, keyboard_1.matchesKeystroke)(event, 'KeyN', 'alt');
275
+ }
276
+ matchesNavigatePrevious(event) {
277
+ return (0, keyboard_1.matchesKeystroke)(event, 'ArrowLeft');
278
+ }
279
+ matchesNavigateNext(event) {
280
+ return (0, keyboard_1.matchesKeystroke)(event, 'ArrowRight');
281
+ }
282
+ matchesNavigateUp(event) {
283
+ return (0, keyboard_1.matchesKeystroke)(event, 'ArrowUp');
284
+ }
285
+ matchesNavigateDown(event) {
286
+ return (0, keyboard_1.matchesKeystroke)(event, 'ArrowDown');
287
+ }
288
+ }
289
+ exports.ElementNavigatorKeyListener = ElementNavigatorKeyListener;
290
+ //# sourceMappingURL=diagram-navigation-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagram-navigation-tool.js","sourceRoot":"","sources":["../../../../src/features/accessibility/element-navigation/diagram-navigation-tool.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;AAElF,yCAA+C;AAC/C,yDAAq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,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;SACrE;QAED,OAAO,SAAS,CAAC;IACrB,CAAC;IAES,KAAK;QACX,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAES,mBAAmB,CAAC,IAAgB;QAC1C,OAAO,IAAA,kBAAO,EAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,0BAAU,EAAC,CAAC,CAAC,CAAC,CAAmC,CAAC;IAClG,CAAC;IAES,+BAA+B,CAAC,KAAoB;QAC1D,OAAO,IAAA,2BAAgB,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC7C,CAAC;IACS,gCAAgC,CAAC,KAAoB;QAC3D,OAAO,IAAA,2BAAgB,EAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;IACS,iCAAiC,CAAC,KAAoB;QAC5D,OAAO,IAAA,2BAAgB,EAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IAClD,CAAC;IACS,uBAAuB,CAAC,KAAoB;QAClD,OAAO,IAAA,2BAAgB,EAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IAChD,CAAC;IACS,mBAAmB,CAAC,KAAoB;QAC9C,OAAO,IAAA,2BAAgB,EAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IACjD,CAAC;IACS,iBAAiB,CAAC,KAAoB;QAC5C,OAAO,IAAA,2BAAgB,EAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IAC9C,CAAC;IACS,mBAAmB,CAAC,KAAoB;QAC9C,OAAO,IAAA,2BAAgB,EAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IAChD,CAAC;CACJ;AArOD,kEAqOC"}
@@ -0,0 +1,24 @@
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
+ import { ContainerModule } from 'inversify';
17
+ import { BindingContext } from '../../../glsp-sprotty/index';
18
+ import '../../../../css/navigation.css';
19
+ /**
20
+ * Handles element navigation actions.
21
+ */
22
+ export declare const glspElementNavigationModule: ContainerModule;
23
+ export declare function configureElementNavigationTool(context: BindingContext): void;
24
+ //# sourceMappingURL=element-navigation-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element-navigation-module.d.ts","sourceRoot":"","sources":["../../../../src/features/accessibility/element-navigation/element-navigation-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAwB,MAAM,eAAe,CAAC;AAIrE,OAAO,gCAAgC,CAAC;AAExC;;GAEG;AAEH,eAAO,MAAM,2BAA2B,iBAGtC,CAAC;AAEH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAI5E"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.configureElementNavigationTool = exports.glspElementNavigationModule = void 0;
4
+ /********************************************************************************
5
+ * Copyright (c) 2023 Business Informatics Group (TU Wien) and others.
6
+ *
7
+ * This program and the accompanying materials are made available under the
8
+ * terms of the Eclipse Public License v. 2.0 which is available at
9
+ * http://www.eclipse.org/legal/epl-2.0.
10
+ *
11
+ * This Source Code may also be made available under the following Secondary
12
+ * Licenses when the conditions for such availability set forth in the Eclipse
13
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
14
+ * with the GNU Classpath Exception which is available at
15
+ * https://www.gnu.org/software/classpath/license.html.
16
+ *
17
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
18
+ ********************************************************************************/
19
+ const inversify_1 = require("inversify");
20
+ const _glsp_sprotty_1 = require("../../../glsp-sprotty/index");
21
+ const position_navigator_1 = require("./position-navigator");
22
+ const local_element_navigator_1 = require("./local-element-navigator");
23
+ const diagram_navigation_tool_1 = require("./diagram-navigation-tool");
24
+ require("../../../../css/navigation.css");
25
+ /**
26
+ * Handles element navigation actions.
27
+ */
28
+ exports.glspElementNavigationModule = new inversify_1.ContainerModule((bind, unbind, isBound, rebind) => {
29
+ const context = { bind, unbind, isBound, rebind };
30
+ configureElementNavigationTool(context);
31
+ });
32
+ function configureElementNavigationTool(context) {
33
+ (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.IDefaultTool, diagram_navigation_tool_1.ElementNavigatorTool);
34
+ (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.IElementNavigator, position_navigator_1.PositionNavigator);
35
+ (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.ILocalElementNavigator, local_element_navigator_1.LocalElementNavigator);
36
+ }
37
+ exports.configureElementNavigationTool = configureElementNavigationTool;
38
+ //# sourceMappingURL=element-navigation-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element-navigation-module.js","sourceRoot":"","sources":["../../../../src/features/accessibility/element-navigation/element-navigation-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,iDAAqE;AACrE,6DAAyD;AACzD,uEAAkE;AAClE,uEAAiE;AACjE,0CAAwC;AAExC;;GAEG;AAEU,QAAA,2BAA2B,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IAC7F,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClD,8BAA8B,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAAC,OAAuB;IAClE,IAAA,6BAAa,EAAC,OAAO,EAAE,qBAAK,CAAC,YAAY,EAAE,8CAAoB,CAAC,CAAC;IACjE,IAAA,6BAAa,EAAC,OAAO,EAAE,qBAAK,CAAC,iBAAiB,EAAE,sCAAiB,CAAC,CAAC;IACnE,IAAA,6BAAa,EAAC,OAAO,EAAE,qBAAK,CAAC,sBAAsB,EAAE,+CAAqB,CAAC,CAAC;AAChF,CAAC;AAJD,wEAIC"}
@@ -0,0 +1,26 @@
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
+ import { SModelElement, SModelRoot } from '../../../glsp-sprotty/index';
17
+ import { SelectableBoundsAware } from '../../../utils/smodel-util';
18
+ export interface ElementNavigator {
19
+ previous(root: Readonly<SModelRoot>, current: SelectableBoundsAware, previousCurrent?: SelectableBoundsAware, predicate?: (element: SModelElement) => boolean): SModelElement | undefined;
20
+ next(root: Readonly<SModelRoot>, current: SelectableBoundsAware, previousCurrent?: SelectableBoundsAware, predicate?: (element: SModelElement) => boolean): SModelElement | undefined;
21
+ up?(root: Readonly<SModelRoot>, current: SelectableBoundsAware, previousCurrent?: SelectableBoundsAware, predicate?: (element: SModelElement) => boolean): SModelElement | undefined;
22
+ down?(root: Readonly<SModelRoot>, current: SelectableBoundsAware, previousCurrent?: SelectableBoundsAware, predicate?: (element: SModelElement) => boolean): SModelElement | undefined;
23
+ process?(root: Readonly<SModelRoot>, current: SelectableBoundsAware, target: SelectableBoundsAware, previousCurrent?: SelectableBoundsAware, predicate?: (element: SModelElement) => boolean): void;
24
+ clean?(root: Readonly<SModelRoot>, current?: SelectableBoundsAware, previousCurrent?: SelectableBoundsAware): void;
25
+ }
26
+ //# sourceMappingURL=element-navigator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element-navigator.d.ts","sourceRoot":"","sources":["../../../../src/features/accessibility/element-navigation/element-navigator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,CACJ,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC1B,OAAO,EAAE,qBAAqB,EAC9B,eAAe,CAAC,EAAE,qBAAqB,EACvC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,GAChD,aAAa,GAAG,SAAS,CAAC;IAE7B,IAAI,CACA,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC1B,OAAO,EAAE,qBAAqB,EAC9B,eAAe,CAAC,EAAE,qBAAqB,EACvC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,GAChD,aAAa,GAAG,SAAS,CAAC;IAE7B,EAAE,CAAC,CACC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC1B,OAAO,EAAE,qBAAqB,EAC9B,eAAe,CAAC,EAAE,qBAAqB,EACvC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,GAChD,aAAa,GAAG,SAAS,CAAC;IAE7B,IAAI,CAAC,CACD,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC1B,OAAO,EAAE,qBAAqB,EAC9B,eAAe,CAAC,EAAE,qBAAqB,EACvC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,GAChD,aAAa,GAAG,SAAS,CAAC;IAE7B,OAAO,CAAC,CACJ,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC1B,OAAO,EAAE,qBAAqB,EAC9B,MAAM,EAAE,qBAAqB,EAC7B,eAAe,CAAC,EAAE,qBAAqB,EACvC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,GAChD,IAAI,CAAC;IACR,KAAK,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,EAAE,qBAAqB,EAAE,eAAe,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;CACtH"}
@@ -1,5 +1,6 @@
1
+ "use strict";
1
2
  /********************************************************************************
2
- * Copyright (c) 2020-2023 EclipseSource and others.
3
+ * Copyright (c) 2023 Business Informatics Group (TU Wien) and others.
3
4
  *
4
5
  * This program and the accompanying materials are made available under the
5
6
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -13,11 +14,5 @@
13
14
  *
14
15
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
16
  ********************************************************************************/
16
- import { AnyObject, hasStringProp } from '~glsp-sprotty';
17
- export interface SourceUriAware {
18
- sourceURI: string;
19
- }
20
-
21
- export function isSourceUriAware(obj: any): obj is SourceUriAware {
22
- return AnyObject.is(obj) && hasStringProp(obj, 'sourceURI');
23
- }
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ //# sourceMappingURL=element-navigator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element-navigator.js","sourceRoot":"","sources":["../../../../src/features/accessibility/element-navigation/element-navigator.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF"}
@@ -0,0 +1,28 @@
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
+ import { EdgeRouterRegistry, SModelElement, SModelRoot } from '../../../glsp-sprotty/index';
17
+ import { SelectableBoundsAware } from '../../../utils/smodel-util';
18
+ import { ElementNavigator } from './element-navigator';
19
+ export declare class LeftToRightTopToBottomElementNavigator implements ElementNavigator {
20
+ readonly edgeRouterRegistry?: EdgeRouterRegistry;
21
+ previous(root: Readonly<SModelRoot>, current?: SelectableBoundsAware, previousCurrent?: SelectableBoundsAware, predicate?: (element: SModelElement) => boolean): SModelElement | undefined;
22
+ next(root: Readonly<SModelRoot>, current?: SelectableBoundsAware, previousCurrent?: SelectableBoundsAware, predicate?: (element: SModelElement) => boolean): SModelElement | undefined;
23
+ protected getElements(root: Readonly<SModelRoot>, predicate: (element: SModelElement) => boolean): SModelElement[];
24
+ protected getNextIndex(current: SelectableBoundsAware, elements: SModelElement[]): number;
25
+ protected getPreviousIndex(current: SelectableBoundsAware, elements: SModelElement[]): number;
26
+ protected compare(one: SModelElement, other: SModelElement): number;
27
+ }
28
+ //# sourceMappingURL=left-right-top-bottom-navigator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"left-right-top-bottom-navigator.d.ts","sourceRoot":"","sources":["../../../../src/features/accessibility/element-navigation/left-right-top-bottom-navigator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,kBAAkB,EAA8B,aAAa,EAAE,UAAU,EAAS,MAAM,eAAe,CAAC;AAEjH,OAAO,EAA+D,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAChI,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,qBACa,sCAAuC,YAAW,gBAAgB;IACnC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAEzF,QAAQ,CACJ,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC1B,OAAO,CAAC,EAAE,qBAAqB,EAC/B,eAAe,CAAC,EAAE,qBAAqB,EACvC,SAAS,GAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAoB,GAC5D,aAAa,GAAG,SAAS;IAS5B,IAAI,CACA,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC1B,OAAO,CAAC,EAAE,qBAAqB,EAC/B,eAAe,CAAC,EAAE,qBAAqB,EACvC,SAAS,GAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAoB,GAC5D,aAAa,GAAG,SAAS;IAQ5B,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,GAAG,aAAa,EAAE;IAKlH,SAAS,CAAC,YAAY,CAAC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,MAAM;IAUzF,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,MAAM;IAU7F,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,GAAG,MAAM;CAkCtE"}
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ /********************************************************************************
3
+ * Copyright (c) 2023 Business Informatics Group (TU Wien) 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.LeftToRightTopToBottomElementNavigator = void 0;
28
+ const _glsp_sprotty_1 = require("../../../glsp-sprotty/index");
29
+ const iterable_1 = require("sprotty/lib/utils/iterable");
30
+ const smodel_util_1 = require("../../../utils/smodel-util");
31
+ const inversify_1 = require("inversify");
32
+ let LeftToRightTopToBottomElementNavigator = exports.LeftToRightTopToBottomElementNavigator = class LeftToRightTopToBottomElementNavigator {
33
+ previous(root, current, previousCurrent, predicate = () => true) {
34
+ const elements = this.getElements(root, predicate);
35
+ if (current === undefined) {
36
+ return elements.length > 0 ? elements[0] : undefined;
37
+ }
38
+ return elements[this.getPreviousIndex(current, elements) % elements.length];
39
+ }
40
+ next(root, current, previousCurrent, predicate = () => true) {
41
+ const elements = this.getElements(root, predicate);
42
+ if (current === undefined) {
43
+ return elements.length > 0 ? elements[0] : undefined;
44
+ }
45
+ return elements[this.getNextIndex(current, elements) % elements.length];
46
+ }
47
+ getElements(root, predicate) {
48
+ const elements = (0, iterable_1.toArray)(root.index.all().filter(e => (0, smodel_util_1.isSelectableAndBoundsAware)(e)));
49
+ return elements.sort((a, b) => this.compare(a, b)).filter(predicate);
50
+ }
51
+ getNextIndex(current, elements) {
52
+ for (let index = 0; index < elements.length; index++) {
53
+ if (this.compare(elements[index], current) > 0) {
54
+ return index;
55
+ }
56
+ }
57
+ return 0;
58
+ }
59
+ getPreviousIndex(current, elements) {
60
+ for (let index = elements.length - 1; index >= 0; index--) {
61
+ if (this.compare(elements[index], current) < 0) {
62
+ return index;
63
+ }
64
+ }
65
+ return elements.length - 1;
66
+ }
67
+ compare(one, other) {
68
+ var _a, _b;
69
+ let positionOne = undefined;
70
+ let positionOther = undefined;
71
+ if (one instanceof _glsp_sprotty_1.SEdge && (0, smodel_util_1.isRoutable)(one)) {
72
+ positionOne = (_a = (0, smodel_util_1.calcElementAndRoute)(one, this.edgeRouterRegistry).newRoutingPoints) === null || _a === void 0 ? void 0 : _a[0];
73
+ }
74
+ if (other instanceof _glsp_sprotty_1.SEdge && (0, smodel_util_1.isRoutable)(other)) {
75
+ positionOther = (_b = (0, smodel_util_1.calcElementAndRoute)(other, this.edgeRouterRegistry).newRoutingPoints) === null || _b === void 0 ? void 0 : _b[0];
76
+ }
77
+ const boundsOne = (0, _glsp_sprotty_1.findParentByFeature)(one, smodel_util_1.isSelectableAndBoundsAware);
78
+ const boundsOther = (0, _glsp_sprotty_1.findParentByFeature)(other, smodel_util_1.isSelectableAndBoundsAware);
79
+ if (positionOne === undefined && boundsOne) {
80
+ positionOne = boundsOne.bounds;
81
+ }
82
+ if (positionOther === undefined && boundsOther) {
83
+ positionOther = boundsOther.bounds;
84
+ }
85
+ if (positionOne && positionOther) {
86
+ if (positionOne.y !== positionOther.y) {
87
+ return positionOne.y - positionOther.y;
88
+ }
89
+ if (positionOne.x !== positionOther.x) {
90
+ return positionOne.x - positionOther.x;
91
+ }
92
+ }
93
+ return 0;
94
+ }
95
+ };
96
+ __decorate([
97
+ (0, inversify_1.inject)(_glsp_sprotty_1.EdgeRouterRegistry),
98
+ (0, inversify_1.optional)(),
99
+ __metadata("design:type", _glsp_sprotty_1.EdgeRouterRegistry)
100
+ ], LeftToRightTopToBottomElementNavigator.prototype, "edgeRouterRegistry", void 0);
101
+ exports.LeftToRightTopToBottomElementNavigator = LeftToRightTopToBottomElementNavigator = __decorate([
102
+ (0, inversify_1.injectable)()
103
+ ], LeftToRightTopToBottomElementNavigator);
104
+ //# sourceMappingURL=left-right-top-bottom-navigator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"left-right-top-bottom-navigator.js","sourceRoot":"","sources":["../../../../src/features/accessibility/element-navigation/left-right-top-bottom-navigator.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,iDAAiH;AACjH,yDAAqD;AACrD,4DAAgI;AAEhI,yCAAyD;AAGlD,IAAM,sCAAsC,oDAA5C,MAAM,sCAAsC;IAG/C,QAAQ,CACJ,IAA0B,EAC1B,OAA+B,EAC/B,eAAuC,EACvC,YAAiD,GAAG,EAAE,CAAC,IAAI;QAE3D,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAEnD,IAAI,OAAO,KAAK,SAAS,EAAE;YACvB,OAAO,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAA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C,aAAa,GAAG,WAAW,CAAC,MAAM,CAAC;SACtC;QAED,IAAI,WAAW,IAAI,aAAa,EAAE;YAC9B,IAAI,WAAW,CAAC,CAAC,KAAK,aAAa,CAAC,CAAC,EAAE;gBACnC,OAAO,WAAW,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC;aAC1C;YACD,IAAI,WAAW,CAAC,CAAC,KAAK,aAAa,CAAC,CAAC,EAAE;gBACnC,OAAO,WAAW,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC;aAC1C;SACJ;QAED,OAAO,CAAC,CAAC;IACb,CAAC;CACJ,CAAA;AAxFoD;IAAhD,IAAA,kBAAM,EAAC,kCAAkB,CAAC;IAAE,IAAA,oBAAQ,GAAE;8BAA+B,kCAAkB;kFAAC;iDADhF,sCAAsC;IADlD,IAAA,sBAAU,GAAE;GACA,sCAAsC,CAyFlD"}
@@ -0,0 +1,35 @@
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
+ import { BoundsAware, EdgeRouterRegistry, SModelElement, SModelRoot } from '../../../glsp-sprotty/index';
17
+ import { ElementNavigator } from './element-navigator';
18
+ import { GLSPActionDispatcher } from '../../../base/action-dispatcher';
19
+ import { SelectableBoundsAware } from '../../../utils/smodel-util';
20
+ export declare class LocalElementNavigator implements ElementNavigator {
21
+ navigableElementCSS: string;
22
+ readonly edgeRouterRegistry?: EdgeRouterRegistry;
23
+ protected readonly actionDispatcher: GLSPActionDispatcher;
24
+ previous(root: Readonly<SModelRoot>, current: SelectableBoundsAware, previousCurrent?: SelectableBoundsAware, predicate?: (element: SModelElement) => boolean): SModelElement | undefined;
25
+ next(root: Readonly<SModelRoot>, current: SelectableBoundsAware, previousCurrent?: SelectableBoundsAware, predicate?: (element: SModelElement) => boolean): SModelElement | undefined;
26
+ up(root: Readonly<SModelRoot>, current: SelectableBoundsAware, previousCurrent?: SelectableBoundsAware, predicate?: (element: SModelElement) => boolean): SModelElement | undefined;
27
+ down(root: Readonly<SModelRoot>, current: SelectableBoundsAware, previousCurrent?: SelectableBoundsAware, predicate?: (element: SModelElement) => boolean): SModelElement | undefined;
28
+ process(root: Readonly<SModelRoot>, current: SelectableBoundsAware, target: SelectableBoundsAware, previousCurrent?: SelectableBoundsAware, predicate?: (element: SModelElement) => boolean): void;
29
+ clean(root: Readonly<SModelRoot>, current?: SelectableBoundsAware, previousCurrent?: SelectableBoundsAware): void;
30
+ protected getIterables(current: SelectableBoundsAware, previousCurrent?: SModelElement & BoundsAware, predicate?: (element: SModelElement) => boolean): SModelElement[];
31
+ protected getIterable(current: SelectableBoundsAware, previousCurrent?: SelectableBoundsAware, predicate?: (element: SModelElement) => boolean): SModelElement | undefined;
32
+ protected getNextElement(current: SelectableBoundsAware, predicate?: (element: SModelElement) => boolean): SModelElement | undefined;
33
+ protected getPreviousElement(current: SelectableBoundsAware, predicate?: (element: SModelElement) => boolean): SModelElement | undefined;
34
+ }
35
+ //# sourceMappingURL=local-element-navigator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-element-navigator.d.ts","sourceRoot":"","sources":["../../../../src/features/accessibility/element-navigation/local-element-navigator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAA8B,aAAa,EAAE,UAAU,EAAS,MAAM,eAAe,CAAC;AAC9H,OAAO,EAAE,g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