@finos/legend-application-studio 16.0.1 → 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 (358) 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.js +3 -2
  80. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
  81. package/lib/components/editor/edit-panel/service-editor/NewServiceModal.d.ts.map +1 -1
  82. package/lib/components/editor/edit-panel/service-editor/NewServiceModal.js +1 -1
  83. package/lib/components/editor/edit-panel/service-editor/NewServiceModal.js.map +1 -1
  84. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js +1 -1
  85. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js.map +1 -1
  86. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
  87. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +1 -4
  88. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
  89. package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
  90. package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.js +8 -8
  91. package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.js.map +1 -1
  92. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js +2 -1
  93. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
  94. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js +2 -2
  95. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
  96. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js +2 -2
  97. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js.map +1 -1
  98. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js +1 -1
  99. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js.map +1 -1
  100. package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.js +1 -1
  101. package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.js.map +1 -1
  102. package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
  103. package/lib/components/editor/side-bar/CreateNewElementModal.js +5 -2
  104. package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
  105. package/lib/components/editor/side-bar/Explorer.js +4 -4
  106. package/lib/components/editor/side-bar/Explorer.js.map +1 -1
  107. package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
  108. package/lib/components/editor/side-bar/LocalChanges.js +1 -1
  109. package/lib/components/editor/side-bar/LocalChanges.js.map +1 -1
  110. package/lib/components/editor/side-bar/WorkspaceReview.js +1 -1
  111. package/lib/components/editor/side-bar/WorkspaceReview.js.map +1 -1
  112. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts.map +1 -1
  113. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js +1 -1
  114. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js.map +1 -1
  115. package/lib/components/shared/ElementIconUtils.js +1 -1
  116. package/lib/components/shared/ElementIconUtils.js.map +1 -1
  117. package/lib/components/{workspace-setup/ProjectSelector.d.ts → shared/ProjectSelectorUtils.d.ts} +9 -7
  118. package/lib/components/shared/ProjectSelectorUtils.d.ts.map +1 -0
  119. package/lib/components/shared/ProjectSelectorUtils.js +28 -0
  120. package/lib/components/shared/ProjectSelectorUtils.js.map +1 -0
  121. package/lib/components/shared/TypeTree.js +2 -2
  122. package/lib/components/shared/TypeTree.js.map +1 -1
  123. package/lib/components/{workspace-setup/WorkspaceSetupStoreProvider.d.ts → shared/WorkspaceSelectorUtils.d.ts} +8 -8
  124. package/lib/components/shared/WorkspaceSelectorUtils.d.ts.map +1 -0
  125. package/lib/components/shared/WorkspaceSelectorUtils.js +24 -0
  126. package/lib/components/shared/WorkspaceSelectorUtils.js.map +1 -0
  127. package/lib/components/workspace-setup/{ProjectCreateModal.d.ts → CreateProjectModal.d.ts} +1 -1
  128. package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -0
  129. package/lib/components/workspace-setup/{ProjectCreateModal.js → CreateProjectModal.js} +4 -4
  130. package/lib/components/workspace-setup/{ProjectCreateModal.js.map → CreateProjectModal.js.map} +1 -1
  131. package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts +22 -0
  132. package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -0
  133. package/lib/components/workspace-setup/CreateWorkspaceModal.js +67 -0
  134. package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -0
  135. package/lib/components/workspace-setup/WorkspaceSetup.d.ts +2 -0
  136. package/lib/components/workspace-setup/WorkspaceSetup.d.ts.map +1 -1
  137. package/lib/components/workspace-setup/WorkspaceSetup.js +96 -115
  138. package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
  139. package/lib/index.css +2 -2
  140. package/lib/index.css.map +1 -1
  141. package/lib/index.d.ts +9 -6
  142. package/lib/index.d.ts.map +1 -1
  143. package/lib/index.js +9 -7
  144. package/lib/index.js.map +1 -1
  145. package/lib/package.json +4 -4
  146. package/lib/stores/{DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.d.ts → DSLGeneration_LegendStudioApplicationPlugin_Extension.d.ts} +5 -2
  147. package/lib/stores/DSLGeneration_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -0
  148. package/lib/stores/{DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.js → DSLGeneration_LegendStudioApplicationPlugin_Extension.js} +1 -1
  149. package/lib/stores/DSLGeneration_LegendStudioApplicationPlugin_Extension.js.map +1 -0
  150. package/lib/stores/EditorGraphState.d.ts +1 -1
  151. package/lib/stores/EditorGraphState.d.ts.map +1 -1
  152. package/lib/stores/EditorGraphState.js +3 -2
  153. package/lib/stores/EditorGraphState.js.map +1 -1
  154. package/lib/stores/EditorStore.d.ts +6 -8
  155. package/lib/stores/EditorStore.d.ts.map +1 -1
  156. package/lib/stores/EditorStore.js +39 -13
  157. package/lib/stores/EditorStore.js.map +1 -1
  158. package/lib/stores/EditorStoreTestUtils.d.ts.map +1 -1
  159. package/lib/stores/EditorStoreTestUtils.js +1 -1
  160. package/lib/stores/EditorStoreTestUtils.js.map +1 -1
  161. package/lib/stores/ExplorerTreeState.d.ts +2 -2
  162. package/lib/stores/ExplorerTreeState.d.ts.map +1 -1
  163. package/lib/stores/ExplorerTreeState.js +2 -2
  164. package/lib/stores/ExplorerTreeState.js.map +1 -1
  165. package/lib/stores/LegendStudioAppEvent.d.ts.map +1 -1
  166. package/lib/stores/LegendStudioAppEvent.js +2 -0
  167. package/lib/stores/LegendStudioAppEvent.js.map +1 -1
  168. package/lib/stores/LegendStudioBaseStore.d.ts +2 -3
  169. package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
  170. package/lib/stores/LegendStudioBaseStore.js +7 -2
  171. package/lib/stores/LegendStudioBaseStore.js.map +1 -1
  172. package/lib/stores/LegendStudioRouter.js +1 -1
  173. package/lib/stores/LegendStudioRouter.js.map +1 -1
  174. package/lib/stores/editor/NewElementState.d.ts.map +1 -1
  175. package/lib/stores/editor/NewElementState.js +5 -2
  176. package/lib/stores/editor/NewElementState.js.map +1 -1
  177. package/lib/stores/editor-state/FileGenerationState.d.ts +1 -1
  178. package/lib/stores/editor-state/FileGenerationState.d.ts.map +1 -1
  179. package/lib/stores/editor-state/FileGenerationState.js +1 -1
  180. package/lib/stores/editor-state/FileGenerationState.js.map +1 -1
  181. package/lib/stores/editor-state/FileGenerationViewerState.d.ts +1 -1
  182. package/lib/stores/editor-state/FileGenerationViewerState.d.ts.map +1 -1
  183. package/lib/stores/editor-state/GraphGenerationState.d.ts +1 -1
  184. package/lib/stores/editor-state/GraphGenerationState.d.ts.map +1 -1
  185. package/lib/stores/editor-state/GraphGenerationState.js +2 -2
  186. package/lib/stores/editor-state/GraphGenerationState.js.map +1 -1
  187. package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
  188. package/lib/stores/editor-state/ProjectConfigurationEditorState.js +3 -1
  189. package/lib/stores/editor-state/ProjectConfigurationEditorState.js.map +1 -1
  190. package/lib/stores/editor-state/element-editor-state/RuntimeEditorState.d.ts +1 -1
  191. package/lib/stores/editor-state/element-editor-state/RuntimeEditorState.d.ts.map +1 -1
  192. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +1 -1
  193. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
  194. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js +2 -2
  195. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
  196. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js +1 -1
  197. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
  198. package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js +1 -1
  199. package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -1
  200. package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.d.ts.map +1 -1
  201. package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js +1 -1
  202. package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
  203. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts +5 -8
  204. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts.map +1 -1
  205. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js +15 -20
  206. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
  207. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js +1 -1
  208. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
  209. package/lib/stores/graphModifier/DSLMapping_GraphModifierHelper.js +1 -1
  210. package/lib/stores/graphModifier/DSLMapping_GraphModifierHelper.js.map +1 -1
  211. package/lib/stores/project-viewer/ProjectViewerStore.d.ts +1 -2
  212. package/lib/stores/project-viewer/ProjectViewerStore.d.ts.map +1 -1
  213. package/lib/stores/project-viewer/ProjectViewerStore.js +2 -1
  214. package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
  215. package/lib/stores/shared/{DnDUtil.d.ts → DnDUtils.d.ts} +2 -2
  216. package/lib/stores/shared/DnDUtils.d.ts.map +1 -0
  217. package/lib/stores/shared/{DnDUtil.js → DnDUtils.js} +1 -1
  218. package/lib/stores/shared/DnDUtils.js.map +1 -0
  219. package/lib/stores/shared/{FileGenerationTreeUtil.d.ts → FileGenerationTreeUtils.d.ts} +1 -1
  220. package/lib/stores/shared/FileGenerationTreeUtils.d.ts.map +1 -0
  221. package/lib/stores/shared/{FileGenerationTreeUtil.js → FileGenerationTreeUtils.js} +1 -1
  222. package/lib/stores/shared/FileGenerationTreeUtils.js.map +1 -0
  223. package/lib/stores/shared/{MockDataUtil.d.ts → MockDataUtils.d.ts} +1 -1
  224. package/lib/stores/shared/MockDataUtils.d.ts.map +1 -0
  225. package/lib/stores/shared/{MockDataUtil.js → MockDataUtils.js} +2 -2
  226. package/lib/stores/shared/MockDataUtils.js.map +1 -0
  227. package/lib/stores/shared/{ModelUtil.d.ts → ModelClassifierUtils.d.ts} +1 -1
  228. package/lib/stores/shared/ModelClassifierUtils.d.ts.map +1 -0
  229. package/lib/stores/shared/{ModelUtil.js → ModelClassifierUtils.js} +1 -1
  230. package/lib/stores/shared/ModelClassifierUtils.js.map +1 -0
  231. package/lib/stores/shared/{PackageTreeUtil.d.ts → PackageTreeUtils.d.ts} +2 -2
  232. package/lib/stores/shared/PackageTreeUtils.d.ts.map +1 -0
  233. package/lib/stores/shared/{PackageTreeUtil.js → PackageTreeUtils.js} +2 -2
  234. package/lib/stores/shared/PackageTreeUtils.js.map +1 -0
  235. package/lib/stores/shared/{TreeUtil.d.ts → TreeUtils.d.ts} +2 -2
  236. package/lib/stores/shared/TreeUtils.d.ts.map +1 -0
  237. package/lib/stores/shared/{TreeUtil.js → TreeUtils.js} +1 -1
  238. package/lib/stores/shared/TreeUtils.js.map +1 -0
  239. package/lib/stores/shared/testable/TestableUtils.js +1 -1
  240. package/lib/stores/shared/testable/TestableUtils.js.map +1 -1
  241. package/lib/stores/workspace-setup/WorkspaceSetupStore.d.ts +18 -33
  242. package/lib/stores/workspace-setup/WorkspaceSetupStore.d.ts.map +1 -1
  243. package/lib/stores/workspace-setup/WorkspaceSetupStore.js +137 -133
  244. package/lib/stores/workspace-setup/WorkspaceSetupStore.js.map +1 -1
  245. package/package.json +13 -13
  246. package/src/application/LegendStudioApplicationConfig.ts +12 -5
  247. package/src/components/EditorComponentTestUtils.tsx +1 -6
  248. package/src/components/EmbeddedQueryBuilder.tsx +2 -8
  249. package/src/components/LegendStudioApplication.tsx +1 -1
  250. package/src/components/LegendStudioBaseStoreProvider.tsx +2 -5
  251. package/src/components/editor/EditorStoreProvider.tsx +1 -6
  252. package/src/components/editor/edit-panel/FunctionEditor.tsx +1 -1
  253. package/src/components/editor/edit-panel/GenerationSpecificationEditor.tsx +5 -5
  254. package/src/components/editor/edit-panel/GrammarTextEditor.tsx +4 -4
  255. package/src/components/editor/edit-panel/RuntimeEditor.tsx +2 -2
  256. package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +31 -3
  257. package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +16 -11
  258. package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +1 -1
  259. package/src/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.tsx +2 -3
  260. package/src/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.tsx +4 -4
  261. package/src/components/editor/edit-panel/external-format-editor/BindingElementEditor.tsx +1 -1
  262. package/src/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.tsx +0 -1
  263. package/src/components/editor/edit-panel/mapping-editor/ClassMappingEditor.tsx +1 -1
  264. package/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx +1 -1
  265. package/src/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.tsx +2 -2
  266. package/src/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.tsx +2 -2
  267. package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx +1 -1
  268. package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +2 -14
  269. package/src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx +1 -1
  270. package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +1 -9
  271. package/src/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.tsx +1 -1
  272. package/src/components/editor/edit-panel/mapping-editor/NewMappingElementModal.tsx +2 -6
  273. package/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx +1 -1
  274. package/src/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.tsx +1 -1
  275. package/src/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.tsx +2 -2
  276. package/src/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.tsx +1 -1
  277. package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +5 -5
  278. package/src/components/editor/edit-panel/service-editor/NewServiceModal.tsx +2 -3
  279. package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +1 -1
  280. package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +1 -8
  281. package/src/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.tsx +15 -10
  282. package/src/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.tsx +1 -1
  283. package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +2 -2
  284. package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +2 -2
  285. package/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx +1 -1
  286. package/src/components/editor/edit-panel/uml-editor/PropertyEditor.tsx +1 -1
  287. package/src/components/editor/side-bar/CreateNewElementModal.tsx +5 -2
  288. package/src/components/editor/side-bar/Explorer.tsx +5 -5
  289. package/src/components/editor/side-bar/LocalChanges.tsx +1 -1
  290. package/src/components/editor/side-bar/WorkspaceReview.tsx +1 -1
  291. package/src/components/editor/side-bar/WorkspaceSyncConflictResolver.tsx +2 -8
  292. package/src/components/shared/ElementIconUtils.tsx +1 -1
  293. package/src/components/shared/ProjectSelectorUtils.tsx +63 -0
  294. package/src/components/shared/TypeTree.tsx +3 -3
  295. package/src/components/shared/WorkspaceSelectorUtils.tsx +45 -0
  296. package/src/components/workspace-setup/{ProjectCreateModal.tsx → CreateProjectModal.tsx} +7 -3
  297. package/src/components/workspace-setup/CreateWorkspaceModal.tsx +178 -0
  298. package/src/components/workspace-setup/WorkspaceSetup.tsx +300 -346
  299. package/src/index.ts +9 -9
  300. package/src/stores/{DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.ts → DSLGeneration_LegendStudioApplicationPlugin_Extension.ts} +4 -1
  301. package/src/stores/EditorGraphState.ts +2 -3
  302. package/src/stores/EditorStore.ts +52 -19
  303. package/src/stores/EditorStoreTestUtils.ts +0 -1
  304. package/src/stores/ExplorerTreeState.ts +3 -3
  305. package/src/stores/LegendStudioAppEvent.ts +3 -0
  306. package/src/stores/LegendStudioBaseStore.ts +7 -4
  307. package/src/stores/LegendStudioRouter.ts +1 -1
  308. package/src/stores/editor/NewElementState.ts +5 -1
  309. package/src/stores/editor-state/FileGenerationState.ts +1 -1
  310. package/src/stores/editor-state/FileGenerationViewerState.ts +1 -1
  311. package/src/stores/editor-state/GraphGenerationState.ts +6 -6
  312. package/src/stores/editor-state/ProjectConfigurationEditorState.ts +2 -1
  313. package/src/stores/editor-state/element-editor-state/RuntimeEditorState.ts +1 -1
  314. package/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts +2 -2
  315. package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +1 -1
  316. package/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +1 -1
  317. package/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +1 -2
  318. package/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +33 -32
  319. package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +1 -1
  320. package/src/stores/graphModifier/DSLMapping_GraphModifierHelper.ts +1 -1
  321. package/src/stores/project-viewer/ProjectViewerStore.ts +6 -6
  322. package/src/stores/shared/{DnDUtil.ts → DnDUtils.ts} +1 -1
  323. package/src/stores/shared/{FileGenerationTreeUtil.ts → FileGenerationTreeUtils.ts} +0 -0
  324. package/src/stores/shared/{MockDataUtil.ts → MockDataUtils.ts} +4 -1
  325. package/src/stores/shared/{ModelUtil.ts → ModelClassifierUtils.ts} +0 -0
  326. package/src/stores/shared/{PackageTreeUtil.ts → PackageTreeUtils.ts} +2 -2
  327. package/src/stores/shared/{TreeUtil.ts → TreeUtils.ts} +1 -1
  328. package/src/stores/shared/testable/TestableUtils.ts +1 -1
  329. package/src/stores/workspace-setup/WorkspaceSetupStore.ts +208 -190
  330. package/tsconfig.json +12 -12
  331. package/lib/components/workspace-setup/ProjectCreateModal.d.ts.map +0 -1
  332. package/lib/components/workspace-setup/ProjectSelector.d.ts.map +0 -1
  333. package/lib/components/workspace-setup/ProjectSelector.js +0 -65
  334. package/lib/components/workspace-setup/ProjectSelector.js.map +0 -1
  335. package/lib/components/workspace-setup/WorkspaceSelector.d.ts +0 -22
  336. package/lib/components/workspace-setup/WorkspaceSelector.d.ts.map +0 -1
  337. package/lib/components/workspace-setup/WorkspaceSelector.js +0 -57
  338. package/lib/components/workspace-setup/WorkspaceSelector.js.map +0 -1
  339. package/lib/components/workspace-setup/WorkspaceSetupStoreProvider.d.ts.map +0 -1
  340. package/lib/components/workspace-setup/WorkspaceSetupStoreProvider.js +0 -34
  341. package/lib/components/workspace-setup/WorkspaceSetupStoreProvider.js.map +0 -1
  342. package/lib/stores/DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.d.ts.map +0 -1
  343. package/lib/stores/DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.js.map +0 -1
  344. package/lib/stores/shared/DnDUtil.d.ts.map +0 -1
  345. package/lib/stores/shared/DnDUtil.js.map +0 -1
  346. package/lib/stores/shared/FileGenerationTreeUtil.d.ts.map +0 -1
  347. package/lib/stores/shared/FileGenerationTreeUtil.js.map +0 -1
  348. package/lib/stores/shared/MockDataUtil.d.ts.map +0 -1
  349. package/lib/stores/shared/MockDataUtil.js.map +0 -1
  350. package/lib/stores/shared/ModelUtil.d.ts.map +0 -1
  351. package/lib/stores/shared/ModelUtil.js.map +0 -1
  352. package/lib/stores/shared/PackageTreeUtil.d.ts.map +0 -1
  353. package/lib/stores/shared/PackageTreeUtil.js.map +0 -1
  354. package/lib/stores/shared/TreeUtil.d.ts.map +0 -1
  355. package/lib/stores/shared/TreeUtil.js.map +0 -1
  356. package/src/components/workspace-setup/ProjectSelector.tsx +0 -148
  357. package/src/components/workspace-setup/WorkspaceSelector.tsx +0 -135
  358. package/src/components/workspace-setup/WorkspaceSetupStoreProvider.tsx +0 -56
@@ -28,6 +28,7 @@ import {
28
28
  UnsupportedOperationError,
29
29
  getNullableFirstElement,
30
30
  assertTrue,
31
+ URL_SEPARATOR,
31
32
  } from '@finos/legend-shared';
32
33
  import { LEGEND_STUDIO_APP_EVENT } from '../../../LegendStudioAppEvent.js';
33
34
  import { Version } from '@finos/legend-server-sdlc';
@@ -36,7 +37,7 @@ import {
36
37
  type ServiceRegistrationResult,
37
38
  ServiceExecutionMode,
38
39
  } from '@finos/legend-graph';
39
- import { ServiceRegistrationEnvInfo } from '../../../../application/LegendStudioApplicationConfig.js';
40
+ import { ServiceRegistrationEnvironmentConfig } from '../../../../application/LegendStudioApplicationConfig.js';
40
41
  import {
41
42
  ActionAlertActionType,
42
43
  ActionAlertType,
@@ -44,6 +45,19 @@ import {
44
45
 
45
46
  export const LATEST_PROJECT_REVISION = 'Latest Project Revision';
46
47
 
48
+ export const generateServiceManagementUrl = (
49
+ baseUrl: string,
50
+ serviceUrlPattern: string,
51
+ ): string =>
52
+ `${baseUrl}${
53
+ URL_SEPARATOR +
54
+ encodeURIComponent(
55
+ serviceUrlPattern[0] === URL_SEPARATOR
56
+ ? serviceUrlPattern.substring(1)
57
+ : serviceUrlPattern,
58
+ )
59
+ }`;
60
+
47
61
  const getServiceExecutionMode = (mode: string): ServiceExecutionMode => {
48
62
  switch (mode) {
49
63
  case ServiceExecutionMode.FULL_INTERACTIVE:
@@ -59,22 +73,15 @@ const getServiceExecutionMode = (mode: string): ServiceExecutionMode => {
59
73
  }
60
74
  };
61
75
 
62
- const URL_SEPARATOR = '/';
63
-
64
76
  interface ServiceVersionOption {
65
77
  label: string;
66
78
  value: Version | string;
67
79
  }
68
80
 
69
- export enum SERVICE_REGISTRATION_PHASE {
70
- REGISTERING_SERVICE = 'REGISTERING_SERVICE',
71
- ACTIVATING_SERVICE = 'ACTIVATING_SERVICE',
72
- }
73
-
74
81
  export class ServiceRegistrationState {
75
82
  readonly editorStore: EditorStore;
76
83
  readonly service: Service;
77
- readonly registrationOptions: ServiceRegistrationEnvInfo[] = [];
84
+ readonly registrationOptions: ServiceRegistrationEnvironmentConfig[] = [];
78
85
  registrationState = ActionState.create();
79
86
  serviceEnv?: string | undefined;
80
87
  serviceExecutionMode?: ServiceExecutionMode | undefined;
@@ -86,7 +93,7 @@ export class ServiceRegistrationState {
86
93
  constructor(
87
94
  editorStore: EditorStore,
88
95
  service: Service,
89
- registrationOptions: ServiceRegistrationEnvInfo[],
96
+ registrationOptions: ServiceRegistrationEnvironmentConfig[],
90
97
  enableModesWithVersioning: boolean,
91
98
  ) {
92
99
  makeAutoObservable(this, {
@@ -151,13 +158,13 @@ export class ServiceRegistrationState {
151
158
  this.setServiceExecutionMode(this.executionModes[0]);
152
159
  }
153
160
 
154
- get options(): ServiceRegistrationEnvInfo[] {
161
+ get options(): ServiceRegistrationEnvironmentConfig[] {
155
162
  if (this.enableModesWithVersioning) {
156
163
  return this.registrationOptions;
157
164
  }
158
165
  return this.registrationOptions
159
166
  .map((_envConfig) => {
160
- const envConfig = new ServiceRegistrationEnvInfo();
167
+ const envConfig = new ServiceRegistrationEnvironmentConfig();
161
168
  envConfig.env = _envConfig.env;
162
169
  envConfig.executionUrl = _envConfig.executionUrl;
163
170
  envConfig.managementUrl = _envConfig.managementUrl;
@@ -215,9 +222,7 @@ export class ServiceRegistrationState {
215
222
  const projectConfig = guaranteeNonNullable(
216
223
  this.editorStore.projectConfigurationEditorState.projectConfiguration,
217
224
  );
218
- this.registrationState.setMessage(
219
- SERVICE_REGISTRATION_PHASE.REGISTERING_SERVICE,
220
- );
225
+ this.registrationState.setMessage(`Registering service...`);
221
226
  const serviceRegistrationResult =
222
227
  (yield this.editorStore.graphManagerState.graphManager.registerService(
223
228
  this.service,
@@ -227,12 +232,12 @@ export class ServiceRegistrationState {
227
232
  versionInput,
228
233
  serverUrl,
229
234
  guaranteeNonNullable(this.serviceExecutionMode),
230
- this.TEMPORARY__useStoreModel,
235
+ {
236
+ TEMPORARY__useStoreModel: this.TEMPORARY__useStoreModel,
237
+ },
231
238
  )) as ServiceRegistrationResult;
232
239
  if (this.activatePostRegistration) {
233
- this.registrationState.setMessage(
234
- SERVICE_REGISTRATION_PHASE.ACTIVATING_SERVICE,
235
- );
240
+ this.registrationState.setMessage(`Activating service...`);
236
241
  yield this.editorStore.graphManagerState.graphManager.activateService(
237
242
  serverUrl,
238
243
  serviceRegistrationResult.serviceInstanceId,
@@ -240,20 +245,13 @@ export class ServiceRegistrationState {
240
245
  }
241
246
  assertNonEmptyString(
242
247
  serviceRegistrationResult.pattern,
243
- 'Service registration pattern is missing',
248
+ 'Service registration pattern is missing or empty',
244
249
  );
245
- const message = `Service with pattern ${
246
- serviceRegistrationResult.pattern
247
- } registered ${this.activatePostRegistration ? 'and activated ' : ''}`;
248
- const encodedServicePattern =
249
- URL_SEPARATOR +
250
- encodeURIComponent(
251
- serviceRegistrationResult.pattern[0] === URL_SEPARATOR
252
- ? serviceRegistrationResult.pattern.substring(1)
253
- : serviceRegistrationResult.pattern,
254
- );
250
+
255
251
  this.editorStore.setActionAlertInfo({
256
- message,
252
+ message: `Service with pattern ${
253
+ serviceRegistrationResult.pattern
254
+ } registered ${this.activatePostRegistration ? 'and activated ' : ''}`,
257
255
  prompt: 'You can now launch and monitor the operation of your service',
258
256
  type: ActionAlertType.STANDARD,
259
257
  onEnter: (): void => this.editorStore.setBlockGlobalHotkeys(true),
@@ -264,7 +262,10 @@ export class ServiceRegistrationState {
264
262
  type: ActionAlertActionType.PROCEED,
265
263
  handler: (): void => {
266
264
  this.editorStore.applicationStore.navigator.openNewWindow(
267
- `${config.managementUrl}${encodedServicePattern}`,
265
+ generateServiceManagementUrl(
266
+ config.managementUrl,
267
+ serviceRegistrationResult.pattern,
268
+ ),
268
269
  );
269
270
  },
270
271
  default: true,
@@ -55,7 +55,7 @@ import {
55
55
  import {
56
56
  createMockEnumerationProperty,
57
57
  createMockPrimitiveProperty,
58
- } from '../../../../shared/MockDataUtil.js';
58
+ } from '../../../../shared/MockDataUtils.js';
59
59
  import {
60
60
  createRelationalDataFromCSV,
61
61
  EmbeddedDataConnectionTypeVisitor,
@@ -250,7 +250,7 @@ export const enumValueMapping_updateSourceValue = action(
250
250
  sourceValue_setValue(
251
251
  sourceValue,
252
252
  sourceType instanceof Type && sourceType.name === PRIMITIVE_TYPE.INTEGER
253
- ? parseInt(val as string)
253
+ ? parseInt(val as string, 10)
254
254
  : val,
255
255
  );
256
256
  }
@@ -32,7 +32,11 @@ import {
32
32
  generateViewRevisionRoute,
33
33
  generateViewProjectRoute,
34
34
  } from '../LegendStudioRouter.js';
35
- import type { Entity } from '@finos/legend-storage';
35
+ import {
36
+ type Entity,
37
+ type ProjectGAVCoordinates,
38
+ parseGAVCoordinates,
39
+ } from '@finos/legend-storage';
36
40
  import {
37
41
  ProjectConfiguration,
38
42
  Revision,
@@ -42,11 +46,7 @@ import {
42
46
  } from '@finos/legend-server-sdlc';
43
47
  import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js';
44
48
  import { TAB_SIZE } from '@finos/legend-application';
45
- import {
46
- type ProjectGAVCoordinates,
47
- parseGAVCoordinates,
48
- ProjectData,
49
- } from '@finos/legend-server-depot';
49
+ import { ProjectData } from '@finos/legend-server-depot';
50
50
  import {
51
51
  type WorkflowManagerState,
52
52
  ProjectVersionWorkflowManagerState,
@@ -19,7 +19,7 @@ import type {
19
19
  FlatDataRecordTypeTreeNodeData,
20
20
  TypeTreeNodeData,
21
21
  PackageTreeNodeData,
22
- } from '../shared/TreeUtil.js';
22
+ } from './TreeUtils.js';
23
23
 
24
24
  export enum CORE_DND_TYPE {
25
25
  NONE = 'NONE',
@@ -30,7 +30,10 @@ import {
30
30
  DATE_FORMAT,
31
31
  DATE_TIME_FORMAT,
32
32
  } from '@finos/legend-graph';
33
- import { CLASS_PROPERTY_TYPE, getClassPropertyType } from './ModelUtil.js';
33
+ import {
34
+ CLASS_PROPERTY_TYPE,
35
+ getClassPropertyType,
36
+ } from './ModelClassifierUtils.js';
34
37
  import type { MappingElementSource } from '../editor-state/element-editor-state/mapping/MappingEditorState.js';
35
38
 
36
39
  export const createMockPrimitiveProperty = (
@@ -15,10 +15,10 @@
15
15
  */
16
16
 
17
17
  import { isNonNullable, addUniqueEntry } from '@finos/legend-shared';
18
- import type { PackageTreeNodeData } from './TreeUtil.js';
18
+ import type { PackageTreeNodeData } from './TreeUtils.js';
19
19
  import type { TreeNodeData, TreeData } from '@finos/legend-art';
20
20
  import type { EditorStore } from '../EditorStore.js';
21
- import { CORE_DND_TYPE } from './DnDUtil.js';
21
+ import { CORE_DND_TYPE } from './DnDUtils.js';
22
22
  import type { DSL_LegendStudioApplicationPlugin_Extension } from '../LegendStudioApplicationPlugin.js';
23
23
  import {
24
24
  type PackageableElement,
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import type { CORE_DND_TYPE } from '../shared/DnDUtil.js';
17
+ import type { CORE_DND_TYPE } from '../shared/DnDUtils.js';
18
18
  import type { TreeNodeData } from '@finos/legend-art';
19
19
  import type {
20
20
  Type,
@@ -47,7 +47,7 @@ import {
47
47
  } from '@finos/legend-shared';
48
48
  import { EmbeddedDataType } from '../../editor-state/ExternalFormatState.js';
49
49
  import type { EditorStore } from '../../EditorStore.js';
50
- import { createMockDataForMappingElementSource } from '../MockDataUtil.js';
50
+ import { createMockDataForMappingElementSource } from '../MockDataUtils.js';
51
51
 
52
52
  export const createBareExternalFormat = (
53
53
  contentType?: string | undefined,