@finos/legend-application-studio 20.1.2 → 20.2.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 (311) hide show
  1. package/lib/components/Core_LegendStudioApplicationPlugin.js +13 -13
  2. package/lib/components/DSL_ExternalFormat_LegendStudioApplicationPlugin.js +4 -4
  3. package/lib/components/DSL_ExternalFormat_LegendStudioDocumentation.d.ts +2 -2
  4. package/lib/components/DSL_ExternalFormat_LegendStudioDocumentation.js +2 -2
  5. package/lib/components/LegendStudioApplication.d.ts.map +1 -1
  6. package/lib/components/LegendStudioApplication.js +19 -19
  7. package/lib/components/LegendStudioApplication.js.map +1 -1
  8. package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
  9. package/lib/components/editor/command-center/ProjectSearchCommand.js +1 -1
  10. package/lib/components/editor/command-center/ProjectSearchCommand.js.map +1 -1
  11. package/lib/components/editor/edit-panel/EditPanel.d.ts.map +1 -1
  12. package/lib/components/editor/edit-panel/EditPanel.js +52 -73
  13. package/lib/components/editor/edit-panel/EditPanel.js.map +1 -1
  14. package/lib/components/editor/edit-panel/FileGenerationViewer.js +5 -5
  15. package/lib/components/editor/edit-panel/FileGenerationViewer.js.map +1 -1
  16. package/lib/components/editor/edit-panel/FunctionEditor.js +3 -3
  17. package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
  18. package/lib/components/editor/edit-panel/GenerationSpecificationEditor.d.ts.map +1 -1
  19. package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js +3 -3
  20. package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js.map +1 -1
  21. package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
  22. package/lib/components/editor/edit-panel/GrammarTextEditor.js +14 -14
  23. package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
  24. package/lib/components/editor/edit-panel/ModelImporter.js +1 -1
  25. package/lib/components/editor/edit-panel/ModelImporter.js.map +1 -1
  26. package/lib/components/editor/edit-panel/RuntimeEditor.d.ts.map +1 -1
  27. package/lib/components/editor/edit-panel/RuntimeEditor.js +4 -4
  28. package/lib/components/editor/edit-panel/RuntimeEditor.js.map +1 -1
  29. package/lib/components/editor/edit-panel/UnsupportedElementEditor.d.ts.map +1 -1
  30. package/lib/components/editor/edit-panel/UnsupportedElementEditor.js +1 -1
  31. package/lib/components/editor/edit-panel/UnsupportedElementEditor.js.map +1 -1
  32. package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.js +1 -1
  33. package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.js.map +1 -1
  34. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js +3 -3
  35. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js.map +1 -1
  36. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.d.ts.map +1 -1
  37. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js +3 -3
  38. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js.map +1 -1
  39. package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js +1 -1
  40. package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js.map +1 -1
  41. package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.d.ts.map +1 -1
  42. package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js +3 -3
  43. package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js.map +1 -1
  44. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.d.ts.map +1 -1
  45. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js +1 -1
  46. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js.map +1 -1
  47. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +3 -3
  48. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
  49. package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.js +1 -1
  50. package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.js.map +1 -1
  51. package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js +2 -2
  52. package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js.map +1 -1
  53. package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js +1 -1
  54. package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js.map +1 -1
  55. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js +2 -2
  56. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js.map +1 -1
  57. package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js +2 -2
  58. package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js.map +1 -1
  59. package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js +5 -5
  60. package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js.map +1 -1
  61. package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.js +3 -3
  62. package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.js.map +1 -1
  63. package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js +1 -1
  64. package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js.map +1 -1
  65. package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js +3 -3
  66. package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js.map +1 -1
  67. package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js +3 -3
  68. package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js.map +1 -1
  69. package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.d.ts.map +1 -1
  70. package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js +11 -9
  71. package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js.map +1 -1
  72. package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js +2 -2
  73. package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js.map +1 -1
  74. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +1 -1
  75. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
  76. package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts.map +1 -1
  77. package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js +2 -2
  78. package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js.map +1 -1
  79. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts.map +1 -1
  80. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js +5 -4
  81. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js.map +1 -1
  82. package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
  83. package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.js +1 -1
  84. package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.js.map +1 -1
  85. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
  86. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.js +10 -3
  87. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.js.map +1 -1
  88. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts.map +1 -1
  89. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js +2 -2
  90. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
  91. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts.map +1 -1
  92. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js +8 -8
  93. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js.map +1 -1
  94. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts.map +1 -1
  95. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js +2 -2
  96. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js.map +1 -1
  97. package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.d.ts.map +1 -1
  98. package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.js +1 -1
  99. package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.js.map +1 -1
  100. package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js +1 -1
  101. package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js.map +1 -1
  102. package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js +1 -1
  103. package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js.map +1 -1
  104. package/lib/components/editor/edit-panel/uml-editor/UMLEditor.d.ts.map +1 -1
  105. package/lib/components/editor/edit-panel/uml-editor/UMLEditor.js +1 -1
  106. package/lib/components/editor/edit-panel/uml-editor/UMLEditor.js.map +1 -1
  107. package/lib/components/editor/side-bar/Explorer.js +5 -5
  108. package/lib/components/editor/side-bar/Explorer.js.map +1 -1
  109. package/lib/components/editor/side-bar/LocalChanges.js +6 -6
  110. package/lib/components/editor/side-bar/LocalChanges.js.map +1 -1
  111. package/lib/components/editor/side-bar/WorkspaceReview.js +4 -4
  112. package/lib/components/editor/side-bar/WorkspaceReview.js.map +1 -1
  113. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js +1 -1
  114. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js.map +1 -1
  115. package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.js +6 -6
  116. package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.js.map +1 -1
  117. package/lib/components/editor/side-bar/WorkspaceUpdater.js +6 -6
  118. package/lib/components/editor/side-bar/WorkspaceUpdater.js.map +1 -1
  119. package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts.map +1 -1
  120. package/lib/components/workspace-review/WorkspaceReviewPanel.js +16 -16
  121. package/lib/components/workspace-review/WorkspaceReviewPanel.js.map +1 -1
  122. package/lib/components/workspace-review/WorkspaceReviewSideBar.js +4 -4
  123. package/lib/components/workspace-review/WorkspaceReviewSideBar.js.map +1 -1
  124. package/lib/index.css +2 -2
  125. package/lib/index.css.map +1 -1
  126. package/lib/index.d.ts +1 -0
  127. package/lib/index.d.ts.map +1 -1
  128. package/lib/index.js +1 -0
  129. package/lib/index.js.map +1 -1
  130. package/lib/package.json +1 -1
  131. package/lib/stores/EditorGraphState.d.ts +1 -1
  132. package/lib/stores/EditorGraphState.d.ts.map +1 -1
  133. package/lib/stores/EditorGraphState.js +24 -44
  134. package/lib/stores/EditorGraphState.js.map +1 -1
  135. package/lib/stores/EditorSDLCState.js +3 -3
  136. package/lib/stores/EditorSDLCState.js.map +1 -1
  137. package/lib/stores/EditorStore.d.ts +19 -42
  138. package/lib/stores/EditorStore.d.ts.map +1 -1
  139. package/lib/stores/EditorStore.js +42 -223
  140. package/lib/stores/EditorStore.js.map +1 -1
  141. package/lib/stores/EditorTabManagerState.d.ts +56 -0
  142. package/lib/stores/EditorTabManagerState.d.ts.map +1 -0
  143. package/lib/stores/EditorTabManagerState.js +144 -0
  144. package/lib/stores/EditorTabManagerState.js.map +1 -0
  145. package/lib/stores/ExplorerTreeState.d.ts.map +1 -1
  146. package/lib/stores/ExplorerTreeState.js +1 -1
  147. package/lib/stores/ExplorerTreeState.js.map +1 -1
  148. package/lib/stores/LegendStudioDocumentation.d.ts +14 -14
  149. package/lib/stores/LegendStudioDocumentation.js +14 -14
  150. package/lib/stores/editor-state/EditorState.d.ts +7 -6
  151. package/lib/stores/editor-state/EditorState.d.ts.map +1 -1
  152. package/lib/stores/editor-state/EditorState.js +3 -6
  153. package/lib/stores/editor-state/EditorState.js.map +1 -1
  154. package/lib/stores/editor-state/FileGenerationViewerState.d.ts +5 -4
  155. package/lib/stores/editor-state/FileGenerationViewerState.d.ts.map +1 -1
  156. package/lib/stores/editor-state/FileGenerationViewerState.js +11 -8
  157. package/lib/stores/editor-state/FileGenerationViewerState.js.map +1 -1
  158. package/lib/stores/editor-state/GraphGenerationState.d.ts.map +1 -1
  159. package/lib/stores/editor-state/GraphGenerationState.js +10 -16
  160. package/lib/stores/editor-state/GraphGenerationState.js.map +1 -1
  161. package/lib/stores/editor-state/ModelImporterState.d.ts +2 -1
  162. package/lib/stores/editor-state/ModelImporterState.d.ts.map +1 -1
  163. package/lib/stores/editor-state/ModelImporterState.js +4 -1
  164. package/lib/stores/editor-state/ModelImporterState.js.map +1 -1
  165. package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts +2 -1
  166. package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
  167. package/lib/stores/editor-state/ProjectConfigurationEditorState.js +5 -2
  168. package/lib/stores/editor-state/ProjectConfigurationEditorState.js.map +1 -1
  169. package/lib/stores/editor-state/element-editor-state/ElementEditorState.d.ts +13 -1
  170. package/lib/stores/editor-state/element-editor-state/ElementEditorState.d.ts.map +1 -1
  171. package/lib/stores/editor-state/element-editor-state/ElementEditorState.js +9 -2
  172. package/lib/stores/editor-state/element-editor-state/ElementEditorState.js.map +1 -1
  173. package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.js +1 -1
  174. package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.js.map +1 -1
  175. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +1 -3
  176. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
  177. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js +2 -3
  178. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
  179. package/lib/stores/editor-state/element-editor-state/mapping/MappingElementState.d.ts +7 -6
  180. package/lib/stores/editor-state/element-editor-state/mapping/MappingElementState.d.ts.map +1 -1
  181. package/lib/stores/editor-state/element-editor-state/mapping/MappingElementState.js +7 -3
  182. package/lib/stores/editor-state/element-editor-state/mapping/MappingElementState.js.map +1 -1
  183. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts +3 -2
  184. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts.map +1 -1
  185. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js +6 -2
  186. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
  187. package/lib/stores/editor-state/element-editor-state/mapping/MappingTabManagerState.d.ts +19 -0
  188. package/lib/stores/editor-state/element-editor-state/mapping/MappingTabManagerState.d.ts.map +1 -0
  189. package/lib/stores/editor-state/element-editor-state/mapping/MappingTabManagerState.js +19 -0
  190. package/lib/stores/editor-state/element-editor-state/mapping/MappingTabManagerState.js.map +1 -0
  191. package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.d.ts +3 -2
  192. package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.d.ts.map +1 -1
  193. package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js +6 -2
  194. package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -1
  195. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.d.ts +7 -0
  196. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.d.ts.map +1 -1
  197. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js +21 -2
  198. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js.map +1 -1
  199. package/lib/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.d.ts +5 -3
  200. package/lib/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.d.ts.map +1 -1
  201. package/lib/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js +8 -4
  202. package/lib/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js.map +1 -1
  203. package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffEditorState.d.ts +1 -1
  204. package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffEditorState.js +1 -1
  205. package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.d.ts +7 -5
  206. package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.d.ts.map +1 -1
  207. package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js +19 -12
  208. package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js.map +1 -1
  209. package/lib/stores/project-viewer/ProjectViewerStore.js +1 -1
  210. package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
  211. package/lib/stores/shared/DnDUtils.d.ts +1 -1
  212. package/lib/stores/shared/DnDUtils.d.ts.map +1 -1
  213. package/lib/stores/shared/DnDUtils.js.map +1 -1
  214. package/lib/stores/shared/modifier/DSL_Service_GraphModifierHelper.d.ts +1 -0
  215. package/lib/stores/shared/modifier/DSL_Service_GraphModifierHelper.d.ts.map +1 -1
  216. package/lib/stores/shared/modifier/DSL_Service_GraphModifierHelper.js +3 -0
  217. package/lib/stores/shared/modifier/DSL_Service_GraphModifierHelper.js.map +1 -1
  218. package/lib/stores/sidebar-state/LocalChangesState.js +4 -4
  219. package/lib/stores/sidebar-state/LocalChangesState.js.map +1 -1
  220. package/lib/stores/sidebar-state/WorkspaceReviewState.js +1 -1
  221. package/lib/stores/sidebar-state/WorkspaceReviewState.js.map +1 -1
  222. package/lib/stores/sidebar-state/WorkspaceSyncState.d.ts +6 -6
  223. package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js +7 -7
  224. package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js.map +1 -1
  225. package/lib/stores/sidebar-state/WorkspaceUpdaterState.js +2 -2
  226. package/lib/stores/sidebar-state/WorkspaceUpdaterState.js.map +1 -1
  227. package/package.json +10 -10
  228. package/src/components/Core_LegendStudioApplicationPlugin.tsx +13 -13
  229. package/src/components/DSL_ExternalFormat_LegendStudioApplicationPlugin.tsx +4 -4
  230. package/src/components/DSL_ExternalFormat_LegendStudioDocumentation.ts +2 -2
  231. package/src/components/LegendStudioApplication.tsx +0 -3
  232. package/src/components/editor/command-center/ProjectSearchCommand.tsx +4 -1
  233. package/src/components/editor/edit-panel/EditPanel.tsx +74 -181
  234. package/src/components/editor/edit-panel/FileGenerationViewer.tsx +5 -5
  235. package/src/components/editor/edit-panel/FunctionEditor.tsx +3 -3
  236. package/src/components/editor/edit-panel/GenerationSpecificationEditor.tsx +7 -5
  237. package/src/components/editor/edit-panel/GrammarTextEditor.tsx +16 -20
  238. package/src/components/editor/edit-panel/ModelImporter.tsx +1 -1
  239. package/src/components/editor/edit-panel/RuntimeEditor.tsx +6 -9
  240. package/src/components/editor/edit-panel/UnsupportedElementEditor.tsx +4 -3
  241. package/src/components/editor/edit-panel/connection-editor/ConnectionEditor.tsx +1 -1
  242. package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +3 -3
  243. package/src/components/editor/edit-panel/data-editor/EmbeddedDataEditor.tsx +4 -3
  244. package/src/components/editor/edit-panel/diff-editor/EntityDiffView.tsx +1 -1
  245. package/src/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.tsx +6 -5
  246. package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.tsx +2 -1
  247. package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +3 -3
  248. package/src/components/editor/edit-panel/mapping-editor/ClassMappingEditor.tsx +1 -1
  249. package/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx +2 -2
  250. package/src/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.tsx +1 -1
  251. package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx +2 -2
  252. package/src/components/editor/edit-panel/mapping-editor/MappingEditor.tsx +3 -3
  253. package/src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx +5 -5
  254. package/src/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.tsx +3 -3
  255. package/src/components/editor/edit-panel/mapping-editor/NewMappingElementModal.tsx +1 -1
  256. package/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx +3 -3
  257. package/src/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.tsx +3 -3
  258. package/src/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.tsx +14 -9
  259. package/src/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.tsx +2 -2
  260. package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +1 -1
  261. package/src/components/editor/edit-panel/service-editor/ServiceEditor.tsx +4 -2
  262. package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +14 -4
  263. package/src/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.tsx +2 -1
  264. package/src/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.tsx +47 -8
  265. package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +3 -2
  266. package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +12 -8
  267. package/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx +3 -2
  268. package/src/components/editor/edit-panel/uml-editor/ProfileEditor.tsx +2 -1
  269. package/src/components/editor/edit-panel/uml-editor/StereotypeSelector.tsx +1 -1
  270. package/src/components/editor/edit-panel/uml-editor/TaggedValueEditor.tsx +1 -1
  271. package/src/components/editor/edit-panel/uml-editor/UMLEditor.tsx +2 -1
  272. package/src/components/editor/side-bar/Explorer.tsx +5 -5
  273. package/src/components/editor/side-bar/LocalChanges.tsx +6 -6
  274. package/src/components/editor/side-bar/WorkspaceReview.tsx +4 -4
  275. package/src/components/editor/side-bar/WorkspaceSyncConflictResolver.tsx +6 -6
  276. package/src/components/editor/side-bar/WorkspaceUpdateConflictResolver.tsx +6 -6
  277. package/src/components/editor/side-bar/WorkspaceUpdater.tsx +6 -6
  278. package/src/components/workspace-review/WorkspaceReviewPanel.tsx +20 -24
  279. package/src/components/workspace-review/WorkspaceReviewSideBar.tsx +4 -4
  280. package/src/index.ts +1 -0
  281. package/src/stores/EditorGraphState.ts +39 -54
  282. package/src/stores/EditorSDLCState.ts +3 -3
  283. package/src/stores/EditorStore.ts +59 -303
  284. package/src/stores/EditorTabManagerState.ts +175 -0
  285. package/src/stores/ExplorerTreeState.ts +3 -1
  286. package/src/stores/LegendStudioDocumentation.ts +14 -14
  287. package/src/stores/editor-state/EditorState.ts +9 -8
  288. package/src/stores/editor-state/FileGenerationViewerState.ts +12 -8
  289. package/src/stores/editor-state/GraphGenerationState.ts +14 -26
  290. package/src/stores/editor-state/ModelImporterState.ts +5 -1
  291. package/src/stores/editor-state/ProjectConfigurationEditorState.ts +6 -2
  292. package/src/stores/editor-state/element-editor-state/ElementEditorState.ts +23 -2
  293. package/src/stores/editor-state/element-editor-state/ElementFileGenerationState.ts +1 -1
  294. package/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts +7 -8
  295. package/src/stores/editor-state/element-editor-state/mapping/MappingElementState.ts +15 -6
  296. package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +7 -2
  297. package/src/stores/editor-state/element-editor-state/mapping/MappingTabManagerState.ts +19 -0
  298. package/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +7 -2
  299. package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.ts +32 -0
  300. package/src/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.ts +21 -4
  301. package/src/stores/editor-state/entity-diff-editor-state/EntityDiffEditorState.ts +1 -1
  302. package/src/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.ts +28 -12
  303. package/src/stores/project-viewer/ProjectViewerStore.ts +1 -1
  304. package/src/stores/shared/DnDUtils.ts +1 -1
  305. package/src/stores/shared/modifier/DSL_Service_GraphModifierHelper.ts +6 -0
  306. package/src/stores/sidebar-state/LocalChangesState.ts +4 -4
  307. package/src/stores/sidebar-state/WorkspaceReviewState.ts +1 -1
  308. package/src/stores/sidebar-state/WorkspaceSyncState.ts +6 -6
  309. package/src/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.ts +7 -7
  310. package/src/stores/sidebar-state/WorkspaceUpdaterState.ts +2 -2
  311. package/tsconfig.json +2 -0
@@ -309,7 +309,7 @@ export class EditorGraphState {
309
309
 
310
310
  clearProblems(): void {
311
311
  this.error = undefined;
312
- this.editorStore.openedEditorStates
312
+ this.editorStore.tabManagerState.tabs
313
313
  .filter(filterByType(ElementEditorState))
314
314
  .forEach((editorState) => editorState.clearCompilationError());
315
315
  this.mostRecentFormModeCompilationGraphHash = undefined;
@@ -424,7 +424,9 @@ export class EditorGraphState {
424
424
  projectConfigurationEditorState.setSelectedTab(
425
425
  CONFIGURATION_EDITOR_TAB.PROJECT_DEPENDENCIES,
426
426
  );
427
- this.editorStore.setCurrentEditorState(projectConfigurationEditorState);
427
+ this.editorStore.tabManagerState.openTab(
428
+ projectConfigurationEditorState,
429
+ );
428
430
  } else if (error instanceof GraphDataDeserializationError) {
429
431
  // if something goes wrong with de-serialization, redirect to model importer to fix
430
432
  this.redirectToModelImporterForDebugging(error);
@@ -501,7 +503,9 @@ export class EditorGraphState {
501
503
  );
502
504
  // Making an async call
503
505
  nativeImporterState.loadCurrentProjectEntities();
504
- this.editorStore.openState(this.editorStore.modelImporterState);
506
+ this.editorStore.tabManagerState.openTab(
507
+ this.editorStore.modelImporterState,
508
+ );
505
509
  }
506
510
 
507
511
  /**
@@ -620,13 +624,14 @@ export class EditorGraphState {
620
624
  false,
621
625
  );
622
626
  if (element) {
623
- this.editorStore.openElement(element);
627
+ this.editorStore.tabManagerState.openElementEditor(element);
624
628
  if (
625
- this.editorStore.currentEditorState instanceof ElementEditorState
629
+ this.editorStore.tabManagerState.currentTab instanceof
630
+ ElementEditorState
626
631
  ) {
627
632
  // check if we can reveal the error in the element editor state
628
633
  fallbackToTextModeForDebugging =
629
- !this.editorStore.currentEditorState.revealCompilationError(
634
+ !this.editorStore.tabManagerState.currentTab.revealCompilationError(
630
635
  error,
631
636
  );
632
637
  }
@@ -801,8 +806,10 @@ export class EditorGraphState {
801
806
  this.editorStore.grammarTextEditorState.setGraphGrammarText('');
802
807
  this.editorStore.grammarTextEditorState.resetCurrentElementLabelRegexString();
803
808
  this.editorStore.setGraphEditMode(GRAPH_EDITOR_MODE.FORM);
804
- if (this.editorStore.currentEditorState) {
805
- this.editorStore.openState(this.editorStore.currentEditorState);
809
+ if (this.editorStore.tabManagerState.currentTab) {
810
+ this.editorStore.tabManagerState.openTab(
811
+ this.editorStore.tabManagerState.currentTab,
812
+ );
806
813
  }
807
814
  } catch (error) {
808
815
  assertErrorThrown(error);
@@ -880,7 +887,7 @@ export class EditorGraphState {
880
887
  * so far it is tempting to refer to elements in the graph from various editor state. On top of that, change detection
881
888
  * sometimes obfuscate the investigation but we have cleared it out with explicit disposing of reaction
882
889
  * 2. Reusable models, at this point in time, we haven't completed stabilize the logic for handling generated models, as well
883
- * as depdendencies, we intended to save computation time by reusing these while updating the graph. This can pose potential
890
+ * as dependencies, we intended to save computation time by reusing these while updating the graph. This can pose potential
884
891
  * danger as well. Beware the way when we start to make system/project dependencies references elements of current graph
885
892
  * e.g. when we have a computed value in a immutable class that get all subclasses, etc.
886
893
  * 3. We reprocess editor states to ensure good UX, e.g. find tabs to keep open, find tree nodes to expand, etc.
@@ -947,8 +954,8 @@ export class EditorGraphState {
947
954
  *
948
955
  * @risk memory-leak
949
956
  */
950
- const openedEditorStates = this.editorStore.openedEditorStates;
951
- const currentEditorState = this.editorStore.currentEditorState;
957
+ const openedTabStates = this.editorStore.tabManagerState.tabs;
958
+ const currentTabState = this.editorStore.tabManagerState.currentTab;
952
959
  /**
953
960
  * We remove the current editor state so that we no longer let React displays the element that belongs to the old graph
954
961
  * NOTE: this causes an UI flash, but this is in many way, acceptable since the user probably should know that we are
@@ -958,7 +965,7 @@ export class EditorGraphState {
958
965
  * e.g. if the current editor is a class, we stub the class, create a new class editor state around it and copy over
959
966
  * navigation information, etc.
960
967
  */
961
- this.editorStore.closeAllEditorTabs();
968
+ this.editorStore.tabManagerState.closeAllTabs();
962
969
 
963
970
  this.editorStore.changeDetectionState.stop(); // stop change detection before disposing hash
964
971
  yield flowResult(graph_dispose(this.editorStore.graphManagerState.graph));
@@ -1007,24 +1014,9 @@ export class EditorGraphState {
1007
1014
  // this.editorStore.explorerTreeState = new ExplorerTreeState(this.applicationStore, this.editorStore);
1008
1015
  // this.editorStore.explorerTreeState.buildImmutableModelTrees();
1009
1016
  // this.editorStore.explorerTreeState.build();
1010
-
1011
- /**
1012
- * Reprocess editor states which might still hold references to old graph
1013
- *
1014
- * FIXME: we allow this so the UX stays the same but this can cause memory leak
1015
- * we should change `reprocess` model to do something like having source information
1016
- * on the form to navigate to it properly so that information is not dependent on the
1017
- * graph, but on the component itself, with IDs and such.
1018
- *
1019
- * @risk memory-leak
1020
- */
1021
- this.editorStore.openedEditorStates = openedEditorStates
1022
- .map((editorState) =>
1023
- this.editorStore.reprocessElementEditorState(editorState),
1024
- )
1025
- .filter(isNonNullable);
1026
- this.editorStore.setCurrentEditorState(
1027
- this.editorStore.findCurrentEditorState(currentEditorState),
1017
+ this.editorStore.tabManagerState.recoverTabs(
1018
+ openedTabStates,
1019
+ currentTabState,
1028
1020
  );
1029
1021
 
1030
1022
  this.editorStore.applicationStore.log.info(
@@ -1060,7 +1052,7 @@ export class EditorGraphState {
1060
1052
  prompt: 'Refreshing full application...',
1061
1053
  showLoading: true,
1062
1054
  });
1063
- this.editorStore.closeAllEditorTabs();
1055
+ this.editorStore.tabManagerState.closeAllTabs();
1064
1056
  this.editorStore.cleanUp();
1065
1057
  yield flowResult(this.editorStore.buildGraph(entities));
1066
1058
  } else {
@@ -1091,9 +1083,9 @@ export class EditorGraphState {
1091
1083
  *
1092
1084
  * @risk memory-leak
1093
1085
  */
1094
- const openedEditorStates = this.editorStore.openedEditorStates;
1095
- const currentEditorState = this.editorStore.currentEditorState;
1096
- this.editorStore.closeAllEditorTabs();
1086
+ const openedTabStates = this.editorStore.tabManagerState.tabs;
1087
+ const currentTabState = this.editorStore.tabManagerState.currentTab;
1088
+ this.editorStore.tabManagerState.closeAllTabs();
1097
1089
 
1098
1090
  yield flowResult(
1099
1091
  this.editorStore.graphManagerState.graph.generationModel.dispose(),
@@ -1116,15 +1108,9 @@ export class EditorGraphState {
1116
1108
  * @risk memory-leak
1117
1109
  */
1118
1110
  this.editorStore.explorerTreeState.reprocess();
1119
-
1120
- // so that information is not dependent on the graph, but on the component itself, with IDs and such.
1121
- this.editorStore.openedEditorStates = openedEditorStates
1122
- .map((editorState) =>
1123
- this.editorStore.reprocessElementEditorState(editorState),
1124
- )
1125
- .filter(isNonNullable);
1126
- this.editorStore.setCurrentEditorState(
1127
- this.editorStore.findCurrentEditorState(currentEditorState),
1111
+ this.editorStore.tabManagerState.recoverTabs(
1112
+ openedTabStates,
1113
+ currentTabState,
1128
1114
  );
1129
1115
  } catch (error) {
1130
1116
  assertErrorThrown(error);
@@ -1217,18 +1203,17 @@ export class EditorGraphState {
1217
1203
  startErrorMessage + getConflictsString(dependencyInfo),
1218
1204
  );
1219
1205
  } else {
1206
+ const conflictMessages = Array.from(dependencyProjects.entries())
1207
+ .filter(([, v]) => v.size > 1)
1208
+ .map(
1209
+ ([k, v]) =>
1210
+ `project: ${k}\n versions: ${Array.from(v.values()).join(
1211
+ ',',
1212
+ )}`,
1213
+ )
1214
+ .join('\n\n');
1220
1215
  throw new UnsupportedOperationError(
1221
- startErrorMessage +
1222
- Array.from(dependencyProjects.entries())
1223
- .map(([k, v]) => {
1224
- if (v.size > 1) {
1225
- `project: ${k}\n versions: \n${Array.from(
1226
- v.values(),
1227
- ).join('\n')}`;
1228
- }
1229
- return '';
1230
- })
1231
- .join('\n'),
1216
+ startErrorMessage + conflictMessages,
1232
1217
  );
1233
1218
  }
1234
1219
  }
@@ -386,7 +386,7 @@ export class EditorSDLCState {
386
386
  ),
387
387
  ),
388
388
  );
389
- this.editorStore.refreshCurrentEntityDiffEditorState();
389
+ this.editorStore.tabManagerState.refreshCurrentEntityDiffViewer();
390
390
  } catch (error) {
391
391
  assertErrorThrown(error);
392
392
  this.editorStore.applicationStore.log.error(
@@ -416,7 +416,7 @@ export class EditorSDLCState {
416
416
  ),
417
417
  ),
418
418
  );
419
- this.editorStore.refreshCurrentEntityDiffEditorState();
419
+ this.editorStore.tabManagerState.refreshCurrentEntityDiffViewer();
420
420
  } catch (error) {
421
421
  assertErrorThrown(error);
422
422
  this.editorStore.applicationStore.log.error(
@@ -445,7 +445,7 @@ export class EditorSDLCState {
445
445
  ),
446
446
  ),
447
447
  );
448
- this.editorStore.refreshCurrentEntityDiffEditorState();
448
+ this.editorStore.tabManagerState.refreshCurrentEntityDiffViewer();
449
449
  } catch (error) {
450
450
  assertErrorThrown(error);
451
451
  this.editorStore.applicationStore.log.error(