@finos/legend-application-studio 15.1.0 → 16.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 (362) 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 +1 -1
  11. package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
  12. package/lib/components/EditorComponentTestUtils.js +19 -23
  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/FunctionEditor.js +3 -3
  38. package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
  39. package/lib/components/editor/edit-panel/GenerationSpecificationEditor.d.ts +0 -1
  40. package/lib/components/editor/edit-panel/GenerationSpecificationEditor.d.ts.map +1 -1
  41. package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
  42. package/lib/components/editor/edit-panel/GrammarTextEditor.js +15 -3
  43. package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
  44. package/lib/components/editor/edit-panel/ModelImporter.d.ts +0 -1
  45. package/lib/components/editor/edit-panel/ModelImporter.d.ts.map +1 -1
  46. package/lib/components/editor/edit-panel/RuntimeEditor.d.ts +0 -1
  47. package/lib/components/editor/edit-panel/RuntimeEditor.d.ts.map +1 -1
  48. package/lib/components/editor/edit-panel/UnsupportedElementEditor.d.ts +0 -1
  49. package/lib/components/editor/edit-panel/UnsupportedElementEditor.d.ts.map +1 -1
  50. package/lib/components/editor/edit-panel/UnsupportedElementEditor.js +1 -1
  51. package/lib/components/editor/edit-panel/UnsupportedElementEditor.js.map +1 -1
  52. package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.d.ts +0 -1
  53. package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.d.ts.map +1 -1
  54. package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.js +2 -2
  55. package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.js.map +1 -1
  56. package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.d.ts +0 -1
  57. package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.d.ts.map +1 -1
  58. package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js +1 -1
  59. package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js.map +1 -1
  60. package/lib/{stores/editor-state/element-editor-state/mapping/relational → components/editor/edit-panel/connection-editor}/DatabaseEditorHelper.d.ts +0 -0
  61. package/lib/components/editor/edit-panel/connection-editor/DatabaseEditorHelper.d.ts.map +1 -0
  62. package/lib/{stores/editor-state/element-editor-state/mapping/relational → components/editor/edit-panel/connection-editor}/DatabaseEditorHelper.js +0 -0
  63. package/lib/components/editor/edit-panel/connection-editor/DatabaseEditorHelper.js.map +1 -0
  64. package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.d.ts +0 -1
  65. package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.d.ts.map +1 -1
  66. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts +3 -13
  67. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
  68. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js +103 -41
  69. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
  70. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.d.ts +25 -0
  71. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.d.ts.map +1 -0
  72. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js +77 -0
  73. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js.map +1 -0
  74. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.d.ts +0 -1
  75. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.d.ts.map +1 -1
  76. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.d.ts.map +1 -1
  77. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js +1 -1
  78. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js.map +1 -1
  79. package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts +0 -1
  80. package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
  81. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts +0 -1
  82. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
  83. package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.d.ts +0 -1
  84. package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.d.ts.map +1 -1
  85. package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.d.ts +0 -1
  86. package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.d.ts.map +1 -1
  87. package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.d.ts +0 -1
  88. package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.d.ts.map +1 -1
  89. package/lib/components/editor/edit-panel/external-format-editor/BindingElementEditor.d.ts +0 -1
  90. package/lib/components/editor/edit-panel/external-format-editor/BindingElementEditor.d.ts.map +1 -1
  91. package/lib/components/editor/edit-panel/external-format-editor/ExternalFormatConnectionEditor.d.ts +0 -1
  92. package/lib/components/editor/edit-panel/external-format-editor/ExternalFormatConnectionEditor.d.ts.map +1 -1
  93. package/lib/components/editor/edit-panel/external-format-editor/NewSchemaSetDriver.d.ts +0 -1
  94. package/lib/components/editor/edit-panel/external-format-editor/NewSchemaSetDriver.d.ts.map +1 -1
  95. package/lib/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.d.ts +0 -1
  96. package/lib/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.d.ts.map +1 -1
  97. package/lib/components/editor/edit-panel/external-format-editor/SchemaSetModelGenerationEditor.d.ts +0 -1
  98. package/lib/components/editor/edit-panel/external-format-editor/SchemaSetModelGenerationEditor.d.ts.map +1 -1
  99. package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts +0 -1
  100. package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts.map +1 -1
  101. package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.d.ts +0 -1
  102. package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.d.ts.map +1 -1
  103. package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js +1 -1
  104. package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js.map +1 -1
  105. package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.d.ts +0 -1
  106. package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.d.ts.map +1 -1
  107. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts +0 -1
  108. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts.map +1 -1
  109. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js +2 -2
  110. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js.map +1 -1
  111. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts +0 -1
  112. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts.map +1 -1
  113. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.js +2 -5
  114. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.js.map +1 -1
  115. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts +0 -1
  116. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
  117. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +40 -8
  118. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
  119. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.d.ts +18 -0
  120. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.d.ts.map +1 -0
  121. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.js +38 -0
  122. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.js.map +1 -0
  123. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts +0 -1
  124. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
  125. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js +40 -8
  126. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
  127. package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts +0 -1
  128. package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
  129. package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js +4 -4
  130. package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js.map +1 -1
  131. package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.d.ts +0 -1
  132. package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.d.ts.map +1 -1
  133. package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts +0 -1
  134. package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts.map +1 -1
  135. package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.d.ts +0 -1
  136. package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.d.ts.map +1 -1
  137. package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts +0 -1
  138. package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts.map +1 -1
  139. package/lib/components/editor/edit-panel/mapping-editor/relational/TableOrViewSourceTree.js +1 -1
  140. package/lib/components/editor/edit-panel/mapping-editor/relational/TableOrViewSourceTree.js.map +1 -1
  141. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts +0 -1
  142. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts.map +1 -1
  143. package/lib/components/editor/edit-panel/service-editor/NewServiceModal.d.ts +0 -1
  144. package/lib/components/editor/edit-panel/service-editor/NewServiceModal.d.ts.map +1 -1
  145. package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts +0 -1
  146. package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts.map +1 -1
  147. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts +0 -1
  148. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts.map +1 -1
  149. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js +2 -1
  150. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js.map +1 -1
  151. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts +0 -1
  152. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
  153. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +58 -10
  154. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
  155. package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts +0 -1
  156. package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
  157. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.d.ts +0 -1
  158. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.d.ts.map +1 -1
  159. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js +7 -5
  160. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
  161. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.d.ts +0 -1
  162. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.d.ts.map +1 -1
  163. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts +0 -1
  164. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
  165. package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts +0 -1
  166. package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts.map +1 -1
  167. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts +0 -1
  168. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts.map +1 -1
  169. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js +2 -2
  170. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
  171. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts +0 -1
  172. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts.map +1 -1
  173. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js +9 -7
  174. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js.map +1 -1
  175. package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.d.ts +19 -0
  176. package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.d.ts.map +1 -0
  177. package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js +80 -0
  178. package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js.map +1 -0
  179. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts +0 -1
  180. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts.map +1 -1
  181. package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.d.ts +0 -1
  182. package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.d.ts.map +1 -1
  183. package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.d.ts +0 -1
  184. package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.d.ts.map +1 -1
  185. package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.d.ts.map +1 -1
  186. package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js +4 -1
  187. package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js.map +1 -1
  188. package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.d.ts.map +1 -1
  189. package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js +4 -1
  190. package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js.map +1 -1
  191. package/lib/components/editor/edit-panel/uml-editor/UMLEditor.d.ts +0 -1
  192. package/lib/components/editor/edit-panel/uml-editor/UMLEditor.d.ts.map +1 -1
  193. package/lib/components/editor/side-bar/CreateNewElementModal.d.ts +0 -1
  194. package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
  195. package/lib/components/editor/side-bar/CreateNewElementModal.js +7 -4
  196. package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
  197. package/lib/components/editor/side-bar/Explorer.d.ts +0 -1
  198. package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
  199. package/lib/components/editor/side-bar/Explorer.js +15 -8
  200. package/lib/components/editor/side-bar/Explorer.js.map +1 -1
  201. package/lib/components/editor/side-bar/LocalChanges.d.ts +0 -1
  202. package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
  203. package/lib/components/editor/side-bar/ProjectOverview.d.ts +0 -1
  204. package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
  205. package/lib/components/editor/side-bar/SideBar.d.ts +0 -1
  206. package/lib/components/editor/side-bar/SideBar.d.ts.map +1 -1
  207. package/lib/components/editor/side-bar/WorkflowManager.d.ts +0 -1
  208. package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
  209. package/lib/components/editor/side-bar/WorkspaceReview.d.ts +0 -1
  210. package/lib/components/editor/side-bar/WorkspaceReview.d.ts.map +1 -1
  211. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts +0 -1
  212. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts.map +1 -1
  213. package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts +0 -1
  214. package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts.map +1 -1
  215. package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts +0 -1
  216. package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts.map +1 -1
  217. package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts +0 -1
  218. package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
  219. package/lib/components/editor/side-bar/testable/GlobalTestRunner.js +8 -2
  220. package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
  221. package/lib/components/project-viewer/ProjectViewer.d.ts.map +1 -1
  222. package/lib/components/project-viewer/ProjectViewer.js +5 -6
  223. package/lib/components/project-viewer/ProjectViewer.js.map +1 -1
  224. package/lib/components/shared/DiffView.d.ts +0 -1
  225. package/lib/components/shared/DiffView.d.ts.map +1 -1
  226. package/lib/components/shared/StudioLambdaEditor.d.ts +0 -1
  227. package/lib/components/shared/StudioLambdaEditor.d.ts.map +1 -1
  228. package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts +0 -1
  229. package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts.map +1 -1
  230. package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts +0 -1
  231. package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts.map +1 -1
  232. package/lib/components/workspace-setup/ProjectCreateModal.d.ts +0 -1
  233. package/lib/components/workspace-setup/ProjectCreateModal.d.ts.map +1 -1
  234. package/lib/index.css +2 -2
  235. package/lib/index.css.map +1 -1
  236. package/lib/index.d.ts +4 -3
  237. package/lib/index.d.ts.map +1 -1
  238. package/lib/index.js +4 -3
  239. package/lib/index.js.map +1 -1
  240. package/lib/package.json +9 -9
  241. package/lib/stores/DSLMapping_LegendStudioApplicationPlugin_Extension.d.ts +0 -18
  242. package/lib/stores/DSLMapping_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -1
  243. package/lib/stores/DSLService_LegendStudioApplicationPlugin_Extension.d.ts +0 -10
  244. package/lib/stores/DSLService_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -1
  245. package/lib/stores/EditorGraphState.js +1 -1
  246. package/lib/stores/EditorStore.d.ts +3 -9
  247. package/lib/stores/EditorStore.d.ts.map +1 -1
  248. package/lib/stores/EditorStore.js +6 -54
  249. package/lib/stores/EditorStore.js.map +1 -1
  250. package/lib/stores/EmbeddedQueryBuilderState.d.ts +40 -0
  251. package/lib/stores/EmbeddedQueryBuilderState.d.ts.map +1 -0
  252. package/lib/stores/EmbeddedQueryBuilderState.js +80 -0
  253. package/lib/stores/EmbeddedQueryBuilderState.js.map +1 -0
  254. package/lib/stores/LegendStudioApplicationNavigationContext.d.ts +1 -0
  255. package/lib/stores/LegendStudioApplicationNavigationContext.d.ts.map +1 -1
  256. package/lib/stores/LegendStudioApplicationNavigationContext.js +1 -0
  257. package/lib/stores/LegendStudioApplicationNavigationContext.js.map +1 -1
  258. package/lib/stores/LegendStudioApplicationPlugin.d.ts +7 -7
  259. package/lib/stores/LegendStudioApplicationPlugin.d.ts.map +1 -1
  260. package/lib/stores/LegendStudioCodeSnippets.d.ts +2 -0
  261. package/lib/stores/LegendStudioCodeSnippets.d.ts.map +1 -1
  262. package/lib/stores/LegendStudioCodeSnippets.js +28 -0
  263. package/lib/stores/LegendStudioCodeSnippets.js.map +1 -1
  264. package/lib/stores/StoreRelational_LegendStudioApplicationPlugin_Extension.d.ts +41 -6
  265. package/lib/stores/StoreRelational_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -1
  266. package/lib/stores/editor/NewElementState.d.ts +1 -1
  267. package/lib/stores/editor/NewElementState.d.ts.map +1 -1
  268. package/lib/stores/editor/NewElementState.js +5 -3
  269. package/lib/stores/editor/NewElementState.js.map +1 -1
  270. package/lib/stores/editor-state/ModelImporterState.d.ts.map +1 -1
  271. package/lib/stores/editor-state/ModelImporterState.js +10 -6
  272. package/lib/stores/editor-state/ModelImporterState.js.map +1 -1
  273. package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.d.ts +9 -2
  274. package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.d.ts.map +1 -1
  275. package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.js +40 -10
  276. package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.js.map +1 -1
  277. package/lib/stores/editor-state/element-editor-state/connection/PostProcessorEditorState.d.ts +30 -0
  278. package/lib/stores/editor-state/element-editor-state/connection/PostProcessorEditorState.d.ts.map +1 -0
  279. package/lib/stores/editor-state/element-editor-state/connection/PostProcessorEditorState.js +49 -0
  280. package/lib/stores/editor-state/element-editor-state/connection/PostProcessorEditorState.js.map +1 -0
  281. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.d.ts +29 -0
  282. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.d.ts.map +1 -0
  283. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js +42 -0
  284. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js.map +1 -0
  285. package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js +1 -1
  286. package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
  287. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.d.ts +2 -1
  288. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.d.ts.map +1 -1
  289. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js +6 -4
  290. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
  291. package/lib/stores/graphModifier/StoreRelational_GraphModifierHelper.d.ts +10 -1
  292. package/lib/stores/graphModifier/StoreRelational_GraphModifierHelper.d.ts.map +1 -1
  293. package/lib/stores/graphModifier/StoreRelational_GraphModifierHelper.js +27 -1
  294. package/lib/stores/graphModifier/StoreRelational_GraphModifierHelper.js.map +1 -1
  295. package/lib/stores/shared/DnDUtil.js +1 -1
  296. package/lib/stores/shared/PackageTreeUtil.js +6 -6
  297. package/lib/stores/shared/PackageTreeUtil.js.map +1 -1
  298. package/lib/stores/sidebar-state/testable/GlobalTestRunnerState.d.ts +1 -3
  299. package/lib/stores/sidebar-state/testable/GlobalTestRunnerState.d.ts.map +1 -1
  300. package/lib/stores/sidebar-state/testable/GlobalTestRunnerState.js +1 -4
  301. package/lib/stores/sidebar-state/testable/GlobalTestRunnerState.js.map +1 -1
  302. package/package.json +17 -17
  303. package/src/application/LegendStudio.tsx +8 -2
  304. package/src/application/LegendStudioPluginManager.ts +2 -2
  305. package/src/components/DSLExternalFormat_LegendStudioApplicationPlugin.tsx +5 -5
  306. package/src/components/EditorComponentTestUtils.tsx +20 -35
  307. package/src/components/EmbeddedQueryBuilder.tsx +165 -0
  308. package/src/components/editor/Editor.tsx +77 -79
  309. package/src/components/editor/edit-panel/FunctionEditor.tsx +9 -2
  310. package/src/components/editor/edit-panel/GrammarTextEditor.tsx +24 -2
  311. package/src/components/editor/edit-panel/UnsupportedElementEditor.tsx +1 -1
  312. package/src/components/editor/edit-panel/connection-editor/ConnectionEditor.tsx +6 -2
  313. package/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx +1 -1
  314. package/src/{stores/editor-state/element-editor-state/mapping/relational → components/editor/edit-panel/connection-editor}/DatabaseEditorHelper.tsx +0 -0
  315. package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +371 -172
  316. package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +279 -0
  317. package/src/components/editor/edit-panel/data-editor/EmbeddedDataEditor.tsx +2 -1
  318. package/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx +5 -1
  319. package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx +2 -2
  320. package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.tsx +2 -9
  321. package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +88 -15
  322. package/src/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.tsx +93 -0
  323. package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +81 -16
  324. package/src/components/editor/edit-panel/mapping-editor/NewMappingElementModal.tsx +4 -3
  325. package/src/components/editor/edit-panel/mapping-editor/relational/TableOrViewSourceTree.tsx +1 -1
  326. package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +6 -2
  327. package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +115 -20
  328. package/src/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.tsx +12 -5
  329. package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +3 -1
  330. package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +21 -12
  331. package/src/components/editor/edit-panel/uml-editor/ClassQueryBuilder.tsx +159 -0
  332. package/src/components/editor/edit-panel/uml-editor/StereotypeSelector.tsx +7 -4
  333. package/src/components/editor/edit-panel/uml-editor/TaggedValueEditor.tsx +7 -4
  334. package/src/components/editor/side-bar/CreateNewElementModal.tsx +9 -3
  335. package/src/components/editor/side-bar/Explorer.tsx +20 -10
  336. package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +13 -1
  337. package/src/components/project-viewer/ProjectViewer.tsx +36 -38
  338. package/src/index.ts +7 -3
  339. package/src/stores/DSLMapping_LegendStudioApplicationPlugin_Extension.ts +0 -27
  340. package/src/stores/DSLService_LegendStudioApplicationPlugin_Extension.ts +0 -14
  341. package/src/stores/EditorGraphState.ts +1 -1
  342. package/src/stores/EditorStore.ts +5 -81
  343. package/src/stores/EmbeddedQueryBuilderState.ts +105 -0
  344. package/src/stores/LegendStudioApplicationNavigationContext.ts +1 -0
  345. package/src/stores/LegendStudioApplicationPlugin.ts +7 -7
  346. package/src/stores/LegendStudioCodeSnippets.ts +34 -0
  347. package/src/stores/StoreRelational_LegendStudioApplicationPlugin_Extension.ts +74 -5
  348. package/src/stores/editor/NewElementState.ts +8 -7
  349. package/src/stores/editor-state/ModelImporterState.ts +15 -11
  350. package/src/stores/editor-state/element-editor-state/connection/ConnectionEditorState.ts +55 -9
  351. package/src/stores/editor-state/element-editor-state/connection/PostProcessorEditorState.ts +73 -0
  352. package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.ts +58 -0
  353. package/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +1 -1
  354. package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +14 -4
  355. package/src/stores/graphModifier/StoreRelational_GraphModifierHelper.ts +64 -0
  356. package/src/stores/shared/DnDUtil.ts +1 -1
  357. package/src/stores/shared/PackageTreeUtil.ts +6 -6
  358. package/src/stores/sidebar-state/testable/GlobalTestRunnerState.ts +2 -9
  359. package/tsconfig.json +10 -3
  360. package/tsconfig.package.json +38 -0
  361. package/lib/stores/editor-state/element-editor-state/mapping/relational/DatabaseEditorHelper.d.ts.map +0 -1
  362. package/lib/stores/editor-state/element-editor-state/mapping/relational/DatabaseEditorHelper.js.map +0 -1
@@ -16,14 +16,12 @@
16
16
  import { RunTestsTestableInput, TestSuite, AtomicTest, AtomicTestId, TestError, TestFailed, TestPassed, AssertPass, AssertFail, PackageableElement, getNullableIDFromTestable, MultiExecutionServiceTestResult, } from '@finos/legend-graph';
17
17
  import { assertErrorThrown, isNonNullable, ActionState, uuid, assertTrue, guaranteeNonNullable, UnsupportedOperationError, filterByType, } from '@finos/legend-shared';
18
18
  import { action, flow, makeObservable, observable } from 'mobx';
19
- import { getElementTypeIcon } from '../../../components/shared/ElementIconUtils.js';
20
19
  export const getTestableMetadata = (testable, editorStore, extraTestableMetadataGetters) => {
21
20
  if (testable instanceof PackageableElement) {
22
21
  return {
23
- testable: testable,
22
+ testable,
24
23
  id: getNullableIDFromTestable(testable, editorStore.graphManagerState.graph, editorStore.graphManagerState.pluginManager.getPureGraphManagerPlugins()) ?? uuid(),
25
24
  name: testable.name,
26
- icon: getElementTypeIcon(editorStore, editorStore.graphState.getPackageableElementType(testable)),
27
25
  };
28
26
  }
29
27
  const extraTestables = extraTestableMetadataGetters
@@ -33,7 +31,6 @@ export const getTestableMetadata = (testable, editorStore, extraTestableMetadata
33
31
  testable,
34
32
  id: uuid(),
35
33
  name: '(unknown)',
36
- icon: null,
37
34
  });
38
35
  };
39
36
  // TreeData
@@ -1 +1 @@
1
- {"version":3,"file":"GlobalTestRunnerState.js","sourceRoot":"","sources":["../../../../src/stores/sidebar-state/testable/GlobalTestRunnerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAML,qBAAqB,EACrB,SAAS,EACT,UAAU,EACV,YAAY,EACZ,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,yBAAyB,EACzB,+BAA+B,GAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,IAAI,EACJ,UAAU,EACV,oBAAoB,EACpB,yBAAyB,EACzB,YAAY,GACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAgBpF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,QAAkB,EAClB,WAAwB,EACxB,4BAAsD,EACpC,EAAE;IACpB,IAAI,QAAQ,YAAY,kBAAkB,EAAE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AAC,QAAQ,CAAC,CAC9D,CAAC;aACH;iBAAM;gBACL,MAAM,GAAG;oBACP,IAAI,qBAAqB,CAAC,aAAa,CAAC,gBAAgB,CAAC,QAAQ,CAAC;iBACnE,CAAC;aACH;YACD,MAAM,WAAW,GACf,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,YAAY,CAAC,QAAQ,CAC7D,MAAM,EACN,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,CACzC,CAAiB,CAAC;YACrB,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;YAChC,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC;SAChC;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YACrD,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;SAC5B;IACH,CAAC;IAED,aAAa,CAAC,WAAyB;QACrC,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;YACjC,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CACvC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,KAAK,UAAU,CAAC,QAAQ,CACrE,CAAC;YACF,IAAI,aAAa,EAAE;gBACjB,aAAa,CAAC,oBAAoB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;aACtD;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"GlobalTestRunnerState.js","sourceRoot":"","sources":["../../../../src/stores/sidebar-state/testable/GlobalTestRunnerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAML,qBAAqB,EACrB,SAAS,EACT,UAAU,EACV,YAAY,EACZ,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU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I,CAAC,CAAC;aACtD;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application-studio",
3
- "version": "15.1.0",
3
+ "version": "16.0.0",
4
4
  "description": "Legend Studio application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -44,18 +44,19 @@
44
44
  "test:watch": "jest --watch"
45
45
  },
46
46
  "dependencies": {
47
- "@finos/legend-application": "7.1.6",
48
- "@finos/legend-art": "3.0.4",
49
- "@finos/legend-graph": "14.0.6",
50
- "@finos/legend-server-depot": "3.0.9",
51
- "@finos/legend-server-sdlc": "4.0.12",
52
- "@finos/legend-shared": "6.0.4",
53
- "@finos/legend-storage": "3.0.8",
47
+ "@finos/legend-application": "7.2.0",
48
+ "@finos/legend-art": "3.2.0",
49
+ "@finos/legend-graph": "15.0.0",
50
+ "@finos/legend-query-builder": "0.0.1",
51
+ "@finos/legend-server-depot": "3.0.11",
52
+ "@finos/legend-server-sdlc": "4.0.14",
53
+ "@finos/legend-shared": "6.1.1",
54
+ "@finos/legend-storage": "3.0.10",
54
55
  "@testing-library/react": "13.4.0",
55
- "@types/react": "18.0.18",
56
+ "@types/react": "18.0.20",
56
57
  "@types/react-dom": "18.0.6",
57
58
  "@types/react-router-dom": "5.3.3",
58
- "date-fns": "2.29.2",
59
+ "date-fns": "2.29.3",
59
60
  "history": "5.3.0",
60
61
  "mobx": "6.6.2",
61
62
  "mobx-react-lite": "3.4.0",
@@ -64,7 +65,6 @@
64
65
  "node-diff3": "3.1.2",
65
66
  "react": "18.2.0",
66
67
  "react-dnd": "16.0.1",
67
- "react-dnd-html5-backend": "16.0.1",
68
68
  "react-dom": "18.2.0",
69
69
  "react-hotkeys": "2.0.0",
70
70
  "react-resize-detector": "7.1.2",
@@ -73,15 +73,15 @@
73
73
  "serializr": "2.0.5"
74
74
  },
75
75
  "devDependencies": {
76
- "@finos/legend-dev-utils": "2.0.14",
77
- "@jest/globals": "29.0.2",
76
+ "@finos/legend-dev-utils": "2.0.16",
77
+ "@jest/globals": "29.0.3",
78
78
  "cross-env": "7.0.3",
79
- "eslint": "8.23.0",
80
- "jest": "29.0.2",
79
+ "eslint": "8.23.1",
80
+ "jest": "29.0.3",
81
81
  "npm-run-all": "4.1.5",
82
82
  "rimraf": "3.0.2",
83
- "sass": "1.54.8",
84
- "typescript": "4.8.2"
83
+ "sass": "1.54.9",
84
+ "typescript": "4.8.3"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "react": "^18.0.0"
@@ -28,19 +28,24 @@ import {
28
28
  WebApplicationNavigatorProvider,
29
29
  type LegendApplicationConfigurationInput,
30
30
  } from '@finos/legend-application';
31
- import { CorePureGraphManagerPlugin } from '@finos/legend-graph';
31
+ import { Core_PureGraphManagerPlugin } from '@finos/legend-graph';
32
32
  import { getRootElement } from '@finos/legend-art';
33
33
  import {
34
34
  type LegendStudioApplicationConfigurationData,
35
35
  LegendStudioApplicationConfig,
36
36
  } from './LegendStudioApplicationConfig.js';
37
37
  import { Core_LegendStudioApplicationPlugin } from '../components/Core_LegendStudioApplicationPlugin.js';
38
+ import {
39
+ QueryBuilder_GraphManagerPreset,
40
+ setupQueryBuilderUILibrary,
41
+ } from '@finos/legend-query-builder';
38
42
 
39
43
  const setupLegendStudioUILibrary = async (
40
44
  pluginManager: LegendStudioPluginManager,
41
45
  logger: LegendApplicationLogger,
42
46
  ): Promise<void> => {
43
47
  await setupLegendApplicationUILibrary(pluginManager, logger);
48
+ await setupQueryBuilderUILibrary();
44
49
 
45
50
  configureReactHotkeys({
46
51
  // By default, `react-hotkeys` will avoid capturing keys from input tags like <input>, <textarea>, <select>
@@ -56,8 +61,9 @@ export class LegendStudio extends LegendApplication {
56
61
 
57
62
  static create(): LegendStudio {
58
63
  const application = new LegendStudio(LegendStudioPluginManager.create());
64
+ application.withBasePresets([new QueryBuilder_GraphManagerPreset()]);
59
65
  application.withBasePlugins([
60
- new CorePureGraphManagerPlugin(),
66
+ new Core_PureGraphManagerPlugin(),
61
67
  new Core_LegendStudioApplicationPlugin(),
62
68
  ]);
63
69
  return application;
@@ -16,7 +16,7 @@
16
16
 
17
17
  import { LegendApplicationPluginManager } from '@finos/legend-application';
18
18
  import {
19
- CorePureGraphManagerPlugin,
19
+ Core_PureGraphManagerPlugin,
20
20
  type GraphManagerPluginManager,
21
21
  type PureGraphManagerPlugin,
22
22
  type PureGraphPlugin,
@@ -70,7 +70,7 @@ export class LegendStudioPluginManager
70
70
  override getHiddenPluginNames(): string[] {
71
71
  return [
72
72
  Core_LegendStudioApplicationPlugin.NAME,
73
- CorePureGraphManagerPlugin.NAME,
73
+ Core_PureGraphManagerPlugin.NAME,
74
74
  ];
75
75
  }
76
76
  }
@@ -43,8 +43,8 @@ import {
43
43
  type ElementEditorRenderer,
44
44
  type ElementEditorStateCreator,
45
45
  type ElementIconGetter,
46
- type ElementProjectExplorerDnDTypeGetter,
47
- type ElementTypeGetter,
46
+ type DragElementClassifier,
47
+ type ElementClassifier,
48
48
  type NewElementDriverCreator,
49
49
  type NewElementDriverEditorRenderer,
50
50
  type NewElementFromStateCreator,
@@ -120,7 +120,7 @@ export class DSLExternalFormat_LegendStudioApplicationPlugin
120
120
  return [SCHEMA_SET_ELEMENT_TYPE, BINDING_ELEMENT_TYPE];
121
121
  }
122
122
 
123
- getExtraElementTypeGetters(): ElementTypeGetter[] {
123
+ getExtraElementClassifiers(): ElementClassifier[] {
124
124
  return [
125
125
  (element: PackageableElement): string | undefined => {
126
126
  if (element instanceof SchemaSet) {
@@ -239,7 +239,7 @@ export class DSLExternalFormat_LegendStudioApplicationPlugin
239
239
  ];
240
240
  }
241
241
 
242
- getExtraElementProjectExplorerDnDTypeGetters(): ElementProjectExplorerDnDTypeGetter[] {
242
+ getExtraDragElementClassifiers(): DragElementClassifier[] {
243
243
  return [
244
244
  (element: PackageableElement): string | undefined => {
245
245
  if (element instanceof SchemaSet) {
@@ -251,7 +251,7 @@ export class DSLExternalFormat_LegendStudioApplicationPlugin
251
251
  },
252
252
  ];
253
253
  }
254
- getExtraPureGrammarTextEditorDnDTypes(): string[] {
254
+ getExtraPureGrammarTextEditorDragElementTypes(): string[] {
255
255
  return [
256
256
  SCHEMA_SET_ELEMENT_PROJECT_EXPLORER_DND_TYPE,
257
257
  BINDING_ELEMENT_PROJECT_EXPLORER_DND_TYPE,
@@ -28,12 +28,7 @@ import { LEGEND_STUDIO_TEST_ID } from './LegendStudioTestID.js';
28
28
  import { EditorStore } from '../stores/EditorStore.js';
29
29
  import { Editor } from './editor/Editor.js';
30
30
  import { generateEditorRoute } from '../stores/LegendStudioRouter.js';
31
- import {
32
- type PlainObject,
33
- type TEMPORARY__JestMock,
34
- MOBX__disableSpyOrMock,
35
- MOBX__enableSpyOrMock,
36
- } from '@finos/legend-shared';
31
+ import type { PlainObject, TEMPORARY__JestMock } from '@finos/legend-shared';
37
32
  import { LegendStudioPluginManager } from '../application/LegendStudioPluginManager.js';
38
33
  import type { Entity } from '@finos/legend-storage';
39
34
  import {
@@ -241,44 +236,41 @@ export const TEST__setUpEditor = async (
241
236
  projects,
242
237
  projectDependency,
243
238
  } = data;
244
- // mock editor initialization data
245
-
246
- MOBX__enableSpyOrMock();
247
239
 
248
240
  // SDLC
249
241
  jest
250
242
  .spyOn(MOCK__editorStore.sdlcServerClient, 'getProject')
251
- .mockResolvedValue(project);
243
+ .mockReturnValue(Promise.resolve(project));
252
244
  jest
253
245
  .spyOn(MOCK__editorStore.sdlcServerClient, 'getWorkspace')
254
- .mockResolvedValue(workspace);
246
+ .mockReturnValue(Promise.resolve(workspace));
255
247
  jest
256
248
  .spyOn(MOCK__editorStore.sdlcServerClient, 'getVersions')
257
- .mockResolvedValue(projectVersions);
249
+ .mockReturnValue(Promise.resolve(projectVersions));
258
250
  jest
259
251
  .spyOn(MOCK__editorStore.sdlcServerClient, 'getRevision')
260
- .mockResolvedValue(curentRevision);
252
+ .mockReturnValue(Promise.resolve(curentRevision));
261
253
  jest
262
254
  .spyOn(
263
255
  MOCK__editorStore.sdlcServerClient,
264
256
  'checkIfWorkspaceIsInConflictResolutionMode',
265
257
  )
266
- .mockResolvedValue(false);
258
+ .mockReturnValue(Promise.resolve(false));
267
259
  jest
268
260
  .spyOn(MOCK__editorStore.sdlcServerClient, 'isWorkspaceOutdated')
269
- .mockResolvedValue(false);
261
+ .mockReturnValue(Promise.resolve(false));
270
262
  jest
271
263
  .spyOn(MOCK__editorStore.sdlcServerClient, 'getEntities')
272
- .mockResolvedValue(entities);
264
+ .mockReturnValue(Promise.resolve(entities));
273
265
  jest
274
266
  .spyOn(MOCK__editorStore.sdlcServerClient, 'getConfiguration')
275
- .mockResolvedValue(projectConfiguration);
267
+ .mockReturnValue(Promise.resolve(projectConfiguration));
276
268
  jest
277
269
  .spyOn(
278
270
  MOCK__editorStore.sdlcServerClient,
279
271
  'getLatestProjectStructureVersion',
280
272
  )
281
- .mockResolvedValue(latestProjectStructureVersion);
273
+ .mockReturnValue(Promise.resolve(latestProjectStructureVersion));
282
274
  MOCK__editorStore.sdlcServerClient._setFeatures(
283
275
  SDLCServerFeaturesConfiguration.serialization.fromJson({
284
276
  canCreateProject: true,
@@ -289,23 +281,23 @@ export const TEST__setUpEditor = async (
289
281
  // depot
290
282
  jest
291
283
  .spyOn(MOCK__editorStore.depotServerClient, 'getProjects')
292
- .mockResolvedValue(projects);
284
+ .mockReturnValue(Promise.resolve(projects));
293
285
  jest
294
286
  .spyOn(MOCK__editorStore.depotServerClient, 'getProjectById')
295
- .mockResolvedValue(projectData);
287
+ .mockReturnValue(Promise.resolve(projectData));
296
288
  jest
297
289
  .spyOn(MOCK__editorStore.depotServerClient, 'collectDependencyEntities')
298
- .mockResolvedValue(projectDependency);
290
+ .mockReturnValue(Promise.resolve(projectDependency));
299
291
 
300
292
  // TODO: we need to think of how we will mock these calls when we modularize
301
- MOCK__editorStore.graphManagerState.graphManager.initialize =
302
- jest.fn<TEMPORARY__JestMock>();
293
+ const graphManagerState = MOCK__editorStore.graphManagerState;
294
+ graphManagerState.graphManager.initialize = jest.fn<TEMPORARY__JestMock>();
303
295
  jest
304
296
  .spyOn(
305
- MOCK__editorStore.graphManagerState.graphManager,
297
+ graphManagerState.graphManager,
306
298
  'getAvailableGenerationConfigurationDescriptions',
307
299
  )
308
- .mockResolvedValue(availableGenerationDescriptions);
300
+ .mockReturnValue(Promise.resolve(availableGenerationDescriptions));
309
301
 
310
302
  // mock change detections (since we do not test them now)
311
303
  MOCK__editorStore.changeDetectionState.workspaceLocalLatestRevisionState.buildEntityHashesIndex =
@@ -318,7 +310,6 @@ export const TEST__setUpEditor = async (
318
310
  jest.fn<TEMPORARY__JestMock>();
319
311
  MOCK__editorStore.workspaceUpdaterState.fetchLatestCommittedReviews =
320
312
  jest.fn<TEMPORARY__JestMock>();
321
- MOBX__disableSpyOrMock();
322
313
 
323
314
  const history = createMemoryHistory({
324
315
  initialEntries: [
@@ -362,20 +353,14 @@ export const TEST__setUpEditor = async (
362
353
  );
363
354
  // assert immutable models have been model
364
355
  await waitFor(() =>
365
- expect(
366
- MOCK__editorStore.graphManagerState.systemBuildState.hasSucceeded,
367
- ).toBe(true),
356
+ expect(graphManagerState.systemBuildState.hasSucceeded).toBe(true),
368
357
  );
369
358
  await waitFor(() =>
370
- expect(
371
- MOCK__editorStore.graphManagerState.dependenciesBuildState.hasSucceeded,
372
- ).toBe(true),
359
+ expect(graphManagerState.dependenciesBuildState.hasSucceeded).toBe(true),
373
360
  );
374
361
  // assert main model has been build
375
362
  await waitFor(() =>
376
- expect(
377
- MOCK__editorStore.graphManagerState.graphBuildState.hasSucceeded,
378
- ).toBe(true),
363
+ expect(graphManagerState.graphBuildState.hasSucceeded).toBe(true),
379
364
  );
380
365
  // assert explorer trees have been built and rendered
381
366
  await waitFor(() =>
@@ -0,0 +1,165 @@
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 { Fragment, useState } from 'react';
18
+ import { observer } from 'mobx-react-lite';
19
+ import {
20
+ clsx,
21
+ Dialog,
22
+ TimesIcon,
23
+ WindowMaximizeIcon,
24
+ EmptyWindowRestoreIcon,
25
+ } from '@finos/legend-art';
26
+ import { flowResult } from 'mobx';
27
+ import { hashObject, noop } from '@finos/legend-shared';
28
+ import {
29
+ useApplicationNavigationContext,
30
+ ActionAlertActionType,
31
+ ActionAlertType,
32
+ useApplicationStore,
33
+ } from '@finos/legend-application';
34
+ import {
35
+ QueryBuilder,
36
+ type QueryBuilderState,
37
+ } from '@finos/legend-query-builder';
38
+ import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../stores/LegendStudioApplicationNavigationContext.js';
39
+ import { useEditorStore } from './editor/EditorStoreProvider.js';
40
+ import type { EmbeddedQueryBuilderState } from '../stores/EmbeddedQueryBuilderState.js';
41
+
42
+ /**
43
+ * NOTE: Query builder is by right a mini-app so we have it hosted in a full-screen modal dialog
44
+ * See https://material.io/components/dialogs#full-screen-dialog
45
+ */
46
+ const QueryBuilderDialog = observer(
47
+ (props: {
48
+ embeddedQueryBuilderState: EmbeddedQueryBuilderState;
49
+ queryBuilderState: QueryBuilderState;
50
+ }) => {
51
+ const { embeddedQueryBuilderState, queryBuilderState } = props;
52
+ const applicationStore = useApplicationStore();
53
+ const [isMaximized, setIsMaximized] = useState(false);
54
+ const toggleMaximize = (): void => setIsMaximized(!isMaximized);
55
+ const closeQueryBuilder = (): void => {
56
+ flowResult(
57
+ embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration(
58
+ undefined,
59
+ ),
60
+ ).catch(applicationStore.alertUnhandledError);
61
+ };
62
+
63
+ useApplicationNavigationContext(
64
+ LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.EMBEDDED_QUERY_BUILDER,
65
+ );
66
+
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
+ ) {
75
+ applicationStore.setActionAlertInfo({
76
+ message:
77
+ 'Unsaved changes to your query will be lost if you continue. Do you still want to proceed?',
78
+ type: ActionAlertType.CAUTION,
79
+ actions: [
80
+ {
81
+ label: 'Proceed',
82
+ type: ActionAlertActionType.PROCEED_WITH_CAUTION,
83
+ handler: applicationStore.guardUnhandledError(async () =>
84
+ closeQueryBuilder(),
85
+ ),
86
+ },
87
+ {
88
+ label: 'Cancel',
89
+ type: ActionAlertActionType.PROCEED,
90
+ default: true,
91
+ },
92
+ ],
93
+ });
94
+ } else {
95
+ closeQueryBuilder();
96
+ }
97
+ };
98
+
99
+ return (
100
+ <Dialog
101
+ open={Boolean(embeddedQueryBuilderState.queryBuilderState)}
102
+ onClose={noop} // disallow closing dialog by using Esc key or clicking on the backdrop
103
+ classes={{
104
+ root: 'editor-modal__root-container',
105
+ container: 'editor-modal__container',
106
+ paper:
107
+ 'editor-modal__content query-builder__dialog__container__content',
108
+ }}
109
+ >
110
+ <div
111
+ className={clsx(
112
+ 'modal modal--dark editor-modal query-builder__dialog',
113
+ { 'query-builder__dialog--expanded': isMaximized },
114
+ )}
115
+ >
116
+ <div className="query-builder__dialog__header">
117
+ <div className="query-builder__dialog__header__actions">
118
+ {embeddedQueryBuilderState.actionConfigs.map((config) => (
119
+ <Fragment key={config.key}>
120
+ {config.renderer(queryBuilderState)}
121
+ </Fragment>
122
+ ))}
123
+ <button
124
+ className="query-builder__dialog__header__action"
125
+ tabIndex={-1}
126
+ onClick={toggleMaximize}
127
+ >
128
+ {isMaximized ? (
129
+ <EmptyWindowRestoreIcon />
130
+ ) : (
131
+ <WindowMaximizeIcon />
132
+ )}
133
+ </button>
134
+ <button
135
+ className="query-builder__dialog__header__action"
136
+ tabIndex={-1}
137
+ onClick={confirmCloseQueryBuilder}
138
+ >
139
+ <TimesIcon />
140
+ </button>
141
+ </div>
142
+ </div>
143
+ <div className="query-builder__dialog__content">
144
+ <QueryBuilder queryBuilderState={queryBuilderState} />
145
+ </div>
146
+ </div>
147
+ </Dialog>
148
+ );
149
+ },
150
+ );
151
+
152
+ export const EmbeddedQueryBuilder = observer(() => {
153
+ const editorStore = useEditorStore();
154
+ const queryBuilderExtensionState = editorStore.embeddedQueryBuilderState;
155
+
156
+ if (!queryBuilderExtensionState.queryBuilderState) {
157
+ return null;
158
+ }
159
+ return (
160
+ <QueryBuilderDialog
161
+ embeddedQueryBuilderState={queryBuilderExtensionState}
162
+ queryBuilderState={queryBuilderExtensionState.queryBuilderState}
163
+ />
164
+ );
165
+ });