@finos/legend-application-studio 18.0.2 → 19.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 (345) hide show
  1. package/lib/application/LegendStudio.d.ts.map +1 -1
  2. package/lib/application/LegendStudio.js +3 -9
  3. package/lib/application/LegendStudio.js.map +1 -1
  4. package/lib/components/Core_LegendStudioApplicationPlugin.d.ts +2 -1
  5. package/lib/components/Core_LegendStudioApplicationPlugin.d.ts.map +1 -1
  6. package/lib/components/Core_LegendStudioApplicationPlugin.js +5 -1
  7. package/lib/components/Core_LegendStudioApplicationPlugin.js.map +1 -1
  8. package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
  9. package/lib/components/EditorComponentTestUtils.js +3 -3
  10. package/lib/components/EditorComponentTestUtils.js.map +1 -1
  11. package/lib/components/LegendStudioApplication.d.ts.map +1 -1
  12. package/lib/components/LegendStudioApplication.js +11 -8
  13. package/lib/components/LegendStudioApplication.js.map +1 -1
  14. package/lib/components/editor/ActivityBar.d.ts.map +1 -1
  15. package/lib/components/editor/ActivityBar.js +13 -18
  16. package/lib/components/editor/ActivityBar.js.map +1 -1
  17. package/lib/components/editor/Editor.d.ts.map +1 -1
  18. package/lib/components/editor/Editor.js +58 -95
  19. package/lib/components/editor/Editor.js.map +1 -1
  20. package/lib/components/editor/StatusBar.d.ts.map +1 -1
  21. package/lib/components/editor/StatusBar.js +4 -6
  22. package/lib/components/editor/StatusBar.js.map +1 -1
  23. package/lib/components/editor/aux-panel/AuxiliaryPanel.js +1 -1
  24. package/lib/components/editor/aux-panel/AuxiliaryPanel.js.map +1 -1
  25. package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
  26. package/lib/components/editor/command-center/ProjectSearchCommand.js +1 -1
  27. package/lib/components/editor/command-center/ProjectSearchCommand.js.map +1 -1
  28. package/lib/components/editor/edit-panel/EditPanel.d.ts.map +1 -1
  29. package/lib/components/editor/edit-panel/EditPanel.js +5 -5
  30. package/lib/components/editor/edit-panel/EditPanel.js.map +1 -1
  31. package/lib/components/editor/edit-panel/FileGenerationViewer.d.ts.map +1 -1
  32. package/lib/components/editor/edit-panel/FileGenerationViewer.js +2 -2
  33. package/lib/components/editor/edit-panel/FileGenerationViewer.js.map +1 -1
  34. package/lib/components/editor/edit-panel/FunctionEditor.js +2 -2
  35. package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
  36. package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
  37. package/lib/components/editor/edit-panel/GrammarTextEditor.js +4 -16
  38. package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
  39. package/lib/components/editor/edit-panel/ModelImporter.d.ts.map +1 -1
  40. package/lib/components/editor/edit-panel/ModelImporter.js +6 -32
  41. package/lib/components/editor/edit-panel/ModelImporter.js.map +1 -1
  42. package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js +2 -3
  43. package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js.map +1 -1
  44. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
  45. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js +18 -19
  46. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
  47. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.d.ts.map +1 -1
  48. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js +13 -7
  49. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js.map +1 -1
  50. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.d.ts.map +1 -1
  51. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js +3 -3
  52. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js.map +1 -1
  53. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.d.ts.map +1 -1
  54. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js +3 -4
  55. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js.map +1 -1
  56. package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
  57. package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js +7 -8
  58. package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js.map +1 -1
  59. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
  60. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js +3 -3
  61. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js.map +1 -1
  62. package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.d.ts.map +1 -1
  63. package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.js +4 -5
  64. package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.js.map +1 -1
  65. package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.js +2 -3
  66. package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.js.map +1 -1
  67. package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.d.ts.map +1 -1
  68. package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js +2 -3
  69. package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js.map +1 -1
  70. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts.map +1 -1
  71. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +2 -3
  72. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
  73. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.d.ts.map +1 -1
  74. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js +2 -3
  75. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js.map +1 -1
  76. package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js +3 -3
  77. package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js.map +1 -1
  78. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts.map +1 -1
  79. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js +5 -9
  80. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js.map +1 -1
  81. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
  82. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +12 -15
  83. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
  84. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
  85. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js +9 -12
  86. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
  87. package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
  88. package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js +4 -5
  89. package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js.map +1 -1
  90. package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js +4 -4
  91. package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js.map +1 -1
  92. package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js +4 -4
  93. package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js.map +1 -1
  94. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts.map +1 -1
  95. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +65 -54
  96. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
  97. package/lib/components/editor/edit-panel/service-editor/NewServiceModal.d.ts.map +1 -1
  98. package/lib/components/editor/edit-panel/service-editor/NewServiceModal.js +4 -5
  99. package/lib/components/editor/edit-panel/service-editor/NewServiceModal.js.map +1 -1
  100. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js +16 -16
  101. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js.map +1 -1
  102. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
  103. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +6 -7
  104. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
  105. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js +9 -9
  106. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
  107. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.js +5 -5
  108. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.js.map +1 -1
  109. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
  110. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.js +4 -2
  111. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.js.map +1 -1
  112. package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts.map +1 -1
  113. package/lib/components/editor/edit-panel/testable/TestAssertionEditor.js +2 -3
  114. package/lib/components/editor/edit-panel/testable/TestAssertionEditor.js.map +1 -1
  115. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts.map +1 -1
  116. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js +7 -5
  117. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
  118. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts.map +1 -1
  119. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js +12 -8
  120. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js.map +1 -1
  121. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts.map +1 -1
  122. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js +7 -5
  123. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js.map +1 -1
  124. package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
  125. package/lib/components/editor/side-bar/CreateNewElementModal.js +4 -5
  126. package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
  127. package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
  128. package/lib/components/editor/side-bar/Explorer.js +10 -7
  129. package/lib/components/editor/side-bar/Explorer.js.map +1 -1
  130. package/lib/components/editor/side-bar/WorkflowManager.js +3 -5
  131. package/lib/components/editor/side-bar/WorkflowManager.js.map +1 -1
  132. package/lib/components/editor/side-bar/WorkspaceReview.d.ts.map +1 -1
  133. package/lib/components/editor/side-bar/WorkspaceReview.js +5 -32
  134. package/lib/components/editor/side-bar/WorkspaceReview.js.map +1 -1
  135. package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts.map +1 -1
  136. package/lib/components/editor/side-bar/WorkspaceUpdater.js +2 -26
  137. package/lib/components/editor/side-bar/WorkspaceUpdater.js.map +1 -1
  138. package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
  139. package/lib/components/editor/side-bar/testable/GlobalTestRunner.js +3 -4
  140. package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
  141. package/lib/components/project-viewer/ProjectViewer.d.ts.map +1 -1
  142. package/lib/components/project-viewer/ProjectViewer.js +19 -33
  143. package/lib/components/project-viewer/ProjectViewer.js.map +1 -1
  144. package/lib/components/shared/DiffView.d.ts.map +1 -1
  145. package/lib/components/shared/DiffView.js +4 -19
  146. package/lib/components/shared/DiffView.js.map +1 -1
  147. package/lib/components/workspace-review/WorkspaceReview.d.ts.map +1 -1
  148. package/lib/components/workspace-review/WorkspaceReview.js +8 -6
  149. package/lib/components/workspace-review/WorkspaceReview.js.map +1 -1
  150. package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts.map +1 -1
  151. package/lib/components/workspace-review/WorkspaceReviewPanel.js +2 -2
  152. package/lib/components/workspace-review/WorkspaceReviewPanel.js.map +1 -1
  153. package/lib/components/workspace-review/WorkspaceReviewSideBar.js +1 -1
  154. package/lib/components/workspace-review/WorkspaceReviewSideBar.js.map +1 -1
  155. package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -1
  156. package/lib/components/workspace-setup/CreateProjectModal.js +10 -6
  157. package/lib/components/workspace-setup/CreateProjectModal.js.map +1 -1
  158. package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -1
  159. package/lib/components/workspace-setup/CreateWorkspaceModal.js +4 -5
  160. package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -1
  161. package/lib/components/workspace-setup/WorkspaceSetup.d.ts.map +1 -1
  162. package/lib/components/workspace-setup/WorkspaceSetup.js +4 -1
  163. package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
  164. package/lib/index.css +2 -2
  165. package/lib/index.css.map +1 -1
  166. package/lib/index.d.ts +0 -1
  167. package/lib/index.d.ts.map +1 -1
  168. package/lib/index.js +0 -1
  169. package/lib/index.js.map +1 -1
  170. package/lib/package.json +5 -7
  171. package/lib/stores/EditorConfig.d.ts +0 -28
  172. package/lib/stores/EditorConfig.d.ts.map +1 -1
  173. package/lib/stores/EditorConfig.js +0 -29
  174. package/lib/stores/EditorConfig.js.map +1 -1
  175. package/lib/stores/EditorGraphState.d.ts.map +1 -1
  176. package/lib/stores/EditorGraphState.js +8 -8
  177. package/lib/stores/EditorGraphState.js.map +1 -1
  178. package/lib/stores/EditorSDLCState.d.ts.map +1 -1
  179. package/lib/stores/EditorSDLCState.js +4 -2
  180. package/lib/stores/EditorSDLCState.js.map +1 -1
  181. package/lib/stores/EditorStore.d.ts +27 -30
  182. package/lib/stores/EditorStore.d.ts.map +1 -1
  183. package/lib/stores/EditorStore.js +183 -146
  184. package/lib/stores/EditorStore.js.map +1 -1
  185. package/lib/stores/EmbeddedQueryBuilderState.d.ts +1 -1
  186. package/lib/stores/EmbeddedQueryBuilderState.d.ts.map +1 -1
  187. package/lib/stores/EmbeddedQueryBuilderState.js +7 -8
  188. package/lib/stores/EmbeddedQueryBuilderState.js.map +1 -1
  189. package/lib/stores/LegendStudioBaseStore.d.ts +1 -1
  190. package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
  191. package/lib/stores/LegendStudioBaseStore.js +27 -18
  192. package/lib/stores/LegendStudioBaseStore.js.map +1 -1
  193. package/lib/stores/LegendStudioCommand.d.ts +32 -0
  194. package/lib/stores/LegendStudioCommand.d.ts.map +1 -0
  195. package/lib/stores/LegendStudioCommand.js +81 -0
  196. package/lib/stores/LegendStudioCommand.js.map +1 -0
  197. package/lib/stores/LegendStudioRouter.d.ts +15 -15
  198. package/lib/stores/LegendStudioRouter.d.ts.map +1 -1
  199. package/lib/stores/LegendStudioRouter.js +37 -24
  200. package/lib/stores/LegendStudioRouter.js.map +1 -1
  201. package/lib/stores/editor-state/GraphGenerationState.d.ts.map +1 -1
  202. package/lib/stores/editor-state/GraphGenerationState.js +2 -3
  203. package/lib/stores/editor-state/GraphGenerationState.js.map +1 -1
  204. package/lib/stores/editor-state/ModelImporterState.d.ts.map +1 -1
  205. package/lib/stores/editor-state/ModelImporterState.js +21 -21
  206. package/lib/stores/editor-state/ModelImporterState.js.map +1 -1
  207. package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts +2 -1
  208. package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
  209. package/lib/stores/editor-state/ProjectConfigurationEditorState.js +10 -4
  210. package/lib/stores/editor-state/ProjectConfigurationEditorState.js.map +1 -1
  211. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts.map +1 -1
  212. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js +1 -3
  213. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
  214. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts.map +1 -1
  215. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js +1 -3
  216. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
  217. package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.d.ts.map +1 -1
  218. package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.js +2 -2
  219. package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.js.map +1 -1
  220. package/lib/stores/project-viewer/ProjectViewerStore.d.ts +2 -4
  221. package/lib/stores/project-viewer/ProjectViewerStore.d.ts.map +1 -1
  222. package/lib/stores/project-viewer/ProjectViewerStore.js +45 -44
  223. package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
  224. package/lib/stores/shared/MockDataUtils.d.ts.map +1 -1
  225. package/lib/stores/shared/MockDataUtils.js +3 -4
  226. package/lib/stores/shared/MockDataUtils.js.map +1 -1
  227. package/lib/stores/shared/testable/TestableUtils.d.ts.map +1 -1
  228. package/lib/stores/shared/testable/TestableUtils.js +6 -6
  229. package/lib/stores/shared/testable/TestableUtils.js.map +1 -1
  230. package/lib/stores/sidebar-state/LocalChangesState.d.ts +1 -0
  231. package/lib/stores/sidebar-state/LocalChangesState.d.ts.map +1 -1
  232. package/lib/stores/sidebar-state/LocalChangesState.js +28 -10
  233. package/lib/stores/sidebar-state/LocalChangesState.js.map +1 -1
  234. package/lib/stores/sidebar-state/ProjectOverviewState.d.ts.map +1 -1
  235. package/lib/stores/sidebar-state/ProjectOverviewState.js +3 -2
  236. package/lib/stores/sidebar-state/ProjectOverviewState.js.map +1 -1
  237. package/lib/stores/sidebar-state/WorkspaceReviewState.d.ts.map +1 -1
  238. package/lib/stores/sidebar-state/WorkspaceReviewState.js +10 -10
  239. package/lib/stores/sidebar-state/WorkspaceReviewState.js.map +1 -1
  240. package/lib/stores/sidebar-state/WorkspaceSyncState.d.ts.map +1 -1
  241. package/lib/stores/sidebar-state/WorkspaceSyncState.js +6 -8
  242. package/lib/stores/sidebar-state/WorkspaceSyncState.js.map +1 -1
  243. package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.d.ts.map +1 -1
  244. package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js +20 -17
  245. package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js.map +1 -1
  246. package/lib/stores/sidebar-state/WorkspaceUpdaterState.d.ts.map +1 -1
  247. package/lib/stores/sidebar-state/WorkspaceUpdaterState.js +8 -7
  248. package/lib/stores/sidebar-state/WorkspaceUpdaterState.js.map +1 -1
  249. package/lib/stores/workspace-setup/WorkspaceSetupStore.js +6 -6
  250. package/lib/stores/workspace-setup/WorkspaceSetupStore.js.map +1 -1
  251. package/package.json +14 -16
  252. package/src/application/LegendStudio.tsx +3 -9
  253. package/src/components/Core_LegendStudioApplicationPlugin.tsx +9 -0
  254. package/src/components/EditorComponentTestUtils.tsx +8 -2
  255. package/src/components/LegendStudioApplication.tsx +28 -8
  256. package/src/components/editor/ActivityBar.tsx +35 -73
  257. package/src/components/editor/Editor.tsx +135 -172
  258. package/src/components/editor/StatusBar.tsx +16 -13
  259. package/src/components/editor/aux-panel/AuxiliaryPanel.tsx +1 -1
  260. package/src/components/editor/command-center/ProjectSearchCommand.tsx +12 -16
  261. package/src/components/editor/edit-panel/EditPanel.tsx +14 -22
  262. package/src/components/editor/edit-panel/FileGenerationViewer.tsx +9 -11
  263. package/src/components/editor/edit-panel/FunctionEditor.tsx +2 -2
  264. package/src/components/editor/edit-panel/GrammarTextEditor.tsx +2 -18
  265. package/src/components/editor/edit-panel/ModelImporter.tsx +10 -38
  266. package/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx +2 -2
  267. package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +37 -38
  268. package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +29 -24
  269. package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +8 -9
  270. package/src/components/editor/edit-panel/data-editor/EmbeddedDataEditor.tsx +8 -10
  271. package/src/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.tsx +7 -8
  272. package/src/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.tsx +2 -2
  273. package/src/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.tsx +9 -5
  274. package/src/components/editor/edit-panel/element-generation-editor/ElementNativeView.tsx +2 -2
  275. package/src/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.tsx +5 -3
  276. package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +2 -3
  277. package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.tsx +2 -3
  278. package/src/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.tsx +3 -3
  279. package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx +5 -9
  280. package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +23 -27
  281. package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +20 -24
  282. package/src/components/editor/edit-panel/mapping-editor/NewMappingElementModal.tsx +4 -5
  283. package/src/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.tsx +4 -4
  284. package/src/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.tsx +4 -4
  285. package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +273 -121
  286. package/src/components/editor/edit-panel/service-editor/NewServiceModal.tsx +7 -5
  287. package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +16 -16
  288. package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +15 -14
  289. package/src/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.tsx +9 -9
  290. package/src/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.tsx +5 -5
  291. package/src/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.tsx +4 -2
  292. package/src/components/editor/edit-panel/testable/TestAssertionEditor.tsx +2 -3
  293. package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +12 -5
  294. package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +17 -11
  295. package/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx +14 -5
  296. package/src/components/editor/side-bar/CreateNewElementModal.tsx +4 -5
  297. package/src/components/editor/side-bar/Explorer.tsx +31 -32
  298. package/src/components/editor/side-bar/WorkflowManager.tsx +3 -3
  299. package/src/components/editor/side-bar/WorkspaceReview.tsx +5 -35
  300. package/src/components/editor/side-bar/WorkspaceUpdater.tsx +2 -31
  301. package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +3 -4
  302. package/src/components/project-viewer/ProjectViewer.tsx +65 -78
  303. package/src/components/shared/DiffView.tsx +3 -22
  304. package/src/components/workspace-review/WorkspaceReview.tsx +26 -16
  305. package/src/components/workspace-review/WorkspaceReviewPanel.tsx +5 -9
  306. package/src/components/workspace-review/WorkspaceReviewSideBar.tsx +1 -1
  307. package/src/components/workspace-setup/CreateProjectModal.tsx +14 -10
  308. package/src/components/workspace-setup/CreateWorkspaceModal.tsx +6 -5
  309. package/src/components/workspace-setup/WorkspaceSetup.tsx +6 -1
  310. package/src/index.ts +0 -1
  311. package/src/stores/EditorConfig.ts +0 -30
  312. package/src/stores/EditorGraphState.ts +9 -8
  313. package/src/stores/EditorSDLCState.ts +4 -2
  314. package/src/stores/EditorStore.ts +231 -245
  315. package/src/stores/EmbeddedQueryBuilderState.ts +14 -9
  316. package/src/stores/LegendStudioBaseStore.ts +35 -25
  317. package/src/stores/LegendStudioCommand.ts +83 -0
  318. package/src/stores/LegendStudioRouter.ts +50 -41
  319. package/src/stores/editor-state/GraphGenerationState.ts +3 -2
  320. package/src/stores/editor-state/ModelImporterState.ts +35 -23
  321. package/src/stores/editor-state/ProjectConfigurationEditorState.ts +16 -2
  322. package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +1 -3
  323. package/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +1 -3
  324. package/src/stores/editor-state/element-editor-state/testable/TestAssertionState.ts +2 -1
  325. package/src/stores/project-viewer/ProjectViewerStore.ts +65 -59
  326. package/src/stores/shared/MockDataUtils.ts +4 -3
  327. package/src/stores/shared/testable/TestableUtils.ts +6 -5
  328. package/src/stores/sidebar-state/LocalChangesState.ts +29 -9
  329. package/src/stores/sidebar-state/ProjectOverviewState.ts +4 -2
  330. package/src/stores/sidebar-state/WorkspaceReviewState.ts +11 -10
  331. package/src/stores/sidebar-state/WorkspaceSyncState.ts +6 -8
  332. package/src/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.ts +20 -17
  333. package/src/stores/sidebar-state/WorkspaceUpdaterState.ts +8 -7
  334. package/src/stores/workspace-setup/WorkspaceSetupStore.ts +6 -6
  335. package/tsconfig.json +1 -2
  336. package/lib/components/shared/StudioLambdaEditor.d.ts +0 -41
  337. package/lib/components/shared/StudioLambdaEditor.d.ts.map +0 -1
  338. package/lib/components/shared/StudioLambdaEditor.js +0 -53
  339. package/lib/components/shared/StudioLambdaEditor.js.map +0 -1
  340. package/lib/components/shared/StudioTextInputEditor.d.ts +0 -28
  341. package/lib/components/shared/StudioTextInputEditor.d.ts.map +0 -1
  342. package/lib/components/shared/StudioTextInputEditor.js +0 -36
  343. package/lib/components/shared/StudioTextInputEditor.js.map +0 -1
  344. package/src/components/shared/StudioLambdaEditor.tsx +0 -146
  345. package/src/components/shared/StudioTextInputEditor.tsx +0 -83
@@ -31,31 +31,30 @@ import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js';
31
31
  import { ACTIVITY_MODE } from '../../stores/EditorConfig.js';
32
32
  import {
33
33
  generateSetupRoute,
34
- type EditorPathParams,
35
- type GroupEditorPathParams,
34
+ type WorkspaceEditorPathParams,
36
35
  } from '../../stores/LegendStudioRouter.js';
37
36
  import { flowResult } from 'mobx';
38
37
  import { useEditorStore } from './EditorStoreProvider.js';
39
38
  import { WorkspaceType } from '@finos/legend-server-sdlc';
40
39
  import { useLegendStudioApplicationStore } from '../LegendStudioBaseStoreProvider.js';
41
40
  import { useParams } from '@finos/legend-application';
41
+ import { guaranteeNonNullable } from '@finos/legend-shared';
42
42
 
43
43
  export const StatusBar = observer((props: { actionsDisabled: boolean }) => {
44
44
  const { actionsDisabled } = props;
45
- const params = useParams<EditorPathParams | GroupEditorPathParams>();
45
+ const params = useParams<WorkspaceEditorPathParams>();
46
46
  const editorStore = useEditorStore();
47
47
  const applicationStore = useLegendStudioApplicationStore();
48
48
  const isInConflictResolutionMode = editorStore.isInConflictResolutionMode;
49
49
  // SDLC
50
50
  const projectId = params.projectId;
51
- const workspaceType = (params as { groupWorkspaceId: string | undefined })
52
- .groupWorkspaceId
51
+ const workspaceType = params.groupWorkspaceId
53
52
  ? WorkspaceType.GROUP
54
53
  : WorkspaceType.USER;
55
- const workspaceId =
56
- workspaceType === WorkspaceType.GROUP
57
- ? (params as GroupEditorPathParams).groupWorkspaceId
58
- : (params as EditorPathParams).workspaceId;
54
+ const workspaceId = guaranteeNonNullable(
55
+ params.groupWorkspaceId ?? params.workspaceId,
56
+ `Workspace/group workspace ID is not provided`,
57
+ );
59
58
  const currentProject = editorStore.sdlcState.currentProject;
60
59
  const goToWorkspaceUpdater = (): void =>
61
60
  editorStore.setActiveActivity(
@@ -155,8 +154,10 @@ export const StatusBar = observer((props: { actionsDisabled: boolean }) => {
155
154
  title="Go back to workspace setup using the specified project"
156
155
  tabIndex={-1}
157
156
  onClick={(): void =>
158
- applicationStore.navigator.goToLocation(
159
- generateSetupRoute(projectId),
157
+ applicationStore.navigator.visitAddress(
158
+ applicationStore.navigator.generateAddress(
159
+ generateSetupRoute(projectId),
160
+ ),
160
161
  )
161
162
  }
162
163
  >
@@ -168,8 +169,10 @@ export const StatusBar = observer((props: { actionsDisabled: boolean }) => {
168
169
  title="Go back to workspace setup using the specified workspace"
169
170
  tabIndex={-1}
170
171
  onClick={(): void =>
171
- applicationStore.navigator.goToLocation(
172
- generateSetupRoute(projectId, workspaceId, workspaceType),
172
+ applicationStore.navigator.visitAddress(
173
+ applicationStore.navigator.generateAddress(
174
+ generateSetupRoute(projectId, workspaceId, workspaceType),
175
+ ),
173
176
  )
174
177
  }
175
178
  >
@@ -57,7 +57,7 @@ export const AuxiliaryPanel = observer(() => {
57
57
  mode: AUX_PANEL_MODE.DEV_TOOL,
58
58
  name: 'DEVELOPER TOOLS',
59
59
  icon: undefined,
60
- isVisible: editorStore.isDevToolEnabled,
60
+ isVisible: true,
61
61
  },
62
62
  };
63
63
 
@@ -98,6 +98,8 @@ export const ProjectSearchCommand = observer(() => {
98
98
  <div className="modal search-modal modal--dark">
99
99
  <div className="project-search-command">
100
100
  <DropdownMenu
101
+ className="project-search-command__type"
102
+ title="Choose Element Type..."
101
103
  content={
102
104
  <div className="project-search-command__options">
103
105
  <div
@@ -118,22 +120,16 @@ export const ProjectSearchCommand = observer(() => {
118
120
  </div>
119
121
  }
120
122
  >
121
- <button
122
- className="project-search-command__type"
123
- tabIndex={-1}
124
- title="Choose Element Type..."
125
- >
126
- <div className="project-search-command__type__label">
127
- {elementType ? (
128
- getElementTypeIcon(editorStore, elementType)
129
- ) : (
130
- <MoreHorizontalIcon />
131
- )}
132
- </div>
133
- <div className="project-search-command__type__selector">
134
- <CaretDownIcon />
135
- </div>
136
- </button>
123
+ <div className="project-search-command__type__label">
124
+ {elementType ? (
125
+ getElementTypeIcon(editorStore, elementType)
126
+ ) : (
127
+ <MoreHorizontalIcon />
128
+ )}
129
+ </div>
130
+ <div className="project-search-command__type__selector">
131
+ <CaretDownIcon />
132
+ </div>
137
133
  </DropdownMenu>
138
134
  <CustomSelectorInput
139
135
  ref={selectorRef}
@@ -440,7 +440,8 @@ export const EditPanel = observer(() => {
440
440
  <div className="edit-panel__header__actions">
441
441
  {currentEditorState instanceof ElementEditorState && (
442
442
  <DropdownMenu
443
- className="edit-panel__view-mode"
443
+ className="edit-panel__view-mode__type"
444
+ title="View as..."
444
445
  content={
445
446
  <MenuContent
446
447
  data-testid={
@@ -503,23 +504,19 @@ export const EditPanel = observer(() => {
503
504
  transformOrigin: { vertical: 'top', horizontal: 'right' },
504
505
  }}
505
506
  >
506
- <button
507
- className="edit-panel__view-mode__type"
508
- title="View as..."
509
- >
510
- <div className="edit-panel__view-mode__type__label">
511
- {currentEditorState.generationViewMode
512
- ? editorStore.graphState.graphGenerationState.getFileGenerationConfiguration(
513
- currentEditorState.generationViewMode,
514
- ).label
515
- : currentEditorState.editMode}
516
- </div>
517
- </button>
507
+ <div className="edit-panel__view-mode__type__label">
508
+ {currentEditorState.generationViewMode
509
+ ? editorStore.graphState.graphGenerationState.getFileGenerationConfiguration(
510
+ currentEditorState.generationViewMode,
511
+ ).label
512
+ : currentEditorState.editMode}
513
+ </div>
518
514
  </DropdownMenu>
519
515
  )}
520
516
  {currentEditorState instanceof EntityDiffViewState && (
521
517
  <DropdownMenu
522
- className="edit-panel__view-mode"
518
+ className="edit-panel__view-mode__type"
519
+ title="View as..."
523
520
  content={
524
521
  <MenuContent
525
522
  data-testid={
@@ -550,14 +547,9 @@ export const EditPanel = observer(() => {
550
547
  transformOrigin: { vertical: 'top', horizontal: 'right' },
551
548
  }}
552
549
  >
553
- <button
554
- className="edit-panel__view-mode__type"
555
- title="View as..."
556
- >
557
- <div className="edit-panel__view-mode__type__label">
558
- {currentEditorState.diffMode}
559
- </div>
560
- </button>
550
+ <div className="edit-panel__view-mode__type__label">
551
+ {currentEditorState.diffMode}
552
+ </div>
561
553
  </DropdownMenu>
562
554
  )}
563
555
  </div>
@@ -29,7 +29,7 @@ import {
29
29
  } from '@finos/legend-art';
30
30
  import type { FileGenerationSpecification } from '@finos/legend-graph';
31
31
  import { useEditorStore } from '../EditorStoreProvider.js';
32
- import { StudioTextInputEditor } from '../../shared/StudioTextInputEditor.js';
32
+ import { TextInputEditor } from '@finos/legend-application';
33
33
 
34
34
  export const FileGenerationViewer = observer(() => {
35
35
  const editorStore = useEditorStore();
@@ -90,16 +90,14 @@ export const FileGenerationViewer = observer(() => {
90
90
  </div>
91
91
  </div>
92
92
  <PanelContent>
93
- {
94
- <StudioTextInputEditor
95
- inputValue={getTextContent(
96
- generatedFile.content,
97
- generatedFile.format,
98
- )}
99
- isReadOnly={true}
100
- language={getEditorLanguageFromFormat(generatedFile.format)}
101
- />
102
- }
93
+ <TextInputEditor
94
+ inputValue={getTextContent(
95
+ generatedFile.content,
96
+ generatedFile.format,
97
+ )}
98
+ isReadOnly={true}
99
+ language={getEditorLanguageFromFormat(generatedFile.format)}
100
+ />
103
101
  </PanelContent>
104
102
  </div>
105
103
  </Panel>
@@ -82,7 +82,6 @@ import {
82
82
  useApplicationStore,
83
83
  buildElementOption,
84
84
  } from '@finos/legend-application';
85
- import { StudioLambdaEditor } from '../../shared/StudioLambdaEditor.js';
86
85
  import { getElementIcon } from '../../shared/ElementIconUtils.js';
87
86
  import {
88
87
  function_setReturnType,
@@ -101,6 +100,7 @@ import {
101
100
  rawVariableExpression_setType,
102
101
  } from '../../../stores/shared/modifier/RawValueSpecificationGraphModifierHelper.js';
103
102
  import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../stores/LegendStudioApplicationNavigationContext.js';
103
+ import { LambdaEditor } from '@finos/legend-query-builder';
104
104
 
105
105
  enum FUNCTION_PARAMETER_TYPE {
106
106
  CLASS = 'CLASS',
@@ -685,7 +685,7 @@ export const FunctionMainEditor = observer(
685
685
  ),
686
686
  })}
687
687
  >
688
- <StudioLambdaEditor
688
+ <LambdaEditor
689
689
  className="function-editor__element__lambda-editor"
690
690
  disabled={
691
691
  lambdaEditorState.isConvertingFunctionBodyToString || isReadOnly
@@ -20,7 +20,6 @@ import {
20
20
  type IDisposable,
21
21
  editor as monacoEditorAPI,
22
22
  languages as monacoLanguagesAPI,
23
- KeyCode,
24
23
  } from 'monaco-editor';
25
24
  import {
26
25
  ContextMenu,
@@ -28,7 +27,6 @@ import {
28
27
  setErrorMarkers,
29
28
  disposeEditor,
30
29
  baseTextEditorSettings,
31
- disableEditorHotKeys,
32
30
  resetLineNumberGutterWidth,
33
31
  clsx,
34
32
  WordWrapIcon,
@@ -46,6 +44,7 @@ import {
46
44
  useApplicationStore,
47
45
  type DocumentationEntry,
48
46
  useApplicationNavigationContext,
47
+ createPassThroughOnKeyHandler,
49
48
  } from '@finos/legend-application';
50
49
  import {
51
50
  type ElementDragSource,
@@ -817,22 +816,7 @@ export const GrammarTextEditor = observer(() => {
817
816
  // but if we do that on first load, the cursor will not jump to the current element
818
817
  // also, it's better to place that logic in an effect that watches for the regex string
819
818
  });
820
- _editor.onKeyDown((event) => {
821
- if (event.keyCode === KeyCode.F9) {
822
- event.preventDefault();
823
- event.stopPropagation();
824
- flowResult(editorStore.graphState.globalCompileInTextMode()).catch(
825
- applicationStore.alertUnhandledError,
826
- );
827
- } else if (event.keyCode === KeyCode.F8) {
828
- event.preventDefault();
829
- event.stopPropagation();
830
- flowResult(editorStore.toggleTextMode()).catch(
831
- applicationStore.alertUnhandledError,
832
- );
833
- }
834
- });
835
- disableEditorHotKeys(_editor);
819
+ _editor.onKeyDown(createPassThroughOnKeyHandler());
836
820
  _editor.focus(); // focus on the editor initially
837
821
  setEditor(_editor);
838
822
  }
@@ -39,13 +39,11 @@ import {
39
39
  import { flowResult } from 'mobx';
40
40
  import { useEditorStore } from '../EditorStoreProvider.js';
41
41
  import {
42
- ActionAlertType,
43
- ActionAlertActionType,
44
42
  useApplicationStore,
45
43
  EDITOR_LANGUAGE,
46
44
  useApplicationNavigationContext,
45
+ TextInputEditor,
47
46
  } from '@finos/legend-application';
48
- import { StudioTextInputEditor } from '../../shared/StudioTextInputEditor.js';
49
47
  import type { ModelImporterExtensionConfiguration } from '../../../stores/LegendStudioApplicationPlugin.js';
50
48
  import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../stores/LegendStudioApplicationNavigationContext.js';
51
49
  import { SCHEMA_SET_TAB_TYPE } from '../../../stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js';
@@ -151,36 +149,11 @@ export const ModelImporter = observer(() => {
151
149
  const label = modelImporterState.modelImportEditorState.label;
152
150
  const modelImportEditorState = modelImporterState.modelImportEditorState;
153
151
  const loadModel = (): void => {
154
- if (editorStore.localChangesState.hasUnpushedChanges) {
155
- editorStore.setActionAlertInfo({
156
- message: 'You have unpushed changes',
157
- prompt:
158
- 'This action will discard these changes and refresh the application',
159
- type: ActionAlertType.CAUTION,
160
- onEnter: (): void => editorStore.setBlockGlobalHotkeys(true),
161
- onClose: (): void => editorStore.setBlockGlobalHotkeys(false),
162
- actions: [
163
- {
164
- label: 'Proceed to load model',
165
- type: ActionAlertActionType.PROCEED_WITH_CAUTION,
166
- handler: (): void => {
167
- modelImporterState.modelImportEditorState
168
- .loadModel()
169
- .catch(applicationStore.alertUnhandledError);
170
- },
171
- },
172
- {
173
- label: 'Abort',
174
- type: ActionAlertActionType.PROCEED,
175
- default: true,
176
- },
177
- ],
178
- });
179
- } else {
152
+ editorStore.localChangesState.alertUnsavedChanges((): void => {
180
153
  modelImporterState.modelImportEditorState
181
154
  .loadModel()
182
155
  .catch(applicationStore.alertUnhandledError);
183
- }
156
+ });
184
157
  };
185
158
  useApplicationNavigationContext(
186
159
  LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.MODEL_LOADER,
@@ -216,7 +189,7 @@ export const ModelImporter = observer(() => {
216
189
  modelImportEditorState.setModelText(val);
217
190
  return (
218
191
  <div className="panel__content model-loader__editor">
219
- <StudioTextInputEditor
192
+ <TextInputEditor
220
193
  language={
221
194
  modelImportEditorState.nativeType ===
222
195
  MODEL_IMPORT_NATIVE_INPUT_TYPE.PURE_GRAMMAR
@@ -246,6 +219,7 @@ export const ModelImporter = observer(() => {
246
219
  <div className="panel__header model-loader__header">
247
220
  <div className="model-loader__header__configs">
248
221
  <DropdownMenu
222
+ className="model-loader__header__configs__type"
249
223
  content={
250
224
  <MenuContent className="model-loader__header__configs__type__menu">
251
225
  <div className="model-loader__header__configs__type-option__group model-loader__header__configs__type-option__group--native">
@@ -325,13 +299,11 @@ export const ModelImporter = observer(() => {
325
299
  transformOrigin: { vertical: 'top', horizontal: 'right' },
326
300
  }}
327
301
  >
328
- <div className="model-loader__header__configs__type">
329
- <div className="model-loader__header__configs__type__label">
330
- {prettyCONSTName(label)}
331
- </div>
332
- <div className="model-loader__header__configs__type__icon">
333
- <CaretDownIcon />
334
- </div>
302
+ <div className="model-loader__header__configs__type__label">
303
+ {prettyCONSTName(label)}
304
+ </div>
305
+ <div className="model-loader__header__configs__type__icon">
306
+ <CaretDownIcon />
335
307
  </div>
336
308
  </DropdownMenu>
337
309
  {modelImportEditorState.allowHardReplace && (
@@ -47,6 +47,7 @@ import {
47
47
  import { capitalize } from '@finos/legend-shared';
48
48
  import {
49
49
  EDITOR_LANGUAGE,
50
+ TextInputEditor,
50
51
  useApplicationStore,
51
52
  } from '@finos/legend-application';
52
53
  import {
@@ -54,7 +55,6 @@ import {
54
55
  renderColumnTypeIcon,
55
56
  } from './DatabaseEditorHelper.js';
56
57
  import { flowResult } from 'mobx';
57
- import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js';
58
58
 
59
59
  const getNodeIcon = (node: DatabaseBuilderTreeNodeData): React.ReactNode => {
60
60
  if (node instanceof SchemaDatabaseBuilderTreeNodeData) {
@@ -338,7 +338,7 @@ export const DatabaseBuilder = observer(
338
338
  </div>
339
339
  </div>
340
340
  <PanelContent>
341
- <StudioTextInputEditor
341
+ <TextInputEditor
342
342
  language={EDITOR_LANGUAGE.PURE}
343
343
  inputValue={databaseBuilderState.databaseGrammarCode}
344
344
  isReadOnly={true}
@@ -29,7 +29,6 @@ import {
29
29
  CustomSelectorInput,
30
30
  ErrorIcon,
31
31
  PanelHeader,
32
- PanelHeaderActionItem,
33
32
  PlusIcon,
34
33
  PanelFormTextEditor,
35
34
  ContextMenu,
@@ -46,6 +45,7 @@ import {
46
45
  PanelListSelectorItemLabel,
47
46
  PanelSection,
48
47
  PanelFormBooleanEditor,
48
+ PanelHeaderActions,
49
49
  } from '@finos/legend-art';
50
50
  import { capitalize, prettyCONSTName } from '@finos/legend-shared';
51
51
 
@@ -79,8 +79,8 @@ import {
79
79
  EDITOR_LANGUAGE,
80
80
  buildElementOption,
81
81
  type PackageableElementOption,
82
+ TextInputEditor,
82
83
  } from '@finos/legend-application';
83
- import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js';
84
84
  import { connection_setStore } from '../../../../stores/shared/modifier/DSL_Mapping_GraphModifierHelper.js';
85
85
  import {
86
86
  apiTokenAuthenticationStrategy_setApiToken,
@@ -153,7 +153,7 @@ const LocalH2DatasourceSpecificationEditor = observer(
153
153
  {capitalize('test data setup SQL')}
154
154
  </div>
155
155
  <div className="panel__content__form__section__text-editor">
156
- <StudioTextInputEditor
156
+ <TextInputEditor
157
157
  inputValue={SQLValue}
158
158
  updateInput={(value: string | undefined): void =>
159
159
  localH2DatasourceSpecification_setTestDataSetupSqls(
@@ -417,7 +417,7 @@ const SnowflakeDatasourceSpecificationEditor = observer(
417
417
  isReadOnly={isReadOnly}
418
418
  value={sourceSpec.quotedIdentifiersIgnoreCase}
419
419
  name="quoted identifiers ignore case"
420
- description="Controls whether Snowflake will treat alphabetic characters in double-quoted identifiers as uppercase"
420
+ prompt="Controls whether Snowflake will treat alphabetic characters in double-quoted identifiers as uppercase"
421
421
  update={(value: boolean | undefined): void =>
422
422
  snowflakeDatasourceSpec_setQuotedIdentifiersIgnoreCase(
423
423
  sourceSpec,
@@ -544,7 +544,7 @@ const BigQueryDatasourceSpecificationEditor = observer(
544
544
  isReadOnly={isReadOnly}
545
545
  value={sourceSpec.proxyHost}
546
546
  name="proxy host"
547
- description="Specifies proxy host for connection to GCP BigQuery"
547
+ prompt="Specifies proxy host for connection to GCP BigQuery"
548
548
  update={(value: string | undefined): void =>
549
549
  bigQueryDatasourceSpecification_setProxyHost(
550
550
  sourceSpec,
@@ -556,7 +556,7 @@ const BigQueryDatasourceSpecificationEditor = observer(
556
556
  isReadOnly={isReadOnly}
557
557
  value={sourceSpec.proxyPort}
558
558
  name="proxy port"
559
- description="Specifies proxy port for connection to GCP BigQuery"
559
+ prompt="Specifies proxy port for connection to GCP BigQuery"
560
560
  update={(value: string | undefined): void =>
561
561
  bigQueryDatasourceSpecification_setProxyPort(
562
562
  sourceSpec,
@@ -746,7 +746,7 @@ const MiddleTierUsernamePasswordAuthenticationStrategyEditor = observer(
746
746
  isReadOnly={isReadOnly}
747
747
  value={authSpec.vaultReference}
748
748
  name="vault reference"
749
- description="Specifies the cred vault reference containing connection credentials"
749
+ prompt="Specifies the credential vault reference containing connection credentials"
750
750
  update={(value: string | undefined): void =>
751
751
  middleTierUsernamePasswordAuthenticationStrategy_setVaultReference(
752
752
  authSpec,
@@ -1024,39 +1024,38 @@ const PostProcessorRelationalConnectionEditor = observer(
1024
1024
  <ResizablePanel size={200} minSize={100}>
1025
1025
  <Panel>
1026
1026
  <PanelHeader title="post-processor">
1027
- <DropdownMenu
1028
- disabled={isReadOnly}
1029
- content={postProcessorOptions.map(
1030
- (postProcessorType) => (
1031
- <MenuContentItem
1032
- key={postProcessorType.value}
1033
- onClick={addPostProcessor(
1034
- postProcessorType.value,
1035
- )}
1036
- >
1037
- New {postProcessorType.label} Post-Processor
1038
- </MenuContentItem>
1039
- ),
1040
- )}
1041
- menuProps={{
1042
- anchorOrigin: {
1043
- vertical: 'bottom',
1044
- horizontal: 'right',
1045
- },
1046
- transformOrigin: {
1047
- vertical: 'top',
1048
- horizontal: 'right',
1049
- },
1050
- elevation: 7,
1051
- }}
1052
- >
1053
- <PanelHeaderActionItem
1027
+ <PanelHeaderActions>
1028
+ <DropdownMenu
1029
+ title="Create post-processor"
1030
+ className="panel__header__action"
1054
1031
  disabled={isReadOnly}
1055
- title="Create Post-Processor"
1032
+ content={postProcessorOptions.map(
1033
+ (postProcessorType) => (
1034
+ <MenuContentItem
1035
+ key={postProcessorType.value}
1036
+ onClick={addPostProcessor(
1037
+ postProcessorType.value,
1038
+ )}
1039
+ >
1040
+ New {postProcessorType.label} Post-Processor
1041
+ </MenuContentItem>
1042
+ ),
1043
+ )}
1044
+ menuProps={{
1045
+ anchorOrigin: {
1046
+ vertical: 'bottom',
1047
+ horizontal: 'right',
1048
+ },
1049
+ transformOrigin: {
1050
+ vertical: 'top',
1051
+ horizontal: 'right',
1052
+ },
1053
+ elevation: 7,
1054
+ }}
1056
1055
  >
1057
1056
  <PlusIcon />
1058
- </PanelHeaderActionItem>
1059
- </DropdownMenu>
1057
+ </DropdownMenu>
1058
+ </PanelHeaderActions>
1060
1059
  </PanelHeader>
1061
1060
  <PanelContent>
1062
1061
  {postProcessors.map((postProcessor, idx) => (
@@ -1375,7 +1374,7 @@ const RelationalConnectionGeneralEditor = observer(
1375
1374
  isReadOnly={isReadOnly}
1376
1375
  value={connection.quoteIdentifiers}
1377
1376
  name="Quote identifiers"
1378
- description="Specifies whether to use double-quotes for SQL identifiers"
1377
+ prompt="Specifies whether to use double-quotes for SQL identifiers"
1379
1378
  update={(value?: boolean): void =>
1380
1379
  dBConnection_setQuoteIdentifiers(connection, Boolean(value))
1381
1380
  }
@@ -17,7 +17,6 @@
17
17
  import {
18
18
  ResizablePanelGroup,
19
19
  ResizablePanel,
20
- PanelHeaderActionItem,
21
20
  PlusIcon,
22
21
  ResizablePanelSplitter,
23
22
  PanelFormTextEditor,
@@ -34,6 +33,7 @@ import {
34
33
  PanelContent,
35
34
  PanelListSelectorItemLabel,
36
35
  PanelSection,
36
+ PanelHeaderActions,
37
37
  } from '@finos/legend-art';
38
38
  import {
39
39
  type Mapper,
@@ -137,31 +137,36 @@ export const MapperPostProcessorEditor = observer(
137
137
  <ResizablePanel size={170} minSize={70}>
138
138
  <Panel>
139
139
  <PanelHeader title="mapper">
140
- <DropdownMenu
141
- disabled={isReadOnly}
142
- content={
143
- <MenuContent>
144
- <MenuContentItem onClick={addSchemaMapper}>
145
- New Schema Mapper
146
- </MenuContentItem>
147
- <MenuContentItem onClick={addTableMapper}>
148
- New Table Mapper
149
- </MenuContentItem>
150
- </MenuContent>
151
- }
152
- menuProps={{
153
- anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
154
- transformOrigin: { vertical: 'top', horizontal: 'right' },
155
- elevation: 7,
156
- }}
157
- >
158
- <PanelHeaderActionItem
140
+ <PanelHeaderActions>
141
+ <DropdownMenu
142
+ title="Create mapper"
143
+ className="panel__header__action"
159
144
  disabled={isReadOnly}
160
- title="Create Mapper"
145
+ content={
146
+ <MenuContent>
147
+ <MenuContentItem onClick={addSchemaMapper}>
148
+ New Schema Mapper
149
+ </MenuContentItem>
150
+ <MenuContentItem onClick={addTableMapper}>
151
+ New Table Mapper
152
+ </MenuContentItem>
153
+ </MenuContent>
154
+ }
155
+ menuProps={{
156
+ anchorOrigin: {
157
+ vertical: 'bottom',
158
+ horizontal: 'right',
159
+ },
160
+ transformOrigin: {
161
+ vertical: 'top',
162
+ horizontal: 'right',
163
+ },
164
+ elevation: 7,
165
+ }}
161
166
  >
162
167
  <PlusIcon />
163
- </PanelHeaderActionItem>
164
- </DropdownMenu>
168
+ </DropdownMenu>
169
+ </PanelHeaderActions>
165
170
  </PanelHeader>
166
171
  <PanelContent>
167
172
  {mappers.map((mapper) => (
@@ -193,7 +198,7 @@ export const MapperPostProcessorEditor = observer(
193
198
  ? 'Table Mapper'
194
199
  : 'Schema Mapper'
195
200
  }
196
- validationErrorMessage={
201
+ errorMessage={
197
202
  isMapperDuplicated(mapper)
198
203
  ? 'Mappers have the same values'
199
204
  : undefined