@finos/legend-application-studio 18.0.0 → 18.0.2
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/application/LegendStudio.d.ts.map +1 -1
- package/lib/application/LegendStudio.js +1 -2
- package/lib/application/LegendStudio.js.map +1 -1
- package/lib/components/DSL_ExternalFormat_LegendStudioApplicationPlugin.js +1 -1
- package/lib/components/DSL_ExternalFormat_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/EditorComponentTestUtils.js +1 -3
- package/lib/components/EditorComponentTestUtils.js.map +1 -1
- package/lib/components/LegendStudioApplication.d.ts.map +1 -1
- package/lib/components/LegendStudioApplication.js +3 -4
- package/lib/components/LegendStudioApplication.js.map +1 -1
- package/lib/components/editor/ActivityBar.d.ts.map +1 -1
- package/lib/components/editor/ActivityBar.js +3 -3
- package/lib/components/editor/ActivityBar.js.map +1 -1
- package/lib/components/editor/Editor.d.ts.map +1 -1
- package/lib/components/editor/Editor.js +81 -93
- package/lib/components/editor/Editor.js.map +1 -1
- package/lib/components/editor/StatusBar.d.ts.map +1 -1
- package/lib/components/editor/StatusBar.js +2 -3
- package/lib/components/editor/StatusBar.js.map +1 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.js +1 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.js.map +1 -1
- package/lib/components/editor/edit-panel/EditPanel.js +2 -3
- package/lib/components/editor/edit-panel/EditPanel.js.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.js +13 -13
- package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js +5 -5
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.js +1 -2
- package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.js +7 -4
- package/lib/components/editor/edit-panel/ModelImporter.js.map +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.js +2 -2
- package/lib/components/editor/edit-panel/RuntimeEditor.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/connection-editor/DatabaseBuilder.js +1 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.js +1 -1
- package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js +12 -12
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js +2 -2
- package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.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.js +3 -3
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js +3 -3
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js +2 -3
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.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/ElementGenerationEditor.js +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.js.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.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_ExternalFormatConnectionEditor.js +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_ExternalFormatConnectionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.js +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.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/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js +2 -2
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.js +36 -49
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js +7 -7
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.js +8 -17
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js +2 -3
- package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +6 -6
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js +2 -2
- package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js +5 -5
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.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.d.ts +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js +63 -43
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/TableOrViewSourceTree.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/TableOrViewSourceTree.js.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +9 -10
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.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.js +3 -3
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +3 -3
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.js +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts +15 -0
- 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 +3 -3
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.js +2 -2
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.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 +6 -6
- 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 +11 -11
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js +3 -3
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.js +4 -4
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.js +2 -2
- package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js +2 -2
- package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js +3 -3
- package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +3 -3
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.js +8 -8
- package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.js +4 -4
- package/lib/components/editor/side-bar/WorkflowManager.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.js +2 -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/WorkspaceUpdater.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.js +2 -4
- package/lib/components/editor/side-bar/WorkspaceUpdater.js.map +1 -1
- package/lib/components/project-viewer/ProjectViewer.d.ts.map +1 -1
- package/lib/components/project-viewer/ProjectViewer.js +4 -7
- package/lib/components/project-viewer/ProjectViewer.js.map +1 -1
- package/lib/components/shared/DiffView.d.ts.map +1 -1
- package/lib/components/shared/DiffView.js +1 -2
- package/lib/components/shared/DiffView.js.map +1 -1
- package/lib/components/shared/ProjectSelectorUtils.js +1 -1
- package/lib/components/shared/ProjectSelectorUtils.js.map +1 -1
- package/lib/components/shared/StudioLambdaEditor.d.ts +1 -1
- package/lib/components/shared/StudioLambdaEditor.d.ts.map +1 -1
- package/lib/components/shared/StudioLambdaEditor.js +3 -2
- package/lib/components/shared/StudioLambdaEditor.js.map +1 -1
- package/lib/components/workspace-review/WorkspaceReview.d.ts.map +1 -1
- package/lib/components/workspace-review/WorkspaceReview.js +4 -6
- package/lib/components/workspace-review/WorkspaceReview.js.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.js +2 -2
- package/lib/components/workspace-review/WorkspaceReviewSideBar.js.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.js +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.js.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.js +2 -3
- package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +5 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/package.json +2 -7
- package/lib/stores/DSL_Mapping_LegendStudioApplicationPlugin_Extension.d.ts +0 -5
- package/lib/stores/DSL_Mapping_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.d.ts +2 -14
- package/lib/stores/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.js +3 -48
- package/lib/stores/EditorGraphState.js.map +1 -1
- package/lib/stores/EditorStore.d.ts +1 -4
- package/lib/stores/EditorStore.d.ts.map +1 -1
- package/lib/stores/EditorStore.js +9 -20
- package/lib/stores/EditorStore.js.map +1 -1
- package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendStudioBaseStore.js +5 -3
- package/lib/stores/LegendStudioBaseStore.js.map +1 -1
- package/lib/stores/LegendStudioRouter.js +1 -1
- package/lib/stores/LegendStudioRouter.js.map +1 -1
- package/lib/stores/editor/NewElementState.js +4 -4
- package/lib/stores/editor/NewElementState.js.map +1 -1
- package/lib/stores/editor-state/FileGenerationState.js +1 -1
- package/lib/stores/editor-state/FileGenerationState.js.map +1 -1
- package/lib/stores/editor-state/GenerationSpecificationEditorState.js +1 -1
- package/lib/stores/editor-state/GenerationSpecificationEditorState.js.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.js +1 -1
- package/lib/stores/editor-state/GraphGenerationState.js.map +1 -1
- package/lib/stores/editor-state/ModelImporterState.d.ts +5 -5
- package/lib/stores/editor-state/ModelImporterState.d.ts.map +1 -1
- package/lib/stores/editor-state/ModelImporterState.js +12 -10
- package/lib/stores/editor-state/ModelImporterState.js.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ClassState.d.ts +1 -1
- package/lib/stores/editor-state/element-editor-state/ClassState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ClassState.js +2 -2
- package/lib/stores/editor-state/element-editor-state/ClassState.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/FunctionEditorState.d.ts +1 -1
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/RuntimeEditorState.js +2 -2
- package/lib/stores/editor-state/element-editor-state/RuntimeEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/data/EmbeddedDataState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/data/EmbeddedDataState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js.map +1 -1
- 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 +4 -4
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingElementDecorator.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingElementDecorator.js +36 -29
- package/lib/stores/editor-state/element-editor-state/mapping/MappingElementDecorator.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingElementState.d.ts +1 -1
- 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 +1 -1
- 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 +2 -1
- 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 -5
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.d.ts +2 -1
- 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 +5 -4
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.d.ts +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.js +2 -2
- package/lib/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.d.ts +2 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js +4 -3
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js +13 -3
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
- 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 +3 -2
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestableState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestableState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/testable/TestableEditorState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/testable/TestableEditorState.js.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js +2 -2
- package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
- package/lib/stores/shared/ModelClassifierUtils.d.ts +0 -10
- package/lib/stores/shared/ModelClassifierUtils.d.ts.map +1 -1
- package/lib/stores/shared/ModelClassifierUtils.js +0 -11
- package/lib/stores/shared/ModelClassifierUtils.js.map +1 -1
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Data_GraphModifierHelper.d.ts +0 -0
- package/lib/stores/shared/modifier/DSL_Data_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Data_GraphModifierHelper.js +0 -0
- package/lib/stores/shared/modifier/DSL_Data_GraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_ExternalFormat_GraphModifierHelper.d.ts +0 -0
- package/lib/stores/shared/modifier/DSL_ExternalFormat_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_ExternalFormat_GraphModifierHelper.js +0 -0
- package/lib/stores/shared/modifier/DSL_ExternalFormat_GraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Generation_GraphModifierHelper.d.ts +0 -0
- package/lib/stores/shared/modifier/DSL_Generation_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Generation_GraphModifierHelper.js +0 -0
- package/lib/stores/shared/modifier/DSL_Generation_GraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Mapping_GraphModifierHelper.d.ts +7 -6
- package/lib/stores/shared/modifier/DSL_Mapping_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Mapping_GraphModifierHelper.js +16 -14
- package/lib/stores/shared/modifier/DSL_Mapping_GraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Service_GraphModifierHelper.d.ts +0 -0
- package/lib/stores/shared/modifier/DSL_Service_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Service_GraphModifierHelper.js +0 -0
- package/lib/stores/shared/modifier/DSL_Service_GraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DomainGraphModifierHelper.d.ts +0 -0
- package/lib/stores/shared/modifier/DomainGraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DomainGraphModifierHelper.js +3 -3
- package/lib/stores/shared/modifier/DomainGraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/GraphModifierHelper.d.ts +0 -0
- package/lib/stores/shared/modifier/GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/GraphModifierHelper.js +0 -0
- package/lib/stores/shared/modifier/GraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier/ValueSpecificationGraphModifierHelper.d.ts → shared/modifier/RawValueSpecificationGraphModifierHelper.d.ts} +4 -4
- package/lib/stores/shared/modifier/RawValueSpecificationGraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier/ValueSpecificationGraphModifierHelper.js → shared/modifier/RawValueSpecificationGraphModifierHelper.js} +8 -9
- package/lib/stores/shared/modifier/RawValueSpecificationGraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/STO_FlatData_GraphModifierHelper.d.ts +0 -0
- package/lib/stores/shared/modifier/STO_FlatData_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/STO_FlatData_GraphModifierHelper.js +0 -0
- package/lib/stores/shared/modifier/STO_FlatData_GraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/STO_Relational_GraphModifierHelper.d.ts +1 -1
- package/lib/stores/shared/modifier/STO_Relational_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/STO_Relational_GraphModifierHelper.js +0 -0
- package/lib/stores/shared/modifier/STO_Relational_GraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/Testable_GraphModifierHelper.d.ts +0 -0
- package/lib/stores/shared/modifier/Testable_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/Testable_GraphModifierHelper.js +0 -0
- package/lib/stores/shared/modifier/Testable_GraphModifierHelper.js.map +1 -0
- package/lib/stores/sidebar-state/LocalChangesState.d.ts +1 -0
- package/lib/stores/sidebar-state/LocalChangesState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.js +4 -0
- package/lib/stores/sidebar-state/LocalChangesState.js.map +1 -1
- package/lib/stores/sidebar-state/ProjectOverviewState.js +2 -2
- package/lib/stores/sidebar-state/ProjectOverviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.js +6 -2
- package/lib/stores/sidebar-state/WorkspaceReviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js +1 -0
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js.map +1 -1
- package/lib/stores/workspace-setup/WorkspaceSetupStore.d.ts.map +1 -1
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js +6 -6
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js.map +1 -1
- package/package.json +11 -16
- package/src/application/LegendStudio.tsx +1 -1
- package/src/components/DSL_ExternalFormat_LegendStudioApplicationPlugin.tsx +1 -1
- package/src/components/EditorComponentTestUtils.tsx +2 -2
- package/src/components/LegendStudioApplication.tsx +4 -3
- package/src/components/editor/ActivityBar.tsx +6 -8
- package/src/components/editor/Editor.tsx +70 -103
- package/src/components/editor/StatusBar.tsx +25 -14
- package/src/components/editor/aux-panel/AuxiliaryPanel.tsx +2 -2
- package/src/components/editor/edit-panel/EditPanel.tsx +2 -2
- package/src/components/editor/edit-panel/FunctionEditor.tsx +14 -15
- package/src/components/editor/edit-panel/GenerationSpecificationEditor.tsx +7 -7
- package/src/components/editor/edit-panel/GrammarTextEditor.tsx +1 -1
- package/src/components/editor/edit-panel/ModelImporter.tsx +7 -8
- package/src/components/editor/edit-panel/RuntimeEditor.tsx +2 -2
- package/src/components/editor/edit-panel/connection-editor/ConnectionEditor.tsx +1 -1
- package/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx +1 -1
- package/src/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.tsx +1 -1
- package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +22 -22
- package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +2 -2
- package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +4 -4
- package/src/components/editor/edit-panel/data-editor/EmbeddedDataEditor.tsx +3 -3
- package/src/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.tsx +4 -4
- package/src/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.tsx +3 -3
- package/src/components/editor/edit-panel/diff-editor/EntityDiffView.tsx +1 -1
- package/src/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.tsx +1 -1
- package/src/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.tsx +4 -4
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.tsx +1 -1
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_ExternalFormatConnectionEditor.tsx +1 -1
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.tsx +1 -1
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +5 -5
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.tsx +3 -3
- package/src/components/editor/edit-panel/mapping-editor/ClassMappingEditor.tsx +45 -84
- package/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx +9 -9
- package/src/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.tsx +4 -4
- package/src/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx +3 -3
- package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.tsx +13 -33
- package/src/components/editor/edit-panel/mapping-editor/MappingEditor.tsx +2 -2
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +7 -7
- package/src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx +2 -2
- package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +6 -6
- package/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx +5 -5
- package/src/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.tsx +204 -106
- package/src/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.tsx +4 -4
- package/src/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.tsx +4 -4
- package/src/components/editor/edit-panel/mapping-editor/relational/TableOrViewSourceTree.tsx +1 -1
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +34 -40
- package/src/components/editor/edit-panel/service-editor/ServiceEditor.tsx +2 -2
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +4 -4
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +4 -1
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.tsx +1 -1
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.tsx +6 -2
- package/src/components/editor/edit-panel/testable/TestAssertionEditor.tsx +2 -2
- package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +10 -8
- package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +16 -14
- package/src/components/editor/edit-panel/uml-editor/ClassQueryBuilder.tsx +1 -1
- package/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx +5 -5
- package/src/components/editor/edit-panel/uml-editor/ProfileEditor.tsx +5 -5
- package/src/components/editor/edit-panel/uml-editor/PropertyEditor.tsx +2 -2
- package/src/components/editor/edit-panel/uml-editor/StereotypeSelector.tsx +5 -5
- package/src/components/editor/edit-panel/uml-editor/TaggedValueEditor.tsx +8 -8
- package/src/components/editor/side-bar/Explorer.tsx +4 -4
- package/src/components/editor/side-bar/ProjectOverview.tsx +56 -35
- package/src/components/editor/side-bar/WorkflowManager.tsx +4 -4
- package/src/components/editor/side-bar/WorkspaceReview.tsx +15 -12
- package/src/components/editor/side-bar/WorkspaceSyncConflictResolver.tsx +1 -1
- package/src/components/editor/side-bar/WorkspaceUpdater.tsx +12 -9
- package/src/components/project-viewer/ProjectViewer.tsx +14 -7
- package/src/components/shared/DiffView.tsx +1 -1
- package/src/components/shared/ProjectSelectorUtils.tsx +2 -2
- package/src/components/shared/StudioLambdaEditor.tsx +8 -8
- package/src/components/workspace-review/WorkspaceReview.tsx +32 -23
- package/src/components/workspace-review/WorkspaceReviewSideBar.tsx +2 -2
- package/src/components/workspace-setup/CreateProjectModal.tsx +1 -1
- package/src/components/workspace-setup/WorkspaceSetup.tsx +2 -2
- package/src/index.ts +5 -5
- package/src/stores/DSL_Mapping_LegendStudioApplicationPlugin_Extension.ts +0 -9
- package/src/stores/EditorGraphState.ts +3 -67
- package/src/stores/EditorStore.ts +12 -24
- package/src/stores/LegendStudioBaseStore.ts +7 -4
- package/src/stores/LegendStudioRouter.ts +1 -1
- package/src/stores/editor/NewElementState.ts +4 -4
- package/src/stores/editor-state/FileGenerationState.ts +1 -1
- package/src/stores/editor-state/GenerationSpecificationEditorState.ts +1 -1
- package/src/stores/editor-state/GraphGenerationState.ts +1 -1
- package/src/stores/editor-state/ModelImporterState.ts +16 -15
- package/src/stores/editor-state/ProjectConfigurationEditorState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/ClassState.ts +2 -2
- package/src/stores/editor-state/element-editor-state/ElementFileGenerationState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/FunctionEditorState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/RuntimeEditorState.ts +2 -2
- package/src/stores/editor-state/element-editor-state/connection/ConnectionEditorState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/data/EmbeddedDataState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts +4 -4
- package/src/stores/editor-state/element-editor-state/mapping/MappingElementDecorator.ts +57 -57
- package/src/stores/editor-state/element-editor-state/mapping/MappingElementState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +5 -5
- package/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +5 -8
- package/src/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.ts +2 -2
- package/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +9 -7
- package/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +40 -1
- package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.ts +2 -2
- package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestableState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/testable/TestAssertionState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/testable/TestableEditorState.ts +1 -1
- package/src/stores/project-viewer/ProjectViewerStore.ts +2 -2
- package/src/stores/shared/ModelClassifierUtils.ts +0 -11
- package/src/stores/{graphModifier → shared/modifier}/DSL_Data_GraphModifierHelper.ts +0 -0
- package/src/stores/{graphModifier → shared/modifier}/DSL_ExternalFormat_GraphModifierHelper.ts +0 -0
- package/src/stores/{graphModifier → shared/modifier}/DSL_Generation_GraphModifierHelper.ts +0 -0
- package/src/stores/{graphModifier → shared/modifier}/DSL_Mapping_GraphModifierHelper.ts +20 -14
- package/src/stores/{graphModifier → shared/modifier}/DSL_Service_GraphModifierHelper.ts +0 -0
- package/src/stores/{graphModifier → shared/modifier}/DomainGraphModifierHelper.ts +2 -3
- package/src/stores/{graphModifier → shared/modifier}/GraphModifierHelper.ts +0 -0
- package/src/stores/{graphModifier/ValueSpecificationGraphModifierHelper.ts → shared/modifier/RawValueSpecificationGraphModifierHelper.ts} +6 -9
- package/src/stores/{graphModifier → shared/modifier}/STO_FlatData_GraphModifierHelper.ts +0 -0
- package/src/stores/{graphModifier → shared/modifier}/STO_Relational_GraphModifierHelper.ts +1 -1
- package/src/stores/{graphModifier → shared/modifier}/Testable_GraphModifierHelper.ts +0 -0
- package/src/stores/sidebar-state/LocalChangesState.ts +7 -0
- package/src/stores/sidebar-state/ProjectOverviewState.ts +2 -2
- package/src/stores/sidebar-state/WorkspaceReviewState.ts +7 -4
- package/src/stores/sidebar-state/WorkspaceUpdaterState.ts +1 -0
- package/src/stores/workspace-setup/WorkspaceSetupStore.ts +8 -6
- package/tsconfig.json +11 -11
- package/lib/stores/graphModifier/DSL_Data_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/DSL_Data_GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/DSL_ExternalFormat_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/DSL_ExternalFormat_GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/DSL_Generation_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/DSL_Generation_GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/DSL_Mapping_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/DSL_Mapping_GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/DSL_Service_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/DSL_Service_GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/DomainGraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/DomainGraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/STO_FlatData_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/STO_FlatData_GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/STO_Relational_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/STO_Relational_GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/Testable_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/Testable_GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/ValueSpecificationGraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/ValueSpecificationGraphModifierHelper.js.map +0 -1
|
@@ -20,11 +20,9 @@ import {
|
|
|
20
20
|
useWorkspaceReviewStore,
|
|
21
21
|
withWorkspaceReviewStore,
|
|
22
22
|
} from './WorkspaceReviewStoreProvider.js';
|
|
23
|
-
import { useParams } from 'react-router';
|
|
24
23
|
import { WorkspaceReviewSideBar } from './WorkspaceReviewSideBar.js';
|
|
25
24
|
import { WorkspaceReviewPanel } from './WorkspaceReviewPanel.js';
|
|
26
25
|
import { ACTIVITY_MODE } from '../../stores/EditorConfig.js';
|
|
27
|
-
import { Link } from 'react-router-dom';
|
|
28
26
|
import {
|
|
29
27
|
type ResizablePanelHandlerProps,
|
|
30
28
|
getControlledResizablePanelProps,
|
|
@@ -41,15 +39,14 @@ import {
|
|
|
41
39
|
} from '@finos/legend-art';
|
|
42
40
|
import {
|
|
43
41
|
type ReviewPathParams,
|
|
44
|
-
|
|
45
|
-
generateEditorRoute,
|
|
42
|
+
generateSetupRoute,
|
|
46
43
|
} from '../../stores/LegendStudioRouter.js';
|
|
47
44
|
import { flowResult } from 'mobx';
|
|
48
45
|
import {
|
|
49
46
|
useEditorStore,
|
|
50
47
|
withEditorStore,
|
|
51
48
|
} from '../editor/EditorStoreProvider.js';
|
|
52
|
-
import { useApplicationStore } from '@finos/legend-application';
|
|
49
|
+
import { useApplicationStore, useParams } from '@finos/legend-application';
|
|
53
50
|
|
|
54
51
|
const WorkspaceReviewStatusBar = observer(() => {
|
|
55
52
|
const reviewStore = useWorkspaceReviewStore();
|
|
@@ -82,23 +79,35 @@ const WorkspaceReviewStatusBar = observer(() => {
|
|
|
82
79
|
<div className="workspace-review__status-bar__workspace__icon">
|
|
83
80
|
<CodeBranchIcon />
|
|
84
81
|
</div>
|
|
85
|
-
<
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
82
|
+
<button
|
|
83
|
+
className="workspace-review__status-bar__workspace__project"
|
|
84
|
+
title="Go back to workspace setup using the specified project"
|
|
85
|
+
tabIndex={-1}
|
|
86
|
+
onClick={(): void =>
|
|
87
|
+
applicationStore.navigator.goToLocation(
|
|
88
|
+
generateSetupRoute(reviewStore.projectId),
|
|
89
|
+
)
|
|
90
|
+
}
|
|
91
|
+
>
|
|
92
|
+
{currentProject}
|
|
93
|
+
</button>
|
|
90
94
|
/
|
|
91
|
-
<
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
95
|
+
<button
|
|
96
|
+
className="workspace-review__status-bar__workspace__workspace"
|
|
97
|
+
title="Go back to workspace setup using the specified workspace"
|
|
98
|
+
tabIndex={-1}
|
|
99
|
+
onClick={(): void =>
|
|
100
|
+
applicationStore.navigator.goToLocation(
|
|
101
|
+
generateSetupRoute(
|
|
102
|
+
reviewStore.projectId,
|
|
103
|
+
review.workspaceId,
|
|
104
|
+
review.workspaceType,
|
|
105
|
+
),
|
|
106
|
+
)
|
|
107
|
+
}
|
|
108
|
+
>
|
|
109
|
+
{review.workspaceId}
|
|
110
|
+
</button>
|
|
102
111
|
<div className="workspace-review__status-bar__review">
|
|
103
112
|
<a target="_blank" rel="noopener noreferrer" href={review.webURL}>
|
|
104
113
|
{review.title}
|
|
@@ -214,7 +223,7 @@ export const WorkspaceReview = withEditorStore(
|
|
|
214
223
|
key={ACTIVITY_MODE.REVIEW}
|
|
215
224
|
className="activity-bar__item activity-bar__item--active workspace-review__activity-bar__review-icon"
|
|
216
225
|
tabIndex={-1}
|
|
217
|
-
title=
|
|
226
|
+
title="Review"
|
|
218
227
|
onClick={changeActivity(ACTIVITY_MODE.REVIEW)}
|
|
219
228
|
>
|
|
220
229
|
<CheckListIcon />
|
|
@@ -224,7 +233,7 @@ export const WorkspaceReview = withEditorStore(
|
|
|
224
233
|
<button
|
|
225
234
|
className="activity-bar__item"
|
|
226
235
|
tabIndex={-1}
|
|
227
|
-
title=
|
|
236
|
+
title="Settings..."
|
|
228
237
|
>
|
|
229
238
|
<CogIcon />
|
|
230
239
|
</button>
|
|
@@ -163,7 +163,7 @@ export const WorkspaceReviewSideBar = observer(() => {
|
|
|
163
163
|
onClick={reOpenReview}
|
|
164
164
|
disabled={isDispatchingAction}
|
|
165
165
|
tabIndex={-1}
|
|
166
|
-
title=
|
|
166
|
+
title="Reopen review"
|
|
167
167
|
>
|
|
168
168
|
<ArrowUpIcon />
|
|
169
169
|
</button>
|
|
@@ -179,7 +179,7 @@ export const WorkspaceReviewSideBar = observer(() => {
|
|
|
179
179
|
currentUser?.userId === review.author.name
|
|
180
180
|
}
|
|
181
181
|
tabIndex={-1}
|
|
182
|
-
title=
|
|
182
|
+
title="Approve review"
|
|
183
183
|
>
|
|
184
184
|
<CheckIcon />
|
|
185
185
|
</button>
|
|
@@ -442,7 +442,7 @@ const ImportProjectTab = observer(() => {
|
|
|
442
442
|
): void => {
|
|
443
443
|
event.preventDefault();
|
|
444
444
|
if (importProjectSuccessReport) {
|
|
445
|
-
applicationStore.navigator.
|
|
445
|
+
applicationStore.navigator.visitAddress(
|
|
446
446
|
importProjectSuccessReport.reviewUrl,
|
|
447
447
|
);
|
|
448
448
|
} else {
|
|
@@ -26,7 +26,6 @@ import {
|
|
|
26
26
|
CustomSelectorInput,
|
|
27
27
|
RepoIcon,
|
|
28
28
|
} from '@finos/legend-art';
|
|
29
|
-
import { useParams } from 'react-router';
|
|
30
29
|
import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js';
|
|
31
30
|
import {
|
|
32
31
|
type SetupPathParams,
|
|
@@ -37,6 +36,7 @@ import { flowResult } from 'mobx';
|
|
|
37
36
|
import {
|
|
38
37
|
DocumentationLink,
|
|
39
38
|
useApplicationNavigationContext,
|
|
39
|
+
useParams,
|
|
40
40
|
} from '@finos/legend-application';
|
|
41
41
|
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../stores/LegendStudioDocumentation.js';
|
|
42
42
|
import { CreateProjectModal } from './CreateProjectModal.js';
|
|
@@ -167,7 +167,7 @@ export const WorkspaceSetup = withWorkspaceSetupStore(
|
|
|
167
167
|
|
|
168
168
|
const handleProceed = (): void => {
|
|
169
169
|
if (setupStore.currentProject && setupStore.currentWorkspace) {
|
|
170
|
-
applicationStore.navigator.
|
|
170
|
+
applicationStore.navigator.goToLocation(
|
|
171
171
|
generateEditorRoute(
|
|
172
172
|
setupStore.currentProject.projectId,
|
|
173
173
|
setupStore.currentWorkspace.workspaceId,
|
package/src/index.ts
CHANGED
|
@@ -44,13 +44,13 @@ export {
|
|
|
44
44
|
type TransformDropTarget,
|
|
45
45
|
} from './stores/shared/DnDUtils.js';
|
|
46
46
|
export { ExplorerTreeRootPackageLabel } from './stores/ExplorerTreeState.js';
|
|
47
|
-
export * from './stores/
|
|
48
|
-
export * from './stores/
|
|
47
|
+
export * from './stores/shared/modifier/GraphModifierHelper.js';
|
|
48
|
+
export * from './stores/shared/modifier/DomainGraphModifierHelper.js';
|
|
49
49
|
export * from './stores/DSL_Mapping_LegendStudioApplicationPlugin_Extension.js';
|
|
50
50
|
export * from './stores/DSL_Service_LegendStudioApplicationPlugin_Extension.js';
|
|
51
51
|
export * from './stores/DSL_Data_LegendStudioApplicationPlugin_Extension.js';
|
|
52
|
-
export * from './stores/
|
|
53
|
-
export * from './stores/
|
|
52
|
+
export * from './stores/shared/modifier/DSL_Generation_GraphModifierHelper.js';
|
|
53
|
+
export * from './stores/shared/modifier/DSL_Service_GraphModifierHelper.js';
|
|
54
54
|
|
|
55
55
|
// components
|
|
56
56
|
export * from './components/editor/EditorStoreProvider.js';
|
|
@@ -103,7 +103,7 @@ export { DSL_ExternalFormat_LegendStudioApplicationPlugin } from './components/D
|
|
|
103
103
|
export {
|
|
104
104
|
externalFormatData_setData,
|
|
105
105
|
externalFormatData_setContentType,
|
|
106
|
-
} from './stores/
|
|
106
|
+
} from './stores/shared/modifier/DSL_Data_GraphModifierHelper.js';
|
|
107
107
|
export { ExternalFormatDataEditor } from './components/editor/edit-panel/data-editor/DataElementEditor.js';
|
|
108
108
|
export {
|
|
109
109
|
ExternalFormatDataState,
|
|
@@ -61,10 +61,6 @@ export type MappingElementSourceExtractor = (
|
|
|
61
61
|
mappingElement: MappingElement,
|
|
62
62
|
) => MappingElementSource | undefined;
|
|
63
63
|
|
|
64
|
-
export type SetImplemtationClassifier = (
|
|
65
|
-
setImplementation: SetImplementation,
|
|
66
|
-
) => string | undefined;
|
|
67
|
-
|
|
68
64
|
export type MappingElementStateCreator = (
|
|
69
65
|
mappingElement: MappingElement | undefined,
|
|
70
66
|
editorStore: EditorStore,
|
|
@@ -135,11 +131,6 @@ export interface DSL_Mapping_LegendStudioApplicationPlugin_Extension
|
|
|
135
131
|
*/
|
|
136
132
|
getExtraSetImplementationMappingElementLabelInfoBuilders?(): SetImplementationMappingElementLabelInfoBuilder[];
|
|
137
133
|
|
|
138
|
-
/**
|
|
139
|
-
* Get the list of set implementation classifiers.
|
|
140
|
-
*/
|
|
141
|
-
getExtraSetImplementationClassifiers?(): SetImplemtationClassifier[];
|
|
142
|
-
|
|
143
134
|
/**
|
|
144
135
|
* Get the list of the mapping element state creators for the given class mapping.
|
|
145
136
|
*/
|
|
@@ -52,16 +52,13 @@ import {
|
|
|
52
52
|
ProjectDependencyInfo,
|
|
53
53
|
} from '@finos/legend-server-depot';
|
|
54
54
|
import {
|
|
55
|
-
type SetImplementation,
|
|
56
55
|
type PackageableElement,
|
|
57
56
|
GRAPH_MANAGER_EVENT,
|
|
58
57
|
CompilationError,
|
|
59
58
|
EngineError,
|
|
60
59
|
extractSourceInformationCoordinates,
|
|
61
60
|
Package,
|
|
62
|
-
PureInstanceSetImplementation,
|
|
63
61
|
Profile,
|
|
64
|
-
OperationSetImplementation,
|
|
65
62
|
PrimitiveType,
|
|
66
63
|
Enumeration,
|
|
67
64
|
Class,
|
|
@@ -70,8 +67,6 @@ import {
|
|
|
70
67
|
ConcreteFunctionDefinition,
|
|
71
68
|
Service,
|
|
72
69
|
FlatData,
|
|
73
|
-
FlatDataInstanceSetImplementation,
|
|
74
|
-
EmbeddedFlatDataPropertyMapping,
|
|
75
70
|
PackageableConnection,
|
|
76
71
|
PackageableRuntime,
|
|
77
72
|
FileGenerationSpecification,
|
|
@@ -80,9 +75,6 @@ import {
|
|
|
80
75
|
Unit,
|
|
81
76
|
Database,
|
|
82
77
|
SectionIndex,
|
|
83
|
-
RootRelationalInstanceSetImplementation,
|
|
84
|
-
EmbeddedRelationalInstanceSetImplementation,
|
|
85
|
-
AggregationAwareSetImplementation,
|
|
86
78
|
DependencyGraphBuilderError,
|
|
87
79
|
GraphDataDeserializationError,
|
|
88
80
|
GraphBuilderError,
|
|
@@ -91,7 +83,6 @@ import {
|
|
|
91
83
|
DataElement,
|
|
92
84
|
} from '@finos/legend-graph';
|
|
93
85
|
import {
|
|
94
|
-
type LambdaEditorState,
|
|
95
86
|
ActionAlertActionType,
|
|
96
87
|
ActionAlertType,
|
|
97
88
|
} from '@finos/legend-application';
|
|
@@ -99,14 +90,11 @@ import {
|
|
|
99
90
|
CONFIGURATION_EDITOR_TAB,
|
|
100
91
|
getConflictsString,
|
|
101
92
|
} from './editor-state/ProjectConfigurationEditorState.js';
|
|
102
|
-
import
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
PACKAGEABLE_ELEMENT_TYPE,
|
|
106
|
-
SET_IMPLEMENTATION_TYPE,
|
|
107
|
-
} from './shared/ModelClassifierUtils.js';
|
|
93
|
+
import { graph_dispose } from './shared/modifier/GraphModifierHelper.js';
|
|
94
|
+
import { PACKAGEABLE_ELEMENT_TYPE } from './shared/ModelClassifierUtils.js';
|
|
108
95
|
import { GlobalTestRunnerState } from './sidebar-state/testable/GlobalTestRunnerState.js';
|
|
109
96
|
import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent.js';
|
|
97
|
+
import type { LambdaEditorState } from '@finos/legend-query-builder';
|
|
110
98
|
|
|
111
99
|
export enum GraphBuilderStatus {
|
|
112
100
|
SUCCEEDED = 'SUCCEEDED',
|
|
@@ -142,7 +130,6 @@ export class EditorGraphState {
|
|
|
142
130
|
editorStore: false,
|
|
143
131
|
graphGenerationState: false,
|
|
144
132
|
getPackageableElementType: false,
|
|
145
|
-
getSetImplementationType: false,
|
|
146
133
|
hasCompilationError: computed,
|
|
147
134
|
clearCompilationError: action,
|
|
148
135
|
});
|
|
@@ -1194,17 +1181,6 @@ export class EditorGraphState {
|
|
|
1194
1181
|
}
|
|
1195
1182
|
|
|
1196
1183
|
// -------------------------------------------------- UTILITIES -----------------------------------------------------
|
|
1197
|
-
/**
|
|
1198
|
-
* NOTE: Notice how this utility draws resources from all of metamodels and uses `instanceof` to classify behavior/response.
|
|
1199
|
-
* As such, methods in this utility cannot be placed in place they should belong to.
|
|
1200
|
-
*
|
|
1201
|
-
* For example: `getSetImplemetnationType` cannot be placed in `SetImplementation` because of circular module dependency
|
|
1202
|
-
* So this utility is born for such purpose, to avoid circular module dependency, and it should just be used for only that
|
|
1203
|
-
* Other utilities that really should reside in the domain-specific meta model should be placed in the meta model module.
|
|
1204
|
-
*
|
|
1205
|
-
* NOTE: We expect the need for these methods will eventually go away as we complete modularization. But we need these
|
|
1206
|
-
* methods here so that we can load plugins.
|
|
1207
|
-
*/
|
|
1208
1184
|
|
|
1209
1185
|
getPackageableElementType(element: PackageableElement): string {
|
|
1210
1186
|
if (element instanceof PrimitiveType) {
|
|
@@ -1264,44 +1240,4 @@ export class EditorGraphState {
|
|
|
1264
1240
|
`Can't get type label for element '${element.path}': no compatible label getter available from plugins`,
|
|
1265
1241
|
);
|
|
1266
1242
|
}
|
|
1267
|
-
|
|
1268
|
-
getSetImplementationType(setImplementation: SetImplementation): string {
|
|
1269
|
-
if (setImplementation instanceof PureInstanceSetImplementation) {
|
|
1270
|
-
return SET_IMPLEMENTATION_TYPE.PUREINSTANCE;
|
|
1271
|
-
} else if (setImplementation instanceof OperationSetImplementation) {
|
|
1272
|
-
return SET_IMPLEMENTATION_TYPE.OPERATION;
|
|
1273
|
-
} else if (setImplementation instanceof FlatDataInstanceSetImplementation) {
|
|
1274
|
-
return SET_IMPLEMENTATION_TYPE.FLAT_DATA;
|
|
1275
|
-
} else if (setImplementation instanceof EmbeddedFlatDataPropertyMapping) {
|
|
1276
|
-
return SET_IMPLEMENTATION_TYPE.EMBEDDED_FLAT_DATA;
|
|
1277
|
-
} else if (
|
|
1278
|
-
setImplementation instanceof RootRelationalInstanceSetImplementation
|
|
1279
|
-
) {
|
|
1280
|
-
return SET_IMPLEMENTATION_TYPE.RELATIONAL;
|
|
1281
|
-
} else if (
|
|
1282
|
-
setImplementation instanceof EmbeddedRelationalInstanceSetImplementation
|
|
1283
|
-
) {
|
|
1284
|
-
return SET_IMPLEMENTATION_TYPE.EMBEDDED_RELATIONAL;
|
|
1285
|
-
} else if (setImplementation instanceof AggregationAwareSetImplementation) {
|
|
1286
|
-
return SET_IMPLEMENTATION_TYPE.AGGREGATION_AWARE;
|
|
1287
|
-
}
|
|
1288
|
-
const extraSetImplementationClassifiers = this.editorStore.pluginManager
|
|
1289
|
-
.getApplicationPlugins()
|
|
1290
|
-
.flatMap(
|
|
1291
|
-
(plugin) =>
|
|
1292
|
-
(
|
|
1293
|
-
plugin as DSL_Mapping_LegendStudioApplicationPlugin_Extension
|
|
1294
|
-
).getExtraSetImplementationClassifiers?.() ?? [],
|
|
1295
|
-
);
|
|
1296
|
-
for (const Classifier of extraSetImplementationClassifiers) {
|
|
1297
|
-
const setImplementationClassifier = Classifier(setImplementation);
|
|
1298
|
-
if (setImplementationClassifier) {
|
|
1299
|
-
return setImplementationClassifier;
|
|
1300
|
-
}
|
|
1301
|
-
}
|
|
1302
|
-
throw new UnsupportedOperationError(
|
|
1303
|
-
`Can't classify set implementation: no compatible classifer available from plugins`,
|
|
1304
|
-
setImplementation,
|
|
1305
|
-
);
|
|
1306
|
-
}
|
|
1307
1243
|
}
|
|
@@ -142,7 +142,7 @@ import {
|
|
|
142
142
|
graph_deleteElement,
|
|
143
143
|
graph_deleteOwnElement,
|
|
144
144
|
graph_renameElement,
|
|
145
|
-
} from './
|
|
145
|
+
} from './shared/modifier/GraphModifierHelper.js';
|
|
146
146
|
import { PACKAGEABLE_ELEMENT_TYPE } from './shared/ModelClassifierUtils.js';
|
|
147
147
|
import { GlobalTestRunnerState } from './sidebar-state/testable/GlobalTestRunnerState.js';
|
|
148
148
|
import type { LegendStudioApplicationStore } from './LegendStudioBaseStore.js';
|
|
@@ -235,7 +235,6 @@ export class EditorStore {
|
|
|
235
235
|
*/
|
|
236
236
|
elementGenerationStates: ElementFileGenerationState[] = [];
|
|
237
237
|
searchElementCommandState = new NonBlockingDialogState();
|
|
238
|
-
backdrop = false;
|
|
239
238
|
ignoreNavigationBlocking = false;
|
|
240
239
|
isDevToolEnabled = true;
|
|
241
240
|
|
|
@@ -259,7 +258,6 @@ export class EditorStore {
|
|
|
259
258
|
hotkeys: observable,
|
|
260
259
|
currentEditorState: observable,
|
|
261
260
|
openedEditorStates: observable,
|
|
262
|
-
backdrop: observable,
|
|
263
261
|
ignoreNavigationBlocking: observable,
|
|
264
262
|
isDevToolEnabled: observable,
|
|
265
263
|
|
|
@@ -268,7 +266,6 @@ export class EditorStore {
|
|
|
268
266
|
isInitialized: computed,
|
|
269
267
|
isInGrammarTextMode: computed,
|
|
270
268
|
isInFormMode: computed,
|
|
271
|
-
hasUnpushedChanges: computed,
|
|
272
269
|
|
|
273
270
|
applicationStore: false,
|
|
274
271
|
sdlcServerClient: false,
|
|
@@ -283,7 +280,6 @@ export class EditorStore {
|
|
|
283
280
|
resetHotkeys: action,
|
|
284
281
|
setBlockGlobalHotkeys: action,
|
|
285
282
|
setCurrentEditorState: action,
|
|
286
|
-
setBackdrop: action,
|
|
287
283
|
setActiveAuxPanelMode: action,
|
|
288
284
|
setIgnoreNavigationBlocking: action,
|
|
289
285
|
refreshCurrentEntityDiffEditorState: action,
|
|
@@ -473,22 +469,14 @@ export class EditorStore {
|
|
|
473
469
|
) && this.graphManagerState.systemBuildState.hasSucceeded
|
|
474
470
|
);
|
|
475
471
|
}
|
|
472
|
+
|
|
476
473
|
get isInGrammarTextMode(): boolean {
|
|
477
474
|
return this.graphEditMode === GRAPH_EDITOR_MODE.GRAMMAR_TEXT;
|
|
478
475
|
}
|
|
476
|
+
|
|
479
477
|
get isInFormMode(): boolean {
|
|
480
478
|
return this.graphEditMode === GRAPH_EDITOR_MODE.FORM;
|
|
481
479
|
}
|
|
482
|
-
get hasUnpushedChanges(): boolean {
|
|
483
|
-
return Boolean(
|
|
484
|
-
this.changeDetectionState.workspaceLocalLatestRevisionState.changes
|
|
485
|
-
.length,
|
|
486
|
-
);
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
setDevTool(val: boolean): void {
|
|
490
|
-
this.isDevToolEnabled = val;
|
|
491
|
-
}
|
|
492
480
|
|
|
493
481
|
setHotkeys(val: HotkeyConfiguration[]): void {
|
|
494
482
|
this.hotkeys = val;
|
|
@@ -506,12 +494,12 @@ export class EditorStore {
|
|
|
506
494
|
this.blockGlobalHotkeys = val;
|
|
507
495
|
}
|
|
508
496
|
|
|
509
|
-
|
|
510
|
-
this.
|
|
497
|
+
setDevTool(val: boolean): void {
|
|
498
|
+
this.isDevToolEnabled = val;
|
|
511
499
|
}
|
|
512
500
|
|
|
513
|
-
|
|
514
|
-
this.
|
|
501
|
+
setCurrentEditorState(val: EditorState | undefined): void {
|
|
502
|
+
this.currentEditorState = val;
|
|
515
503
|
}
|
|
516
504
|
|
|
517
505
|
setActiveAuxPanelMode(val: AUX_PANEL_MODE): void {
|
|
@@ -630,10 +618,10 @@ export class EditorStore {
|
|
|
630
618
|
},
|
|
631
619
|
},
|
|
632
620
|
{
|
|
633
|
-
label: 'Back to setup
|
|
621
|
+
label: 'Back to workspace setup',
|
|
634
622
|
type: ActionAlertActionType.STANDARD,
|
|
635
623
|
handler: (): void => {
|
|
636
|
-
this.applicationStore.navigator.
|
|
624
|
+
this.applicationStore.navigator.goToLocation(
|
|
637
625
|
generateSetupRoute(undefined),
|
|
638
626
|
);
|
|
639
627
|
},
|
|
@@ -697,7 +685,7 @@ export class EditorStore {
|
|
|
697
685
|
default: true,
|
|
698
686
|
type: ActionAlertActionType.STANDARD,
|
|
699
687
|
handler: (): void => {
|
|
700
|
-
this.applicationStore.navigator.
|
|
688
|
+
this.applicationStore.navigator.goToLocation(
|
|
701
689
|
generateViewProjectRoute(projectId),
|
|
702
690
|
);
|
|
703
691
|
},
|
|
@@ -712,10 +700,10 @@ export class EditorStore {
|
|
|
712
700
|
},
|
|
713
701
|
},
|
|
714
702
|
{
|
|
715
|
-
label: 'Back to setup
|
|
703
|
+
label: 'Back to workspace setup',
|
|
716
704
|
type: ActionAlertActionType.STANDARD,
|
|
717
705
|
handler: (): void => {
|
|
718
|
-
this.applicationStore.navigator.
|
|
706
|
+
this.applicationStore.navigator.goToLocation(
|
|
719
707
|
generateSetupRoute(projectId, workspaceId, workspaceType),
|
|
720
708
|
);
|
|
721
709
|
},
|
|
@@ -149,11 +149,14 @@ export class LegendStudioBaseStore {
|
|
|
149
149
|
this.isSDLCAuthorized =
|
|
150
150
|
(yield this.sdlcServerClient.isAuthorized()) as boolean;
|
|
151
151
|
if (!this.isSDLCAuthorized) {
|
|
152
|
-
this.applicationStore.navigator.
|
|
152
|
+
this.applicationStore.navigator.visitAddress(
|
|
153
153
|
SDLCServerClient.authorizeCallbackUrl(
|
|
154
154
|
this.applicationStore.config.sdlcServerUrl,
|
|
155
|
-
this.applicationStore.navigator.
|
|
155
|
+
this.applicationStore.navigator.getCurrentAddress(),
|
|
156
156
|
),
|
|
157
|
+
{
|
|
158
|
+
useSameWindow: true,
|
|
159
|
+
},
|
|
157
160
|
);
|
|
158
161
|
} else {
|
|
159
162
|
// Only proceed intialization after passing authorization check
|
|
@@ -172,7 +175,7 @@ export class LegendStudioBaseStore {
|
|
|
172
175
|
default: true,
|
|
173
176
|
handler: (): void =>
|
|
174
177
|
this.SDLCServerTermsOfServicesUrlsToView.forEach((url) =>
|
|
175
|
-
this.applicationStore.navigator.
|
|
178
|
+
this.applicationStore.navigator.visitAddress(url),
|
|
176
179
|
),
|
|
177
180
|
type: ActionAlertActionType.PROCEED,
|
|
178
181
|
},
|
|
@@ -209,7 +212,7 @@ export class LegendStudioBaseStore {
|
|
|
209
212
|
type: ActionAlertActionType.PROCEED,
|
|
210
213
|
default: true,
|
|
211
214
|
handler: (): void => {
|
|
212
|
-
this.applicationStore.navigator.
|
|
215
|
+
this.applicationStore.navigator.visitAddress(
|
|
213
216
|
this.sdlcServerClient.currentUserUrl,
|
|
214
217
|
);
|
|
215
218
|
this.applicationStore.setBlockingAlert({
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { generateGAVCoordinates } from '@finos/legend-storage';
|
|
18
18
|
import { WorkspaceType } from '@finos/legend-server-sdlc';
|
|
19
19
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
20
|
-
import { generatePath } from '
|
|
20
|
+
import { generatePath } from '@finos/legend-application';
|
|
21
21
|
|
|
22
22
|
export enum LEGEND_STUDIO_PATH_PARAM_TOKEN {
|
|
23
23
|
PROJECT_ID = 'projectId',
|
|
@@ -80,18 +80,18 @@ import type { DSL_Mapping_LegendStudioApplicationPlugin_Extension } from '../DSL
|
|
|
80
80
|
import {
|
|
81
81
|
packageableConnection_setConnectionValue,
|
|
82
82
|
runtime_addMapping,
|
|
83
|
-
} from '../
|
|
83
|
+
} from '../shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
84
84
|
import {
|
|
85
85
|
fileGeneration_setScopeElements,
|
|
86
86
|
fileGeneration_setType,
|
|
87
87
|
generationSpecification_addGenerationElement,
|
|
88
|
-
} from '../
|
|
88
|
+
} from '../shared/modifier/DSL_Generation_GraphModifierHelper.js';
|
|
89
89
|
import {
|
|
90
90
|
service_initNewService,
|
|
91
91
|
service_setExecution,
|
|
92
|
-
} from '../
|
|
92
|
+
} from '../shared/modifier/DSL_Service_GraphModifierHelper.js';
|
|
93
93
|
import type { EmbeddedDataTypeOption } from '../editor-state/element-editor-state/data/DataEditorState.js';
|
|
94
|
-
import { dataElement_setEmbeddedData } from '../
|
|
94
|
+
import { dataElement_setEmbeddedData } from '../shared/modifier/DSL_Data_GraphModifierHelper.js';
|
|
95
95
|
import { PACKAGEABLE_ELEMENT_TYPE } from '../shared/ModelClassifierUtils.js';
|
|
96
96
|
import {
|
|
97
97
|
buildElementOption,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
fileGeneration_addConfigurationProperty,
|
|
55
55
|
fileGeneration_addScopeElement,
|
|
56
56
|
fileGeneration_deleteScopeElement,
|
|
57
|
-
} from '../
|
|
57
|
+
} from '../shared/modifier/DSL_Generation_GraphModifierHelper.js';
|
|
58
58
|
|
|
59
59
|
export class FileGenerationState {
|
|
60
60
|
editorStore: EditorStore;
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
generationSpecification_addNode,
|
|
34
34
|
generationSpecification_deleteGenerationNode,
|
|
35
|
-
} from '../
|
|
35
|
+
} from '../shared/modifier/DSL_Generation_GraphModifierHelper.js';
|
|
36
36
|
|
|
37
37
|
export interface GenerationSpecNodeDragSource {
|
|
38
38
|
nodeState: GenerationTreeNodeState;
|
|
@@ -66,7 +66,7 @@ import { ExternalFormatState } from './ExternalFormatState.js';
|
|
|
66
66
|
import {
|
|
67
67
|
generationSpecification_addFileGeneration,
|
|
68
68
|
generationSpecification_addGenerationElement,
|
|
69
|
-
} from '../
|
|
69
|
+
} from '../shared/modifier/DSL_Generation_GraphModifierHelper.js';
|
|
70
70
|
|
|
71
71
|
export const DEFAULT_GENERATION_SPECIFICATION_NAME =
|
|
72
72
|
'MyGenerationSpecification';
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
import {
|
|
50
50
|
externalFormat_schemaSet_setFormat,
|
|
51
51
|
externalFormat_schemaSet_setSchemas,
|
|
52
|
-
} from '../
|
|
52
|
+
} from '../shared/modifier/DSL_ExternalFormat_GraphModifierHelper.js';
|
|
53
53
|
import { InnerSchemaSetEditorState } from './element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js';
|
|
54
54
|
|
|
55
55
|
export enum MODEL_IMPORT_NATIVE_INPUT_TYPE {
|
|
@@ -67,7 +67,7 @@ export enum MODEL_IMPORT_TYPE {
|
|
|
67
67
|
export abstract class ModelImporterEditorState {
|
|
68
68
|
readonly editorStore: EditorStore;
|
|
69
69
|
readonly modelImporterState: ModelImporterState;
|
|
70
|
-
loadModelActionState = ActionState.create();
|
|
70
|
+
readonly loadModelActionState = ActionState.create();
|
|
71
71
|
|
|
72
72
|
constructor(modelImporterState: ModelImporterState) {
|
|
73
73
|
this.editorStore = modelImporterState.editorStore;
|
|
@@ -80,7 +80,7 @@ export abstract class ModelImporterEditorState {
|
|
|
80
80
|
|
|
81
81
|
abstract get isLoadingDisabled(): boolean;
|
|
82
82
|
|
|
83
|
-
abstract loadModel():
|
|
83
|
+
abstract loadModel(): Promise<void>;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
export class NativeModelImporterEditorState extends ModelImporterEditorState {
|
|
@@ -235,7 +235,7 @@ export class NativeModelImporterEditorState extends ModelImporterEditorState {
|
|
|
235
235
|
return `###Pure\n Class model::A\n {\n\n}`;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
|
|
238
|
+
async loadModel(): Promise<void> {
|
|
239
239
|
try {
|
|
240
240
|
this.loadModelActionState.inProgress();
|
|
241
241
|
this.editorStore.setBlockingAlert({
|
|
@@ -243,17 +243,18 @@ export class NativeModelImporterEditorState extends ModelImporterEditorState {
|
|
|
243
243
|
prompt: 'Please do not close the application',
|
|
244
244
|
showLoading: true,
|
|
245
245
|
});
|
|
246
|
-
const entities =
|
|
246
|
+
const entities = await this.loadEntites();
|
|
247
247
|
const message = `loading entities from ${
|
|
248
248
|
this.editorStore.applicationStore.config.appName
|
|
249
249
|
} [${this.modelImporterState.replace ? `potentially affected ` : ''} ${
|
|
250
250
|
entities.length
|
|
251
251
|
} entities]`;
|
|
252
|
-
|
|
252
|
+
await this.editorStore.sdlcServerClient.updateEntities(
|
|
253
253
|
this.editorStore.sdlcState.activeProject.projectId,
|
|
254
254
|
this.editorStore.sdlcState.activeWorkspace,
|
|
255
255
|
{ replace: this.modelImporterState.replace, entities, message },
|
|
256
256
|
);
|
|
257
|
+
this.editorStore.setIgnoreNavigationBlocking(true);
|
|
257
258
|
this.editorStore.applicationStore.navigator.reload();
|
|
258
259
|
} catch (error) {
|
|
259
260
|
assertErrorThrown(error);
|
|
@@ -317,8 +318,8 @@ export class ExtensionModelImporterEditorState extends ModelImporterEditorState
|
|
|
317
318
|
this.config = extensionConfiguration;
|
|
318
319
|
}
|
|
319
320
|
|
|
320
|
-
|
|
321
|
-
|
|
321
|
+
async loadModel(): Promise<void> {
|
|
322
|
+
await this.config.loadModel(this.rendererState);
|
|
322
323
|
}
|
|
323
324
|
}
|
|
324
325
|
|
|
@@ -393,7 +394,7 @@ export class ExternalFormatModelImporterState extends ModelImporterEditorState {
|
|
|
393
394
|
}
|
|
394
395
|
}
|
|
395
396
|
|
|
396
|
-
|
|
397
|
+
async loadModel(): Promise<void> {
|
|
397
398
|
this.loadModelActionState.inProgress();
|
|
398
399
|
try {
|
|
399
400
|
this.loadModelActionState.inProgress();
|
|
@@ -404,15 +405,14 @@ export class ExternalFormatModelImporterState extends ModelImporterEditorState {
|
|
|
404
405
|
});
|
|
405
406
|
const modelgenerationstate =
|
|
406
407
|
this.schemaSetEditorState.schemaSetModelGenerationState;
|
|
407
|
-
const entities =
|
|
408
|
+
const entities = await flowResult(
|
|
408
409
|
modelgenerationstate.getImportEntities(),
|
|
409
|
-
)
|
|
410
|
+
);
|
|
410
411
|
if (modelgenerationstate.targetBinding) {
|
|
411
|
-
const schemaEntity =
|
|
412
|
+
const schemaEntity =
|
|
412
413
|
this.editorStore.graphManagerState.graphManager.elementToEntity(
|
|
413
414
|
this.schemaSet,
|
|
414
|
-
)
|
|
415
|
-
)) as Entity;
|
|
415
|
+
);
|
|
416
416
|
entities.push(schemaEntity);
|
|
417
417
|
}
|
|
418
418
|
assertTrue(Boolean(entities.length), 'No entities to load');
|
|
@@ -421,11 +421,12 @@ export class ExternalFormatModelImporterState extends ModelImporterEditorState {
|
|
|
421
421
|
} [${this.modelImporterState.replace ? `potentially affected ` : ''} ${
|
|
422
422
|
entities.length
|
|
423
423
|
} entities]`;
|
|
424
|
-
|
|
424
|
+
await this.editorStore.sdlcServerClient.updateEntities(
|
|
425
425
|
this.editorStore.sdlcState.activeProject.projectId,
|
|
426
426
|
this.editorStore.sdlcState.activeWorkspace,
|
|
427
427
|
{ replace: this.modelImporterState.replace, entities, message },
|
|
428
428
|
);
|
|
429
|
+
this.editorStore.setIgnoreNavigationBlocking(true);
|
|
429
430
|
this.editorStore.applicationStore.navigator.reload();
|
|
430
431
|
} catch (error) {
|
|
431
432
|
assertErrorThrown(error);
|