@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
@@ -43,7 +43,7 @@ import {
43
43
  Enumeration,
44
44
  Association,
45
45
  } from '@finos/legend-graph';
46
- import { BASIC_SET_IMPLEMENTATION_TYPE } from '../../../../stores/shared/ModelUtil.js';
46
+ import { BASIC_SET_IMPLEMENTATION_TYPE } from '../../../../stores/shared/ModelClassifierUtils.js';
47
47
  import {
48
48
  buildElementOption,
49
49
  getPackageableElementOptionFormatter,
@@ -263,11 +263,7 @@ export const NewMappingElementModal = observer(() => {
263
263
  />
264
264
  )}
265
265
  <div className="search-modal__actions">
266
- <button
267
- className="btn btn--primary"
268
- disabled={disableCreateButton}
269
- color="primary"
270
- >
266
+ <button className="btn btn--primary" disabled={disableCreateButton}>
271
267
  Create
272
268
  </button>
273
269
  </div>
@@ -29,7 +29,7 @@ import {
29
29
  CORE_DND_TYPE,
30
30
  type OperationSetImplementationDropTarget,
31
31
  type MappingElementDragSource,
32
- } from '../../../../stores/shared/DnDUtil.js';
32
+ } from '../../../../stores/shared/DnDUtils.js';
33
33
  import { useDrop } from 'react-dnd';
34
34
  import { noop } from '@finos/legend-shared';
35
35
  import {
@@ -60,7 +60,7 @@ import {
60
60
  CLASS_PROPERTY_TYPE,
61
61
  getClassPropertyType,
62
62
  SET_IMPLEMENTATION_TYPE,
63
- } from '../../../../stores/shared/ModelUtil.js';
63
+ } from '../../../../stores/shared/ModelClassifierUtils.js';
64
64
  import type { DSLMapping_LegendStudioApplicationPlugin_Extension } from '../../../../stores/DSLMapping_LegendStudioApplicationPlugin_Extension.js';
65
65
 
66
66
  export const getExpectedReturnType = (
@@ -20,7 +20,7 @@ import {
20
20
  type TransformDropTarget,
21
21
  CORE_DND_TYPE,
22
22
  TypeDragSource,
23
- } from '../../../../stores/shared/DnDUtil.js';
23
+ } from '../../../../stores/shared/DnDUtils.js';
24
24
  import {
25
25
  type MappingElement,
26
26
  MappingEditorState,
@@ -50,7 +50,7 @@ import { getExpectedReturnType } from './PropertyMappingsEditor.js';
50
50
  import {
51
51
  CLASS_PROPERTY_TYPE,
52
52
  getClassPropertyType,
53
- } from '../../../../stores/shared/ModelUtil.js';
53
+ } from '../../../../stores/shared/ModelClassifierUtils.js';
54
54
 
55
55
  const SimplePropertyMappingEditor = observer(
56
56
  (props: {
@@ -51,7 +51,7 @@ import { getExpectedReturnType } from '../PropertyMappingsEditor.js';
51
51
  import {
52
52
  CLASS_PROPERTY_TYPE,
53
53
  getClassPropertyType,
54
- } from '../../../../../stores/shared/ModelUtil.js';
54
+ } from '../../../../../stores/shared/ModelClassifierUtils.js';
55
55
 
56
56
  const SimplePropertyMappingEditor = observer(
57
57
  (props: {
@@ -60,11 +60,13 @@ import {
60
60
  SNAPSHOT_VERSION_ALIAS,
61
61
  MASTER_SNAPSHOT_ALIAS,
62
62
  type ProjectData,
63
- compareSemVerVersions,
64
- generateGAVCoordinates,
65
63
  type ProjectDependencyInfo,
66
64
  } from '@finos/legend-server-depot';
67
65
  import { generateViewProjectRoute } from '../../../../stores/LegendStudioRouter.js';
66
+ import {
67
+ compareSemVerVersions,
68
+ generateGAVCoordinates,
69
+ } from '@finos/legend-storage';
68
70
 
69
71
  interface VersionOption {
70
72
  label: string;
@@ -85,7 +85,7 @@ export const NewServiceModal = observer(
85
85
  <div className="input-group">
86
86
  <input
87
87
  ref={nameRef}
88
- className="modal--simple__input input--dark input-group__input"
88
+ className="input input--dark input-group__input"
89
89
  disabled={isReadOnly}
90
90
  value={servicePath}
91
91
  spellCheck={false}
@@ -100,9 +100,8 @@ export const NewServiceModal = observer(
100
100
  </div>
101
101
  <div className="search-modal__actions">
102
102
  <button
103
- className="modal--simple__btn btn btn--dark btn--primary"
103
+ className="btn btn--dark"
104
104
  disabled={Boolean(isReadOnly) || elementAlreadyExists}
105
- color="primary"
106
105
  onClick={create}
107
106
  >
108
107
  Create
@@ -29,7 +29,7 @@ import {
29
29
  CORE_DND_TYPE,
30
30
  type ElementDragSource,
31
31
  type UMLEditorElementDropTarget,
32
- } from '../../../../stores/shared/DnDUtil.js';
32
+ } from '../../../../stores/shared/DnDUtils.js';
33
33
  import { UnsupportedEditorPanel } from '../../../editor/edit-panel/UnsupportedElementEditor.js';
34
34
  import {
35
35
  clsx,
@@ -36,7 +36,7 @@ import {
36
36
  PauseCircleIcon,
37
37
  PencilIcon,
38
38
  } from '@finos/legend-art';
39
- import { assertErrorThrown, debounce, hashObject } from '@finos/legend-shared';
39
+ import { assertErrorThrown, debounce } from '@finos/legend-shared';
40
40
  import { flowResult } from 'mobx';
41
41
  import { useEditorStore } from '../../EditorStoreProvider.js';
42
42
  import {
@@ -272,10 +272,6 @@ export const ServiceExecutionQueryEditor = observer(
272
272
  queryBuilderState.initializeWithQuery(
273
273
  executionState.execution.func,
274
274
  );
275
- queryBuilderState.changeDetectionState.setQueryHashCode(
276
- hashObject(executionState.execution.func),
277
- );
278
- queryBuilderState.changeDetectionState.setIsEnabled(true);
279
275
  return queryBuilderState;
280
276
  },
281
277
  actionConfigs: [
@@ -294,9 +290,6 @@ export const ServiceExecutionQueryEditor = observer(
294
290
  applicationStore.notifySuccess(
295
291
  `Service query is updated`,
296
292
  );
297
- queryBuilderState.changeDetectionState.setQueryHashCode(
298
- hashObject(rawLambda),
299
- );
300
293
  embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration(
301
294
  undefined,
302
295
  );
@@ -36,7 +36,8 @@ export const ServiceRegistrationEditor = observer(() => {
36
36
  const applicationStore = useApplicationStore();
37
37
  const serviceState = editorStore.getCurrentEditorState(ServiceEditorState);
38
38
  const registrationState = serviceState.registrationState;
39
- // service servers
39
+
40
+ // env & execution server
40
41
  const envOptions = registrationState.options.map((info) => ({
41
42
  label: info.env.toUpperCase(),
42
43
  value: info.env,
@@ -47,7 +48,13 @@ export const ServiceRegistrationEditor = observer(() => {
47
48
  value: registrationState.serviceEnv,
48
49
  }
49
50
  : null;
50
- // service types
51
+ const onServerEnvChange = (
52
+ val: { label: string; value: string } | null,
53
+ ): void => {
54
+ registrationState.updateEnv(val?.value);
55
+ };
56
+
57
+ // execution mode
51
58
  const serviceTypesOptions = registrationState.executionModes.map((mode) => ({
52
59
  label: prettyCONSTName(mode),
53
60
  value: mode,
@@ -63,12 +70,8 @@ export const ServiceRegistrationEditor = observer(() => {
63
70
  ): void => {
64
71
  registrationState.updateType(val?.value);
65
72
  };
66
- const onServerEnvChange = (
67
- val: { label: string; value: string } | null,
68
- ): void => {
69
- registrationState.updateEnv(val?.value);
70
- };
71
- // version Projection
73
+
74
+ // version
72
75
  const selectedVersion = registrationState.projectVersion
73
76
  ? {
74
77
  label:
@@ -91,18 +94,21 @@ export const ServiceRegistrationEditor = observer(() => {
91
94
  : !registrationState.versionOptions.length
92
95
  ? 'Project has no versions'
93
96
  : undefined;
97
+
94
98
  // activate
95
99
  const toggleActivatePostRegistration = (): void => {
96
100
  registrationState.setActivatePostRegistration(
97
101
  !registrationState.activatePostRegistration,
98
102
  );
99
103
  };
104
+
100
105
  // store model for full interactive
101
106
  const toggleUseStoreModel = (): void => {
102
107
  registrationState.setUseStoreModelWithFullInteractive(
103
108
  !registrationState.TEMPORARY__useStoreModel,
104
109
  );
105
110
  };
111
+
106
112
  // actions
107
113
  const registerService = (): void => {
108
114
  if (selectedEnvOption && selectedServiceType) {
@@ -115,6 +121,7 @@ export const ServiceRegistrationEditor = observer(() => {
115
121
  !selectedEnvOption ||
116
122
  !selectedServiceType ||
117
123
  registrationState.registrationState.isInProgress;
124
+
118
125
  return (
119
126
  <div
120
127
  data-testid={LEGEND_STUDIO_TEST_ID.SERVICE_REGISTRATION_EDITOR}
@@ -156,7 +163,6 @@ export const ServiceRegistrationEditor = observer(() => {
156
163
  onClick={toggleActivatePostRegistration}
157
164
  >
158
165
  <button
159
- type="button"
160
166
  className={clsx('panel__content__form__section__toggler__btn', {
161
167
  'panel__content__form__section__toggler__btn--toggled':
162
168
  registrationState.activatePostRegistration,
@@ -214,7 +220,6 @@ export const ServiceRegistrationEditor = observer(() => {
214
220
  onClick={toggleUseStoreModel}
215
221
  >
216
222
  <button
217
- type="button"
218
223
  className={clsx('panel__content__form__section__toggler__btn', {
219
224
  'panel__content__form__section__toggler__btn--toggled':
220
225
  registrationState.TEMPORARY__useStoreModel,
@@ -372,7 +372,7 @@ export const NewConnectionDataModal = observer(
372
372
  </div>
373
373
  <div className="modal__footer">
374
374
  <button
375
- type="button"
375
+ type="button" // prevent this toggler being activated on form submission
376
376
  className="btn btn--dark"
377
377
  onClick={closeModal}
378
378
  >
@@ -24,7 +24,7 @@ import {
24
24
  CORE_DND_TYPE,
25
25
  type UMLEditorElementDropTarget,
26
26
  type ElementDragSource,
27
- } from '../../../../stores/shared/DnDUtil.js';
27
+ } from '../../../../stores/shared/DnDUtils.js';
28
28
  import { useDrop } from 'react-dnd';
29
29
  import {
30
30
  clsx,
@@ -87,7 +87,7 @@ import {
87
87
  import {
88
88
  CLASS_PROPERTY_TYPE,
89
89
  getClassPropertyType,
90
- } from '../../../../stores/shared/ModelUtil.js';
90
+ } from '../../../../stores/shared/ModelClassifierUtils.js';
91
91
  import {
92
92
  buildElementOption,
93
93
  useApplicationNavigationContext,
@@ -21,7 +21,7 @@ import {
21
21
  CORE_DND_TYPE,
22
22
  type ElementDragSource,
23
23
  type UMLEditorElementDropTarget,
24
- } from '../../../../stores/shared/DnDUtil.js';
24
+ } from '../../../../stores/shared/DnDUtils.js';
25
25
  import {
26
26
  clsx,
27
27
  CustomSelectorInput,
@@ -132,7 +132,7 @@ import {
132
132
  import {
133
133
  CLASS_PROPERTY_TYPE,
134
134
  getClassPropertyType,
135
- } from '../../../../stores/shared/ModelUtil.js';
135
+ } from '../../../../stores/shared/ModelClassifierUtils.js';
136
136
  import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../stores/LegendStudioApplicationNavigationContext.js';
137
137
 
138
138
  type ClassPropertyDragSource = {
@@ -25,7 +25,7 @@ import {
25
25
  CORE_DND_TYPE,
26
26
  type ElementDragSource,
27
27
  type UMLEditorElementDropTarget,
28
- } from '../../../../stores/shared/DnDUtil.js';
28
+ } from '../../../../stores/shared/DnDUtils.js';
29
29
  import { prettyCONSTName } from '@finos/legend-shared';
30
30
  import {
31
31
  BlankPanelContent,
@@ -21,7 +21,7 @@ import {
21
21
  CORE_DND_TYPE,
22
22
  type ElementDragSource,
23
23
  type UMLEditorElementDropTarget,
24
- } from '../../../../stores/shared/DnDUtil.js';
24
+ } from '../../../../stores/shared/DnDUtils.js';
25
25
  import {
26
26
  clsx,
27
27
  LockIcon,
@@ -48,7 +48,7 @@ import {
48
48
  } from '@finos/legend-application';
49
49
  import type { EmbeddedDataTypeOption } from '../../../stores/editor-state/element-editor-state/data/DataEditorState.js';
50
50
  import type { DSLData_LegendStudioApplicationPlugin_Extension } from '../../../stores/DSLData_LegendStudioApplicationPlugin_Extension.js';
51
- import { PACKAGEABLE_ELEMENT_TYPE } from '../../../stores/shared/ModelUtil.js';
51
+ import { PACKAGEABLE_ELEMENT_TYPE } from '../../../stores/shared/ModelClassifierUtils.js';
52
52
  import { EmbeddedDataType } from '../../../stores/editor-state/ExternalFormatState.js';
53
53
 
54
54
  export const getElementTypeLabel = (
@@ -206,7 +206,10 @@ const NewPureModelConnectionDriverEditor = observer(
206
206
  { label: 'ModelStore', value: undefined },
207
207
  ];
208
208
  storeOptions = storeOptions.concat(
209
- editorStore.storeOptions.slice().sort(compareLabelFn),
209
+ editorStore.graphManagerState.usableStores
210
+ .map(buildElementOption)
211
+ .slice()
212
+ .sort(compareLabelFn),
210
213
  );
211
214
  const selectedStoreOption = {
212
215
  label: store?.path ?? 'ModelStore',
@@ -51,15 +51,15 @@ import {
51
51
  CreateNewElementModal,
52
52
  } from './CreateNewElementModal.js';
53
53
  import { useDrag } from 'react-dnd';
54
- import { ElementDragSource } from '../../../stores/shared/DnDUtil.js';
54
+ import { ElementDragSource } from '../../../stores/shared/DnDUtils.js';
55
55
  import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID.js';
56
56
  import { ACTIVITY_MODE } from '../../../stores/EditorConfig.js';
57
- import { getTreeChildNodes } from '../../../stores/shared/PackageTreeUtil.js';
58
- import type { PackageTreeNodeData } from '../../../stores/shared/TreeUtil.js';
57
+ import { getTreeChildNodes } from '../../../stores/shared/PackageTreeUtils.js';
58
+ import type { PackageTreeNodeData } from '../../../stores/shared/TreeUtils.js';
59
59
  import {
60
60
  type GenerationTreeNodeData,
61
61
  getFileGenerationChildNodes,
62
- } from '../../../stores/shared/FileGenerationTreeUtil.js';
62
+ } from '../../../stores/shared/FileGenerationTreeUtils.js';
63
63
  import { FileGenerationTree } from '../../editor/edit-panel/element-generation-editor/FileGenerationEditor.js';
64
64
  import { generateViewEntityRoute } from '../../../stores/LegendStudioRouter.js';
65
65
  import { toTitleCase } from '@finos/legend-shared';
@@ -78,7 +78,7 @@ import {
78
78
  Class,
79
79
  } from '@finos/legend-graph';
80
80
  import { useApplicationStore } from '@finos/legend-application';
81
- import { PACKAGEABLE_ELEMENT_TYPE } from '../../../stores/shared/ModelUtil.js';
81
+ import { PACKAGEABLE_ELEMENT_TYPE } from '../../../stores/shared/ModelClassifierUtils.js';
82
82
  import { useLegendStudioApplicationStore } from '../../LegendStudioBaseStoreProvider.js';
83
83
  import { queryClass } from '../edit-panel/uml-editor/ClassQueryBuilder.js';
84
84
 
@@ -118,7 +118,6 @@ const PatchLoader = observer(() => {
118
118
  </div>
119
119
  <div className="modal__footer">
120
120
  <button
121
- type="button"
122
121
  className="btn btn--dark blocking-alert__action--standard"
123
122
  onClick={upload}
124
123
  disabled={!patchState.changes?.length || !patchState.isValidPatch}
@@ -204,6 +203,7 @@ export const LocalChanges = observer(() => {
204
203
  applicationStore.alertUnhandledError,
205
204
  );
206
205
  }, [applicationStore, localChangesState]);
206
+
207
207
  return (
208
208
  <div className="panel local-changes">
209
209
  <div className="panel__header side-bar__header">
@@ -252,7 +252,7 @@ export const WorkspaceReview = observer(() => {
252
252
  value={workspaceReviewState.reviewTitle}
253
253
  disabled={Boolean(workspaceReview)}
254
254
  onChange={editReviewTitle}
255
- placeholder={'Title'}
255
+ placeholder="Title"
256
256
  />
257
257
  </div>
258
258
  <button
@@ -253,20 +253,14 @@ export const WorkspaceSyncConflictResolver = observer(() => {
253
253
  </div>
254
254
  <div className="modal__footer">
255
255
  <button
256
- type="button"
257
- className="btn btn--primary btn--dark"
256
+ className="btn btn--dark"
258
257
  disabled={Boolean(conflicts.length)}
259
258
  title="Apply Resolutions"
260
259
  onClick={applyResolutions}
261
260
  >
262
261
  Apply Resolutions
263
262
  </button>
264
- <button
265
- type="button"
266
- title="Aborts"
267
- className="btn btn--dark"
268
- onClick={abort}
269
- >
263
+ <button className="btn btn--dark" title="Aborts" onClick={abort}>
270
264
  Abort
271
265
  </button>
272
266
  </div>
@@ -47,7 +47,7 @@ import {
47
47
  PURE_PackageIcon,
48
48
  PURE_DataIcon,
49
49
  } from '@finos/legend-art';
50
- import { PACKAGEABLE_ELEMENT_TYPE } from '../../stores/shared/ModelUtil.js';
50
+ import { PACKAGEABLE_ELEMENT_TYPE } from '../../stores/shared/ModelClassifierUtils.js';
51
51
 
52
52
  export const getClassPropertyIcon = (type: Type): React.ReactNode => {
53
53
  if (type instanceof PrimitiveType) {
@@ -0,0 +1,63 @@
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
+ import { ArrowCircleRightIcon } from '@finos/legend-art';
18
+ import type { Project } from '@finos/legend-server-sdlc';
19
+ import type { LegendStudioApplicationStore } from '../../stores/LegendStudioBaseStore.js';
20
+ import { generateViewProjectRoute } from '../../stores/LegendStudioRouter.js';
21
+
22
+ export interface ProjectOption {
23
+ label: string;
24
+ value: Project;
25
+ }
26
+
27
+ export const buildProjectOption = (project: Project): ProjectOption => ({
28
+ label: project.name,
29
+ value: project,
30
+ });
31
+
32
+ export const getProjectOptionLabelFormatter = (
33
+ applicationStore: LegendStudioApplicationStore,
34
+ ): ((option: ProjectOption) => React.ReactNode) =>
35
+ function ProjectOptionLabel(option: ProjectOption): React.ReactNode {
36
+ const viewProject = (): void =>
37
+ applicationStore.navigator.openNewWindow(
38
+ applicationStore.navigator.generateLocation(
39
+ generateViewProjectRoute(option.value.projectId),
40
+ ),
41
+ );
42
+
43
+ return (
44
+ <div className="project-selector__option">
45
+ <div className="project-selector__option__label">
46
+ <div className="project-selector__option__label__name">
47
+ {option.label}
48
+ </div>
49
+ </div>
50
+ <button
51
+ type="button" // prevent this toggler being activated on form submission
52
+ className="project-selector__option__visit-btn"
53
+ tabIndex={-1}
54
+ onClick={viewProject}
55
+ >
56
+ <div className="project-selector__option__visit-btn__label">view</div>
57
+ <div className="project-selector__option__visit-btn__icon">
58
+ <ArrowCircleRightIcon />
59
+ </div>
60
+ </button>
61
+ </div>
62
+ );
63
+ };
@@ -32,9 +32,9 @@ import {
32
32
  ChevronRightIcon,
33
33
  } from '@finos/legend-art';
34
34
  import { useDrag } from 'react-dnd';
35
- import { TypeDragSource, CORE_DND_TYPE } from '../../stores/shared/DnDUtil.js';
35
+ import { TypeDragSource, CORE_DND_TYPE } from '../../stores/shared/DnDUtils.js';
36
36
  import { getClassPropertyIcon } from './ElementIconUtils.js';
37
- import type { TypeTreeNodeData } from '../../stores/shared/TreeUtil.js';
37
+ import type { TypeTreeNodeData } from '../../stores/shared/TreeUtils.js';
38
38
  import {
39
39
  type Type,
40
40
  type Enum,
@@ -50,7 +50,7 @@ import {
50
50
  import {
51
51
  CLASS_PROPERTY_TYPE,
52
52
  getClassPropertyType,
53
- } from '../../stores/shared/ModelUtil.js';
53
+ } from '../../stores/shared/ModelClassifierUtils.js';
54
54
 
55
55
  const getEnumTypeTreeNodeData = (
56
56
  _enum: Enum,
@@ -0,0 +1,45 @@
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
+ import { UserIcon, UsersIcon } from '@finos/legend-art';
18
+ import { type Workspace, WorkspaceType } from '@finos/legend-server-sdlc';
19
+
20
+ export interface WorkspaceOption {
21
+ label: string;
22
+ value: Workspace;
23
+ }
24
+
25
+ export const buildWorkspaceOption = (
26
+ workspace: Workspace,
27
+ ): WorkspaceOption => ({
28
+ label: workspace.workspaceId,
29
+ value: workspace,
30
+ });
31
+
32
+ export const formatWorkspaceOptionLabel = (
33
+ option: WorkspaceOption,
34
+ ): React.ReactNode => (
35
+ <div className="workspace-selector__option">
36
+ <div className="workspace-selector__option__icon">
37
+ {option.value.workspaceType === WorkspaceType.GROUP ? (
38
+ <UsersIcon />
39
+ ) : (
40
+ <UserIcon />
41
+ )}
42
+ </div>
43
+ <div className="workspace-selector__option__name">{option.label}</div>
44
+ </div>
45
+ );
@@ -24,7 +24,6 @@ import {
24
24
  PencilIcon,
25
25
  MarkdownTextViewer,
26
26
  } from '@finos/legend-art';
27
- import { useWorkspaceSetupStore } from './WorkspaceSetupStoreProvider.js';
28
27
  import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js';
29
28
  import { isNumber } from '@finos/legend-shared';
30
29
  import { flowResult } from 'mobx';
@@ -35,6 +34,7 @@ import {
35
34
  import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../stores/LegendStudioDocumentation.js';
36
35
  import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../stores/LegendStudioApplicationNavigationContext.js';
37
36
  import { useLegendStudioApplicationStore } from '../LegendStudioBaseStoreProvider.js';
37
+ import { useWorkspaceSetupStore } from './WorkspaceSetup.js';
38
38
 
39
39
  enum CREATE_PROJECT_MODAL_TAB {
40
40
  CREATE = 'CREATE',
@@ -202,7 +202,9 @@ const CreateNewProjectTab = observer(() => {
202
202
  <input
203
203
  className="panel__content__form__section__input"
204
204
  spellCheck={false}
205
- placeholder="org.finos.legend.*"
205
+ placeholder={
206
+ applicationStore.config.options.projectCreationGroupIdSuggestion
207
+ }
206
208
  value={groupId}
207
209
  onChange={changeGroupId}
208
210
  />
@@ -501,7 +503,9 @@ const ImportProjectTab = observer(() => {
501
503
  <input
502
504
  className="panel__content__form__section__input"
503
505
  spellCheck={false}
504
- placeholder="org.finos.legend.*"
506
+ placeholder={
507
+ applicationStore.config.options.projectCreationGroupIdSuggestion
508
+ }
505
509
  value={groupId}
506
510
  disabled={Boolean(importProjectSuccessReport)}
507
511
  onChange={changeGroupId}