@finos/legend-application-studio 16.0.2 → 17.0.0

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 (359) hide show
  1. package/lib/application/LegendStudioApplicationConfig.d.ts +4 -3
  2. package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
  3. package/lib/application/LegendStudioApplicationConfig.js +9 -3
  4. package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
  5. package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
  6. package/lib/components/EditorComponentTestUtils.js +2 -2
  7. package/lib/components/EditorComponentTestUtils.js.map +1 -1
  8. package/lib/components/EmbeddedQueryBuilder.d.ts.map +1 -1
  9. package/lib/components/EmbeddedQueryBuilder.js +2 -6
  10. package/lib/components/EmbeddedQueryBuilder.js.map +1 -1
  11. package/lib/components/LegendStudioApplication.js +1 -1
  12. package/lib/components/LegendStudioApplication.js.map +1 -1
  13. package/lib/components/LegendStudioBaseStoreProvider.d.ts +0 -2
  14. package/lib/components/LegendStudioBaseStoreProvider.d.ts.map +1 -1
  15. package/lib/components/LegendStudioBaseStoreProvider.js +2 -2
  16. package/lib/components/LegendStudioBaseStoreProvider.js.map +1 -1
  17. package/lib/components/editor/EditorStoreProvider.d.ts.map +1 -1
  18. package/lib/components/editor/EditorStoreProvider.js +2 -3
  19. package/lib/components/editor/EditorStoreProvider.js.map +1 -1
  20. package/lib/components/editor/edit-panel/FunctionEditor.js +1 -1
  21. package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
  22. package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js +1 -1
  23. package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js.map +1 -1
  24. package/lib/components/editor/edit-panel/GrammarTextEditor.js +4 -4
  25. package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
  26. package/lib/components/editor/edit-panel/RuntimeEditor.js +1 -1
  27. package/lib/components/editor/edit-panel/RuntimeEditor.js.map +1 -1
  28. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
  29. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js +19 -4
  30. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
  31. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.d.ts.map +1 -1
  32. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js +6 -6
  33. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js.map +1 -1
  34. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js +1 -1
  35. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js.map +1 -1
  36. package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.d.ts.map +1 -1
  37. package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.js +1 -1
  38. package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.js.map +1 -1
  39. package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.d.ts +1 -1
  40. package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.d.ts.map +1 -1
  41. package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js +2 -2
  42. package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js.map +1 -1
  43. package/lib/components/editor/edit-panel/external-format-editor/BindingElementEditor.js +1 -1
  44. package/lib/components/editor/edit-panel/external-format-editor/BindingElementEditor.js.map +1 -1
  45. package/lib/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.d.ts.map +1 -1
  46. package/lib/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.js +1 -1
  47. package/lib/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.js.map +1 -1
  48. package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.js +1 -1
  49. package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.js.map +1 -1
  50. package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js +1 -1
  51. package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js.map +1 -1
  52. package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js +2 -2
  53. package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js.map +1 -1
  54. package/lib/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.js +1 -1
  55. package/lib/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.js.map +1 -1
  56. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js +1 -1
  57. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js.map +1 -1
  58. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
  59. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +2 -5
  60. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
  61. package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js +1 -1
  62. package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js.map +1 -1
  63. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
  64. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js +2 -5
  65. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
  66. package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.js +1 -1
  67. package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.js.map +1 -1
  68. package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
  69. package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js +2 -2
  70. package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js.map +1 -1
  71. package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js +1 -1
  72. package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js.map +1 -1
  73. package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js +1 -1
  74. package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js.map +1 -1
  75. package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js +2 -2
  76. package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js.map +1 -1
  77. package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js +1 -1
  78. package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js.map +1 -1
  79. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts.map +1 -1
  80. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +2 -1
  81. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
  82. package/lib/components/editor/edit-panel/service-editor/NewServiceModal.d.ts.map +1 -1
  83. package/lib/components/editor/edit-panel/service-editor/NewServiceModal.js +1 -1
  84. package/lib/components/editor/edit-panel/service-editor/NewServiceModal.js.map +1 -1
  85. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js +1 -1
  86. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js.map +1 -1
  87. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
  88. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +1 -4
  89. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
  90. package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
  91. package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.js +8 -8
  92. package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.js.map +1 -1
  93. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js +2 -1
  94. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
  95. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js +2 -2
  96. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
  97. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js +2 -2
  98. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js.map +1 -1
  99. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js +1 -1
  100. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js.map +1 -1
  101. package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.js +1 -1
  102. package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.js.map +1 -1
  103. package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
  104. package/lib/components/editor/side-bar/CreateNewElementModal.js +5 -2
  105. package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
  106. package/lib/components/editor/side-bar/Explorer.js +4 -4
  107. package/lib/components/editor/side-bar/Explorer.js.map +1 -1
  108. package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
  109. package/lib/components/editor/side-bar/LocalChanges.js +1 -1
  110. package/lib/components/editor/side-bar/LocalChanges.js.map +1 -1
  111. package/lib/components/editor/side-bar/WorkspaceReview.js +1 -1
  112. package/lib/components/editor/side-bar/WorkspaceReview.js.map +1 -1
  113. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts.map +1 -1
  114. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js +1 -1
  115. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js.map +1 -1
  116. package/lib/components/shared/ElementIconUtils.js +1 -1
  117. package/lib/components/shared/ElementIconUtils.js.map +1 -1
  118. package/lib/components/{workspace-setup/ProjectSelector.d.ts → shared/ProjectSelectorUtils.d.ts} +9 -7
  119. package/lib/components/shared/ProjectSelectorUtils.d.ts.map +1 -0
  120. package/lib/components/shared/ProjectSelectorUtils.js +28 -0
  121. package/lib/components/shared/ProjectSelectorUtils.js.map +1 -0
  122. package/lib/components/shared/TypeTree.js +2 -2
  123. package/lib/components/shared/TypeTree.js.map +1 -1
  124. package/lib/components/{workspace-setup/WorkspaceSetupStoreProvider.d.ts → shared/WorkspaceSelectorUtils.d.ts} +8 -8
  125. package/lib/components/shared/WorkspaceSelectorUtils.d.ts.map +1 -0
  126. package/lib/components/shared/WorkspaceSelectorUtils.js +24 -0
  127. package/lib/components/shared/WorkspaceSelectorUtils.js.map +1 -0
  128. package/lib/components/workspace-setup/{ProjectCreateModal.d.ts → CreateProjectModal.d.ts} +1 -1
  129. package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -0
  130. package/lib/components/workspace-setup/{ProjectCreateModal.js → CreateProjectModal.js} +4 -4
  131. package/lib/components/workspace-setup/{ProjectCreateModal.js.map → CreateProjectModal.js.map} +1 -1
  132. package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts +22 -0
  133. package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -0
  134. package/lib/components/workspace-setup/CreateWorkspaceModal.js +67 -0
  135. package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -0
  136. package/lib/components/workspace-setup/WorkspaceSetup.d.ts +2 -0
  137. package/lib/components/workspace-setup/WorkspaceSetup.d.ts.map +1 -1
  138. package/lib/components/workspace-setup/WorkspaceSetup.js +96 -115
  139. package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
  140. package/lib/index.css +2 -2
  141. package/lib/index.css.map +1 -1
  142. package/lib/index.d.ts +9 -6
  143. package/lib/index.d.ts.map +1 -1
  144. package/lib/index.js +9 -7
  145. package/lib/index.js.map +1 -1
  146. package/lib/package.json +4 -4
  147. package/lib/stores/{DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.d.ts → DSLGeneration_LegendStudioApplicationPlugin_Extension.d.ts} +5 -2
  148. package/lib/stores/DSLGeneration_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -0
  149. package/lib/stores/{DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.js → DSLGeneration_LegendStudioApplicationPlugin_Extension.js} +1 -1
  150. package/lib/stores/DSLGeneration_LegendStudioApplicationPlugin_Extension.js.map +1 -0
  151. package/lib/stores/EditorGraphState.d.ts +1 -1
  152. package/lib/stores/EditorGraphState.d.ts.map +1 -1
  153. package/lib/stores/EditorGraphState.js +3 -2
  154. package/lib/stores/EditorGraphState.js.map +1 -1
  155. package/lib/stores/EditorStore.d.ts +6 -8
  156. package/lib/stores/EditorStore.d.ts.map +1 -1
  157. package/lib/stores/EditorStore.js +39 -13
  158. package/lib/stores/EditorStore.js.map +1 -1
  159. package/lib/stores/EditorStoreTestUtils.d.ts.map +1 -1
  160. package/lib/stores/EditorStoreTestUtils.js +1 -1
  161. package/lib/stores/EditorStoreTestUtils.js.map +1 -1
  162. package/lib/stores/ExplorerTreeState.d.ts +2 -2
  163. package/lib/stores/ExplorerTreeState.d.ts.map +1 -1
  164. package/lib/stores/ExplorerTreeState.js +2 -2
  165. package/lib/stores/ExplorerTreeState.js.map +1 -1
  166. package/lib/stores/LegendStudioAppEvent.d.ts.map +1 -1
  167. package/lib/stores/LegendStudioAppEvent.js +2 -0
  168. package/lib/stores/LegendStudioAppEvent.js.map +1 -1
  169. package/lib/stores/LegendStudioBaseStore.d.ts +2 -3
  170. package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
  171. package/lib/stores/LegendStudioBaseStore.js +7 -2
  172. package/lib/stores/LegendStudioBaseStore.js.map +1 -1
  173. package/lib/stores/LegendStudioRouter.js +1 -1
  174. package/lib/stores/LegendStudioRouter.js.map +1 -1
  175. package/lib/stores/editor/NewElementState.d.ts.map +1 -1
  176. package/lib/stores/editor/NewElementState.js +5 -2
  177. package/lib/stores/editor/NewElementState.js.map +1 -1
  178. package/lib/stores/editor-state/FileGenerationState.d.ts +1 -1
  179. package/lib/stores/editor-state/FileGenerationState.d.ts.map +1 -1
  180. package/lib/stores/editor-state/FileGenerationState.js +1 -1
  181. package/lib/stores/editor-state/FileGenerationState.js.map +1 -1
  182. package/lib/stores/editor-state/FileGenerationViewerState.d.ts +1 -1
  183. package/lib/stores/editor-state/FileGenerationViewerState.d.ts.map +1 -1
  184. package/lib/stores/editor-state/GraphGenerationState.d.ts +1 -1
  185. package/lib/stores/editor-state/GraphGenerationState.d.ts.map +1 -1
  186. package/lib/stores/editor-state/GraphGenerationState.js +2 -2
  187. package/lib/stores/editor-state/GraphGenerationState.js.map +1 -1
  188. package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
  189. package/lib/stores/editor-state/ProjectConfigurationEditorState.js +2 -1
  190. package/lib/stores/editor-state/ProjectConfigurationEditorState.js.map +1 -1
  191. package/lib/stores/editor-state/element-editor-state/RuntimeEditorState.d.ts +1 -1
  192. package/lib/stores/editor-state/element-editor-state/RuntimeEditorState.d.ts.map +1 -1
  193. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +1 -1
  194. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
  195. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js +2 -2
  196. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
  197. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js +1 -1
  198. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
  199. package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js +1 -1
  200. package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -1
  201. package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.d.ts.map +1 -1
  202. package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js +1 -1
  203. package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
  204. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts +5 -8
  205. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts.map +1 -1
  206. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js +15 -20
  207. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
  208. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js +1 -1
  209. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
  210. package/lib/stores/graphModifier/DSLMapping_GraphModifierHelper.js +1 -1
  211. package/lib/stores/graphModifier/DSLMapping_GraphModifierHelper.js.map +1 -1
  212. package/lib/stores/project-viewer/ProjectViewerStore.d.ts +1 -2
  213. package/lib/stores/project-viewer/ProjectViewerStore.d.ts.map +1 -1
  214. package/lib/stores/project-viewer/ProjectViewerStore.js +2 -1
  215. package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
  216. package/lib/stores/shared/{DnDUtil.d.ts → DnDUtils.d.ts} +2 -2
  217. package/lib/stores/shared/DnDUtils.d.ts.map +1 -0
  218. package/lib/stores/shared/{DnDUtil.js → DnDUtils.js} +1 -1
  219. package/lib/stores/shared/DnDUtils.js.map +1 -0
  220. package/lib/stores/shared/{FileGenerationTreeUtil.d.ts → FileGenerationTreeUtils.d.ts} +1 -1
  221. package/lib/stores/shared/FileGenerationTreeUtils.d.ts.map +1 -0
  222. package/lib/stores/shared/{FileGenerationTreeUtil.js → FileGenerationTreeUtils.js} +1 -1
  223. package/lib/stores/shared/FileGenerationTreeUtils.js.map +1 -0
  224. package/lib/stores/shared/{MockDataUtil.d.ts → MockDataUtils.d.ts} +1 -1
  225. package/lib/stores/shared/MockDataUtils.d.ts.map +1 -0
  226. package/lib/stores/shared/{MockDataUtil.js → MockDataUtils.js} +2 -2
  227. package/lib/stores/shared/MockDataUtils.js.map +1 -0
  228. package/lib/stores/shared/{ModelUtil.d.ts → ModelClassifierUtils.d.ts} +1 -1
  229. package/lib/stores/shared/ModelClassifierUtils.d.ts.map +1 -0
  230. package/lib/stores/shared/{ModelUtil.js → ModelClassifierUtils.js} +1 -1
  231. package/lib/stores/shared/ModelClassifierUtils.js.map +1 -0
  232. package/lib/stores/shared/{PackageTreeUtil.d.ts → PackageTreeUtils.d.ts} +2 -2
  233. package/lib/stores/shared/PackageTreeUtils.d.ts.map +1 -0
  234. package/lib/stores/shared/{PackageTreeUtil.js → PackageTreeUtils.js} +2 -2
  235. package/lib/stores/shared/PackageTreeUtils.js.map +1 -0
  236. package/lib/stores/shared/{TreeUtil.d.ts → TreeUtils.d.ts} +2 -2
  237. package/lib/stores/shared/TreeUtils.d.ts.map +1 -0
  238. package/lib/stores/shared/{TreeUtil.js → TreeUtils.js} +1 -1
  239. package/lib/stores/shared/TreeUtils.js.map +1 -0
  240. package/lib/stores/shared/testable/TestableUtils.js +1 -1
  241. package/lib/stores/shared/testable/TestableUtils.js.map +1 -1
  242. package/lib/stores/workspace-setup/WorkspaceSetupStore.d.ts +18 -33
  243. package/lib/stores/workspace-setup/WorkspaceSetupStore.d.ts.map +1 -1
  244. package/lib/stores/workspace-setup/WorkspaceSetupStore.js +137 -133
  245. package/lib/stores/workspace-setup/WorkspaceSetupStore.js.map +1 -1
  246. package/package.json +13 -13
  247. package/src/application/LegendStudioApplicationConfig.ts +12 -5
  248. package/src/components/EditorComponentTestUtils.tsx +1 -6
  249. package/src/components/EmbeddedQueryBuilder.tsx +2 -8
  250. package/src/components/LegendStudioApplication.tsx +1 -1
  251. package/src/components/LegendStudioBaseStoreProvider.tsx +2 -5
  252. package/src/components/editor/EditorStoreProvider.tsx +1 -6
  253. package/src/components/editor/edit-panel/FunctionEditor.tsx +1 -1
  254. package/src/components/editor/edit-panel/GenerationSpecificationEditor.tsx +5 -5
  255. package/src/components/editor/edit-panel/GrammarTextEditor.tsx +4 -4
  256. package/src/components/editor/edit-panel/RuntimeEditor.tsx +2 -2
  257. package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +31 -3
  258. package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +16 -11
  259. package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +1 -1
  260. package/src/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.tsx +2 -3
  261. package/src/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.tsx +4 -4
  262. package/src/components/editor/edit-panel/external-format-editor/BindingElementEditor.tsx +1 -1
  263. package/src/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.tsx +0 -1
  264. package/src/components/editor/edit-panel/mapping-editor/ClassMappingEditor.tsx +1 -1
  265. package/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx +1 -1
  266. package/src/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.tsx +2 -2
  267. package/src/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.tsx +2 -2
  268. package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx +1 -1
  269. package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +2 -14
  270. package/src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx +1 -1
  271. package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +1 -9
  272. package/src/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.tsx +1 -1
  273. package/src/components/editor/edit-panel/mapping-editor/NewMappingElementModal.tsx +2 -6
  274. package/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx +1 -1
  275. package/src/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.tsx +1 -1
  276. package/src/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.tsx +2 -2
  277. package/src/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.tsx +1 -1
  278. package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +4 -2
  279. package/src/components/editor/edit-panel/service-editor/NewServiceModal.tsx +2 -3
  280. package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +1 -1
  281. package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +1 -8
  282. package/src/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.tsx +15 -10
  283. package/src/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.tsx +1 -1
  284. package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +2 -2
  285. package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +2 -2
  286. package/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx +1 -1
  287. package/src/components/editor/edit-panel/uml-editor/PropertyEditor.tsx +1 -1
  288. package/src/components/editor/side-bar/CreateNewElementModal.tsx +5 -2
  289. package/src/components/editor/side-bar/Explorer.tsx +5 -5
  290. package/src/components/editor/side-bar/LocalChanges.tsx +1 -1
  291. package/src/components/editor/side-bar/WorkspaceReview.tsx +1 -1
  292. package/src/components/editor/side-bar/WorkspaceSyncConflictResolver.tsx +2 -8
  293. package/src/components/shared/ElementIconUtils.tsx +1 -1
  294. package/src/components/shared/ProjectSelectorUtils.tsx +63 -0
  295. package/src/components/shared/TypeTree.tsx +3 -3
  296. package/src/components/shared/WorkspaceSelectorUtils.tsx +45 -0
  297. package/src/components/workspace-setup/{ProjectCreateModal.tsx → CreateProjectModal.tsx} +7 -3
  298. package/src/components/workspace-setup/CreateWorkspaceModal.tsx +178 -0
  299. package/src/components/workspace-setup/WorkspaceSetup.tsx +300 -346
  300. package/src/index.ts +9 -9
  301. package/src/stores/{DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.ts → DSLGeneration_LegendStudioApplicationPlugin_Extension.ts} +4 -1
  302. package/src/stores/EditorGraphState.ts +2 -3
  303. package/src/stores/EditorStore.ts +52 -19
  304. package/src/stores/EditorStoreTestUtils.ts +0 -1
  305. package/src/stores/ExplorerTreeState.ts +3 -3
  306. package/src/stores/LegendStudioAppEvent.ts +3 -0
  307. package/src/stores/LegendStudioBaseStore.ts +7 -4
  308. package/src/stores/LegendStudioRouter.ts +1 -1
  309. package/src/stores/editor/NewElementState.ts +5 -1
  310. package/src/stores/editor-state/FileGenerationState.ts +1 -1
  311. package/src/stores/editor-state/FileGenerationViewerState.ts +1 -1
  312. package/src/stores/editor-state/GraphGenerationState.ts +6 -6
  313. package/src/stores/editor-state/ProjectConfigurationEditorState.ts +1 -1
  314. package/src/stores/editor-state/element-editor-state/RuntimeEditorState.ts +1 -1
  315. package/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts +2 -2
  316. package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +1 -1
  317. package/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +1 -1
  318. package/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +1 -2
  319. package/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +33 -32
  320. package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +1 -1
  321. package/src/stores/graphModifier/DSLMapping_GraphModifierHelper.ts +1 -1
  322. package/src/stores/project-viewer/ProjectViewerStore.ts +6 -6
  323. package/src/stores/shared/{DnDUtil.ts → DnDUtils.ts} +1 -1
  324. package/src/stores/shared/{FileGenerationTreeUtil.ts → FileGenerationTreeUtils.ts} +0 -0
  325. package/src/stores/shared/{MockDataUtil.ts → MockDataUtils.ts} +4 -1
  326. package/src/stores/shared/{ModelUtil.ts → ModelClassifierUtils.ts} +0 -0
  327. package/src/stores/shared/{PackageTreeUtil.ts → PackageTreeUtils.ts} +2 -2
  328. package/src/stores/shared/{TreeUtil.ts → TreeUtils.ts} +1 -1
  329. package/src/stores/shared/testable/TestableUtils.ts +1 -1
  330. package/src/stores/workspace-setup/WorkspaceSetupStore.ts +208 -190
  331. package/tsconfig.json +12 -12
  332. package/lib/components/workspace-setup/ProjectCreateModal.d.ts.map +0 -1
  333. package/lib/components/workspace-setup/ProjectSelector.d.ts.map +0 -1
  334. package/lib/components/workspace-setup/ProjectSelector.js +0 -65
  335. package/lib/components/workspace-setup/ProjectSelector.js.map +0 -1
  336. package/lib/components/workspace-setup/WorkspaceSelector.d.ts +0 -22
  337. package/lib/components/workspace-setup/WorkspaceSelector.d.ts.map +0 -1
  338. package/lib/components/workspace-setup/WorkspaceSelector.js +0 -57
  339. package/lib/components/workspace-setup/WorkspaceSelector.js.map +0 -1
  340. package/lib/components/workspace-setup/WorkspaceSetupStoreProvider.d.ts.map +0 -1
  341. package/lib/components/workspace-setup/WorkspaceSetupStoreProvider.js +0 -34
  342. package/lib/components/workspace-setup/WorkspaceSetupStoreProvider.js.map +0 -1
  343. package/lib/stores/DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.d.ts.map +0 -1
  344. package/lib/stores/DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.js.map +0 -1
  345. package/lib/stores/shared/DnDUtil.d.ts.map +0 -1
  346. package/lib/stores/shared/DnDUtil.js.map +0 -1
  347. package/lib/stores/shared/FileGenerationTreeUtil.d.ts.map +0 -1
  348. package/lib/stores/shared/FileGenerationTreeUtil.js.map +0 -1
  349. package/lib/stores/shared/MockDataUtil.d.ts.map +0 -1
  350. package/lib/stores/shared/MockDataUtil.js.map +0 -1
  351. package/lib/stores/shared/ModelUtil.d.ts.map +0 -1
  352. package/lib/stores/shared/ModelUtil.js.map +0 -1
  353. package/lib/stores/shared/PackageTreeUtil.d.ts.map +0 -1
  354. package/lib/stores/shared/PackageTreeUtil.js.map +0 -1
  355. package/lib/stores/shared/TreeUtil.d.ts.map +0 -1
  356. package/lib/stores/shared/TreeUtil.js.map +0 -1
  357. package/src/components/workspace-setup/ProjectSelector.tsx +0 -148
  358. package/src/components/workspace-setup/WorkspaceSelector.tsx +0 -135
  359. package/src/components/workspace-setup/WorkspaceSetupStoreProvider.tsx +0 -56
package/src/index.ts CHANGED
@@ -42,7 +42,7 @@ export {
42
42
  TypeDragSource,
43
43
  type UMLEditorElementDropTarget,
44
44
  type TransformDropTarget,
45
- } from './stores/shared/DnDUtil.js';
45
+ } from './stores/shared/DnDUtils.js';
46
46
  export { ExplorerTreeRootPackageLabel } from './stores/ExplorerTreeState.js';
47
47
  export * from './stores/graphModifier/GraphModifierHelper.js';
48
48
  export * from './stores/graphModifier/DomainGraphModifierHelper.js';
@@ -54,6 +54,10 @@ export * from './stores/graphModifier/DSLService_GraphModifierHelper.js';
54
54
 
55
55
  // components
56
56
  export * from './components/editor/EditorStoreProvider.js';
57
+ export * from './stores/LegendStudioRouter.js';
58
+ export { ActivityBarMenu } from './components/editor/ActivityBar.js';
59
+ export * from './components/shared/ProjectSelectorUtils.js';
60
+ export * from './components/shared/WorkspaceSelectorUtils.js';
57
61
  export { ClassFormEditor } from './components/editor/edit-panel/uml-editor/ClassEditor.js';
58
62
  export { TypeTree } from './components/shared/TypeTree.js';
59
63
  export { StudioTextInputEditor } from './components/shared/StudioTextInputEditor.js';
@@ -80,12 +84,6 @@ export { MappingElementState } from './stores/editor-state/element-editor-state/
80
84
  export { UnsupportedInstanceSetImplementationState } from './stores/editor-state/element-editor-state/mapping/UnsupportedInstanceSetImplementationState.js';
81
85
  export { getElementIcon } from './components/shared/ElementIconUtils.js';
82
86
 
83
- export { ProjectSelector } from './components/workspace-setup/ProjectSelector.js';
84
-
85
- // TO BE REMOVED: these setup are currently needed for project dependency dashboard, until we open source, we can remove them
86
- export * from './components/workspace-setup/WorkspaceSetupStoreProvider.js';
87
- export { WorkspaceSetupStore } from './stores/workspace-setup/WorkspaceSetupStore.js';
88
-
89
87
  // --------------------------------------------- DSL --------------------------------------------------
90
88
  /**
91
89
  * @modularize
@@ -97,13 +95,15 @@ export {
97
95
  ConnectionEditor_BooleanEditor,
98
96
  ConnectionEditor_ArrayEditor,
99
97
  } from './components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js';
100
- export * from './stores/DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.js';
98
+ export * from './stores/DSLGeneration_LegendStudioApplicationPlugin_Extension.js';
101
99
 
102
100
  export * from './stores/StoreRelational_LegendStudioApplicationPlugin_Extension.js';
103
101
 
102
+ export { MINIMUM_SERVICE_OWNERS } from './stores/editor-state/element-editor-state/service/ServiceEditorState.js';
103
+ export { generateServiceManagementUrl } from './stores/editor-state/element-editor-state/service/ServiceRegistrationState.js';
104
104
  export { ServicePureExecutionState } from './stores/editor-state/element-editor-state/service/ServiceExecutionState.js';
105
105
  export { NewServiceModal } from './components/editor/edit-panel/service-editor/NewServiceModal.js';
106
- export { GenerationFile } from './stores/shared/FileGenerationTreeUtil.js';
106
+ export { GenerationFile } from './stores/shared/FileGenerationTreeUtils.js';
107
107
  export { FileGenerationState } from './stores/editor-state/FileGenerationState.js';
108
108
  export { DSLExternalFormat_LegendStudioApplicationPlugin } from './components/DSLExternalFormat_LegendStudioApplicationPlugin.js';
109
109
  export {
@@ -30,7 +30,7 @@ export type FileGenerationScopeFilterConfiguration = {
30
30
  filter: (element: PackageableElement) => boolean;
31
31
  };
32
32
 
33
- export interface DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension
33
+ export interface DSLGeneration_LegendStudioApplicationPlugin_Extension
34
34
  extends DSL_LegendStudioApplicationPlugin_Extension {
35
35
  /**
36
36
  * Get drag-and-drop type specifier for model generation specification elements.
@@ -44,6 +44,9 @@ export interface DSLGenerationSpecification_LegendStudioApplicationPlugin_Extens
44
44
 
45
45
  /**
46
46
  * Get the list of filters that check if an element is in scope for certain file generation.
47
+ *
48
+ * TODO?: ideally, we should consider having the backend returns this information instead,
49
+ * maybe the classifier path
47
50
  */
48
51
  getExtraFileGenerationScopeFilterConfigurations?(): FileGenerationScopeFilterConfiguration[];
49
52
  }
@@ -37,7 +37,7 @@ import { ElementEditorState } from './editor-state/element-editor-state/ElementE
37
37
  import { GraphGenerationState } from './editor-state/GraphGenerationState.js';
38
38
  import { MODEL_IMPORT_NATIVE_INPUT_TYPE } from './editor-state/ModelImporterState.js';
39
39
  import type { DSL_LegendStudioApplicationPlugin_Extension } from './LegendStudioApplicationPlugin.js';
40
- import type { Entity } from '@finos/legend-storage';
40
+ import { type Entity, generateGAVCoordinates } from '@finos/legend-storage';
41
41
  import {
42
42
  type EntityChange,
43
43
  type ProjectDependency,
@@ -49,7 +49,6 @@ import {
49
49
  ProjectVersionEntities,
50
50
  ProjectData,
51
51
  ProjectDependencyCoordinates,
52
- generateGAVCoordinates,
53
52
  ProjectDependencyInfo,
54
53
  } from '@finos/legend-server-depot';
55
54
  import {
@@ -105,7 +104,7 @@ import { graph_dispose } from './graphModifier/GraphModifierHelper.js';
105
104
  import {
106
105
  PACKAGEABLE_ELEMENT_TYPE,
107
106
  SET_IMPLEMENTATION_TYPE,
108
- } from './shared/ModelUtil.js';
107
+ } from './shared/ModelClassifierUtils.js';
109
108
  import { GlobalTestRunnerState } from './sidebar-state/testable/GlobalTestRunnerState.js';
110
109
  import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent.js';
111
110
 
@@ -14,7 +14,14 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { action, flowResult, makeAutoObservable } from 'mobx';
17
+ import {
18
+ action,
19
+ computed,
20
+ flow,
21
+ flowResult,
22
+ makeObservable,
23
+ observable,
24
+ } from 'mobx';
18
25
  import { ClassEditorState } from './editor-state/element-editor-state/ClassEditorState.js';
19
26
  import { ExplorerTreeState } from './ExplorerTreeState.js';
20
27
  import {
@@ -74,7 +81,7 @@ import { CHANGE_DETECTION_EVENT } from './ChangeDetectionEvent.js';
74
81
  import { GenerationSpecificationEditorState } from './editor-state/GenerationSpecificationEditorState.js';
75
82
  import { UnsupportedElementEditorState } from './editor-state/UnsupportedElementEditorState.js';
76
83
  import { FileGenerationViewerState } from './editor-state/FileGenerationViewerState.js';
77
- import type { GenerationFile } from './shared/FileGenerationTreeUtil.js';
84
+ import type { GenerationFile } from './shared/FileGenerationTreeUtils.js';
78
85
  import type { ElementFileGenerationState } from './editor-state/element-editor-state/ElementFileGenerationState.js';
79
86
  import { DevToolState } from './aux-panel-state/DevToolState.js';
80
87
  import {
@@ -95,7 +102,6 @@ import {
95
102
  } from '@finos/legend-server-sdlc';
96
103
  import {
97
104
  type PackageableElement,
98
- type Store,
99
105
  type GraphManagerState,
100
106
  GRAPH_MANAGER_EVENT,
101
107
  PrimitiveType,
@@ -126,8 +132,6 @@ import {
126
132
  ActionAlertType,
127
133
  APPLICATION_EVENT,
128
134
  TAB_SIZE,
129
- buildElementOption,
130
- type PackageableElementOption,
131
135
  } from '@finos/legend-application';
132
136
  import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent.js';
133
137
  import type { EditorMode } from './editor/EditorMode.js';
@@ -139,7 +143,7 @@ import {
139
143
  graph_deleteOwnElement,
140
144
  graph_renameElement,
141
145
  } from './graphModifier/GraphModifierHelper.js';
142
- import { PACKAGEABLE_ELEMENT_TYPE } from './shared/ModelUtil.js';
146
+ import { PACKAGEABLE_ELEMENT_TYPE } from './shared/ModelClassifierUtils.js';
143
147
  import { GlobalTestRunnerState } from './sidebar-state/testable/GlobalTestRunnerState.js';
144
148
  import type { LegendStudioApplicationStore } from './LegendStudioBaseStore.js';
145
149
  import { EmbeddedQueryBuilderState } from './EmbeddedQueryBuilderState.js';
@@ -196,6 +200,7 @@ export class EditorStore {
196
200
  conflictResolutionState: WorkspaceUpdateConflictResolutionState;
197
201
  devToolState: DevToolState;
198
202
  embeddedQueryBuilderState: EmbeddedQueryBuilderState;
203
+ newElementState: NewElementState;
199
204
 
200
205
  private _isDisposed = false;
201
206
  initState = ActionState.create();
@@ -218,13 +223,12 @@ export class EditorStore {
218
223
 
219
224
  // Hot keys
220
225
  blockGlobalHotkeys = false;
221
- defaultHotkeys: HotkeyConfiguration[] = [];
226
+ readonly defaultHotkeys: HotkeyConfiguration[] = [];
222
227
  hotkeys: HotkeyConfiguration[] = [];
223
228
 
224
229
  // Tabs
225
230
  currentEditorState?: EditorState | undefined;
226
231
  openedEditorStates: EditorState[] = [];
227
- newElementState: NewElementState;
228
232
  /**
229
233
  * Since we want to share element generation state across all element in the editor, we will create 1 element generate state
230
234
  * per file generation configuration type.
@@ -240,9 +244,32 @@ export class EditorStore {
240
244
  sdlcServerClient: SDLCServerClient,
241
245
  depotServerClient: DepotServerClient,
242
246
  graphManagerState: GraphManagerState,
243
- pluginManager: LegendStudioPluginManager,
244
247
  ) {
245
- makeAutoObservable(this, {
248
+ makeObservable<
249
+ EditorStore,
250
+ '_isDisposed' | 'initStandardMode' | 'initConflictResolutionMode'
251
+ >(this, {
252
+ editorMode: observable,
253
+ mode: observable,
254
+ _isDisposed: observable,
255
+ graphEditMode: observable,
256
+ activeAuxPanelMode: observable,
257
+ activeActivity: observable,
258
+ blockGlobalHotkeys: observable,
259
+ hotkeys: observable,
260
+ currentEditorState: observable,
261
+ openedEditorStates: observable,
262
+ backdrop: observable,
263
+ ignoreNavigationBlocking: observable,
264
+ isDevToolEnabled: observable,
265
+
266
+ isInViewerMode: computed,
267
+ isInConflictResolutionMode: computed,
268
+ isInitialized: computed,
269
+ isInGrammarTextMode: computed,
270
+ isInFormMode: computed,
271
+ hasUnpushedChanges: computed,
272
+
246
273
  applicationStore: false,
247
274
  sdlcServerClient: false,
248
275
  depotServerClient: false,
@@ -277,12 +304,22 @@ export class EditorStore {
277
304
  reprocessElementEditorState: action,
278
305
  openGeneratedFile: action,
279
306
  closeAllEditorTabs: action,
307
+
308
+ initialize: flow,
309
+ initMode: flow,
310
+ initStandardMode: flow,
311
+ initConflictResolutionMode: flow,
312
+ buildGraph: flow,
313
+ addElement: flow,
314
+ deleteElement: flow,
315
+ renameElement: flow,
316
+ toggleTextMode: flow,
280
317
  });
281
318
 
282
319
  this.applicationStore = applicationStore;
283
320
  this.sdlcServerClient = sdlcServerClient;
284
321
  this.depotServerClient = depotServerClient;
285
- this.pluginManager = pluginManager;
322
+ this.pluginManager = applicationStore.pluginManager;
286
323
 
287
324
  this.editorMode = new StandardEditorMode(this);
288
325
 
@@ -838,6 +875,8 @@ export class EditorStore {
838
875
  return;
839
876
  }
840
877
 
878
+ this.initState.setMessage(`Starting change detection engine...`);
879
+
841
880
  // build explorer tree
842
881
  this.explorerTreeState.buildImmutableModelTrees();
843
882
  this.explorerTreeState.build();
@@ -875,6 +914,8 @@ export class EditorStore {
875
914
  );
876
915
  // since errors have been handled accordingly, we don't need to do anything here
877
916
  return;
917
+ } finally {
918
+ this.initState.setMessage(undefined);
878
919
  }
879
920
  }
880
921
 
@@ -1345,14 +1386,6 @@ export class EditorStore {
1345
1386
  }
1346
1387
  }
1347
1388
 
1348
- get storeOptions(): PackageableElementOption<Store>[] {
1349
- return this.graphManagerState.usableStores.map(buildElementOption);
1350
- }
1351
-
1352
- get dataOptions(): PackageableElementOption<DataElement>[] {
1353
- return this.graphManagerState.usableDataElements.map(buildElementOption);
1354
- }
1355
-
1356
1389
  getSupportedElementTypes(): string[] {
1357
1390
  return (
1358
1391
  [
@@ -68,6 +68,5 @@ export const TEST__getTestEditorStore = (
68
68
  TEST__getTestSDLCServerClient(),
69
69
  TEST__getTestDepotServerClient(),
70
70
  TEST__getTestGraphManagerState(pluginManager),
71
- pluginManager,
72
71
  );
73
72
  };
@@ -30,14 +30,14 @@ import {
30
30
  openNodeById,
31
31
  openNodes,
32
32
  populatePackageTreeNodeChildren,
33
- } from './shared/PackageTreeUtil.js';
33
+ } from './shared/PackageTreeUtils.js';
34
34
  import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent.js';
35
- import type { PackageTreeNodeData } from './shared/TreeUtil.js';
35
+ import type { PackageTreeNodeData } from './shared/TreeUtils.js';
36
36
  import type { TreeData } from '@finos/legend-art';
37
37
  import {
38
38
  type GenerationTreeNodeData,
39
39
  getGenerationTreeData,
40
- } from './shared/FileGenerationTreeUtil.js';
40
+ } from './shared/FileGenerationTreeUtils.js';
41
41
  import {
42
42
  type PackageableElement,
43
43
  ROOT_PACKAGE_NAME,
@@ -32,5 +32,8 @@ export enum LEGEND_STUDIO_APP_EVENT {
32
32
 
33
33
  WORKSPACE_UPDATED = 'sdlc.workspace-update.success',
34
34
  WORKSPACE_LOCAL_CHANGES_PUSHED = 'sdlc.local-changes-push.success',
35
+
36
+ // Depot
37
+ // TODO: consider to split this generic errors into more specific events
35
38
  DEPOT_MANAGER_FAILURE = 'depot.manager.failure',
36
39
  }
@@ -43,13 +43,12 @@ import type { DepotServerClient } from '@finos/legend-server-depot';
43
43
  import type { LegendStudioPluginManager } from '../application/LegendStudioPluginManager.js';
44
44
  import type { LegendStudioApplicationConfig } from '../application/LegendStudioApplicationConfig.js';
45
45
  import { LegendStudioEventService } from './LegendStudioEventService.js';
46
- import type { LegendStudioApplicationPlugin } from './LegendStudioApplicationPlugin.js';
47
46
 
48
47
  const UNKNOWN_USER_ID = '(unknown)';
49
48
 
50
49
  export type LegendStudioApplicationStore = ApplicationStore<
51
50
  LegendStudioApplicationConfig,
52
- LegendStudioApplicationPlugin
51
+ LegendStudioPluginManager
53
52
  >;
54
53
 
55
54
  export class LegendStudioBaseStore {
@@ -67,7 +66,6 @@ export class LegendStudioBaseStore {
67
66
  applicationStore: LegendStudioApplicationStore,
68
67
  sdlcServerClient: SDLCServerClient,
69
68
  depotServerClient: DepotServerClient,
70
- pluginManager: LegendStudioPluginManager,
71
69
  ) {
72
70
  makeObservable<LegendStudioBaseStore, 'initializeSDLCServerClient'>(this, {
73
71
  isSDLCAuthorized: observable,
@@ -82,7 +80,7 @@ export class LegendStudioBaseStore {
82
80
  this.sdlcServerClient = sdlcServerClient;
83
81
  this.depotServerClient = depotServerClient;
84
82
 
85
- this.pluginManager = pluginManager;
83
+ this.pluginManager = applicationStore.pluginManager;
86
84
 
87
85
  // Register plugins
88
86
  this.sdlcServerClient.setTracerService(this.applicationStore.tracerService);
@@ -125,6 +123,11 @@ export class LegendStudioBaseStore {
125
123
  ApplicationTelemetry.logEvent_ApplicationInitialized(
126
124
  this.applicationStore.telemetryService,
127
125
  {
126
+ application: {
127
+ name: this.applicationStore.config.appName,
128
+ version: this.applicationStore.config.appVersion,
129
+ env: this.applicationStore.config.env,
130
+ },
128
131
  browser: {
129
132
  userAgent: navigator.userAgent,
130
133
  },
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { generateGAVCoordinates } from '@finos/legend-server-depot';
17
+ import { generateGAVCoordinates } from '@finos/legend-storage';
18
18
  import { WorkspaceType } from '@finos/legend-server-sdlc';
19
19
  import { guaranteeNonNullable } from '@finos/legend-shared';
20
20
  import { generatePath } from 'react-router';
@@ -74,6 +74,7 @@ import {
74
74
  DataElement,
75
75
  stub_RawLambda,
76
76
  stub_Database,
77
+ Measure,
77
78
  } from '@finos/legend-graph';
78
79
  import type { DSLMapping_LegendStudioApplicationPlugin_Extension } from '../DSLMapping_LegendStudioApplicationPlugin_Extension.js';
79
80
  import {
@@ -91,7 +92,7 @@ import {
91
92
  } from '../graphModifier/DSLService_GraphModifierHelper.js';
92
93
  import type { EmbeddedDataTypeOption } from '../editor-state/element-editor-state/data/DataEditorState.js';
93
94
  import { dataElement_setEmbeddedData } from '../graphModifier/DSLData_GraphModifierHelper.js';
94
- import { PACKAGEABLE_ELEMENT_TYPE } from '../shared/ModelUtil.js';
95
+ import { PACKAGEABLE_ELEMENT_TYPE } from '../shared/ModelClassifierUtils.js';
95
96
  import {
96
97
  buildElementOption,
97
98
  type PackageableElementOption,
@@ -756,6 +757,9 @@ export class NewElementState {
756
757
  case PACKAGEABLE_ELEMENT_TYPE.ENUMERATION:
757
758
  element = new Enumeration(name);
758
759
  break;
760
+ case PACKAGEABLE_ELEMENT_TYPE.MEASURE:
761
+ element = new Measure(name);
762
+ break;
759
763
  case PACKAGEABLE_ELEMENT_TYPE.PROFILE:
760
764
  element = new Profile(name);
761
765
  break;
@@ -29,7 +29,7 @@ import {
29
29
  populateDirectoryTreeNodeChildren,
30
30
  buildGenerationDirectory,
31
31
  reprocessOpenNodes,
32
- } from '../shared/FileGenerationTreeUtil.js';
32
+ } from '../shared/FileGenerationTreeUtils.js';
33
33
  import {
34
34
  type GeneratorFn,
35
35
  assertErrorThrown,
@@ -17,7 +17,7 @@
17
17
  import type { EditorStore } from '../EditorStore.js';
18
18
  import { EditorState } from './EditorState.js';
19
19
  import { observable, makeObservable, computed } from 'mobx';
20
- import type { GenerationFile } from '../shared/FileGenerationTreeUtil.js';
20
+ import type { GenerationFile } from '../shared/FileGenerationTreeUtils.js';
21
21
  import { EDITOR_LANGUAGE, TAB_SIZE } from '@finos/legend-application';
22
22
  import { returnUndefOnError } from '@finos/legend-shared';
23
23
 
@@ -42,7 +42,7 @@ import {
42
42
  populateDirectoryTreeNodeChildren,
43
43
  buildGenerationDirectory,
44
44
  reprocessOpenNodes,
45
- } from '../shared/FileGenerationTreeUtil.js';
45
+ } from '../shared/FileGenerationTreeUtils.js';
46
46
  import type { TreeData } from '@finos/legend-art';
47
47
  import type { EditorStore } from '../EditorStore.js';
48
48
  import { ExplorerTreeRootPackageLabel } from '../ExplorerTreeState.js';
@@ -54,14 +54,14 @@ import type { Entity } from '@finos/legend-storage';
54
54
  import {
55
55
  type GenerationConfigurationDescription,
56
56
  type GenerationOutput,
57
- type DSLGenerationSpecification_PureGraphManagerPlugin_Extension,
57
+ type DSLGeneration_PureGraphManagerPlugin_Extension,
58
58
  type GenerationTreeNode,
59
59
  Class,
60
60
  Enumeration,
61
61
  GenerationSpecification,
62
62
  ELEMENT_PATH_DELIMITER,
63
63
  } from '@finos/legend-graph';
64
- import type { DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension } from '../DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.js';
64
+ import type { DSLGeneration_LegendStudioApplicationPlugin_Extension } from '../DSLGeneration_LegendStudioApplicationPlugin_Extension.js';
65
65
  import { ExternalFormatState } from './ExternalFormatState.js';
66
66
  import {
67
67
  generationSpecification_addFileGeneration,
@@ -135,14 +135,14 @@ export class GraphGenerationState {
135
135
  get supportedFileGenerationConfigurationsForCurrentElement(): GenerationConfigurationDescription[] {
136
136
  if (this.editorStore.currentEditorState instanceof ElementEditorState) {
137
137
  const currentElement = this.editorStore.currentEditorState.element;
138
- // Note: For now we only allow classes and enumerations for all types of generations.
138
+ // NOTE: For now we only allow classes and enumerations for all types of generations.
139
139
  const extraFileGenerationScopeFilterConfigurations =
140
140
  this.editorStore.pluginManager
141
141
  .getApplicationPlugins()
142
142
  .flatMap(
143
143
  (plugin) =>
144
144
  (
145
- plugin as DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension
145
+ plugin as DSLGeneration_LegendStudioApplicationPlugin_Extension
146
146
  ).getExtraFileGenerationScopeFilterConfigurations?.() ?? [],
147
147
  );
148
148
  return this.fileGenerationConfigurations.filter((generationType) => {
@@ -370,7 +370,7 @@ export class GraphGenerationState {
370
370
  .flatMap(
371
371
  (plugin) =>
372
372
  (
373
- plugin as DSLGenerationSpecification_PureGraphManagerPlugin_Extension
373
+ plugin as DSLGeneration_PureGraphManagerPlugin_Extension
374
374
  ).getExtraModelGenerationElementGetters?.() ?? [],
375
375
  )
376
376
  .flatMap((getter) => getter(this.editorStore.graphManagerState.graph));
@@ -40,13 +40,13 @@ import {
40
40
  import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js';
41
41
  import {
42
42
  type ProjectVersionDependencies,
43
- generateGAVCoordinates,
44
43
  MASTER_SNAPSHOT_ALIAS,
45
44
  ProjectData,
46
45
  ProjectDependencyInfo,
47
46
  ProjectDependencyCoordinates,
48
47
  } from '@finos/legend-server-depot';
49
48
  import { TAB_SIZE } from '@finos/legend-application';
49
+ import { generateGAVCoordinates } from '@finos/legend-storage';
50
50
 
51
51
  export enum CONFIGURATION_EDITOR_TAB {
52
52
  PROJECT_STRUCTURE = 'PROJECT_STRUCTURE',
@@ -27,7 +27,7 @@ import {
27
27
  filterByType,
28
28
  } from '@finos/legend-shared';
29
29
  import { ElementEditorState } from './ElementEditorState.js';
30
- import type { RuntimeExplorerTreeNodeData } from '../../shared/TreeUtil.js';
30
+ import type { RuntimeExplorerTreeNodeData } from '../../shared/TreeUtils.js';
31
31
  import type { TreeData } from '@finos/legend-art';
32
32
  import { ConnectionEditorState } from './connection/ConnectionEditorState.js';
33
33
  import { getMappingElementSource } from './mapping/MappingEditorState.js';
@@ -34,7 +34,7 @@ import {
34
34
  MappingTestState,
35
35
  TEST_RESULT,
36
36
  } from './MappingTestState.js';
37
- import { createMockDataForMappingElementSource } from '../../../shared/MockDataUtil.js';
37
+ import { createMockDataForMappingElementSource } from '../../../shared/MockDataUtils.js';
38
38
  import {
39
39
  type GeneratorFn,
40
40
  assertErrorThrown,
@@ -118,7 +118,7 @@ import {
118
118
  setImpl_updateRootOnCreate,
119
119
  setImpl_updateRootOnDelete,
120
120
  } from '../../../graphModifier/DSLMapping_GraphModifierHelper.js';
121
- import { BASIC_SET_IMPLEMENTATION_TYPE } from '../../../shared/ModelUtil.js';
121
+ import { BASIC_SET_IMPLEMENTATION_TYPE } from '../../../shared/ModelClassifierUtils.js';
122
122
  import { rootRelationalSetImp_setMainTableAlias } from '../../../graphModifier/StoreRelational_GraphModifierHelper.js';
123
123
 
124
124
  export interface MappingExplorerTreeNodeData extends TreeNodeData {
@@ -49,7 +49,7 @@ import {
49
49
  generateEnumerableNameFromToken,
50
50
  tryToFormatLosslessJSONString,
51
51
  } from '@finos/legend-shared';
52
- import { createMockDataForMappingElementSource } from '../../../shared/MockDataUtil.js';
52
+ import { createMockDataForMappingElementSource } from '../../../shared/MockDataUtils.js';
53
53
  import {
54
54
  type InputData,
55
55
  type Mapping,
@@ -47,7 +47,7 @@ import {
47
47
  makeAutoObservable,
48
48
  flowResult,
49
49
  } from 'mobx';
50
- import { createMockDataForMappingElementSource } from '../../../shared/MockDataUtil.js';
50
+ import { createMockDataForMappingElementSource } from '../../../shared/MockDataUtils.js';
51
51
  import {
52
52
  type MappingTest,
53
53
  type RawLambda,
@@ -66,8 +66,7 @@ import {
66
66
  stub_PackageableRuntime,
67
67
  stub_Mapping,
68
68
  } from '@finos/legend-graph';
69
- import type { Entity } from '@finos/legend-storage';
70
- import { parseGACoordinates } from '@finos/legend-server-depot';
69
+ import { type Entity, parseGACoordinates } from '@finos/legend-storage';
71
70
  import { runtime_addMapping } from '../../../graphModifier/DSLMapping_GraphModifierHelper.js';
72
71
  import type { EditorStore } from '../../../EditorStore.js';
73
72
  import {