@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
@@ -0,0 +1,67 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { useState, useRef } from 'react';
18
+ import { observer } from 'mobx-react-lite';
19
+ import { clsx, Dialog, SquareIcon, PanelLoadingIndicator, CheckSquareIcon, } from '@finos/legend-art';
20
+ import { flowResult } from 'mobx';
21
+ import { WorkspaceType } from '@finos/legend-server-sdlc';
22
+ import { useApplicationStore, DocumentationLink, } from '@finos/legend-application';
23
+ import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../stores/LegendStudioDocumentation.js';
24
+ import { useWorkspaceSetupStore } from './WorkspaceSetup.js';
25
+ export const CreateWorkspaceModal = observer((props) => {
26
+ const { selectedProject } = props;
27
+ const setupStore = useWorkspaceSetupStore();
28
+ const applicationStore = useApplicationStore();
29
+ const workspaceNameInputRef = useRef(null);
30
+ const [workspaceName, setWorkspaceName] = useState('');
31
+ const [isGroupWorkspace, setIsGroupWorkspace] = useState(true);
32
+ const workspaceAlreadyExists = Boolean(setupStore.workspaces.find((workspace) => workspace.workspaceId === workspaceName &&
33
+ ((workspace.workspaceType === WorkspaceType.GROUP &&
34
+ isGroupWorkspace) ||
35
+ (workspace.workspaceType === WorkspaceType.USER &&
36
+ !isGroupWorkspace))));
37
+ const createWorkspace = () => {
38
+ if (workspaceName) {
39
+ flowResult(setupStore.createWorkspace(selectedProject.projectId, workspaceName, isGroupWorkspace ? WorkspaceType.GROUP : WorkspaceType.USER)).catch(applicationStore.alertUnhandledError);
40
+ }
41
+ };
42
+ const changeWorkspaceName = (event) => setWorkspaceName(event.target.value);
43
+ const toggleGroupWorkspace = (event) => {
44
+ event.preventDefault();
45
+ setIsGroupWorkspace(!isGroupWorkspace);
46
+ };
47
+ const handleEnter = () => {
48
+ workspaceNameInputRef.current?.focus();
49
+ };
50
+ const onClose = () => {
51
+ setupStore.setShowCreateWorkspaceModal(false);
52
+ };
53
+ const handleSubmit = (event) => {
54
+ event.preventDefault();
55
+ createWorkspace();
56
+ };
57
+ return (_jsx(Dialog, { open: setupStore.showCreateWorkspaceModal, onClose: onClose, TransitionProps: {
58
+ onEnter: handleEnter,
59
+ }, classes: { container: 'search-modal__container' }, PaperProps: { classes: { root: 'search-modal__inner-container' } }, children: _jsxs("div", { className: "modal modal--dark workspace-setup__create-workspace-modal", children: [_jsxs("div", { className: "modal__title", children: ["Create Workspace", _jsx(DocumentationLink, { className: "workspace-setup__create-workspace-modal__doc__create-workspace", documentationKey: LEGEND_STUDIO_DOCUMENTATION_KEY.CREATE_WORKSPACE })] }), _jsxs("form", { onSubmit: handleSubmit, children: [_jsx(PanelLoadingIndicator, { isLoading: setupStore.createWorkspaceState.isInProgress }), _jsxs("div", { className: "panel__content__form workspace-setup__create-workspace-modal__form workspace-setup__create-workspace-modal__form__workspace", children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Workspace Name" }), _jsxs("div", { className: "input-group", children: [_jsx("input", { className: "input input--dark input-group__input workspace-setup__create-workspace-modal__form__workspace-name__input", ref: workspaceNameInputRef, spellCheck: false, disabled: setupStore.createWorkspaceState.isInProgress ||
60
+ setupStore.createOrImportProjectState.isInProgress, placeholder: "MyWorkspace", value: workspaceName, onChange: changeWorkspaceName }), workspaceAlreadyExists && (_jsx("div", { className: "input-group__error-message", children: "Workspace with same name already exists" }))] })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Group Workspace" }), _jsxs("div", { className: "panel__content__form__section__toggler", children: [_jsx("button", { onClick: toggleGroupWorkspace, type: "button" // prevent this toggler being activated on form submission
61
+ , className: clsx('panel__content__form__section__toggler__btn', {
62
+ 'panel__content__form__section__toggler__btn--toggled': isGroupWorkspace,
63
+ }), tabIndex: -1, children: isGroupWorkspace ? _jsx(CheckSquareIcon, {}) : _jsx(SquareIcon, {}) }), _jsx("div", { className: "panel__content__form__section__toggler__prompt", children: "Group workspaces can be accessed by all users in the project" })] })] })] }), _jsx("div", { className: "panel__content__form__actions", children: _jsx("button", { disabled: setupStore.createWorkspaceState.isInProgress ||
64
+ setupStore.createOrImportProjectState.isInProgress ||
65
+ !workspaceName, className: "btn btn--dark", children: "Create" }) })] })] }) }));
66
+ });
67
+ //# sourceMappingURL=CreateWorkspaceModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateWorkspaceModal.js","sourceRoot":"","sources":["../../../src/components/workspace-setup/CreateWorkspaceModal.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,MAAM,EACN,UAAU,EACV,qBAAqB,EACrB,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAgB,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EACL,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,+BAA+B,EAAE,MAAM,2CAA2C,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAC1C,CAAC,KAAmC,EAAE,EAAE;IACtC,MAAM,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAClC,MAAM,UAAU,GAAG,sBAAsB,EAAE,CAAC;IAC5C,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,qBAAqB,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAC;IAC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8C,gCAEvD,EACN,eAAK,SAAS,EAAC,wCAAwC,aACrD,iBACE,OAAO,EAAE,oBAAoB,EAC7B,IAAI,EAAC,QAAQ,CAAC,0DAA0D;sDACxE,SAAS,EAAE,IAAI,CACb,6CAA6C,EAC7C;wDACE,sDAAsD,EACpD,gBAAgB;qDACnB,CACF,EACD,QAAQ,EAAE,CAAC,CAAC,YAEX,gBAAgB,CAAC,CAAC,CAAC,KAAC,eAAe,KAAG,CAAC,CAAC,CAAC,KAAC,UAAU,KAAG,GACjD,EACT,cAAK,SAAS,EAAC,gDAAgD,6EAEzD,IACF,IACF,IACF,EACN,cAAK,SAAS,EAAC,+BAA+B,YAC5C,iBACE,QAAQ,EACN,UAAU,CAAC,oBAAoB,CAAC,YAAY;oCAC5C,UAAU,CAAC,0BAA0B,CAAC,YAAY;oCAClD,CAAC,aAAa,EAEhB,SAAS,EAAC,eAAe,uBAGlB,GACL,IACD,IACH,GACC,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -14,5 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  /// <reference types="react" resolution-mode="require"/>
17
+ import { WorkspaceSetupStore } from '../../stores/workspace-setup/WorkspaceSetupStore.js';
18
+ export declare const useWorkspaceSetupStore: () => WorkspaceSetupStore;
17
19
  export declare const WorkspaceSetup: import("react").FC<{}>;
18
20
  //# sourceMappingURL=WorkspaceSetup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WorkspaceSetup.d.ts","sourceRoot":"","sources":["../../../src/components/workspace-setup/WorkspaceSetup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA4WH,eAAO,MAAM,cAAc,wBA2B1B,CAAC"}
1
+ {"version":3,"file":"WorkspaceSetup.d.ts","sourceRoot":"","sources":["../../../src/components/workspace-setup/WorkspaceSetup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA2CH,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAsB1F,eAAO,MAAM,sBAAsB,QAAO,mBAIvC,CAAC;AAWJ,eAAO,MAAM,cAAc,wBAyQ1B,CAAC"}
@@ -14,142 +14,123 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { useState, useEffect, useRef } from 'react';
18
- import { ProjectSelector } from './ProjectSelector.js';
19
- import { WorkspaceSelector } from './WorkspaceSelector.js';
20
- import { observer } from 'mobx-react-lite';
21
- import { clsx, Dialog, SquareIcon, compareLabelFn, CustomSelectorInput, PanelLoadingIndicator, CheckSquareIcon, MarkdownTextViewer, AssistantIcon, } from '@finos/legend-art';
22
- import { useWorkspaceSetupStore, withWorkspaceSetupStore, } from './WorkspaceSetupStoreProvider.js';
17
+ import { createContext, useContext, useEffect, useMemo, useState } from 'react';
18
+ import { observer, useLocalObservable } from 'mobx-react-lite';
19
+ import { clsx, MarkdownTextViewer, AssistantIcon, compareLabelFn, PlusIcon, GitBranchIcon, CustomSelectorInput, RepoIcon, } from '@finos/legend-art';
23
20
  import { useParams } from 'react-router';
24
21
  import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js';
25
- import { generateEditorRoute, } from '../../stores/LegendStudioRouter.js';
22
+ import { generateEditorRoute, LEGEND_STUDIO_PATH_PARAM_TOKEN, } from '../../stores/LegendStudioRouter.js';
26
23
  import { flowResult } from 'mobx';
27
- import { WorkspaceType } from '@finos/legend-server-sdlc';
28
- import { useApplicationStore, DocumentationLink, useApplicationNavigationContext, } from '@finos/legend-application';
24
+ import { DocumentationLink, useApplicationNavigationContext, } from '@finos/legend-application';
29
25
  import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../stores/LegendStudioDocumentation.js';
30
- import { CreateProjectModal } from './ProjectCreateModal.js';
26
+ import { CreateProjectModal } from './CreateProjectModal.js';
31
27
  import { ActivityBarMenu } from '../editor/ActivityBar.js';
32
28
  import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../stores/LegendStudioApplicationNavigationContext.js';
29
+ import { CreateWorkspaceModal } from './CreateWorkspaceModal.js';
33
30
  import { useLegendStudioApplicationStore } from '../LegendStudioBaseStoreProvider.js';
34
- const CreateWorkspaceModal = observer(() => {
31
+ import { buildProjectOption, getProjectOptionLabelFormatter, } from '../shared/ProjectSelectorUtils.js';
32
+ import { buildWorkspaceOption, formatWorkspaceOptionLabel, } from '../shared/WorkspaceSelectorUtils.js';
33
+ import { debounce, guaranteeNonNullable } from '@finos/legend-shared';
34
+ import { WorkspaceSetupStore } from '../../stores/workspace-setup/WorkspaceSetupStore.js';
35
+ import { useSDLCServerClient } from '@finos/legend-server-sdlc';
36
+ const WorkspaceSetupStoreContext = createContext(undefined);
37
+ const WorkspaceSetupStoreProvider = ({ children }) => {
38
+ const applicationStore = useLegendStudioApplicationStore();
39
+ const sdlcServerClient = useSDLCServerClient();
40
+ const store = useLocalObservable(() => new WorkspaceSetupStore(applicationStore, sdlcServerClient));
41
+ return (_jsx(WorkspaceSetupStoreContext.Provider, { value: store, children: children }));
42
+ };
43
+ export const useWorkspaceSetupStore = () => guaranteeNonNullable(useContext(WorkspaceSetupStoreContext), `Can't find workspace setup store in context`);
44
+ const withWorkspaceSetupStore = (WrappedComponent) => function WithWorkspaceSetupStore() {
45
+ return (_jsx(WorkspaceSetupStoreProvider, { children: _jsx(WrappedComponent, {}) }));
46
+ };
47
+ export const WorkspaceSetup = withWorkspaceSetupStore(observer(() => {
48
+ const params = useParams();
49
+ const projectId = params[LEGEND_STUDIO_PATH_PARAM_TOKEN.PROJECT_ID];
50
+ const workspaceId = params[LEGEND_STUDIO_PATH_PARAM_TOKEN.WORKSPACE_ID];
51
+ const groupWorkspaceId = params[LEGEND_STUDIO_PATH_PARAM_TOKEN.GROUP_WORKSPACE_ID];
35
52
  const setupStore = useWorkspaceSetupStore();
36
- const applicationStore = useApplicationStore();
37
- const { loadProjectsState, createOrImportProjectState, createWorkspaceState, showCreateWorkspaceModal, } = setupStore;
38
- const isFetchingProjects = loadProjectsState.isInProgress;
39
- const projectSelectorRef = useRef(null);
40
- const workspaceNameInputRef = useRef(null);
41
- const [currentProjectId, setCurrentProjectId] = useState(setupStore.currentProjectId);
42
- const [workspaceName, setWorkspaceName] = useState('');
43
- const [isGroupWorkspace, setIsGroupWorkspace] = useState(true);
44
- const workspaceType = isGroupWorkspace
45
- ? WorkspaceType.GROUP
46
- : WorkspaceType.USER;
47
- const projectOptions = setupStore.projectOptions.sort(compareLabelFn);
48
- const selectedOption = projectOptions.find((option) => option.value === currentProjectId) ?? null;
49
- const dispatchingActions = createWorkspaceState.isInProgress ||
50
- createOrImportProjectState.isInProgress;
51
- const onSelectionChange = (val) => {
52
- if ((val !== null || selectedOption !== null) &&
53
- (!val || !selectedOption || val.value !== selectedOption.value)) {
54
- setCurrentProjectId(val?.value);
55
- workspaceNameInputRef.current?.focus();
53
+ const applicationStore = useLegendStudioApplicationStore();
54
+ const [projectSearchText, setProjectSearchText] = useState('');
55
+ const toggleAssistant = () => applicationStore.assistantService.toggleAssistant();
56
+ const documentation = applicationStore.documentationService.getDocEntry(LEGEND_STUDIO_DOCUMENTATION_KEY.SETUP_WORKSPACE);
57
+ // projects
58
+ const projectOptions = setupStore.projects
59
+ .map(buildProjectOption)
60
+ .sort(compareLabelFn);
61
+ const selectedProjectOption = setupStore.currentProject
62
+ ? buildProjectOption(setupStore.currentProject)
63
+ : null;
64
+ const onProjectChange = (val) => {
65
+ if (val) {
66
+ flowResult(setupStore.changeProject(val.value)).catch(applicationStore.alertUnhandledError);
56
67
  }
57
- };
58
- const projectSelectorPlaceholder = isFetchingProjects
59
- ? 'Loading projects'
60
- : loadProjectsState.hasFailed
61
- ? 'Error fetching projects'
62
- : projectOptions.length
63
- ? 'Choose an existing project'
64
- : 'You have no projects, please create or acquire access for at least one';
65
- const closeModal = () => {
66
- setupStore.setShowCreateWorkspaceModal(false);
67
- };
68
- const createWorkspace = () => {
69
- if (currentProjectId && workspaceName) {
70
- flowResult(setupStore.createWorkspace(currentProjectId, workspaceName, workspaceType)).catch(applicationStore.alertUnhandledError);
68
+ else {
69
+ setupStore.resetProject();
71
70
  }
72
71
  };
73
- const changeWorkspaceName = (event) => setWorkspaceName(event.target.value);
74
- const handleSubmit = (event) => {
75
- event.preventDefault();
76
- createWorkspace();
72
+ const showCreateProjectModal = () => setupStore.setShowCreateProjectModal(true);
73
+ // project search text
74
+ const debouncedLoadProjects = useMemo(() => debounce((input) => {
75
+ flowResult(setupStore.loadProjects(input)).catch(applicationStore.alertUnhandledError);
76
+ }, 500), [applicationStore, setupStore]);
77
+ const onProjectSearchTextChange = (value) => {
78
+ if (value !== projectSearchText) {
79
+ setProjectSearchText(value);
80
+ debouncedLoadProjects.cancel();
81
+ debouncedLoadProjects(value);
82
+ }
77
83
  };
78
- const handleEnter = () => {
79
- if (currentProjectId) {
80
- workspaceNameInputRef.current?.focus();
84
+ // workspaces
85
+ const workspaceOptions = setupStore.workspaces
86
+ .map(buildWorkspaceOption)
87
+ .sort(compareLabelFn);
88
+ const selectedWorkspaceOption = setupStore.currentWorkspace
89
+ ? buildWorkspaceOption(setupStore.currentWorkspace)
90
+ : null;
91
+ const onWorkspaceChange = (val) => {
92
+ if (val) {
93
+ setupStore.changeWorkspace(val.value);
81
94
  }
82
95
  else {
83
- projectSelectorRef.current?.focus();
96
+ setupStore.resetWorkspace();
84
97
  }
85
98
  };
86
- const toggleGroupWorkspace = (event) => {
87
- event.preventDefault();
88
- setIsGroupWorkspace(!isGroupWorkspace);
89
- };
90
- return (_jsx(Dialog, { open: showCreateWorkspaceModal, onClose: closeModal, TransitionProps: {
91
- onEnter: handleEnter,
92
- }, classes: { container: 'search-modal__container' }, PaperProps: { classes: { root: 'search-modal__inner-container' } }, children: _jsxs("div", { className: "modal modal--dark workspace-setup__create-workspace-modal", children: [_jsxs("div", { className: "modal__title", children: ["Create Workspace", _jsx(DocumentationLink, { className: "workspace-setup__create-workspace-modal__doc__create-workspace", documentationKey: LEGEND_STUDIO_DOCUMENTATION_KEY.CREATE_WORKSPACE })] }), _jsxs("form", { onSubmit: handleSubmit, children: [_jsx(PanelLoadingIndicator, { isLoading: setupStore.createWorkspaceState.isInProgress }), _jsxs("div", { className: "panel__content__form workspace-setup__create-workspace-modal__form workspace-setup__create-workspace-modal__form__workspace", children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Project Name" }), _jsx(CustomSelectorInput, { className: "workspace-setup-selector__input workspace-setup__workspace__selector", ref: projectSelectorRef, options: projectOptions, disabled: dispatchingActions ||
93
- isFetchingProjects ||
94
- !projectOptions.length, isLoading: isFetchingProjects, onChange: onSelectionChange, value: selectedOption, placeholder: projectSelectorPlaceholder, isClearable: true, escapeClearsValue: true, darkMode: true })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Workspace Name" }), _jsx("input", { className: "workspace-setup__create-workspace-modal__form__workspace-name__input", ref: workspaceNameInputRef, spellCheck: false, disabled: dispatchingActions, placeholder: "MyWorkspace", value: workspaceName, onChange: changeWorkspaceName })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Group Workspace" }), _jsxs("div", { className: "panel__content__form__section__toggler", children: [_jsx("button", { onClick: toggleGroupWorkspace, type: "button" // prevent this toggler being activated on form submission
95
- , className: clsx('panel__content__form__section__toggler__btn', {
96
- 'panel__content__form__section__toggler__btn--toggled': isGroupWorkspace,
97
- }), tabIndex: -1, children: isGroupWorkspace ? _jsx(CheckSquareIcon, {}) : _jsx(SquareIcon, {}) }), _jsx("div", { className: "panel__content__form__section__toggler__prompt", children: "Group workspaces can be edited by all users in the corresponding project." })] })] })] }), _jsx("div", { className: "panel__content__form__actions", children: _jsx("button", { disabled: dispatchingActions || !workspaceName || !currentProjectId, className: "btn btn--dark", children: "Create" }) })] })] }) }));
98
- });
99
- const WorkspaceSetupContent = observer(() => {
100
- const setupStore = useWorkspaceSetupStore();
101
- const applicationStore = useLegendStudioApplicationStore();
102
- const projectSelectorRef = useRef(null);
103
- const workspaceSelectorRef = useRef(null);
104
- const proceedButtonRef = useRef(null);
105
- const documentation = applicationStore.documentationService.getDocEntry(LEGEND_STUDIO_DOCUMENTATION_KEY.SETUP_WORKSPACE);
106
- const isCreatingWorkspace = setupStore.createWorkspaceState.isInProgress;
107
- const isCreatingOrImportingProject = setupStore.createOrImportProjectState.isInProgress;
108
- const disableProceedButton = !setupStore.currentProjectId ||
109
- !setupStore.currentWorkspaceCompositeId ||
110
- isCreatingWorkspace ||
111
- isCreatingOrImportingProject;
112
- const onProjectChange = (focusNext) => focusNext
113
- ? workspaceSelectorRef.current?.focus()
114
- : projectSelectorRef.current?.focus();
115
- const onWorkspaceChange = (focusNext) => focusNext
116
- ? proceedButtonRef.current?.focus()
117
- : workspaceSelectorRef.current?.focus();
118
- const handleCreateProjectModal = () => setupStore.setShowCreateProjectModal(true);
119
- const handleCreateWorkspaceModal = () => setupStore.setShowCreateWorkspaceModal(true);
99
+ const showCreateWorkspaceModal = () => setupStore.setShowCreateWorkspaceModal(true);
120
100
  const handleProceed = () => {
121
- if (setupStore.currentProjectId &&
122
- setupStore.currentProject &&
123
- setupStore.currentWorkspaceCompositeId &&
124
- setupStore.currentWorkspace) {
125
- applicationStore.navigator.goTo(generateEditorRoute(setupStore.currentProjectId, setupStore.currentWorkspace.workspaceId, setupStore.currentWorkspace.workspaceType));
101
+ if (setupStore.currentProject && setupStore.currentWorkspace) {
102
+ applicationStore.navigator.goTo(generateEditorRoute(setupStore.currentProject.projectId, setupStore.currentWorkspace.workspaceId, setupStore.currentWorkspace.workspaceType));
126
103
  }
127
104
  };
128
- const toggleAssistant = () => applicationStore.assistantService.toggleAssistant();
129
- useEffect(() => {
130
- if (!disableProceedButton) {
131
- proceedButtonRef.current?.focus();
132
- }
133
- }, [disableProceedButton]);
134
- return (_jsx("div", { className: "app__page", children: _jsxs("div", { className: "workspace-setup", children: [_jsxs("div", { className: "workspace-setup__body", children: [_jsx("div", { className: "activity-bar", children: _jsx(ActivityBarMenu, {}) }), _jsx("div", { className: "workspace-setup__content", "data-testid": LEGEND_STUDIO_TEST_ID.SETUP__CONTENT, children: _jsxs("div", { className: "workspace-setup__content__main", children: [_jsxs("div", { className: "workspace-setup__title", children: [_jsxs("div", { className: "workspace-setup__title__header", children: ["Setup Workspace", _jsx(DocumentationLink, { className: "workspace-setup__doc__setup-workspace", documentationKey: LEGEND_STUDIO_DOCUMENTATION_KEY.SETUP_WORKSPACE })] }), documentation?.markdownText && (_jsx("div", { className: "workspace-setup__title__documentation", children: _jsx(MarkdownTextViewer, { value: documentation.markdownText }) }))] }), _jsxs("div", { children: [_jsx(ProjectSelector, { ref: projectSelectorRef, onChange: onProjectChange, create: handleCreateProjectModal }), _jsx(WorkspaceSelector, { ref: workspaceSelectorRef, onChange: onWorkspaceChange, create: handleCreateWorkspaceModal }), _jsx("div", { className: "workspace-setup__actions", children: _jsx("button", { ref: proceedButtonRef, className: "workspace-setup__next-btn btn--dark", onClick: handleProceed, disabled: disableProceedButton, children: "Edit Workspace" }) })] }), setupStore.showCreateProjectModal && _jsx(CreateProjectModal, {}), setupStore.showCreateWorkspaceModal && _jsx(CreateWorkspaceModal, {})] }) })] }), _jsxs("div", { "data-testid": LEGEND_STUDIO_TEST_ID.STATUS_BAR, className: "editor__status-bar", children: [_jsx("div", { className: "editor__status-bar__left" }), _jsx("div", { className: "editor__status-bar__right", children: _jsx("button", { className: clsx('editor__status-bar__action editor__status-bar__action__toggler', {
135
- 'editor__status-bar__action__toggler--active': !applicationStore.assistantService.isHidden,
136
- }), onClick: toggleAssistant, tabIndex: -1, title: "Toggle assistant", children: _jsx(AssistantIcon, {}) }) })] })] }) }));
137
- });
138
- export const WorkspaceSetup = withWorkspaceSetupStore(observer(() => {
139
- const params = useParams();
140
- const setupStore = useWorkspaceSetupStore();
141
- const applicationStore = useApplicationStore();
142
105
  useEffect(() => {
143
- setupStore.setCurrentProjectId(params.projectId);
144
- setupStore.init(params.workspaceId, params.groupWorkspaceId);
145
- }, [setupStore, params]);
106
+ flowResult(setupStore.initialize(projectId, workspaceId, groupWorkspaceId)).catch(applicationStore.alertUnhandledError);
107
+ }, [
108
+ setupStore,
109
+ applicationStore,
110
+ projectId,
111
+ workspaceId,
112
+ groupWorkspaceId,
113
+ ]);
146
114
  useEffect(() => {
147
- flowResult(setupStore.fetchProjects()).catch(applicationStore.alertUnhandledError);
148
- if (setupStore.currentProjectId) {
149
- flowResult(setupStore.fetchWorkspaces(setupStore.currentProjectId)).catch(applicationStore.alertUnhandledError);
150
- }
151
- }, [applicationStore, setupStore]);
115
+ flowResult(setupStore.loadProjects('')).catch(applicationStore.alertUnhandledError);
116
+ }, [setupStore, applicationStore]);
152
117
  useApplicationNavigationContext(LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.SETUP);
153
- return _jsx(WorkspaceSetupContent, {});
118
+ return (_jsx("div", { className: "app__page", children: _jsxs("div", { className: "workspace-setup", children: [_jsxs("div", { className: "workspace-setup__body", children: [_jsx("div", { className: "activity-bar", children: _jsx(ActivityBarMenu, {}) }), _jsx("div", { className: "workspace-setup__content", "data-testid": LEGEND_STUDIO_TEST_ID.SETUP__CONTENT, children: _jsxs("div", { className: "workspace-setup__content__main", children: [_jsxs("div", { className: "workspace-setup__title", children: [_jsxs("div", { className: "workspace-setup__title__header", children: ["Setup Workspace", _jsx(DocumentationLink, { className: "workspace-setup__doc__setup-workspace", documentationKey: LEGEND_STUDIO_DOCUMENTATION_KEY.SETUP_WORKSPACE })] }), documentation?.markdownText && (_jsx("div", { className: "workspace-setup__title__documentation", children: _jsx(MarkdownTextViewer, { value: documentation.markdownText }) }))] }), _jsxs("form", { onSubmit: handleProceed, children: [_jsxs("div", { className: "workspace-setup__selector", children: [_jsx("div", { className: "workspace-setup__selector__icon", title: "project", children: _jsx(RepoIcon, { className: "workspace-setup__selector__icon--project" }) }), _jsx(CustomSelectorInput, { className: "workspace-setup__selector__input", options: projectOptions, isLoading: setupStore.loadProjectsState.isInProgress, onInputChange: onProjectSearchTextChange, inputValue: projectSearchText, onChange: onProjectChange, value: selectedProjectOption, placeholder: "Search for project...", isClearable: true, escapeClearsValue: true, darkMode: true, formatOptionLabel: getProjectOptionLabelFormatter(applicationStore) }), _jsx("button", { className: "workspace-setup__selector__action btn--dark", onClick: showCreateProjectModal, tabIndex: -1, type: "button" // prevent this toggler being activated on form submission
119
+ , title: "Create a Project", children: _jsx(PlusIcon, {}) })] }), _jsxs("div", { className: "workspace-setup__selector", children: [_jsx("div", { className: "workspace-setup__selector__icon", title: "workspace", children: _jsx(GitBranchIcon, { className: "workspace-setup__selector__icon--workspace" }) }), _jsx(CustomSelectorInput, { className: "workspace-setup__selector__input", options: workspaceOptions, disabled: !setupStore.currentProject ||
120
+ setupStore.loadProjectsState.isInProgress ||
121
+ setupStore.loadWorkspacesState.isInProgress, isLoading: setupStore.loadWorkspacesState.isInProgress, onChange: onWorkspaceChange, formatOptionLabel: formatWorkspaceOptionLabel, value: selectedWorkspaceOption, placeholder: setupStore.loadWorkspacesState.isInProgress
122
+ ? 'Loading workspaces...'
123
+ : !setupStore.currentProject
124
+ ? 'In order to select a workspace, a project must be selected'
125
+ : workspaceOptions.length
126
+ ? 'Choose an existing workspace'
127
+ : 'You have no workspaces. Please create one to proceed...', isClearable: true, escapeClearsValue: true, darkMode: true }), _jsx("button", { className: "workspace-setup__selector__action btn--dark", onClick: showCreateWorkspaceModal, disabled: !setupStore.currentProject, tabIndex: -1, type: "button" // prevent this toggler being activated on form submission
128
+ , title: "Create a Workspace", children: _jsx(PlusIcon, {}) })] }), _jsx("div", { className: "workspace-setup__actions", children: _jsx("button", { className: "workspace-setup__next-btn btn--dark", onClick: handleProceed, disabled: !setupStore.currentProject ||
129
+ !setupStore.currentWorkspace ||
130
+ setupStore.createWorkspaceState.isInProgress ||
131
+ setupStore.createOrImportProjectState.isInProgress, children: "Edit Workspace" }) })] }), setupStore.showCreateProjectModal && _jsx(CreateProjectModal, {}), setupStore.showCreateWorkspaceModal &&
132
+ setupStore.currentProject && (_jsx(CreateWorkspaceModal, { selectedProject: setupStore.currentProject }))] }) })] }), _jsxs("div", { "data-testid": LEGEND_STUDIO_TEST_ID.STATUS_BAR, className: "editor__status-bar", children: [_jsx("div", { className: "editor__status-bar__left" }), _jsx("div", { className: "editor__status-bar__right", children: _jsx("button", { className: clsx('editor__status-bar__action editor__status-bar__action__toggler', {
133
+ 'editor__status-bar__action__toggler--active': !applicationStore.assistantService.isHidden,
134
+ }), onClick: toggleAssistant, tabIndex: -1, title: "Toggle assistant", children: _jsx(AssistantIcon, {}) }) })] })] }) }));
154
135
  }));
155
136
  //# sourceMappingURL=WorkspaceSetup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WorkspaceSetup.js","sourceRoot":"","sources":["../../../src/components/workspace-setup/WorkspaceSetup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,IAAI,EACJ,MAAM,EACN,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,kBAAkB,EAClB,aAAa,GACd,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAEL,mBAAmB,GACpB,MAAM,oCAAoC,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