@finos/legend-application-studio 15.2.0 → 16.0.1

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 (277) hide show
  1. package/lib/application/LegendStudio.d.ts.map +1 -1
  2. package/lib/application/LegendStudio.js +5 -2
  3. package/lib/application/LegendStudio.js.map +1 -1
  4. package/lib/application/LegendStudioPluginManager.js +2 -2
  5. package/lib/application/LegendStudioPluginManager.js.map +1 -1
  6. package/lib/components/DSLExternalFormat_LegendStudioApplicationPlugin.d.ts +4 -4
  7. package/lib/components/DSLExternalFormat_LegendStudioApplicationPlugin.d.ts.map +1 -1
  8. package/lib/components/DSLExternalFormat_LegendStudioApplicationPlugin.js +3 -3
  9. package/lib/components/DSLExternalFormat_LegendStudioApplicationPlugin.js.map +1 -1
  10. package/lib/components/EditorComponentTestUtils.d.ts +10 -2
  11. package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
  12. package/lib/components/EditorComponentTestUtils.js +24 -18
  13. package/lib/components/EditorComponentTestUtils.js.map +1 -1
  14. package/lib/components/EmbeddedQueryBuilder.d.ts +19 -0
  15. package/lib/components/EmbeddedQueryBuilder.d.ts.map +1 -0
  16. package/lib/components/EmbeddedQueryBuilder.js +80 -0
  17. package/lib/components/EmbeddedQueryBuilder.js.map +1 -0
  18. package/lib/components/LegendStudioApplication.d.ts +0 -1
  19. package/lib/components/LegendStudioApplication.d.ts.map +1 -1
  20. package/lib/components/editor/Editor.d.ts.map +1 -1
  21. package/lib/components/editor/Editor.js +12 -13
  22. package/lib/components/editor/Editor.js.map +1 -1
  23. package/lib/components/editor/StatusBar.d.ts +0 -1
  24. package/lib/components/editor/StatusBar.d.ts.map +1 -1
  25. package/lib/components/editor/aux-panel/AuxiliaryPanel.d.ts +0 -1
  26. package/lib/components/editor/aux-panel/AuxiliaryPanel.d.ts.map +1 -1
  27. package/lib/components/editor/aux-panel/Console.d.ts +0 -1
  28. package/lib/components/editor/aux-panel/Console.d.ts.map +1 -1
  29. package/lib/components/editor/aux-panel/DevTool.d.ts +0 -1
  30. package/lib/components/editor/aux-panel/DevTool.d.ts.map +1 -1
  31. package/lib/components/editor/command-center/ProjectSearchCommand.d.ts +0 -1
  32. package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
  33. package/lib/components/editor/edit-panel/FileGenerationViewer.d.ts +0 -1
  34. package/lib/components/editor/edit-panel/FileGenerationViewer.d.ts.map +1 -1
  35. package/lib/components/editor/edit-panel/FunctionEditor.d.ts +0 -1
  36. package/lib/components/editor/edit-panel/FunctionEditor.d.ts.map +1 -1
  37. package/lib/components/editor/edit-panel/GenerationSpecificationEditor.d.ts +0 -1
  38. package/lib/components/editor/edit-panel/GenerationSpecificationEditor.d.ts.map +1 -1
  39. package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
  40. package/lib/components/editor/edit-panel/GrammarTextEditor.js +15 -3
  41. package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
  42. package/lib/components/editor/edit-panel/ModelImporter.d.ts +0 -1
  43. package/lib/components/editor/edit-panel/ModelImporter.d.ts.map +1 -1
  44. package/lib/components/editor/edit-panel/RuntimeEditor.d.ts +0 -1
  45. package/lib/components/editor/edit-panel/RuntimeEditor.d.ts.map +1 -1
  46. package/lib/components/editor/edit-panel/UnsupportedElementEditor.d.ts +0 -1
  47. package/lib/components/editor/edit-panel/UnsupportedElementEditor.d.ts.map +1 -1
  48. package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.d.ts +0 -1
  49. package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.d.ts.map +1 -1
  50. package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.d.ts +0 -1
  51. package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.d.ts.map +1 -1
  52. package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.d.ts +0 -1
  53. package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.d.ts.map +1 -1
  54. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts +0 -1
  55. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
  56. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js +2 -2
  57. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
  58. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.d.ts +0 -1
  59. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.d.ts.map +1 -1
  60. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js.map +1 -1
  61. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.d.ts +0 -1
  62. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.d.ts.map +1 -1
  63. package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts +0 -1
  64. package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
  65. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts +0 -1
  66. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
  67. package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.d.ts +0 -1
  68. package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.d.ts.map +1 -1
  69. package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.d.ts +0 -1
  70. package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.d.ts.map +1 -1
  71. package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.d.ts +0 -1
  72. package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.d.ts.map +1 -1
  73. package/lib/components/editor/edit-panel/external-format-editor/BindingElementEditor.d.ts +0 -1
  74. package/lib/components/editor/edit-panel/external-format-editor/BindingElementEditor.d.ts.map +1 -1
  75. package/lib/components/editor/edit-panel/external-format-editor/ExternalFormatConnectionEditor.d.ts +0 -1
  76. package/lib/components/editor/edit-panel/external-format-editor/ExternalFormatConnectionEditor.d.ts.map +1 -1
  77. package/lib/components/editor/edit-panel/external-format-editor/NewSchemaSetDriver.d.ts +0 -1
  78. package/lib/components/editor/edit-panel/external-format-editor/NewSchemaSetDriver.d.ts.map +1 -1
  79. package/lib/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.d.ts +0 -1
  80. package/lib/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.d.ts.map +1 -1
  81. package/lib/components/editor/edit-panel/external-format-editor/SchemaSetModelGenerationEditor.d.ts +0 -1
  82. package/lib/components/editor/edit-panel/external-format-editor/SchemaSetModelGenerationEditor.d.ts.map +1 -1
  83. package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts +0 -1
  84. package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts.map +1 -1
  85. package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.d.ts +0 -1
  86. package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.d.ts.map +1 -1
  87. package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.d.ts +0 -1
  88. package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.d.ts.map +1 -1
  89. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts +0 -1
  90. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts.map +1 -1
  91. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts +0 -1
  92. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts.map +1 -1
  93. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts +0 -1
  94. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
  95. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +40 -8
  96. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
  97. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.d.ts +18 -0
  98. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.d.ts.map +1 -0
  99. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.js +38 -0
  100. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.js.map +1 -0
  101. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts +0 -1
  102. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
  103. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js +40 -8
  104. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
  105. package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts +0 -1
  106. package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
  107. package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.d.ts +0 -1
  108. package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.d.ts.map +1 -1
  109. package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts +0 -1
  110. package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts.map +1 -1
  111. package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.d.ts +0 -1
  112. package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.d.ts.map +1 -1
  113. package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts +0 -1
  114. package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts.map +1 -1
  115. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts +0 -1
  116. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts.map +1 -1
  117. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +52 -8
  118. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
  119. package/lib/components/editor/edit-panel/service-editor/NewServiceModal.d.ts +0 -1
  120. package/lib/components/editor/edit-panel/service-editor/NewServiceModal.d.ts.map +1 -1
  121. package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts +0 -1
  122. package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts.map +1 -1
  123. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts +0 -1
  124. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts.map +1 -1
  125. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts +0 -1
  126. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
  127. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +58 -10
  128. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
  129. package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts +0 -1
  130. package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
  131. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.d.ts +0 -1
  132. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.d.ts.map +1 -1
  133. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.d.ts +0 -1
  134. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.d.ts.map +1 -1
  135. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts +0 -1
  136. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
  137. package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts +0 -1
  138. package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts.map +1 -1
  139. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts +0 -1
  140. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts.map +1 -1
  141. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts +0 -1
  142. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts.map +1 -1
  143. package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.d.ts +19 -0
  144. package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.d.ts.map +1 -0
  145. package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js +80 -0
  146. package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js.map +1 -0
  147. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts +0 -1
  148. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts.map +1 -1
  149. package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.d.ts +0 -1
  150. package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.d.ts.map +1 -1
  151. package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.d.ts +0 -1
  152. package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.d.ts.map +1 -1
  153. package/lib/components/editor/edit-panel/uml-editor/UMLEditor.d.ts +0 -1
  154. package/lib/components/editor/edit-panel/uml-editor/UMLEditor.d.ts.map +1 -1
  155. package/lib/components/editor/side-bar/CreateNewElementModal.d.ts +0 -1
  156. package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
  157. package/lib/components/editor/side-bar/Explorer.d.ts +0 -1
  158. package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
  159. package/lib/components/editor/side-bar/Explorer.js +15 -8
  160. package/lib/components/editor/side-bar/Explorer.js.map +1 -1
  161. package/lib/components/editor/side-bar/LocalChanges.d.ts +0 -1
  162. package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
  163. package/lib/components/editor/side-bar/ProjectOverview.d.ts +0 -1
  164. package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
  165. package/lib/components/editor/side-bar/SideBar.d.ts +0 -1
  166. package/lib/components/editor/side-bar/SideBar.d.ts.map +1 -1
  167. package/lib/components/editor/side-bar/WorkflowManager.d.ts +0 -1
  168. package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
  169. package/lib/components/editor/side-bar/WorkspaceReview.d.ts +0 -1
  170. package/lib/components/editor/side-bar/WorkspaceReview.d.ts.map +1 -1
  171. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts +0 -1
  172. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts.map +1 -1
  173. package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts +0 -1
  174. package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts.map +1 -1
  175. package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts +0 -1
  176. package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts.map +1 -1
  177. package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts +0 -1
  178. package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
  179. package/lib/components/project-viewer/ProjectViewer.d.ts.map +1 -1
  180. package/lib/components/project-viewer/ProjectViewer.js +5 -6
  181. package/lib/components/project-viewer/ProjectViewer.js.map +1 -1
  182. package/lib/components/shared/DiffView.d.ts +0 -1
  183. package/lib/components/shared/DiffView.d.ts.map +1 -1
  184. package/lib/components/shared/StudioLambdaEditor.d.ts +0 -1
  185. package/lib/components/shared/StudioLambdaEditor.d.ts.map +1 -1
  186. package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts +0 -1
  187. package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts.map +1 -1
  188. package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts +0 -1
  189. package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts.map +1 -1
  190. package/lib/components/workspace-setup/ProjectCreateModal.d.ts +0 -1
  191. package/lib/components/workspace-setup/ProjectCreateModal.d.ts.map +1 -1
  192. package/lib/index.css +2 -2
  193. package/lib/index.css.map +1 -1
  194. package/lib/index.d.ts +1 -1
  195. package/lib/index.d.ts.map +1 -1
  196. package/lib/index.js +1 -1
  197. package/lib/index.js.map +1 -1
  198. package/lib/package.json +5 -5
  199. package/lib/stores/DSLMapping_LegendStudioApplicationPlugin_Extension.d.ts +0 -18
  200. package/lib/stores/DSLMapping_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -1
  201. package/lib/stores/DSLService_LegendStudioApplicationPlugin_Extension.d.ts +0 -10
  202. package/lib/stores/DSLService_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -1
  203. package/lib/stores/EditorGraphState.d.ts.map +1 -1
  204. package/lib/stores/EditorGraphState.js +37 -9
  205. package/lib/stores/EditorGraphState.js.map +1 -1
  206. package/lib/stores/EditorStore.d.ts +2 -0
  207. package/lib/stores/EditorStore.d.ts.map +1 -1
  208. package/lib/stores/EditorStore.js +3 -0
  209. package/lib/stores/EditorStore.js.map +1 -1
  210. package/lib/stores/EmbeddedQueryBuilderState.d.ts +40 -0
  211. package/lib/stores/EmbeddedQueryBuilderState.d.ts.map +1 -0
  212. package/lib/stores/EmbeddedQueryBuilderState.js +80 -0
  213. package/lib/stores/EmbeddedQueryBuilderState.js.map +1 -0
  214. package/lib/stores/LegendStudioAppEvent.d.ts +2 -1
  215. package/lib/stores/LegendStudioAppEvent.d.ts.map +1 -1
  216. package/lib/stores/LegendStudioAppEvent.js +1 -0
  217. package/lib/stores/LegendStudioAppEvent.js.map +1 -1
  218. package/lib/stores/LegendStudioApplicationNavigationContext.d.ts +1 -0
  219. package/lib/stores/LegendStudioApplicationNavigationContext.d.ts.map +1 -1
  220. package/lib/stores/LegendStudioApplicationNavigationContext.js +1 -0
  221. package/lib/stores/LegendStudioApplicationNavigationContext.js.map +1 -1
  222. package/lib/stores/LegendStudioApplicationPlugin.d.ts +7 -7
  223. package/lib/stores/LegendStudioApplicationPlugin.d.ts.map +1 -1
  224. package/lib/stores/LegendStudioCodeSnippets.d.ts +2 -0
  225. package/lib/stores/LegendStudioCodeSnippets.d.ts.map +1 -1
  226. package/lib/stores/LegendStudioCodeSnippets.js +28 -0
  227. package/lib/stores/LegendStudioCodeSnippets.js.map +1 -1
  228. package/lib/stores/StoreRelational_LegendStudioApplicationPlugin_Extension.d.ts +13 -5
  229. package/lib/stores/StoreRelational_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -1
  230. package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts +11 -1
  231. package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
  232. package/lib/stores/editor-state/ProjectConfigurationEditorState.js +66 -1
  233. package/lib/stores/editor-state/ProjectConfigurationEditorState.js.map +1 -1
  234. package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.js +9 -9
  235. package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.js.map +1 -1
  236. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.d.ts +29 -0
  237. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.d.ts.map +1 -0
  238. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js +42 -0
  239. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js.map +1 -0
  240. package/lib/stores/shared/DnDUtil.js +1 -1
  241. package/lib/stores/shared/PackageTreeUtil.js +6 -6
  242. package/lib/stores/shared/PackageTreeUtil.js.map +1 -1
  243. package/package.json +13 -13
  244. package/src/application/LegendStudio.tsx +8 -2
  245. package/src/application/LegendStudioPluginManager.ts +2 -2
  246. package/src/components/DSLExternalFormat_LegendStudioApplicationPlugin.tsx +5 -5
  247. package/src/components/EditorComponentTestUtils.tsx +29 -23
  248. package/src/components/EmbeddedQueryBuilder.tsx +165 -0
  249. package/src/components/editor/Editor.tsx +77 -79
  250. package/src/components/editor/edit-panel/GrammarTextEditor.tsx +24 -2
  251. package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +2 -2
  252. package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +1 -0
  253. package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +88 -15
  254. package/src/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.tsx +93 -0
  255. package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +81 -16
  256. package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +170 -4
  257. package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +115 -20
  258. package/src/components/editor/edit-panel/uml-editor/ClassQueryBuilder.tsx +159 -0
  259. package/src/components/editor/side-bar/Explorer.tsx +20 -10
  260. package/src/components/project-viewer/ProjectViewer.tsx +36 -38
  261. package/src/index.ts +1 -1
  262. package/src/stores/DSLMapping_LegendStudioApplicationPlugin_Extension.ts +0 -27
  263. package/src/stores/DSLService_LegendStudioApplicationPlugin_Extension.ts +0 -14
  264. package/src/stores/EditorGraphState.ts +56 -11
  265. package/src/stores/EditorStore.ts +3 -0
  266. package/src/stores/EmbeddedQueryBuilderState.ts +105 -0
  267. package/src/stores/LegendStudioAppEvent.ts +1 -0
  268. package/src/stores/LegendStudioApplicationNavigationContext.ts +1 -0
  269. package/src/stores/LegendStudioApplicationPlugin.ts +7 -7
  270. package/src/stores/LegendStudioCodeSnippets.ts +34 -0
  271. package/src/stores/StoreRelational_LegendStudioApplicationPlugin_Extension.ts +19 -5
  272. package/src/stores/editor-state/ProjectConfigurationEditorState.ts +104 -1
  273. package/src/stores/editor-state/element-editor-state/connection/ConnectionEditorState.ts +9 -9
  274. package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.ts +58 -0
  275. package/src/stores/shared/DnDUtil.ts +1 -1
  276. package/src/stores/shared/PackageTreeUtil.ts +6 -6
  277. package/tsconfig.json +5 -0
@@ -38,13 +38,77 @@ import {
38
38
  UpdateProjectConfigurationCommand,
39
39
  } from '@finos/legend-server-sdlc';
40
40
  import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js';
41
- import { MASTER_SNAPSHOT_ALIAS, ProjectData } from '@finos/legend-server-depot';
41
+ import {
42
+ type ProjectVersionDependencies,
43
+ generateGAVCoordinates,
44
+ MASTER_SNAPSHOT_ALIAS,
45
+ ProjectData,
46
+ ProjectDependencyInfo,
47
+ ProjectDependencyCoordinates,
48
+ } from '@finos/legend-server-depot';
49
+ import { TAB_SIZE } from '@finos/legend-application';
42
50
 
43
51
  export enum CONFIGURATION_EDITOR_TAB {
44
52
  PROJECT_STRUCTURE = 'PROJECT_STRUCTURE',
45
53
  PROJECT_DEPENDENCIES = 'PROJECT_DEPENDENCIES',
46
54
  }
47
55
 
56
+ export enum DEPENDENCY_INFO_TYPE {
57
+ TREE = 'tree',
58
+ CONFLICTS = 'conflicts',
59
+ }
60
+
61
+ const getDependencyTreeString = (
62
+ dependant: ProjectVersionDependencies,
63
+ tab: string,
64
+ ): string => {
65
+ const prefix = tab + (dependant.dependencies.length ? '+-' : '\\-');
66
+ const gav = generateGAVCoordinates(
67
+ dependant.groupId,
68
+ dependant.artifactId,
69
+ dependant.versionId,
70
+ );
71
+ return `${prefix + gav}\n${dependant.dependencies
72
+ .map((e) => getDependencyTreeString(e, tab + ' '.repeat(TAB_SIZE)))
73
+ .join('')}`;
74
+ };
75
+
76
+ export const getDependencyTreeStringFromInfo = (
77
+ info: ProjectDependencyInfo,
78
+ ): string => info.tree.map((e) => getDependencyTreeString(e, '')).join('\n');
79
+
80
+ const getConflictPathString = (path: string): string => {
81
+ const seperator = '>';
82
+ const projects = path.split(seperator);
83
+ let result = '';
84
+ let currentTab = ' '.repeat(TAB_SIZE);
85
+ projects.forEach((p) => {
86
+ result += `${currentTab + p}\n`;
87
+ currentTab = currentTab + ' '.repeat(TAB_SIZE);
88
+ });
89
+ return result;
90
+ };
91
+
92
+ export const getConflictsString = (info: ProjectDependencyInfo): string =>
93
+ info.conflicts
94
+ .map((c) => {
95
+ const base = `project:\n${
96
+ ' '.repeat(TAB_SIZE) +
97
+ generateGAVCoordinates(c.groupId, c.artifactId, undefined)
98
+ }`;
99
+ const versions = `versions:\n${c.versions
100
+ .map((v) => ' '.repeat(TAB_SIZE) + v)
101
+ .join('\n')}`;
102
+ const paths = `paths:\n${c.conflictPaths
103
+ .map(
104
+ (p, idx) =>
105
+ `${' '.repeat(TAB_SIZE) + (idx + 1)}:\n${getConflictPathString(p)}`,
106
+ )
107
+ .join('')}`;
108
+ return `${base}\n${versions}\n${paths}`;
109
+ })
110
+ .join('\n\n');
111
+
48
112
  export class ProjectConfigurationEditorState extends EditorState {
49
113
  sdlcState: EditorSDLCState;
50
114
  originalProjectConfiguration?: ProjectConfiguration | undefined; // TODO: we might want to remove this when we do change detection for project configuration
@@ -54,6 +118,8 @@ export class ProjectConfigurationEditorState extends EditorState {
54
118
  projects = new Map<string, ProjectData>();
55
119
  queryHistory = new Set<string>();
56
120
  latestProjectStructureVersion: ProjectStructureVersion | undefined;
121
+ dependencyInfo: ProjectDependencyInfo | undefined;
122
+ dependencyInfoModalType: DEPENDENCY_INFO_TYPE | undefined;
57
123
  isUpdatingConfiguration = false;
58
124
  isQueryingProjects = false;
59
125
  associatedProjectsAndVersionsFetched = false;
@@ -74,15 +140,19 @@ export class ProjectConfigurationEditorState extends EditorState {
74
140
  associatedProjectsAndVersionsFetched: observable,
75
141
  isFetchingAssociatedProjectsAndVersions: observable,
76
142
  latestProjectStructureVersion: observable,
143
+ dependencyInfo: observable,
144
+ dependencyInfoModalType: observable,
77
145
  originalConfig: computed,
78
146
  setOriginalProjectConfiguration: action,
79
147
  setProjectConfiguration: action,
148
+ setDependencyInfoModal: action,
80
149
  setSelectedTab: action,
81
150
  fectchAssociatedProjectsAndVersions: flow,
82
151
  updateProjectConfiguration: flow,
83
152
  updateToLatestStructure: flow,
84
153
  updateConfigs: flow,
85
154
  fetchLatestProjectStructureVersion: flow,
155
+ fetchDependencyInfo: flow,
86
156
  });
87
157
 
88
158
  this.selectedTab = CONFIGURATION_EDITOR_TAB.PROJECT_STRUCTURE;
@@ -104,6 +174,10 @@ export class ProjectConfigurationEditorState extends EditorState {
104
174
  this.selectedTab = tab;
105
175
  }
106
176
 
177
+ setDependencyInfoModal(type: DEPENDENCY_INFO_TYPE | undefined): void {
178
+ this.dependencyInfoModalType = type;
179
+ }
180
+
107
181
  get headerName(): string {
108
182
  return 'config';
109
183
  }
@@ -171,6 +245,35 @@ export class ProjectConfigurationEditorState extends EditorState {
171
245
  }
172
246
  }
173
247
 
248
+ *fetchDependencyInfo(): GeneratorFn<void> {
249
+ try {
250
+ if (this.projectConfiguration?.projectDependencies) {
251
+ const dependencyCoordinates = (yield flowResult(
252
+ this.editorStore.graphState.buildProjectDependencyCoordinates(
253
+ this.projectConfiguration.projectDependencies,
254
+ ),
255
+ )) as ProjectDependencyCoordinates[];
256
+ const dependencyInfoRaw =
257
+ (yield this.editorStore.depotServerClient.analyzeDependencyTree(
258
+ dependencyCoordinates.map((e) =>
259
+ ProjectDependencyCoordinates.serialization.toJson(e),
260
+ ),
261
+ )) as PlainObject<ProjectDependencyInfo>;
262
+ this.dependencyInfo =
263
+ ProjectDependencyInfo.serialization.fromJson(dependencyInfoRaw);
264
+ } else {
265
+ this.dependencyInfo = new ProjectDependencyInfo();
266
+ }
267
+ } catch (error) {
268
+ assertErrorThrown(error);
269
+ this.dependencyInfo = undefined;
270
+ this.editorStore.applicationStore.log.error(
271
+ LogEvent.create(LEGEND_STUDIO_APP_EVENT.DEPOT_MANAGER_FAILURE),
272
+ error,
273
+ );
274
+ }
275
+ }
276
+
174
277
  *updateProjectConfiguration(
175
278
  updateConfigurationCommand: UpdateProjectConfigurationCommand,
176
279
  ): GeneratorFn<void> {
@@ -137,7 +137,7 @@ export class RelationalDatabaseConnectionValueState extends ConnectionValueState
137
137
  }
138
138
 
139
139
  selectPostProcessor = (postProcessor: PostProcessor | undefined): void => {
140
- if (!this.postProcessorState && postProcessor) {
140
+ if (postProcessor) {
141
141
  if (postProcessor instanceof MapperPostProcessor) {
142
142
  this.postProcessorState = new MapperPostProcessorEditorState(
143
143
  postProcessor,
@@ -196,17 +196,17 @@ export class RelationalDatabaseConnectionValueState extends ConnectionValueState
196
196
  } else if (spec instanceof RedshiftDatasourceSpecification) {
197
197
  return CORE_DATASOURCE_SPEC_TYPE.REDSHIFT;
198
198
  }
199
- const extraDatasourceSpecificationTypeGetters =
199
+ const extraDatasourceSpecificationClassifiers =
200
200
  this.editorStore.pluginManager
201
201
  .getApplicationPlugins()
202
202
  .flatMap(
203
203
  (plugin) =>
204
204
  (
205
205
  plugin as StoreRelational_LegendStudioApplicationPlugin_Extension
206
- ).getExtraDatasourceSpecificationTypeGetters?.() ?? [],
206
+ ).getExtraDatasourceSpecificationClassifiers?.() ?? [],
207
207
  );
208
- for (const typeGetter of extraDatasourceSpecificationTypeGetters) {
209
- const type = typeGetter(spec);
208
+ for (const classifier of extraDatasourceSpecificationClassifiers) {
209
+ const type = classifier(spec);
210
210
  if (type) {
211
211
  return type;
212
212
  }
@@ -315,17 +315,17 @@ export class RelationalDatabaseConnectionValueState extends ConnectionValueState
315
315
  return CORE_AUTHENTICATION_STRATEGY_TYPE.MIDDLE_TIER_USERNAME_PASSWORD;
316
316
  }
317
317
 
318
- const extraAuthenticationStrategyTypeGetters =
318
+ const extraAuthenticationStrategyClassifiers =
319
319
  this.editorStore.pluginManager
320
320
  .getApplicationPlugins()
321
321
  .flatMap(
322
322
  (plugin) =>
323
323
  (
324
324
  plugin as StoreRelational_LegendStudioApplicationPlugin_Extension
325
- ).getExtraAuthenticationStrategyTypeGetters?.() ?? [],
325
+ ).getExtraAuthenticationStrategyClassifiers?.() ?? [],
326
326
  );
327
- for (const typeGetter of extraAuthenticationStrategyTypeGetters) {
328
- const type = typeGetter(auth);
327
+ for (const classifier of extraAuthenticationStrategyClassifiers) {
328
+ const type = classifier(auth);
329
329
  if (type) {
330
330
  return type;
331
331
  }
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import type { GenericLegendApplicationStore } from '@finos/legend-application';
18
+ import { QueryBuilderState } from '@finos/legend-query-builder';
19
+ import type { GraphManagerState, Mapping } from '@finos/legend-graph';
20
+ import { renderMappingExecutionQueryBuilderSetupPanelContent } from '../../../../components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.js';
21
+
22
+ export class MappingExecutionQueryBuilderState extends QueryBuilderState {
23
+ readonly executionMapping: Mapping;
24
+
25
+ override TEMPORARY__setupPanelContentRenderer = (): React.ReactNode =>
26
+ renderMappingExecutionQueryBuilderSetupPanelContent(this);
27
+
28
+ constructor(
29
+ mapping: Mapping,
30
+ applicationStore: GenericLegendApplicationStore,
31
+ graphManagerState: GraphManagerState,
32
+ ) {
33
+ super(applicationStore, graphManagerState);
34
+
35
+ this.executionMapping = mapping;
36
+ this.mapping = mapping;
37
+ }
38
+
39
+ override get isMappingReadOnly(): boolean {
40
+ return true;
41
+ }
42
+
43
+ override get isRuntimeReadOnly(): boolean {
44
+ return true;
45
+ }
46
+
47
+ override get isParameterSupportDisabled(): boolean {
48
+ return true;
49
+ }
50
+
51
+ override get isResultPanelHidden(): boolean {
52
+ return true;
53
+ }
54
+
55
+ override get sideBarClassName(): string | undefined {
56
+ return 'query-builder__setup__mapping-execution';
57
+ }
58
+ }
@@ -51,7 +51,7 @@ export enum CORE_DND_TYPE {
51
51
  MAPPING_EXPLORER_ASSOCIATION_MAPPING = 'MAPPING_EXPLORER_ASSOCIATION_MAPPING',
52
52
  }
53
53
 
54
- // React DnD uses Redux under the hood and also it champions the use of plain object over class instance
54
+ // react-dnd uses Redux under the hood and also it champions the use of plain object over class instance
55
55
  // There is some practical reason for that (due to the potential need to serialize the item object), but as for now
56
56
  // this way of creating the drag itm is still very convenient for us since we can do direct type comparison rather than having
57
57
  // to use element full path, we might need follow the following threads if there are any breaking changes
@@ -79,18 +79,18 @@ const getElementProjectExplorerDnDType = (
79
79
  } else if (element instanceof DataElement) {
80
80
  return CORE_DND_TYPE.PROJECT_EXPLORER_DATA;
81
81
  }
82
- const extraElementProjectExplorerDnDTypeGetters = editorStore.pluginManager
82
+ const extraDragElementClassifiers = editorStore.pluginManager
83
83
  .getApplicationPlugins()
84
84
  .flatMap(
85
85
  (plugin) =>
86
86
  (
87
87
  plugin as DSL_LegendStudioApplicationPlugin_Extension
88
- ).getExtraElementProjectExplorerDnDTypeGetters?.() ?? [],
88
+ ).getExtraDragElementClassifiers?.() ?? [],
89
89
  );
90
- for (const dndTypeGetter of extraElementProjectExplorerDnDTypeGetters) {
91
- const dndType = dndTypeGetter(element);
92
- if (dndType) {
93
- return dndType;
90
+ for (const classifier of extraDragElementClassifiers) {
91
+ const dragType = classifier(element);
92
+ if (dragType) {
93
+ return dragType;
94
94
  }
95
95
  }
96
96
  return CORE_DND_TYPE.NONE;
package/tsconfig.json CHANGED
@@ -51,6 +51,7 @@
51
51
  "./src/stores/EditorSDLCState.ts",
52
52
  "./src/stores/EditorStore.ts",
53
53
  "./src/stores/EditorStoreTestUtils.ts",
54
+ "./src/stores/EmbeddedQueryBuilderState.ts",
54
55
  "./src/stores/ExplorerTreeState.ts",
55
56
  "./src/stores/LegendStudioAppEvent.ts",
56
57
  "./src/stores/LegendStudioApplicationNavigationContext.ts",
@@ -94,6 +95,7 @@
94
95
  "./src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts",
95
96
  "./src/stores/editor-state/element-editor-state/mapping/MappingElementDecorator.ts",
96
97
  "./src/stores/editor-state/element-editor-state/mapping/MappingElementState.ts",
98
+ "./src/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.ts",
97
99
  "./src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts",
98
100
  "./src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts",
99
101
  "./src/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.ts",
@@ -145,6 +147,7 @@
145
147
  "./src/components/Core_LegendStudioApplicationPlugin.tsx",
146
148
  "./src/components/DSLExternalFormat_LegendStudioApplicationPlugin.tsx",
147
149
  "./src/components/EditorComponentTestUtils.tsx",
150
+ "./src/components/EmbeddedQueryBuilder.tsx",
148
151
  "./src/components/LegendStudioAppInfo.tsx",
149
152
  "./src/components/LegendStudioApplication.tsx",
150
153
  "./src/components/LegendStudioBaseStoreProvider.tsx",
@@ -191,6 +194,7 @@
191
194
  "./src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.tsx",
192
195
  "./src/components/editor/edit-panel/mapping-editor/MappingEditor.tsx",
193
196
  "./src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx",
197
+ "./src/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.tsx",
194
198
  "./src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx",
195
199
  "./src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx",
196
200
  "./src/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.tsx",
@@ -212,6 +216,7 @@
212
216
  "./src/components/editor/edit-panel/testable/TestAssertionEditor.tsx",
213
217
  "./src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx",
214
218
  "./src/components/editor/edit-panel/uml-editor/ClassEditor.tsx",
219
+ "./src/components/editor/edit-panel/uml-editor/ClassQueryBuilder.tsx",
215
220
  "./src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx",
216
221
  "./src/components/editor/edit-panel/uml-editor/ProfileEditor.tsx",
217
222
  "./src/components/editor/edit-panel/uml-editor/PropertyEditor.tsx",