@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
@@ -34,14 +34,14 @@ import {
34
34
  type LegendApplicationConfigurationData,
35
35
  } from '@finos/legend-application';
36
36
 
37
- export class ServiceRegistrationEnvInfo {
37
+ export class ServiceRegistrationEnvironmentConfig {
38
38
  env!: string;
39
39
  executionUrl!: string;
40
40
  modes: string[] = [];
41
41
  managementUrl!: string;
42
42
 
43
43
  static readonly serialization = new SerializationFactory(
44
- createModelSchema(ServiceRegistrationEnvInfo, {
44
+ createModelSchema(ServiceRegistrationEnvironmentConfig, {
45
45
  env: primitive(),
46
46
  executionUrl: primitive(),
47
47
  managementUrl: primitive(),
@@ -51,6 +51,7 @@ export class ServiceRegistrationEnvInfo {
51
51
  }
52
52
 
53
53
  class LegendStudioApplicationCoreOptions {
54
+ projectCreationGroupIdSuggestion = 'org.finos.legend.*';
54
55
  /**
55
56
  * Indicates if we should keep section index and do not rewrite/flatten the paths shortened by section
56
57
  * imports.
@@ -68,13 +69,15 @@ class LegendStudioApplicationCoreOptions {
68
69
  * @modularize
69
70
  * See https://github.com/finos/legend-studio/issues/65
70
71
  */
71
- TEMPORARY__serviceRegistrationConfig: ServiceRegistrationEnvInfo[] = [];
72
+ TEMPORARY__serviceRegistrationConfig: ServiceRegistrationEnvironmentConfig[] =
73
+ [];
72
74
 
73
75
  private static readonly serialization = new SerializationFactory(
74
76
  createModelSchema(LegendStudioApplicationCoreOptions, {
77
+ projectCreationGroupIdSuggestion: optional(primitive()),
75
78
  TEMPORARY__preserveSectionIndex: optional(primitive()),
76
79
  TEMPORARY__serviceRegistrationConfig: list(
77
- object(ServiceRegistrationEnvInfo),
80
+ object(ServiceRegistrationEnvironmentConfig),
78
81
  ),
79
82
  }),
80
83
  );
@@ -111,6 +114,7 @@ export class LegendStudioApplicationConfig extends LegendApplicationConfig {
111
114
  ) {
112
115
  super(input);
113
116
 
117
+ // engine
114
118
  assertNonNullable(
115
119
  input.configData.engine,
116
120
  `Can't configure application: 'engine' field is missing`,
@@ -119,8 +123,9 @@ export class LegendStudioApplicationConfig extends LegendApplicationConfig {
119
123
  input.configData.engine.url,
120
124
  `Can't configure application: 'engine.url' field is missing or empty`,
121
125
  );
122
-
123
126
  this.engineQueryServerUrl = input.configData.engine.queryUrl;
127
+
128
+ // depot
124
129
  assertNonNullable(
125
130
  input.configData.depot,
126
131
  `Can't configure application: 'depot' field is missing`,
@@ -130,6 +135,7 @@ export class LegendStudioApplicationConfig extends LegendApplicationConfig {
130
135
  `Can't configure application: 'depot.url' field is missing or empty`,
131
136
  );
132
137
 
138
+ // sdlc
133
139
  assertNonNullable(
134
140
  input.configData.sdlc,
135
141
  `Can't configure application: 'sdlc' field is missing`,
@@ -140,6 +146,7 @@ export class LegendStudioApplicationConfig extends LegendApplicationConfig {
140
146
  );
141
147
  this.SDLCServerBaseHeaders = input.configData.sdlc.baseHeaders;
142
148
 
149
+ // options
143
150
  this.options = LegendStudioApplicationCoreOptions.create(
144
151
  (input.configData.extensions?.core ??
145
152
  {}) as PlainObject<LegendStudioApplicationCoreOptions>,
@@ -134,11 +134,7 @@ export const TEST_DATA__DefaultDepotInfo = {
134
134
  export const TEST__LegendStudioBaseStoreProvider: React.FC<{
135
135
  children: React.ReactNode;
136
136
  }> = ({ children }) => (
137
- <LegendStudioBaseStoreProvider
138
- pluginManager={LegendStudioPluginManager.create()}
139
- >
140
- {children}
141
- </LegendStudioBaseStoreProvider>
137
+ <LegendStudioBaseStoreProvider>{children}</LegendStudioBaseStoreProvider>
142
138
  );
143
139
 
144
140
  export const TEST__provideMockedEditorStore = (customization?: {
@@ -163,7 +159,6 @@ export const TEST__provideMockedEditorStore = (customization?: {
163
159
  customization?.depotServerClient ?? TEST__getTestDepotServerClient(),
164
160
  customization?.graphManagerState ??
165
161
  TEST__getTestGraphManagerState(customization?.pluginManager),
166
- pluginManager,
167
162
  );
168
163
  const MockedEditorStoreProvider = require('./editor/EditorStoreProvider.js'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment
169
164
  MockedEditorStoreProvider.useEditorStore = jest.fn();
@@ -24,7 +24,7 @@ import {
24
24
  EmptyWindowRestoreIcon,
25
25
  } from '@finos/legend-art';
26
26
  import { flowResult } from 'mobx';
27
- import { hashObject, noop } from '@finos/legend-shared';
27
+ import { noop } from '@finos/legend-shared';
28
28
  import {
29
29
  useApplicationNavigationContext,
30
30
  ActionAlertActionType,
@@ -65,13 +65,7 @@ const QueryBuilderDialog = observer(
65
65
  );
66
66
 
67
67
  const confirmCloseQueryBuilder = (): void => {
68
- // NOTE: This is poor-man change detection for query
69
- // in the future, we could consider a similar approach to how we do change detection in Studio
70
- if (
71
- queryBuilderState.changeDetectionState.isEnabled &&
72
- queryBuilderState.changeDetectionState.queryHashCode !==
73
- hashObject(queryBuilderState.buildQuery())
74
- ) {
68
+ if (queryBuilderState.changeDetectionState.hasChanged) {
75
69
  applicationStore.setActionAlertInfo({
76
70
  message:
77
71
  'Unsaved changes to your query will be lost if you continue. Do you still want to proceed?',
@@ -210,7 +210,7 @@ export const LegendStudioApplication = observer(
210
210
  pluginManager={pluginManager}
211
211
  log={applicationStore.log}
212
212
  >
213
- <LegendStudioBaseStoreProvider pluginManager={pluginManager}>
213
+ <LegendStudioBaseStoreProvider>
214
214
  <LegendApplicationComponentFrameworkProvider>
215
215
  <LegendStudioApplicationRoot />
216
216
  </LegendApplicationComponentFrameworkProvider>
@@ -26,13 +26,12 @@ import type { LegendStudioPluginManager } from '../application/LegendStudioPlugi
26
26
  import { useLocalObservable } from 'mobx-react-lite';
27
27
  import { useApplicationStore } from '@finos/legend-application';
28
28
  import type { LegendStudioApplicationConfig } from '../application/LegendStudioApplicationConfig.js';
29
- import type { LegendStudioApplicationPlugin } from '../stores/LegendStudioApplicationPlugin.js';
30
29
 
31
30
  export const useLegendStudioApplicationStore =
32
31
  (): LegendStudioApplicationStore =>
33
32
  useApplicationStore<
34
33
  LegendStudioApplicationConfig,
35
- LegendStudioApplicationPlugin
34
+ LegendStudioPluginManager
36
35
  >();
37
36
 
38
37
  const LegendStudioBaseStoreContext = createContext<
@@ -40,9 +39,8 @@ const LegendStudioBaseStoreContext = createContext<
40
39
  >(undefined);
41
40
 
42
41
  export const LegendStudioBaseStoreProvider: React.FC<{
43
- pluginManager: LegendStudioPluginManager;
44
42
  children: React.ReactNode;
45
- }> = ({ pluginManager, children }) => {
43
+ }> = ({ children }) => {
46
44
  const applicationStore = useLegendStudioApplicationStore();
47
45
  const sdlcServerClient = useSDLCServerClient();
48
46
  const depotServerClient = useDepotServerClient();
@@ -52,7 +50,6 @@ export const LegendStudioBaseStoreProvider: React.FC<{
52
50
  applicationStore,
53
51
  sdlcServerClient,
54
52
  depotServerClient,
55
- pluginManager,
56
53
  ),
57
54
  );
58
55
  return (
@@ -20,10 +20,7 @@ import { EditorStore } from '../../stores/EditorStore.js';
20
20
  import { guaranteeNonNullable } from '@finos/legend-shared';
21
21
  import { useSDLCServerClient } from '@finos/legend-server-sdlc';
22
22
  import { useDepotServerClient } from '@finos/legend-server-depot';
23
- import {
24
- useLegendStudioApplicationStore,
25
- useLegendStudioBaseStore,
26
- } from '../LegendStudioBaseStoreProvider.js';
23
+ import { useLegendStudioApplicationStore } from '../LegendStudioBaseStoreProvider.js';
27
24
  import { useGraphManagerState } from '@finos/legend-graph';
28
25
 
29
26
  const EditorStoreContext = createContext<EditorStore | undefined>(undefined);
@@ -35,7 +32,6 @@ export const EditorStoreProvider: React.FC<{
35
32
  const sdlcServerClient = useSDLCServerClient();
36
33
  const depotServerClient = useDepotServerClient();
37
34
  const graphManagerState = useGraphManagerState();
38
- const baseStore = useLegendStudioBaseStore();
39
35
  const store = useLocalObservable(
40
36
  () =>
41
37
  new EditorStore(
@@ -43,7 +39,6 @@ export const EditorStoreProvider: React.FC<{
43
39
  sdlcServerClient,
44
40
  depotServerClient,
45
41
  graphManagerState,
46
- baseStore.pluginManager,
47
42
  ),
48
43
  );
49
44
  return (
@@ -24,7 +24,7 @@ import {
24
24
  CORE_DND_TYPE,
25
25
  type UMLEditorElementDropTarget,
26
26
  type ElementDragSource,
27
- } from '../../../stores/shared/DnDUtil.js';
27
+ } from '../../../stores/shared/DnDUtils.js';
28
28
  import {
29
29
  prettyCONSTName,
30
30
  UnsupportedOperationError,
@@ -47,15 +47,15 @@ import {
47
47
  CORE_DND_TYPE,
48
48
  type ElementDragSource,
49
49
  type FileGenerationSourceDropTarget,
50
- } from '../../../stores/shared/DnDUtil.js';
50
+ } from '../../../stores/shared/DnDUtils.js';
51
51
  import { getNullableFirstElement } from '@finos/legend-shared';
52
- import type { DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension } from '../../../stores/DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.js';
52
+ import type { DSLGeneration_LegendStudioApplicationPlugin_Extension } from '../../../stores/DSLGeneration_LegendStudioApplicationPlugin_Extension.js';
53
53
  import { flowResult } from 'mobx';
54
54
  import { useEditorStore } from '../EditorStoreProvider.js';
55
55
  import {
56
56
  type PackageableElement,
57
57
  type PackageableElementReference,
58
- type DSLGenerationSpecification_PureGraphManagerPlugin_Extension,
58
+ type DSLGeneration_PureGraphManagerPlugin_Extension,
59
59
  FileGenerationSpecification,
60
60
  PackageableElementExplicitReference,
61
61
  GenerationTreeNode,
@@ -233,7 +233,7 @@ const ModelGenerationSpecifications = observer(
233
233
  .flatMap(
234
234
  (plugin) =>
235
235
  (
236
- plugin as DSLGenerationSpecification_PureGraphManagerPlugin_Extension
236
+ plugin as DSLGeneration_PureGraphManagerPlugin_Extension
237
237
  ).getExtraModelGenerationElementGetters?.() ?? [],
238
238
  )
239
239
  .flatMap((getter) => getter(editorStore.graphManagerState.graph));
@@ -243,7 +243,7 @@ const ModelGenerationSpecifications = observer(
243
243
  .flatMap(
244
244
  (plugin) =>
245
245
  (
246
- plugin as DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension
246
+ plugin as DSLGeneration_LegendStudioApplicationPlugin_Extension
247
247
  ).getExtraModelGenerationSpecificationElementDnDTypes?.() ?? [],
248
248
  );
249
249
  const modelGenerationElementOptions =
@@ -49,7 +49,7 @@ import { useResizeDetector } from 'react-resize-detector';
49
49
  import {
50
50
  type ElementDragSource,
51
51
  CORE_DND_TYPE,
52
- } from '../../../stores/shared/DnDUtil.js';
52
+ } from '../../../stores/shared/DnDUtils.js';
53
53
  import { useDrop } from 'react-dnd';
54
54
  import type {
55
55
  DSL_LegendStudioApplicationPlugin_Extension,
@@ -838,7 +838,7 @@ export const GrammarTextEditor = observer(() => {
838
838
  }, [editorStore, applicationStore, editor, grammarTextEditorState]);
839
839
 
840
840
  // Drag and Drop
841
- const extraDnDTypes = editorStore.pluginManager
841
+ const extraElementDragTypes = editorStore.pluginManager
842
842
  .getApplicationPlugins()
843
843
  .flatMap(
844
844
  (plugin) =>
@@ -859,7 +859,7 @@ export const GrammarTextEditor = observer(() => {
859
859
  const [, dropConnector] = useDrop<ElementDragSource>(
860
860
  () => ({
861
861
  accept: [
862
- ...extraDnDTypes,
862
+ ...extraElementDragTypes,
863
863
  CORE_DND_TYPE.PROJECT_EXPLORER_PACKAGE,
864
864
  CORE_DND_TYPE.PROJECT_EXPLORER_CLASS,
865
865
  CORE_DND_TYPE.PROJECT_EXPLORER_ASSOCIATION,
@@ -880,7 +880,7 @@ export const GrammarTextEditor = observer(() => {
880
880
 
881
881
  drop: (item) => handleDrop(item),
882
882
  }),
883
- [extraDnDTypes, handleDrop],
883
+ [extraElementDragTypes, handleDrop],
884
884
  );
885
885
  dropConnector(textEditorRef);
886
886
 
@@ -56,13 +56,13 @@ import {
56
56
  PanelDropZone,
57
57
  } from '@finos/legend-art';
58
58
  import { getElementIcon } from '../../shared/ElementIconUtils.js';
59
- import type { RuntimeExplorerTreeNodeData } from '../../../stores/shared/TreeUtil.js';
59
+ import type { RuntimeExplorerTreeNodeData } from '../../../stores/shared/TreeUtils.js';
60
60
  import { ConnectionEditor } from './connection-editor/ConnectionEditor.js';
61
61
  import {
62
62
  type UMLEditorElementDropTarget,
63
63
  CORE_DND_TYPE,
64
64
  ElementDragSource,
65
- } from '../../../stores/shared/DnDUtil.js';
65
+ } from '../../../stores/shared/DnDUtils.js';
66
66
  import { useDrop } from 'react-dnd';
67
67
  import {
68
68
  assertErrorThrown,
@@ -48,6 +48,8 @@ import {
48
48
  ResizablePanelSplitterLine,
49
49
  PanelContent,
50
50
  Panel,
51
+ Badge,
52
+ PanelListSelectorItemLabel,
51
53
  } from '@finos/legend-art';
52
54
  import { capitalize, prettyCONSTName } from '@finos/legend-shared';
53
55
 
@@ -1260,6 +1262,26 @@ const PostProcessorRelationalConnectionEditor = observer(
1260
1262
  connectionValueState.selectPostProcessor(postProcessor);
1261
1263
  };
1262
1264
 
1265
+ const getPostProcessorLabel = (postProcessor: PostProcessor): string => {
1266
+ if (postProcessor instanceof MapperPostProcessor) {
1267
+ return POST_PROCESSOR_TYPE.MAPPER;
1268
+ } else {
1269
+ const extraPostProcessorEditorClassifier = plugins.flatMap(
1270
+ (plugin) =>
1271
+ (
1272
+ plugin as StoreRelational_LegendStudioApplicationPlugin_Extension
1273
+ ).getExtraPostProcessorClassifierGetters?.() ?? [],
1274
+ );
1275
+ for (const classify of extraPostProcessorEditorClassifier) {
1276
+ const label = classify(postProcessor);
1277
+ if (label) {
1278
+ return label;
1279
+ }
1280
+ }
1281
+ }
1282
+ return 'unknown type';
1283
+ };
1284
+
1263
1285
  return (
1264
1286
  <div className="relational-connection-editor">
1265
1287
  <ResizablePanelGroup orientation="horizontal">
@@ -1269,7 +1291,7 @@ const PostProcessorRelationalConnectionEditor = observer(
1269
1291
  <ResizablePanel>
1270
1292
  <div className="relational-connection-editor__content">
1271
1293
  <ResizablePanelGroup orientation="vertical">
1272
- <ResizablePanel size={150} minSize={70}>
1294
+ <ResizablePanel size={200} minSize={100}>
1273
1295
  <Panel>
1274
1296
  <PanelHeader title="post-processor">
1275
1297
  <DropdownMenu
@@ -1323,13 +1345,19 @@ const PostProcessorRelationalConnectionEditor = observer(
1323
1345
  menuProps={{ elevation: 7 }}
1324
1346
  >
1325
1347
  <PanelListSelectorItem
1326
- title={`Post-Processor ${idx + 1}`}
1327
1348
  onSelect={() => selectPostProcessor(postProcessor)}
1328
1349
  isSelected={
1329
1350
  postProcessor ===
1330
1351
  postProcessorState?.postProcessor
1331
1352
  }
1332
- />
1353
+ >
1354
+ <PanelListSelectorItemLabel
1355
+ title={`Post-Processor ${idx + 1}`}
1356
+ />
1357
+ <Badge
1358
+ title={getPostProcessorLabel(postProcessor)}
1359
+ />
1360
+ </PanelListSelectorItem>
1333
1361
  </ContextMenu>
1334
1362
  ))}
1335
1363
  </PanelContent>
@@ -32,6 +32,7 @@ import {
32
32
  Panel,
33
33
  PanelHeader,
34
34
  PanelContent,
35
+ PanelListSelectorItemLabel,
35
36
  } from '@finos/legend-art';
36
37
  import {
37
38
  type Mapper,
@@ -181,21 +182,25 @@ export const MapperPostProcessorEditor = observer(
181
182
  menuProps={{ elevation: 7 }}
182
183
  >
183
184
  <PanelListSelectorItem
184
- title={
185
- mapper instanceof TableNameMapper
186
- ? 'Table Mapper'
187
- : 'Schema Mapper'
188
- }
189
- validationErrorMessage={
190
- isMapperDuplicated(mapper)
191
- ? 'Mappers have the same values'
192
- : undefined
193
- }
185
+ validationError={true}
194
186
  isSelected={
195
187
  mapper === postProcessorState.selectedMapper
196
188
  }
197
189
  onSelect={() => selectMapper(mapper)}
198
- />
190
+ >
191
+ <PanelListSelectorItemLabel
192
+ title={
193
+ mapper instanceof TableNameMapper
194
+ ? 'Table Mapper'
195
+ : 'Schema Mapper'
196
+ }
197
+ validationErrorMessage={
198
+ isMapperDuplicated(mapper)
199
+ ? 'Mappers have the same values'
200
+ : undefined
201
+ }
202
+ />
203
+ </PanelListSelectorItem>
199
204
  </ContextMenu>
200
205
  ))}
201
206
  </PanelContent>{' '}
@@ -53,7 +53,7 @@ import {
53
53
  CORE_DND_TYPE,
54
54
  type UMLEditorElementDropTarget,
55
55
  type ElementDragSource,
56
- } from '../../../../stores/shared/DnDUtil.js';
56
+ } from '../../../../stores/shared/DnDUtils.js';
57
57
  import {
58
58
  TaggedValueDragPreviewLayer,
59
59
  TaggedValueEditor,
@@ -105,7 +105,7 @@ const NewFileGenerationModal = observer(
105
105
  <div className="input-group">
106
106
  <input
107
107
  ref={nameRef}
108
- className="modal--simple__input input--dark input-group__input"
108
+ className="input input--dark input-group__input"
109
109
  disabled={isReadOnly}
110
110
  value={servicePath}
111
111
  spellCheck={false}
@@ -120,9 +120,8 @@ const NewFileGenerationModal = observer(
120
120
  </div>
121
121
  <div className="search-modal__actions">
122
122
  <button
123
- className="modal--simple__btn btn btn--dark btn--primary"
123
+ className="btn btn--dark"
124
124
  disabled={isReadOnly || elementAlreadyExists}
125
- color="primary"
126
125
  >
127
126
  Create
128
127
  </button>
@@ -61,7 +61,7 @@ import {
61
61
  type FileGenerationSourceDropTarget,
62
62
  type ElementDragSource,
63
63
  CORE_DND_TYPE,
64
- } from '../../../../stores/shared/DnDUtil.js';
64
+ } from '../../../../stores/shared/DnDUtils.js';
65
65
  import type { FileGenerationState } from '../../../../stores/editor-state/FileGenerationState.js';
66
66
  import type { ElementFileGenerationState } from '../../../../stores/editor-state/element-editor-state/ElementFileGenerationState.js';
67
67
  import {
@@ -69,7 +69,7 @@ import {
69
69
  GenerationDirectory,
70
70
  GenerationFile,
71
71
  getFileGenerationChildNodes,
72
- } from '../../../../stores/shared/FileGenerationTreeUtil.js';
72
+ } from '../../../../stores/shared/FileGenerationTreeUtils.js';
73
73
  import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js';
74
74
  import { useEditorStore } from '../../EditorStoreProvider.js';
75
75
  import {
@@ -84,7 +84,7 @@ import {
84
84
  } from '@finos/legend-graph';
85
85
  import { useApplicationStore } from '@finos/legend-application';
86
86
  import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js';
87
- import type { DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension } from '../../../../stores/DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.js';
87
+ import type { DSLGeneration_LegendStudioApplicationPlugin_Extension } from '../../../../stores/DSLGeneration_LegendStudioApplicationPlugin_Extension.js';
88
88
  import {
89
89
  fileGeneration_addScopeElement,
90
90
  fileGeneration_changeScopeElement,
@@ -239,7 +239,7 @@ export const GenerationResultViewer = observer(
239
239
  .flatMap(
240
240
  (plugin) =>
241
241
  (
242
- plugin as DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension
242
+ plugin as DSLGeneration_LegendStudioApplicationPlugin_Extension
243
243
  ).getExtraFileGenerationResultViewerActionConfigurations?.() ??
244
244
  [],
245
245
  )
@@ -50,7 +50,7 @@ import {
50
50
  CORE_DND_TYPE,
51
51
  type ElementDragSource,
52
52
  type UMLEditorElementDropTarget,
53
- } from '../../../../stores/shared/DnDUtil.js';
53
+ } from '../../../../stores/shared/DnDUtils.js';
54
54
  import {
55
55
  externalFormat_Binding_setContentType,
56
56
  externalFormat_Binding_setSchemaId,
@@ -132,7 +132,6 @@ const SchemaLoader = observer(
132
132
  </div>
133
133
  <div className="modal__footer">
134
134
  <button
135
- type="button"
136
135
  className="btn btn--dark blocking-alert__action--standard"
137
136
  onClick={importSchemas}
138
137
  disabled={!importState.files?.length}
@@ -43,7 +43,7 @@ import {
43
43
  operationMapping_setParameters,
44
44
  setImpl_setRoot,
45
45
  } from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper.js';
46
- import { SET_IMPLEMENTATION_TYPE } from '../../../../stores/shared/ModelUtil.js';
46
+ import { SET_IMPLEMENTATION_TYPE } from '../../../../stores/shared/ModelClassifierUtils.js';
47
47
  import type { DSLMapping_LegendStudioApplicationPlugin_Extension } from '../../../../stores/DSLMapping_LegendStudioApplicationPlugin_Extension.js';
48
48
 
49
49
  export const OperatorSelector = observer(
@@ -41,7 +41,7 @@ import {
41
41
  type MappingElementSourceDropTarget,
42
42
  CORE_DND_TYPE,
43
43
  TypeDragSource,
44
- } from '../../../../stores/shared/DnDUtil.js';
44
+ } from '../../../../stores/shared/DnDUtils.js';
45
45
  import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js';
46
46
  import { noop } from '@finos/legend-shared';
47
47
  import {
@@ -20,7 +20,7 @@ import {
20
20
  type FlatDataPropertyMappingTransformDropTarget,
21
21
  CORE_DND_TYPE,
22
22
  FlatDataColumnDragSource,
23
- } from '../../../../stores/shared/DnDUtil.js';
23
+ } from '../../../../stores/shared/DnDUtils.js';
24
24
  import {
25
25
  type MappingElement,
26
26
  MappingEditorState,
@@ -50,7 +50,7 @@ import { flatDataPropertyMapping_setTransformer } from '../../../../stores/graph
50
50
  import {
51
51
  CLASS_PROPERTY_TYPE,
52
52
  getClassPropertyType,
53
- } from '../../../../stores/shared/ModelUtil.js';
53
+ } from '../../../../stores/shared/ModelClassifierUtils.js';
54
54
 
55
55
  const SimplePropertyMappingEditor = observer(
56
56
  (props: {
@@ -26,8 +26,8 @@ import {
26
26
  import {
27
27
  CORE_DND_TYPE,
28
28
  FlatDataColumnDragSource,
29
- } from '../../../../stores/shared/DnDUtil.js';
30
- import type { FlatDataRecordTypeTreeNodeData } from '../../../../stores/shared/TreeUtil.js';
29
+ } from '../../../../stores/shared/DnDUtils.js';
30
+ import type { FlatDataRecordTypeTreeNodeData } from '../../../../stores/shared/TreeUtils.js';
31
31
  import { addUniqueEntry } from '@finos/legend-shared';
32
32
  import {
33
33
  DEFAULT_SOURCE_PARAMETER_NAME,
@@ -31,7 +31,7 @@ import {
31
31
  CORE_DND_TYPE,
32
32
  type ElementDragSource,
33
33
  type MappingElementSourceDropTarget,
34
- } from '../../../../stores/shared/DnDUtil.js';
34
+ } from '../../../../stores/shared/DnDUtils.js';
35
35
  import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js';
36
36
  import {
37
37
  InstanceSetImplementationState,
@@ -52,13 +52,8 @@ import { NewServiceModal } from '../service-editor/NewServiceModal.js';
52
52
  import {
53
53
  type MappingElementDragSource,
54
54
  CORE_DND_TYPE,
55
- } from '../../../../stores/shared/DnDUtil.js';
56
- import {
57
- assertErrorThrown,
58
- guaranteeType,
59
- hashObject,
60
- uniq,
61
- } from '@finos/legend-shared';
55
+ } from '../../../../stores/shared/DnDUtils.js';
56
+ import { assertErrorThrown, guaranteeType, uniq } from '@finos/legend-shared';
62
57
  import {
63
58
  type MappingExecutionState,
64
59
  MappingExecutionEmptyInputDataState,
@@ -201,10 +196,6 @@ const MappingExecutionQueryEditor = observer(
201
196
  queryBuilderState.initializeWithQuery(
202
197
  executionState.queryState.query,
203
198
  );
204
- queryBuilderState.changeDetectionState.setQueryHashCode(
205
- hashObject(executionState.queryState.query),
206
- );
207
- queryBuilderState.changeDetectionState.setIsEnabled(true);
208
199
  return queryBuilderState;
209
200
  },
210
201
  actionConfigs: [
@@ -223,9 +214,6 @@ const MappingExecutionQueryEditor = observer(
223
214
  applicationStore.notifySuccess(
224
215
  `Mapping execution query is updated`,
225
216
  );
226
- queryBuilderState.changeDetectionState.setQueryHashCode(
227
- hashObject(rawLambda),
228
- );
229
217
  embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration(
230
218
  undefined,
231
219
  );
@@ -21,7 +21,7 @@ import {
21
21
  type ElementDragSource,
22
22
  CORE_DND_TYPE,
23
23
  MappingElementDragSource,
24
- } from '../../../../stores/shared/DnDUtil.js';
24
+ } from '../../../../stores/shared/DnDUtils.js';
25
25
  import {
26
26
  type TreeNodeContainerProps,
27
27
  clsx,
@@ -51,12 +51,11 @@ import { useDrop } from 'react-dnd';
51
51
  import {
52
52
  type MappingElementDragSource,
53
53
  CORE_DND_TYPE,
54
- } from '../../../../stores/shared/DnDUtil.js';
54
+ } from '../../../../stores/shared/DnDUtils.js';
55
55
  import {
56
56
  IllegalStateError,
57
57
  guaranteeType,
58
58
  tryToFormatLosslessJSONString,
59
- hashObject,
60
59
  assertErrorThrown,
61
60
  } from '@finos/legend-shared';
62
61
  import {
@@ -115,10 +114,6 @@ const MappingTestQueryEditor = observer(
115
114
  embeddedQueryBuilderState.editorStore.graphManagerState,
116
115
  );
117
116
  queryBuilderState.initializeWithQuery(testState.queryState.query);
118
- queryBuilderState.changeDetectionState.setQueryHashCode(
119
- hashObject(testState.queryState.query),
120
- );
121
- queryBuilderState.changeDetectionState.setIsEnabled(true);
122
117
  return queryBuilderState;
123
118
  },
124
119
  actionConfigs: [
@@ -137,9 +132,6 @@ const MappingTestQueryEditor = observer(
137
132
  applicationStore.notifySuccess(
138
133
  `Mapping test query is updated`,
139
134
  );
140
- queryBuilderState.changeDetectionState.setQueryHashCode(
141
- hashObject(rawLambda),
142
- );
143
135
  embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration(
144
136
  undefined,
145
137
  );
@@ -42,7 +42,7 @@ import {
42
42
  import {
43
43
  type MappingElementDragSource,
44
44
  CORE_DND_TYPE,
45
- } from '../../../../stores/shared/DnDUtil.js';
45
+ } from '../../../../stores/shared/DnDUtils.js';
46
46
  import { ClassMappingSelectorModal } from './MappingExecutionBuilder.js';
47
47
  import { flowResult } from 'mobx';
48
48
  import { Randomizer } from '@finos/legend-shared';