@eclipse-glsp/client 1.1.0-next.a6b28e7.258 → 1.1.0-next.a6d39b4.266

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 (423) hide show
  1. package/css/decoration.css +0 -7
  2. package/css/glsp-sprotty.css +7 -0
  3. package/css/key-shortcut.css +107 -0
  4. package/css/status-overlay.css +75 -0
  5. package/lib/base/action-dispatcher.d.ts +1 -0
  6. package/lib/base/action-dispatcher.d.ts.map +1 -1
  7. package/lib/base/action-dispatcher.js +3 -0
  8. package/lib/base/action-dispatcher.js.map +1 -1
  9. package/lib/base/{di.config.d.ts → default.module.d.ts} +8 -5
  10. package/lib/base/default.module.d.ts.map +1 -0
  11. package/lib/base/{di.config.js → default.module.js} +16 -9
  12. package/lib/base/default.module.js.map +1 -0
  13. package/lib/base/editor-context-service.d.ts +8 -2
  14. package/lib/base/editor-context-service.d.ts.map +1 -1
  15. package/lib/base/editor-context-service.js +24 -8
  16. package/lib/base/editor-context-service.js.map +1 -1
  17. package/lib/base/{actions/focus-change-action.d.ts → focus/focus-state-change-action.d.ts} +1 -1
  18. package/lib/base/focus/focus-state-change-action.d.ts.map +1 -0
  19. package/lib/base/{actions/focus-change-action.js → focus/focus-state-change-action.js} +1 -1
  20. package/lib/base/focus/focus-state-change-action.js.map +1 -0
  21. package/lib/base/{focus-tracker.d.ts → focus/focus-tracker.d.ts} +1 -1
  22. package/lib/base/focus/focus-tracker.d.ts.map +1 -0
  23. package/lib/base/{focus-tracker.js → focus/focus-tracker.js} +3 -3
  24. package/lib/base/focus/focus-tracker.js.map +1 -0
  25. package/lib/base/model/glsp-model-source.d.ts +58 -0
  26. package/lib/base/model/glsp-model-source.d.ts.map +1 -0
  27. package/lib/base/model/glsp-model-source.js +137 -0
  28. package/lib/base/model/glsp-model-source.js.map +1 -0
  29. package/lib/base/selection-service.spec.js +3 -3
  30. package/lib/base/selection-service.spec.js.map +1 -1
  31. package/lib/{container-modules.d.ts → default-modules.d.ts} +7 -6
  32. package/lib/default-modules.d.ts.map +1 -0
  33. package/lib/default-modules.js +152 -0
  34. package/lib/default-modules.js.map +1 -0
  35. package/lib/features/accessibility/{di.config.d.ts → accessibility-module.d.ts} +3 -3
  36. package/lib/features/accessibility/accessibility-module.d.ts.map +1 -0
  37. package/lib/features/accessibility/{di.config.js → accessibility-module.js} +14 -12
  38. package/lib/features/accessibility/accessibility-module.js.map +1 -0
  39. package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.d.ts +31 -0
  40. package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.d.ts.map +1 -0
  41. package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.js +72 -0
  42. package/lib/features/accessibility/key-shortcut/accessible-key-shortcut-tool.js.map +1 -0
  43. package/lib/features/accessibility/key-shortcut/accessible-key-shortcut.d.ts +53 -0
  44. package/lib/features/accessibility/key-shortcut/accessible-key-shortcut.d.ts.map +1 -0
  45. package/lib/features/accessibility/key-shortcut/accessible-key-shortcut.js +149 -0
  46. package/lib/features/accessibility/key-shortcut/accessible-key-shortcut.js.map +1 -0
  47. package/lib/features/accessibility/key-shortcut/di.config.d.ts +24 -0
  48. package/lib/features/accessibility/key-shortcut/di.config.d.ts.map +1 -0
  49. package/lib/features/accessibility/key-shortcut/di.config.js +37 -0
  50. package/lib/features/accessibility/key-shortcut/di.config.js.map +1 -0
  51. package/lib/features/accessibility/move-zoom/{di.config.d.ts → move-zoom-module.d.ts} +3 -4
  52. package/lib/features/accessibility/move-zoom/move-zoom-module.d.ts.map +1 -0
  53. package/lib/features/accessibility/move-zoom/{di.config.js → move-zoom-module.js} +3 -4
  54. package/lib/features/accessibility/move-zoom/move-zoom-module.js.map +1 -0
  55. package/lib/features/accessibility/resize-key-tool/{di.config.d.ts → resize-key-module.d.ts} +3 -4
  56. package/lib/features/accessibility/resize-key-tool/resize-key-module.d.ts.map +1 -0
  57. package/lib/features/accessibility/resize-key-tool/{di.config.js → resize-key-module.js} +3 -4
  58. package/lib/features/accessibility/resize-key-tool/resize-key-module.js.map +1 -0
  59. package/lib/features/accessibility/resize-key-tool/resize-key-tool.d.ts +6 -1
  60. package/lib/features/accessibility/resize-key-tool/resize-key-tool.d.ts.map +1 -1
  61. package/lib/features/accessibility/resize-key-tool/resize-key-tool.js +26 -3
  62. package/lib/features/accessibility/resize-key-tool/resize-key-tool.js.map +1 -1
  63. package/lib/features/accessibility/search/{di.config.d.ts → search-palette-module.d.ts} +3 -4
  64. package/lib/features/accessibility/search/search-palette-module.d.ts.map +1 -0
  65. package/lib/features/accessibility/search/{di.config.js → search-palette-module.js} +3 -4
  66. package/lib/features/accessibility/search/search-palette-module.js.map +1 -0
  67. package/lib/features/accessibility/search/search-tool.d.ts +8 -1
  68. package/lib/features/accessibility/search/search-tool.d.ts.map +1 -1
  69. package/lib/features/accessibility/search/search-tool.js +23 -1
  70. package/lib/features/accessibility/search/search-tool.js.map +1 -1
  71. package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts +7 -2
  72. package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts.map +1 -1
  73. package/lib/features/accessibility/view-key-tools/movement-key-tool.js +19 -1
  74. package/lib/features/accessibility/view-key-tools/movement-key-tool.js.map +1 -1
  75. package/lib/features/accessibility/view-key-tools/{di.config.d.ts → view-key-tools-module.d.ts} +3 -4
  76. package/lib/features/accessibility/view-key-tools/view-key-tools-module.d.ts.map +1 -0
  77. package/lib/features/accessibility/view-key-tools/{di.config.js → view-key-tools-module.js} +4 -5
  78. package/lib/features/accessibility/view-key-tools/view-key-tools-module.js.map +1 -0
  79. package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts +4 -0
  80. package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts.map +1 -1
  81. package/lib/features/accessibility/view-key-tools/zoom-key-tool.js +23 -0
  82. package/lib/features/accessibility/view-key-tools/zoom-key-tool.js.map +1 -1
  83. package/lib/features/bounds/{di.config.d.ts → bounds-module.d.ts} +3 -4
  84. package/lib/features/bounds/bounds-module.d.ts.map +1 -0
  85. package/lib/features/bounds/{di.config.js → bounds-module.js} +3 -4
  86. package/lib/features/bounds/bounds-module.js.map +1 -0
  87. package/lib/features/bounds/layouter-test-util.spec.js +2 -2
  88. package/lib/features/bounds/layouter-test-util.spec.js.map +1 -1
  89. package/lib/features/command-palette/{di.config.d.ts → command-palette-module.d.ts} +3 -4
  90. package/lib/features/command-palette/command-palette-module.d.ts.map +1 -0
  91. package/lib/features/command-palette/{di.config.js → command-palette-module.js} +3 -4
  92. package/lib/features/command-palette/command-palette-module.js.map +1 -0
  93. package/lib/features/{select/di.config.d.ts → context-menu/context-menu-module.d.ts} +3 -4
  94. package/lib/features/context-menu/context-menu-module.d.ts.map +1 -0
  95. package/lib/features/context-menu/{di.config.js → context-menu-module.js} +4 -5
  96. package/lib/features/context-menu/context-menu-module.js.map +1 -0
  97. package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.d.ts +1 -3
  98. package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.d.ts.map +1 -1
  99. package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.js +8 -13
  100. package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.js.map +1 -1
  101. package/lib/features/copy-paste/copy-paste-context-menu.js +1 -1
  102. package/lib/features/copy-paste/copy-paste-context-menu.js.map +1 -1
  103. package/lib/features/copy-paste/{di.config.d.ts → copy-paste-modules.d.ts} +7 -7
  104. package/lib/features/copy-paste/copy-paste-modules.d.ts.map +1 -0
  105. package/lib/features/copy-paste/{di.config.js → copy-paste-modules.js} +8 -9
  106. package/lib/features/copy-paste/copy-paste-modules.js.map +1 -0
  107. package/lib/features/decoration/{di.config.d.ts → decoration-module.d.ts} +3 -4
  108. package/lib/features/decoration/decoration-module.d.ts.map +1 -0
  109. package/lib/features/decoration/{di.config.js → decoration-module.js} +3 -4
  110. package/lib/features/decoration/decoration-module.js.map +1 -0
  111. package/lib/features/export/export-modules.d.ts +24 -0
  112. package/lib/features/export/export-modules.d.ts.map +1 -0
  113. package/lib/features/export/{di.config.js → export-modules.js} +15 -5
  114. package/lib/features/export/export-modules.js.map +1 -0
  115. package/lib/features/export/export-svg-action-handler.d.ts +11 -0
  116. package/lib/features/export/export-svg-action-handler.d.ts.map +1 -0
  117. package/lib/features/export/export-svg-action-handler.js +42 -0
  118. package/lib/features/export/export-svg-action-handler.js.map +1 -0
  119. package/lib/features/{layout/di.config.d.ts → hints/type-hints-module.d.ts} +3 -4
  120. package/lib/features/hints/type-hints-module.d.ts.map +1 -0
  121. package/lib/features/hints/{di.config.js → type-hints-module.js} +3 -4
  122. package/lib/features/hints/type-hints-module.js.map +1 -0
  123. package/lib/features/hover/{di.config.d.ts → hover-module.d.ts} +3 -4
  124. package/lib/features/hover/hover-module.d.ts.map +1 -0
  125. package/lib/features/hover/{di.config.js → hover-module.js} +6 -7
  126. package/lib/features/hover/hover-module.js.map +1 -0
  127. package/lib/features/hover/hover.js +2 -2
  128. package/lib/features/hover/hover.js.map +1 -1
  129. package/lib/features/{edit-label → label-edit}/edit-label-tool.d.ts.map +1 -1
  130. package/lib/features/{edit-label → label-edit}/edit-label-tool.js.map +1 -1
  131. package/lib/features/{edit-label → label-edit}/edit-label-validator.d.ts.map +1 -1
  132. package/lib/features/{edit-label → label-edit}/edit-label-validator.js.map +1 -1
  133. package/lib/features/{hints/di.config.d.ts → label-edit/label-edit-module.d.ts} +3 -4
  134. package/lib/features/label-edit/label-edit-module.d.ts.map +1 -0
  135. package/lib/features/{edit-label/di.config.js → label-edit/label-edit-module.js} +3 -4
  136. package/lib/features/label-edit/label-edit-module.js.map +1 -0
  137. package/lib/features/layout/layout-elements-action.spec.js +2 -1
  138. package/lib/features/layout/layout-elements-action.spec.js.map +1 -1
  139. package/lib/features/{tools/deletion/di.config.d.ts → layout/layout-module.d.ts} +3 -4
  140. package/lib/features/layout/layout-module.d.ts.map +1 -0
  141. package/lib/features/layout/{di.config.js → layout-module.js} +3 -4
  142. package/lib/features/layout/layout-module.js.map +1 -0
  143. package/lib/features/navigation/navigation-action-handler.js +1 -1
  144. package/lib/features/navigation/navigation-action-handler.js.map +1 -1
  145. package/lib/features/navigation/{di.config.d.ts → navigation-module.d.ts} +3 -4
  146. package/lib/features/navigation/navigation-module.d.ts.map +1 -0
  147. package/lib/features/navigation/{di.config.js → navigation-module.js} +3 -4
  148. package/lib/features/navigation/navigation-module.js.map +1 -0
  149. package/lib/features/routing/routing-module.d.ts +18 -0
  150. package/lib/features/routing/routing-module.d.ts.map +1 -0
  151. package/lib/features/routing/routing-module.js +39 -0
  152. package/lib/features/routing/routing-module.js.map +1 -0
  153. package/lib/features/{routing/di.config.d.ts → save/save-module.d.ts} +6 -5
  154. package/lib/features/save/save-module.d.ts.map +1 -0
  155. package/lib/features/save/{di.config.js → save-module.js} +6 -6
  156. package/lib/features/save/save-module.js.map +1 -0
  157. package/lib/features/{save/di.config.d.ts → select/select-module.d.ts} +7 -6
  158. package/lib/features/select/select-module.d.ts.map +1 -0
  159. package/lib/features/select/{di.config.js → select-module.js} +11 -4
  160. package/lib/features/select/select-module.js.map +1 -0
  161. package/lib/features/source-model-watcher/source-model-changed-action-handler.js +1 -1
  162. package/lib/features/source-model-watcher/source-model-changed-action-handler.js.map +1 -1
  163. package/lib/features/{context-menu/di.config.d.ts → source-model-watcher/source-model-wacher-module.d.ts} +3 -4
  164. package/lib/features/source-model-watcher/source-model-wacher-module.d.ts.map +1 -0
  165. package/lib/features/source-model-watcher/{di.config.js → source-model-wacher-module.js} +3 -4
  166. package/lib/features/source-model-watcher/source-model-wacher-module.js.map +1 -0
  167. package/lib/features/status/status-module.d.ts +19 -0
  168. package/lib/features/status/status-module.d.ts.map +1 -0
  169. package/lib/features/status/status-module.js +27 -0
  170. package/lib/features/status/status-module.js.map +1 -0
  171. package/lib/features/status/status-overlay.d.ts +19 -0
  172. package/lib/features/status/status-overlay.d.ts.map +1 -0
  173. package/lib/features/status/status-overlay.js +108 -0
  174. package/lib/features/status/status-overlay.js.map +1 -0
  175. package/lib/features/svg-metadata/{di.config.d.ts → svg-metadata-module.d.ts} +3 -4
  176. package/lib/features/svg-metadata/svg-metadata-module.d.ts.map +1 -0
  177. package/lib/features/svg-metadata/{di.config.js → svg-metadata-module.js} +3 -4
  178. package/lib/features/svg-metadata/svg-metadata-module.js.map +1 -0
  179. package/lib/features/tool-palette/{di.config.d.ts → tool-palette-module.d.ts} +3 -4
  180. package/lib/features/tool-palette/tool-palette-module.d.ts.map +1 -0
  181. package/lib/features/tool-palette/{di.config.js → tool-palette-module.js} +3 -4
  182. package/lib/features/tool-palette/tool-palette-module.js.map +1 -0
  183. package/lib/features/tool-palette/tool-palette.d.ts +1 -1
  184. package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
  185. package/lib/features/tool-palette/tool-palette.js +1 -1
  186. package/lib/features/tool-palette/tool-palette.js.map +1 -1
  187. package/lib/features/{export/di.config.d.ts → tools/change-bounds/change-boounds-tool-module.d.ts} +3 -4
  188. package/lib/features/tools/change-bounds/change-boounds-tool-module.d.ts.map +1 -0
  189. package/lib/features/tools/change-bounds/{di.config.js → change-boounds-tool-module.js} +4 -5
  190. package/lib/features/tools/change-bounds/change-boounds-tool-module.js.map +1 -0
  191. package/lib/features/tools/deletion/deletion-tool-module.d.ts +18 -0
  192. package/lib/features/tools/deletion/deletion-tool-module.d.ts.map +1 -0
  193. package/lib/features/tools/deletion/{di.config.js → deletion-tool-module.js} +3 -4
  194. package/lib/features/tools/deletion/deletion-tool-module.js.map +1 -0
  195. package/lib/features/{edit-label/di.config.d.ts → tools/edge-creation/edege-creation-module.d.ts} +3 -4
  196. package/lib/features/tools/edge-creation/edege-creation-module.d.ts.map +1 -0
  197. package/lib/features/tools/edge-creation/{di.config.js → edege-creation-module.js} +3 -4
  198. package/lib/features/tools/edge-creation/edege-creation-module.js.map +1 -0
  199. package/lib/features/tools/edge-edit/edge-edit-module.d.ts +18 -0
  200. package/lib/features/tools/edge-edit/edge-edit-module.d.ts.map +1 -0
  201. package/lib/features/tools/edge-edit/{di.config.js → edge-edit-module.js} +4 -5
  202. package/lib/features/tools/edge-edit/edge-edit-module.js.map +1 -0
  203. package/lib/features/tools/marquee-selection/marquee-selection-module.d.ts +18 -0
  204. package/lib/features/tools/marquee-selection/marquee-selection-module.d.ts.map +1 -0
  205. package/lib/features/tools/marquee-selection/{di.config.js → marquee-selection-module.js} +3 -4
  206. package/lib/features/tools/marquee-selection/marquee-selection-module.js.map +1 -0
  207. package/lib/features/tools/node-creation/node-creation-module.d.ts +18 -0
  208. package/lib/features/tools/node-creation/node-creation-module.d.ts.map +1 -0
  209. package/lib/features/tools/node-creation/{di.config.js → node-creation-module.js} +3 -4
  210. package/lib/features/tools/node-creation/node-creation-module.js.map +1 -0
  211. package/lib/features/tools/tool-focus-loss-module.d.ts +13 -0
  212. package/lib/features/tools/tool-focus-loss-module.d.ts.map +1 -0
  213. package/lib/features/tools/{enable-default-tools-on-focus-loss.js → tool-focus-loss-module.js} +6 -8
  214. package/lib/features/tools/tool-focus-loss-module.js.map +1 -0
  215. package/lib/features/undo-redo/undo-redo-key-listener.d.ts +23 -0
  216. package/lib/features/undo-redo/undo-redo-key-listener.d.ts.map +1 -0
  217. package/lib/features/undo-redo/undo-redo-key-listener.js +35 -0
  218. package/lib/features/undo-redo/undo-redo-key-listener.js.map +1 -0
  219. package/lib/features/undo-redo/undo-redo-module.d.ts +23 -0
  220. package/lib/features/undo-redo/undo-redo-module.d.ts.map +1 -0
  221. package/lib/features/undo-redo/undo-redo-module.js +30 -0
  222. package/lib/features/undo-redo/undo-redo-module.js.map +1 -0
  223. package/lib/features/validation/marker-navigator.spec.js +4 -2
  224. package/lib/features/validation/marker-navigator.spec.js.map +1 -1
  225. package/lib/features/validation/validation-modules.d.ts +25 -0
  226. package/lib/features/validation/validation-modules.d.ts.map +1 -0
  227. package/lib/features/validation/{di.config.js → validation-modules.js} +9 -10
  228. package/lib/features/validation/validation-modules.js.map +1 -0
  229. package/lib/features/viewport/{di.config.d.ts → viewport-modules.d.ts} +9 -4
  230. package/lib/features/viewport/viewport-modules.d.ts.map +1 -0
  231. package/lib/features/viewport/{di.config.js → viewport-modules.js} +12 -5
  232. package/lib/features/viewport/viewport-modules.js.map +1 -0
  233. package/lib/glsp-sprotty/index.d.ts +2 -3
  234. package/lib/glsp-sprotty/index.d.ts.map +1 -1
  235. package/lib/glsp-sprotty/index.js +41 -36
  236. package/lib/glsp-sprotty/index.js.map +1 -1
  237. package/lib/index.d.ts +43 -41
  238. package/lib/index.d.ts.map +1 -1
  239. package/lib/index.js +59 -90
  240. package/lib/index.js.map +1 -1
  241. package/lib/lib/model.d.ts +1 -2
  242. package/lib/lib/model.d.ts.map +1 -1
  243. package/lib/lib/model.js +1 -2
  244. package/lib/lib/model.js.map +1 -1
  245. package/lib/standalone-modules.d.ts +38 -0
  246. package/lib/standalone-modules.d.ts.map +1 -0
  247. package/lib/standalone-modules.js +84 -0
  248. package/lib/standalone-modules.js.map +1 -0
  249. package/lib/utils/smodel-util.spec.js +2 -1
  250. package/lib/utils/smodel-util.spec.js.map +1 -1
  251. package/lib/views/base-view-module.d.ts +2 -4
  252. package/lib/views/base-view-module.d.ts.map +1 -1
  253. package/lib/views/base-view-module.js +2 -4
  254. package/lib/views/base-view-module.js.map +1 -1
  255. package/package.json +4 -3
  256. package/src/base/action-dispatcher.ts +4 -0
  257. package/src/base/{di.config.ts → default.module.ts} +19 -8
  258. package/src/base/editor-context-service.ts +29 -9
  259. package/src/base/{focus-tracker.ts → focus/focus-tracker.ts} +1 -1
  260. package/src/base/model/glsp-model-source.ts +149 -0
  261. package/src/base/selection-service.spec.ts +3 -12
  262. package/src/{container-modules.ts → default-modules.ts} +59 -49
  263. package/src/features/accessibility/README.md +7 -7
  264. package/src/features/accessibility/{di.config.ts → accessibility-module.ts} +8 -6
  265. package/src/features/accessibility/key-shortcut/accessible-key-shortcut-tool.ts +55 -0
  266. package/src/features/accessibility/key-shortcut/accessible-key-shortcut.ts +182 -0
  267. package/src/features/accessibility/key-shortcut/di.config.ts +35 -0
  268. package/src/features/accessibility/move-zoom/{di.config.ts → move-zoom-module.ts} +2 -3
  269. package/src/features/accessibility/resize-key-tool/{di.config.ts → resize-key-module.ts} +2 -3
  270. package/src/features/accessibility/resize-key-tool/resize-key-tool.ts +22 -1
  271. package/src/features/accessibility/search/{di.config.ts → search-palette-module.ts} +2 -3
  272. package/src/features/accessibility/search/search-tool.ts +24 -5
  273. package/src/features/accessibility/view-key-tools/movement-key-tool.ts +19 -3
  274. package/src/features/accessibility/view-key-tools/{di.config.ts → view-key-tools-module.ts} +3 -4
  275. package/src/features/accessibility/view-key-tools/zoom-key-tool.ts +22 -1
  276. package/src/features/bounds/{di.config.ts → bounds-module.ts} +2 -4
  277. package/src/features/bounds/layouter-test-util.spec.ts +1 -1
  278. package/src/features/command-palette/{di.config.ts → command-palette-module.ts} +2 -5
  279. package/src/features/context-menu/{di.config.ts → context-menu-module.ts} +4 -7
  280. package/src/features/context-menu/selection-service-aware-context-menu-mouse-listener.ts +2 -6
  281. package/src/features/copy-paste/copy-paste-context-menu.ts +1 -1
  282. package/src/features/copy-paste/{di.config.ts → copy-paste-modules.ts} +13 -11
  283. package/src/features/decoration/{di.config.ts → decoration-module.ts} +2 -5
  284. package/src/features/export/{di.config.ts → export-modules.ts} +27 -5
  285. package/src/features/export/export-svg-action-handler.ts +32 -0
  286. package/src/features/hints/{di.config.ts → type-hints-module.ts} +2 -5
  287. package/src/features/hover/{di.config.ts → hover-module.ts} +3 -5
  288. package/src/features/hover/hover.ts +1 -1
  289. package/src/features/{edit-label/di.config.ts → label-edit/label-edit-module.ts} +2 -5
  290. package/src/features/layout/layout-elements-action.spec.ts +2 -2
  291. package/src/features/layout/{di.config.ts → layout-module.ts} +2 -5
  292. package/src/features/navigation/navigation-action-handler.ts +1 -1
  293. package/src/features/navigation/{di.config.ts → navigation-module.ts} +2 -5
  294. package/src/features/routing/routing-module.ts +59 -0
  295. package/src/features/save/{di.config.ts → save-module.ts} +5 -7
  296. package/src/features/select/{di.config.ts → select-module.ts} +13 -4
  297. package/src/features/source-model-watcher/source-model-changed-action-handler.ts +1 -1
  298. package/src/features/source-model-watcher/{di.config.ts → source-model-wacher-module.ts} +2 -5
  299. package/src/features/status/status-module.ts +25 -0
  300. package/src/features/status/status-overlay.ts +108 -0
  301. package/src/features/svg-metadata/{di.config.ts → svg-metadata-module.ts} +2 -5
  302. package/src/features/tool-palette/{di.config.ts → tool-palette-module.ts} +2 -5
  303. package/src/features/tool-palette/tool-palette.ts +1 -1
  304. package/src/features/tools/change-bounds/{di.config.ts → change-boounds-tool-module.ts} +3 -6
  305. package/src/features/tools/deletion/{di.config.ts → deletion-tool-module.ts} +2 -5
  306. package/src/features/tools/edge-creation/{di.config.ts → edege-creation-module.ts} +2 -5
  307. package/src/features/tools/edge-edit/{di.config.ts → edge-edit-module.ts} +3 -6
  308. package/src/features/tools/marquee-selection/{di.config.ts → marquee-selection-module.ts} +2 -5
  309. package/src/features/tools/node-creation/{di.config.ts → node-creation-module.ts} +2 -5
  310. package/src/features/tools/{enable-default-tools-on-focus-loss.ts → tool-focus-loss-module.ts} +4 -7
  311. package/{lib/features/tools/enable-default-tools-on-focus-loss.d.ts → src/features/undo-redo/undo-redo-key-listener.ts} +15 -14
  312. package/src/features/undo-redo/undo-redo-module.ts +28 -0
  313. package/src/features/validation/marker-navigator.spec.ts +4 -4
  314. package/src/features/validation/{di.config.ts → validation-modules.ts} +13 -11
  315. package/src/features/viewport/{di.config.ts → viewport-modules.ts} +14 -4
  316. package/src/glsp-sprotty/index.ts +29 -26
  317. package/src/index.ts +43 -75
  318. package/src/lib/model.ts +2 -3
  319. package/src/standalone-modules.ts +87 -0
  320. package/src/utils/smodel-util.spec.ts +2 -2
  321. package/src/views/base-view-module.ts +2 -4
  322. package/lib/base/actions/focus-change-action.d.ts.map +0 -1
  323. package/lib/base/actions/focus-change-action.js.map +0 -1
  324. package/lib/base/di.config.d.ts.map +0 -1
  325. package/lib/base/di.config.js.map +0 -1
  326. package/lib/base/focus-tracker.d.ts.map +0 -1
  327. package/lib/base/focus-tracker.js.map +0 -1
  328. package/lib/base/source-uri-aware.d.ts +0 -5
  329. package/lib/base/source-uri-aware.d.ts.map +0 -1
  330. package/lib/base/source-uri-aware.js +0 -24
  331. package/lib/base/source-uri-aware.js.map +0 -1
  332. package/lib/container-modules.d.ts.map +0 -1
  333. package/lib/container-modules.js +0 -143
  334. package/lib/container-modules.js.map +0 -1
  335. package/lib/features/accessibility/di.config.d.ts.map +0 -1
  336. package/lib/features/accessibility/di.config.js.map +0 -1
  337. package/lib/features/accessibility/move-zoom/di.config.d.ts.map +0 -1
  338. package/lib/features/accessibility/move-zoom/di.config.js.map +0 -1
  339. package/lib/features/accessibility/resize-key-tool/di.config.d.ts.map +0 -1
  340. package/lib/features/accessibility/resize-key-tool/di.config.js.map +0 -1
  341. package/lib/features/accessibility/search/di.config.d.ts.map +0 -1
  342. package/lib/features/accessibility/search/di.config.js.map +0 -1
  343. package/lib/features/accessibility/view-key-tools/di.config.d.ts.map +0 -1
  344. package/lib/features/accessibility/view-key-tools/di.config.js.map +0 -1
  345. package/lib/features/bounds/di.config.d.ts.map +0 -1
  346. package/lib/features/bounds/di.config.js.map +0 -1
  347. package/lib/features/command-palette/di.config.d.ts.map +0 -1
  348. package/lib/features/command-palette/di.config.js.map +0 -1
  349. package/lib/features/context-menu/di.config.d.ts.map +0 -1
  350. package/lib/features/context-menu/di.config.js.map +0 -1
  351. package/lib/features/copy-paste/di.config.d.ts.map +0 -1
  352. package/lib/features/copy-paste/di.config.js.map +0 -1
  353. package/lib/features/decoration/di.config.d.ts.map +0 -1
  354. package/lib/features/decoration/di.config.js.map +0 -1
  355. package/lib/features/edit-label/di.config.d.ts.map +0 -1
  356. package/lib/features/edit-label/di.config.js.map +0 -1
  357. package/lib/features/export/di.config.d.ts.map +0 -1
  358. package/lib/features/export/di.config.js.map +0 -1
  359. package/lib/features/hints/di.config.d.ts.map +0 -1
  360. package/lib/features/hints/di.config.js.map +0 -1
  361. package/lib/features/hover/di.config.d.ts.map +0 -1
  362. package/lib/features/hover/di.config.js.map +0 -1
  363. package/lib/features/layout/di.config.d.ts.map +0 -1
  364. package/lib/features/layout/di.config.js.map +0 -1
  365. package/lib/features/navigation/di.config.d.ts.map +0 -1
  366. package/lib/features/navigation/di.config.js.map +0 -1
  367. package/lib/features/routing/di.config.d.ts.map +0 -1
  368. package/lib/features/routing/di.config.js +0 -57
  369. package/lib/features/routing/di.config.js.map +0 -1
  370. package/lib/features/save/di.config.d.ts.map +0 -1
  371. package/lib/features/save/di.config.js.map +0 -1
  372. package/lib/features/save/model.d.ts +0 -22
  373. package/lib/features/save/model.d.ts.map +0 -1
  374. package/lib/features/save/model.js +0 -9
  375. package/lib/features/save/model.js.map +0 -1
  376. package/lib/features/select/di.config.d.ts.map +0 -1
  377. package/lib/features/select/di.config.js.map +0 -1
  378. package/lib/features/source-model-watcher/di.config.d.ts +0 -19
  379. package/lib/features/source-model-watcher/di.config.d.ts.map +0 -1
  380. package/lib/features/source-model-watcher/di.config.js.map +0 -1
  381. package/lib/features/svg-metadata/di.config.d.ts.map +0 -1
  382. package/lib/features/svg-metadata/di.config.js.map +0 -1
  383. package/lib/features/tool-palette/di.config.d.ts.map +0 -1
  384. package/lib/features/tool-palette/di.config.js.map +0 -1
  385. package/lib/features/tools/change-bounds/di.config.d.ts +0 -19
  386. package/lib/features/tools/change-bounds/di.config.d.ts.map +0 -1
  387. package/lib/features/tools/change-bounds/di.config.js.map +0 -1
  388. package/lib/features/tools/deletion/di.config.d.ts.map +0 -1
  389. package/lib/features/tools/deletion/di.config.js.map +0 -1
  390. package/lib/features/tools/edge-creation/di.config.d.ts +0 -19
  391. package/lib/features/tools/edge-creation/di.config.d.ts.map +0 -1
  392. package/lib/features/tools/edge-creation/di.config.js.map +0 -1
  393. package/lib/features/tools/edge-edit/di.config.d.ts +0 -19
  394. package/lib/features/tools/edge-edit/di.config.d.ts.map +0 -1
  395. package/lib/features/tools/edge-edit/di.config.js.map +0 -1
  396. package/lib/features/tools/enable-default-tools-on-focus-loss.d.ts.map +0 -1
  397. package/lib/features/tools/enable-default-tools-on-focus-loss.js.map +0 -1
  398. package/lib/features/tools/marquee-selection/di.config.d.ts +0 -19
  399. package/lib/features/tools/marquee-selection/di.config.d.ts.map +0 -1
  400. package/lib/features/tools/marquee-selection/di.config.js.map +0 -1
  401. package/lib/features/tools/node-creation/di.config.d.ts +0 -19
  402. package/lib/features/tools/node-creation/di.config.d.ts.map +0 -1
  403. package/lib/features/tools/node-creation/di.config.js.map +0 -1
  404. package/lib/features/validation/di.config.d.ts +0 -25
  405. package/lib/features/validation/di.config.d.ts.map +0 -1
  406. package/lib/features/validation/di.config.js.map +0 -1
  407. package/lib/features/viewport/di.config.d.ts.map +0 -1
  408. package/lib/features/viewport/di.config.js.map +0 -1
  409. package/lib/model-source/glsp-diagram-server.d.ts +0 -20
  410. package/lib/model-source/glsp-diagram-server.d.ts.map +0 -1
  411. package/lib/model-source/glsp-diagram-server.js +0 -101
  412. package/lib/model-source/glsp-diagram-server.js.map +0 -1
  413. package/src/base/source-uri-aware.ts +0 -23
  414. package/src/features/routing/di.config.ts +0 -82
  415. package/src/features/save/model.ts +0 -26
  416. package/src/model-source/glsp-diagram-server.ts +0 -115
  417. /package/lib/features/{edit-label → label-edit}/edit-label-tool.d.ts +0 -0
  418. /package/lib/features/{edit-label → label-edit}/edit-label-tool.js +0 -0
  419. /package/lib/features/{edit-label → label-edit}/edit-label-validator.d.ts +0 -0
  420. /package/lib/features/{edit-label → label-edit}/edit-label-validator.js +0 -0
  421. /package/src/base/{actions/focus-change-action.ts → focus/focus-state-change-action.ts} +0 -0
  422. /package/src/features/{edit-label → label-edit}/edit-label-tool.ts +0 -0
  423. /package/src/features/{edit-label → label-edit}/edit-label-validator.ts +0 -0
@@ -13,7 +13,6 @@
13
13
  *
14
14
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
- import { ContainerModule } from 'inversify';
17
- declare const deletionToolModule: ContainerModule;
18
- export default deletionToolModule;
19
- //# sourceMappingURL=di.config.d.ts.map
16
+ import { FeatureModule } from '../../glsp-sprotty/index';
17
+ export declare const layoutModule: FeatureModule;
18
+ //# sourceMappingURL=layout-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout-module.d.ts","sourceRoot":"","sources":["../../../src/features/layout/layout-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,aAAa,EAA0B,MAAM,eAAe,CAAC;AAQtE,eAAO,MAAM,YAAY,eAIvB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.layoutModule = void 0;
3
4
  /********************************************************************************
4
5
  * Copyright (c) 2019-2023 EclipseSource and others.
5
6
  *
@@ -15,13 +16,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
16
  *
16
17
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
17
18
  ********************************************************************************/
18
- const inversify_1 = require("inversify");
19
19
  const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
20
20
  const layout_elements_action_1 = require("./layout-elements-action");
21
- const layoutModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
21
+ exports.layoutModule = new _glsp_sprotty_1.FeatureModule((bind, _unbind, isBound) => {
22
22
  const context = { bind, isBound };
23
23
  (0, _glsp_sprotty_1.configureActionHandler)(context, layout_elements_action_1.ResizeElementsAction.KIND, layout_elements_action_1.ResizeElementsActionHandler);
24
24
  (0, _glsp_sprotty_1.configureActionHandler)(context, layout_elements_action_1.AlignElementsAction.KIND, layout_elements_action_1.AlignElementsActionHandler);
25
25
  });
26
- exports.default = layoutModule;
27
- //# sourceMappingURL=di.config.js.map
26
+ //# sourceMappingURL=layout-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout-module.js","sourceRoot":"","sources":["../../../src/features/layout/layout-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAAsE;AACtE,qEAKkC;AAErB,QAAA,YAAY,GAAG,IAAI,6BAAa,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACrE,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAClC,IAAA,sCAAsB,EAAC,OAAO,EAAE,6CAAoB,CAAC,IAAI,EAAE,oDAA2B,CAAC,CAAC;IACxF,IAAA,sCAAsB,EAAC,OAAO,EAAE,4CAAmB,CAAC,IAAI,EAAE,mDAA0B,CAAC,CAAC;AAC1F,CAAC,CAAC,CAAC"}
@@ -190,7 +190,7 @@ let NavigationActionHandler = exports.NavigationActionHandler = class Navigation
190
190
  const timeout = this.notificationTimeout;
191
191
  this.dispatcher.dispatchAll([
192
192
  _glsp_sprotty_1.ServerStatusAction.create(message, { severity, timeout }),
193
- _glsp_sprotty_1.ServerMessageAction.create(message, { severity, timeout })
193
+ _glsp_sprotty_1.ServerMessageAction.create(message, { severity })
194
194
  ]);
195
195
  }
196
196
  };
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-action-handler.js","sourceRoot":"","sources":["../../../src/features/navigation/navigation-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA+C;AAC/C,iDAuBuB;AAEvB,6EAAwE;AA0BxE,IAAiB,cAAc,CAc9B;AAdD,WAAiB,cAAc;IACd,mBAAI,GAAG,UAAU,CAAC;IAE/B,SAAgB,EAAE,CAAC,MAAW;QAC1B,OAAO,sBAAM,CAAC,OAAO,CAAC,MAAM,EAAE,eAAA,IAAI,CAAC,IAAI,IAAA,6BAAa,EAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACjF,CAAC;IAFe,iBAAE,KAEjB,CAAA;IAED,SAAgB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AM,EAAC,qBAAK,CAAC,6BAA6B,CAAC;;qEAA8D;AAC9D;IAA3C,IAAA,kBAAM,EAAC,qDAAwB,CAAC;8BAAqB,qDAAwB;yDAAC;kCAPtE,uBAAuB;IADnC,IAAA,sBAAU,GAAE;GACA,uBAAuB,CAwInC"}
1
+ {"version":3,"file":"navigation-action-handler.js","sourceRoot":"","sources":["../../../src/features/navigation/navigation-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA+C;AAC/C,iDAuBuB;AAEvB,6EAAwE;AA0BxE,IAAiB,cAAc,CAc9B;AAdD,WAAiB,cAAc;IACd,mBAAI,GAAG,UAAU,CAAC;IAE/B,SAAgB,EAAE,CAAC,MAAW;QAC1B,OAAO,sBAAM,CAAC,OAAO,CAAC,MAAM,EAAE,eAAA,IAAI,CAAC,IAAI,IAAA,6BAAa,EAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACjF,CAAC;IAFe,iBAAE,KAEjB,CAAA;IAED,SAAgB,MAAM,CAAC,YAAoB,EAAE,UAA2B,EAAE;QACtE,uBACI,IAAI,EAAE,eAAA,IAAI,EACV,YAAY,IACT,OAAO,EACZ;IACN,CAAC;IANe,qBAAM,SAMrB,CAAA;AACL,CAAC,EAdgB,cAAc,8BAAd,cAAc,QAc9B;AAmBD,IAAiB,gCAAgC,CAahD;AAbD,WAAiB,gCAAgC;IAChC,qCAAI,GAAG,4BAA4B,CAAC;IAEjD,SAAgB,EAAE,CAAC,MAAW;QAC1B,OAAO,sBAAM,CAAC,OAAO,CAAC,MAAM,EAAE,iCAAA,IAAI,CAAC,IAAI,IAAA,6BAAa,EAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzE,CAAC;IAFe,mCAAE,KAEjB,CAAA;IAED,SAAgB,MAAM,CAAC,IAAU;QAC7B,OAAO;YACH,IAAI,EAAE,iCAAA,IAAI;YACV,IAAI;SACP,CAAC;IACN,CAAC;IALe,uCAAM,SAKr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,CAAC;QACpC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACpC,CAAC;IAEO,MAAM,CAAC,QAAwB,EAAE,OAAe;QACpD,MAAM,OAAO,GAAG,IAAI,CAAC,mBAAmB,CAAC;QACzC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;YACxB,kCAAkB,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;YACzD,mCAAmB,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC;SACpD,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AArIoC;IAAhC,IAAA,kBAAM,EAAC,qBAAK,CAAC,OAAO,CAAC;;uDAA2B;AACN;IAA1C,IAAA,kBAAM,EAAC,qBAAK,CAAC,iBAAiB,CAAC;;2DAAyC;AAClB;IAAtD,IAAA,kBAAM,EAAC,qBAAK,CAAC,6BAA6B,CAAC;;8EAA+E;AACpE;IAAtD,IAAA,kBAAM,EAAC,qBAAK,CAAC,6BAA6B,CAAC;;qEAA8D;AAC9D;IAA3C,IAAA,kBAAM,EAAC,qDAAwB,CAAC;8BAAqB,qDAAwB;yDAAC;kCAPtE,uBAAuB;IADnC,IAAA,sBAAU,GAAE;GACA,uBAAuB,CAwInC"}
@@ -13,7 +13,6 @@
13
13
  *
14
14
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
- import { ContainerModule } from 'inversify';
17
- declare const navigationModule: ContainerModule;
18
- export default navigationModule;
19
- //# sourceMappingURL=di.config.d.ts.map
16
+ import { FeatureModule } from '../../glsp-sprotty/index';
17
+ export declare const navigationModule: FeatureModule;
18
+ //# sourceMappingURL=navigation-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation-module.d.ts","sourceRoot":"","sources":["../../../src/features/navigation/navigation-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,aAAa,EAAkF,MAAM,eAAe,CAAC;AAI9H,eAAO,MAAM,gBAAgB,eAO3B,CAAC"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.navigationModule = void 0;
3
4
  /********************************************************************************
4
5
  * Copyright (c) 2020-2023 EclipseSource and others.
5
6
  *
@@ -15,11 +16,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
16
  *
16
17
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
17
18
  ********************************************************************************/
18
- const inversify_1 = require("inversify");
19
19
  const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
20
20
  const navigation_action_handler_1 = require("./navigation-action-handler");
21
21
  const navigation_target_resolver_1 = require("./navigation-target-resolver");
22
- const navigationModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
22
+ exports.navigationModule = new _glsp_sprotty_1.FeatureModule((bind, _unbind, isBound) => {
23
23
  bind(navigation_target_resolver_1.NavigationTargetResolver).toSelf().inSingletonScope();
24
24
  bind(navigation_action_handler_1.NavigationActionHandler).toSelf().inSingletonScope();
25
25
  (0, _glsp_sprotty_1.configureActionHandler)({ bind, isBound }, navigation_action_handler_1.NavigateAction.KIND, navigation_action_handler_1.NavigationActionHandler);
@@ -27,5 +27,4 @@ const navigationModule = new inversify_1.ContainerModule((bind, _unbind, isBound
27
27
  (0, _glsp_sprotty_1.configureActionHandler)({ bind, isBound }, navigation_action_handler_1.ProcessNavigationArgumentsAction.KIND, navigation_action_handler_1.NavigationActionHandler);
28
28
  (0, _glsp_sprotty_1.configureActionHandler)({ bind, isBound }, _glsp_sprotty_1.NavigateToExternalTargetAction.KIND, navigation_action_handler_1.NavigationActionHandler);
29
29
  });
30
- exports.default = navigationModule;
31
- //# sourceMappingURL=di.config.js.map
30
+ //# sourceMappingURL=navigation-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation-module.js","sourceRoot":"","sources":["../../../src/features/navigation/navigation-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAA8H;AAC9H,2EAAwH;AACxH,6EAAwE;AAE3D,QAAA,gBAAgB,GAAG,IAAI,6BAAa,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACzE,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,sCAAsB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,0CAAc,CAAC,IAAI,EAAE,mDAAuB,CAAC,CAAC;IACxF,IAAA,sCAAsB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,sCAAsB,CAAC,IAAI,EAAE,mDAAuB,CAAC,CAAC;IAChG,IAAA,sCAAsB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,4DAAgC,CAAC,IAAI,EAAE,mDAAuB,CAAC,CAAC;IAC1G,IAAA,sCAAsB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,8CAA8B,CAAC,IAAI,EAAE,mDAAuB,CAAC,CAAC;AAC5G,CAAC,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /********************************************************************************
2
+ * Copyright (c) 2019-2023 EclipseSource and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+ import { FeatureModule } from '../../glsp-sprotty/index';
17
+ export declare const routingModule: FeatureModule;
18
+ //# sourceMappingURL=routing-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routing-module.d.ts","sourceRoot":"","sources":["../../../src/features/routing/routing-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAUH,aAAa,EAShB,MAAM,eAAe,CAAC;AAGvB,eAAO,MAAM,aAAa,eAqBxB,CAAC"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.routingModule = void 0;
4
+ /********************************************************************************
5
+ * Copyright (c) 2019-2023 EclipseSource and others.
6
+ *
7
+ * This program and the accompanying materials are made available under the
8
+ * terms of the Eclipse Public License v. 2.0 which is available at
9
+ * http://www.eclipse.org/legal/epl-2.0.
10
+ *
11
+ * This Source Code may also be made available under the following Secondary
12
+ * Licenses when the conditions for such availability set forth in the Eclipse
13
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
14
+ * with the GNU Classpath Exception which is available at
15
+ * https://www.gnu.org/software/classpath/license.html.
16
+ *
17
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
18
+ ********************************************************************************/
19
+ const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
20
+ const glsp_manhattan_edge_router_1 = require("./glsp-manhattan-edge-router");
21
+ exports.routingModule = new _glsp_sprotty_1.FeatureModule((bind, unbind, isBound, rebind) => {
22
+ const context = { bind, unbind, isBound, rebind };
23
+ bind(_glsp_sprotty_1.EdgeRouterRegistry).toSelf().inSingletonScope();
24
+ bind(_glsp_sprotty_1.AnchorComputerRegistry).toSelf().inSingletonScope();
25
+ (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.IEdgeRouter, glsp_manhattan_edge_router_1.GLSPManhattanEdgeRouter);
26
+ (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.IAnchorComputer, _glsp_sprotty_1.ManhattanEllipticAnchor);
27
+ (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.IAnchorComputer, _glsp_sprotty_1.ManhattanRectangularAnchor);
28
+ (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.IAnchorComputer, _glsp_sprotty_1.ManhattanDiamondAnchor);
29
+ (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.IEdgeRouter, _glsp_sprotty_1.PolylineEdgeRouter);
30
+ (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.IAnchorComputer, _glsp_sprotty_1.EllipseAnchor);
31
+ (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.IAnchorComputer, _glsp_sprotty_1.RectangleAnchor);
32
+ (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.IAnchorComputer, _glsp_sprotty_1.DiamondAnchor);
33
+ (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.IEdgeRouter, _glsp_sprotty_1.BezierEdgeRouter);
34
+ (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.IAnchorComputer, _glsp_sprotty_1.BezierEllipseAnchor);
35
+ (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.IAnchorComputer, _glsp_sprotty_1.BezierRectangleAnchor);
36
+ (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.IAnchorComputer, _glsp_sprotty_1.BezierDiamondAnchor);
37
+ (0, _glsp_sprotty_1.configureCommand)({ bind, isBound }, _glsp_sprotty_1.AddRemoveBezierSegmentCommand);
38
+ });
39
+ //# sourceMappingURL=routing-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routing-module.js","sourceRoot":"","sources":["../../../src/features/routing/routing-module.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EAAE,mCAAmB,CAAC,CAAC;IACnE,IAAA,6BAAa,EAAC,OAAO,EAAE,qBAAK,CAAC,eAAe,EAAE,qCAAqB,CAAC,CAAC;IACrE,IAAA,6BAAa,EAAC,OAAO,EAAE,qBAAK,CAAC,eAAe,EAAE,mCAAmB,CAAC,CAAC;IAEnE,IAAA,gCAAgB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,6CAA6B,CAAC,CAAC;AACvE,CAAC,CAAC,CAAC"}
@@ -13,10 +13,11 @@
13
13
  *
14
14
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
- import { ContainerModule } from 'inversify';
16
+ import { FeatureModule } from '../../glsp-sprotty/index';
17
17
  /**
18
- * Customization of the routing module for GLSP.
18
+ * Feature module that is intended for the standalone deployment of GLSP (i.e. plain webapp)
19
+ * When integrated into an application frame (e.g Theia/VS Code) this module is typically omitted and/or replaced
20
+ * with an application native module.
19
21
  */
20
- declare const glspRoutingModule: ContainerModule;
21
- export default glspRoutingModule;
22
- //# sourceMappingURL=di.config.d.ts.map
22
+ export declare const saveModule: FeatureModule;
23
+ //# sourceMappingURL=save-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"save-module.d.ts","sourceRoot":"","sources":["../../../src/features/save/save-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,aAAa,EAAwB,MAAM,eAAe,CAAC;AAGpE;;;;GAIG;AACH,eAAO,MAAM,UAAU,eAErB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.saveModule = void 0;
3
4
  /********************************************************************************
4
5
  * Copyright (c) 2019-2023 EclipseSource and others.
5
6
  *
@@ -15,15 +16,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
16
  *
16
17
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
17
18
  ********************************************************************************/
18
- const inversify_1 = require("inversify");
19
19
  const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
20
20
  const save_keylistener_1 = require("./save-keylistener");
21
21
  /**
22
- * This module is not required the diagram is deployed in Theia with the `GLSPDiagramWidget`
23
- * but only intended to be used in a standalone deployment of GLSP.
22
+ * Feature module that is intended for the standalone deployment of GLSP (i.e. plain webapp)
23
+ * When integrated into an application frame (e.g Theia/VS Code) this module is typically omitted and/or replaced
24
+ * with an application native module.
24
25
  */
25
- const saveModule = new inversify_1.ContainerModule(bind => {
26
+ exports.saveModule = new _glsp_sprotty_1.FeatureModule(bind => {
26
27
  (0, _glsp_sprotty_1.bindAsService)(bind, _glsp_sprotty_1.TYPES.KeyListener, save_keylistener_1.SaveModelKeyboardListener);
27
28
  });
28
- exports.default = saveModule;
29
- //# sourceMappingURL=di.config.js.map
29
+ //# sourceMappingURL=save-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"save-module.js","sourceRoot":"","sources":["../../../src/features/save/save-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAAoE;AACpE,yDAA+D;AAE/D;;;;GAIG;AACU,QAAA,UAAU,GAAG,IAAI,6BAAa,CAAC,IAAI,CAAC,EAAE;IAC/C,IAAA,6BAAa,EAAC,IAAI,EAAE,qBAAK,CAAC,WAAW,EAAE,4CAAyB,CAAC,CAAC;AACtE,CAAC,CAAC,CAAC"}
@@ -13,11 +13,12 @@
13
13
  *
14
14
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
- import { ContainerModule } from 'inversify';
16
+ import { FeatureModule } from '../../glsp-sprotty/index';
17
+ export declare const selectModule: FeatureModule;
17
18
  /**
18
- * This module is not required the diagram is deployed in Theia with the `GLSPDiagramWidget`
19
- * but only intended to be used in a standalone deployment of GLSP.
19
+ * Feature module that is intended for the standalone deployment of GLSP (i.e. plain webapp)
20
+ * When integrated into an application frame (e.g Theia/VS Code) this module is typically omitted and/or replaced
21
+ * with an application native module.
20
22
  */
21
- declare const saveModule: ContainerModule;
22
- export default saveModule;
23
- //# sourceMappingURL=di.config.d.ts.map
23
+ export declare const standaloneSelectModule: FeatureModule;
24
+ //# sourceMappingURL=select-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-module.d.ts","sourceRoot":"","sources":["../../../src/features/select/select-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,aAAa,EAAkE,MAAM,eAAe,CAAC;AAK9G,eAAO,MAAM,YAAY,eAMvB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,eAKlC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.standaloneSelectModule = exports.selectModule = void 0;
3
4
  /********************************************************************************
4
5
  * Copyright (c) 2019-2023 EclipseSource and others.
5
6
  *
@@ -15,17 +16,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
16
  *
16
17
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
17
18
  ********************************************************************************/
18
- const inversify_1 = require("inversify");
19
19
  const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
20
20
  const selection_service_1 = require("../../base/selection-service");
21
21
  const select_feedback_command_1 = require("./select-feedback-command");
22
22
  const select_mouse_listener_1 = require("./select-mouse-listener");
23
- const glspSelectModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
23
+ exports.selectModule = new _glsp_sprotty_1.FeatureModule((bind, _unbind, isBound) => {
24
24
  const context = { bind, isBound };
25
25
  (0, _glsp_sprotty_1.configureCommand)(context, selection_service_1.SelectCommand);
26
26
  (0, _glsp_sprotty_1.configureCommand)(context, selection_service_1.SelectAllCommand);
27
27
  (0, _glsp_sprotty_1.configureCommand)(context, select_feedback_command_1.SelectFeedbackCommand);
28
28
  (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.MouseListener, select_mouse_listener_1.RankedSelectMouseListener);
29
29
  });
30
- exports.default = glspSelectModule;
31
- //# sourceMappingURL=di.config.js.map
30
+ /**
31
+ * Feature module that is intended for the standalone deployment of GLSP (i.e. plain webapp)
32
+ * When integrated into an application frame (e.g Theia/VS Code) this module is typically omitted and/or replaced
33
+ * with an application native module.
34
+ */
35
+ exports.standaloneSelectModule = new _glsp_sprotty_1.FeatureModule(bind => {
36
+ (0, _glsp_sprotty_1.bindAsService)(bind, _glsp_sprotty_1.TYPES.KeyListener, _glsp_sprotty_1.SelectKeyboardListener);
37
+ }, { requires: exports.selectModule });
38
+ //# sourceMappingURL=select-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-module.js","sourceRoot":"","sources":["../../../src/features/select/select-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAA8G;AAC9G,oEAA+E;AAC/E,uEAAkE;AAClE,mEAAoE;AAEvD,QAAA,YAAY,GAAG,IAAI,6BAAa,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACrE,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAClC,IAAA,gCAAgB,EAAC,OAAO,EAAE,iCAAa,CAAC,CAAC;IACzC,IAAA,gCAAgB,EAAC,OAAO,EAAE,oCAAgB,CAAC,CAAC;IAC5C,IAAA,gCAAgB,EAAC,OAAO,EAAE,+CAAqB,CAAC,CAAC;IACjD,IAAA,6BAAa,EAAC,OAAO,EAAE,qBAAK,CAAC,aAAa,EAAE,iDAAyB,CAAC,CAAC;AAC3E,CAAC,CAAC,CAAC;AAEH;;;;GAIG;AACU,QAAA,sBAAsB,GAAG,IAAI,6BAAa,CACnD,IAAI,CAAC,EAAE;IACH,IAAA,6BAAa,EAAC,IAAI,EAAE,qBAAK,CAAC,WAAW,EAAE,sCAAsB,CAAC,CAAC;AACnE,CAAC,EACD,EAAE,QAAQ,EAAE,oBAAY,EAAE,CAC7B,CAAC"}
@@ -56,7 +56,7 @@ let SourceModelChangedActionHandler = exports.SourceModelChangedActionHandler =
56
56
  const severity = 'WARNING';
57
57
  this.dispatcher.dispatchAll([
58
58
  _glsp_sprotty_1.ServerStatusAction.create(message, { severity, timeout }),
59
- _glsp_sprotty_1.ServerMessageAction.create(message, { severity, timeout })
59
+ _glsp_sprotty_1.ServerMessageAction.create(message, { severity })
60
60
  ]);
61
61
  }
62
62
  };
@@ -1 +1 @@
1
- {"version":3,"file":"source-model-changed-action-handler.js","sourceRoot":"","sources":["../../../src/features/source-model-watcher/source-model-changed-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAyD;AACzD,iDASuB;AAEvB;;;;;GAKG;AAEI,IAAe,iCAAiC,+CAAhD,MAAe,iCAAiC;CAMtD,CAAA;4CANqB,iCAAiC;IADtD,IAAA,sBAAU,GAAE;GACS,iCAAiC,CAMtD;AAGM,IAAM,+BAA+B,6CAArC,MAAM,+BAA+B;IAWxC,MAAM,CAAC,MAAc;QACjB,IAAI,wCAAwB,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACrC,IAAI,IAAI,CAAC,iCAAiC,EAAE;gBACxC,IAAI,CAAC,iCAAiC;qBACjC,uBAAuB,CAAC,MAAM,CAAC,eAAe,EAAE,IAAI,CAAC,OAAO,CAAC;qBAC7D,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;gBAC3D,OAAO;aACV;YACD,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;SACvC;IACL,CAAC;IAES,sBAAsB,CAAC,MAAgC;QAC7D,MAAM,OAAO,GAAG,oBAAoB,MAAM,CAAC,eAAe,qDAAqD,CAAC;QAChH,MAAM,OAAO,GAAG,CAAC,CAAC;QAClB,MAAM,QAAQ,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;YACxB,kCAAkB,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;YACzD,mCAAmB,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;SAC7D,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AA9Ba;IADT,IAAA,kBAAM,EAAC,qBAAK,CAAC,iBAAiB,CAAC;;mEACQ;AAG9B;IADT,IAAA,kBAAM,EAAC,qBAAK,CAAC,aAAa,CAAC;;gEACK;AAIvB;IAFT,IAAA,kBAAM,EAAC,iCAAiC,CAAC;IACzC,IAAA,oBAAQ,GAAE;8BACmC,iCAAiC;0FAAC;0CATvE,+BAA+B;IAD3C,IAAA,sBAAU,GAAE;GACA,+BAA+B,CAgC3C"}
1
+ {"version":3,"file":"source-model-changed-action-handler.js","sourceRoot":"","sources":["../../../src/features/source-model-watcher/source-model-changed-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAyD;AACzD,iDASuB;AAEvB;;;;;GAKG;AAEI,IAAe,iCAAiC,+CAAhD,MAAe,iCAAiC;CAMtD,CAAA;4CANqB,iCAAiC;IADtD,IAAA,sBAAU,GAAE;GACS,iCAAiC,CAMtD;AAGM,IAAM,+BAA+B,6CAArC,MAAM,+BAA+B;IAWxC,MAAM,CAAC,MAAc;QACjB,IAAI,wCAAwB,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACrC,IAAI,IAAI,CAAC,iCAAiC,EAAE;gBACxC,IAAI,CAAC,iCAAiC;qBACjC,uBAAuB,CAAC,MAAM,CAAC,eAAe,EAAE,IAAI,CAAC,OAAO,CAAC;qBAC7D,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;gBAC3D,OAAO;aACV;YACD,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;SACvC;IACL,CAAC;IAES,sBAAsB,CAAC,MAAgC;QAC7D,MAAM,OAAO,GAAG,oBAAoB,MAAM,CAAC,eAAe,qDAAqD,CAAC;QAChH,MAAM,OAAO,GAAG,CAAC,CAAC;QAClB,MAAM,QAAQ,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;YACxB,kCAAkB,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;YACzD,mCAAmB,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC;SACpD,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AA9Ba;IADT,IAAA,kBAAM,EAAC,qBAAK,CAAC,iBAAiB,CAAC;;mEACQ;AAG9B;IADT,IAAA,kBAAM,EAAC,qBAAK,CAAC,aAAa,CAAC;;gEACK;AAIvB;IAFT,IAAA,kBAAM,EAAC,iCAAiC,CAAC;IACzC,IAAA,oBAAQ,GAAE;8BACmC,iCAAiC;0FAAC;0CATvE,+BAA+B;IAD3C,IAAA,sBAAU,GAAE;GACA,+BAA+B,CAgC3C"}
@@ -13,7 +13,6 @@
13
13
  *
14
14
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
- import { ContainerModule } from 'inversify';
17
- declare const glspContextMenuModule: ContainerModule;
18
- export default glspContextMenuModule;
19
- //# sourceMappingURL=di.config.d.ts.map
16
+ import { FeatureModule } from '../../glsp-sprotty/index';
17
+ export declare const sourceModelWatcherModule: FeatureModule;
18
+ //# sourceMappingURL=source-model-wacher-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-model-wacher-module.d.ts","sourceRoot":"","sources":["../../../src/features/source-model-watcher/source-model-wacher-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,aAAa,EAAoD,MAAM,eAAe,CAAC;AAGhG,eAAO,MAAM,wBAAwB,eAEnC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sourceModelWatcherModule = void 0;
3
4
  /********************************************************************************
4
5
  * Copyright (c) 2019-2023 EclipseSource and others.
5
6
  *
@@ -15,11 +16,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
16
  *
16
17
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
17
18
  ********************************************************************************/
18
- const inversify_1 = require("inversify");
19
19
  const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
20
20
  const source_model_changed_action_handler_1 = require("./source-model-changed-action-handler");
21
- const sourceModelWatcherModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
21
+ exports.sourceModelWatcherModule = new _glsp_sprotty_1.FeatureModule((bind, _unbind, isBound) => {
22
22
  (0, _glsp_sprotty_1.configureActionHandler)({ bind, isBound }, _glsp_sprotty_1.SourceModelChangedAction.KIND, source_model_changed_action_handler_1.SourceModelChangedActionHandler);
23
23
  });
24
- exports.default = sourceModelWatcherModule;
25
- //# sourceMappingURL=di.config.js.map
24
+ //# sourceMappingURL=source-model-wacher-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-model-wacher-module.js","sourceRoot":"","sources":["../../../src/features/source-model-watcher/source-model-wacher-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAAgG;AAChG,+FAAwF;AAE3E,QAAA,wBAAwB,GAAG,IAAI,6BAAa,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACjF,IAAA,sCAAsB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,wCAAwB,CAAC,IAAI,EAAE,qEAA+B,CAAC,CAAC;AAC9G,CAAC,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ /********************************************************************************
2
+ * Copyright (c) 2023 EclipseSource and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+ import { FeatureModule } from '../../glsp-sprotty/index';
17
+ import '../../../css/status-overlay.css';
18
+ export declare const statusModule: FeatureModule;
19
+ //# sourceMappingURL=status-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status-module.d.ts","sourceRoot":"","sources":["../../../src/features/status/status-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,aAAa,EAAoE,MAAM,eAAe,CAAC;AAChH,OAAO,iCAAiC,CAAC;AAGzC,eAAO,MAAM,YAAY,eAIvB,CAAC"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ /********************************************************************************
3
+ * Copyright (c) 2023 EclipseSource and others.
4
+ *
5
+ * This program and the accompanying materials are made available under the
6
+ * terms of the Eclipse Public License v. 2.0 which is available at
7
+ * http://www.eclipse.org/legal/epl-2.0.
8
+ *
9
+ * This Source Code may also be made available under the following Secondary
10
+ * Licenses when the conditions for such availability set forth in the Eclipse
11
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ * with the GNU Classpath Exception which is available at
13
+ * https://www.gnu.org/software/classpath/license.html.
14
+ *
15
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
+ ********************************************************************************/
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.statusModule = void 0;
19
+ const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
20
+ require("../../../css/status-overlay.css");
21
+ const status_overlay_1 = require("./status-overlay");
22
+ exports.statusModule = new _glsp_sprotty_1.FeatureModule((bind, unbind, isBound, rebind) => {
23
+ const context = { bind, unbind, isBound, rebind };
24
+ (0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.IUIExtension, status_overlay_1.StatusOverlay);
25
+ (0, _glsp_sprotty_1.configureActionHandler)(context, _glsp_sprotty_1.ServerStatusAction.KIND, status_overlay_1.StatusOverlay);
26
+ });
27
+ //# sourceMappingURL=status-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status-module.js","sourceRoot":"","sources":["../../../src/features/status/status-module.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,iDAAgH;AAChH,2CAAyC;AACzC,qDAAiD;AAEpC,QAAA,YAAY,GAAG,IAAI,6BAAa,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IAC5E,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClD,IAAA,6BAAa,EAAC,OAAO,EAAE,qBAAK,CAAC,YAAY,EAAE,8BAAa,CAAC,CAAC;IAC1D,IAAA,sCAAsB,EAAC,OAAO,EAAE,kCAAkB,CAAC,IAAI,EAAE,8BAAa,CAAC,CAAC;AAC5E,CAAC,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { AbstractUIExtension, IActionHandler, ServerStatusAction } from '../../glsp-sprotty/index';
2
+ /**
3
+ * A reusable status overlay for rendering (icon + message) and handling of {@link ServerStatusAction}'s.
4
+ */
5
+ export declare class StatusOverlay extends AbstractUIExtension implements IActionHandler {
6
+ static readonly ID = "glsp.server.status.overlay";
7
+ protected statusIconDiv?: HTMLDivElement;
8
+ protected statusMessageDiv?: HTMLDivElement;
9
+ protected pendingTimeout?: number;
10
+ id(): string;
11
+ containerClass(): string;
12
+ protected initializeContents(containerElement: HTMLElement): void;
13
+ protected setStatus(status: ServerStatusAction): void;
14
+ protected clearStatus(): void;
15
+ protected clearTimeout(): void;
16
+ protected removeClasses(element: Element, keep: number): void;
17
+ handle(action: ServerStatusAction): void;
18
+ }
19
+ //# sourceMappingURL=status-overlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status-overlay.d.ts","sourceRoot":"","sources":["../../../src/features/status/status-overlay.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,kBAAkB,EAAqB,MAAM,eAAe,CAAC;AAE3G;;GAEG;AACH,qBACa,aAAc,SAAQ,mBAAoB,YAAW,cAAc;IAC5E,MAAM,CAAC,QAAQ,CAAC,EAAE,gCAAgC;IAElD,SAAS,CAAC,aAAa,CAAC,EAAE,cAAc,CAAC;IACzC,SAAS,CAAC,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAC5C,SAAS,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAEzB,EAAE,IAAI,MAAM;IAIZ,cAAc,IAAI,MAAM;cAGd,kBAAkB,CAAC,gBAAgB,EAAE,WAAW,GAAG,IAAI;IAS1E,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI;IA2BrD,SAAS,CAAC,WAAW,IAAI,IAAI;IAI7B,SAAS,CAAC,YAAY,IAAI,IAAI;IAO9B,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IAU7D,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI;CAc3C"}
@@ -0,0 +1,108 @@
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
+ var StatusOverlay_1;
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.StatusOverlay = void 0;
11
+ /********************************************************************************
12
+ * Copyright (c) 2023 EclipseSource and others.
13
+ *
14
+ * This program and the accompanying materials are made available under the
15
+ * terms of the Eclipse Public License v. 2.0 which is available at
16
+ * http://www.eclipse.org/legal/epl-2.0.
17
+ *
18
+ * This Source Code may also be made available under the following Secondary
19
+ * Licenses when the conditions for such availability set forth in the Eclipse
20
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
21
+ * with the GNU Classpath Exception which is available at
22
+ * https://www.gnu.org/software/classpath/license.html.
23
+ *
24
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
25
+ ********************************************************************************/
26
+ const inversify_1 = require("inversify");
27
+ const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
28
+ /**
29
+ * A reusable status overlay for rendering (icon + message) and handling of {@link ServerStatusAction}'s.
30
+ */
31
+ let StatusOverlay = exports.StatusOverlay = StatusOverlay_1 = class StatusOverlay extends _glsp_sprotty_1.AbstractUIExtension {
32
+ id() {
33
+ return StatusOverlay_1.ID;
34
+ }
35
+ containerClass() {
36
+ return 'sprotty-status';
37
+ }
38
+ initializeContents(containerElement) {
39
+ this.statusIconDiv = document.createElement('div');
40
+ containerElement.appendChild(this.statusIconDiv);
41
+ this.statusMessageDiv = document.createElement('div');
42
+ this.statusMessageDiv.classList.add('sprotty-status-message');
43
+ containerElement.appendChild(this.statusMessageDiv);
44
+ }
45
+ setStatus(status) {
46
+ if (this.statusMessageDiv) {
47
+ this.statusMessageDiv.textContent = status.message;
48
+ this.removeClasses(this.statusMessageDiv, 1);
49
+ this.statusMessageDiv.classList.add(status.severity.toLowerCase());
50
+ }
51
+ if (this.statusIconDiv) {
52
+ this.removeClasses(this.statusIconDiv, 0);
53
+ const classes = this.statusIconDiv.classList;
54
+ classes.add(status.severity.toLowerCase());
55
+ switch (status.severity) {
56
+ case 'FATAL':
57
+ classes.add(...(0, _glsp_sprotty_1.codiconCSSClasses)('error'));
58
+ break;
59
+ case 'ERROR':
60
+ classes.add(...(0, _glsp_sprotty_1.codiconCSSClasses)('warning'));
61
+ break;
62
+ case 'WARNING':
63
+ classes.add(...(0, _glsp_sprotty_1.codiconCSSClasses)('warning'));
64
+ break;
65
+ case 'INFO':
66
+ classes.add(...(0, _glsp_sprotty_1.codiconCSSClasses)('info'));
67
+ break;
68
+ }
69
+ }
70
+ }
71
+ clearStatus() {
72
+ this.setStatus(_glsp_sprotty_1.ServerStatusAction.create('', { severity: 'NONE' }));
73
+ }
74
+ clearTimeout() {
75
+ if (this.pendingTimeout) {
76
+ window.clearTimeout(this.pendingTimeout);
77
+ this.pendingTimeout = undefined;
78
+ }
79
+ }
80
+ removeClasses(element, keep) {
81
+ const classes = element.classList;
82
+ while (classes.length > keep) {
83
+ const item = classes.item(classes.length - 1);
84
+ if (item) {
85
+ classes.remove(item);
86
+ }
87
+ }
88
+ }
89
+ handle(action) {
90
+ var _a;
91
+ this.clearTimeout();
92
+ if (action.severity === 'NONE') {
93
+ this.clearStatus();
94
+ return;
95
+ }
96
+ this.setStatus(action);
97
+ // Check for timeout
98
+ const statusTimeout = (_a = action.timeout) !== null && _a !== void 0 ? _a : -1;
99
+ if (statusTimeout > 0) {
100
+ this.pendingTimeout = window.setTimeout(() => this.clearStatus(), statusTimeout);
101
+ }
102
+ }
103
+ };
104
+ StatusOverlay.ID = 'glsp.server.status.overlay';
105
+ exports.StatusOverlay = StatusOverlay = StatusOverlay_1 = __decorate([
106
+ (0, inversify_1.injectable)()
107
+ ], StatusOverlay);
108
+ //# sourceMappingURL=status-overlay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status-overlay.js","sourceRoot":"","sources":["../../../src/features/status/status-overlay.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAuC;AACvC,iDAA2G;AAE3G;;GAEG;AAEI,IAAM,aAAa,6CAAnB,MAAM,aAAc,SAAQ,mCAAmB;IAOzC,EAAE;QACP,OAAO,eAAa,CAAC,EAAE,CAAC;IAC5B,CAAC;IAEQ,cAAc;QACnB,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IACkB,kBAAkB,CAAC,gBAA6B;QAC/D,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACnD,gBAAgB,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAEjD,IAAI,CAAC,gBAAgB,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACtD,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QAC9D,gBAAgB,CAAC,WAAW,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACxD,CAAC;IAES,SAAS,CAAC,MAA0B;QAC1C,IAAI,IAAI,CAAC,gBAAgB,EAAE;YACvB,IAAI,CAAC,gBAAgB,CAAC,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC;YACnD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;YAC7C,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;SACtE;QACD,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;YAC1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CAAC,IAAI,CAAC,CAAC;aACxB;SACJ;IACL,CAAC;IAED,MAAM,CAAC,MAA0B;;QAC7B,IAAI,CAAC,YAAY,EAAE,CAAC;QACpB,IAAI,MAAM,CAAC,QAAQ,KAAK,MAAM,EAAE;YAC5B,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,OAAO;SACV;QACD,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAEvB,oBAAoB;QACpB,MAAM,aAAa,GAAG,MAAA,MAAM,CAAC,OAAO,mCAAI,CAAC,CAAC,CAAC;QAC3C,IAAI,aAAa,GAAG,CAAC,EAAE;YACnB,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,aAAa,CAAC,CAAC;SACpF;IACL,CAAC;;AAnFe,gBAAE,GAAG,4BAA4B,AAA/B,CAAgC;wBADzC,aAAa;IADzB,IAAA,sBAAU,GAAE;GACA,aAAa,CAqFzB"}
@@ -13,7 +13,6 @@
13
13
  *
14
14
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
- import { ContainerModule } from 'inversify';
17
- declare const svgMetadataModule: ContainerModule;
18
- export default svgMetadataModule;
19
- //# sourceMappingURL=di.config.d.ts.map
16
+ import { FeatureModule } from '../../glsp-sprotty/index';
17
+ export declare const svgMetadataModule: FeatureModule;
18
+ //# sourceMappingURL=svg-metadata-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svg-metadata-module.d.ts","sourceRoot":"","sources":["../../../src/features/svg-metadata/svg-metadata-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,aAAa,EAAS,MAAM,eAAe,CAAC;AAGrD,eAAO,MAAM,iBAAiB,eAG5B,CAAC"}