@finos/legend-application-studio 18.1.0 → 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 (343) 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 +14 -15
  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 +12 -6
  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 +17 -41
  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 +25 -17
  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.js +2 -2
  208. package/lib/stores/editor-state/ProjectConfigurationEditorState.js.map +1 -1
  209. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts.map +1 -1
  210. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js +1 -3
  211. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
  212. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts.map +1 -1
  213. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js +1 -3
  214. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
  215. package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.d.ts.map +1 -1
  216. package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.js +2 -2
  217. package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.js.map +1 -1
  218. package/lib/stores/project-viewer/ProjectViewerStore.d.ts +2 -4
  219. package/lib/stores/project-viewer/ProjectViewerStore.d.ts.map +1 -1
  220. package/lib/stores/project-viewer/ProjectViewerStore.js +45 -44
  221. package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
  222. package/lib/stores/shared/MockDataUtils.d.ts.map +1 -1
  223. package/lib/stores/shared/MockDataUtils.js +3 -4
  224. package/lib/stores/shared/MockDataUtils.js.map +1 -1
  225. package/lib/stores/shared/testable/TestableUtils.d.ts.map +1 -1
  226. package/lib/stores/shared/testable/TestableUtils.js +6 -6
  227. package/lib/stores/shared/testable/TestableUtils.js.map +1 -1
  228. package/lib/stores/sidebar-state/LocalChangesState.d.ts +1 -0
  229. package/lib/stores/sidebar-state/LocalChangesState.d.ts.map +1 -1
  230. package/lib/stores/sidebar-state/LocalChangesState.js +28 -10
  231. package/lib/stores/sidebar-state/LocalChangesState.js.map +1 -1
  232. package/lib/stores/sidebar-state/ProjectOverviewState.d.ts.map +1 -1
  233. package/lib/stores/sidebar-state/ProjectOverviewState.js +3 -2
  234. package/lib/stores/sidebar-state/ProjectOverviewState.js.map +1 -1
  235. package/lib/stores/sidebar-state/WorkspaceReviewState.d.ts.map +1 -1
  236. package/lib/stores/sidebar-state/WorkspaceReviewState.js +10 -10
  237. package/lib/stores/sidebar-state/WorkspaceReviewState.js.map +1 -1
  238. package/lib/stores/sidebar-state/WorkspaceSyncState.d.ts.map +1 -1
  239. package/lib/stores/sidebar-state/WorkspaceSyncState.js +6 -8
  240. package/lib/stores/sidebar-state/WorkspaceSyncState.js.map +1 -1
  241. package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.d.ts.map +1 -1
  242. package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js +20 -17
  243. package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js.map +1 -1
  244. package/lib/stores/sidebar-state/WorkspaceUpdaterState.d.ts.map +1 -1
  245. package/lib/stores/sidebar-state/WorkspaceUpdaterState.js +8 -7
  246. package/lib/stores/sidebar-state/WorkspaceUpdaterState.js.map +1 -1
  247. package/lib/stores/workspace-setup/WorkspaceSetupStore.js +6 -6
  248. package/lib/stores/workspace-setup/WorkspaceSetupStore.js.map +1 -1
  249. package/package.json +14 -16
  250. package/src/application/LegendStudio.tsx +3 -9
  251. package/src/components/Core_LegendStudioApplicationPlugin.tsx +9 -0
  252. package/src/components/EditorComponentTestUtils.tsx +8 -2
  253. package/src/components/LegendStudioApplication.tsx +28 -8
  254. package/src/components/editor/ActivityBar.tsx +35 -73
  255. package/src/components/editor/Editor.tsx +135 -172
  256. package/src/components/editor/StatusBar.tsx +16 -13
  257. package/src/components/editor/aux-panel/AuxiliaryPanel.tsx +1 -1
  258. package/src/components/editor/command-center/ProjectSearchCommand.tsx +12 -16
  259. package/src/components/editor/edit-panel/EditPanel.tsx +14 -22
  260. package/src/components/editor/edit-panel/FileGenerationViewer.tsx +9 -11
  261. package/src/components/editor/edit-panel/FunctionEditor.tsx +2 -2
  262. package/src/components/editor/edit-panel/GrammarTextEditor.tsx +2 -18
  263. package/src/components/editor/edit-panel/ModelImporter.tsx +10 -38
  264. package/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx +2 -2
  265. package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +32 -33
  266. package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +28 -23
  267. package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +8 -9
  268. package/src/components/editor/edit-panel/data-editor/EmbeddedDataEditor.tsx +8 -10
  269. package/src/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.tsx +7 -8
  270. package/src/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.tsx +2 -2
  271. package/src/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.tsx +9 -5
  272. package/src/components/editor/edit-panel/element-generation-editor/ElementNativeView.tsx +2 -2
  273. package/src/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.tsx +5 -3
  274. package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +2 -3
  275. package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.tsx +2 -3
  276. package/src/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.tsx +3 -3
  277. package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx +5 -9
  278. package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +23 -27
  279. package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +20 -24
  280. package/src/components/editor/edit-panel/mapping-editor/NewMappingElementModal.tsx +4 -5
  281. package/src/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.tsx +4 -4
  282. package/src/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.tsx +4 -4
  283. package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +57 -75
  284. package/src/components/editor/edit-panel/service-editor/NewServiceModal.tsx +7 -5
  285. package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +16 -16
  286. package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +15 -14
  287. package/src/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.tsx +9 -9
  288. package/src/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.tsx +5 -5
  289. package/src/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.tsx +4 -2
  290. package/src/components/editor/edit-panel/testable/TestAssertionEditor.tsx +2 -3
  291. package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +12 -5
  292. package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +17 -11
  293. package/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx +14 -5
  294. package/src/components/editor/side-bar/CreateNewElementModal.tsx +4 -5
  295. package/src/components/editor/side-bar/Explorer.tsx +31 -32
  296. package/src/components/editor/side-bar/WorkflowManager.tsx +3 -3
  297. package/src/components/editor/side-bar/WorkspaceReview.tsx +5 -35
  298. package/src/components/editor/side-bar/WorkspaceUpdater.tsx +2 -31
  299. package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +3 -4
  300. package/src/components/project-viewer/ProjectViewer.tsx +65 -78
  301. package/src/components/shared/DiffView.tsx +3 -22
  302. package/src/components/workspace-review/WorkspaceReview.tsx +26 -16
  303. package/src/components/workspace-review/WorkspaceReviewPanel.tsx +5 -9
  304. package/src/components/workspace-review/WorkspaceReviewSideBar.tsx +1 -1
  305. package/src/components/workspace-setup/CreateProjectModal.tsx +14 -10
  306. package/src/components/workspace-setup/CreateWorkspaceModal.tsx +6 -5
  307. package/src/components/workspace-setup/WorkspaceSetup.tsx +6 -1
  308. package/src/index.ts +0 -1
  309. package/src/stores/EditorConfig.ts +0 -30
  310. package/src/stores/EditorGraphState.ts +9 -8
  311. package/src/stores/EditorSDLCState.ts +4 -2
  312. package/src/stores/EditorStore.ts +231 -245
  313. package/src/stores/EmbeddedQueryBuilderState.ts +14 -9
  314. package/src/stores/LegendStudioBaseStore.ts +33 -24
  315. package/src/stores/LegendStudioCommand.ts +83 -0
  316. package/src/stores/LegendStudioRouter.ts +50 -41
  317. package/src/stores/editor-state/GraphGenerationState.ts +3 -2
  318. package/src/stores/editor-state/ModelImporterState.ts +35 -23
  319. package/src/stores/editor-state/ProjectConfigurationEditorState.ts +2 -2
  320. package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +1 -3
  321. package/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +1 -3
  322. package/src/stores/editor-state/element-editor-state/testable/TestAssertionState.ts +2 -1
  323. package/src/stores/project-viewer/ProjectViewerStore.ts +65 -59
  324. package/src/stores/shared/MockDataUtils.ts +4 -3
  325. package/src/stores/shared/testable/TestableUtils.ts +6 -5
  326. package/src/stores/sidebar-state/LocalChangesState.ts +29 -9
  327. package/src/stores/sidebar-state/ProjectOverviewState.ts +4 -2
  328. package/src/stores/sidebar-state/WorkspaceReviewState.ts +11 -10
  329. package/src/stores/sidebar-state/WorkspaceSyncState.ts +6 -8
  330. package/src/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.ts +20 -17
  331. package/src/stores/sidebar-state/WorkspaceUpdaterState.ts +8 -7
  332. package/src/stores/workspace-setup/WorkspaceSetupStore.ts +6 -6
  333. package/tsconfig.json +1 -2
  334. package/lib/components/shared/StudioLambdaEditor.d.ts +0 -41
  335. package/lib/components/shared/StudioLambdaEditor.d.ts.map +0 -1
  336. package/lib/components/shared/StudioLambdaEditor.js +0 -53
  337. package/lib/components/shared/StudioLambdaEditor.js.map +0 -1
  338. package/lib/components/shared/StudioTextInputEditor.d.ts +0 -28
  339. package/lib/components/shared/StudioTextInputEditor.d.ts.map +0 -1
  340. package/lib/components/shared/StudioTextInputEditor.js +0 -36
  341. package/lib/components/shared/StudioTextInputEditor.js.map +0 -1
  342. package/src/components/shared/StudioLambdaEditor.tsx +0 -146
  343. package/src/components/shared/StudioTextInputEditor.tsx +0 -83
@@ -158,7 +158,7 @@ export class WorkspaceUpdaterState {
158
158
  this.sdlcState.checkIfCurrentWorkspaceIsInConflictResolutionMode(),
159
159
  )) as boolean;
160
160
  if (isInConflictResolutionMode) {
161
- this.editorStore.setBlockingAlert({
161
+ this.editorStore.applicationStore.setBlockingAlert({
162
162
  message: 'Workspace is in conflict resolution mode',
163
163
  prompt: 'Please refresh the application',
164
164
  });
@@ -170,7 +170,7 @@ export class WorkspaceUpdaterState {
170
170
  error instanceof NetworkClientError &&
171
171
  error.response.status === HttpStatus.NOT_FOUND
172
172
  ) {
173
- this.editorStore.setBlockingAlert({
173
+ this.editorStore.applicationStore.setBlockingAlert({
174
174
  message: 'Current project or workspace no longer exists',
175
175
  prompt: 'Please refresh the application',
176
176
  });
@@ -248,7 +248,7 @@ export class WorkspaceUpdaterState {
248
248
  this.sdlcState.checkIfCurrentWorkspaceIsInConflictResolutionMode(),
249
249
  )) as boolean;
250
250
  if (isInConflictResolutionMode) {
251
- this.editorStore.setBlockingAlert({
251
+ this.editorStore.applicationStore.setBlockingAlert({
252
252
  message: 'Workspace is in conflict resolution mode',
253
253
  prompt: 'Please refresh the application',
254
254
  });
@@ -264,7 +264,7 @@ export class WorkspaceUpdaterState {
264
264
 
265
265
  this.isUpdatingWorkspace = true;
266
266
  try {
267
- this.editorStore.setBlockingAlert({
267
+ this.editorStore.applicationStore.setBlockingAlert({
268
268
  message: 'Updating workspace...',
269
269
  prompt: 'Please do not close the application',
270
270
  showLoading: true,
@@ -284,8 +284,9 @@ export class WorkspaceUpdaterState {
284
284
  // TODO: we might want to handle the situation more gracefully rather than just reloading the page
285
285
  case WorkspaceUpdateReportStatus.CONFLICT:
286
286
  case WorkspaceUpdateReportStatus.UPDATED:
287
- this.editorStore.setIgnoreNavigationBlocking(true);
288
- this.editorStore.applicationStore.navigator.reload();
287
+ this.editorStore.applicationStore.navigator.reload({
288
+ ignoreBlocking: true,
289
+ });
289
290
  break;
290
291
  case WorkspaceUpdateReportStatus.NO_OP:
291
292
  default:
@@ -299,7 +300,7 @@ export class WorkspaceUpdaterState {
299
300
  );
300
301
  this.editorStore.applicationStore.notifyError(error);
301
302
  } finally {
302
- this.editorStore.setBlockingAlert(undefined);
303
+ this.editorStore.applicationStore.setBlockingAlert(undefined);
303
304
  this.isUpdatingWorkspace = false;
304
305
  }
305
306
  }
@@ -111,7 +111,7 @@ export class WorkspaceSetupStore {
111
111
  this.currentProject = undefined;
112
112
  this.workspaces = [];
113
113
  this.currentWorkspace = undefined;
114
- this.applicationStore.navigator.goToLocation(
114
+ this.applicationStore.navigator.updateCurrentLocation(
115
115
  generateSetupRoute(undefined, undefined, undefined),
116
116
  );
117
117
  }
@@ -119,7 +119,7 @@ export class WorkspaceSetupStore {
119
119
  resetWorkspace(): void {
120
120
  this.currentWorkspace = undefined;
121
121
  if (this.currentProject) {
122
- this.applicationStore.navigator.goToLocation(
122
+ this.applicationStore.navigator.updateCurrentLocation(
123
123
  generateSetupRoute(this.currentProject.projectId, undefined, undefined),
124
124
  );
125
125
  }
@@ -145,7 +145,7 @@ export class WorkspaceSetupStore {
145
145
  )) as PlainObject<Project>,
146
146
  );
147
147
  } catch {
148
- this.applicationStore.navigator.goToLocation(
148
+ this.applicationStore.navigator.updateCurrentLocation(
149
149
  generateSetupRoute(undefined),
150
150
  );
151
151
  this.initState.pass();
@@ -241,13 +241,13 @@ export class WorkspaceSetupStore {
241
241
  if (matchingWorkspace) {
242
242
  this.changeWorkspace(matchingWorkspace);
243
243
  } else {
244
- this.applicationStore.navigator.goToLocation(
244
+ this.applicationStore.navigator.updateCurrentLocation(
245
245
  generateSetupRoute(project.projectId),
246
246
  );
247
247
  }
248
248
  } else {
249
249
  this.currentWorkspace = undefined;
250
- this.applicationStore.navigator.goToLocation(
250
+ this.applicationStore.navigator.updateCurrentLocation(
251
251
  generateSetupRoute(project.projectId),
252
252
  );
253
253
  }
@@ -271,7 +271,7 @@ export class WorkspaceSetupStore {
271
271
  );
272
272
  }
273
273
  this.currentWorkspace = workspace;
274
- this.applicationStore.navigator.goToLocation(
274
+ this.applicationStore.navigator.updateCurrentLocation(
275
275
  generateSetupRoute(
276
276
  this.currentProject.projectId,
277
277
  workspace.workspaceId,
package/tsconfig.json CHANGED
@@ -58,6 +58,7 @@
58
58
  "./src/stores/LegendStudioApplicationPlugin.ts",
59
59
  "./src/stores/LegendStudioBaseStore.ts",
60
60
  "./src/stores/LegendStudioCodeSnippets.ts",
61
+ "./src/stores/LegendStudioCommand.ts",
61
62
  "./src/stores/LegendStudioDocumentation.ts",
62
63
  "./src/stores/LegendStudioEventService.ts",
63
64
  "./src/stores/LegendStudioRouter.ts",
@@ -240,8 +241,6 @@
240
241
  "./src/components/shared/ElementIconUtils.tsx",
241
242
  "./src/components/shared/MultiplicityBadge.tsx",
242
243
  "./src/components/shared/ProjectSelectorUtils.tsx",
243
- "./src/components/shared/StudioLambdaEditor.tsx",
244
- "./src/components/shared/StudioTextInputEditor.tsx",
245
244
  "./src/components/shared/TypeTree.tsx",
246
245
  "./src/components/shared/WorkspaceSelectorUtils.tsx",
247
246
  "./src/components/workspace-review/WorkspaceReview.tsx",
@@ -1,41 +0,0 @@
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
- /// <reference types="react" resolution-mode="require"/>
17
- import type { Type } from '@finos/legend-graph';
18
- import { type LambdaEditorState } from '@finos/legend-query-builder';
19
- export declare const StudioLambdaEditor: ((props: {
20
- className?: string | undefined;
21
- disabled: boolean;
22
- lambdaEditorState: LambdaEditorState;
23
- /**
24
- * TODO: when we pass in these expected type we should match a type as expected type if it's covariance, i.e. it is a subtype of
25
- * the expected type. Note that we also have to handle that relationship for Primitive type
26
- * See https://dzone.com/articles/covariance-and-contravariance
27
- */
28
- expectedType?: Type | undefined;
29
- matchedExpectedType?: (() => boolean) | undefined;
30
- onExpectedTypeLabelSelect?: (() => void) | undefined;
31
- forceBackdrop: boolean;
32
- disableExpansion?: boolean | undefined;
33
- forceExpansion?: boolean | undefined;
34
- disablePopUp?: boolean | undefined;
35
- useBaseTextEditorSettings?: boolean | undefined;
36
- hideErrorBar?: boolean | undefined;
37
- onEditorFocusEventHandler?: (() => void) | undefined;
38
- }) => JSX.Element) & {
39
- displayName: string;
40
- };
41
- //# sourceMappingURL=StudioLambdaEditor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StudioLambdaEditor.d.ts","sourceRoot":"","sources":["../../../src/components/shared/StudioLambdaEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAOH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,kBAAkB,WACrB;IACN,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC;;;;OAIG;IACH,YAAY,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAChC,mBAAmB,CAAC,EAAE,CAAC,MAAM,OAAO,CAAC,GAAG,SAAS,CAAC;IAClD,yBAAyB,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACrD,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC,yBAAyB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChD,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC,yBAAyB,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CACtD;;CAgGF,CAAC"}
@@ -1,53 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- /**
3
- * Copyright (c) 2020-present, Goldman Sachs
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { useMemo, useCallback } from 'react';
18
- import { KeyCode } from 'monaco-editor';
19
- import { observer } from 'mobx-react-lite';
20
- import { useApplicationStore } from '@finos/legend-application';
21
- import { flowResult } from 'mobx';
22
- import { useEditorStore } from '../editor/EditorStoreProvider.js';
23
- import { LambdaEditor, } from '@finos/legend-query-builder';
24
- export const StudioLambdaEditor = observer((props) => {
25
- const { className, lambdaEditorState, disabled, forceBackdrop, expectedType, onExpectedTypeLabelSelect, matchedExpectedType, disableExpansion, forceExpansion, disablePopUp, useBaseTextEditorSettings, hideErrorBar, onEditorFocusEventHandler, } = props;
26
- const applicationStore = useApplicationStore();
27
- const editorStore = useEditorStore();
28
- const backdropSetter = useCallback((val) => applicationStore.setShowBackdrop(val), [applicationStore]);
29
- const onKeyDownEventHandlers = useMemo(() => [
30
- {
31
- matcher: (event) => event.keyCode === KeyCode.F8,
32
- action: (event) => {
33
- flowResult(editorStore.graphState.checkLambdaParsingError(lambdaEditorState, !disabled, () => flowResult(editorStore.toggleTextMode()))).catch(applicationStore.alertUnhandledError);
34
- },
35
- },
36
- {
37
- matcher: (event) => event.keyCode === KeyCode.F9,
38
- action: (event) => {
39
- flowResult(editorStore.graphState.checkLambdaParsingError(lambdaEditorState, !disabled, async () => {
40
- await flowResult(editorStore.graphState.globalCompileInFormMode());
41
- })).catch(applicationStore.alertUnhandledError);
42
- },
43
- },
44
- {
45
- matcher: (event) => event.keyCode === KeyCode.F10,
46
- action: (event) => {
47
- flowResult(editorStore.graphState.checkLambdaParsingError(lambdaEditorState, !disabled, () => flowResult(editorStore.graphState.graphGenerationState.globalGenerate()))).catch(applicationStore.alertUnhandledError);
48
- },
49
- },
50
- ], [disabled, lambdaEditorState, applicationStore, editorStore]);
51
- return (_jsx(LambdaEditor, { className: className, disabled: disabled, lambdaEditorState: lambdaEditorState, expectedType: expectedType, matchedExpectedType: matchedExpectedType, onExpectedTypeLabelSelect: onExpectedTypeLabelSelect, forceBackdrop: forceBackdrop, backdropSetter: backdropSetter, disableExpansion: disableExpansion, forceExpansion: forceExpansion, disablePopUp: disablePopUp, useBaseTextEditorSettings: useBaseTextEditorSettings, hideErrorBar: hideErrorBar, onKeyDownEventHandlers: onKeyDownEventHandlers, onEditorFocusEventHandler: onEditorFocusEventHandler }, lambdaEditorState.uuid));
52
- });
53
- //# sourceMappingURL=StudioLambdaEditor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StudioLambdaEditor.js","sourceRoot":"","sources":["../../../src/components/shared/StudioLambdaEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAuB,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAGL,YAAY,GACb,MAAM,6BAA6B,CAAC;AAErC,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CACxC,CAAC,KAmBA,EAAE,EAAE;IACH,MAAM,EACJ,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,yBAAyB,EACzB,YAAY,EACZ,yBAAyB,GAC1B,GAAG,KAAK,CAAC;IACV,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,GAAY,EAAE,EAAE,CAAC,gBAAgB,CAAC,eAAe,CAAC,GAAG,CAAC,EACvD,CAAC,gBAAgB,CAAC,CACnB,CAAC;IACF,MAAM,sBAAsB,GAAwC,OAAO,CACzE,GAAG,EAAE,CAAC;QACJ;YACE,OAAO,EAAE,CAAC,KAAqB,EAAW,EAAE,CAC1C,KAAK,CAAC,OAAO,KAAK,OAAO,CAAC,EAAE;YAC9B,MAAM,EAAE,CAAC,KAAqB,EAAQ,EAAE;gBACtC,UAAU,CACR,WAAW,CAAC,UAAU,CAAC,uBAAuB,CAC5C,iBAAiB,EACjB,CAAC,QAAQ,EACT,GAAG,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC,CAC/C,CACF,CAAC,KAAK,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;YAChD,CAAC;SACF;QACD;YACE,OAAO,EAAE,CAAC,KAAqB,EAAW,EAAE,CAC1C,KAAK,CAAC,OAAO,KAAK,OAAO,CAAC,EAAE;YAC9B,MAAM,EAAE,CAAC,KAAqB,EAAQ,EAAE;gBACtC,UAAU,CACR,WAAW,CAAC,UAAU,CAAC,uBAAuB,CAC5C,iBAAiB,EACjB,CAAC,QAAQ,EACT,KAAK,IAAI,EAAE;oBACT,MAAM,UAAU,CACd,WAAW,CAAC,UAAU,CAAC,uBAAuB,EAAE,CACjD,CAAC;gBACJ,CAAC,CACF,CACF,CAAC,KAAK,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;YAChD,CAAC;SACF;QACD;YACE,OAAO,EAAE,CAAC,KAAqB,EAAW,EAAE,CAC1C,KAAK,CAAC,OAAO,KAAK,OAAO,CAAC,GAAG;YAC/B,MAAM,EAAE,CAAC,KAAqB,EAAQ,EAAE;gBACtC,UAAU,CACR,WAAW,CAAC,UAAU,CAAC,uBAAuB,CAC5C,iBAAiB,EACjB,CAAC,QAAQ,EACT,GAAG,EAAE,CACH,UAAU,CACR,WAAW,CAAC,UAAU,CAAC,oBAAoB,CAAC,cAAc,EAAE,CAC7D,CACJ,CACF,CAAC,KAAK,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;YAChD,CAAC;SACF;KACF,EACD,CAAC,QAAQ,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,WAAW,CAAC,CAC7D,CAAC;IAEF,OAAO,CACL,KAAC,YAAY,IAEX,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,EAAE,YAAY,EAC1B,mBAAmB,EAAE,mBAAmB,EACxC,yBAAyB,EAAE,yBAAyB,EACpD,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,cAAc,EAC9B,YAAY,EAAE,YAAY,EAC1B,yBAAyB,EAAE,yBAAyB,EACpD,YAAY,EAAE,YAAY,EAC1B,sBAAsB,EAAE,sBAAsB,EAC9C,yBAAyB,EAAE,yBAAyB,IAf/C,iBAAiB,CAAC,IAAI,CAgB3B,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,28 +0,0 @@
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
- /// <reference types="react" resolution-mode="require"/>
17
- import { type editor as monacoEditorAPI } from 'monaco-editor';
18
- import { type EDITOR_LANGUAGE } from '@finos/legend-application';
19
- export declare const StudioTextInputEditor: React.FC<{
20
- inputValue: string;
21
- isReadOnly?: boolean | undefined;
22
- language: EDITOR_LANGUAGE;
23
- showMiniMap?: boolean | undefined;
24
- hideGutter?: boolean | undefined;
25
- extraEditorOptions?: monacoEditorAPI.IEditorOptions & monacoEditorAPI.IGlobalEditorOptions;
26
- updateInput?: ((val: string) => void) | undefined;
27
- }>;
28
- //# sourceMappingURL=StudioTextInputEditor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StudioTextInputEditor.d.ts","sourceRoot":"","sources":["../../../src/components/shared/StudioTextInputEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,MAAM,IAAI,eAAe,EAG/B,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,KAAK,eAAe,EAGrB,MAAM,2BAA2B,CAAC;AAInC,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,eAAe,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,kBAAkB,CAAC,EAAE,eAAe,CAAC,cAAc,GACjD,eAAe,CAAC,oBAAoB,CAAC;IACvC,WAAW,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACnD,CA0CA,CAAC"}
@@ -1,36 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- /**
3
- * Copyright (c) 2020-present, Goldman Sachs
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { useMemo } from 'react';
18
- import { KeyCode, } from 'monaco-editor';
19
- import { TextInputEditor, useApplicationStore, } from '@finos/legend-application';
20
- import { flowResult } from 'mobx';
21
- import { useEditorStore } from '../editor/EditorStoreProvider.js';
22
- export const StudioTextInputEditor = (props) => {
23
- const { inputValue, isReadOnly, updateInput, language, showMiniMap, hideGutter, extraEditorOptions, } = props;
24
- const applicationStore = useApplicationStore();
25
- const editorStore = useEditorStore();
26
- const onKeyDownEventHandlers = useMemo(() => [
27
- {
28
- matcher: (event) => event.keyCode === KeyCode.F8,
29
- action: (event) => {
30
- flowResult(editorStore.toggleTextMode()).catch(applicationStore.alertUnhandledError);
31
- },
32
- },
33
- ], [applicationStore, editorStore]);
34
- return (_jsx(TextInputEditor, { inputValue: inputValue, updateInput: updateInput, isReadOnly: isReadOnly, language: language, showMiniMap: showMiniMap, hideGutter: hideGutter, extraEditorOptions: extraEditorOptions, onKeyDownEventHandlers: onKeyDownEventHandlers }));
35
- };
36
- //# sourceMappingURL=StudioTextInputEditor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StudioTextInputEditor.js","sourceRoot":"","sources":["../../../src/components/shared/StudioTextInputEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAGL,OAAO,GACR,MAAM,eAAe,CAAC;AACvB,OAAO,EAGL,eAAe,EACf,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,MAAM,CAAC,MAAM,qBAAqB,GAS7B,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EACJ,UAAU,EACV,UAAU,EACV,WAAW,EACX,QAAQ,EACR,WAAW,EACX,UAAU,EACV,kBAAkB,GACnB,GAAG,KAAK,CAAC;IAEV,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,MAAM,sBAAsB,GAC1B,OAAO,CACL,GAAG,EAAE,CAAC;QACJ;YACE,OAAO,EAAE,CAAC,KAAqB,EAAW,EAAE,CAC1C,KAAK,CAAC,OAAO,KAAK,OAAO,CAAC,EAAE;YAC9B,MAAM,EAAE,CAAC,KAAqB,EAAQ,EAAE;gBACtC,UAAU,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC,CAAC,KAAK,CAC5C,gBAAgB,CAAC,mBAAmB,CACrC,CAAC;YACJ,CAAC;SACF;KACF,EACD,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAChC,CAAC;IAEJ,OAAO,CACL,KAAC,eAAe,IACd,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,kBAAkB,EACtC,sBAAsB,EAAE,sBAAsB,GAC9C,CACH,CAAC;AACJ,CAAC,CAAC"}
@@ -1,146 +0,0 @@
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 { useMemo, useCallback } from 'react';
18
- import { type IKeyboardEvent, KeyCode } from 'monaco-editor';
19
- import { observer } from 'mobx-react-lite';
20
- import { useApplicationStore } from '@finos/legend-application';
21
- import { flowResult } from 'mobx';
22
- import type { Type } from '@finos/legend-graph';
23
- import { useEditorStore } from '../editor/EditorStoreProvider.js';
24
- import {
25
- type LambdaEditorState,
26
- type LambdaEditorOnKeyDownEventHandler,
27
- LambdaEditor,
28
- } from '@finos/legend-query-builder';
29
-
30
- export const StudioLambdaEditor = observer(
31
- (props: {
32
- className?: string | undefined;
33
- disabled: boolean;
34
- lambdaEditorState: LambdaEditorState;
35
- /**
36
- * TODO: when we pass in these expected type we should match a type as expected type if it's covariance, i.e. it is a subtype of
37
- * the expected type. Note that we also have to handle that relationship for Primitive type
38
- * See https://dzone.com/articles/covariance-and-contravariance
39
- */
40
- expectedType?: Type | undefined;
41
- matchedExpectedType?: (() => boolean) | undefined;
42
- onExpectedTypeLabelSelect?: (() => void) | undefined;
43
- forceBackdrop: boolean;
44
- disableExpansion?: boolean | undefined;
45
- forceExpansion?: boolean | undefined;
46
- disablePopUp?: boolean | undefined;
47
- useBaseTextEditorSettings?: boolean | undefined;
48
- hideErrorBar?: boolean | undefined;
49
- onEditorFocusEventHandler?: (() => void) | undefined;
50
- }) => {
51
- const {
52
- className,
53
- lambdaEditorState,
54
- disabled,
55
- forceBackdrop,
56
- expectedType,
57
- onExpectedTypeLabelSelect,
58
- matchedExpectedType,
59
- disableExpansion,
60
- forceExpansion,
61
- disablePopUp,
62
- useBaseTextEditorSettings,
63
- hideErrorBar,
64
- onEditorFocusEventHandler,
65
- } = props;
66
- const applicationStore = useApplicationStore();
67
- const editorStore = useEditorStore();
68
-
69
- const backdropSetter = useCallback(
70
- (val: boolean) => applicationStore.setShowBackdrop(val),
71
- [applicationStore],
72
- );
73
- const onKeyDownEventHandlers: LambdaEditorOnKeyDownEventHandler[] = useMemo(
74
- () => [
75
- {
76
- matcher: (event: IKeyboardEvent): boolean =>
77
- event.keyCode === KeyCode.F8,
78
- action: (event: IKeyboardEvent): void => {
79
- flowResult(
80
- editorStore.graphState.checkLambdaParsingError(
81
- lambdaEditorState,
82
- !disabled,
83
- () => flowResult(editorStore.toggleTextMode()),
84
- ),
85
- ).catch(applicationStore.alertUnhandledError);
86
- },
87
- },
88
- {
89
- matcher: (event: IKeyboardEvent): boolean =>
90
- event.keyCode === KeyCode.F9,
91
- action: (event: IKeyboardEvent): void => {
92
- flowResult(
93
- editorStore.graphState.checkLambdaParsingError(
94
- lambdaEditorState,
95
- !disabled,
96
- async () => {
97
- await flowResult(
98
- editorStore.graphState.globalCompileInFormMode(),
99
- );
100
- },
101
- ),
102
- ).catch(applicationStore.alertUnhandledError);
103
- },
104
- },
105
- {
106
- matcher: (event: IKeyboardEvent): boolean =>
107
- event.keyCode === KeyCode.F10,
108
- action: (event: IKeyboardEvent): void => {
109
- flowResult(
110
- editorStore.graphState.checkLambdaParsingError(
111
- lambdaEditorState,
112
- !disabled,
113
- () =>
114
- flowResult(
115
- editorStore.graphState.graphGenerationState.globalGenerate(),
116
- ),
117
- ),
118
- ).catch(applicationStore.alertUnhandledError);
119
- },
120
- },
121
- ],
122
- [disabled, lambdaEditorState, applicationStore, editorStore],
123
- );
124
-
125
- return (
126
- <LambdaEditor
127
- key={lambdaEditorState.uuid}
128
- className={className}
129
- disabled={disabled}
130
- lambdaEditorState={lambdaEditorState}
131
- expectedType={expectedType}
132
- matchedExpectedType={matchedExpectedType}
133
- onExpectedTypeLabelSelect={onExpectedTypeLabelSelect}
134
- forceBackdrop={forceBackdrop}
135
- backdropSetter={backdropSetter}
136
- disableExpansion={disableExpansion}
137
- forceExpansion={forceExpansion}
138
- disablePopUp={disablePopUp}
139
- useBaseTextEditorSettings={useBaseTextEditorSettings}
140
- hideErrorBar={hideErrorBar}
141
- onKeyDownEventHandlers={onKeyDownEventHandlers}
142
- onEditorFocusEventHandler={onEditorFocusEventHandler}
143
- />
144
- );
145
- },
146
- );
@@ -1,83 +0,0 @@
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 { useMemo } from 'react';
18
- import {
19
- type editor as monacoEditorAPI,
20
- type IKeyboardEvent,
21
- KeyCode,
22
- } from 'monaco-editor';
23
- import {
24
- type TextInputEditorOnKeyDownEventHandler,
25
- type EDITOR_LANGUAGE,
26
- TextInputEditor,
27
- useApplicationStore,
28
- } from '@finos/legend-application';
29
- import { flowResult } from 'mobx';
30
- import { useEditorStore } from '../editor/EditorStoreProvider.js';
31
-
32
- export const StudioTextInputEditor: React.FC<{
33
- inputValue: string;
34
- isReadOnly?: boolean | undefined;
35
- language: EDITOR_LANGUAGE;
36
- showMiniMap?: boolean | undefined;
37
- hideGutter?: boolean | undefined;
38
- extraEditorOptions?: monacoEditorAPI.IEditorOptions &
39
- monacoEditorAPI.IGlobalEditorOptions;
40
- updateInput?: ((val: string) => void) | undefined;
41
- }> = (props) => {
42
- const {
43
- inputValue,
44
- isReadOnly,
45
- updateInput,
46
- language,
47
- showMiniMap,
48
- hideGutter,
49
- extraEditorOptions,
50
- } = props;
51
-
52
- const applicationStore = useApplicationStore();
53
- const editorStore = useEditorStore();
54
-
55
- const onKeyDownEventHandlers: TextInputEditorOnKeyDownEventHandler[] =
56
- useMemo(
57
- () => [
58
- {
59
- matcher: (event: IKeyboardEvent): boolean =>
60
- event.keyCode === KeyCode.F8,
61
- action: (event: IKeyboardEvent): void => {
62
- flowResult(editorStore.toggleTextMode()).catch(
63
- applicationStore.alertUnhandledError,
64
- );
65
- },
66
- },
67
- ],
68
- [applicationStore, editorStore],
69
- );
70
-
71
- return (
72
- <TextInputEditor
73
- inputValue={inputValue}
74
- updateInput={updateInput}
75
- isReadOnly={isReadOnly}
76
- language={language}
77
- showMiniMap={showMiniMap}
78
- hideGutter={hideGutter}
79
- extraEditorOptions={extraEditorOptions}
80
- onKeyDownEventHandlers={onKeyDownEventHandlers}
81
- />
82
- );
83
- };