@finos/legend-extension-dsl-diagram 7.1.55 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. package/lib/__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.d.ts.map +1 -0
  2. package/lib/__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.js.map +1 -0
  3. package/lib/__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.d.ts.map +1 -0
  4. package/lib/__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.js.map +1 -0
  5. package/lib/__lib__/studio/DSL_Diagram_LegendStudioCommand.d.ts.map +1 -0
  6. package/lib/__lib__/studio/DSL_Diagram_LegendStudioCommand.js.map +1 -0
  7. package/lib/__lib__/studio/DSL_Diagram_LegendStudioDocumentation.d.ts.map +1 -0
  8. package/lib/__lib__/studio/DSL_Diagram_LegendStudioDocumentation.js.map +1 -0
  9. package/lib/__lib__/studio/DSL_Diagram_LegendStudioTesting.d.ts.map +1 -0
  10. package/lib/__lib__/studio/DSL_Diagram_LegendStudioTesting.js.map +1 -0
  11. package/lib/{DiagramRenderer.d.ts → components/DiagramRenderer.d.ts} +8 -8
  12. package/lib/components/DiagramRenderer.d.ts.map +1 -0
  13. package/lib/{DiagramRenderer.js → components/DiagramRenderer.js} +10 -10
  14. package/lib/components/DiagramRenderer.js.map +1 -0
  15. package/lib/components/index.d.ts +17 -0
  16. package/lib/components/index.d.ts.map +1 -0
  17. package/lib/components/index.js +17 -0
  18. package/lib/components/index.js.map +1 -0
  19. package/lib/components/studio/ClassDiagramPreview.js +1 -1
  20. package/lib/components/studio/ClassDiagramPreview.js.map +1 -1
  21. package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.d.ts +4 -1
  22. package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.d.ts.map +1 -1
  23. package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.js +22 -5
  24. package/lib/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.js.map +1 -1
  25. package/lib/components/studio/DiagramEditor.d.ts.map +1 -1
  26. package/lib/components/studio/DiagramEditor.js +5 -4
  27. package/lib/components/studio/DiagramEditor.js.map +1 -1
  28. package/lib/components/studio/InheritanceDiagramRenderer.d.ts +1 -1
  29. package/lib/components/studio/InheritanceDiagramRenderer.d.ts.map +1 -1
  30. package/lib/components/studio/InheritanceDiagramRenderer.js +1 -1
  31. package/lib/components/studio/InheritanceDiagramRenderer.js.map +1 -1
  32. package/lib/components/studio/index.d.ts +18 -0
  33. package/lib/components/studio/index.d.ts.map +1 -0
  34. package/lib/components/studio/index.js +18 -0
  35. package/lib/components/studio/index.js.map +1 -0
  36. package/lib/graph-manager/DSL_Diagram_GraphManagerHelper.d.ts.map +1 -0
  37. package/lib/graph-manager/DSL_Diagram_GraphManagerHelper.js.map +1 -0
  38. package/lib/{DSL_Diagram_Extension.d.ts → graph-manager/DSL_Diagram_GraphManagerPreset.d.ts} +1 -1
  39. package/lib/graph-manager/DSL_Diagram_GraphManagerPreset.d.ts.map +1 -0
  40. package/lib/{DSL_Diagram_Extension.js → graph-manager/DSL_Diagram_GraphManagerPreset.js} +5 -5
  41. package/lib/graph-manager/DSL_Diagram_GraphManagerPreset.js.map +1 -0
  42. package/lib/graph-manager/DSL_Diagram_PureGraphManagerPlugin.d.ts +21 -0
  43. package/lib/graph-manager/DSL_Diagram_PureGraphManagerPlugin.d.ts.map +1 -0
  44. package/lib/{graphManager → graph-manager}/DSL_Diagram_PureGraphManagerPlugin.js +0 -18
  45. package/lib/graph-manager/DSL_Diagram_PureGraphManagerPlugin.js.map +1 -0
  46. package/lib/graph-manager/action/changeDetection/DSL_Diagram_ObserverHelper.d.ts.map +1 -0
  47. package/lib/graph-manager/action/changeDetection/DSL_Diagram_ObserverHelper.js.map +1 -0
  48. package/lib/graph-manager/index.d.ts +31 -0
  49. package/lib/graph-manager/index.d.ts.map +1 -0
  50. package/lib/graph-manager/index.js +31 -0
  51. package/lib/graph-manager/index.js.map +1 -0
  52. package/lib/graph-manager/protocol/pure/DSL_Diagram_PureProtocolProcessorPlugin.d.ts.map +1 -0
  53. package/lib/graph-manager/protocol/pure/DSL_Diagram_PureProtocolProcessorPlugin.js.map +1 -0
  54. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_ClassView.d.ts.map +1 -0
  55. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_ClassView.js.map +1 -0
  56. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_Diagram.d.ts.map +1 -0
  57. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_Diagram.js.map +1 -0
  58. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_GeneralizationView.d.ts.map +1 -0
  59. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_GeneralizationView.js.map +1 -0
  60. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyHolderView.d.ts.map +1 -0
  61. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyHolderView.js.map +1 -0
  62. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyView.d.ts.map +1 -0
  63. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyView.js.map +1 -0
  64. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_RelationshipView.d.ts.map +1 -0
  65. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_RelationshipView.js.map +1 -0
  66. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Line.d.ts.map +1 -0
  67. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Line.js.map +1 -0
  68. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Point.d.ts.map +1 -0
  69. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Point.js.map +1 -0
  70. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_PositionedRectangle.d.ts.map +1 -0
  71. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_PositionedRectangle.js.map +1 -0
  72. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Rectangle.d.ts.map +1 -0
  73. package/lib/graph-manager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Rectangle.js.map +1 -0
  74. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_GraphBuilderHelper.d.ts.map +1 -0
  75. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_GraphBuilderHelper.js.map +1 -0
  76. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_TransformerHelper.d.ts.map +1 -0
  77. package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_TransformerHelper.js.map +1 -0
  78. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_Diagram_ProtocolHelper.d.ts.map +1 -0
  79. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_Diagram_ProtocolHelper.js.map +1 -0
  80. package/lib/index.css +1 -1
  81. package/lib/package.json +6 -3
  82. package/lib/stores/studio/DSL_Diagram_GraphModifierHelper.js +1 -1
  83. package/lib/stores/studio/DSL_Diagram_GraphModifierHelper.js.map +1 -1
  84. package/lib/stores/studio/DiagramEditorState.d.ts +1 -1
  85. package/lib/stores/studio/DiagramEditorState.d.ts.map +1 -1
  86. package/lib/stores/studio/DiagramEditorState.js +2 -2
  87. package/lib/stores/studio/DiagramEditorState.js.map +1 -1
  88. package/package.json +13 -10
  89. package/src/{DiagramRenderer.ts → components/DiagramRenderer.ts} +12 -12
  90. package/src/components/index.ts +23 -0
  91. package/src/components/studio/ClassDiagramPreview.tsx +1 -1
  92. package/src/components/studio/DSL_Diagram_LegendStudioApplicationPlugin.tsx +28 -9
  93. package/src/components/studio/DiagramEditor.tsx +7 -5
  94. package/src/components/studio/InheritanceDiagramRenderer.ts +1 -1
  95. package/src/components/studio/index.ts +19 -0
  96. package/src/{DSL_Diagram_Extension.ts → graph-manager/DSL_Diagram_GraphManagerPreset.ts} +4 -4
  97. package/src/{graphManager → graph-manager}/DSL_Diagram_PureGraphManagerPlugin.ts +0 -23
  98. package/src/graph-manager/index.ts +33 -0
  99. package/src/stores/studio/DSL_Diagram_GraphModifierHelper.ts +1 -1
  100. package/src/stores/studio/DiagramEditorState.ts +2 -2
  101. package/tsconfig.json +27 -25
  102. package/lib/DSL_Diagram_Extension.d.ts.map +0 -1
  103. package/lib/DSL_Diagram_Extension.js.map +0 -1
  104. package/lib/DiagramRenderer.d.ts.map +0 -1
  105. package/lib/DiagramRenderer.js.map +0 -1
  106. package/lib/application/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.d.ts.map +0 -1
  107. package/lib/application/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.js.map +0 -1
  108. package/lib/application/studio/DSL_Diagram_LegendStudioCodeSnippet.d.ts.map +0 -1
  109. package/lib/application/studio/DSL_Diagram_LegendStudioCodeSnippet.js.map +0 -1
  110. package/lib/application/studio/DSL_Diagram_LegendStudioCommand.d.ts.map +0 -1
  111. package/lib/application/studio/DSL_Diagram_LegendStudioCommand.js.map +0 -1
  112. package/lib/application/studio/DSL_Diagram_LegendStudioDocumentation.d.ts.map +0 -1
  113. package/lib/application/studio/DSL_Diagram_LegendStudioDocumentation.js.map +0 -1
  114. package/lib/application/studio/DSL_Diagram_LegendStudioTesting.d.ts.map +0 -1
  115. package/lib/application/studio/DSL_Diagram_LegendStudioTesting.js.map +0 -1
  116. package/lib/graphManager/DSL_Diagram_GraphManagerHelper.d.ts.map +0 -1
  117. package/lib/graphManager/DSL_Diagram_GraphManagerHelper.js.map +0 -1
  118. package/lib/graphManager/DSL_Diagram_PureGraphManagerPlugin.d.ts +0 -26
  119. package/lib/graphManager/DSL_Diagram_PureGraphManagerPlugin.d.ts.map +0 -1
  120. package/lib/graphManager/DSL_Diagram_PureGraphManagerPlugin.js.map +0 -1
  121. package/lib/graphManager/action/changeDetection/DSL_Diagram_ObserverHelper.d.ts.map +0 -1
  122. package/lib/graphManager/action/changeDetection/DSL_Diagram_ObserverHelper.js.map +0 -1
  123. package/lib/graphManager/protocol/pure/DSL_Diagram_PureProtocolProcessorPlugin.d.ts.map +0 -1
  124. package/lib/graphManager/protocol/pure/DSL_Diagram_PureProtocolProcessorPlugin.js.map +0 -1
  125. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_ClassView.d.ts.map +0 -1
  126. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_ClassView.js.map +0 -1
  127. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_Diagram.d.ts.map +0 -1
  128. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_Diagram.js.map +0 -1
  129. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_GeneralizationView.d.ts.map +0 -1
  130. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_GeneralizationView.js.map +0 -1
  131. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyHolderView.d.ts.map +0 -1
  132. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyHolderView.js.map +0 -1
  133. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyView.d.ts.map +0 -1
  134. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyView.js.map +0 -1
  135. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_RelationshipView.d.ts.map +0 -1
  136. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_RelationshipView.js.map +0 -1
  137. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Line.d.ts.map +0 -1
  138. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Line.js.map +0 -1
  139. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Point.d.ts.map +0 -1
  140. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Point.js.map +0 -1
  141. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_PositionedRectangle.d.ts.map +0 -1
  142. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_PositionedRectangle.js.map +0 -1
  143. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Rectangle.d.ts.map +0 -1
  144. package/lib/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Rectangle.js.map +0 -1
  145. package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_GraphBuilderHelper.d.ts.map +0 -1
  146. package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_GraphBuilderHelper.js.map +0 -1
  147. package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_TransformerHelper.d.ts.map +0 -1
  148. package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_TransformerHelper.js.map +0 -1
  149. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_Diagram_ProtocolHelper.d.ts.map +0 -1
  150. package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_Diagram_ProtocolHelper.js.map +0 -1
  151. package/lib/index.d.ts +0 -34
  152. package/lib/index.d.ts.map +0 -1
  153. package/lib/index.js +0 -34
  154. package/lib/index.js.map +0 -1
  155. package/src/index.ts +0 -44
  156. /package/lib/{application → __lib__}/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.d.ts +0 -0
  157. /package/lib/{application → __lib__}/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.js +0 -0
  158. /package/lib/{application → __lib__}/studio/DSL_Diagram_LegendStudioCodeSnippet.d.ts +0 -0
  159. /package/lib/{application → __lib__}/studio/DSL_Diagram_LegendStudioCodeSnippet.js +0 -0
  160. /package/lib/{application → __lib__}/studio/DSL_Diagram_LegendStudioCommand.d.ts +0 -0
  161. /package/lib/{application → __lib__}/studio/DSL_Diagram_LegendStudioCommand.js +0 -0
  162. /package/lib/{application → __lib__}/studio/DSL_Diagram_LegendStudioDocumentation.d.ts +0 -0
  163. /package/lib/{application → __lib__}/studio/DSL_Diagram_LegendStudioDocumentation.js +0 -0
  164. /package/lib/{application → __lib__}/studio/DSL_Diagram_LegendStudioTesting.d.ts +0 -0
  165. /package/lib/{application → __lib__}/studio/DSL_Diagram_LegendStudioTesting.js +0 -0
  166. /package/lib/{graphManager → graph-manager}/DSL_Diagram_GraphManagerHelper.d.ts +0 -0
  167. /package/lib/{graphManager → graph-manager}/DSL_Diagram_GraphManagerHelper.js +0 -0
  168. /package/lib/{graphManager → graph-manager}/action/changeDetection/DSL_Diagram_ObserverHelper.d.ts +0 -0
  169. /package/lib/{graphManager → graph-manager}/action/changeDetection/DSL_Diagram_ObserverHelper.js +0 -0
  170. /package/lib/{graphManager → graph-manager}/protocol/pure/DSL_Diagram_PureProtocolProcessorPlugin.d.ts +0 -0
  171. /package/lib/{graphManager → graph-manager}/protocol/pure/DSL_Diagram_PureProtocolProcessorPlugin.js +0 -0
  172. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_ClassView.d.ts +0 -0
  173. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_ClassView.js +0 -0
  174. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_Diagram.d.ts +0 -0
  175. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_Diagram.js +0 -0
  176. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_GeneralizationView.d.ts +0 -0
  177. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_GeneralizationView.js +0 -0
  178. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyHolderView.d.ts +0 -0
  179. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyHolderView.js +0 -0
  180. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyView.d.ts +0 -0
  181. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyView.js +0 -0
  182. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_RelationshipView.d.ts +0 -0
  183. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_RelationshipView.js +0 -0
  184. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Line.d.ts +0 -0
  185. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Line.js +0 -0
  186. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Point.d.ts +0 -0
  187. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Point.js +0 -0
  188. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_PositionedRectangle.d.ts +0 -0
  189. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_PositionedRectangle.js +0 -0
  190. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Rectangle.d.ts +0 -0
  191. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Rectangle.js +0 -0
  192. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_GraphBuilderHelper.d.ts +0 -0
  193. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_GraphBuilderHelper.js +0 -0
  194. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_TransformerHelper.d.ts +0 -0
  195. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_TransformerHelper.js +0 -0
  196. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/transformation/pureProtocol/V1_DSL_Diagram_ProtocolHelper.d.ts +0 -0
  197. /package/lib/{graphManager → graph-manager}/protocol/pure/v1/transformation/pureProtocol/V1_DSL_Diagram_ProtocolHelper.js +0 -0
  198. /package/src/{application → __lib__}/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.ts +0 -0
  199. /package/src/{application → __lib__}/studio/DSL_Diagram_LegendStudioCodeSnippet.ts +0 -0
  200. /package/src/{application → __lib__}/studio/DSL_Diagram_LegendStudioCommand.ts +0 -0
  201. /package/src/{application → __lib__}/studio/DSL_Diagram_LegendStudioDocumentation.ts +0 -0
  202. /package/src/{application → __lib__}/studio/DSL_Diagram_LegendStudioTesting.ts +0 -0
  203. /package/src/{graphManager → graph-manager}/DSL_Diagram_GraphManagerHelper.ts +0 -0
  204. /package/src/{graphManager → graph-manager}/action/changeDetection/DSL_Diagram_ObserverHelper.ts +0 -0
  205. /package/src/{graphManager → graph-manager}/protocol/pure/DSL_Diagram_PureProtocolProcessorPlugin.ts +0 -0
  206. /package/src/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_ClassView.ts +0 -0
  207. /package/src/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_Diagram.ts +0 -0
  208. /package/src/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_GeneralizationView.ts +0 -0
  209. /package/src/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyHolderView.ts +0 -0
  210. /package/src/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyView.ts +0 -0
  211. /package/src/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_RelationshipView.ts +0 -0
  212. /package/src/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Line.ts +0 -0
  213. /package/src/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Point.ts +0 -0
  214. /package/src/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_PositionedRectangle.ts +0 -0
  215. /package/src/{graphManager → graph-manager}/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Rectangle.ts +0 -0
  216. /package/src/{graphManager → graph-manager}/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_GraphBuilderHelper.ts +0 -0
  217. /package/src/{graphManager → graph-manager}/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_TransformerHelper.ts +0 -0
  218. /package/src/{graphManager → graph-manager}/protocol/pure/v1/transformation/pureProtocol/V1_DSL_Diagram_ProtocolHelper.ts +0 -0
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-diagram",
3
- "version": "7.1.55",
3
+ "version": "8.0.0",
4
4
  "description": "Legend extension for Diagram DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -21,7 +21,9 @@
21
21
  "sideEffects": false,
22
22
  "type": "module",
23
23
  "exports": {
24
- ".": "./lib/index.js",
24
+ "./graph": "./lib/graph-manager/index.js",
25
+ "./application": "./lib/components/index.js",
26
+ "./application-studio": "./lib/components/studio/index.js",
25
27
  "./lib/index.css": "./lib/index.css"
26
28
  },
27
29
  "module": "lib/index.js",
@@ -47,9 +49,10 @@
47
49
  "@finos/legend-application-studio": "workspace:*",
48
50
  "@finos/legend-art": "workspace:*",
49
51
  "@finos/legend-graph": "workspace:*",
52
+ "@finos/legend-lego": "workspace:*",
50
53
  "@finos/legend-shared": "workspace:*",
51
54
  "@finos/legend-storage": "workspace:*",
52
- "@types/react": "18.0.34",
55
+ "@types/react": "18.0.37",
53
56
  "mobx": "6.9.0",
54
57
  "mobx-react-lite": "3.4.3",
55
58
  "react": "18.2.0",
@@ -16,7 +16,7 @@
16
16
  import { addUniqueEntry, changeEntry, deleteEntry } from '@finos/legend-shared';
17
17
  import { action } from 'mobx';
18
18
  import { _findOrBuildPoint, _relationshipView_simplifyPath, _relationshipView_setPath, } from '../../graph/helpers/DSL_Diagram_Helper.js';
19
- import { observe_AssociationView, observe_ClassView, observe_GeneralizationView, observe_PropertyView, } from '../../graphManager/action/changeDetection/DSL_Diagram_ObserverHelper.js';
19
+ import { observe_AssociationView, observe_ClassView, observe_GeneralizationView, observe_PropertyView, } from '../../graph-manager/action/changeDetection/DSL_Diagram_ObserverHelper.js';
20
20
  export const diagram_setClassViews = action((diagram, val) => {
21
21
  diagram.classViews = val.map(observe_ClassView);
22
22
  });
@@ -1 +1 @@
1
- {"version":3,"file":"DSL_Diagram_GraphModifierHelper.js","sourceRoot":"","sources":["../../../src/stores/studio/DSL_Diagram_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAK9B,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,2CAA2C,CAAC;AAOnD,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,yEAAyE,CAAC;AAEjF,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CACzC,CAAC,OAAgB,EAAE,GAAgB,EAAQ,EAAE;IAC3C,OAAO,CAAC,UAAU,GAAG,GAAG,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAClD,CAAC,CACF,CAAC;AACF,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CACxC,CAAC,OAAgB,EAAE,GAAc,EAAQ,EAAE;IACzC,cAAc,CAAC,OAAO,CAAC,UAAU,EAAE,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC;AAC7D,CAAC,CACF,CAAC;AACF,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAC3C,CAAC,OAAgB,EAAE,GAAc,EAAQ,EAAE;IACzC,WAAW,CAAC,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;AACvC,CAAC,CACF,CAAC;AACF,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAC/C,CAAC,OAAgB,EAAE,GAAsB,EAAQ,EAAE;IACjD,OAAO,CAAC,gBAAgB,GAAG,GAAG,C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ACF,CAAC;AACF,MAAM,CAAC,MAAM,+BAA+B,GAAG,MAAM,CACnD,CAAC,CAAsB,EAAE,GAAW,EAAQ,EAAE;IAC5C,CAAC,CAAC,QAAQ,GAAG,GAAG,CAAC;AACnB,CAAC,CACF,CAAC;AAEF,2EAA2E;AAC3E,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAChD,CAAC,CAAmB,EAAE,GAAU,EAAE,MAAa,EAAQ,EAAE;IACvD,WAAW,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;AACnC,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CACjD,8BAA8B,CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAC1D,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAAC;AAE1E,wEAAwE;AACxE,MAAM,CAAC,MAAM,gCAAgC,GAAG,MAAM,CACpD,CAAC,EAAuB,EAAE,KAAgB,EAAQ,EAAE;IAClD,EAAE,CAAC,SAAS,GAAG,KAAK,CAAC;AACvB,CAAC,CACF,CAAC;AAEF,2EAA2E;AAC3E,MAAM,CAAC,MAAM,+BAA+B,GAAG,MAAM,CACnD,CAAC,EAAuB,EAAE,KAAY,EAAQ,EAAE;IAC9C,EAAE,CAAC,QAAQ,GAAG,KAAK,CAAC;AACtB,CAAC,CACF,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,MAAM,CACxD,CAAC,EAAuB,EAAQ,EAAE;IAChC,EAAE,CAAC,gBAAgB,GAAG,EAAE,CAAC;AAC3B,CAAC,CACF,CAAC"}
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { type DiagramRenderer } from '../../DiagramRenderer.js';
16
+ import { type DiagramRenderer } from '../../components/DiagramRenderer.js';
17
17
  import { PanelDisplayState } from '@finos/legend-art';
18
18
  import { type PackageableElement, type AbstractProperty, type PropertyReference } from '@finos/legend-graph';
19
19
  import { type EditorStore, ClassEditorState, ElementEditorState } from '@finos/legend-application-studio';
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/DiagramEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAQvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,WAAW,EAChB,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iFAAiF,CAAC;AACjH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sFAAsF,CAAC;AAClH,OAAO,EAAE,OAAO,EAAE,MAAM,+EAA+E,CAAC;AAGxG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,8BAAsB,2BAA2B;IAC/C,QAAQ,CAAC,IAAI,SAAU;IACvB,WAAW,EAAE,WAAW,CAAC;IACzB,kBAAkB,EAAE,kBAAkB,CAAC;gBAGrC,WAAW,EAAE,WAAW,EACxB,kBAAkB,EAAE,kBAAkB;CAKzC;AAED,oBAAY,6BAA6B;IACvC,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,qBAAa,0CAA2C,SAAQ,2BAA2B;IACzF,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,gCAAyC;gBAGlD,WAAW,EAAE,WAAW,EACxB,kBAAkB,EAAE,kBAAkB,E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AAgB,IAAI,IAAI;IAuDxB,kBAAkB,IAAI,IAAI;IAiB1B,SAAS,CACP,UAAU,EAAE,kBAAkB,EAC9B,WAAW,EAAE,WAAW,GACvB,kBAAkB;CAItB"}
@@ -15,12 +15,12 @@
15
15
  */
16
16
  import { computed, action, makeObservable, observable } from 'mobx';
17
17
  import { guaranteeNonNullable, guaranteeType, isType, uuid, } from '@finos/legend-shared';
18
- import { DIAGRAM_INTERACTION_MODE, } from '../../DiagramRenderer.js';
18
+ import { DIAGRAM_INTERACTION_MODE, } from '../../components/DiagramRenderer.js';
19
19
  import { PanelDisplayState } from '@finos/legend-art';
20
20
  import { GenericTypeExplicitReference, Property, GenericType, PropertyExplicitReference, isElementReadOnly, Multiplicity, PrimitiveType, } from '@finos/legend-graph';
21
21
  import { ClassEditorState, ElementEditorState, class_addProperty, } from '@finos/legend-application-studio';
22
22
  import { Diagram } from '../../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_Diagram.js';
23
- import { DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY } from '../../application/studio/DSL_Diagram_LegendStudioCommand.js';
23
+ import { DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY } from '../../__lib__/studio/DSL_Diagram_LegendStudioCommand.js';
24
24
  export class DiagramEditorSidePanelState {
25
25
  uuid = uuid();
26
26
  editorStore;
@@ -1 +1 @@
1
- {"version":3,"file":"DiagramEditorState.js","sourceRoot":"","sources":["../../../src/stores/studio/DiagramEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,MAAM,EACN,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,wBAAwB,GACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,C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l-diagram",
3
- "version": "7.1.55",
3
+ "version": "8.0.0",
4
4
  "description": "Legend extension for Diagram DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -21,7 +21,9 @@
21
21
  "sideEffects": false,
22
22
  "type": "module",
23
23
  "exports": {
24
- ".": "./lib/index.js",
24
+ "./graph": "./lib/graph-manager/index.js",
25
+ "./application": "./lib/components/index.js",
26
+ "./application-studio": "./lib/components/studio/index.js",
25
27
  "./lib/index.css": "./lib/index.css"
26
28
  },
27
29
  "module": "lib/index.js",
@@ -43,13 +45,14 @@
43
45
  "test:watch": "jest --watch"
44
46
  },
45
47
  "dependencies": {
46
- "@finos/legend-application": "14.0.3",
47
- "@finos/legend-application-studio": "23.1.11",
48
- "@finos/legend-art": "7.0.0",
49
- "@finos/legend-graph": "27.0.2",
50
- "@finos/legend-shared": "8.2.0",
51
- "@finos/legend-storage": "3.0.48",
52
- "@types/react": "18.0.34",
48
+ "@finos/legend-application": "15.0.0",
49
+ "@finos/legend-application-studio": "24.0.0",
50
+ "@finos/legend-art": "7.0.1",
51
+ "@finos/legend-graph": "28.0.0",
52
+ "@finos/legend-lego": "0.1.5",
53
+ "@finos/legend-shared": "9.0.0",
54
+ "@finos/legend-storage": "3.0.49",
55
+ "@types/react": "18.0.37",
53
56
  "mobx": "6.9.0",
54
57
  "mobx-react-lite": "3.4.3",
55
58
  "react": "18.2.0",
@@ -58,7 +61,7 @@
58
61
  "serializr": "3.0.2"
59
62
  },
60
63
  "devDependencies": {
61
- "@finos/legend-dev-utils": "2.0.53",
64
+ "@finos/legend-dev-utils": "2.0.54",
62
65
  "@jest/globals": "29.5.0",
63
66
  "@testing-library/react": "14.0.0",
64
67
  "cross-env": "7.0.3",
@@ -43,15 +43,15 @@ import {
43
43
  AggregationKind,
44
44
  } from '@finos/legend-graph';
45
45
  import { action, makeObservable, observable } from 'mobx';
46
- import type { Diagram } from './graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_Diagram.js';
47
- import { Rectangle } from './graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_Rectangle.js';
48
- import { Point } from './graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_Point.js';
49
- import { PositionedRectangle } from './graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_PositionedRectangle.js';
50
- import { ClassView } from './graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_ClassView.js';
51
- import type { PropertyHolderView } from './graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_PropertyHolderView.js';
52
- import { GeneralizationView } from './graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_GeneralizationView.js';
53
- import { RelationshipView } from './graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_RelationshipView.js';
54
- import { PropertyView } from './graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_PropertyView.js';
46
+ import type { Diagram } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_Diagram.js';
47
+ import { Rectangle } from '../graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_Rectangle.js';
48
+ import { Point } from '../graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_Point.js';
49
+ import { PositionedRectangle } from '../graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_PositionedRectangle.js';
50
+ import { ClassView } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_ClassView.js';
51
+ import type { PropertyHolderView } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_PropertyHolderView.js';
52
+ import { GeneralizationView } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_GeneralizationView.js';
53
+ import { RelationshipView } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_RelationshipView.js';
54
+ import { PropertyView } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_PropertyView.js';
55
55
  import {
56
56
  boxContains,
57
57
  buildBottomRightCornerBox,
@@ -59,8 +59,8 @@ import {
59
59
  getElementPosition,
60
60
  rotatePointX,
61
61
  rotatePointY,
62
- } from './graph/helpers/DSL_Diagram_Helper.js';
63
- import { AssociationView } from './graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_AssociationView.js';
62
+ } from '../graph/helpers/DSL_Diagram_Helper.js';
63
+ import { AssociationView } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_AssociationView.js';
64
64
  import {
65
65
  class_addProperty,
66
66
  class_addSuperType,
@@ -89,7 +89,7 @@ import {
89
89
  relationshipView_changePoint,
90
90
  relationshipView_simplifyPath,
91
91
  relationshipView_setPath,
92
- } from './stores/studio/DSL_Diagram_GraphModifierHelper.js';
92
+ } from '../stores/studio/DSL_Diagram_GraphModifierHelper.js';
93
93
 
94
94
  export enum DIAGRAM_INTERACTION_MODE {
95
95
  LAYOUT,
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ export {
18
+ DiagramRenderer,
19
+ DIAGRAM_ALIGNER_OPERATOR,
20
+ DIAGRAM_ZOOM_LEVELS,
21
+ DIAGRAM_INTERACTION_MODE,
22
+ DIAGRAM_RELATIONSHIP_EDIT_MODE,
23
+ } from './DiagramRenderer.js';
@@ -19,7 +19,7 @@ import { observer } from 'mobx-react-lite';
19
19
  import { useApplicationStore } from '@finos/legend-application';
20
20
  import { type Class, isElementReadOnly } from '@finos/legend-graph';
21
21
  import { InheritanceDiagramRenderer } from './InheritanceDiagramRenderer.js';
22
- import { DSL_DIAGRAM_TEST_ID } from '../../application/studio/DSL_Diagram_LegendStudioTesting.js';
22
+ import { DSL_DIAGRAM_TEST_ID } from '../../__lib__/studio/DSL_Diagram_LegendStudioTesting.js';
23
23
  import { useResizeDetector } from '@finos/legend-art';
24
24
 
25
25
  export const ClassDiagramPreview = observer((props: { _class: Class }) => {
@@ -34,6 +34,7 @@ import {
34
34
  type PureGrammarParserElementDocumentationGetter,
35
35
  type PureGrammarParserKeywordSuggestionGetter,
36
36
  type PureGrammarParserElementSnippetSuggestionsGetter,
37
+ type PureGrammarElementLabeler,
37
38
  } from '@finos/legend-application-studio';
38
39
  import { ShapesIcon } from '@finos/legend-art';
39
40
  import type { Class, PackageableElement } from '@finos/legend-graph';
@@ -41,29 +42,28 @@ import { Diagram } from '../../graph/metamodel/pure/packageableElements/diagram/
41
42
  import { DiagramEditorState } from '../../stores/studio/DiagramEditorState.js';
42
43
  import { DiagramEditor } from './DiagramEditor.js';
43
44
  import { ClassDiagramPreview } from './ClassDiagramPreview.js';
44
- import {
45
- PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL,
46
- PURE_GRAMMAR_DIAGRAM_PARSER_NAME,
47
- } from '../../graphManager/DSL_Diagram_PureGraphManagerPlugin.js';
48
- import { DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../application/studio/DSL_Diagram_LegendStudioDocumentation.js';
45
+ import { DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../__lib__/studio/DSL_Diagram_LegendStudioDocumentation.js';
49
46
  import {
50
47
  EMPTY_DIAGRAM_SNIPPET,
51
48
  getDiagramSnippetWithGeneralizationView,
52
49
  getDiagramSnippetWithOneClassView,
53
50
  getDiagramSnippetWithPropertyView,
54
- } from '../../application/studio/DSL_Diagram_LegendStudioCodeSnippet.js';
51
+ } from '../../__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.js';
55
52
  import {
56
53
  collectKeyedCommandConfigEntriesFromConfig,
57
- type PureGrammarTextSuggestion,
58
54
  type DocumentationEntry,
59
55
  type KeyedCommandConfigEntry,
60
56
  } from '@finos/legend-application';
61
- import { DSL_DIAGRAM_LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../application/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.js';
62
- import { DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_CONFIG } from '../../application/studio/DSL_Diagram_LegendStudioCommand.js';
57
+ import { DSL_DIAGRAM_LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.js';
58
+ import { DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_CONFIG } from '../../__lib__/studio/DSL_Diagram_LegendStudioCommand.js';
59
+ import type { PureGrammarTextSuggestion } from '@finos/legend-lego/code-editor';
63
60
 
64
61
  const DIAGRAM_ELEMENT_TYPE = 'DIAGRAM';
65
62
  const DIAGRAM_ELEMENT_PROJECT_EXPLORER_DND_TYPE = 'PROJECT_EXPLORER_DIAGRAM';
66
63
 
64
+ const PURE_GRAMMAR_DIAGRAM_PARSER_NAME = 'Diagram';
65
+ const PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL = 'Diagram';
66
+
67
67
  export class DSL_Diagram_LegendStudioApplicationPlugin
68
68
  extends LegendStudioApplicationPlugin
69
69
  implements DSL_LegendStudioApplicationPlugin_Extension
@@ -99,6 +99,25 @@ export class DSL_Diagram_LegendStudioApplicationPlugin
99
99
  ];
100
100
  }
101
101
 
102
+ getExtraPureGrammarParserNames(): string[] {
103
+ return [PURE_GRAMMAR_DIAGRAM_PARSER_NAME];
104
+ }
105
+
106
+ getExtraPureGrammarKeywords(): string[] {
107
+ return [PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL];
108
+ }
109
+
110
+ getExtraPureGrammarElementLabelers(): PureGrammarElementLabeler[] {
111
+ return [
112
+ (element: PackageableElement): string | undefined => {
113
+ if (element instanceof Diagram) {
114
+ return PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL;
115
+ }
116
+ return undefined;
117
+ },
118
+ ];
119
+ }
120
+
102
121
  getExtraSupportedElementTypes(): string[] {
103
122
  return [DIAGRAM_ELEMENT_TYPE];
104
123
  }
@@ -23,7 +23,7 @@ import {
23
23
  DIAGRAM_INTERACTION_MODE,
24
24
  DIAGRAM_RELATIONSHIP_EDIT_MODE,
25
25
  DIAGRAM_ZOOM_LEVELS,
26
- } from '../../DiagramRenderer.js';
26
+ } from '../DiagramRenderer.js';
27
27
  import {
28
28
  type DiagramEditorInlineClassCreatorState,
29
29
  type DiagramEditorInlineClassRenamerState,
@@ -93,10 +93,8 @@ import {
93
93
  import { guaranteeNonNullable, prettyCONSTName } from '@finos/legend-shared';
94
94
  import { flowResult } from 'mobx';
95
95
  import {
96
- type PackageableElementOption,
97
96
  useApplicationStore,
98
97
  useApplicationNavigationContext,
99
- buildElementOption,
100
98
  useCommands,
101
99
  } from '@finos/legend-application';
102
100
  import {
@@ -116,8 +114,12 @@ import {
116
114
  classView_setHideStereotypes,
117
115
  classView_setHideTaggedValues,
118
116
  } from '../../stores/studio/DSL_Diagram_GraphModifierHelper.js';
119
- import { DSL_DIAGRAM_LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../application/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.js';
120
- import { DSL_DIAGRAM_TEST_ID } from '../../application/studio/DSL_Diagram_LegendStudioTesting.js';
117
+ import { DSL_DIAGRAM_LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.js';
118
+ import { DSL_DIAGRAM_TEST_ID } from '../../__lib__/studio/DSL_Diagram_LegendStudioTesting.js';
119
+ import {
120
+ buildElementOption,
121
+ type PackageableElementOption,
122
+ } from '@finos/legend-lego/graph-editor';
121
123
 
122
124
  const DiagramEditorContextMenu = observer(
123
125
  forwardRef<
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { DiagramRenderer } from '../../DiagramRenderer.js';
17
+ import { DiagramRenderer } from '../DiagramRenderer.js';
18
18
  import { uuid } from '@finos/legend-shared';
19
19
  import {
20
20
  type Class,
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ export { DSL_Diagram_LegendStudioApplicationPlugin } from './DSL_Diagram_LegendStudioApplicationPlugin.js';
18
+
19
+ export { DiagramEditorState } from '../../stores/studio/DiagramEditorState.js';
@@ -14,11 +14,11 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import packageJson from '../package.json';
17
+ import packageJson from '../../package.json';
18
18
  import { AbstractPreset } from '@finos/legend-shared';
19
- import { DSL_Diagram_PureGraphManagerPlugin } from './graphManager/DSL_Diagram_PureGraphManagerPlugin.js';
20
- import { DSL_Diagram_PureProtocolProcessorPlugin } from './graphManager/protocol/pure/DSL_Diagram_PureProtocolProcessorPlugin.js';
21
- import { DSL_Diagram_PureGraphPlugin } from './graph/DSL_Diagram_PureGraphPlugin.js';
19
+ import { DSL_Diagram_PureGraphManagerPlugin } from './DSL_Diagram_PureGraphManagerPlugin.js';
20
+ import { DSL_Diagram_PureProtocolProcessorPlugin } from './protocol/pure/DSL_Diagram_PureProtocolProcessorPlugin.js';
21
+ import { DSL_Diagram_PureGraphPlugin } from '../graph/DSL_Diagram_PureGraphPlugin.js';
22
22
 
23
23
  export class DSL_Diagram_GraphManagerPreset extends AbstractPreset {
24
24
  constructor() {
@@ -20,38 +20,15 @@ import {
20
20
  type ObserverContext,
21
21
  type ElementObserver,
22
22
  type PackageableElement,
23
- type PureGrammarElementLabeler,
24
23
  } from '@finos/legend-graph';
25
24
  import { observe_Diagram } from './action/changeDetection/DSL_Diagram_ObserverHelper.js';
26
25
  import { Diagram } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_Diagram.js';
27
26
 
28
- export const PURE_GRAMMAR_DIAGRAM_PARSER_NAME = 'Diagram';
29
- export const PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL = 'Diagram';
30
-
31
27
  export class DSL_Diagram_PureGraphManagerPlugin extends PureGraphManagerPlugin {
32
28
  constructor() {
33
29
  super(packageJson.extensions.pureGraphManagerPlugin, packageJson.version);
34
30
  }
35
31
 
36
- override getExtraPureGrammarParserNames(): string[] {
37
- return [PURE_GRAMMAR_DIAGRAM_PARSER_NAME];
38
- }
39
-
40
- override getExtraPureGrammarKeywords(): string[] {
41
- return [PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL];
42
- }
43
-
44
- override getExtraPureGrammarElementLabelers(): PureGrammarElementLabeler[] {
45
- return [
46
- (element: PackageableElement): string | undefined => {
47
- if (element instanceof Diagram) {
48
- return PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL;
49
- }
50
- return undefined;
51
- },
52
- ];
53
- }
54
-
55
32
  override getExtraElementObservers(): ElementObserver[] {
56
33
  return [
57
34
  (
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ export * from './DSL_Diagram_GraphManagerPreset.js';
18
+
19
+ export { Diagram } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_Diagram.js';
20
+ export { ClassView } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_ClassView.js';
21
+ export { RelationshipView } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_RelationshipView.js';
22
+ export { PropertyHolderView } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_PropertyHolderView.js';
23
+ export { PropertyView } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_PropertyView.js';
24
+ export { AssociationView } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_AssociationView.js';
25
+ export { GeneralizationView } from '../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_GeneralizationView.js';
26
+ export { Point } from '../graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_Point.js';
27
+ export { Rectangle } from '../graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_Rectangle.js';
28
+ export { PositionedRectangle } from '../graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_PositionedRectangle.js';
29
+
30
+ export * from '../graph/helpers/DSL_Diagram_Helper.js';
31
+ export * from './DSL_Diagram_GraphManagerHelper.js';
32
+ export { V1_DSL_Diagram_PackageableElementPointerType } from './protocol/pure/DSL_Diagram_PureProtocolProcessorPlugin.js';
33
+ export { V1_resolveDiagram } from './protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_GraphBuilderHelper.js';
@@ -36,7 +36,7 @@ import {
36
36
  observe_ClassView,
37
37
  observe_GeneralizationView,
38
38
  observe_PropertyView,
39
- } from '../../graphManager/action/changeDetection/DSL_Diagram_ObserverHelper.js';
39
+ } from '../../graph-manager/action/changeDetection/DSL_Diagram_ObserverHelper.js';
40
40
 
41
41
  export const diagram_setClassViews = action(
42
42
  (diagram: Diagram, val: ClassView[]): void => {
@@ -24,7 +24,7 @@ import {
24
24
  import {
25
25
  type DiagramRenderer,
26
26
  DIAGRAM_INTERACTION_MODE,
27
- } from '../../DiagramRenderer.js';
27
+ } from '../../components/DiagramRenderer.js';
28
28
  import { PanelDisplayState } from '@finos/legend-art';
29
29
  import {
30
30
  type PackageableElement,
@@ -48,7 +48,7 @@ import type { ClassView } from '../../graph/metamodel/pure/packageableElements/d
48
48
  import type { Point } from '../../graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_Point.js';
49
49
  import { Diagram } from '../../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_Diagram.js';
50
50
  import type { PropertyHolderView } from '../../graph/metamodel/pure/packageableElements/diagram/DSL_Diagram_PropertyHolderView.js';
51
- import { DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY } from '../../application/studio/DSL_Diagram_LegendStudioCommand.js';
51
+ import { DSL_DIAGRAM_LEGEND_STUDIO_COMMAND_KEY } from '../../__lib__/studio/DSL_Diagram_LegendStudioCommand.js';
52
52
  import type { CommandRegistrar } from '@finos/legend-application';
53
53
 
54
54
  export abstract class DiagramEditorSidePanelState {
package/tsconfig.json CHANGED
@@ -32,15 +32,15 @@
32
32
  }
33
33
  ],
34
34
  "files": [
35
- "./src/DSL_Diagram_Extension.ts",
36
- "./src/DiagramRenderer.ts",
37
- "./src/index.ts",
38
- "./src/application/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.ts",
39
- "./src/application/studio/DSL_Diagram_LegendStudioCodeSnippet.ts",
40
- "./src/application/studio/DSL_Diagram_LegendStudioCommand.ts",
41
- "./src/application/studio/DSL_Diagram_LegendStudioDocumentation.ts",
42
- "./src/application/studio/DSL_Diagram_LegendStudioTesting.ts",
35
+ "./src/__lib__/studio/DSL_Diagram_LegendStudioApplicationNavigationContext.ts",
36
+ "./src/__lib__/studio/DSL_Diagram_LegendStudioCodeSnippet.ts",
37
+ "./src/__lib__/studio/DSL_Diagram_LegendStudioCommand.ts",
38
+ "./src/__lib__/studio/DSL_Diagram_LegendStudioDocumentation.ts",
39
+ "./src/__lib__/studio/DSL_Diagram_LegendStudioTesting.ts",
40
+ "./src/components/DiagramRenderer.ts",
41
+ "./src/components/index.ts",
43
42
  "./src/components/studio/InheritanceDiagramRenderer.ts",
43
+ "./src/components/studio/index.ts",
44
44
  "./src/graph/DSL_Diagram_HashUtils.ts",
45
45
  "./src/graph/DSL_Diagram_PureGraphPlugin.ts",
46
46
  "./src/graph/helpers/DSL_Diagram_Helper.ts",
@@ -56,23 +56,25 @@
56
56
  "./src/graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_Point.ts",
57
57
  "./src/graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_PositionedRectangle.ts",
58
58
  "./src/graph/metamodel/pure/packageableElements/diagram/geometry/DSL_Diagram_Rectangle.ts",
59
- "./src/graphManager/DSL_Diagram_GraphManagerHelper.ts",
60
- "./src/graphManager/DSL_Diagram_PureGraphManagerPlugin.ts",
61
- "./src/graphManager/action/changeDetection/DSL_Diagram_ObserverHelper.ts",
62
- "./src/graphManager/protocol/pure/DSL_Diagram_PureProtocolProcessorPlugin.ts",
63
- "./src/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_ClassView.ts",
64
- "./src/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_Diagram.ts",
65
- "./src/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_GeneralizationView.ts",
66
- "./src/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyHolderView.ts",
67
- "./src/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyView.ts",
68
- "./src/graphManager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_RelationshipView.ts",
69
- "./src/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Line.ts",
70
- "./src/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Point.ts",
71
- "./src/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_PositionedRectangle.ts",
72
- "./src/graphManager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Rectangle.ts",
73
- "./src/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_GraphBuilderHelper.ts",
74
- "./src/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_TransformerHelper.ts",
75
- "./src/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_Diagram_ProtocolHelper.ts",
59
+ "./src/graph-manager/DSL_Diagram_GraphManagerHelper.ts",
60
+ "./src/graph-manager/DSL_Diagram_GraphManagerPreset.ts",
61
+ "./src/graph-manager/DSL_Diagram_PureGraphManagerPlugin.ts",
62
+ "./src/graph-manager/index.ts",
63
+ "./src/graph-manager/action/changeDetection/DSL_Diagram_ObserverHelper.ts",
64
+ "./src/graph-manager/protocol/pure/DSL_Diagram_PureProtocolProcessorPlugin.ts",
65
+ "./src/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_ClassView.ts",
66
+ "./src/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_Diagram.ts",
67
+ "./src/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_GeneralizationView.ts",
68
+ "./src/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyHolderView.ts",
69
+ "./src/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_PropertyView.ts",
70
+ "./src/graph-manager/protocol/pure/v1/model/packageableElements/diagram/V1_DSL_Diagram_RelationshipView.ts",
71
+ "./src/graph-manager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Line.ts",
72
+ "./src/graph-manager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Point.ts",
73
+ "./src/graph-manager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_PositionedRectangle.ts",
74
+ "./src/graph-manager/protocol/pure/v1/model/packageableElements/diagram/geometry/V1_DSL_Diagram_Rectangle.ts",
75
+ "./src/graph-manager/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_GraphBuilderHelper.ts",
76
+ "./src/graph-manager/protocol/pure/v1/transformation/pureGraph/V1_DSL_Diagram_TransformerHelper.ts",
77
+ "./src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_Diagram_ProtocolHelper.ts",
76
78
  "./src/stores/studio/DSL_Diagram_GraphModifierHelper.ts",
77
79
  "./src/stores/studio/DiagramEditorState.ts",
78
80
  "./src/components/studio/ClassDiagramPreview.tsx",