@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.
- package/lib/components/Core_LegendStudioApplicationPlugin.js +13 -13
- package/lib/components/DSL_ExternalFormat_LegendStudioApplicationPlugin.js +4 -4
- package/lib/components/DSL_ExternalFormat_LegendStudioDocumentation.d.ts +2 -2
- package/lib/components/DSL_ExternalFormat_LegendStudioDocumentation.js +2 -2
- package/lib/components/LegendStudioApplication.d.ts.map +1 -1
- package/lib/components/LegendStudioApplication.js +19 -19
- package/lib/components/LegendStudioApplication.js.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.js +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.js.map +1 -1
- package/lib/components/editor/edit-panel/EditPanel.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/EditPanel.js +52 -73
- package/lib/components/editor/edit-panel/EditPanel.js.map +1 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.js +5 -5
- package/lib/components/editor/edit-panel/FileGenerationViewer.js.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.js +3 -3
- package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js +3 -3
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.js +14 -14
- package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.js +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.js.map +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.js +4 -4
- package/lib/components/editor/edit-panel/RuntimeEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/UnsupportedElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/UnsupportedElementEditor.js +1 -1
- package/lib/components/editor/edit-panel/UnsupportedElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.js +1 -1
- package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js +3 -3
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js +3 -3
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js +3 -3
- package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +3 -3
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js +2 -2
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js +2 -2
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js +2 -2
- package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js +5 -5
- package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js +11 -9
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js +2 -2
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js +2 -2
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js +5 -4
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.js +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.js +10 -3
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js +2 -2
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js +8 -8
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js +2 -2
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.js +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js +1 -1
- package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js +1 -1
- package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/UMLEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/UMLEditor.js +1 -1
- package/lib/components/editor/edit-panel/uml-editor/UMLEditor.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +5 -5
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.js +6 -6
- package/lib/components/editor/side-bar/LocalChanges.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.js +4 -4
- package/lib/components/editor/side-bar/WorkspaceReview.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.js +6 -6
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.js +6 -6
- package/lib/components/editor/side-bar/WorkspaceUpdater.js.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewPanel.js +16 -16
- package/lib/components/workspace-review/WorkspaceReviewPanel.js.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.js +4 -4
- package/lib/components/workspace-review/WorkspaceReviewSideBar.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/EditorGraphState.d.ts +1 -1
- package/lib/stores/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.js +24 -44
- package/lib/stores/EditorGraphState.js.map +1 -1
- package/lib/stores/EditorSDLCState.js +3 -3
- package/lib/stores/EditorSDLCState.js.map +1 -1
- package/lib/stores/EditorStore.d.ts +19 -42
- package/lib/stores/EditorStore.d.ts.map +1 -1
- package/lib/stores/EditorStore.js +42 -223
- package/lib/stores/EditorStore.js.map +1 -1
- package/lib/stores/EditorTabManagerState.d.ts +56 -0
- package/lib/stores/EditorTabManagerState.d.ts.map +1 -0
- package/lib/stores/EditorTabManagerState.js +144 -0
- package/lib/stores/EditorTabManagerState.js.map +1 -0
- package/lib/stores/ExplorerTreeState.d.ts.map +1 -1
- package/lib/stores/ExplorerTreeState.js +1 -1
- package/lib/stores/ExplorerTreeState.js.map +1 -1
- package/lib/stores/LegendStudioDocumentation.d.ts +14 -14
- package/lib/stores/LegendStudioDocumentation.js +14 -14
- package/lib/stores/editor-state/EditorState.d.ts +7 -6
- package/lib/stores/editor-state/EditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/EditorState.js +3 -6
- package/lib/stores/editor-state/EditorState.js.map +1 -1
- package/lib/stores/editor-state/FileGenerationViewerState.d.ts +5 -4
- package/lib/stores/editor-state/FileGenerationViewerState.d.ts.map +1 -1
- package/lib/stores/editor-state/FileGenerationViewerState.js +11 -8
- package/lib/stores/editor-state/FileGenerationViewerState.js.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.d.ts.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.js +10 -16
- package/lib/stores/editor-state/GraphGenerationState.js.map +1 -1
- package/lib/stores/editor-state/ModelImporterState.d.ts +2 -1
- package/lib/stores/editor-state/ModelImporterState.d.ts.map +1 -1
- package/lib/stores/editor-state/ModelImporterState.js +4 -1
- package/lib/stores/editor-state/ModelImporterState.js.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts +2 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js +5 -2
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementEditorState.d.ts +13 -1
- package/lib/stores/editor-state/element-editor-state/ElementEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementEditorState.js +9 -2
- package/lib/stores/editor-state/element-editor-state/ElementEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +1 -3
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js +2 -3
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingElementState.d.ts +7 -6
- package/lib/stores/editor-state/element-editor-state/mapping/MappingElementState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingElementState.js +7 -3
- package/lib/stores/editor-state/element-editor-state/mapping/MappingElementState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts +3 -2
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js +6 -2
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTabManagerState.d.ts +19 -0
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTabManagerState.d.ts.map +1 -0
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTabManagerState.js +19 -0
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTabManagerState.js.map +1 -0
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.d.ts +3 -2
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js +6 -2
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.d.ts +7 -0
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js +21 -2
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js.map +1 -1
- package/lib/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.d.ts +5 -3
- package/lib/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js +8 -4
- package/lib/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js.map +1 -1
- package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffEditorState.d.ts +1 -1
- package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffEditorState.js +1 -1
- package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.d.ts +7 -5
- package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.d.ts.map +1 -1
- package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js +19 -12
- package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
- package/lib/stores/shared/DnDUtils.d.ts +1 -1
- package/lib/stores/shared/DnDUtils.d.ts.map +1 -1
- package/lib/stores/shared/DnDUtils.js.map +1 -1
- package/lib/stores/shared/modifier/DSL_Service_GraphModifierHelper.d.ts +1 -0
- package/lib/stores/shared/modifier/DSL_Service_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/shared/modifier/DSL_Service_GraphModifierHelper.js +3 -0
- package/lib/stores/shared/modifier/DSL_Service_GraphModifierHelper.js.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.js +4 -4
- package/lib/stores/sidebar-state/LocalChangesState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.js +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceSyncState.d.ts +6 -6
- package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js +7 -7
- package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js +2 -2
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js.map +1 -1
- package/package.json +10 -10
- package/src/components/Core_LegendStudioApplicationPlugin.tsx +13 -13
- package/src/components/DSL_ExternalFormat_LegendStudioApplicationPlugin.tsx +4 -4
- package/src/components/DSL_ExternalFormat_LegendStudioDocumentation.ts +2 -2
- package/src/components/LegendStudioApplication.tsx +0 -3
- package/src/components/editor/command-center/ProjectSearchCommand.tsx +4 -1
- package/src/components/editor/edit-panel/EditPanel.tsx +74 -181
- package/src/components/editor/edit-panel/FileGenerationViewer.tsx +5 -5
- package/src/components/editor/edit-panel/FunctionEditor.tsx +3 -3
- package/src/components/editor/edit-panel/GenerationSpecificationEditor.tsx +7 -5
- package/src/components/editor/edit-panel/GrammarTextEditor.tsx +16 -20
- package/src/components/editor/edit-panel/ModelImporter.tsx +1 -1
- package/src/components/editor/edit-panel/RuntimeEditor.tsx +6 -9
- package/src/components/editor/edit-panel/UnsupportedElementEditor.tsx +4 -3
- package/src/components/editor/edit-panel/connection-editor/ConnectionEditor.tsx +1 -1
- package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +3 -3
- package/src/components/editor/edit-panel/data-editor/EmbeddedDataEditor.tsx +4 -3
- package/src/components/editor/edit-panel/diff-editor/EntityDiffView.tsx +1 -1
- package/src/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.tsx +6 -5
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.tsx +2 -1
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +3 -3
- package/src/components/editor/edit-panel/mapping-editor/ClassMappingEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx +2 -2
- package/src/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx +2 -2
- package/src/components/editor/edit-panel/mapping-editor/MappingEditor.tsx +3 -3
- package/src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx +5 -5
- package/src/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.tsx +3 -3
- package/src/components/editor/edit-panel/mapping-editor/NewMappingElementModal.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx +3 -3
- package/src/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.tsx +3 -3
- package/src/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.tsx +14 -9
- package/src/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.tsx +2 -2
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +1 -1
- package/src/components/editor/edit-panel/service-editor/ServiceEditor.tsx +4 -2
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +14 -4
- package/src/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.tsx +2 -1
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.tsx +47 -8
- package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +3 -2
- package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +12 -8
- package/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx +3 -2
- package/src/components/editor/edit-panel/uml-editor/ProfileEditor.tsx +2 -1
- package/src/components/editor/edit-panel/uml-editor/StereotypeSelector.tsx +1 -1
- package/src/components/editor/edit-panel/uml-editor/TaggedValueEditor.tsx +1 -1
- package/src/components/editor/edit-panel/uml-editor/UMLEditor.tsx +2 -1
- package/src/components/editor/side-bar/Explorer.tsx +5 -5
- package/src/components/editor/side-bar/LocalChanges.tsx +6 -6
- package/src/components/editor/side-bar/WorkspaceReview.tsx +4 -4
- package/src/components/editor/side-bar/WorkspaceSyncConflictResolver.tsx +6 -6
- package/src/components/editor/side-bar/WorkspaceUpdateConflictResolver.tsx +6 -6
- package/src/components/editor/side-bar/WorkspaceUpdater.tsx +6 -6
- package/src/components/workspace-review/WorkspaceReviewPanel.tsx +20 -24
- package/src/components/workspace-review/WorkspaceReviewSideBar.tsx +4 -4
- package/src/index.ts +1 -0
- package/src/stores/EditorGraphState.ts +39 -54
- package/src/stores/EditorSDLCState.ts +3 -3
- package/src/stores/EditorStore.ts +59 -303
- package/src/stores/EditorTabManagerState.ts +175 -0
- package/src/stores/ExplorerTreeState.ts +3 -1
- package/src/stores/LegendStudioDocumentation.ts +14 -14
- package/src/stores/editor-state/EditorState.ts +9 -8
- package/src/stores/editor-state/FileGenerationViewerState.ts +12 -8
- package/src/stores/editor-state/GraphGenerationState.ts +14 -26
- package/src/stores/editor-state/ModelImporterState.ts +5 -1
- package/src/stores/editor-state/ProjectConfigurationEditorState.ts +6 -2
- package/src/stores/editor-state/element-editor-state/ElementEditorState.ts +23 -2
- package/src/stores/editor-state/element-editor-state/ElementFileGenerationState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts +7 -8
- package/src/stores/editor-state/element-editor-state/mapping/MappingElementState.ts +15 -6
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +7 -2
- package/src/stores/editor-state/element-editor-state/mapping/MappingTabManagerState.ts +19 -0
- package/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +7 -2
- package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.ts +32 -0
- package/src/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.ts +21 -4
- package/src/stores/editor-state/entity-diff-editor-state/EntityDiffEditorState.ts +1 -1
- package/src/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.ts +28 -12
- package/src/stores/project-viewer/ProjectViewerStore.ts +1 -1
- package/src/stores/shared/DnDUtils.ts +1 -1
- package/src/stores/shared/modifier/DSL_Service_GraphModifierHelper.ts +6 -0
- package/src/stores/sidebar-state/LocalChangesState.ts +4 -4
- package/src/stores/sidebar-state/WorkspaceReviewState.ts +1 -1
- package/src/stores/sidebar-state/WorkspaceSyncState.ts +6 -6
- package/src/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.ts +7 -7
- package/src/stores/sidebar-state/WorkspaceUpdaterState.ts +2 -2
- package/tsconfig.json +2 -0
package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.ts
CHANGED
|
@@ -23,11 +23,13 @@ import {
|
|
|
23
23
|
ParameterValue,
|
|
24
24
|
buildLambdaVariableExpressions,
|
|
25
25
|
VariableExpression,
|
|
26
|
+
PureMultiExecution,
|
|
26
27
|
} from '@finos/legend-graph';
|
|
27
28
|
import { action, flow, makeObservable, observable } from 'mobx';
|
|
28
29
|
import { TestableTestEditorState } from '../../testable/TestableEditorState.js';
|
|
29
30
|
import type { ServiceTestSuiteState } from './ServiceTestableState.js';
|
|
30
31
|
import {
|
|
32
|
+
service_addAssertKeyForTest,
|
|
31
33
|
service_addParameterValue,
|
|
32
34
|
service_deleteParameterValue,
|
|
33
35
|
service_setParameterName,
|
|
@@ -77,6 +79,11 @@ export type SerializationFormatOption = {
|
|
|
77
79
|
label: string;
|
|
78
80
|
};
|
|
79
81
|
|
|
82
|
+
export type KeyOption = {
|
|
83
|
+
value: string;
|
|
84
|
+
label: string;
|
|
85
|
+
};
|
|
86
|
+
|
|
80
87
|
export class ServiceTestParameterState {
|
|
81
88
|
readonly uuid = uuid();
|
|
82
89
|
readonly editorStore: EditorStore;
|
|
@@ -167,6 +174,7 @@ export class ServiceTestSetupState {
|
|
|
167
174
|
setShowNewParameterModal: action,
|
|
168
175
|
openNewParamModal: action,
|
|
169
176
|
addParameterValue: action,
|
|
177
|
+
addServiceTestAssertKeys: action,
|
|
170
178
|
syncWithQuery: action,
|
|
171
179
|
removeParamValueState: action,
|
|
172
180
|
});
|
|
@@ -193,6 +201,30 @@ export class ServiceTestSetupState {
|
|
|
193
201
|
}));
|
|
194
202
|
}
|
|
195
203
|
|
|
204
|
+
get keyOptions(): KeyOption[] {
|
|
205
|
+
const keys =
|
|
206
|
+
this.testState.testable.execution instanceof PureMultiExecution
|
|
207
|
+
? this.testState.testable.execution.executionParameters.map(
|
|
208
|
+
(p) => p.key,
|
|
209
|
+
)
|
|
210
|
+
: [];
|
|
211
|
+
return keys.map((k) => ({
|
|
212
|
+
value: k,
|
|
213
|
+
label: k,
|
|
214
|
+
}));
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
getSelectedKeyOptions(): KeyOption[] {
|
|
218
|
+
return this.testState.test.keys.map((k) => ({
|
|
219
|
+
value: k,
|
|
220
|
+
label: k,
|
|
221
|
+
}));
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
addServiceTestAssertKeys(val: string[]): void {
|
|
225
|
+
service_addAssertKeyForTest(this.testState.test, val);
|
|
226
|
+
}
|
|
227
|
+
|
|
196
228
|
get newParamOptions(): { value: string; label: string }[] {
|
|
197
229
|
const queryVarExpressions = this.queryVariableExpressions;
|
|
198
230
|
const currentParams = this.testState.test.parameters;
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
import type { EditorStore } from '../../EditorStore.js';
|
|
26
26
|
import {
|
|
27
27
|
type SPECIAL_REVISION_ALIAS,
|
|
28
|
-
|
|
28
|
+
EntityDiffViewerState,
|
|
29
29
|
} from './EntityDiffEditorState.js';
|
|
30
30
|
import {
|
|
31
31
|
type GeneratorFn,
|
|
@@ -37,6 +37,7 @@ import { type Entity, extractEntityNameFromPath } from '@finos/legend-storage';
|
|
|
37
37
|
import { EntityChangeConflictResolution } from '@finos/legend-server-sdlc';
|
|
38
38
|
import { ParserError } from '@finos/legend-graph';
|
|
39
39
|
import type { AbstractConflictResolutionState } from '../../AbstractConflictResolutionState.js';
|
|
40
|
+
import type { EditorState } from '../EditorState.js';
|
|
40
41
|
|
|
41
42
|
const START_HEADER_MARKER = '<<<<<<<';
|
|
42
43
|
const COMMON_BASE_MARKER = '|||||||';
|
|
@@ -127,7 +128,7 @@ export enum ENTITY_CHANGE_CONFLICT_EDITOR_VIEW_MODE {
|
|
|
127
128
|
CURRENT_INCOMING = 'CURRENT_INCOMING',
|
|
128
129
|
}
|
|
129
130
|
|
|
130
|
-
export class EntityChangeConflictEditorState extends
|
|
131
|
+
export class EntityChangeConflictEditorState extends EntityDiffViewerState {
|
|
131
132
|
entityPath: string;
|
|
132
133
|
// revision
|
|
133
134
|
baseRevision: SPECIAL_REVISION_ALIAS | string;
|
|
@@ -207,7 +208,7 @@ export class EntityChangeConflictEditorState extends EntityDiffEditorState {
|
|
|
207
208
|
currentMergeEditorLine: observable,
|
|
208
209
|
mergeEditorParserError: observable,
|
|
209
210
|
currentMode: observable,
|
|
210
|
-
|
|
211
|
+
label: computed,
|
|
211
212
|
sortedMergedConflicts: computed,
|
|
212
213
|
canUseTheirs: computed,
|
|
213
214
|
canUseYours: computed,
|
|
@@ -253,18 +254,23 @@ export class EntityChangeConflictEditorState extends EntityDiffEditorState {
|
|
|
253
254
|
setReadOnly(val: boolean): void {
|
|
254
255
|
this.isReadOnly = val;
|
|
255
256
|
}
|
|
257
|
+
|
|
256
258
|
setMergedText(val: string): void {
|
|
257
259
|
this.mergedText = val;
|
|
258
260
|
}
|
|
261
|
+
|
|
259
262
|
setCurrentMode(mode: ENTITY_CHANGE_CONFLICT_EDITOR_VIEW_MODE): void {
|
|
260
263
|
this.currentMode = mode;
|
|
261
264
|
}
|
|
265
|
+
|
|
262
266
|
setCurrentMergeEditorLine(val: number | undefined): void {
|
|
263
267
|
this.currentMergeEditorLine = val;
|
|
264
268
|
}
|
|
269
|
+
|
|
265
270
|
setCurrentMergeEditorConflict(conflict: MergeConflict | undefined): void {
|
|
266
271
|
this.currentMergeEditorConflict = conflict;
|
|
267
272
|
}
|
|
273
|
+
|
|
268
274
|
clearMergeEditorError(): void {
|
|
269
275
|
this.mergeEditorParserError = undefined;
|
|
270
276
|
}
|
|
@@ -275,24 +281,28 @@ export class EntityChangeConflictEditorState extends EntityDiffEditorState {
|
|
|
275
281
|
}
|
|
276
282
|
}
|
|
277
283
|
|
|
278
|
-
get
|
|
284
|
+
get label(): string {
|
|
279
285
|
return extractEntityNameFromPath(this.entityPath);
|
|
280
286
|
}
|
|
287
|
+
|
|
281
288
|
private get sortedMergedConflicts(): MergeConflict[] {
|
|
282
289
|
return this.mergeConflicts
|
|
283
290
|
.slice()
|
|
284
291
|
.sort((a, b) => a.startHeader - b.startHeader);
|
|
285
292
|
}
|
|
293
|
+
|
|
286
294
|
get canUseTheirs(): boolean {
|
|
287
295
|
return (
|
|
288
296
|
this.currentMode !== ENTITY_CHANGE_CONFLICT_EDITOR_VIEW_MODE.BASE_CURRENT
|
|
289
297
|
);
|
|
290
298
|
}
|
|
299
|
+
|
|
291
300
|
get canUseYours(): boolean {
|
|
292
301
|
return (
|
|
293
302
|
this.currentMode !== ENTITY_CHANGE_CONFLICT_EDITOR_VIEW_MODE.BASE_INCOMING
|
|
294
303
|
);
|
|
295
304
|
}
|
|
305
|
+
|
|
296
306
|
get canMarkAsResolved(): boolean {
|
|
297
307
|
return Boolean(
|
|
298
308
|
!this.mergeConflicts.length &&
|
|
@@ -318,6 +328,13 @@ export class EntityChangeConflictEditorState extends EntityDiffEditorState {
|
|
|
318
328
|
);
|
|
319
329
|
}
|
|
320
330
|
|
|
331
|
+
match(tab: EditorState): boolean {
|
|
332
|
+
return (
|
|
333
|
+
tab instanceof EntityChangeConflictEditorState &&
|
|
334
|
+
tab.entityPath === this.entityPath
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
|
|
321
338
|
getModeComparisonViewInfo(
|
|
322
339
|
mode: ENTITY_CHANGE_CONFLICT_EDITOR_VIEW_MODE,
|
|
323
340
|
): MergeEditorComparisonViewInfo {
|
|
@@ -26,11 +26,12 @@ import {
|
|
|
26
26
|
import type { EditorStore } from '../../EditorStore.js';
|
|
27
27
|
import {
|
|
28
28
|
type SPECIAL_REVISION_ALIAS,
|
|
29
|
-
|
|
29
|
+
EntityDiffViewerState,
|
|
30
30
|
} from './EntityDiffEditorState.js';
|
|
31
31
|
import { type Entity, extractEntityNameFromPath } from '@finos/legend-storage';
|
|
32
32
|
import { LEGEND_STUDIO_APP_EVENT } from '../../LegendStudioAppEvent.js';
|
|
33
33
|
import type { PackageableElement } from '@finos/legend-graph';
|
|
34
|
+
import type { EditorState } from '../EditorState.js';
|
|
34
35
|
|
|
35
36
|
/**
|
|
36
37
|
* NOTE: when we support comparison between entities, we should create a new editor state
|
|
@@ -44,7 +45,7 @@ export enum DIFF_VIEW_MODE {
|
|
|
44
45
|
GRAMMAR = 'Grammar',
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
export class EntityDiffViewState extends
|
|
48
|
+
export class EntityDiffViewState extends EntityDiffViewerState {
|
|
48
49
|
diffMode = DIFF_VIEW_MODE.GRAMMAR;
|
|
49
50
|
fromEntityPath?: string | undefined;
|
|
50
51
|
toEntityPath?: string | undefined;
|
|
@@ -93,8 +94,8 @@ export class EntityDiffViewState extends EntityDiffEditorState {
|
|
|
93
94
|
toEntityGetter: observable,
|
|
94
95
|
effectiveEntityPath: computed,
|
|
95
96
|
element: computed,
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
label: computed,
|
|
98
|
+
description: computed,
|
|
98
99
|
summaryText: computed,
|
|
99
100
|
setDiffMode: action,
|
|
100
101
|
setToGrammarText: action,
|
|
@@ -133,15 +134,18 @@ export class EntityDiffViewState extends EntityDiffEditorState {
|
|
|
133
134
|
'Neither from nor to entity paths can be missing',
|
|
134
135
|
);
|
|
135
136
|
}
|
|
137
|
+
|
|
136
138
|
get element(): PackageableElement | undefined {
|
|
137
139
|
return this.editorStore.graphManagerState.graph.getNullableElement(
|
|
138
140
|
this.effectiveEntityPath,
|
|
139
141
|
);
|
|
140
142
|
}
|
|
141
|
-
|
|
143
|
+
|
|
144
|
+
get label(): string {
|
|
142
145
|
return extractEntityNameFromPath(this.effectiveEntityPath);
|
|
143
146
|
}
|
|
144
|
-
|
|
147
|
+
|
|
148
|
+
override get description(): string {
|
|
145
149
|
return this.effectiveEntityPath;
|
|
146
150
|
}
|
|
147
151
|
|
|
@@ -161,15 +165,27 @@ export class EntityDiffViewState extends EntityDiffEditorState {
|
|
|
161
165
|
return `Entity '${this.toEntityPath}' is modified`;
|
|
162
166
|
}
|
|
163
167
|
|
|
164
|
-
setDiffMode
|
|
168
|
+
setDiffMode(diffMode: DIFF_VIEW_MODE): void {
|
|
165
169
|
this.diffMode = diffMode;
|
|
166
|
-
}
|
|
167
|
-
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
private setToGrammarText(text: string): void {
|
|
168
173
|
this.toGrammarText = text;
|
|
169
|
-
}
|
|
170
|
-
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
private setFromGrammarText(text: string): void {
|
|
171
177
|
this.fromGrammarText = text;
|
|
172
|
-
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
match(tab: EditorState): boolean {
|
|
181
|
+
return (
|
|
182
|
+
tab instanceof EntityDiffViewState &&
|
|
183
|
+
tab.fromEntityPath === this.fromEntityPath &&
|
|
184
|
+
tab.toEntityPath === this.toEntityPath &&
|
|
185
|
+
tab.fromRevision === this.fromRevision &&
|
|
186
|
+
tab.toRevision === this.toRevision
|
|
187
|
+
);
|
|
188
|
+
}
|
|
173
189
|
|
|
174
190
|
refresh(): void {
|
|
175
191
|
this.fromEntity = this.fromEntityGetter
|
|
@@ -560,7 +560,7 @@ export class ProjectViewerStore {
|
|
|
560
560
|
this.initialEntityPath
|
|
561
561
|
) {
|
|
562
562
|
try {
|
|
563
|
-
this.editorStore.
|
|
563
|
+
this.editorStore.tabManagerState.openElementEditor(
|
|
564
564
|
this.editorStore.graphManagerState.graph.getElement(
|
|
565
565
|
this.initialEntityPath,
|
|
566
566
|
),
|
|
@@ -58,7 +58,7 @@ export enum CORE_DND_TYPE {
|
|
|
58
58
|
// See https://github.com/react-dnd/react-dnd/issues/1094
|
|
59
59
|
// See https://github.com/react-dnd/react-dnd/pull/1079
|
|
60
60
|
export class TypeDragSource {
|
|
61
|
-
data: TypeTreeNodeData;
|
|
61
|
+
data: TypeTreeNodeData | undefined;
|
|
62
62
|
|
|
63
63
|
constructor(data: TypeTreeNodeData) {
|
|
64
64
|
this.data = data;
|
|
@@ -87,6 +87,12 @@ export const service_setSerializationFormat = action(
|
|
|
87
87
|
},
|
|
88
88
|
);
|
|
89
89
|
|
|
90
|
+
export const service_addAssertKeyForTest = action(
|
|
91
|
+
(test: ServiceTest, keys: string[]) => {
|
|
92
|
+
test.keys = keys;
|
|
93
|
+
},
|
|
94
|
+
);
|
|
95
|
+
|
|
90
96
|
export const service_addTestSuite = action(
|
|
91
97
|
(
|
|
92
98
|
service: Service,
|
|
@@ -288,7 +288,7 @@ export class LocalChangesState {
|
|
|
288
288
|
`Can't find entity with path '${diff.newPath}'`,
|
|
289
289
|
)
|
|
290
290
|
: undefined;
|
|
291
|
-
this.editorStore.
|
|
291
|
+
this.editorStore.tabManagerState.openTab(
|
|
292
292
|
new EntityDiffViewState(
|
|
293
293
|
this.editorStore,
|
|
294
294
|
SPECIAL_REVISION_ALIAS.WORKSPACE_HEAD,
|
|
@@ -336,7 +336,7 @@ export class LocalChangesState {
|
|
|
336
336
|
`Can't find entity with path '${diff.newPath}'`,
|
|
337
337
|
)
|
|
338
338
|
: undefined;
|
|
339
|
-
this.editorStore.
|
|
339
|
+
this.editorStore.tabManagerState.openTab(
|
|
340
340
|
new EntityDiffViewState(
|
|
341
341
|
this.editorStore,
|
|
342
342
|
SPECIAL_REVISION_ALIAS.LOCAL,
|
|
@@ -395,7 +395,7 @@ export class LocalChangesState {
|
|
|
395
395
|
incomingChangeEntityGetter,
|
|
396
396
|
);
|
|
397
397
|
conflictEditorState.setReadOnly(true);
|
|
398
|
-
this.editorStore.
|
|
398
|
+
this.editorStore.tabManagerState.openTab(conflictEditorState);
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
*refreshLocalChanges(): GeneratorFn<void> {
|
|
@@ -636,7 +636,7 @@ export class LocalChangesState {
|
|
|
636
636
|
),
|
|
637
637
|
),
|
|
638
638
|
);
|
|
639
|
-
this.editorStore.
|
|
639
|
+
this.editorStore.tabManagerState.refreshCurrentEntityDiffViewer();
|
|
640
640
|
} catch (error) {
|
|
641
641
|
assertErrorThrown(error);
|
|
642
642
|
/**
|
|
@@ -117,7 +117,7 @@ export class WorkspaceReviewState {
|
|
|
117
117
|
`Can't find entity with path '${diff.newPath}'`,
|
|
118
118
|
)
|
|
119
119
|
: undefined;
|
|
120
|
-
this.editorStore.
|
|
120
|
+
this.editorStore.tabManagerState.openTab(
|
|
121
121
|
new EntityDiffViewState(
|
|
122
122
|
this.editorStore,
|
|
123
123
|
SPECIAL_REVISION_ALIAS.WORKSPACE_BASE,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import { CHANGE_DETECTION_EVENT } from '../ChangeDetectionEvent.js';
|
|
34
34
|
import { EntityChangeConflictEditorState } from '../editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js';
|
|
35
35
|
import {
|
|
36
|
-
type
|
|
36
|
+
type EntityDiffViewerState,
|
|
37
37
|
SPECIAL_REVISION_ALIAS,
|
|
38
38
|
} from '../editor-state/entity-diff-editor-state/EntityDiffEditorState.js';
|
|
39
39
|
import { EntityDiffViewState } from '../editor-state/entity-diff-editor-state/EntityDiffViewState.js';
|
|
@@ -55,8 +55,8 @@ import { AbstractConflictResolutionState } from '../AbstractConflictResolutionSt
|
|
|
55
55
|
class WorkspaceSyncConflictResolutionState extends AbstractConflictResolutionState {
|
|
56
56
|
showModal = false;
|
|
57
57
|
conflicts: EntityChangeConflict[] = [];
|
|
58
|
-
openMergedEditorStates:
|
|
59
|
-
currentDiffEditorState:
|
|
58
|
+
openMergedEditorStates: EntityDiffViewerState[] = [];
|
|
59
|
+
currentDiffEditorState: EntityDiffViewerState | undefined;
|
|
60
60
|
resolutions: EntityChangeConflictResolution[] = [];
|
|
61
61
|
baseToLocalChanges: EntityDiff[] = [];
|
|
62
62
|
|
|
@@ -154,7 +154,7 @@ class WorkspaceSyncConflictResolutionState extends AbstractConflictResolutionSta
|
|
|
154
154
|
.concat(this.resolvedChanges);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
openState(entityDiffEditorState:
|
|
157
|
+
openState(entityDiffEditorState: EntityDiffViewerState): void {
|
|
158
158
|
if (entityDiffEditorState instanceof EntityChangeConflictEditorState) {
|
|
159
159
|
this.openConflictState(entityDiffEditorState);
|
|
160
160
|
}
|
|
@@ -207,7 +207,7 @@ class WorkspaceSyncConflictResolutionState extends AbstractConflictResolutionSta
|
|
|
207
207
|
this.openEntityChangeConflict(mergeEditorState);
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
closeConflict(conflictState:
|
|
210
|
+
closeConflict(conflictState: EntityDiffViewerState): void {
|
|
211
211
|
const conflictIndex = this.openMergedEditorStates.findIndex(
|
|
212
212
|
(e) => e === conflictState,
|
|
213
213
|
);
|
|
@@ -328,7 +328,7 @@ class WorkspaceSyncConflictResolutionState extends AbstractConflictResolutionSta
|
|
|
328
328
|
this.showModal = val;
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
-
setCurrentMergeEditorState(val:
|
|
331
|
+
setCurrentMergeEditorState(val: EntityDiffViewerState | undefined): void {
|
|
332
332
|
this.currentDiffEditorState = val;
|
|
333
333
|
}
|
|
334
334
|
|
|
@@ -157,7 +157,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
157
157
|
(state) => state.entityPath === conflict.entityPath,
|
|
158
158
|
);
|
|
159
159
|
if (existingMergeEditorState) {
|
|
160
|
-
this.editorStore.
|
|
160
|
+
this.editorStore.tabManagerState.openTab(existingMergeEditorState);
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
163
163
|
const baseEntityGetter = (
|
|
@@ -199,11 +199,11 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
199
199
|
incomingChangeEntityGetter,
|
|
200
200
|
);
|
|
201
201
|
this.mergeEditorStates.push(mergeEditorState);
|
|
202
|
-
this.editorStore.
|
|
202
|
+
this.editorStore.tabManagerState.openTab(mergeEditorState);
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
closeConflict(conflict: EntityChangeConflictEditorState): void {
|
|
206
|
-
this.editorStore.
|
|
206
|
+
this.editorStore.tabManagerState.closeTab(conflict);
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
resolveConflict(resolution: EntityChangeConflictResolution): void {
|
|
@@ -319,7 +319,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
319
319
|
this.hasResolvedAllConflicts,
|
|
320
320
|
'Editor must be in conflict resolution mode and all conflicts must have been marked as resolved to call this method',
|
|
321
321
|
);
|
|
322
|
-
this.editorStore.
|
|
322
|
+
this.editorStore.tabManagerState.closeAllTabs();
|
|
323
323
|
this.editorStore.setActiveActivity(ACTIVITY_MODE.EXPLORER, {
|
|
324
324
|
keepShowingIfMatchedCurrent: true,
|
|
325
325
|
});
|
|
@@ -412,7 +412,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
412
412
|
),
|
|
413
413
|
),
|
|
414
414
|
);
|
|
415
|
-
this.editorStore.
|
|
415
|
+
this.editorStore.tabManagerState.refreshCurrentEntityDiffViewer();
|
|
416
416
|
} catch (error) {
|
|
417
417
|
assertErrorThrown(error);
|
|
418
418
|
this.editorStore.applicationStore.log.error(
|
|
@@ -446,7 +446,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
446
446
|
),
|
|
447
447
|
),
|
|
448
448
|
);
|
|
449
|
-
this.editorStore.
|
|
449
|
+
this.editorStore.tabManagerState.refreshCurrentEntityDiffViewer();
|
|
450
450
|
} catch (error) {
|
|
451
451
|
assertErrorThrown(error);
|
|
452
452
|
this.editorStore.applicationStore.log.error(
|
|
@@ -698,7 +698,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
698
698
|
`Can't find entity with path '${diff.newPath}'`,
|
|
699
699
|
)
|
|
700
700
|
: undefined;
|
|
701
|
-
this.editorStore.
|
|
701
|
+
this.editorStore.tabManagerState.openTab(
|
|
702
702
|
new EntityDiffViewState(
|
|
703
703
|
this.editorStore,
|
|
704
704
|
SPECIAL_REVISION_ALIAS.WORKSPACE_BASE,
|
|
@@ -97,7 +97,7 @@ export class WorkspaceUpdaterState {
|
|
|
97
97
|
`Can't find entity with path '${diff.newPath}'`,
|
|
98
98
|
)
|
|
99
99
|
: undefined;
|
|
100
|
-
this.editorStore.
|
|
100
|
+
this.editorStore.tabManagerState.openTab(
|
|
101
101
|
new EntityDiffViewState(
|
|
102
102
|
this.editorStore,
|
|
103
103
|
SPECIAL_REVISION_ALIAS.WORKSPACE_BASE,
|
|
@@ -152,7 +152,7 @@ export class WorkspaceUpdaterState {
|
|
|
152
152
|
incomingChangeEntityGetter,
|
|
153
153
|
);
|
|
154
154
|
conflictEditorState.setReadOnly(true);
|
|
155
|
-
this.editorStore.
|
|
155
|
+
this.editorStore.tabManagerState.openTab(conflictEditorState);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
*refreshWorkspaceUpdater(): GeneratorFn<void> {
|
package/tsconfig.json
CHANGED
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"./src/stores/EditorSDLCState.ts",
|
|
52
52
|
"./src/stores/EditorStore.ts",
|
|
53
53
|
"./src/stores/EditorStoreTestUtils.ts",
|
|
54
|
+
"./src/stores/EditorTabManagerState.ts",
|
|
54
55
|
"./src/stores/EmbeddedQueryBuilderState.ts",
|
|
55
56
|
"./src/stores/ExplorerTreeState.ts",
|
|
56
57
|
"./src/stores/LegendStudioAppEvent.ts",
|
|
@@ -98,6 +99,7 @@
|
|
|
98
99
|
"./src/stores/editor-state/element-editor-state/mapping/MappingElementState.ts",
|
|
99
100
|
"./src/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.ts",
|
|
100
101
|
"./src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts",
|
|
102
|
+
"./src/stores/editor-state/element-editor-state/mapping/MappingTabManagerState.ts",
|
|
101
103
|
"./src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts",
|
|
102
104
|
"./src/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.ts",
|
|
103
105
|
"./src/stores/editor-state/element-editor-state/mapping/UnsupportedInstanceSetImplementationState.ts",
|