@eclipse-glsp/client 1.1.0-RC06 → 1.1.0-RC08

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 (258) hide show
  1. package/css/decoration.css +1 -1
  2. package/lib/base/auto-complete/auto-complete-widget.d.ts +2 -2
  3. package/lib/base/auto-complete/auto-complete-widget.js +3 -3
  4. package/lib/base/command-stack.d.ts +1 -2
  5. package/lib/base/command-stack.d.ts.map +1 -1
  6. package/lib/base/command-stack.js +5 -14
  7. package/lib/base/command-stack.js.map +1 -1
  8. package/lib/base/container-modules.d.ts +8 -16
  9. package/lib/base/container-modules.d.ts.map +1 -1
  10. package/lib/base/container-modules.js +52 -66
  11. package/lib/base/container-modules.js.map +1 -1
  12. package/lib/base/di.config.d.ts +1 -1
  13. package/lib/base/di.config.d.ts.map +1 -1
  14. package/lib/base/di.config.js +7 -7
  15. package/lib/base/di.config.js.map +1 -1
  16. package/lib/base/editor-context-service.d.ts +3 -3
  17. package/lib/base/editor-context-service.d.ts.map +1 -1
  18. package/lib/base/editor-context-service.js +3 -3
  19. package/lib/base/editor-context-service.js.map +1 -1
  20. package/lib/base/tool-manager/glsp-tool-manager.d.ts +4 -5
  21. package/lib/base/tool-manager/glsp-tool-manager.d.ts.map +1 -1
  22. package/lib/base/tool-manager/glsp-tool-manager.js +15 -8
  23. package/lib/base/tool-manager/glsp-tool-manager.js.map +1 -1
  24. package/lib/features/bounds/di.config.d.ts +0 -16
  25. package/lib/features/bounds/di.config.d.ts.map +1 -1
  26. package/lib/features/bounds/di.config.js +12 -9
  27. package/lib/features/bounds/di.config.js.map +1 -1
  28. package/lib/features/{layout → bounds}/freeform-layout.d.ts +2 -2
  29. package/lib/features/{layout → bounds}/freeform-layout.d.ts.map +1 -1
  30. package/lib/features/{layout → bounds}/freeform-layout.js +2 -2
  31. package/lib/features/{layout → bounds}/freeform-layout.js.map +1 -1
  32. package/lib/features/bounds/freeform-layout.spec.d.ts.map +1 -0
  33. package/lib/features/{layout/tests → bounds}/freeform-layout.spec.js +37 -37
  34. package/lib/features/bounds/freeform-layout.spec.js.map +1 -0
  35. package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts +1 -1
  36. package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts.map +1 -1
  37. package/lib/features/bounds/glsp-hidden-bounds-updater.js +3 -2
  38. package/lib/features/bounds/glsp-hidden-bounds-updater.js.map +1 -1
  39. package/lib/features/{layout → bounds}/hbox-layout.d.ts +1 -1
  40. package/lib/features/{layout → bounds}/hbox-layout.d.ts.map +1 -1
  41. package/lib/features/{layout → bounds}/hbox-layout.js +1 -1
  42. package/lib/features/{layout → bounds}/hbox-layout.js.map +1 -1
  43. package/lib/features/bounds/hbox-layout.spec.d.ts.map +1 -0
  44. package/lib/features/{layout/tests → bounds}/hbox-layout.spec.js +18 -18
  45. package/lib/features/bounds/hbox-layout.spec.js.map +1 -0
  46. package/lib/features/{layout/tests/layouter-test-util.d.ts → bounds/layouter-test-util.spec.d.ts} +2 -3
  47. package/lib/features/bounds/layouter-test-util.spec.d.ts.map +1 -0
  48. package/lib/features/{layout/tests/layouter-test-util.js → bounds/layouter-test-util.spec.js} +6 -6
  49. package/lib/features/bounds/layouter-test-util.spec.js.map +1 -0
  50. package/lib/features/{layout → bounds}/layouter.d.ts +1 -1
  51. package/lib/features/{layout → bounds}/layouter.d.ts.map +1 -1
  52. package/lib/features/{layout → bounds}/layouter.js +1 -1
  53. package/lib/features/{layout → bounds}/layouter.js.map +1 -1
  54. package/lib/features/{layout → bounds}/vbox-layout.d.ts +1 -1
  55. package/lib/features/{layout → bounds}/vbox-layout.d.ts.map +1 -1
  56. package/lib/features/{layout → bounds}/vbox-layout.js +1 -1
  57. package/lib/features/{layout → bounds}/vbox-layout.js.map +1 -1
  58. package/lib/features/bounds/vbox-layout.spec.d.ts.map +1 -0
  59. package/lib/features/{layout/tests → bounds}/vbox-layout.spec.js +18 -18
  60. package/lib/features/bounds/vbox-layout.spec.js.map +1 -0
  61. package/lib/features/command-palette/command-palette-tool.d.ts +1 -1
  62. package/lib/features/command-palette/command-palette-tool.d.ts.map +1 -1
  63. package/lib/features/command-palette/command-palette-tool.js +3 -3
  64. package/lib/features/command-palette/command-palette-tool.js.map +1 -1
  65. package/lib/features/command-palette/di.config.d.ts +0 -15
  66. package/lib/features/command-palette/di.config.d.ts.map +1 -1
  67. package/lib/features/command-palette/di.config.js +6 -7
  68. package/lib/features/command-palette/di.config.js.map +1 -1
  69. package/lib/features/context-menu/di.config.d.ts +0 -15
  70. package/lib/features/context-menu/di.config.d.ts.map +1 -1
  71. package/lib/features/context-menu/di.config.js +4 -3
  72. package/lib/features/context-menu/di.config.js.map +1 -1
  73. package/lib/features/copy-paste/copy-paste-handler.d.ts +2 -2
  74. package/lib/features/copy-paste/copy-paste-handler.d.ts.map +1 -1
  75. package/lib/features/copy-paste/copy-paste-handler.js +5 -5
  76. package/lib/features/copy-paste/copy-paste-handler.js.map +1 -1
  77. package/lib/features/decoration/di.config.d.ts +0 -15
  78. package/lib/features/decoration/di.config.d.ts.map +1 -1
  79. package/lib/features/decoration/di.config.js +4 -4
  80. package/lib/features/decoration/di.config.js.map +1 -1
  81. package/lib/features/edit-label/di.config.d.ts +0 -15
  82. package/lib/features/edit-label/di.config.d.ts.map +1 -1
  83. package/lib/features/edit-label/di.config.js +3 -2
  84. package/lib/features/edit-label/di.config.js.map +1 -1
  85. package/lib/features/export/di.config.d.ts +0 -15
  86. package/lib/features/export/di.config.d.ts.map +1 -1
  87. package/lib/features/export/di.config.js +6 -5
  88. package/lib/features/export/di.config.js.map +1 -1
  89. package/lib/features/export/glsp-svg-exporter.d.ts +1 -1
  90. package/lib/features/export/glsp-svg-exporter.d.ts.map +1 -1
  91. package/lib/features/export/glsp-svg-exporter.js +1 -2
  92. package/lib/features/export/glsp-svg-exporter.js.map +1 -1
  93. package/lib/features/hover/di.config.d.ts +0 -15
  94. package/lib/features/hover/di.config.d.ts.map +1 -1
  95. package/lib/features/hover/di.config.js +7 -7
  96. package/lib/features/hover/di.config.js.map +1 -1
  97. package/lib/features/layout/di.config.d.ts +1 -1
  98. package/lib/features/layout/di.config.d.ts.map +1 -1
  99. package/lib/features/layout/di.config.js +1 -9
  100. package/lib/features/layout/di.config.js.map +1 -1
  101. package/lib/features/navigation/di.config.d.ts +2 -1
  102. package/lib/features/navigation/di.config.d.ts.map +1 -1
  103. package/lib/features/navigation/di.config.js +3 -3
  104. package/lib/features/navigation/di.config.js.map +1 -1
  105. package/lib/features/navigation/navigation-action-handler.d.ts +2 -2
  106. package/lib/features/navigation/navigation-action-handler.js +2 -2
  107. package/lib/features/save/di.config.d.ts +0 -15
  108. package/lib/features/save/di.config.d.ts.map +1 -1
  109. package/lib/features/save/di.config.js +3 -2
  110. package/lib/features/save/di.config.js.map +1 -1
  111. package/lib/features/select/di.config.d.ts +0 -15
  112. package/lib/features/select/di.config.d.ts.map +1 -1
  113. package/lib/features/select/di.config.js +8 -7
  114. package/lib/features/select/di.config.js.map +1 -1
  115. package/lib/features/select/selection-service.spec.js +19 -3
  116. package/lib/features/select/selection-service.spec.js.map +1 -1
  117. package/lib/features/svg-metadata/di.config.d.ts +19 -0
  118. package/lib/features/svg-metadata/di.config.d.ts.map +1 -0
  119. package/lib/features/svg-metadata/di.config.js +26 -0
  120. package/lib/features/svg-metadata/di.config.js.map +1 -0
  121. package/lib/features/svg-metadata/metadata-placer.d.ts +24 -0
  122. package/lib/features/svg-metadata/metadata-placer.d.ts.map +1 -0
  123. package/lib/features/svg-metadata/metadata-placer.js +63 -0
  124. package/lib/features/svg-metadata/metadata-placer.js.map +1 -0
  125. package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts +2 -2
  126. package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts.map +1 -1
  127. package/lib/features/tool-feedback/change-bounds-tool-feedback.js +3 -3
  128. package/lib/features/tool-feedback/change-bounds-tool-feedback.js.map +1 -1
  129. package/lib/features/tool-feedback/creation-tool-feedback.d.ts +3 -3
  130. package/lib/features/tool-feedback/creation-tool-feedback.d.ts.map +1 -1
  131. package/lib/features/tool-feedback/creation-tool-feedback.js +1 -1
  132. package/lib/features/tool-feedback/creation-tool-feedback.js.map +1 -1
  133. package/lib/features/tool-feedback/di.config.d.ts +0 -15
  134. package/lib/features/tool-feedback/di.config.d.ts.map +1 -1
  135. package/lib/features/tool-feedback/di.config.js +20 -18
  136. package/lib/features/tool-feedback/di.config.js.map +1 -1
  137. package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts +1 -1
  138. package/lib/features/tool-feedback/edge-edit-tool-feedback.js +1 -1
  139. package/lib/features/tool-palette/di.config.d.ts +0 -15
  140. package/lib/features/tool-palette/di.config.d.ts.map +1 -1
  141. package/lib/features/tool-palette/di.config.js +4 -4
  142. package/lib/features/tool-palette/di.config.js.map +1 -1
  143. package/lib/features/tool-palette/tool-palette.d.ts +1 -1
  144. package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
  145. package/lib/features/tool-palette/tool-palette.js +2 -2
  146. package/lib/features/tool-palette/tool-palette.js.map +1 -1
  147. package/lib/features/tools/change-bounds-tool.d.ts +1 -1
  148. package/lib/features/tools/change-bounds-tool.d.ts.map +1 -1
  149. package/lib/features/tools/change-bounds-tool.js +6 -6
  150. package/lib/features/tools/change-bounds-tool.js.map +1 -1
  151. package/lib/features/tools/di.config.d.ts +18 -5
  152. package/lib/features/tools/di.config.d.ts.map +1 -1
  153. package/lib/features/tools/di.config.js +14 -15
  154. package/lib/features/tools/di.config.js.map +1 -1
  155. package/lib/features/tools/glsp-manhattan-edge-router.d.ts +2 -2
  156. package/lib/features/tools/glsp-manhattan-edge-router.d.ts.map +1 -1
  157. package/lib/features/tools/glsp-manhattan-edge-router.js +4 -4
  158. package/lib/features/tools/glsp-manhattan-edge-router.js.map +1 -1
  159. package/lib/features/validation/di.config.js +4 -4
  160. package/lib/features/validation/di.config.js.map +1 -1
  161. package/lib/features/validation/validate.d.ts +6 -6
  162. package/lib/features/validation/validate.d.ts.map +1 -1
  163. package/lib/features/validation/validate.js +18 -17
  164. package/lib/features/validation/validate.js.map +1 -1
  165. package/lib/features/viewport/di.config.d.ts +0 -15
  166. package/lib/features/viewport/di.config.d.ts.map +1 -1
  167. package/lib/features/viewport/di.config.js +12 -11
  168. package/lib/features/viewport/di.config.js.map +1 -1
  169. package/lib/index.d.ts +28 -4
  170. package/lib/index.d.ts.map +1 -1
  171. package/lib/index.js +66 -34
  172. package/lib/index.js.map +1 -1
  173. package/lib/sprotty-reexport.d.ts +2 -2
  174. package/lib/sprotty-reexport.d.ts.map +1 -1
  175. package/lib/sprotty-reexport.js +4 -4
  176. package/lib/sprotty-reexport.js.map +1 -1
  177. package/lib/utils/smodel-util.d.ts +1 -1
  178. package/lib/utils/smodel-util.d.ts.map +1 -1
  179. package/lib/utils/smodel-util.js +1 -1
  180. package/lib/utils/smodel-util.js.map +1 -1
  181. package/lib/views/base-view-module.d.ts +18 -6
  182. package/lib/views/base-view-module.d.ts.map +1 -1
  183. package/lib/views/base-view-module.js +1 -1
  184. package/lib/views/base-view-module.js.map +1 -1
  185. package/lib/views/glsp-edge-view.d.ts +2 -2
  186. package/lib/views/glsp-edge-view.d.ts.map +1 -1
  187. package/lib/views/glsp-edge-view.js +2 -2
  188. package/lib/views/glsp-edge-view.js.map +1 -1
  189. package/lib/views/index.d.ts +1 -1
  190. package/lib/views/index.js +1 -1
  191. package/lib/views/rounded-corner-view.js +2 -2
  192. package/lib/views/rounded-corner.d.ts +1 -1
  193. package/lib/views/rounded-corner.js +1 -1
  194. package/package.json +3 -3
  195. package/src/base/auto-complete/auto-complete-widget.ts +3 -3
  196. package/src/base/command-stack.ts +13 -11
  197. package/src/base/container-modules.ts +13 -36
  198. package/src/base/di.config.ts +8 -8
  199. package/src/base/editor-context-service.ts +4 -4
  200. package/src/base/tool-manager/glsp-tool-manager.ts +15 -12
  201. package/src/features/bounds/di.config.ts +21 -11
  202. package/src/features/{layout/tests → bounds}/freeform-layout.spec.ts +2 -2
  203. package/src/features/{layout → bounds}/freeform-layout.ts +2 -2
  204. package/src/features/bounds/glsp-hidden-bounds-updater.ts +4 -7
  205. package/src/features/{layout/tests → bounds}/hbox-layout.spec.ts +2 -2
  206. package/src/features/{layout → bounds}/hbox-layout.ts +1 -1
  207. package/src/features/{layout/tests/layouter-test-util.ts → bounds/layouter-test-util.spec.ts} +5 -5
  208. package/src/features/{layout → bounds}/layouter.ts +1 -1
  209. package/src/features/{layout/tests → bounds}/vbox-layout.spec.ts +2 -2
  210. package/src/features/{layout → bounds}/vbox-layout.ts +1 -1
  211. package/src/features/command-palette/command-palette-tool.ts +3 -3
  212. package/src/features/command-palette/di.config.ts +6 -7
  213. package/src/features/context-menu/di.config.ts +4 -3
  214. package/src/features/copy-paste/copy-paste-handler.ts +5 -5
  215. package/src/features/decoration/di.config.ts +4 -4
  216. package/src/features/edit-label/di.config.ts +3 -2
  217. package/src/features/export/di.config.ts +6 -5
  218. package/src/features/export/glsp-svg-exporter.ts +8 -7
  219. package/src/features/hover/di.config.ts +8 -7
  220. package/src/features/layout/di.config.ts +2 -11
  221. package/src/features/navigation/di.config.ts +4 -2
  222. package/src/features/navigation/navigation-action-handler.ts +2 -2
  223. package/src/features/save/di.config.ts +3 -2
  224. package/src/features/select/di.config.ts +8 -7
  225. package/src/features/select/selection-service.spec.ts +4 -5
  226. package/src/features/svg-metadata/di.config.ts +26 -0
  227. package/src/features/svg-metadata/metadata-placer.ts +51 -0
  228. package/src/features/tool-feedback/change-bounds-tool-feedback.ts +3 -3
  229. package/src/features/tool-feedback/creation-tool-feedback.ts +7 -3
  230. package/src/features/tool-feedback/di.config.ts +20 -18
  231. package/src/features/tool-feedback/edge-edit-tool-feedback.ts +1 -1
  232. package/src/features/tool-palette/di.config.ts +4 -4
  233. package/src/features/tool-palette/tool-palette.ts +4 -4
  234. package/src/features/tools/change-bounds-tool.ts +7 -7
  235. package/src/features/tools/di.config.ts +18 -19
  236. package/src/features/tools/glsp-manhattan-edge-router.ts +8 -5
  237. package/src/features/validation/di.config.ts +5 -5
  238. package/src/features/validation/validate.ts +16 -19
  239. package/src/features/viewport/di.config.ts +13 -11
  240. package/src/index.ts +37 -5
  241. package/src/sprotty-reexport.ts +18 -8
  242. package/src/utils/smodel-util.ts +12 -5
  243. package/src/views/base-view-module.ts +4 -9
  244. package/src/views/glsp-edge-view.tsx +3 -3
  245. package/src/views/index.ts +1 -2
  246. package/src/views/rounded-corner-view.tsx +2 -2
  247. package/src/views/rounded-corner.ts +2 -2
  248. package/lib/features/layout/tests/freeform-layout.spec.d.ts.map +0 -1
  249. package/lib/features/layout/tests/freeform-layout.spec.js.map +0 -1
  250. package/lib/features/layout/tests/hbox-layout.spec.d.ts.map +0 -1
  251. package/lib/features/layout/tests/hbox-layout.spec.js.map +0 -1
  252. package/lib/features/layout/tests/layouter-test-util.d.ts.map +0 -1
  253. package/lib/features/layout/tests/layouter-test-util.js.map +0 -1
  254. package/lib/features/layout/tests/vbox-layout.spec.d.ts.map +0 -1
  255. package/lib/features/layout/tests/vbox-layout.spec.js.map +0 -1
  256. /package/lib/features/{layout/tests → bounds}/freeform-layout.spec.d.ts +0 -0
  257. /package/lib/features/{layout/tests → bounds}/hbox-layout.spec.d.ts +0 -0
  258. /package/lib/features/{layout/tests → bounds}/vbox-layout.spec.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/decoration/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,6BAA6B,CAAC;AAIrC,QAAA,MAAM,oBAAoB,iBAGxB,CAAC;AAEH,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/decoration/di.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,6BAA6B,CAAC;AAIrC,QAAA,MAAM,oBAAoB,iBAExB,CAAC;AAEH,eAAe,oBAAoB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /********************************************************************************
4
- * Copyright (c) 2020-2022 EclipseSource and others.
4
+ * Copyright (c) 2019-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,13 +15,13 @@ 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
  require("../../../css/decoration.css");
20
21
  const types_1 = require("../../base/types");
21
22
  const decoration_placer_1 = require("./decoration-placer");
22
- const glspDecorationModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
23
- bind(decoration_placer_1.GlspDecorationPlacer).toSelf().inSingletonScope();
24
- bind(types_1.TYPES.IVNodePostprocessor).toService(decoration_placer_1.GlspDecorationPlacer);
23
+ const glspDecorationModule = new inversify_1.ContainerModule(bind => {
24
+ (0, protocol_1.bindAsService)(bind, types_1.TYPES.IVNodePostprocessor, decoration_placer_1.GlspDecorationPlacer);
25
25
  });
26
26
  exports.default = glspDecorationModule;
27
27
  //# sourceMappingURL=di.config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/decoration/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,uCAAqC;AACrC,4CAAyC;AACzC,2DAA2D;AAE3D,MAAM,oBAAoB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACxE,IAAI,CAAC,wCAAoB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACvD,IAAI,CAAC,aAAK,CAAC,mBAAmB,CAAC,CAAC,SAAS,CAAC,wCAAoB,CAAC,CAAC;AACpE,CAAC,CAAC,CAAC;AAEH,kBAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/decoration/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAuD;AACvD,yCAA4C;AAC5C,uCAAqC;AACrC,4CAAyC;AACzC,2DAA2D;AAE3D,MAAM,oBAAoB,GAAG,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACpD,IAAA,wBAAa,EAAC,IAAI,EAAE,aAAK,CAAC,mBAAmB,EAAE,wCAAoB,CAAC,CAAC;AACzE,CAAC,CAAC,CAAC;AAEH,kBAAe,oBAAoB,CAAC"}
@@ -1,18 +1,3 @@
1
- /********************************************************************************
2
- * Copyright (c) 2019-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
2
  declare const glspEditLabelModule: ContainerModule;
18
3
  export default glspEditLabelModule;
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/edit-label/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAM5C,QAAA,MAAM,mBAAmB,iBAKvB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/edit-label/di.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAM5C,QAAA,MAAM,mBAAmB,iBAKvB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /********************************************************************************
4
- * Copyright (c) 2019-2022 EclipseSource and others.
4
+ * Copyright (c) 2019-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,6 +15,7 @@ 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
21
  const types_1 = require("../../base/types");
@@ -23,7 +24,7 @@ const edit_label_validator_1 = require("./edit-label-validator");
23
24
  const glspEditLabelModule = new inversify_1.ContainerModule((bind, _unbind, isBound, _rebind) => {
24
25
  bind(types_1.TYPES.IEditLabelValidator).to(edit_label_validator_1.ServerEditLabelValidator);
25
26
  bind(types_1.TYPES.IEditLabelValidationDecorator).to(edit_label_validator_1.BalloonLabelValidationDecorator);
26
- bind(types_1.TYPES.IDefaultTool).to(edit_label_tool_1.DirectLabelEditTool);
27
+ (0, protocol_1.bindAsService)(bind, types_1.TYPES.IDefaultTool, edit_label_tool_1.DirectLabelEditTool);
27
28
  (0, sprotty_1.configureCommand)({ bind, isBound }, sprotty_1.ApplyLabelEditCommand);
28
29
  });
29
30
  exports.default = glspEditLabelModule;
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/edit-label/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,qCAAkE;AAClE,4CAAyC;AACzC,uDAAwD;AACxD,iEAAmG;AAEnG,MAAM,mBAAmB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IAChF,IAAI,CAAC,aAAK,CAAC,mBAAmB,CAAC,CAAC,EAAE,CAAC,+CAAwB,CAAC,CAAC;IAC7D,IAAI,CAAC,aAAK,CAAC,6BAA6B,CAAC,CAAC,EAAE,CAAC,sDAA+B,CAAC,CAAC;IAC9E,IAAI,CAAC,aAAK,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,qCAAmB,CAAC,CAAC;IACjD,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,+BAAqB,CAAC,CAAC;AAC/D,CAAC,CAAC,CAAC;AAEH,kBAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/edit-label/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAuD;AACvD,yCAA4C;AAC5C,qCAAkE;AAClE,4CAAyC;AACzC,uDAAwD;AACxD,iEAAmG;AAEnG,MAAM,mBAAmB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IAChF,IAAI,CAAC,aAAK,CAAC,mBAAmB,CAAC,CAAC,EAAE,CAAC,+CAAwB,CAAC,CAAC;IAC7D,IAAI,CAAC,aAAK,CAAC,6BAA6B,CAAC,CAAC,EAAE,CAAC,sDAA+B,CAAC,CAAC;IAC9E,IAAA,wBAAa,EAAC,IAAI,EAAE,aAAK,CAAC,YAAY,EAAE,qCAAmB,CAAC,CAAC;IAC7D,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,+BAAqB,CAAC,CAAC;AAC/D,CAAC,CAAC,CAAC;AAEH,kBAAe,mBAAmB,CAAC"}
@@ -1,18 +1,3 @@
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
1
  import { ContainerModule } from 'inversify';
17
2
  declare const glspExportSvgModule: ContainerModule;
18
3
  export default glspExportSvgModule;
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/export/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAI5C,QAAA,MAAM,mBAAmB,iBAMvB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/export/di.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAI5C,QAAA,MAAM,mBAAmB,iBAMvB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /********************************************************************************
4
- * Copyright (c) 2023 EclipseSource and others.
4
+ * Copyright (c) 2019-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,14 +15,15 @@ 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
21
  const glsp_svg_exporter_1 = require("./glsp-svg-exporter");
21
22
  const glspExportSvgModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
22
- bind(sprotty_1.ExportSvgKeyListener).toSelf().inSingletonScope();
23
- bind(sprotty_1.TYPES.KeyListener).toService(sprotty_1.ExportSvgKeyListener);
24
- bind(sprotty_1.TYPES.HiddenVNodePostprocessor).to(sprotty_1.ExportSvgPostprocessor).inSingletonScope();
25
- (0, sprotty_1.configureCommand)({ bind, isBound }, sprotty_1.ExportSvgCommand);
23
+ const context = { bind, isBound };
24
+ (0, protocol_1.bindAsService)(context, sprotty_1.TYPES.KeyListener, sprotty_1.ExportSvgKeyListener);
25
+ (0, protocol_1.bindAsService)(context, sprotty_1.TYPES.HiddenVNodePostprocessor, sprotty_1.ExportSvgPostprocessor);
26
+ (0, sprotty_1.configureCommand)(context, sprotty_1.ExportSvgCommand);
26
27
  bind(sprotty_1.TYPES.SvgExporter).to(glsp_svg_exporter_1.GLSPSvgExporter).inSingletonScope();
27
28
  });
28
29
  exports.default = glspExportSvgModule;
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/export/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,qCAAkH;AAClH,2DAAsD;AAEtD,MAAM,mBAAmB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACvE,IAAI,CAAC,8BAAoB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACvD,IAAI,CAAC,eAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,8BAAoB,CAAC,CAAC;IACxD,IAAI,CAAC,eAAK,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,gCAAsB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACnF,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,0BAAgB,CAAC,CAAC;IACtD,IAAI,CAAC,eAAK,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,mCAAe,CAAC,CAAC,gBAAgB,EAAE,CAAC;AACnE,CAAC,CAAC,CAAC;AAEH,kBAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/export/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAuD;AACvD,yCAA4C;AAC5C,qCAAkH;AAClH,2DAAsD;AAEtD,MAAM,mBAAmB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACvE,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAClC,IAAA,wBAAa,EAAC,OAAO,EAAE,eAAK,CAAC,WAAW,EAAE,8BAAoB,CAAC,CAAC;IAChE,IAAA,wBAAa,EAAC,OAAO,EAAE,eAAK,CAAC,wBAAwB,EAAE,gCAAsB,CAAC,CAAC;IAC/E,IAAA,0BAAgB,EAAC,OAAO,EAAE,0BAAgB,CAAC,CAAC;IAC5C,IAAI,CAAC,eAAK,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,mCAAe,CAAC,CAAC,gBAAgB,EAAE,CAAC;AACnE,CAAC,CAAC,CAAC;AAEH,kBAAe,mBAAmB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /********************************************************************************
2
- * Copyright (c) 2022 EclipseSource and others.
2
+ * Copyright (c) 2022-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
@@ -1 +1 @@
1
- {"version":3,"file":"glsp-svg-exporter.d.ts","sourceRoot":"","sources":["../../../src/features/export/glsp-svg-exporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGlE,qBACa,eAAgB,SAAQ,WAAW;IACpC,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,GAAG,IAAI;IAsBlF,SAAS,CAAC,cAAc,IAAI,aAAa,GAAG,IAAI;CAKlD"}
1
+ {"version":3,"file":"glsp-svg-exporter.d.ts","sourceRoot":"","sources":["../../../src/features/export/glsp-svg-exporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGnE,qBACa,eAAgB,SAAQ,WAAW;IACnC,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,GAAG,IAAI;IAuBlF,SAAS,CAAC,cAAc,IAAI,aAAa,GAAG,IAAI;CAKnD"}
@@ -21,8 +21,7 @@ let GLSPSvgExporter = class GLSPSvgExporter extends sprotty_1.SvgExporter {
21
21
  svgElement.id = originalId || (0, uuid_1.v4)();
22
22
  // provide generated svg code with respective sizing for proper viewing in browser and remove undesired border
23
23
  const bounds = this.getBounds(root);
24
- const svg = this.createSvg(svgElement, root)
25
- .replace('style="', `style="width: ${bounds.width}px !important;height: ${bounds.height}px !important;border: none !important;`);
24
+ const svg = this.createSvg(svgElement, root).replace('style="', `style="width: ${bounds.width}px !important;height: ${bounds.height}px !important;border: none !important;`);
26
25
  // do not give request/response id here as otherwise the action is treated as an unrequested response
27
26
  this.actionDispatcher.dispatch(sprotty_1.ExportSvgAction.create(svg, ''));
28
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"glsp-svg-exporter.js","sourceRoot":"","sources":["../../../src/features/export/glsp-svg-exporter.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,yCAAuC;AACvC,qCAAmE;AACnE,+BAAkC;AAG1B,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,qBAAW;IACpC,MAAM,CAAC,IAAgB,EAAE,QAAyC;QACvE,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;YACjC,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;YACzC,IAAI,UAAU,EAAE;gBACZ,qFAAqF;gBACrF,MAAM,UAAU,GAAG,UAAU,CAAC,EAAE,CAAC;gBACjC,IAAI;oBACA,UAAU,CAAC,EAAE,GAAG,UAAU,IAAI,IAAA,SAAI,GAAE,CAAC;oBACrC,8GAA8G;oBAC9G,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;oBACpC,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,CAAC;yBACvC,OAAO,CAAC,SAAS,EACd,iBAAiB,MAAM,CAAC,KAAK,yBAAyB,MAAM,CAAC,MAAM,wCAAwC,CAAC,CAAC;oBACrH,qGAAqG;oBACrG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,yBAAe,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;iBACnE;wBAAS;oBACN,UAAU,CAAC,EAAE,GAAG,UAAU,CAAC;iBAC9B;aACJ;SACJ;IACL,CAAC;IAES,cAAc;QACpB,MAAM,GAAG,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC5D,wEAAwE;QACxE,OAAO,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;CACH,CAAA;AA5BY,eAAe;IAD3B,IAAA,sBAAU,GAAE;GACA,eAAe,CA4B3B;AA5BY,0CAAe"}
1
+ {"version":3,"file":"glsp-svg-exporter.js","sourceRoot":"","sources":["../../../src/features/export/glsp-svg-exporter.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,yCAAuC;AACvC,qCAAmE;AACnE,+BAAkC;AAG3B,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,qBAAW;IACnC,MAAM,CAAC,IAAgB,EAAE,QAAyC;QACvE,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;YACjC,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;YACzC,IAAI,UAAU,EAAE;gBACZ,qFAAqF;gBACrF,MAAM,UAAU,GAAG,UAAU,CAAC,EAAE,CAAC;gBACjC,IAAI;oBACA,UAAU,CAAC,EAAE,GAAG,UAAU,IAAI,IAAA,SAAI,GAAE,CAAC;oBACrC,8GAA8G;oBAC9G,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;oBACpC,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,OAAO,CAChD,SAAS,EACT,iBAAiB,MAAM,CAAC,KAAK,yBAAyB,MAAM,CAAC,MAAM,wCAAwC,CAC9G,CAAC;oBACF,qGAAqG;oBACrG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,yBAAe,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;iBACnE;wBAAS;oBACN,UAAU,CAAC,EAAE,GAAG,UAAU,CAAC;iBAC9B;aACJ;SACJ;IACL,CAAC;IAES,cAAc;QACpB,MAAM,GAAG,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC5D,wEAAwE;QACxE,OAAO,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;CACJ,CAAA;AA7BY,eAAe;IAD3B,IAAA,sBAAU,GAAE;GACA,eAAe,CA6B3B;AA7BY,0CAAe"}
@@ -1,18 +1,3 @@
1
- /********************************************************************************
2
- * Copyright (c) 2020-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
2
  declare const glspHoverModule: ContainerModule;
18
3
  export default glspHoverModule;
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/hover/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAsB5C,QAAA,MAAM,eAAe,iBA0BnB,CAAC;AAEH,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/hover/di.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAsB5C,QAAA,MAAM,eAAe,iBA0BnB,CAAC;AAEH,eAAe,eAAe,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /********************************************************************************
4
- * Copyright (c) 2020-2022 EclipseSource and others.
4
+ * Copyright (c) 2020-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,17 +15,18 @@ 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
21
  const popup_position_updater_1 = require("sprotty/lib/features/hover/popup-position-updater");
21
22
  const focus_change_action_1 = require("../../base/actions/focus-change-action");
22
23
  const hover_1 = require("./hover");
23
24
  const glspHoverModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
24
- bind(sprotty_1.TYPES.PopupVNodePostprocessor).to(popup_position_updater_1.PopupPositionUpdater).inSingletonScope();
25
- bind(hover_1.GlspHoverMouseListener).toSelf().inSingletonScope();
26
- bind(sprotty_1.TYPES.MouseListener).toService(hover_1.GlspHoverMouseListener);
27
- bind(sprotty_1.TYPES.PopupMouseListener).to(sprotty_1.PopupHoverMouseListener);
28
- bind(sprotty_1.TYPES.KeyListener).to(sprotty_1.HoverKeyListener);
25
+ const context = { bind, isBound };
26
+ (0, protocol_1.bindAsService)(context, sprotty_1.TYPES.PopupVNodePostprocessor, popup_position_updater_1.PopupPositionUpdater);
27
+ (0, protocol_1.bindAsService)(context, sprotty_1.TYPES.MouseListener, hover_1.GlspHoverMouseListener);
28
+ (0, protocol_1.bindAsService)(context, sprotty_1.TYPES.PopupMouseListener, sprotty_1.PopupHoverMouseListener);
29
+ (0, protocol_1.bindAsService)(context, sprotty_1.TYPES.KeyListener, sprotty_1.HoverKeyListener);
29
30
  bind(sprotty_1.TYPES.HoverState).toConstantValue({
30
31
  mouseOverTimer: undefined,
31
32
  mouseOutTimer: undefined,
@@ -33,7 +34,6 @@ const glspHoverModule = new inversify_1.ContainerModule((bind, _unbind, isBound)
33
34
  previousPopupElement: undefined
34
35
  });
35
36
  bind(sprotty_1.ClosePopupActionHandler).toSelf().inSingletonScope();
36
- const context = { bind, isBound };
37
37
  (0, sprotty_1.configureCommand)(context, sprotty_1.HoverFeedbackCommand);
38
38
  (0, sprotty_1.configureCommand)(context, sprotty_1.SetPopupModelCommand);
39
39
  (0, sprotty_1.configureActionHandler)(context, sprotty_1.SetPopupModelCommand.KIND, sprotty_1.ClosePopupActionHandler);
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/hover/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,qCAgBiB;AACjB,8FAAyF;AACzF,gFAAiF;AACjF,mCAAiD;AAEjD,MAAM,eAAe,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACnE,IAAI,CAAC,eAAK,CAAC,uBAAuB,CAAC,CAAC,EAAE,CAAC,6CAAoB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAChF,IAAI,CAAC,8BAAsB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACzD,IAAI,CAAC,eAAK,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,8BAAsB,CAAC,CAAC;IAC5D,IAAI,CAAC,eAAK,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,iCAAuB,CAAC,CAAC;IAC3D,IAAI,CAAC,eAAK,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,0BAAgB,CAAC,CAAC;IAC7C,IAAI,CAAa,eAAK,CAAC,UAAU,CAAC,CAAC,eAAe,CAAC;QAC/C,cAAc,EAAE,SAAS;QACzB,aAAa,EAAE,SAAS;QACxB,SAAS,EAAE,KAAK;QAChB,oBAAoB,EAAE,SAAS;KAClC,CAAC,CAAC;IACH,IAAI,CAAC,iCAAuB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAE1D,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAClC,IAAA,0BAAgB,EAAC,OAAO,EAAE,8BAAoB,CAAC,CAAC;IAChD,IAAA,0BAAgB,EAAC,OAAO,EAAE,8BAAoB,CAAC,CAAC;IAChD,IAAA,gCAAsB,EAAC,OAAO,EAAE,8BAAoB,CAAC,IAAI,EAAE,iCAAuB,CAAC,CAAC;IACpF,IAAA,gCAAsB,EAAC,OAAO,EAAE,4BAAkB,CAAC,IAAI,EAAE,iCAAuB,CAAC,CAAC;IAClF,IAAA,gCAAsB,EAAC,OAAO,EAAE,uBAAa,CAAC,IAAI,EAAE,iCAAuB,CAAC,CAAC;IAC7E,IAAA,gCAAsB,EAAC,OAAO,EAAE,4BAAkB,CAAC,IAAI,EAAE,iCAAuB,CAAC,CAAC;IAClF,IAAA,gCAAsB,EAAC,OAAO,EAAE,qBAAW,CAAC,IAAI,EAAE,iCAAuB,CAAC,CAAC;IAC3E,IAAA,gCAAsB,EAAC,OAAO,EAAE,6CAAuB,CAAC,IAAI,EAAE,iCAAuB,CAAC,CAAC;IACvF,IAAA,gCAAsB,EAAC,OAAO,EAAE,2BAAiB,CAAC,IAAI,EAAE,8BAAsB,CAAC,CAAC;IAChF,IAAA,gCAAsB,EAAC,OAAO,EAAE,kCAAwB,CAAC,IAAI,EAAE,8BAAsB,CAAC,CAAC;IACvF,IAAA,gCAAsB,EAAC,OAAO,EAAE,6CAAuB,CAAC,IAAI,EAAE,8BAAsB,CAAC,CAAC;AAC1F,CAAC,CAAC,CAAC;AAEH,kBAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/hover/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAuD;AACvD,yCAA4C;AAC5C,qCAgBiB;AACjB,8FAAyF;AACzF,gFAAiF;AACjF,mCAAiD;AAEjD,MAAM,eAAe,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACnE,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAClC,IAAA,wBAAa,EAAC,OAAO,EAAE,eAAK,CAAC,uBAAuB,EAAE,6CAAoB,CAAC,CAAC;IAC5E,IAAA,wBAAa,EAAC,OAAO,EAAE,eAAK,CAAC,aAAa,EAAE,8BAAsB,CAAC,CAAC;IACpE,IAAA,wBAAa,EAAC,OAAO,EAAE,eAAK,CAAC,kBAAkB,EAAE,iCAAuB,CAAC,CAAC;IAC1E,IAAA,wBAAa,EAAC,OAAO,EAAE,eAAK,CAAC,WAAW,EAAE,0BAAgB,CAAC,CAAC;IAE5D,IAAI,CAAa,eAAK,CAAC,UAAU,CAAC,CAAC,eAAe,CAAC;QAC/C,cAAc,EAAE,SAAS;QACzB,aAAa,EAAE,SAAS;QACxB,SAAS,EAAE,KAAK;QAChB,oBAAoB,EAAE,SAAS;KAClC,CAAC,CAAC;IACH,IAAI,CAAC,iCAAuB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAE1D,IAAA,0BAAgB,EAAC,OAAO,EAAE,8BAAoB,CAAC,CAAC;IAChD,IAAA,0BAAgB,EAAC,OAAO,EAAE,8BAAoB,CAAC,CAAC;IAChD,IAAA,gCAAsB,EAAC,OAAO,EAAE,8BAAoB,CAAC,IAAI,EAAE,iCAAuB,CAAC,CAAC;IACpF,IAAA,gCAAsB,EAAC,OAAO,EAAE,4BAAkB,CAAC,IAAI,EAAE,iCAAuB,CAAC,CAAC;IAClF,IAAA,gCAAsB,EAAC,OAAO,EAAE,uBAAa,CAAC,IAAI,EAAE,iCAAuB,CAAC,CAAC;IAC7E,IAAA,gCAAsB,EAAC,OAAO,EAAE,4BAAkB,CAAC,IAAI,EAAE,iCAAuB,CAAC,CAAC;IAClF,IAAA,gCAAsB,EAAC,OAAO,EAAE,qBAAW,CAAC,IAAI,EAAE,iCAAuB,CAAC,CAAC;IAC3E,IAAA,gCAAsB,EAAC,OAAO,EAAE,6CAAuB,CAAC,IAAI,EAAE,iCAAuB,CAAC,CAAC;IACvF,IAAA,gCAAsB,EAAC,OAAO,EAAE,2BAAiB,CAAC,IAAI,EAAE,8BAAsB,CAAC,CAAC;IAChF,IAAA,gCAAsB,EAAC,OAAO,EAAE,kCAAwB,CAAC,IAAI,EAAE,8BAAsB,CAAC,CAAC;IACvF,IAAA,gCAAsB,EAAC,OAAO,EAAE,6CAAuB,CAAC,IAAI,EAAE,8BAAsB,CAAC,CAAC;AAC1F,CAAC,CAAC,CAAC;AAEH,kBAAe,eAAe,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /********************************************************************************
2
- * Copyright (c) 2019-2022 EclipseSource and others.
2
+ * Copyright (c) 2019-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
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/layout/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAa5C,QAAA,MAAM,YAAY,iBAShB,CAAC;AAEH,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/layout/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAS5C,QAAA,MAAM,YAAY,iBAIhB,CAAC;AAEH,eAAe,YAAY,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /********************************************************************************
4
- * Copyright (c) 2019-2022 EclipseSource and others.
4
+ * Copyright (c) 2019-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
@@ -17,19 +17,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  ********************************************************************************/
18
18
  const inversify_1 = require("inversify");
19
19
  const sprotty_1 = require("sprotty");
20
- const freeform_layout_1 = require("./freeform-layout");
21
- const hbox_layout_1 = require("./hbox-layout");
22
20
  const layout_elements_action_1 = require("./layout-elements-action");
23
- const layouter_1 = require("./layouter");
24
- const vbox_layout_1 = require("./vbox-layout");
25
21
  const layoutModule = new inversify_1.ContainerModule((bind, _unbind, isBound, rebind) => {
26
22
  const context = { bind, isBound };
27
23
  (0, sprotty_1.configureActionHandler)(context, layout_elements_action_1.ResizeElementsAction.KIND, layout_elements_action_1.ResizeElementsActionHandler);
28
24
  (0, sprotty_1.configureActionHandler)(context, layout_elements_action_1.AlignElementsAction.KIND, layout_elements_action_1.AlignElementsActionHandler);
29
- rebind(sprotty_1.VBoxLayouter).to(vbox_layout_1.VBoxLayouterExt);
30
- rebind(sprotty_1.HBoxLayouter).to(hbox_layout_1.HBoxLayouterExt);
31
- rebind(sprotty_1.TYPES.Layouter).to(layouter_1.LayouterExt);
32
- (0, sprotty_1.configureLayout)({ bind, isBound }, freeform_layout_1.FreeFormLayouter.KIND, freeform_layout_1.FreeFormLayouter);
33
25
  });
34
26
  exports.default = layoutModule;
35
27
  //# sourceMappingURL=di.config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/layout/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,qCAAqG;AACrG,uDAAqD;AACrD,+CAAgD;AAChD,qEAKkC;AAClC,yCAAyC;AACzC,+CAAgD;AAEhD,MAAM,YAAY,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IACxE,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAClC,IAAA,gCAAsB,EAAC,OAAO,EAAE,6CAAoB,CAAC,IAAI,EAAE,oDAA2B,CAAC,CAAC;IACxF,IAAA,gCAAsB,EAAC,OAAO,EAAE,4CAAmB,CAAC,IAAI,EAAE,mDAA0B,CAAC,CAAC;IAEtF,MAAM,CAAC,sBAAY,CAAC,CAAC,EAAE,CAAC,6BAAe,CAAC,CAAC;IACzC,MAAM,CAAC,sBAAY,CAAC,CAAC,EAAE,CAAC,6BAAe,CAAC,CAAC;IACzC,MAAM,CAAC,eAAK,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,sBAAW,CAAC,CAAC;IACvC,IAAA,yBAAe,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,kCAAgB,CAAC,IAAI,EAAE,kCAAgB,CAAC,CAAC;AAChF,CAAC,CAAC,CAAC;AAEH,kBAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/layout/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,qCAAiD;AACjD,qEAKkC;AAElC,MAAM,YAAY,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IACxE,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAClC,IAAA,gCAAsB,EAAC,OAAO,EAAE,6CAAoB,CAAC,IAAI,EAAE,oDAA2B,CAAC,CAAC;IACxF,IAAA,gCAAsB,EAAC,OAAO,EAAE,4CAAmB,CAAC,IAAI,EAAE,mDAA0B,CAAC,CAAC;AAC1F,CAAC,CAAC,CAAC;AAEH,kBAAe,YAAY,CAAC"}
@@ -1,3 +1,4 @@
1
1
  import { ContainerModule } from 'inversify';
2
- export declare const navigationModule: ContainerModule;
2
+ declare const navigationModule: ContainerModule;
3
+ export default navigationModule;
3
4
  //# sourceMappingURL=di.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/navigation/di.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAK5C,eAAO,MAAM,gBAAgB,iBAO3B,CAAC"}
1
+ {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/navigation/di.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAK5C,QAAA,MAAM,gBAAgB,iBAOpB,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.navigationModule = void 0;
4
3
  /********************************************************************************
5
- * Copyright (c) 2020-2021 EclipseSource and others.
4
+ * Copyright (c) 2020-2023 EclipseSource and others.
6
5
  *
7
6
  * This program and the accompanying materials are made available under the
8
7
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -21,7 +20,7 @@ const inversify_1 = require("inversify");
21
20
  const sprotty_1 = require("sprotty");
22
21
  const navigation_action_handler_1 = require("./navigation-action-handler");
23
22
  const navigation_target_resolver_1 = require("./navigation-target-resolver");
24
- exports.navigationModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
23
+ const navigationModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
25
24
  bind(navigation_target_resolver_1.NavigationTargetResolver).toSelf().inSingletonScope();
26
25
  bind(navigation_action_handler_1.NavigationActionHandler).toSelf().inSingletonScope();
27
26
  (0, sprotty_1.configureActionHandler)({ bind, isBound }, navigation_action_handler_1.NavigateAction.KIND, navigation_action_handler_1.NavigationActionHandler);
@@ -29,4 +28,5 @@ exports.navigationModule = new inversify_1.ContainerModule((bind, _unbind, isBou
29
28
  (0, sprotty_1.configureActionHandler)({ bind, isBound }, navigation_action_handler_1.ProcessNavigationArgumentsAction.KIND, navigation_action_handler_1.NavigationActionHandler);
30
29
  (0, sprotty_1.configureActionHandler)({ bind, isBound }, protocol_1.NavigateToExternalTargetAction.KIND, navigation_action_handler_1.NavigationActionHandler);
31
30
  });
31
+ exports.default = navigationModule;
32
32
  //# sourceMappingURL=di.config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/navigation/di.config.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAgG;AAChG,yCAA4C;AAC5C,qCAAiD;AACjD,2EAAwH;AACxH,6EAAwE;AAE3D,QAAA,gBAAgB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IAC3E,IAAI,CAAC,qDAAwB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC3D,IAAI,CAAC,mDAAuB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC1D,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,0CAAc,CAAC,IAAI,EAAE,mDAAuB,CAAC,CAAC;IACxF,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,iCAAsB,CAAC,IAAI,EAAE,mDAAuB,CAAC,CAAC;IAChG,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,4DAAgC,CAAC,IAAI,EAAE,mDAAuB,CAAC,CAAC;IAC1G,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,yCAA8B,CAAC,IAAI,EAAE,mDAAuB,CAAC,CAAC;AAC5G,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/navigation/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAgG;AAChG,yCAA4C;AAC5C,qCAAiD;AACjD,2EAAwH;AACxH,6EAAwE;AAExE,MAAM,gBAAgB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACpE,IAAI,CAAC,qDAAwB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC3D,IAAI,CAAC,mDAAuB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC1D,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,0CAAc,CAAC,IAAI,EAAE,mDAAuB,CAAC,CAAC;IACxF,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,iCAAsB,CAAC,IAAI,EAAE,mDAAuB,CAAC,CAAC;IAChG,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,4DAAgC,CAAC,IAAI,EAAE,mDAAuB,CAAC,CAAC;IAC1G,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,yCAA8B,CAAC,IAAI,EAAE,mDAAuB,CAAC,CAAC;AAC5G,CAAC,CAAC,CAAC;AAEH,kBAAe,gBAAgB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /********************************************************************************
2
- * Copyright (c) 2020-2022 EclipseSource and others.
2
+ * Copyright (c) 2020-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
@@ -81,7 +81,7 @@ export declare namespace ProcessNavigationArgumentsAction {
81
81
  * *(a)* the navigation target already specifies element IDs, in which case this action handler navigates
82
82
  * to the specified elements directly, by the selecting them and centering them in the viewport.
83
83
  * *(b)* the arguments of the navigation targets don't contain element IDs, but other arguments, the
84
- * navigation target needs to be resolved into actual elment IDs by the `NavigationTargetResolver`.
84
+ * navigation target needs to be resolved into actual element IDs by the `NavigationTargetResolver`.
85
85
  * This can for instance be useful, if the navigation deals with queries or some other more complex
86
86
  * logic that can't be dealt with on the client.
87
87
  * *(c)* the target isn't resolved by the `NavigationTargetResolver`, e.g. because the `uri` doesn't match
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.NavigationActionHandler = exports.ProcessNavigationArgumentsAction = exports.NavigateAction = void 0;
13
13
  /********************************************************************************
14
- * Copyright (c) 2020-2022 EclipseSource and others.
14
+ * Copyright (c) 2020-2023 EclipseSource and others.
15
15
  *
16
16
  * This program and the accompanying materials are made available under the
17
17
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -71,7 +71,7 @@ var ProcessNavigationArgumentsAction;
71
71
  * *(a)* the navigation target already specifies element IDs, in which case this action handler navigates
72
72
  * to the specified elements directly, by the selecting them and centering them in the viewport.
73
73
  * *(b)* the arguments of the navigation targets don't contain element IDs, but other arguments, the
74
- * navigation target needs to be resolved into actual elment IDs by the `NavigationTargetResolver`.
74
+ * navigation target needs to be resolved into actual element IDs by the `NavigationTargetResolver`.
75
75
  * This can for instance be useful, if the navigation deals with queries or some other more complex
76
76
  * logic that can't be dealt with on the client.
77
77
  * *(c)* the target isn't resolved by the `NavigationTargetResolver`, e.g. because the `uri` doesn't match
@@ -1,18 +1,3 @@
1
- /********************************************************************************
2
- * Copyright (c) 2019-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
2
  /**
18
3
  * This module is not required the diagram is deployed in Theia with the `GLSPDiagramWidget`
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/save/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAI5C;;;GAGG;AACH,QAAA,MAAM,UAAU,iBAEd,CAAC;AAEH,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/save/di.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAI5C;;;GAGG;AACH,QAAA,MAAM,UAAU,iBAEd,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /********************************************************************************
4
- * Copyright (c) 2019-2022 EclipseSource and others.
4
+ * Copyright (c) 2019-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,6 +15,7 @@ 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 types_1 = require("../../base/types");
20
21
  const save_keylistener_1 = require("./save-keylistener");
@@ -23,7 +24,7 @@ const save_keylistener_1 = require("./save-keylistener");
23
24
  * but only intended to be used in a standalone deployment of GLSP.
24
25
  */
25
26
  const saveModule = new inversify_1.ContainerModule(bind => {
26
- bind(types_1.TYPES.KeyListener).to(save_keylistener_1.SaveModelKeyboardListener);
27
+ (0, protocol_1.bindAsService)(bind, types_1.TYPES.KeyListener, save_keylistener_1.SaveModelKeyboardListener);
27
28
  });
28
29
  exports.default = saveModule;
29
30
  //# sourceMappingURL=di.config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/save/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,4CAAyC;AACzC,yDAA+D;AAE/D;;;GAGG;AACH,MAAM,UAAU,GAAG,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IAC1C,IAAI,CAAC,aAAK,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,4CAAyB,CAAC,CAAC;AAC1D,CAAC,CAAC,CAAC;AAEH,kBAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/save/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAuD;AACvD,yCAA4C;AAC5C,4CAAyC;AACzC,yDAA+D;AAE/D;;;GAGG;AACH,MAAM,UAAU,GAAG,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IAC1C,IAAA,wBAAa,EAAC,IAAI,EAAE,aAAK,CAAC,WAAW,EAAE,4CAAyB,CAAC,CAAC;AACtE,CAAC,CAAC,CAAC;AAEH,kBAAe,UAAU,CAAC"}
@@ -1,18 +1,3 @@
1
- /********************************************************************************
2
- * Copyright (c) 2019-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
2
  declare const glspSelectModule: ContainerModule;
18
3
  export default glspSelectModule;
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/select/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAO5C,QAAA,MAAM,gBAAgB,iBAQpB,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/select/di.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAO5C,QAAA,MAAM,gBAAgB,iBAQpB,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) 2019-2022 EclipseSource and others.
4
+ * Copyright (c) 2019-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,6 +15,7 @@ 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
21
  const types_1 = require("../../base/types");
@@ -22,12 +23,12 @@ const select_feedback_action_1 = require("./select-feedback-action");
22
23
  const select_mouse_listener_1 = require("./select-mouse-listener");
23
24
  const selection_service_1 = require("./selection-service");
24
25
  const glspSelectModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
25
- bind(selection_service_1.SelectionService).toSelf().inSingletonScope();
26
- bind(types_1.TYPES.SelectionService).toService(selection_service_1.SelectionService);
27
- (0, sprotty_1.configureCommand)({ bind, isBound }, selection_service_1.SelectCommand);
28
- (0, sprotty_1.configureCommand)({ bind, isBound }, selection_service_1.SelectAllCommand);
29
- (0, sprotty_1.configureCommand)({ bind, isBound }, select_feedback_action_1.SelectFeedbackCommand);
30
- bind(types_1.TYPES.MouseListener).to(select_mouse_listener_1.RankedSelectMouseListener);
26
+ const context = { bind, isBound };
27
+ (0, protocol_1.bindAsService)(context, types_1.TYPES.SelectionService, selection_service_1.SelectionService);
28
+ (0, sprotty_1.configureCommand)(context, selection_service_1.SelectCommand);
29
+ (0, sprotty_1.configureCommand)(context, selection_service_1.SelectAllCommand);
30
+ (0, sprotty_1.configureCommand)(context, select_feedback_action_1.SelectFeedbackCommand);
31
+ (0, protocol_1.bindAsService)(context, types_1.TYPES.MouseListener, select_mouse_listener_1.RankedSelectMouseListener);
31
32
  bind(types_1.TYPES.SModelRootListener).toService(selection_service_1.SelectionService);
32
33
  });
33
34
  exports.default = glspSelectModule;
@@ -1 +1 @@
1
- {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/select/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,qCAA2C;AAC3C,4CAAyC;AACzC,qEAAiE;AACjE,mEAAoE;AACpE,2DAAwF;AAExF,MAAM,gBAAgB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACpE,IAAI,CAAC,oCAAgB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACnD,IAAI,CAAC,aAAK,CAAC,gBAAgB,CAAC,CAAC,SAAS,CAAC,oCAAgB,CAAC,CAAC;IACzD,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,iCAAa,CAAC,CAAC;IACnD,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,oCAAgB,CAAC,CAAC;IACtD,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,8CAAqB,CAAC,CAAC;IAC3D,IAAI,CAAC,aAAK,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,iDAAyB,CAAC,CAAC;IACxD,IAAI,CAAC,aAAK,CAAC,kBAAkB,CAAC,CAAC,SAAS,CAAC,oCAAgB,CAAC,CAAC;AAC/D,CAAC,CAAC,CAAC;AAEH,kBAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/select/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAuD;AACvD,yCAA4C;AAC5C,qCAA2C;AAC3C,4CAAyC;AACzC,qEAAiE;AACjE,mEAAoE;AACpE,2DAAwF;AAExF,MAAM,gBAAgB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACpE,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAClC,IAAA,wBAAa,EAAC,OAAO,EAAE,aAAK,CAAC,gBAAgB,EAAE,oCAAgB,CAAC,CAAC;IACjE,IAAA,0BAAgB,EAAC,OAAO,EAAE,iCAAa,CAAC,CAAC;IACzC,IAAA,0BAAgB,EAAC,OAAO,EAAE,oCAAgB,CAAC,CAAC;IAC5C,IAAA,0BAAgB,EAAC,OAAO,EAAE,8CAAqB,CAAC,CAAC;IACjD,IAAA,wBAAa,EAAC,OAAO,EAAE,aAAK,CAAC,aAAa,EAAE,iDAAyB,CAAC,CAAC;IACvE,IAAI,CAAC,aAAK,CAAC,kBAAkB,CAAC,CAAC,SAAS,CAAC,oCAAgB,CAAC,CAAC;AAC/D,CAAC,CAAC,CAAC;AAEH,kBAAe,gBAAgB,CAAC"}
@@ -6,6 +6,23 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
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
+ /* eslint-disable import/no-deprecated,no-unused-expressions */
25
+ const protocol_1 = require("@eclipse-glsp/protocol");
9
26
  const chai_1 = require("chai");
10
27
  const inversify_1 = require("inversify");
11
28
  const sprotty_1 = require("sprotty");
@@ -55,8 +72,7 @@ class MockSelectionListener {
55
72
  }
56
73
  }
57
74
  function createContainer() {
58
- const container = new inversify_1.Container();
59
- container.load(sprotty_1.defaultModule);
75
+ const container = (0, protocol_1.initializeContainer)(new inversify_1.Container(), sprotty_1.defaultModule);
60
76
  // eslint-disable-next-line deprecation/deprecation
61
77
  container.rebind(types_1.TYPES.IModelFactory).to(sprotty_1.SGraphFactory).inSingletonScope();
62
78
  container.bind(types_1.TYPES.IFeedbackActionDispatcher).to(MockFeedbackActionDispatcher).inSingletonScope();
@@ -178,7 +194,7 @@ describe('SelectionService', () => {
178
194
  selectionService.modelRootChanged(newRoot);
179
195
  assertSelectionAndFeedback(['node1'], ['node2']);
180
196
  });
181
- it('Changing root with new selection correctly selects matchting elements and deselects not matching elements.', () => {
197
+ it('Changing root with new selection correctly selects matching elements and deselects not matching elements.', () => {
182
198
  assertSelectionAndFeedback([], []);
183
199
  selectionService.updateSelection(root, ['node1', 'node2'], []);
184
200
  assertSelectionAndFeedback(['node1', 'node2'], []);