@eclipse-glsp/client 1.1.0-next.c40feb3.207 → 1.1.0-next.c54a4b8.246

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/README.md +1 -1
  2. package/{lib/features/change-bounds/snap.spec.d.ts → css/autocomplete-palette.css} +8 -3
  3. package/css/decoration.css +1 -1
  4. package/css/glsp-sprotty.css +34 -19
  5. package/lib/base/auto-complete/auto-complete-widget.d.ts +10 -4
  6. package/lib/base/auto-complete/auto-complete-widget.d.ts.map +1 -1
  7. package/lib/base/auto-complete/auto-complete-widget.js +28 -9
  8. package/lib/base/auto-complete/auto-complete-widget.js.map +1 -1
  9. package/lib/base/command-stack.d.ts +1 -2
  10. package/lib/base/command-stack.d.ts.map +1 -1
  11. package/lib/base/command-stack.js +5 -14
  12. package/lib/base/command-stack.js.map +1 -1
  13. package/lib/base/container-modules.d.ts +32 -2
  14. package/lib/base/container-modules.d.ts.map +1 -1
  15. package/lib/base/container-modules.js +74 -40
  16. package/lib/base/container-modules.js.map +1 -1
  17. package/lib/base/di.config.d.ts +1 -1
  18. package/lib/base/di.config.d.ts.map +1 -1
  19. package/lib/base/di.config.js +7 -7
  20. package/lib/base/di.config.js.map +1 -1
  21. package/lib/base/editor-context-service.d.ts +3 -3
  22. package/lib/base/editor-context-service.d.ts.map +1 -1
  23. package/lib/base/editor-context-service.js +3 -3
  24. package/lib/base/editor-context-service.js.map +1 -1
  25. package/lib/base/selection-clearing-mouse-listener.js +1 -1
  26. package/lib/base/tool-manager/glsp-tool-manager.d.ts +4 -5
  27. package/lib/base/tool-manager/glsp-tool-manager.d.ts.map +1 -1
  28. package/lib/base/tool-manager/glsp-tool-manager.js +15 -8
  29. package/lib/base/tool-manager/glsp-tool-manager.js.map +1 -1
  30. package/lib/features/accessibility/di.config.d.ts +21 -0
  31. package/lib/features/accessibility/di.config.d.ts.map +1 -0
  32. package/lib/features/accessibility/di.config.js +32 -0
  33. package/lib/features/accessibility/di.config.js.map +1 -0
  34. package/lib/features/accessibility/move-zoom/di.config.d.ts +23 -0
  35. package/lib/features/accessibility/move-zoom/di.config.d.ts.map +1 -0
  36. package/lib/features/accessibility/move-zoom/di.config.js +41 -0
  37. package/lib/features/accessibility/move-zoom/di.config.js.map +1 -0
  38. package/lib/features/accessibility/move-zoom/move-handler.d.ts +81 -0
  39. package/lib/features/accessibility/move-zoom/move-handler.d.ts.map +1 -0
  40. package/lib/features/accessibility/move-zoom/move-handler.js +173 -0
  41. package/lib/features/accessibility/move-zoom/move-handler.js.map +1 -0
  42. package/lib/features/accessibility/move-zoom/zoom-handler.d.ts +74 -0
  43. package/lib/features/accessibility/move-zoom/zoom-handler.d.ts.map +1 -0
  44. package/lib/features/accessibility/move-zoom/zoom-handler.js +159 -0
  45. package/lib/features/accessibility/move-zoom/zoom-handler.js.map +1 -0
  46. package/lib/features/accessibility/search/di.config.d.ts +20 -0
  47. package/lib/features/accessibility/search/di.config.d.ts.map +1 -0
  48. package/lib/features/accessibility/search/di.config.js +33 -0
  49. package/lib/features/accessibility/search/di.config.js.map +1 -0
  50. package/lib/features/accessibility/search/search-palette.d.ts +47 -0
  51. package/lib/features/accessibility/search/search-palette.d.ts.map +1 -0
  52. package/lib/features/accessibility/search/search-palette.js +155 -0
  53. package/lib/features/accessibility/search/search-palette.js.map +1 -0
  54. package/lib/features/accessibility/search/search-tool.d.ts +30 -0
  55. package/lib/features/accessibility/search/search-tool.d.ts.map +1 -0
  56. package/lib/features/accessibility/search/search-tool.js +73 -0
  57. package/lib/features/accessibility/search/search-tool.js.map +1 -0
  58. package/lib/features/accessibility/view-key-tools/deselect-key-tool.d.ts +35 -0
  59. package/lib/features/accessibility/view-key-tools/deselect-key-tool.d.ts.map +1 -0
  60. package/lib/features/accessibility/view-key-tools/deselect-key-tool.js +87 -0
  61. package/lib/features/accessibility/view-key-tools/deselect-key-tool.js.map +1 -0
  62. package/lib/features/accessibility/view-key-tools/di.config.d.ts +20 -0
  63. package/lib/features/accessibility/view-key-tools/di.config.d.ts.map +1 -0
  64. package/lib/features/accessibility/view-key-tools/di.config.js +35 -0
  65. package/lib/features/accessibility/view-key-tools/di.config.js.map +1 -0
  66. package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts +49 -0
  67. package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts.map +1 -0
  68. package/lib/features/accessibility/view-key-tools/movement-key-tool.js +131 -0
  69. package/lib/features/accessibility/view-key-tools/movement-key-tool.js.map +1 -0
  70. package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts +43 -0
  71. package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts.map +1 -0
  72. package/lib/features/accessibility/view-key-tools/zoom-key-tool.js +109 -0
  73. package/lib/features/accessibility/view-key-tools/zoom-key-tool.js.map +1 -0
  74. package/lib/features/autocomplete-palette/autocomplete-suggestion-providers.d.ts +35 -0
  75. package/lib/features/autocomplete-palette/autocomplete-suggestion-providers.d.ts.map +1 -0
  76. package/lib/features/{tools/marquee-behavior.spec.d.ts → autocomplete-palette/autocomplete-suggestion-providers.js} +4 -3
  77. package/lib/features/autocomplete-palette/autocomplete-suggestion-providers.js.map +1 -0
  78. package/lib/features/autocomplete-palette/base-autocomplete-palette.d.ts +41 -0
  79. package/lib/features/autocomplete-palette/base-autocomplete-palette.d.ts.map +1 -0
  80. package/lib/features/autocomplete-palette/base-autocomplete-palette.js +82 -0
  81. package/lib/features/autocomplete-palette/base-autocomplete-palette.js.map +1 -0
  82. package/lib/features/bounds/di.config.d.ts +0 -16
  83. package/lib/features/bounds/di.config.d.ts.map +1 -1
  84. package/lib/features/bounds/di.config.js +12 -9
  85. package/lib/features/bounds/di.config.js.map +1 -1
  86. package/lib/features/{layout → bounds}/freeform-layout.d.ts +2 -2
  87. package/lib/features/{layout → bounds}/freeform-layout.d.ts.map +1 -1
  88. package/lib/features/{layout → bounds}/freeform-layout.js +2 -2
  89. package/lib/features/{layout → bounds}/freeform-layout.js.map +1 -1
  90. package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts +1 -1
  91. package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts.map +1 -1
  92. package/lib/features/bounds/glsp-hidden-bounds-updater.js +3 -2
  93. package/lib/features/bounds/glsp-hidden-bounds-updater.js.map +1 -1
  94. package/lib/features/{layout → bounds}/hbox-layout.d.ts +1 -1
  95. package/lib/features/{layout → bounds}/hbox-layout.d.ts.map +1 -1
  96. package/lib/features/{layout → bounds}/hbox-layout.js +1 -1
  97. package/lib/features/{layout → bounds}/hbox-layout.js.map +1 -1
  98. package/lib/features/{layout → bounds}/layouter.d.ts +1 -1
  99. package/lib/features/{layout → bounds}/layouter.d.ts.map +1 -1
  100. package/lib/features/{layout → bounds}/layouter.js +1 -1
  101. package/lib/features/{layout → bounds}/layouter.js.map +1 -1
  102. package/lib/features/{layout → bounds}/vbox-layout.d.ts +1 -1
  103. package/lib/features/{layout → bounds}/vbox-layout.d.ts.map +1 -1
  104. package/lib/features/{layout → bounds}/vbox-layout.js +1 -1
  105. package/lib/features/{layout → bounds}/vbox-layout.js.map +1 -1
  106. package/lib/features/command-palette/command-palette-tool.d.ts +1 -1
  107. package/lib/features/command-palette/command-palette-tool.d.ts.map +1 -1
  108. package/lib/features/command-palette/command-palette-tool.js +3 -3
  109. package/lib/features/command-palette/command-palette-tool.js.map +1 -1
  110. package/lib/features/command-palette/di.config.d.ts +0 -15
  111. package/lib/features/command-palette/di.config.d.ts.map +1 -1
  112. package/lib/features/command-palette/di.config.js +6 -7
  113. package/lib/features/command-palette/di.config.js.map +1 -1
  114. package/lib/features/context-menu/di.config.d.ts +0 -15
  115. package/lib/features/context-menu/di.config.d.ts.map +1 -1
  116. package/lib/features/context-menu/di.config.js +4 -3
  117. package/lib/features/context-menu/di.config.js.map +1 -1
  118. package/lib/features/copy-paste/copy-paste-handler.d.ts +2 -2
  119. package/lib/features/copy-paste/copy-paste-handler.d.ts.map +1 -1
  120. package/lib/features/copy-paste/copy-paste-handler.js +5 -5
  121. package/lib/features/copy-paste/copy-paste-handler.js.map +1 -1
  122. package/lib/features/decoration/di.config.d.ts +0 -15
  123. package/lib/features/decoration/di.config.d.ts.map +1 -1
  124. package/lib/features/decoration/di.config.js +4 -4
  125. package/lib/features/decoration/di.config.js.map +1 -1
  126. package/lib/features/edit-label/di.config.d.ts +0 -15
  127. package/lib/features/edit-label/di.config.d.ts.map +1 -1
  128. package/lib/features/edit-label/di.config.js +3 -2
  129. package/lib/features/edit-label/di.config.js.map +1 -1
  130. package/lib/features/export/di.config.d.ts +4 -0
  131. package/lib/features/export/di.config.d.ts.map +1 -0
  132. package/lib/features/export/di.config.js +30 -0
  133. package/lib/features/export/di.config.js.map +1 -0
  134. package/lib/features/export/glsp-svg-exporter.d.ts +1 -1
  135. package/lib/features/export/glsp-svg-exporter.d.ts.map +1 -1
  136. package/lib/features/export/glsp-svg-exporter.js +1 -2
  137. package/lib/features/export/glsp-svg-exporter.js.map +1 -1
  138. package/lib/features/hover/di.config.d.ts +0 -15
  139. package/lib/features/hover/di.config.d.ts.map +1 -1
  140. package/lib/features/hover/di.config.js +7 -7
  141. package/lib/features/hover/di.config.js.map +1 -1
  142. package/lib/features/hover/hover.d.ts.map +1 -1
  143. package/lib/features/hover/hover.js +2 -1
  144. package/lib/features/hover/hover.js.map +1 -1
  145. package/lib/features/layout/di.config.d.ts +1 -1
  146. package/lib/features/layout/di.config.d.ts.map +1 -1
  147. package/lib/features/layout/di.config.js +1 -9
  148. package/lib/features/layout/di.config.js.map +1 -1
  149. package/lib/features/layout/layout-elements-action.d.ts.map +1 -1
  150. package/lib/features/layout/layout-elements-action.js +2 -2
  151. package/lib/features/layout/layout-elements-action.js.map +1 -1
  152. package/lib/features/navigation/di.config.d.ts +2 -1
  153. package/lib/features/navigation/di.config.d.ts.map +1 -1
  154. package/lib/features/navigation/di.config.js +3 -3
  155. package/lib/features/navigation/di.config.js.map +1 -1
  156. package/lib/features/navigation/navigation-action-handler.d.ts +2 -2
  157. package/lib/features/navigation/navigation-action-handler.js +2 -2
  158. package/lib/features/save/di.config.d.ts +0 -15
  159. package/lib/features/save/di.config.d.ts.map +1 -1
  160. package/lib/features/save/di.config.js +3 -2
  161. package/lib/features/save/di.config.js.map +1 -1
  162. package/lib/features/save/model.d.ts +1 -1
  163. package/lib/features/select/di.config.d.ts +0 -15
  164. package/lib/features/select/di.config.d.ts.map +1 -1
  165. package/lib/features/select/di.config.js +8 -7
  166. package/lib/features/select/di.config.js.map +1 -1
  167. package/lib/features/select/select-mouse-listener.d.ts +1 -1
  168. package/lib/features/select/select-mouse-listener.d.ts.map +1 -1
  169. package/lib/features/select/select-mouse-listener.js +2 -1
  170. package/lib/features/select/select-mouse-listener.js.map +1 -1
  171. package/lib/features/source-model-watcher/di.config.js +1 -1
  172. package/lib/features/svg-metadata/di.config.d.ts +19 -0
  173. package/lib/features/svg-metadata/di.config.d.ts.map +1 -0
  174. package/lib/features/svg-metadata/di.config.js +26 -0
  175. package/lib/features/svg-metadata/di.config.js.map +1 -0
  176. package/lib/features/svg-metadata/metadata-placer.d.ts +24 -0
  177. package/lib/features/svg-metadata/metadata-placer.d.ts.map +1 -0
  178. package/lib/features/svg-metadata/metadata-placer.js +63 -0
  179. package/lib/features/svg-metadata/metadata-placer.js.map +1 -0
  180. package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts +4 -3
  181. package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts.map +1 -1
  182. package/lib/features/tool-feedback/change-bounds-tool-feedback.js +5 -4
  183. package/lib/features/tool-feedback/change-bounds-tool-feedback.js.map +1 -1
  184. package/lib/features/tool-feedback/creation-tool-feedback.d.ts +7 -7
  185. package/lib/features/tool-feedback/creation-tool-feedback.d.ts.map +1 -1
  186. package/lib/features/tool-feedback/creation-tool-feedback.js +8 -11
  187. package/lib/features/tool-feedback/creation-tool-feedback.js.map +1 -1
  188. package/lib/features/tool-feedback/di.config.d.ts +0 -15
  189. package/lib/features/tool-feedback/di.config.d.ts.map +1 -1
  190. package/lib/features/tool-feedback/di.config.js +20 -18
  191. package/lib/features/tool-feedback/di.config.js.map +1 -1
  192. package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts +2 -3
  193. package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts.map +1 -1
  194. package/lib/features/tool-feedback/edge-edit-tool-feedback.js +6 -11
  195. package/lib/features/tool-feedback/edge-edit-tool-feedback.js.map +1 -1
  196. package/lib/features/tool-palette/di.config.d.ts +0 -15
  197. package/lib/features/tool-palette/di.config.d.ts.map +1 -1
  198. package/lib/features/tool-palette/di.config.js +4 -4
  199. package/lib/features/tool-palette/di.config.js.map +1 -1
  200. package/lib/features/tool-palette/tool-palette.d.ts +1 -1
  201. package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
  202. package/lib/features/tool-palette/tool-palette.js +2 -2
  203. package/lib/features/tool-palette/tool-palette.js.map +1 -1
  204. package/lib/features/tools/change-bounds-tool.d.ts +1 -1
  205. package/lib/features/tools/change-bounds-tool.d.ts.map +1 -1
  206. package/lib/features/tools/change-bounds-tool.js +6 -6
  207. package/lib/features/tools/change-bounds-tool.js.map +1 -1
  208. package/lib/features/tools/di.config.d.ts +18 -5
  209. package/lib/features/tools/di.config.d.ts.map +1 -1
  210. package/lib/features/tools/di.config.js +15 -19
  211. package/lib/features/tools/di.config.js.map +1 -1
  212. package/lib/features/tools/glsp-manhattan-edge-router.d.ts +2 -2
  213. package/lib/features/tools/glsp-manhattan-edge-router.d.ts.map +1 -1
  214. package/lib/features/tools/glsp-manhattan-edge-router.js +4 -4
  215. package/lib/features/tools/glsp-manhattan-edge-router.js.map +1 -1
  216. package/lib/features/validation/di.config.js +4 -4
  217. package/lib/features/validation/di.config.js.map +1 -1
  218. package/lib/features/validation/issue-marker.d.ts +1 -1
  219. package/lib/features/validation/issue-marker.js +1 -1
  220. package/lib/features/validation/validate.d.ts +6 -6
  221. package/lib/features/validation/validate.d.ts.map +1 -1
  222. package/lib/features/validation/validate.js +18 -17
  223. package/lib/features/validation/validate.js.map +1 -1
  224. package/lib/features/viewport/di.config.d.ts +0 -15
  225. package/lib/features/viewport/di.config.d.ts.map +1 -1
  226. package/lib/features/viewport/di.config.js +12 -11
  227. package/lib/features/viewport/di.config.js.map +1 -1
  228. package/lib/index.d.ts +35 -4
  229. package/lib/index.d.ts.map +1 -1
  230. package/lib/index.js +86 -43
  231. package/lib/index.js.map +1 -1
  232. package/lib/lib/model.d.ts +7 -3
  233. package/lib/lib/model.d.ts.map +1 -1
  234. package/lib/lib/model.js +48 -1
  235. package/lib/lib/model.js.map +1 -1
  236. package/lib/sprotty-reexport.d.ts +7 -7
  237. package/lib/sprotty-reexport.d.ts.map +1 -1
  238. package/lib/sprotty-reexport.js +19 -10
  239. package/lib/sprotty-reexport.js.map +1 -1
  240. package/lib/utils/html-utils.d.ts +1 -1
  241. package/lib/utils/html-utils.js +1 -1
  242. package/lib/utils/smodel-util.d.ts +1 -1
  243. package/lib/utils/smodel-util.d.ts.map +1 -1
  244. package/lib/utils/smodel-util.js +1 -1
  245. package/lib/utils/smodel-util.js.map +1 -1
  246. package/lib/views/base-view-module.d.ts +18 -6
  247. package/lib/views/base-view-module.d.ts.map +1 -1
  248. package/lib/views/base-view-module.js +1 -1
  249. package/lib/views/base-view-module.js.map +1 -1
  250. package/lib/views/glsp-edge-view.d.ts +2 -2
  251. package/lib/views/glsp-edge-view.d.ts.map +1 -1
  252. package/lib/views/glsp-edge-view.js +2 -2
  253. package/lib/views/glsp-edge-view.js.map +1 -1
  254. package/lib/views/glsp-projection-view.d.ts +1 -1
  255. package/lib/views/glsp-projection-view.js +1 -1
  256. package/lib/views/index.d.ts +1 -1
  257. package/lib/views/index.js +1 -1
  258. package/lib/views/rounded-corner-view.js +2 -2
  259. package/lib/views/rounded-corner.d.ts +1 -1
  260. package/lib/views/rounded-corner.js +1 -1
  261. package/package.json +22 -19
  262. package/src/base/auto-complete/auto-complete-widget.ts +34 -10
  263. package/src/base/command-stack.ts +13 -11
  264. package/src/base/container-modules.ts +42 -9
  265. package/src/base/di.config.ts +8 -8
  266. package/src/base/editor-context-service.ts +4 -4
  267. package/src/base/selection-clearing-mouse-listener.ts +1 -1
  268. package/src/base/tool-manager/glsp-tool-manager.ts +15 -12
  269. package/src/features/accessibility/di.config.ts +30 -0
  270. package/src/features/accessibility/move-zoom/di.config.ts +43 -0
  271. package/src/features/accessibility/move-zoom/move-handler.ts +198 -0
  272. package/src/features/accessibility/move-zoom/zoom-handler.ts +178 -0
  273. package/src/features/accessibility/search/di.config.ts +31 -0
  274. package/src/features/accessibility/search/search-palette.ts +181 -0
  275. package/src/features/accessibility/search/search-tool.ts +60 -0
  276. package/src/features/accessibility/view-key-tools/deselect-key-tool.ts +80 -0
  277. package/src/features/accessibility/view-key-tools/di.config.ts +33 -0
  278. package/src/features/accessibility/view-key-tools/movement-key-tool.ts +115 -0
  279. package/src/features/accessibility/view-key-tools/zoom-key-tool.ts +94 -0
  280. package/src/features/autocomplete-palette/autocomplete-suggestion-providers.ts +37 -0
  281. package/src/features/autocomplete-palette/base-autocomplete-palette.ts +88 -0
  282. package/src/features/bounds/di.config.ts +21 -11
  283. package/src/features/{layout/tests → bounds}/freeform-layout.spec.ts +2 -2
  284. package/src/features/{layout → bounds}/freeform-layout.ts +2 -2
  285. package/src/features/bounds/glsp-hidden-bounds-updater.ts +4 -7
  286. package/src/features/{layout/tests → bounds}/hbox-layout.spec.ts +2 -2
  287. package/src/features/{layout → bounds}/hbox-layout.ts +1 -1
  288. package/src/features/{layout/tests/layouter-test-util.ts → bounds/layouter-test-util.spec.ts} +6 -6
  289. package/src/features/{layout → bounds}/layouter.ts +1 -1
  290. package/src/features/{layout/tests → bounds}/vbox-layout.spec.ts +2 -2
  291. package/src/features/{layout → bounds}/vbox-layout.ts +1 -1
  292. package/src/features/command-palette/command-palette-tool.ts +3 -3
  293. package/src/features/command-palette/di.config.ts +6 -7
  294. package/src/features/context-menu/di.config.ts +4 -3
  295. package/src/features/copy-paste/copy-paste-handler.ts +5 -5
  296. package/src/features/decoration/di.config.ts +4 -4
  297. package/src/features/edit-label/di.config.ts +3 -2
  298. package/src/features/export/di.config.ts +29 -0
  299. package/src/features/export/glsp-svg-exporter.ts +8 -7
  300. package/src/features/hover/di.config.ts +8 -7
  301. package/src/features/hover/hover.ts +2 -1
  302. package/src/features/layout/di.config.ts +2 -11
  303. package/src/features/layout/layout-elements-action.ts +2 -1
  304. package/src/features/navigation/di.config.ts +4 -2
  305. package/src/features/navigation/navigation-action-handler.ts +2 -2
  306. package/src/features/save/di.config.ts +3 -2
  307. package/src/features/save/model.ts +1 -1
  308. package/src/features/select/di.config.ts +8 -7
  309. package/src/features/select/select-mouse-listener.ts +2 -2
  310. package/src/features/select/selection-service.spec.ts +4 -5
  311. package/src/features/source-model-watcher/di.config.ts +1 -1
  312. package/src/features/svg-metadata/di.config.ts +26 -0
  313. package/src/features/svg-metadata/metadata-placer.ts +51 -0
  314. package/src/features/tool-feedback/change-bounds-tool-feedback.ts +4 -4
  315. package/src/features/tool-feedback/creation-tool-feedback.ts +22 -16
  316. package/src/features/tool-feedback/di.config.ts +20 -18
  317. package/src/features/tool-feedback/edge-edit-tool-feedback.ts +3 -11
  318. package/src/features/tool-palette/di.config.ts +4 -4
  319. package/src/features/tool-palette/tool-palette.ts +4 -4
  320. package/src/features/tools/change-bounds-tool.ts +7 -7
  321. package/src/features/tools/di.config.ts +19 -24
  322. package/src/features/tools/glsp-manhattan-edge-router.ts +8 -5
  323. package/src/features/validation/di.config.ts +5 -5
  324. package/src/features/validation/issue-marker.ts +1 -1
  325. package/src/features/validation/validate.ts +16 -19
  326. package/src/features/viewport/di.config.ts +13 -11
  327. package/src/index.ts +48 -5
  328. package/src/lib/model.ts +35 -3
  329. package/src/sprotty-reexport.ts +24 -8
  330. package/src/utils/html-utils.ts +1 -1
  331. package/src/utils/smodel-util.ts +12 -5
  332. package/src/views/base-view-module.ts +4 -9
  333. package/src/views/glsp-edge-view.tsx +3 -3
  334. package/src/views/glsp-projection-view.tsx +1 -1
  335. package/src/views/index.ts +1 -2
  336. package/src/views/rounded-corner-view.tsx +2 -2
  337. package/src/views/rounded-corner.ts +2 -2
  338. package/lib/features/change-bounds/snap.spec.d.ts.map +0 -1
  339. package/lib/features/change-bounds/snap.spec.js +0 -82
  340. package/lib/features/change-bounds/snap.spec.js.map +0 -1
  341. package/lib/features/layout/layout-elements-action.spec.d.ts +0 -3
  342. package/lib/features/layout/layout-elements-action.spec.d.ts.map +0 -1
  343. package/lib/features/layout/layout-elements-action.spec.js +0 -325
  344. package/lib/features/layout/layout-elements-action.spec.js.map +0 -1
  345. package/lib/features/layout/tests/freeform-layout.spec.d.ts +0 -3
  346. package/lib/features/layout/tests/freeform-layout.spec.d.ts.map +0 -1
  347. package/lib/features/layout/tests/freeform-layout.spec.js +0 -201
  348. package/lib/features/layout/tests/freeform-layout.spec.js.map +0 -1
  349. package/lib/features/layout/tests/hbox-layout.spec.d.ts +0 -3
  350. package/lib/features/layout/tests/hbox-layout.spec.d.ts.map +0 -1
  351. package/lib/features/layout/tests/hbox-layout.spec.js +0 -161
  352. package/lib/features/layout/tests/hbox-layout.spec.js.map +0 -1
  353. package/lib/features/layout/tests/layouter-test-util.d.ts +0 -34
  354. package/lib/features/layout/tests/layouter-test-util.d.ts.map +0 -1
  355. package/lib/features/layout/tests/layouter-test-util.js +0 -96
  356. package/lib/features/layout/tests/layouter-test-util.js.map +0 -1
  357. package/lib/features/layout/tests/vbox-layout.spec.d.ts +0 -3
  358. package/lib/features/layout/tests/vbox-layout.spec.d.ts.map +0 -1
  359. package/lib/features/layout/tests/vbox-layout.spec.js +0 -161
  360. package/lib/features/layout/tests/vbox-layout.spec.js.map +0 -1
  361. package/lib/features/navigation/navigation-target-resolver.spec.d.ts +0 -3
  362. package/lib/features/navigation/navigation-target-resolver.spec.d.ts.map +0 -1
  363. package/lib/features/navigation/navigation-target-resolver.spec.js +0 -54
  364. package/lib/features/navigation/navigation-target-resolver.spec.js.map +0 -1
  365. package/lib/features/select/selection-service.spec.d.ts +0 -2
  366. package/lib/features/select/selection-service.spec.d.ts.map +0 -1
  367. package/lib/features/select/selection-service.spec.js +0 -347
  368. package/lib/features/select/selection-service.spec.js.map +0 -1
  369. package/lib/features/tools/marquee-behavior.spec.d.ts.map +0 -1
  370. package/lib/features/tools/marquee-behavior.spec.js +0 -165
  371. package/lib/features/tools/marquee-behavior.spec.js.map +0 -1
  372. package/lib/features/validation/marker-navigator.spec.d.ts +0 -3
  373. package/lib/features/validation/marker-navigator.spec.d.ts.map +0 -1
  374. package/lib/features/validation/marker-navigator.spec.js +0 -169
  375. package/lib/features/validation/marker-navigator.spec.js.map +0 -1
@@ -0,0 +1,131 @@
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 MovementKeyTool_1;
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.MoveKeyListener = exports.MovementKeyTool = void 0;
29
+ const inversify_1 = require("inversify");
30
+ const sprotty_1 = require("sprotty");
31
+ const keyboard_1 = require("sprotty/lib/utils/keyboard");
32
+ const types_1 = require("../../../base/types");
33
+ const snap_1 = require("../../change-bounds/snap");
34
+ const selection_service_1 = require("../../select/selection-service");
35
+ const move_handler_1 = require("../move-zoom/move-handler");
36
+ /**
37
+ * Moves viewport and elements when its focused and arrow keys are hit.
38
+ */
39
+ let MovementKeyTool = MovementKeyTool_1 = class MovementKeyTool {
40
+ constructor() {
41
+ this.isEditTool = true;
42
+ this.movementKeyListener = new MoveKeyListener(this);
43
+ }
44
+ get id() {
45
+ return MovementKeyTool_1.ID;
46
+ }
47
+ enable() {
48
+ this.keytool.register(this.movementKeyListener);
49
+ }
50
+ disable() {
51
+ this.keytool.deregister(this.movementKeyListener);
52
+ }
53
+ };
54
+ MovementKeyTool.ID = 'glsp.movement-key-tool';
55
+ __decorate([
56
+ (0, inversify_1.inject)(sprotty_1.KeyTool),
57
+ __metadata("design:type", sprotty_1.KeyTool)
58
+ ], MovementKeyTool.prototype, "keytool", void 0);
59
+ __decorate([
60
+ (0, inversify_1.inject)(types_1.TYPES.SelectionService),
61
+ __metadata("design:type", selection_service_1.SelectionService)
62
+ ], MovementKeyTool.prototype, "selectionService", void 0);
63
+ __decorate([
64
+ (0, inversify_1.inject)(types_1.TYPES.ISnapper),
65
+ (0, inversify_1.optional)(),
66
+ __metadata("design:type", Object)
67
+ ], MovementKeyTool.prototype, "snapper", void 0);
68
+ MovementKeyTool = MovementKeyTool_1 = __decorate([
69
+ (0, inversify_1.injectable)()
70
+ ], MovementKeyTool);
71
+ exports.MovementKeyTool = MovementKeyTool;
72
+ class MoveKeyListener extends sprotty_1.KeyListener {
73
+ constructor(tool) {
74
+ super();
75
+ this.tool = tool;
76
+ this.grid = { x: MoveKeyListener.defaultMoveX, y: MoveKeyListener.defaultMoveY };
77
+ if (this.tool.snapper instanceof snap_1.GridSnapper) {
78
+ this.grid = this.tool.snapper.grid;
79
+ }
80
+ }
81
+ keyDown(element, event) {
82
+ const selectedElementIds = this.tool.selectionService.getSelectedElementIDs();
83
+ if (selectedElementIds.length > 0) {
84
+ if (this.matchesMoveUpKeystroke(event)) {
85
+ return [move_handler_1.MoveElementAction.create(selectedElementIds, 0, -this.grid.x)];
86
+ }
87
+ else if (this.matchesMoveDownKeystroke(event)) {
88
+ return [move_handler_1.MoveElementAction.create(selectedElementIds, 0, this.grid.x)];
89
+ }
90
+ else if (this.matchesMoveRightKeystroke(event)) {
91
+ return [move_handler_1.MoveElementAction.create(selectedElementIds, this.grid.x, 0)];
92
+ }
93
+ else if (this.matchesMoveLeftKeystroke(event)) {
94
+ return [move_handler_1.MoveElementAction.create(selectedElementIds, -this.grid.x, 0)];
95
+ }
96
+ }
97
+ else {
98
+ if (this.matchesMoveUpKeystroke(event)) {
99
+ return [move_handler_1.MoveViewportAction.create(0, -this.grid.x)];
100
+ }
101
+ else if (this.matchesMoveDownKeystroke(event)) {
102
+ return [move_handler_1.MoveViewportAction.create(0, this.grid.x)];
103
+ }
104
+ else if (this.matchesMoveRightKeystroke(event)) {
105
+ return [move_handler_1.MoveViewportAction.create(this.grid.x, 0)];
106
+ }
107
+ else if (this.matchesMoveLeftKeystroke(event)) {
108
+ return [move_handler_1.MoveViewportAction.create(-this.grid.x, 0)];
109
+ }
110
+ }
111
+ return [];
112
+ }
113
+ matchesMoveUpKeystroke(event) {
114
+ return (0, keyboard_1.matchesKeystroke)(event, 'ArrowUp');
115
+ }
116
+ matchesMoveDownKeystroke(event) {
117
+ return (0, keyboard_1.matchesKeystroke)(event, 'ArrowDown');
118
+ }
119
+ matchesMoveRightKeystroke(event) {
120
+ return (0, keyboard_1.matchesKeystroke)(event, 'ArrowRight');
121
+ }
122
+ matchesMoveLeftKeystroke(event) {
123
+ return (0, keyboard_1.matchesKeystroke)(event, 'ArrowLeft');
124
+ }
125
+ }
126
+ exports.MoveKeyListener = MoveKeyListener;
127
+ // Default x distance used if GridSnapper is not provided
128
+ MoveKeyListener.defaultMoveX = 20;
129
+ // Default y distance used if GridSnapper is not provided
130
+ MoveKeyListener.defaultMoveY = 20;
131
+ //# sourceMappingURL=movement-key-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"movement-key-tool.js","sourceRoot":"","sources":["../../../../src/features/accessibility/view-key-tools/movement-key-tool.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;AAGlF,yCAAyD;AACzD,qCAAwE;AACxE,yDAA8D;AAE9D,+CAA4C;AAC5C,mDAAuD;AAEvD,sEAAkE;AAClE,4DAAkF;AAElF;;GAEG;AAEI,IAAM,eAAe,uBAArB,MAAM,eAAe;IAArB;QAGH,eAAU,GAAG,IAAI,CAAC;QAEC,wBAAmB,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;IAiBvE,CAAC;IAXG,IAAI,EAAE;QACF,OAAO,iBAAe,CAAC,EAAE,CAAC;IAC9B,CAAC;IAED,MAAM;QACF,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IACpD,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IACtD,CAAC;;AApBM,kBAAE,GAAG,wBAAwB,CAAC;AAMrC;IAAC,IAAA,kBAAM,EAAC,iBAAO,CAAC;8BAA6B,iBAAO;gDAAC;AACrD;IAAC,IAAA,kBAAM,EAAC,aAAK,CAAC,gBAAgB,CAAC;8BAAmB,oCAAgB;yDAAC;AACnE;IAAC,IAAA,kBAAM,EAAC,aAAK,CAAC,QAAQ,CAAC;IAAE,IAAA,oBAAQ,GAAE;;gDAA6B;AATvD,eAA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BAAgB,EAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IAChD,CAAC;;AA1DL,0CA2DC;AA1DG,yDAAyD;AACzC,4BAAY,GAAG,EAAE,CAAC;AAElC,yDAAyD;AACzC,4BAAY,GAAG,EAAE,CAAC"}
@@ -0,0 +1,43 @@
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 { Action } from '@eclipse-glsp/protocol';
17
+ import { KeyListener, KeyTool, SModelElement } from 'sprotty';
18
+ import { GLSPTool } from '../../../base/tool-manager/glsp-tool-manager';
19
+ import { SelectionService } from '../../select/selection-service';
20
+ /**
21
+ * Zoom viewport and elements when its focused and arrow keys are hit.
22
+ */
23
+ export declare class ZoomKeyTool implements GLSPTool {
24
+ static ID: string;
25
+ isEditTool: boolean;
26
+ protected readonly zoomKeyListener: ZoomKeyListener;
27
+ protected readonly keytool: KeyTool;
28
+ selectionService: SelectionService;
29
+ get id(): string;
30
+ enable(): void;
31
+ disable(): void;
32
+ }
33
+ export declare class ZoomKeyListener extends KeyListener {
34
+ protected tool: ZoomKeyTool;
35
+ static readonly defaultZoomInFactor = 1.1;
36
+ static readonly defaultZoomOutFactor = 0.9;
37
+ constructor(tool: ZoomKeyTool);
38
+ keyDown(element: SModelElement, event: KeyboardEvent): Action[];
39
+ protected matchesZoomInKeystroke(event: KeyboardEvent): boolean;
40
+ protected matchesMinZoomLevelKeystroke(event: KeyboardEvent): boolean;
41
+ protected matchesZoomOutKeystroke(event: KeyboardEvent): boolean;
42
+ }
43
+ //# sourceMappingURL=zoom-key-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoom-key-tool.d.ts","sourceRoot":"","sources":["../../../../src/features/accessibility/view-key-tools/zoom-key-tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,MAAM,EAAgB,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE9D,OAAO,EAAE,QAAQ,EAAE,MAAM,8CAA8C,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGlE;;GAEG;AACH,qBACa,WAAY,YAAW,QAAQ;IACxC,MAAM,CAAC,EAAE,SAAwB;IAEjC,UAAU,UAAS;IAEnB,SAAS,CAAC,QAAQ,CAAC,eAAe,kBAA6B;IAE9C,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,gBAAgB,CAAC;IAEnE,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,MAAM,IAAI,IAAI;IAId,OAAO,IAAI,IAAI;CAGlB;AAED,qBAAa,eAAgB,SAAQ,WAAW;IAIhC,SAAS,CAAC,IAAI,EAAE,WAAW;IAHvC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,OAAO;IAC1C,MAAM,CAAC,QAAQ,CAAC,oBAAoB,OAAO;gBAErB,IAAI,EAAE,WAAW;IAI9B,OAAO,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,GAAG,MAAM,EAAE;IAqBxE,SAAS,CAAC,sBAAsB,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO;IAK/D,SAAS,CAAC,4BAA4B,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO;IAIrE,SAAS,CAAC,uBAAuB,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO;CAGnE"}
@@ -0,0 +1,109 @@
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 ZoomKeyTool_1;
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.ZoomKeyListener = exports.ZoomKeyTool = void 0;
29
+ const protocol_1 = require("@eclipse-glsp/protocol");
30
+ const inversify_1 = require("inversify");
31
+ const sprotty_1 = require("sprotty");
32
+ const keyboard_1 = require("sprotty/lib/utils/keyboard");
33
+ const types_1 = require("../../../base/types");
34
+ const selection_service_1 = require("../../select/selection-service");
35
+ const zoom_handler_1 = require("../move-zoom/zoom-handler");
36
+ /**
37
+ * Zoom viewport and elements when its focused and arrow keys are hit.
38
+ */
39
+ let ZoomKeyTool = ZoomKeyTool_1 = class ZoomKeyTool {
40
+ constructor() {
41
+ this.isEditTool = false;
42
+ this.zoomKeyListener = new ZoomKeyListener(this);
43
+ }
44
+ get id() {
45
+ return ZoomKeyTool_1.ID;
46
+ }
47
+ enable() {
48
+ this.keytool.register(this.zoomKeyListener);
49
+ }
50
+ disable() {
51
+ this.keytool.deregister(this.zoomKeyListener);
52
+ }
53
+ };
54
+ ZoomKeyTool.ID = 'glsp.zoom-key-tool';
55
+ __decorate([
56
+ (0, inversify_1.inject)(sprotty_1.KeyTool),
57
+ __metadata("design:type", sprotty_1.KeyTool)
58
+ ], ZoomKeyTool.prototype, "keytool", void 0);
59
+ __decorate([
60
+ (0, inversify_1.inject)(types_1.TYPES.SelectionService),
61
+ __metadata("design:type", selection_service_1.SelectionService)
62
+ ], ZoomKeyTool.prototype, "selectionService", void 0);
63
+ ZoomKeyTool = ZoomKeyTool_1 = __decorate([
64
+ (0, inversify_1.injectable)()
65
+ ], ZoomKeyTool);
66
+ exports.ZoomKeyTool = ZoomKeyTool;
67
+ class ZoomKeyListener extends sprotty_1.KeyListener {
68
+ constructor(tool) {
69
+ super();
70
+ this.tool = tool;
71
+ }
72
+ keyDown(element, event) {
73
+ const selectedElementIds = this.tool.selectionService.getSelectedElementIDs();
74
+ if (this.matchesZoomOutKeystroke(event)) {
75
+ if (selectedElementIds.length > 0) {
76
+ return [zoom_handler_1.ZoomElementAction.create(selectedElementIds, ZoomKeyListener.defaultZoomOutFactor)];
77
+ }
78
+ else {
79
+ return [zoom_handler_1.ZoomViewportAction.create(ZoomKeyListener.defaultZoomOutFactor)];
80
+ }
81
+ }
82
+ else if (this.matchesZoomInKeystroke(event)) {
83
+ if (selectedElementIds.length > 0) {
84
+ return [zoom_handler_1.ZoomElementAction.create(selectedElementIds, ZoomKeyListener.defaultZoomInFactor)];
85
+ }
86
+ else {
87
+ return [zoom_handler_1.ZoomViewportAction.create(ZoomKeyListener.defaultZoomInFactor)];
88
+ }
89
+ }
90
+ else if (this.matchesMinZoomLevelKeystroke(event)) {
91
+ return [protocol_1.CenterAction.create(selectedElementIds)];
92
+ }
93
+ return [];
94
+ }
95
+ matchesZoomInKeystroke(event) {
96
+ /** here event.key is used for '+', as keycode 187 is already declared for 'Equals' in {@link matchesKeystroke}.*/
97
+ return event.key === '+' || (0, keyboard_1.matchesKeystroke)(event, 'NumpadAdd');
98
+ }
99
+ matchesMinZoomLevelKeystroke(event) {
100
+ return (0, keyboard_1.matchesKeystroke)(event, 'Digit0', 'ctrl') || (0, keyboard_1.matchesKeystroke)(event, 'Numpad0', 'ctrl');
101
+ }
102
+ matchesZoomOutKeystroke(event) {
103
+ return (0, keyboard_1.matchesKeystroke)(event, 'Minus') || (0, keyboard_1.matchesKeystroke)(event, 'NumpadSubtract');
104
+ }
105
+ }
106
+ exports.ZoomKeyListener = ZoomKeyListener;
107
+ ZoomKeyListener.defaultZoomInFactor = 1.1;
108
+ ZoomKeyListener.defaultZoomOutFactor = 0.9;
109
+ //# sourceMappingURL=zoom-key-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoom-key-tool.js","sourceRoot":"","sources":["../../../../src/features/accessibility/view-key-tools/zoom-key-tool.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;AAElF,qDAA8D;AAC9D,yCAA+C;AAC/C,qCAA8D;AAC9D,yDAA8D;AAE9D,+CAA4C;AAC5C,sEAAkE;AAClE,4DAAkF;AAElF;;GAEG;AAEI,IAAM,WAAW,mBAAjB,MAAM,WAAW;IAAjB;QAGH,eAAU,GAAG,KAAK,CAAC;QAEA,oBAAe,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;IAgBnE,CAAC;IAXG,IAAI,EAAE;QACF,OAAO,aAAW,CAAC,EAAE,CAAC;IAC1B,CAAC;IAED,MAAM;QACF,IAAI,CAAC,OAAO,CAAC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AAM,CAAC,eAAe,CAAC,mBAAmB,CAAC,CAAC,CAAC;aAC3E;SACJ;aAAM,IAAI,IAAI,CAAC,4BAA4B,CAAC,KAAK,CAAC,EAAE;YACjD,OAAO,CAAC,uBAAY,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC;SACpD;QACD,OAAO,EAAE,CAAC;IACd,CAAC;IAES,sBAAsB,CAAC,KAAoB;QACjD,kHAAkH;QAClH,OAAO,KAAK,CAAC,GAAG,KAAK,GAAG,IAAI,IAAA,2BAAgB,EAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IACrE,CAAC;IAES,4BAA4B,CAAC,KAAoB;QACvD,OAAO,IAAA,2BAAgB,EAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,IAAI,IAAA,2BAAgB,EAAC,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACnG,CAAC;IAES,uBAAuB,CAAC,KAAoB;QAClD,OAAO,IAAA,2BAAgB,EAAC,KAAK,EAAE,OAAO,CAAC,IAAI,IAAA,2BAAgB,EAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;IACzF,CAAC;;AAxCL,0CAyCC;AAxCmB,mCAAmB,GAAG,GAAG,CAAC;AAC1B,oCAAoB,GAAG,GAAG,CAAC"}
@@ -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 { LabeledAction, SModelElement, SModelRoot } from 'sprotty';
17
+ /**
18
+ * Interface for a provider that provides suggestions that can be used to fill the autocomplete
19
+ */
20
+ export interface IAutocompleteSuggestionProvider {
21
+ /**
22
+ * Returns the suggestions based on the provided parameters.
23
+ * @param root: The root model
24
+ * @param text: The text input provided by the user.
25
+ */
26
+ retrieveSuggestions(root: Readonly<SModelRoot>, text: string): Promise<AutocompleteSuggestion[]>;
27
+ }
28
+ /**
29
+ * Interface for autocomplete suggestions.
30
+ */
31
+ export interface AutocompleteSuggestion {
32
+ element: SModelElement;
33
+ action: LabeledAction;
34
+ }
35
+ //# sourceMappingURL=autocomplete-suggestion-providers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autocomplete-suggestion-providers.d.ts","sourceRoot":"","sources":["../../../src/features/autocomplete-palette/autocomplete-suggestion-providers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C;;;;OAIG;IACH,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAAC;CACpG;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,aAAa,CAAC;CACzB"}
@@ -1,5 +1,6 @@
1
+ "use strict";
1
2
  /********************************************************************************
2
- * Copyright (c) 2021 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,5 +14,5 @@
13
14
  *
14
15
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
16
  ********************************************************************************/
16
- export {};
17
- //# sourceMappingURL=marquee-behavior.spec.d.ts.map
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ //# sourceMappingURL=autocomplete-suggestion-providers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autocomplete-suggestion-providers.js","sourceRoot":"","sources":["../../../src/features/autocomplete-palette/autocomplete-suggestion-providers.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF"}
@@ -0,0 +1,41 @@
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 { Action } from '@eclipse-glsp/protocol';
17
+ import { AbstractUIExtension, LabeledAction, SModelRoot } from 'sprotty';
18
+ import '../../../css/autocomplete-palette.css';
19
+ import { GLSPActionDispatcher } from '../../base/action-dispatcher';
20
+ import { AutoCompleteWidget, CloseReason } from '../../base/auto-complete/auto-complete-widget';
21
+ export declare abstract class BaseAutocompletePalette extends AbstractUIExtension {
22
+ protected readonly autoSuggestionSettings: {
23
+ noSuggestionsMessage: string;
24
+ suggestionsClass: string;
25
+ debounceWaitMs: number;
26
+ showOnFocus: boolean;
27
+ };
28
+ protected root?: Readonly<SModelRoot>;
29
+ protected autocompleteWidget: AutoCompleteWidget;
30
+ protected actionDispatcher: GLSPActionDispatcher;
31
+ containerClass(): string;
32
+ show(root: Readonly<SModelRoot>, ...contextElementIds: string[]): void;
33
+ hide(): void;
34
+ protected initializeContents(containerElement: HTMLElement): void;
35
+ protected abstract retrieveSuggestions(root: Readonly<SModelRoot>, input: string): Promise<LabeledAction[]>;
36
+ protected visibleSuggestionsChanged(root: Readonly<SModelRoot>, labeledActions: LabeledAction[]): Promise<void>;
37
+ protected selectedSuggestionChanged(root: Readonly<SModelRoot>, labeledAction?: LabeledAction): Promise<void>;
38
+ protected autocompleteHide(reason: CloseReason): void;
39
+ protected executeSuggestion(input: LabeledAction | Action[] | Action): void;
40
+ }
41
+ //# sourceMappingURL=base-autocomplete-palette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-autocomplete-palette.d.ts","sourceRoot":"","sources":["../../../src/features/autocomplete-palette/base-autocomplete-palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,UAAU,EAAS,MAAM,SAAS,CAAC;AAChF,OAAO,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAiB,MAAM,+CAA+C,CAAC;AAE/G,8BAAsB,uBAAwB,SAAQ,mBAAmB;IACrE,SAAS,CAAC,QAAQ,CAAC,sBAAsB;;;;;MAKvC;IAEF,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;IACtC,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAGjD,SAAS,CAAC,gBAAgB,EAAE,oBAAoB,CAAC;IAEjD,cAAc,IAAI,MAAM;IAIf,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,GAAG,iBAAiB,EAAE,MAAM,EAAE,GAAG,IAAI;IAMtE,IAAI,IAAI,IAAI;IAMrB,SAAS,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,WAAW,GAAG,IAAI;IAiBjE,SAAS,CAAC,QAAQ,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;cAE3F,yBAAyB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;cAIrG,yBAAyB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAInH,SAAS,CAAC,gBAAgB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAIrD,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI;CAG9E"}
@@ -0,0 +1,82 @@
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.BaseAutocompletePalette = void 0;
28
+ const inversify_1 = require("inversify");
29
+ const sprotty_1 = require("sprotty");
30
+ require("../../../css/autocomplete-palette.css");
31
+ const action_dispatcher_1 = require("../../base/action-dispatcher");
32
+ const auto_complete_widget_1 = require("../../base/auto-complete/auto-complete-widget");
33
+ class BaseAutocompletePalette extends sprotty_1.AbstractUIExtension {
34
+ constructor() {
35
+ super(...arguments);
36
+ this.autoSuggestionSettings = {
37
+ noSuggestionsMessage: 'No suggestions available',
38
+ suggestionsClass: 'command-palette-suggestions',
39
+ debounceWaitMs: 50,
40
+ showOnFocus: true
41
+ };
42
+ }
43
+ containerClass() {
44
+ return 'autocomplete-palette';
45
+ }
46
+ show(root, ...contextElementIds) {
47
+ super.show(root, ...contextElementIds);
48
+ this.root = root;
49
+ this.autocompleteWidget.open(root);
50
+ }
51
+ hide() {
52
+ this.autocompleteWidget.dispose();
53
+ this.root = undefined;
54
+ super.hide();
55
+ }
56
+ initializeContents(containerElement) {
57
+ containerElement.classList.add('command-palette');
58
+ this.autocompleteWidget = new auto_complete_widget_1.AutoCompleteWidget(this.autoSuggestionSettings, { provideSuggestions: input => this.retrieveSuggestions(this.root, input) }, { executeFromSuggestion: input => this.executeSuggestion(input) }, reason => this.autocompleteHide(reason), this.logger, {
59
+ visibleSuggestionsChanged: suggestions => this.visibleSuggestionsChanged(this.root, suggestions),
60
+ selectedSuggestionChanged: suggestion => this.selectedSuggestionChanged(this.root, suggestion)
61
+ });
62
+ this.autocompleteWidget.initialize(containerElement);
63
+ }
64
+ async visibleSuggestionsChanged(root, labeledActions) {
65
+ return;
66
+ }
67
+ async selectedSuggestionChanged(root, labeledAction) {
68
+ return;
69
+ }
70
+ autocompleteHide(reason) {
71
+ this.hide();
72
+ }
73
+ executeSuggestion(input) {
74
+ this.actionDispatcher.dispatchAll((0, auto_complete_widget_1.toActionArray)(input));
75
+ }
76
+ }
77
+ __decorate([
78
+ (0, inversify_1.inject)(sprotty_1.TYPES.IActionDispatcher),
79
+ __metadata("design:type", action_dispatcher_1.GLSPActionDispatcher)
80
+ ], BaseAutocompletePalette.prototype, "actionDispatcher", void 0);
81
+ exports.BaseAutocompletePalette = BaseAutocompletePalette;
82
+ //# sourceMappingURL=base-autocomplete-palette.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-autocomplete-palette.js","sourceRoot":"","sources":["../../../src/features/autocomplete-palette/base-autocomplete-palette.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAGlF,yCAAmC;AACnC,qCAAgF;AAChF,iDAA+C;AAC/C,oEAAoE;AACpE,wFAA+G;AAE/G,MAAsB,uBAAwB,SAAQ,6BAAmB;IAAzE;;QACuB,2BAAsB,GAAG;YACxC,oBAAoB,EAAE,0BAA0B;YAChD,gBAAgB,EAAE,6BAA6B;YAC/C,cAAc,EAAE,EAAE;YAClB,WAAW,EAAE,IAAI;SACpB,CAAC;IA0DN,CAAC;IAlDG,cAAc;QACV,OAAO,sBAAsB,CAAC;IAClC,CAAC;IAEQ,IAAI,CAAC,IAA0B,EAAE,GAAG,iBAA2B;QACpE,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,iBAAiB,CAAC,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAEQ,IAAI;QACT,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;QACtB,KAAK,CAA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,CAAC;8BACJ,wCAAoB;iEAAC;AAZrD,0DAgEC"}
@@ -1,20 +1,4 @@
1
- /********************************************************************************
2
- * Copyright (c) 2022 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
1
  import { ContainerModule } from 'inversify';
17
- import '../../../css/command-palette.css';
18
2
  declare const glspBoundsModule: ContainerModule;
19
3
  export default glspBoundsModule;
20
4
  //# sourceMappingURL=di.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/bounds/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAK5C,OAAO,kCAAkC,CAAC;AAI1C,QAAA,MAAM,gBAAgB,iBAYpB,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/bounds/di.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAkB5C,QAAA,MAAM,gBAAgB,iBAYpB,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /********************************************************************************
4
- * Copyright (c) 2022 EclipseSource and others.
4
+ * Copyright (c) 2022-2023 EclipseSource and others.
5
5
  *
6
6
  * This program and the accompanying materials are made available under the
7
7
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -15,22 +15,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  *
16
16
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
17
17
  ********************************************************************************/
18
+ const protocol_1 = require("@eclipse-glsp/protocol");
18
19
  const inversify_1 = require("inversify");
19
20
  const sprotty_1 = require("sprotty");
20
- require("../../../css/command-palette.css");
21
21
  const types_1 = require("../../base/types");
22
+ const freeform_layout_1 = require("./freeform-layout");
22
23
  const glsp_hidden_bounds_updater_1 = require("./glsp-hidden-bounds-updater");
24
+ const hbox_layout_1 = require("./hbox-layout");
25
+ const vbox_layout_1 = require("./vbox-layout");
23
26
  const glspBoundsModule = new inversify_1.ContainerModule((bind, _unbind, isBound, _rebind) => {
24
- (0, sprotty_1.configureCommand)({ bind, isBound }, sprotty_1.SetBoundsCommand);
25
- (0, sprotty_1.configureCommand)({ bind, isBound }, sprotty_1.RequestBoundsCommand);
27
+ const context = { bind, isBound };
28
+ (0, sprotty_1.configureCommand)(context, sprotty_1.SetBoundsCommand);
29
+ (0, sprotty_1.configureCommand)(context, sprotty_1.RequestBoundsCommand);
26
30
  bind(sprotty_1.HiddenBoundsUpdater).toSelf().inSingletonScope();
27
- bind(glsp_hidden_bounds_updater_1.GLSPHiddenBoundsUpdater).toSelf().inSingletonScope();
28
- bind(types_1.TYPES.HiddenVNodePostprocessor).toService(glsp_hidden_bounds_updater_1.GLSPHiddenBoundsUpdater);
31
+ (0, protocol_1.bindAsService)(context, types_1.TYPES.HiddenVNodePostprocessor, glsp_hidden_bounds_updater_1.GLSPHiddenBoundsUpdater);
29
32
  bind(types_1.TYPES.Layouter).to(sprotty_1.Layouter).inSingletonScope();
30
33
  bind(types_1.TYPES.LayoutRegistry).to(sprotty_1.LayoutRegistry).inSingletonScope();
31
- (0, sprotty_1.configureLayout)({ bind, isBound }, sprotty_1.VBoxLayouter.KIND, sprotty_1.VBoxLayouter);
32
- (0, sprotty_1.configureLayout)({ bind, isBound }, sprotty_1.HBoxLayouter.KIND, sprotty_1.HBoxLayouter);
33
- (0, sprotty_1.configureLayout)({ bind, isBound }, sprotty_1.StackLayouter.KIND, sprotty_1.StackLayouter);
34
+ (0, sprotty_1.configureLayout)(context, sprotty_1.VBoxLayouter.KIND, vbox_layout_1.VBoxLayouterExt);
35
+ (0, sprotty_1.configureLayout)(context, sprotty_1.HBoxLayouter.KIND, hbox_layout_1.HBoxLayouterExt);
36
+ (0, sprotty_1.configureLayout)(context, freeform_layout_1.FreeFormLayouter.KIND, freeform_layout_1.FreeFormLayouter);
34
37
  });
35
38
  exports.default = glspBoundsModule;
36
39
  //# sourceMappingURL=di.config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/bounds/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,qCAGiB;AACjB,4CAA0C;AAC1C,4CAAyC;AACzC,6EAAuE;AAEvE,MAAM,gBAAgB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IAC7E,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,0BAAgB,CAAC,CAAC;IACtD,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,8BAAoB,CAAC,CAAC;IAC1D,IAAI,CAAC,6BAAmB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACtD,IAAI,CAAC,oDAAuB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC1D,IAAI,CAAC,aAAK,CAAC,wBAAwB,CAAC,CAAC,SAAS,CAAC,oDAAuB,CAAC,CAAC;IACxE,IAAI,CAAC,aAAK,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,kBAAQ,CAAC,C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kBAAQ,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACrD,IAAI,CAAC,aAAK,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,wBAAc,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAEjE,IAAA,yBAAe,EAAC,OAAO,EAAE,sBAAY,CAAC,IAAI,EAAE,6BAAe,CAAC,CAAC;IAC7D,IAAA,yBAAe,EAAC,OAAO,EAAE,sBAAY,CAAC,IAAI,EAAE,6BAAe,CAAC,CAAC;IAC7D,IAAA,yBAAe,EAAC,OAAO,EAAE,kCAAgB,CAAC,IAAI,EAAE,kCAAgB,CAAC,CAAC;AACtE,CAAC,CAAC,CAAC;AAEH,kBAAe,gBAAgB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /********************************************************************************
2
- * Copyright (c) 2021-2022 EclipseSource and others.
2
+ * Copyright (c) 2021-2023 EclipseSource and others.
3
3
  *
4
4
  * This program and the accompanying materials are made available under the
5
5
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -18,7 +18,7 @@ import { BoundsData, LayoutContainer, SChildElement, SParentElement, StatefulLay
18
18
  import { AbstractLayout } from 'sprotty/lib/features/bounds/abstract-layout';
19
19
  import { AbstractLayoutOptions } from 'sprotty/lib/features/bounds/layout-options';
20
20
  /**
21
- * Layouts children of a container with explit X/Y positions
21
+ * Layouts children of a container with explicit X/Y positions
22
22
  */
23
23
  export declare class FreeFormLayouter extends AbstractLayout<AbstractLayoutOptions> {
24
24
  static KIND: string;
@@ -1 +1 @@
1
- {"version":3,"file":"freeform-layout.d.ts","sourceRoot":"","sources":["../../../src/features/layout/freeform-layout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACvG,OAA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MAAM,SAAS,CAAC;AACvG,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAEnF;;GAEG;AACH,qBACa,gBAAiB,SAAQ,cAAc,CAAC,qBAAqB,CAAC;IACvE,MAAM,CAAC,IAAI,SAAc;IAEhB,MAAM,CAAC,SAAS,EAAE,cAAc,GAAG,eAAe,EAAE,QAAQ,EAAE,gBAAgB,GAAG,IAAI;IAoB9F,SAAS,CAAC,eAAe,CACrB,SAAS,EAAE,cAAc,GAAG,eAAe,EAC3C,gBAAgB,EAAE,qBAAqB,EACvC,QAAQ,EAAE,gBAAgB,GAC3B,SAAS;IAkBZ,SAAS,CAAC,WAAW,CACjB,KAAK,EAAE,aAAa,EACpB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,qBAAqB,EACnC,gBAAgB,EAAE,qBAAqB,EACvC,aAAa,EAAE,KAAK,EACpB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAClB,KAAK;cAWW,uBAAuB,CACtC,SAAS,EAAE,cAAc,GAAG,eAAe,EAC3C,UAAU,EAAE,KAAK,EACjB,OAAO,EAAE,qBAAqB,EAC9B,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAClB,MAAM;IAWT,SAAS,CAAC,uBAAuB,IAAI,qBAAqB;IAa1D,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,qBAAqB,EAAE,CAAC,EAAE,qBAAqB,GAAG,qBAAqB;CAG9F"}
@@ -8,7 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.FreeFormLayouter = void 0;
10
10
  /********************************************************************************
11
- * Copyright (c) 2021-2022 EclipseSource and others.
11
+ * Copyright (c) 2021-2023 EclipseSource and others.
12
12
  *
13
13
  * This program and the accompanying materials are made available under the
14
14
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -26,7 +26,7 @@ const protocol_1 = require("@eclipse-glsp/protocol");
26
26
  const inversify_1 = require("inversify");
27
27
  const abstract_layout_1 = require("sprotty/lib/features/bounds/abstract-layout");
28
28
  /**
29
- * Layouts children of a container with explit X/Y positions
29
+ * Layouts children of a container with explicit X/Y positions
30
30
  */
31
31
  let FreeFormLayouter = class FreeFormLayouter extends abstract_layout_1.AbstractLayout {
32
32
  layout(container, layouter) {