@eclipse-glsp/client 2.2.0-next.353 → 2.2.0-next.354

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 (301) hide show
  1. package/css/glsp-sprotty.css +0 -9
  2. package/lib/base/action-dispatcher.d.ts +13 -2
  3. package/lib/base/action-dispatcher.d.ts.map +1 -1
  4. package/lib/base/action-dispatcher.js +19 -0
  5. package/lib/base/action-dispatcher.js.map +1 -1
  6. package/lib/base/command-stack.d.ts.map +1 -1
  7. package/lib/base/command-stack.js +5 -4
  8. package/lib/base/command-stack.js.map +1 -1
  9. package/lib/base/default.module.d.ts.map +1 -1
  10. package/lib/base/default.module.js +1 -0
  11. package/lib/base/default.module.js.map +1 -1
  12. package/lib/features/helper-lines/helper-line-feedback.d.ts +2 -2
  13. package/package.json +3 -3
  14. package/src/base/action-dispatcher.ts +26 -2
  15. package/src/base/command-stack.ts +6 -4
  16. package/src/base/default.module.ts +1 -0
  17. package/lib/base/action-dispatcher.spec.d.ts +0 -2
  18. package/lib/base/action-dispatcher.spec.d.ts.map +0 -1
  19. package/lib/base/action-dispatcher.spec.js +0 -78
  20. package/lib/base/action-dispatcher.spec.js.map +0 -1
  21. package/lib/base/auto-complete/index.d.ts +0 -21
  22. package/lib/base/auto-complete/index.d.ts.map +0 -1
  23. package/lib/base/auto-complete/index.js +0 -37
  24. package/lib/base/auto-complete/index.js.map +0 -1
  25. package/lib/base/feedback/index.d.ts +0 -20
  26. package/lib/base/feedback/index.d.ts.map +0 -1
  27. package/lib/base/feedback/index.js +0 -36
  28. package/lib/base/feedback/index.js.map +0 -1
  29. package/lib/base/focus/index.d.ts +0 -18
  30. package/lib/base/focus/index.d.ts.map +0 -1
  31. package/lib/base/focus/index.js +0 -34
  32. package/lib/base/focus/index.js.map +0 -1
  33. package/lib/base/index.d.ts +0 -32
  34. package/lib/base/index.d.ts.map +0 -1
  35. package/lib/base/index.js +0 -48
  36. package/lib/base/index.js.map +0 -1
  37. package/lib/base/model/index.d.ts +0 -20
  38. package/lib/base/model/index.d.ts.map +0 -1
  39. package/lib/base/model/index.js +0 -36
  40. package/lib/base/model/index.js.map +0 -1
  41. package/lib/base/model/model-initialization-constraint.spec.d.ts +0 -2
  42. package/lib/base/model/model-initialization-constraint.spec.d.ts.map +0 -1
  43. package/lib/base/model/model-initialization-constraint.spec.js +0 -97
  44. package/lib/base/model/model-initialization-constraint.spec.js.map +0 -1
  45. package/lib/base/selection-service.spec.d.ts +0 -2
  46. package/lib/base/selection-service.spec.d.ts.map +0 -1
  47. package/lib/base/selection-service.spec.js +0 -283
  48. package/lib/base/selection-service.spec.js.map +0 -1
  49. package/lib/base/tool-manager/index.d.ts +0 -18
  50. package/lib/base/tool-manager/index.d.ts.map +0 -1
  51. package/lib/base/tool-manager/index.js +0 -34
  52. package/lib/base/tool-manager/index.js.map +0 -1
  53. package/lib/base/view/index.d.ts +0 -19
  54. package/lib/base/view/index.d.ts.map +0 -1
  55. package/lib/base/view/index.js +0 -35
  56. package/lib/base/view/index.js.map +0 -1
  57. package/lib/features/accessibility/edge-autocomplete/index.d.ts +0 -20
  58. package/lib/features/accessibility/edge-autocomplete/index.d.ts.map +0 -1
  59. package/lib/features/accessibility/edge-autocomplete/index.js +0 -36
  60. package/lib/features/accessibility/edge-autocomplete/index.js.map +0 -1
  61. package/lib/features/accessibility/element-navigation/index.d.ts +0 -22
  62. package/lib/features/accessibility/element-navigation/index.d.ts.map +0 -1
  63. package/lib/features/accessibility/element-navigation/index.js +0 -38
  64. package/lib/features/accessibility/element-navigation/index.js.map +0 -1
  65. package/lib/features/accessibility/focus-tracker/index.d.ts +0 -18
  66. package/lib/features/accessibility/focus-tracker/index.d.ts.map +0 -1
  67. package/lib/features/accessibility/focus-tracker/index.js +0 -34
  68. package/lib/features/accessibility/focus-tracker/index.js.map +0 -1
  69. package/lib/features/accessibility/index.d.ts +0 -31
  70. package/lib/features/accessibility/index.d.ts.map +0 -1
  71. package/lib/features/accessibility/index.js +0 -47
  72. package/lib/features/accessibility/index.js.map +0 -1
  73. package/lib/features/accessibility/key-shortcut/di.config.d.ts +0 -24
  74. package/lib/features/accessibility/key-shortcut/di.config.d.ts.map +0 -1
  75. package/lib/features/accessibility/key-shortcut/di.config.js +0 -37
  76. package/lib/features/accessibility/key-shortcut/di.config.js.map +0 -1
  77. package/lib/features/accessibility/key-shortcut/index.d.ts +0 -19
  78. package/lib/features/accessibility/key-shortcut/index.d.ts.map +0 -1
  79. package/lib/features/accessibility/key-shortcut/index.js +0 -35
  80. package/lib/features/accessibility/key-shortcut/index.js.map +0 -1
  81. package/lib/features/accessibility/keyboard-grid/index.d.ts +0 -21
  82. package/lib/features/accessibility/keyboard-grid/index.d.ts.map +0 -1
  83. package/lib/features/accessibility/keyboard-grid/index.js +0 -37
  84. package/lib/features/accessibility/keyboard-grid/index.js.map +0 -1
  85. package/lib/features/accessibility/keyboard-pointer/index.d.ts +0 -22
  86. package/lib/features/accessibility/keyboard-pointer/index.d.ts.map +0 -1
  87. package/lib/features/accessibility/keyboard-pointer/index.js +0 -38
  88. package/lib/features/accessibility/keyboard-pointer/index.js.map +0 -1
  89. package/lib/features/accessibility/keyboard-tool-palette/index.d.ts +0 -18
  90. package/lib/features/accessibility/keyboard-tool-palette/index.d.ts.map +0 -1
  91. package/lib/features/accessibility/keyboard-tool-palette/index.js +0 -34
  92. package/lib/features/accessibility/keyboard-tool-palette/index.js.map +0 -1
  93. package/lib/features/accessibility/move-zoom/index.d.ts +0 -19
  94. package/lib/features/accessibility/move-zoom/index.d.ts.map +0 -1
  95. package/lib/features/accessibility/move-zoom/index.js +0 -35
  96. package/lib/features/accessibility/move-zoom/index.js.map +0 -1
  97. package/lib/features/accessibility/resize-key-tool/index.d.ts +0 -19
  98. package/lib/features/accessibility/resize-key-tool/index.d.ts.map +0 -1
  99. package/lib/features/accessibility/resize-key-tool/index.js +0 -35
  100. package/lib/features/accessibility/resize-key-tool/index.js.map +0 -1
  101. package/lib/features/accessibility/search/index.d.ts +0 -19
  102. package/lib/features/accessibility/search/index.d.ts.map +0 -1
  103. package/lib/features/accessibility/search/index.js +0 -35
  104. package/lib/features/accessibility/search/index.js.map +0 -1
  105. package/lib/features/accessibility/toast/index.d.ts +0 -19
  106. package/lib/features/accessibility/toast/index.d.ts.map +0 -1
  107. package/lib/features/accessibility/toast/index.js +0 -35
  108. package/lib/features/accessibility/toast/index.js.map +0 -1
  109. package/lib/features/accessibility/view-key-tools/index.d.ts +0 -20
  110. package/lib/features/accessibility/view-key-tools/index.d.ts.map +0 -1
  111. package/lib/features/accessibility/view-key-tools/index.js +0 -36
  112. package/lib/features/accessibility/view-key-tools/index.js.map +0 -1
  113. package/lib/features/bounds/freeform-layout.spec.d.ts +0 -3
  114. package/lib/features/bounds/freeform-layout.spec.d.ts.map +0 -1
  115. package/lib/features/bounds/freeform-layout.spec.js +0 -201
  116. package/lib/features/bounds/freeform-layout.spec.js.map +0 -1
  117. package/lib/features/bounds/hbox-layout.spec.d.ts +0 -3
  118. package/lib/features/bounds/hbox-layout.spec.d.ts.map +0 -1
  119. package/lib/features/bounds/hbox-layout.spec.js +0 -160
  120. package/lib/features/bounds/hbox-layout.spec.js.map +0 -1
  121. package/lib/features/bounds/index.d.ts +0 -24
  122. package/lib/features/bounds/index.d.ts.map +0 -1
  123. package/lib/features/bounds/index.js +0 -40
  124. package/lib/features/bounds/index.js.map +0 -1
  125. package/lib/features/bounds/layouter-test-util.spec.d.ts +0 -32
  126. package/lib/features/bounds/layouter-test-util.spec.d.ts.map +0 -1
  127. package/lib/features/bounds/layouter-test-util.spec.js +0 -96
  128. package/lib/features/bounds/layouter-test-util.spec.js.map +0 -1
  129. package/lib/features/bounds/vbox-layout.spec.d.ts +0 -3
  130. package/lib/features/bounds/vbox-layout.spec.d.ts.map +0 -1
  131. package/lib/features/bounds/vbox-layout.spec.js +0 -160
  132. package/lib/features/bounds/vbox-layout.spec.js.map +0 -1
  133. package/lib/features/change-bounds/index.d.ts +0 -21
  134. package/lib/features/change-bounds/index.d.ts.map +0 -1
  135. package/lib/features/change-bounds/index.js +0 -37
  136. package/lib/features/change-bounds/index.js.map +0 -1
  137. package/lib/features/change-bounds/snap.spec.d.ts +0 -17
  138. package/lib/features/change-bounds/snap.spec.d.ts.map +0 -1
  139. package/lib/features/change-bounds/snap.spec.js +0 -83
  140. package/lib/features/change-bounds/snap.spec.js.map +0 -1
  141. package/lib/features/command-palette/index.d.ts +0 -19
  142. package/lib/features/command-palette/index.d.ts.map +0 -1
  143. package/lib/features/command-palette/index.js +0 -35
  144. package/lib/features/command-palette/index.js.map +0 -1
  145. package/lib/features/context-menu/index.d.ts +0 -20
  146. package/lib/features/context-menu/index.d.ts.map +0 -1
  147. package/lib/features/context-menu/index.js +0 -36
  148. package/lib/features/context-menu/index.js.map +0 -1
  149. package/lib/features/copy-paste/index.d.ts +0 -20
  150. package/lib/features/copy-paste/index.d.ts.map +0 -1
  151. package/lib/features/copy-paste/index.js +0 -36
  152. package/lib/features/copy-paste/index.js.map +0 -1
  153. package/lib/features/decoration/index.d.ts +0 -18
  154. package/lib/features/decoration/index.d.ts.map +0 -1
  155. package/lib/features/decoration/index.js +0 -34
  156. package/lib/features/decoration/index.js.map +0 -1
  157. package/lib/features/element-template/index.d.ts +0 -20
  158. package/lib/features/element-template/index.d.ts.map +0 -1
  159. package/lib/features/element-template/index.js +0 -36
  160. package/lib/features/element-template/index.js.map +0 -1
  161. package/lib/features/export/index.d.ts +0 -19
  162. package/lib/features/export/index.d.ts.map +0 -1
  163. package/lib/features/export/index.js +0 -35
  164. package/lib/features/export/index.js.map +0 -1
  165. package/lib/features/helper-lines/index.d.ts +0 -22
  166. package/lib/features/helper-lines/index.d.ts.map +0 -1
  167. package/lib/features/helper-lines/index.js +0 -38
  168. package/lib/features/helper-lines/index.js.map +0 -1
  169. package/lib/features/hints/index.d.ts +0 -19
  170. package/lib/features/hints/index.d.ts.map +0 -1
  171. package/lib/features/hints/index.js +0 -35
  172. package/lib/features/hints/index.js.map +0 -1
  173. package/lib/features/hints/type-hint-provider.spec.d.ts +0 -2
  174. package/lib/features/hints/type-hint-provider.spec.d.ts.map +0 -1
  175. package/lib/features/hints/type-hint-provider.spec.js +0 -333
  176. package/lib/features/hints/type-hint-provider.spec.js.map +0 -1
  177. package/lib/features/hover/index.d.ts +0 -18
  178. package/lib/features/hover/index.d.ts.map +0 -1
  179. package/lib/features/hover/index.js +0 -34
  180. package/lib/features/hover/index.js.map +0 -1
  181. package/lib/features/index.d.ts +0 -43
  182. package/lib/features/index.d.ts.map +0 -1
  183. package/lib/features/index.js +0 -59
  184. package/lib/features/index.js.map +0 -1
  185. package/lib/features/label-edit/index.d.ts +0 -19
  186. package/lib/features/label-edit/index.d.ts.map +0 -1
  187. package/lib/features/label-edit/index.js +0 -35
  188. package/lib/features/label-edit/index.js.map +0 -1
  189. package/lib/features/layout/index.d.ts +0 -18
  190. package/lib/features/layout/index.d.ts.map +0 -1
  191. package/lib/features/layout/index.js +0 -34
  192. package/lib/features/layout/index.js.map +0 -1
  193. package/lib/features/layout/layout-elements-action.spec.d.ts +0 -3
  194. package/lib/features/layout/layout-elements-action.spec.d.ts.map +0 -1
  195. package/lib/features/layout/layout-elements-action.spec.js +0 -329
  196. package/lib/features/layout/layout-elements-action.spec.js.map +0 -1
  197. package/lib/features/navigation/index.d.ts +0 -19
  198. package/lib/features/navigation/index.d.ts.map +0 -1
  199. package/lib/features/navigation/index.js +0 -35
  200. package/lib/features/navigation/index.js.map +0 -1
  201. package/lib/features/navigation/navigation-target-resolver.spec.d.ts +0 -3
  202. package/lib/features/navigation/navigation-target-resolver.spec.d.ts.map +0 -1
  203. package/lib/features/navigation/navigation-target-resolver.spec.js +0 -53
  204. package/lib/features/navigation/navigation-target-resolver.spec.js.map +0 -1
  205. package/lib/features/reconnect/index.d.ts +0 -17
  206. package/lib/features/reconnect/index.d.ts.map +0 -1
  207. package/lib/features/reconnect/index.js +0 -33
  208. package/lib/features/reconnect/index.js.map +0 -1
  209. package/lib/features/routing/glsp-manhattan-edge-router.d.ts +0 -20
  210. package/lib/features/routing/glsp-manhattan-edge-router.d.ts.map +0 -1
  211. package/lib/features/routing/glsp-manhattan-edge-router.js +0 -68
  212. package/lib/features/routing/glsp-manhattan-edge-router.js.map +0 -1
  213. package/lib/features/routing/index.d.ts +0 -18
  214. package/lib/features/routing/index.d.ts.map +0 -1
  215. package/lib/features/routing/index.js +0 -34
  216. package/lib/features/routing/index.js.map +0 -1
  217. package/lib/features/save/index.d.ts +0 -18
  218. package/lib/features/save/index.d.ts.map +0 -1
  219. package/lib/features/save/index.js +0 -34
  220. package/lib/features/save/index.js.map +0 -1
  221. package/lib/features/select/index.d.ts +0 -19
  222. package/lib/features/select/index.d.ts.map +0 -1
  223. package/lib/features/select/index.js +0 -35
  224. package/lib/features/select/index.js.map +0 -1
  225. package/lib/features/source-model-watcher/index.d.ts +0 -18
  226. package/lib/features/source-model-watcher/index.d.ts.map +0 -1
  227. package/lib/features/source-model-watcher/index.js +0 -34
  228. package/lib/features/source-model-watcher/index.js.map +0 -1
  229. package/lib/features/status/index.d.ts +0 -18
  230. package/lib/features/status/index.d.ts.map +0 -1
  231. package/lib/features/status/index.js +0 -34
  232. package/lib/features/status/index.js.map +0 -1
  233. package/lib/features/svg-metadata/index.d.ts +0 -18
  234. package/lib/features/svg-metadata/index.d.ts.map +0 -1
  235. package/lib/features/svg-metadata/index.js +0 -34
  236. package/lib/features/svg-metadata/index.js.map +0 -1
  237. package/lib/features/tool-palette/index.d.ts +0 -18
  238. package/lib/features/tool-palette/index.d.ts.map +0 -1
  239. package/lib/features/tool-palette/index.js +0 -34
  240. package/lib/features/tool-palette/index.js.map +0 -1
  241. package/lib/features/tools/change-bounds/index.d.ts +0 -20
  242. package/lib/features/tools/change-bounds/index.d.ts.map +0 -1
  243. package/lib/features/tools/change-bounds/index.js +0 -36
  244. package/lib/features/tools/change-bounds/index.js.map +0 -1
  245. package/lib/features/tools/deletion/index.d.ts +0 -18
  246. package/lib/features/tools/deletion/index.d.ts.map +0 -1
  247. package/lib/features/tools/deletion/index.js +0 -34
  248. package/lib/features/tools/deletion/index.js.map +0 -1
  249. package/lib/features/tools/edge-creation/index.d.ts +0 -21
  250. package/lib/features/tools/edge-creation/index.d.ts.map +0 -1
  251. package/lib/features/tools/edge-creation/index.js +0 -37
  252. package/lib/features/tools/edge-creation/index.js.map +0 -1
  253. package/lib/features/tools/edge-edit/index.d.ts +0 -19
  254. package/lib/features/tools/edge-edit/index.d.ts.map +0 -1
  255. package/lib/features/tools/edge-edit/index.js +0 -35
  256. package/lib/features/tools/edge-edit/index.js.map +0 -1
  257. package/lib/features/tools/index.d.ts +0 -24
  258. package/lib/features/tools/index.d.ts.map +0 -1
  259. package/lib/features/tools/index.js +0 -40
  260. package/lib/features/tools/index.js.map +0 -1
  261. package/lib/features/tools/marquee-selection/index.d.ts +0 -23
  262. package/lib/features/tools/marquee-selection/index.d.ts.map +0 -1
  263. package/lib/features/tools/marquee-selection/index.js +0 -39
  264. package/lib/features/tools/marquee-selection/index.js.map +0 -1
  265. package/lib/features/tools/marquee-selection/marquee-behavior.spec.d.ts +0 -17
  266. package/lib/features/tools/marquee-selection/marquee-behavior.spec.d.ts.map +0 -1
  267. package/lib/features/tools/marquee-selection/marquee-behavior.spec.js +0 -165
  268. package/lib/features/tools/marquee-selection/marquee-behavior.spec.js.map +0 -1
  269. package/lib/features/tools/node-creation/index.d.ts +0 -18
  270. package/lib/features/tools/node-creation/index.d.ts.map +0 -1
  271. package/lib/features/tools/node-creation/index.js +0 -34
  272. package/lib/features/tools/node-creation/index.js.map +0 -1
  273. package/lib/features/undo-redo/index.d.ts +0 -18
  274. package/lib/features/undo-redo/index.d.ts.map +0 -1
  275. package/lib/features/undo-redo/index.js +0 -34
  276. package/lib/features/undo-redo/index.js.map +0 -1
  277. package/lib/features/validation/index.d.ts +0 -20
  278. package/lib/features/validation/index.d.ts.map +0 -1
  279. package/lib/features/validation/index.js +0 -36
  280. package/lib/features/validation/index.js.map +0 -1
  281. package/lib/features/validation/marker-navigator.spec.d.ts +0 -3
  282. package/lib/features/validation/marker-navigator.spec.d.ts.map +0 -1
  283. package/lib/features/validation/marker-navigator.spec.js +0 -166
  284. package/lib/features/validation/marker-navigator.spec.js.map +0 -1
  285. package/lib/features/viewport/index.d.ts +0 -20
  286. package/lib/features/viewport/index.d.ts.map +0 -1
  287. package/lib/features/viewport/index.js +0 -36
  288. package/lib/features/viewport/index.js.map +0 -1
  289. package/lib/tsconfig.tsbuildinfo +0 -1
  290. package/lib/utils/gmodel-util.spec.d.ts +0 -2
  291. package/lib/utils/gmodel-util.spec.d.ts.map +0 -1
  292. package/lib/utils/gmodel-util.spec.js +0 -186
  293. package/lib/utils/gmodel-util.spec.js.map +0 -1
  294. package/lib/utils/index.d.ts +0 -23
  295. package/lib/utils/index.d.ts.map +0 -1
  296. package/lib/utils/index.js +0 -39
  297. package/lib/utils/index.js.map +0 -1
  298. package/lib/views/index.d.ts +0 -23
  299. package/lib/views/index.d.ts.map +0 -1
  300. package/lib/views/index.js +0 -39
  301. package/lib/views/index.js.map +0 -1
@@ -1,32 +0,0 @@
1
- /********************************************************************************
2
- * Copyright (c) 2023 EclipseSource and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
- export * from './action-dispatcher';
17
- export * from './action-handler-registry';
18
- export * from './args-feature';
19
- export * from './auto-complete';
20
- export * from './command-stack';
21
- export * from './default.module';
22
- export * from './drag-aware-mouse-listener';
23
- export * from './editor-context-service';
24
- export * from './feedback';
25
- export * from './focus';
26
- export * from './model';
27
- export * from './ranked';
28
- export * from './selection-clearing-mouse-listener';
29
- export * from './selection-service';
30
- export * from './tool-manager';
31
- export * from './view';
32
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/base/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,qCAAqC,CAAC;AACpD,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC"}
package/lib/base/index.js DELETED
@@ -1,48 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- /********************************************************************************
18
- * Copyright (c) 2023 EclipseSource and others.
19
- *
20
- * This program and the accompanying materials are made available under the
21
- * terms of the Eclipse Public License v. 2.0 which is available at
22
- * http://www.eclipse.org/legal/epl-2.0.
23
- *
24
- * This Source Code may also be made available under the following Secondary
25
- * Licenses when the conditions for such availability set forth in the Eclipse
26
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
27
- * with the GNU Classpath Exception which is available at
28
- * https://www.gnu.org/software/classpath/license.html.
29
- *
30
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
31
- ********************************************************************************/
32
- __exportStar(require("./action-dispatcher"), exports);
33
- __exportStar(require("./action-handler-registry"), exports);
34
- __exportStar(require("./args-feature"), exports);
35
- __exportStar(require("./auto-complete"), exports);
36
- __exportStar(require("./command-stack"), exports);
37
- __exportStar(require("./default.module"), exports);
38
- __exportStar(require("./drag-aware-mouse-listener"), exports);
39
- __exportStar(require("./editor-context-service"), exports);
40
- __exportStar(require("./feedback"), exports);
41
- __exportStar(require("./focus"), exports);
42
- __exportStar(require("./model"), exports);
43
- __exportStar(require("./ranked"), exports);
44
- __exportStar(require("./selection-clearing-mouse-listener"), exports);
45
- __exportStar(require("./selection-service"), exports);
46
- __exportStar(require("./tool-manager"), exports);
47
- __exportStar(require("./view"), exports);
48
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/base/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,sDAAoC;AACpC,4DAA0C;AAC1C,iDAA+B;AAC/B,kDAAgC;AAChC,kDAAgC;AAChC,mDAAiC;AACjC,8DAA4C;AAC5C,2DAAyC;AACzC,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,sEAAoD;AACpD,sDAAoC;AACpC,iDAA+B;AAC/B,yCAAuB"}
@@ -1,20 +0,0 @@
1
- /********************************************************************************
2
- * Copyright (c) 2023 EclipseSource and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
- export * from './diagram-loader';
17
- export * from './glsp-model-source';
18
- export * from './model-initialization-constraint';
19
- export * from './model-registry';
20
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/model/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAClD,cAAc,kBAAkB,CAAC"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- /********************************************************************************
18
- * Copyright (c) 2023 EclipseSource and others.
19
- *
20
- * This program and the accompanying materials are made available under the
21
- * terms of the Eclipse Public License v. 2.0 which is available at
22
- * http://www.eclipse.org/legal/epl-2.0.
23
- *
24
- * This Source Code may also be made available under the following Secondary
25
- * Licenses when the conditions for such availability set forth in the Eclipse
26
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
27
- * with the GNU Classpath Exception which is available at
28
- * https://www.gnu.org/software/classpath/license.html.
29
- *
30
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
31
- ********************************************************************************/
32
- __exportStar(require("./diagram-loader"), exports);
33
- __exportStar(require("./glsp-model-source"), exports);
34
- __exportStar(require("./model-initialization-constraint"), exports);
35
- __exportStar(require("./model-registry"), exports);
36
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/base/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mDAAiC;AACjC,sDAAoC;AACpC,oEAAkD;AAClD,mDAAiC"}
@@ -1,2 +0,0 @@
1
- import 'reflect-metadata';
2
- //# sourceMappingURL=model-initialization-constraint.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"model-initialization-constraint.spec.d.ts","sourceRoot":"","sources":["../../../src/base/model/model-initialization-constraint.spec.ts"],"names":[],"mappings":"AAiBA,OAAO,kBAAkB,CAAC"}
@@ -1,97 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /********************************************************************************
4
- * Copyright (c) 2023 EclipseSource and others.
5
- *
6
- * This program and the accompanying materials are made available under the
7
- * terms of the Eclipse Public License v. 2.0 which is available at
8
- * http://www.eclipse.org/legal/epl-2.0.
9
- *
10
- * This Source Code may also be made available under the following Secondary
11
- * Licenses when the conditions for such availability set forth in the Eclipse
12
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
13
- * with the GNU Classpath Exception which is available at
14
- * https://www.gnu.org/software/classpath/license.html.
15
- *
16
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
17
- ********************************************************************************/
18
- const chai_1 = require("chai");
19
- const inversify_1 = require("inversify");
20
- require("reflect-metadata");
21
- const sinon = require("sinon");
22
- const sprotty_1 = require("@eclipse-glsp/sprotty");
23
- const model_initialization_constraint_1 = require("./model-initialization-constraint");
24
- const sandbox = sinon.createSandbox();
25
- const container = new inversify_1.Container();
26
- let constraint;
27
- // eslint-disable-next-line @typescript-eslint/no-empty-function
28
- const listener = sandbox.spy(() => { });
29
- describe('DefaultModelInitializationConstraint', () => {
30
- beforeEach(() => {
31
- constraint = container.resolve(model_initialization_constraint_1.DefaultModelInitializationConstraint);
32
- sandbox.reset();
33
- });
34
- it('should complete after dispatching non empty SetModelAction and `InitializeCanvasBoundsAction`', () => {
35
- (0, chai_1.expect)(constraint.isCompleted).to.be.false;
36
- constraint.notifyDispatched(sprotty_1.SetModelAction.create({ id: 'model', type: 'graph' }));
37
- (0, chai_1.expect)(constraint.isCompleted).to.be.false;
38
- constraint.notifyDispatched({ kind: sprotty_1.InitializeCanvasBoundsAction.KIND });
39
- (0, chai_1.expect)(constraint.isCompleted).to.be.true;
40
- });
41
- it('should complete after dispatching non empty UpdateModelAction and `InitializeCanvasBoundsAction`', () => {
42
- (0, chai_1.expect)(constraint.isCompleted).to.be.false;
43
- constraint.notifyDispatched(sprotty_1.UpdateModelAction.create({ id: 'model', type: 'graph' }));
44
- (0, chai_1.expect)(constraint.isCompleted).to.be.false;
45
- constraint.notifyDispatched({ kind: sprotty_1.InitializeCanvasBoundsAction.KIND });
46
- (0, chai_1.expect)(constraint.isCompleted).to.be.true;
47
- });
48
- it('should note complete after dispatching empty SetModelAction and `InitializeCanvasBoundsAction` ', () => {
49
- (0, chai_1.expect)(constraint.isCompleted).to.be.false;
50
- constraint.notifyDispatched(sprotty_1.SetModelAction.create(sprotty_1.EMPTY_ROOT));
51
- (0, chai_1.expect)(constraint.isCompleted).to.be.false;
52
- constraint.notifyDispatched({ kind: sprotty_1.InitializeCanvasBoundsAction.KIND });
53
- (0, chai_1.expect)(constraint.isCompleted).to.be.false;
54
- });
55
- it('should note complete after dispatching empty UpdateModelAction and `InitializeCanvasBoundsAction ', () => {
56
- (0, chai_1.expect)(constraint.isCompleted).to.be.false;
57
- constraint.notifyDispatched(sprotty_1.UpdateModelAction.create(sprotty_1.EMPTY_ROOT));
58
- (0, chai_1.expect)(constraint.isCompleted).to.be.false;
59
- constraint.notifyDispatched({ kind: sprotty_1.InitializeCanvasBoundsAction.KIND });
60
- (0, chai_1.expect)(constraint.isCompleted).to.be.false;
61
- });
62
- describe('onInitialized', () => {
63
- it('returned promise should resolve once the constraint is initialized', async () => {
64
- const initializeDeferred = new sprotty_1.Deferred();
65
- const initializePromise = constraint.onInitialized();
66
- initializePromise.then(() => initializeDeferred.resolve());
67
- (0, chai_1.expect)(initializeDeferred.state).to.be.equal('unresolved');
68
- // Directly trigger the completion method simplify test logic
69
- constraint['setCompleted']();
70
- // Short delay of test execution to ensure that the deferred state is updated.
71
- await new Promise(resolve => setTimeout(resolve, 5));
72
- (0, chai_1.expect)(initializeDeferred.state).to.be.equal('resolved');
73
- });
74
- it('registered listener should be invoked once the constraint is initialized', () => {
75
- constraint.onInitialized(listener);
76
- (0, chai_1.expect)(listener.called).to.be.false;
77
- // Directly trigger the completion method simplify test logic
78
- constraint['setCompleted']();
79
- (0, chai_1.expect)(listener.called).to.be.true;
80
- });
81
- it('registered listener should be invoked directly on registration if the constraint is already initialized', () => {
82
- // Directly trigger the completion method simplify test logic
83
- constraint['setCompleted']();
84
- constraint.onInitialized(listener);
85
- (0, chai_1.expect)(listener.called).to.be.true;
86
- });
87
- it('Disposed listener should not be invoked once the constraint is initialized', () => {
88
- const toDispose = constraint.onInitialized(listener);
89
- (0, chai_1.expect)(listener.called).to.be.false;
90
- toDispose.dispose();
91
- // Directly trigger the completion method simplify test logic
92
- constraint['setCompleted']();
93
- (0, chai_1.expect)(listener.called).to.be.false;
94
- });
95
- });
96
- });
97
- //# sourceMappingURL=model-initialization-constraint.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"model-initialization-constraint.spec.js","sourceRoot":"","sources":["../../../src/base/model/model-initialization-constraint.spec.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,+BAA8B;AAC9B,yCAAsC;AACtC,4BAA0B;AAC1B,+BAA+B;AAC/B,mDAA8H;AAC9H,uFAAwH;AACxH,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC;AACtC,MAAM,SAAS,GAAG,IAAI,qBAAS,EAAE,CAAC;AAClC,IAAI,UAAyC,CAAC;AAC9C,gEAAgE;AAChE,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,GAAS,EAAE,GAAE,CAAC,CAAC,CAAC;AAE7C,QAAQ,CAAC,sCAAsC,EAAE,GAAG,EAAE;IAClD,UAAU,CAAC,GAAG,EAAE;QACZ,UAAU,GAAG,SAAS,CAAC,OAAO,CAAC,sEAAoC,CAAC,CAAC;QACrE,OAAO,CAAC,KAAK,EAAE,CAAC;IACpB,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,gGAAgG,EAAE,GAAG,EAAE;QACtG,IAAA,aAAM,EAAC,UAAU,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QAC3C,UAAU,CAAC,gBAAgB,CAAC,wBAAc,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;QACnF,IAAA,aAAM,EAAC,UAAU,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QAC3C,UAAU,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,sCAA4B,CAAC,IAAI,EAAE,CAAC,CAAC;QACzE,IAAA,aAAM,EAAC,UAAU,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAC9C,CAAC,CA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CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;YACpC,6DAA6D;YAC7D,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;YAC7B,IAAA,aAAM,EAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QACvC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,yGAAyG,EAAE,GAAG,EAAE;YAC/G,6DAA6D;YAC7D,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;YAC7B,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YACnC,IAAA,aAAM,EAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QACvC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,4EAA4E,EAAE,GAAG,EAAE;YAClF,MAAM,SAAS,GAAG,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YACrD,IAAA,aAAM,EAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;YACpC,SAAS,CAAC,OAAO,EAAE,CAAC;YACpB,6DAA6D;YAC7D,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;YAC7B,IAAA,aAAM,EAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QACxC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=selection-service.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selection-service.spec.d.ts","sourceRoot":"","sources":["../../src/base/selection-service.spec.ts"],"names":[],"mappings":""}
@@ -1,283 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- /********************************************************************************
10
- * Copyright (c) 2020-2023 EclipseSource and others.
11
- *
12
- * This program and the accompanying materials are made available under the
13
- * terms of the Eclipse Public License v. 2.0 which is available at
14
- * http://www.eclipse.org/legal/epl-2.0.
15
- *
16
- * This Source Code may also be made available under the following Secondary
17
- * Licenses when the conditions for such availability set forth in the Eclipse
18
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
19
- * with the GNU Classpath Exception which is available at
20
- * https://www.gnu.org/software/classpath/license.html.
21
- *
22
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
23
- ********************************************************************************/
24
- const sprotty_1 = require("@eclipse-glsp/sprotty");
25
- const chai_1 = require("chai");
26
- const inversify_1 = require("inversify");
27
- const sinon = require("sinon");
28
- const default_module_1 = require("./default.module");
29
- const selection_service_1 = require("./selection-service");
30
- let MockFeedbackActionDispatcher = class MockFeedbackActionDispatcher {
31
- constructor() {
32
- this.feedbackEmitters = new Map();
33
- }
34
- registerFeedback(feedbackEmitter, actions) {
35
- this.feedbackEmitters.set(feedbackEmitter, actions);
36
- return sprotty_1.Disposable.create(() => this.deregisterFeedback(feedbackEmitter));
37
- }
38
- deregisterFeedback(feedbackEmitter, _actions) {
39
- this.feedbackEmitters.delete(feedbackEmitter);
40
- }
41
- getRegisteredFeedback() {
42
- const result = [];
43
- this.feedbackEmitters.forEach((value, key) => result.push(...value));
44
- return result;
45
- }
46
- getSingleFeedbackAction() {
47
- const actions = this.getRegisteredFeedback();
48
- return actions.length === 1 ? actions[0] : undefined;
49
- }
50
- };
51
- MockFeedbackActionDispatcher = __decorate([
52
- (0, inversify_1.injectable)()
53
- ], MockFeedbackActionDispatcher);
54
- class MockSelectionListener {
55
- selectionChanged(root, selectedElements, deselectedElements) {
56
- // no.op
57
- }
58
- }
59
- function createContainer() {
60
- const container = (0, sprotty_1.initializeContainer)(new inversify_1.Container(), default_module_1.defaultModule);
61
- // eslint-disable-next-line deprecation/deprecation
62
- container.rebind(sprotty_1.TYPES.IFeedbackActionDispatcher).to(MockFeedbackActionDispatcher).inSingletonScope();
63
- return container;
64
- }
65
- describe('SelectionService', () => {
66
- // eslint-disable-next-line deprecation/deprecation
67
- let root;
68
- let selectionService;
69
- let feedbackDispatcher;
70
- beforeEach(() => {
71
- const container = createContainer();
72
- // eslint-disable-next-line deprecation/deprecation
73
- root = createRoot('node1', 'node2', 'node3', 'node4', 'node5');
74
- selectionService = container.get(selection_service_1.SelectionService);
75
- feedbackDispatcher = container.get(sprotty_1.TYPES.IFeedbackActionDispatcher);
76
- });
77
- describe('Initial State', () => {
78
- it('On creation nothing should be selected and no feedback should be dispatched.', () => {
79
- assertSelectionAndFeedback([], []);
80
- });
81
- });
82
- describe('Single Selection', () => {
83
- it('Selecting a single element should be tracked correctly and trigger feedback.', () => {
84
- assertSelectionAndFeedback([], []);
85
- selectionService.updateSelection(root, ['node1'], []);
86
- assertSelectionAndFeedback(['node1'], []);
87
- });
88
- it('Selecting the same element twice in one operation should not make a difference.', () => {
89
- assertSelectionAndFeedback([], []);
90
- selectionService.updateSelection(root, ['node1', 'node1'], []);
91
- assertSelectionAndFeedback(['node1'], []);
92
- });
93
- it('Selecting and then deselecting the same element should result in an empty selection.', () => {
94
- assertSelectionAndFeedback([], []);
95
- selectionService.updateSelection(root, ['node1'], []);
96
- selectionService.updateSelection(root, [], ['node1']);
97
- assertSelectionAndFeedback([], ['node1']);
98
- });
99
- it('Selecting and deselecting the same element in the same operation should have no effect.', () => {
100
- assertSelectionAndFeedback([], []);
101
- selectionService.updateSelection(root, ['node1'], ['node1']);
102
- assertSelectionAndFeedback([], []);
103
- });
104
- it('Selecting and deselecting not-existing nodes should have no effect.', () => {
105
- assertSelectionAndFeedback([], []);
106
- selectionService.updateSelection(root, ['not-existing'], []);
107
- assertSelectionAndFeedback([], []);
108
- selectionService.updateSelection(root, [], ['not-existing']);
109
- assertSelectionAndFeedback([], []);
110
- });
111
- });
112
- describe('Multi Selection', () => {
113
- it('Selecting multiple elements should be tracked correctly and trigger feedback.', () => {
114
- assertSelectionAndFeedback([], []);
115
- selectionService.updateSelection(root, ['node1', 'node2'], []);
116
- assertSelectionAndFeedback(['node1', 'node2'], []);
117
- });
118
- it('Selecting multiple elements should have the selection order in the dispatched feedback.', () => {
119
- assertSelectionAndFeedback([], []);
120
- selectionService.updateSelection(root, ['node2', 'node1'], []);
121
- (0, chai_1.expect)(() => assertSelectionAndFeedback(['node1', 'node2'], [])).to.throw(chai_1.AssertionError, 'ordered members');
122
- });
123
- it('Selecting the same elements twice in one operation should not make a difference.', () => {
124
- assertSelectionAndFeedback([], []);
125
- selectionService.updateSelection(root, ['node1', 'node1', 'node2', 'node2'], []);
126
- assertSelectionAndFeedback(['node1', 'node2'], []);
127
- });
128
- it('Selecting and then deselecting the same elements should result in an empty selection.', () => {
129
- assertSelectionAndFeedback([], []);
130
- selectionService.updateSelection(root, ['node1', 'node2'], []);
131
- selectionService.updateSelection(root, [], ['node1', 'node2']);
132
- assertSelectionAndFeedback([], ['node1', 'node2']);
133
- });
134
- it('Selecting and deselecting the same elements in one operation should have no effect.', () => {
135
- assertSelectionAndFeedback([], []);
136
- selectionService.updateSelection(root, ['node1', 'node2'], ['node1', 'node2']);
137
- assertSelectionAndFeedback([], []);
138
- selectionService.updateSelection(root, ['node1', 'node2', 'node3'], ['node1', 'node2']);
139
- assertSelectionAndFeedback(['node3'], []);
140
- });
141
- it('Selecting three elements and deselecting one should result in two selected and one deselected element.', () => {
142
- assertSelectionAndFeedback([], []);
143
- selectionService.updateSelection(root, ['node1', 'node2', 'node3'], []);
144
- assertSelectionAndFeedback(['node1', 'node2', 'node3'], []);
145
- selectionService.updateSelection(root, [], ['node2']);
146
- assertSelectionAndFeedback(['node1', 'node3'], ['node2']);
147
- });
148
- it('A series of selection and deselection operations should be tracked correctly.', () => {
149
- assertSelectionAndFeedback([], []);
150
- selectionService.updateSelection(root, ['node1', 'node2', 'node3'], []);
151
- assertSelectionAndFeedback(['node1', 'node2', 'node3'], []);
152
- selectionService.updateSelection(root, ['node4'], ['node2']);
153
- assertSelectionAndFeedback(['node1', 'node3', 'node4'], ['node2']);
154
- selectionService.updateSelection(root, ['node3', 'node1'], ['node2', 'node4']);
155
- assertSelectionAndFeedback(['node1', 'node3'], ['node4']);
156
- selectionService.updateSelection(root, ['node3'], ['node3']);
157
- assertSelectionAndFeedback(['node1', 'node3'], ['node4']);
158
- });
159
- });
160
- describe('Changing Root', () => {
161
- it('Changing root deselects all selected elements if there are no matching elements.', () => {
162
- assertSelectionAndFeedback([], []);
163
- selectionService.updateSelection(root, ['node1'], []);
164
- assertSelectionAndFeedback(['node1'], []);
165
- const newRoot = createRoot('newNode1', 'newNode2', 'newNode3');
166
- selectionService.modelRootChanged(newRoot);
167
- assertSelectionAndFeedback([], ['node1']);
168
- });
169
- it('Changing root keeps selected elements if there are matching elements.', () => {
170
- assertSelectionAndFeedback([], []);
171
- selectionService.updateSelection(root, ['node1', 'node2'], []);
172
- assertSelectionAndFeedback(['node1', 'node2'], []);
173
- const newRoot = createRoot('node1', 'newNode2', 'newNode3');
174
- selectionService.modelRootChanged(newRoot);
175
- assertSelectionAndFeedback(['node1'], ['node2']);
176
- });
177
- it('Changing root with new selection correctly selects matching elements and deselects not matching elements.', () => {
178
- assertSelectionAndFeedback([], []);
179
- selectionService.updateSelection(root, ['node1', 'node2'], []);
180
- assertSelectionAndFeedback(['node1', 'node2'], []);
181
- const newRoot = createRoot('newNode1', 'newNode2', 'newNode3');
182
- selectionService.updateSelection(newRoot, ['newNode1'], []);
183
- assertSelectionAndFeedback(['newNode1'], ['node1', 'node2']);
184
- });
185
- });
186
- describe('Listeners', () => {
187
- const sandbox = sinon.createSandbox();
188
- const listener = sandbox.createStubInstance(MockSelectionListener);
189
- beforeEach(() => {
190
- selectionService.onSelectionChanged(change => listener.selectionChanged(change.root, change.selectedElements, change.deselectedElements));
191
- });
192
- afterEach(() => {
193
- selectionService.dispose();
194
- sandbox.reset();
195
- });
196
- it('A registered listener should be notified of a single selection change.', () => {
197
- selectionService.updateSelection(root, ['node1', 'node1'], []);
198
- assertListener(listener, root, ['node1'], [], 1);
199
- });
200
- it('A registered listener should be notified of a multi-selection change.', () => {
201
- selectionService.updateSelection(root, ['node1', 'node2', 'node3'], []);
202
- assertListener(listener, root, ['node1', 'node2', 'node3'], [], 1);
203
- });
204
- it('A registered listener should be notified of series of selection changes.', () => {
205
- selectionService.updateSelection(root, ['node1'], []);
206
- assertListener(listener, root, ['node1'], [], 1);
207
- selectionService.updateSelection(root, ['node2'], ['node1']);
208
- assertListener(listener, root, ['node2'], ['node1'], 2);
209
- selectionService.updateSelection(root, ['node3', 'node4'], []);
210
- assertListener(listener, root, ['node2', 'node3', 'node4'], [], 3);
211
- selectionService.updateSelection(root, [], ['node4']);
212
- assertListener(listener, root, ['node2', 'node3'], ['node4'], 4);
213
- });
214
- it('A registered listener should NOT be notified of root changes.', () => {
215
- selectionService.updateSelection(root, [], []);
216
- assertListener(listener, root, [], [], 0);
217
- const newRoot = createRoot('node1', 'newNode2', 'newNode3');
218
- selectionService.updateSelection(newRoot, [], []);
219
- assertListener(listener, newRoot, [], [], 0);
220
- });
221
- it('Selecting the same elements consecutively should not trigger a listener update.', () => {
222
- selectionService.updateSelection(root, ['node1'], []);
223
- assertListener(listener, root, ['node1'], [], 1);
224
- selectionService.updateSelection(root, ['node1'], []);
225
- assertListener(listener, root, ['node1'], [], 1);
226
- });
227
- it('Selecting a not-existing elements should not trigger a listener update.', () => {
228
- selectionService.updateSelection(root, ['node1'], []);
229
- assertListener(listener, root, ['node1'], [], 1);
230
- selectionService.updateSelection(root, ['not-existing'], []);
231
- assertListener(listener, root, ['node1'], [], 1);
232
- });
233
- });
234
- function createRoot(...nodes) {
235
- const model = new sprotty_1.GModelRoot();
236
- model.id = 'selection-service-spec';
237
- model.type = 'graph';
238
- nodes.forEach(id => {
239
- const node = new sprotty_1.GNode();
240
- node.type = 'node:circle';
241
- node.id = id;
242
- model.add(node);
243
- });
244
- return model;
245
- }
246
- function assertSelectionAndFeedback(expectedSelection, expectedDeselection) {
247
- assertSelectionService(expectedSelection);
248
- assertDispatchedFeedback(expectedSelection, expectedDeselection);
249
- }
250
- function assertSelectionService(expectedSelection) {
251
- (0, chai_1.expect)(selectionService.isSingleSelection()).to.equal(expectedSelection.length === 1);
252
- (0, chai_1.expect)(selectionService.isMultiSelection()).to.equal(expectedSelection.length > 1);
253
- (0, chai_1.expect)(selectionService.hasSelectedElements()).to.equal(expectedSelection.length > 0);
254
- (0, chai_1.expect)(selectionService.getSelectedElementIDs()).to.have.lengthOf(expectedSelection.length);
255
- if (expectedSelection.length > 0) {
256
- (0, chai_1.expect)(selectionService.getSelectedElementIDs()).to.have.ordered.members(expectedSelection);
257
- }
258
- }
259
- function assertDispatchedFeedback(expectedSelection, expectedDeselection) {
260
- // a single feedback action reflects aggregated selection/deselection
261
- const hasFeedback = expectedSelection.length > 0 || expectedDeselection.length > 0;
262
- if (hasFeedback) {
263
- (0, chai_1.expect)(feedbackDispatcher.getRegisteredFeedback()).to.have.lengthOf(1);
264
- (0, chai_1.expect)(feedbackDispatcher.getSingleFeedbackAction().selectedElementsIDs).to.have.lengthOf(expectedSelection.length);
265
- (0, chai_1.expect)(feedbackDispatcher.getSingleFeedbackAction().selectedElementsIDs).to.have.ordered.members(expectedSelection);
266
- (0, chai_1.expect)(feedbackDispatcher.getSingleFeedbackAction().deselectedElementsIDs).to.have.lengthOf(expectedDeselection.length);
267
- (0, chai_1.expect)(feedbackDispatcher.getSingleFeedbackAction().deselectedElementsIDs).to.have.ordered.members(expectedDeselection);
268
- }
269
- else {
270
- (0, chai_1.expect)(feedbackDispatcher.getRegisteredFeedback()).to.have.lengthOf(0);
271
- (0, chai_1.expect)(feedbackDispatcher.getSingleFeedbackAction()).to.be.undefined;
272
- }
273
- }
274
- function assertListener(listener, expectedRoot, expectedSelection, expectedDeselection, expectedCalled) {
275
- (0, chai_1.expect)(listener.selectionChanged.callCount).to.be.equal(expectedCalled);
276
- if (expectedCalled > 0) {
277
- (0, chai_1.expect)(listener.selectionChanged.lastCall.args[0]).to.be.deep.equals(expectedRoot);
278
- (0, chai_1.expect)(listener.selectionChanged.lastCall.args[1]).to.be.deep.equals(expectedSelection);
279
- (0, chai_1.expect)(listener.selectionChanged.lastCall.args[2]).to.be.deep.equals(expectedDeselection);
280
- }
281
- }
282
- });
283
- //# sourceMappingURL=selection-service.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selection-service.spec.js","sourceRoot":"","sources":["../../src/base/selection-service.spec.ts"],"names":[],"mappings":";;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mDAA0G;AAC1G,+BAA8C;AAC9C,yCAAkD;AAClD,+BAA+B;AAC/B,qDAAiD;AAEjD,2DAAiG;AAGjG,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAAlC;QACc,qBAAgB,GAAoC,IAAI,GAAG,EAAE,CAAC;IAqB5E,CAAC;IAnBG,gBAAgB,CAAC,eAAiC,EAAE,OAAiB;QACjE,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;QACpD,OAAO,oBAAU,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC,CAAC;IAC7E,CAAC;IAED,kBAAkB,CAAC,eAAiC,EAAE,QAAmB;QACrE,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IAClD,CAAC;IAED,qBAAqB;QACjB,MAAM,MAAM,GAA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CAAC,CAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- /********************************************************************************
2
- * Copyright (c) 2023 EclipseSource and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
- export * from './tool-manager';
17
- export * from './tool';
18
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/tool-manager/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC"}