@finos/legend-application-studio 18.0.1 → 18.1.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/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.js +10 -10
- 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 +14 -14
- 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 +59 -51
- 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 +58 -24
- 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.js +4 -4
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.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/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 +7 -4
- 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 +3 -2
- package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js +9 -3
- 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 +20 -9
- 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.js +1 -1
- 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 -7
- package/lib/stores/shared/modifier/DSL_Mapping_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Mapping_GraphModifierHelper.js +15 -16
- 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 +12 -12
- 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 +27 -27
- 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 +199 -206
- 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 +250 -86
- 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 +6 -6
- package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +11 -11
- 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 +9 -5
- 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 +15 -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 +18 -10
- 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 +1 -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 +15 -20
- 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
|
@@ -30,7 +30,6 @@ import {
|
|
|
30
30
|
InfoCircleIcon,
|
|
31
31
|
PanelContent,
|
|
32
32
|
} from '@finos/legend-art';
|
|
33
|
-
import { Link } from 'react-router-dom';
|
|
34
33
|
import { EntityChangeConflictSideBarItem } from '../../editor/edit-panel/diff-editor/EntityChangeConflictEditor.js';
|
|
35
34
|
import { EntityChangeConflictEditorState } from '../../../stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js';
|
|
36
35
|
import { generateReviewRoute } from '../../../stores/LegendStudioRouter.js';
|
|
@@ -56,7 +55,7 @@ export const WorkspaceUpdater = observer(() => {
|
|
|
56
55
|
const workspaceUpdaterState = editorStore.workspaceUpdaterState;
|
|
57
56
|
// Actions
|
|
58
57
|
const updateWorkspace = (): void => {
|
|
59
|
-
if (editorStore.hasUnpushedChanges) {
|
|
58
|
+
if (editorStore.localChangesState.hasUnpushedChanges) {
|
|
60
59
|
editorStore.setActionAlertInfo({
|
|
61
60
|
message: 'You have unpushed changes',
|
|
62
61
|
prompt:
|
|
@@ -69,7 +68,6 @@ export const WorkspaceUpdater = observer(() => {
|
|
|
69
68
|
label: 'Proceed to update workspace',
|
|
70
69
|
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
|
71
70
|
handler: (): void => {
|
|
72
|
-
editorStore.setIgnoreNavigationBlocking(true);
|
|
73
71
|
flowResult(workspaceUpdaterState.updateWorkspace()).catch(
|
|
74
72
|
applicationStore.alertUnhandledError,
|
|
75
73
|
);
|
|
@@ -252,13 +250,18 @@ export const WorkspaceUpdater = observer(() => {
|
|
|
252
250
|
</div>
|
|
253
251
|
<PanelContent>
|
|
254
252
|
{commitedReviews.map((review) => (
|
|
255
|
-
<
|
|
253
|
+
<button
|
|
256
254
|
key={review.id}
|
|
257
255
|
className="side-bar__panel__item workspace-updater__review__link"
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
256
|
+
title="See review"
|
|
257
|
+
tabIndex={-1}
|
|
258
|
+
onClick={(): void =>
|
|
259
|
+
applicationStore.navigator.visitAddress(
|
|
260
|
+
applicationStore.navigator.generateAddress(
|
|
261
|
+
generateReviewRoute(review.projectId, review.id),
|
|
262
|
+
),
|
|
263
|
+
)
|
|
264
|
+
}
|
|
262
265
|
>
|
|
263
266
|
<div className="workspace-updater__review">
|
|
264
267
|
<span className="workspace-updater__review__name">
|
|
@@ -268,7 +271,7 @@ export const WorkspaceUpdater = observer(() => {
|
|
|
268
271
|
{review.author.name}
|
|
269
272
|
</span>
|
|
270
273
|
</div>
|
|
271
|
-
</
|
|
274
|
+
</button>
|
|
272
275
|
))}
|
|
273
276
|
</PanelContent>
|
|
274
277
|
</div>
|
|
@@ -16,11 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
import { useEffect, Fragment } from 'react';
|
|
18
18
|
import { observer } from 'mobx-react-lite';
|
|
19
|
-
import { useResizeDetector } from 'react-resize-detector';
|
|
20
19
|
import { EditPanel } from '../editor/edit-panel/EditPanel.js';
|
|
21
20
|
import { GrammarTextEditor } from '../editor/edit-panel/GrammarTextEditor.js';
|
|
22
|
-
import { useParams } from 'react-router';
|
|
23
|
-
import { Link } from 'react-router-dom';
|
|
24
21
|
import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js';
|
|
25
22
|
import {
|
|
26
23
|
ACTIVITY_MODE,
|
|
@@ -40,6 +37,7 @@ import {
|
|
|
40
37
|
WrenchIcon,
|
|
41
38
|
FileTrayIcon,
|
|
42
39
|
AssistantIcon,
|
|
40
|
+
useResizeDetector,
|
|
43
41
|
} from '@finos/legend-art';
|
|
44
42
|
import { isNonNullable } from '@finos/legend-shared';
|
|
45
43
|
import { GlobalHotKeys } from 'react-hotkeys';
|
|
@@ -57,7 +55,7 @@ import {
|
|
|
57
55
|
useEditorStore,
|
|
58
56
|
withEditorStore,
|
|
59
57
|
} from '../editor/EditorStoreProvider.js';
|
|
60
|
-
import { useApplicationStore } from '@finos/legend-application';
|
|
58
|
+
import { useApplicationStore, useParams } from '@finos/legend-application';
|
|
61
59
|
import {
|
|
62
60
|
ActivityBarMenu,
|
|
63
61
|
type ActivityDisplay,
|
|
@@ -110,9 +108,18 @@ const ProjectViewerStatusBar = observer(() => {
|
|
|
110
108
|
<CodeBranchIcon />
|
|
111
109
|
</div>
|
|
112
110
|
<div className="editor__status-bar__workspace__project">
|
|
113
|
-
<
|
|
111
|
+
<button
|
|
112
|
+
className="editor__status-bar__workspace__project"
|
|
113
|
+
title="Go back to workspace setup using the specified project"
|
|
114
|
+
tabIndex={-1}
|
|
115
|
+
onClick={(): void =>
|
|
116
|
+
applicationStore.navigator.goToLocation(
|
|
117
|
+
generateSetupRoute(projectId),
|
|
118
|
+
)
|
|
119
|
+
}
|
|
120
|
+
>
|
|
114
121
|
{currentProject.name}
|
|
115
|
-
</
|
|
122
|
+
</button>
|
|
116
123
|
</div>
|
|
117
124
|
/
|
|
118
125
|
<div className="editor__status-bar__workspace__workspace">
|
|
@@ -137,7 +144,7 @@ const ProjectViewerStatusBar = observer(() => {
|
|
|
137
144
|
)}
|
|
138
145
|
onClick={handleTextModeClick}
|
|
139
146
|
tabIndex={-1}
|
|
140
|
-
title=
|
|
147
|
+
title="Toggle text mode (F8)"
|
|
141
148
|
>
|
|
142
149
|
<HackerIcon />
|
|
143
150
|
</button>
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
import { useEffect, useState, useRef } from 'react';
|
|
18
18
|
import { observer } from 'mobx-react-lite';
|
|
19
19
|
import { editor as monacoEditorAPI, KeyCode } from 'monaco-editor';
|
|
20
|
-
import { useResizeDetector } from 'react-resize-detector';
|
|
21
20
|
import {
|
|
22
21
|
EDITOR_THEME,
|
|
23
22
|
EDITOR_LANGUAGE,
|
|
@@ -28,6 +27,7 @@ import {
|
|
|
28
27
|
disposeDiffEditor,
|
|
29
28
|
disableEditorHotKeys,
|
|
30
29
|
baseTextEditorSettings,
|
|
30
|
+
useResizeDetector,
|
|
31
31
|
} from '@finos/legend-art';
|
|
32
32
|
import {
|
|
33
33
|
isString,
|
|
@@ -34,8 +34,8 @@ export const getProjectOptionLabelFormatter = (
|
|
|
34
34
|
): ((option: ProjectOption) => React.ReactNode) =>
|
|
35
35
|
function ProjectOptionLabel(option: ProjectOption): React.ReactNode {
|
|
36
36
|
const viewProject = (): void =>
|
|
37
|
-
applicationStore.navigator.
|
|
38
|
-
applicationStore.navigator.
|
|
37
|
+
applicationStore.navigator.visitAddress(
|
|
38
|
+
applicationStore.navigator.generateAddress(
|
|
39
39
|
generateViewProjectRoute(option.value.projectId),
|
|
40
40
|
),
|
|
41
41
|
);
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
import { useMemo, useCallback } from 'react';
|
|
18
18
|
import { type IKeyboardEvent, KeyCode } from 'monaco-editor';
|
|
19
19
|
import { observer } from 'mobx-react-lite';
|
|
20
|
-
import {
|
|
21
|
-
LambdaEditor,
|
|
22
|
-
useApplicationStore,
|
|
23
|
-
type LambdaEditorOnKeyDownEventHandler,
|
|
24
|
-
type LambdaEditorState,
|
|
25
|
-
} from '@finos/legend-application';
|
|
20
|
+
import { useApplicationStore } from '@finos/legend-application';
|
|
26
21
|
import { flowResult } from 'mobx';
|
|
27
22
|
import type { Type } from '@finos/legend-graph';
|
|
28
23
|
import { useEditorStore } from '../editor/EditorStoreProvider.js';
|
|
24
|
+
import {
|
|
25
|
+
type LambdaEditorState,
|
|
26
|
+
type LambdaEditorOnKeyDownEventHandler,
|
|
27
|
+
LambdaEditor,
|
|
28
|
+
} from '@finos/legend-query-builder';
|
|
29
29
|
|
|
30
30
|
export const StudioLambdaEditor = observer(
|
|
31
31
|
(props: {
|
|
@@ -67,8 +67,8 @@ export const StudioLambdaEditor = observer(
|
|
|
67
67
|
const editorStore = useEditorStore();
|
|
68
68
|
|
|
69
69
|
const backdropSetter = useCallback(
|
|
70
|
-
(val: boolean) =>
|
|
71
|
-
[
|
|
70
|
+
(val: boolean) => applicationStore.setShowBackdrop(val),
|
|
71
|
+
[applicationStore],
|
|
72
72
|
);
|
|
73
73
|
const onKeyDownEventHandlers: LambdaEditorOnKeyDownEventHandler[] = useMemo(
|
|
74
74
|
() => [
|
|
@@ -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
|
},
|
|
@@ -188,7 +191,8 @@ export class LegendStudioBaseStore {
|
|
|
188
191
|
});
|
|
189
192
|
}
|
|
190
193
|
|
|
191
|
-
// fetch server features config
|
|
194
|
+
// fetch server features config and platforms
|
|
195
|
+
yield this.sdlcServerClient.fetchServerPlatforms();
|
|
192
196
|
yield this.sdlcServerClient.fetchServerFeaturesConfiguration();
|
|
193
197
|
}
|
|
194
198
|
} catch (error) {
|
|
@@ -209,7 +213,7 @@ export class LegendStudioBaseStore {
|
|
|
209
213
|
type: ActionAlertActionType.PROCEED,
|
|
210
214
|
default: true,
|
|
211
215
|
handler: (): void => {
|
|
212
|
-
this.applicationStore.navigator.
|
|
216
|
+
this.applicationStore.navigator.visitAddress(
|
|
213
217
|
this.sdlcServerClient.currentUserUrl,
|
|
214
218
|
);
|
|
215
219
|
this.applicationStore.setBlockingAlert({
|