@finos/legend-application-studio 22.5.0 → 23.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/LegendStudio.d.ts.map +1 -1
- package/lib/application/LegendStudio.js +8 -5
- package/lib/application/LegendStudio.js.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.d.ts +4 -0
- package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.js +7 -1
- package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
- package/lib/application/LegendStudioApplicationNavigationContext.d.ts.map +1 -0
- package/lib/application/LegendStudioApplicationNavigationContext.js.map +1 -0
- package/lib/application/LegendStudioCommand.d.ts.map +1 -0
- package/lib/application/LegendStudioCommand.js.map +1 -0
- package/lib/application/LegendStudioDocumentation.d.ts.map +1 -0
- package/lib/application/LegendStudioDocumentation.js.map +1 -0
- package/lib/{stores/LegendStudioAppEvent.d.ts → application/LegendStudioEvent.d.ts} +1 -1
- package/lib/application/LegendStudioEvent.d.ts.map +1 -0
- package/lib/{stores/LegendStudioAppEvent.js → application/LegendStudioEvent.js} +1 -1
- package/lib/application/LegendStudioEvent.js.map +1 -0
- package/lib/{stores/LegendStudioEventService.d.ts → application/LegendStudioEventHelper.d.ts} +3 -6
- package/lib/application/LegendStudioEventHelper.d.ts.map +1 -0
- package/lib/{stores/LegendStudioEventService.js → application/LegendStudioEventHelper.js} +4 -11
- package/lib/application/LegendStudioEventHelper.js.map +1 -0
- package/lib/{stores/LegendStudioRouter.d.ts → application/LegendStudioNavigation.d.ts} +24 -24
- package/lib/application/LegendStudioNavigation.d.ts.map +1 -0
- package/lib/{stores/LegendStudioRouter.js → application/LegendStudioNavigation.js} +28 -28
- package/lib/application/LegendStudioNavigation.js.map +1 -0
- package/lib/{stores/LegendStudioStorage.d.ts → application/LegendStudioSetting.d.ts} +4 -2
- package/lib/application/LegendStudioSetting.d.ts.map +1 -0
- package/lib/application/LegendStudioSetting.js +29 -0
- package/lib/application/LegendStudioSetting.js.map +1 -0
- package/lib/{stores/LegendStudioTelemetry.d.ts → application/LegendStudioTelemetryHelper.d.ts} +8 -8
- package/lib/application/LegendStudioTelemetryHelper.d.ts.map +1 -0
- package/lib/application/LegendStudioTelemetryHelper.js +37 -0
- package/lib/application/LegendStudioTelemetryHelper.js.map +1 -0
- package/lib/components/Core_LegendStudioApplicationPlugin.d.ts +2 -1
- package/lib/components/Core_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/Core_LegendStudioApplicationPlugin.js +11 -6
- package/lib/components/Core_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/EditorComponentTestUtils.js +4 -5
- package/lib/components/EditorComponentTestUtils.js.map +1 -1
- package/lib/components/EmbeddedQueryBuilder.js +1 -1
- package/lib/components/EmbeddedQueryBuilder.js.map +1 -1
- package/lib/components/LegendStudioAppInfo.d.ts.map +1 -1
- package/lib/components/LegendStudioAppInfo.js +0 -1
- package/lib/components/LegendStudioAppInfo.js.map +1 -1
- package/lib/components/LegendStudioApplication.d.ts +0 -2
- package/lib/components/LegendStudioApplication.d.ts.map +1 -1
- package/lib/components/LegendStudioApplication.js +8 -8
- package/lib/components/LegendStudioApplication.js.map +1 -1
- package/lib/components/editor/ActivityBar.d.ts.map +1 -1
- package/lib/components/editor/ActivityBar.js +7 -2
- 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 +6 -2
- package/lib/components/editor/Editor.js.map +1 -1
- package/lib/components/editor/EditorStoreProvider.d.ts.map +1 -1
- package/lib/components/editor/EditorStoreProvider.js +1 -3
- package/lib/components/editor/EditorStoreProvider.js.map +1 -1
- package/lib/components/editor/StatusBar.d.ts.map +1 -1
- package/lib/components/editor/StatusBar.js +5 -8
- package/lib/components/editor/StatusBar.js.map +1 -1
- package/lib/components/editor/aux-panel/DevTool.js +2 -2
- package/lib/components/editor/aux-panel/DevTool.js.map +1 -1
- package/lib/components/editor/aux-panel/Problems.d.ts.map +1 -1
- package/lib/components/editor/aux-panel/Problems.js +4 -10
- package/lib/components/editor/aux-panel/Problems.js.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.js +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.js.map +1 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.js +1 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.js.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.js +3 -3
- package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js +2 -2
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.js +8 -7
- package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.js +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.js.map +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.js +3 -3
- 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/data-editor/DataElementEditor.js +1 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js +1 -1
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +1 -3
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.js +3 -2
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js +1 -3
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +2 -2
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.js +2 -2
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
- package/{src/stores/LegendStudioStorage.ts → lib/components/editor/edit-panel/service-editor/BulkServiceRegistrationEditor.d.ts} +5 -5
- package/lib/components/editor/edit-panel/service-editor/BulkServiceRegistrationEditor.d.ts.map +1 -0
- package/lib/components/editor/edit-panel/service-editor/BulkServiceRegistrationEditor.js +98 -0
- package/lib/components/editor/edit-panel/service-editor/BulkServiceRegistrationEditor.js.map +1 -0
- 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 +2 -2
- 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 +0 -2
- 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/uml-editor/AssociationEditor.js +2 -2
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.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.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js +1 -3
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js +2 -2
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.js +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js +1 -1
- package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js +1 -1
- package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.js +4 -0
- package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +18 -10
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.js +4 -3
- package/lib/components/editor/side-bar/LocalChanges.js.map +1 -1
- package/lib/components/editor/side-bar/ProjectDependantsEditor.js +1 -1
- package/lib/components/editor/side-bar/ProjectDependantsEditor.js.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.js +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
- package/lib/components/editor/side-bar/RegisterService.d.ts +8 -0
- package/lib/components/editor/side-bar/RegisterService.d.ts.map +1 -0
- package/lib/components/editor/side-bar/RegisterService.js +35 -0
- package/lib/components/editor/side-bar/RegisterService.js.map +1 -0
- package/lib/components/editor/side-bar/SideBar.d.ts.map +1 -1
- package/lib/components/editor/side-bar/SideBar.js +3 -0
- package/lib/components/editor/side-bar/SideBar.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.js +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.js +1 -1
- 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 +7 -4
- package/lib/components/project-viewer/ProjectViewer.js.map +1 -1
- package/lib/components/shared/ProjectSelectorUtils.js +1 -1
- package/lib/components/shared/ProjectSelectorUtils.js.map +1 -1
- package/lib/components/workspace-review/WorkspaceReview.js +1 -1
- package/lib/components/workspace-review/WorkspaceReview.js.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.js +2 -2
- package/lib/components/workspace-setup/CreateProjectModal.js.map +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.js +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.js +6 -6
- 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 +6 -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 +4 -4
- package/lib/stores/{LegendStudioCodeSnippets.d.ts → Core_CodeSnippets.d.ts} +1 -1
- package/lib/stores/Core_CodeSnippets.d.ts.map +1 -0
- package/lib/stores/{LegendStudioCodeSnippets.js → Core_CodeSnippets.js} +1 -1
- package/lib/stores/Core_CodeSnippets.js.map +1 -0
- package/lib/stores/DependencyProjectViewerHelper.js +1 -1
- package/lib/stores/DependencyProjectViewerHelper.js.map +1 -1
- package/lib/stores/EditorConfig.d.ts +2 -1
- package/lib/stores/EditorConfig.d.ts.map +1 -1
- package/lib/stores/EditorConfig.js +1 -0
- package/lib/stores/EditorConfig.js.map +1 -1
- package/lib/stores/EditorGraphState.d.ts +10 -71
- package/lib/stores/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.js +46 -540
- package/lib/stores/EditorGraphState.js.map +1 -1
- package/lib/stores/EditorSDLCState.js +1 -1
- package/lib/stores/EditorSDLCState.js.map +1 -1
- package/lib/stores/EditorStore.d.ts +13 -16
- package/lib/stores/EditorStore.d.ts.map +1 -1
- package/lib/stores/EditorStore.js +76 -215
- package/lib/stores/EditorStore.js.map +1 -1
- package/lib/stores/EditorStoreTestUtils.d.ts.map +1 -1
- package/lib/stores/EditorStoreTestUtils.js +1 -2
- package/lib/stores/EditorStoreTestUtils.js.map +1 -1
- package/lib/stores/EditorTabManagerState.d.ts +2 -1
- package/lib/stores/EditorTabManagerState.d.ts.map +1 -1
- package/lib/stores/EditorTabManagerState.js +63 -19
- package/lib/stores/EditorTabManagerState.js.map +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.d.ts +0 -1
- package/lib/stores/EmbeddedQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.js +10 -9
- package/lib/stores/EmbeddedQueryBuilderState.js.map +1 -1
- package/lib/stores/ExplorerTreeState.d.ts.map +1 -1
- package/lib/stores/ExplorerTreeState.js +2 -2
- package/lib/stores/ExplorerTreeState.js.map +1 -1
- package/lib/stores/GraphEditFormModeState.d.ts +81 -0
- package/lib/stores/GraphEditFormModeState.d.ts.map +1 -0
- package/lib/stores/GraphEditFormModeState.js +370 -0
- package/lib/stores/GraphEditFormModeState.js.map +1 -0
- package/lib/stores/GraphEditGrammarModeState.d.ts +65 -0
- package/lib/stores/GraphEditGrammarModeState.d.ts.map +1 -0
- package/lib/stores/GraphEditGrammarModeState.js +315 -0
- package/lib/stores/GraphEditGrammarModeState.js.map +1 -0
- package/lib/stores/GraphEditorMode.d.ts +51 -0
- package/lib/stores/GraphEditorMode.d.ts.map +1 -0
- package/lib/stores/GraphEditorMode.js +35 -0
- package/lib/stores/GraphEditorMode.js.map +1 -0
- package/lib/stores/LegendStudioApplicationPlugin.d.ts +12 -5
- package/lib/stores/LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendStudioBaseStore.js +25 -9
- package/lib/stores/LegendStudioBaseStore.js.map +1 -1
- package/lib/stores/editor/NewElementState.d.ts +2 -2
- package/lib/stores/editor/NewElementState.d.ts.map +1 -1
- package/lib/stores/editor/NewElementState.js +19 -10
- package/lib/stores/editor/NewElementState.js.map +1 -1
- package/lib/stores/editor/StandardEditorMode.js +1 -1
- package/lib/stores/editor/StandardEditorMode.js.map +1 -1
- package/lib/stores/editor-state/ExternalFormatState.js +1 -1
- package/lib/stores/editor-state/ExternalFormatState.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/GrammarTextEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/GrammarTextEditorState.js +2 -2
- package/lib/stores/editor-state/GrammarTextEditorState.js.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.d.ts.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.js +2 -2
- package/lib/stores/editor-state/GraphGenerationState.js.map +1 -1
- package/lib/stores/editor-state/ModelImporterState.js +1 -1
- package/lib/stores/editor-state/ModelImporterState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementExternalFormatGenerationState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementExternalFormatGenerationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.d.ts.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/connection/DatabaseBuilderState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.js +6 -3
- package/lib/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.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 +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.d.ts +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js.map +1 -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 +8 -15
- 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.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js +6 -11
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -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 +7 -14
- 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 +3 -3
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
- package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js +1 -1
- package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js.map +1 -1
- package/lib/stores/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js +1 -1
- package/lib/stores/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js.map +1 -1
- package/lib/stores/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.js +1 -1
- package/lib/stores/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.js.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerEditorMode.js +1 -1
- package/lib/stores/project-viewer/ProjectViewerEditorMode.js.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js +9 -15
- package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
- package/lib/stores/sidebar-state/BulkServiceRegistrationState.d.ts +51 -0
- package/lib/stores/sidebar-state/BulkServiceRegistrationState.d.ts.map +1 -0
- package/lib/stores/sidebar-state/BulkServiceRegistrationState.js +237 -0
- package/lib/stores/sidebar-state/BulkServiceRegistrationState.js.map +1 -0
- package/lib/stores/sidebar-state/LocalChangesState.d.ts +6 -3
- package/lib/stores/sidebar-state/LocalChangesState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.js +45 -12
- 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/WorkflowManagerState.js +1 -1
- package/lib/stores/sidebar-state/WorkflowManagerState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.js +2 -2
- package/lib/stores/sidebar-state/WorkspaceReviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceSyncState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceSyncState.js +2 -2
- package/lib/stores/sidebar-state/WorkspaceSyncState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js +2 -2
- package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js.map +1 -1
- package/lib/stores/workspace-review/WorkspaceReviewStore.js +1 -1
- package/lib/stores/workspace-review/WorkspaceReviewStore.js.map +1 -1
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js +2 -2
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js.map +1 -1
- package/package.json +13 -13
- package/src/application/LegendStudio.tsx +8 -7
- package/src/application/LegendStudioApplicationConfig.ts +7 -0
- package/src/{stores/LegendStudioEventService.ts → application/LegendStudioEventHelper.ts} +3 -13
- package/src/{stores/LegendStudioRouter.ts → application/LegendStudioNavigation.ts} +40 -39
- package/{lib/stores/LegendStudioStorage.js → src/application/LegendStudioSetting.ts} +16 -6
- package/src/{stores/LegendStudioTelemetry.ts → application/LegendStudioTelemetryHelper.ts} +14 -26
- package/src/components/Core_LegendStudioApplicationPlugin.tsx +14 -5
- package/src/components/EditorComponentTestUtils.tsx +8 -14
- package/src/components/EmbeddedQueryBuilder.tsx +1 -1
- package/src/components/LegendStudioAppInfo.tsx +0 -1
- package/src/components/LegendStudioApplication.tsx +24 -21
- package/src/components/editor/ActivityBar.tsx +7 -1
- package/src/components/editor/Editor.tsx +10 -6
- package/src/components/editor/EditorStoreProvider.tsx +1 -8
- package/src/components/editor/StatusBar.tsx +10 -9
- package/src/components/editor/aux-panel/DevTool.tsx +3 -3
- package/src/components/editor/aux-panel/Problems.tsx +5 -10
- package/src/components/editor/command-center/ProjectSearchCommand.tsx +1 -4
- package/src/components/editor/edit-panel/FileGenerationViewer.tsx +1 -1
- package/src/components/editor/edit-panel/FunctionEditor.tsx +3 -3
- package/src/components/editor/edit-panel/GenerationSpecificationEditor.tsx +2 -2
- package/src/components/editor/edit-panel/GrammarTextEditor.tsx +13 -8
- package/src/components/editor/edit-panel/ModelImporter.tsx +1 -1
- package/src/components/editor/edit-panel/RuntimeEditor.tsx +3 -3
- 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/data-editor/DataElementEditor.tsx +1 -1
- package/src/components/editor/edit-panel/data-editor/EmbeddedDataEditor.tsx +1 -1
- package/src/components/editor/edit-panel/diff-editor/EntityDiffView.tsx +1 -1
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +0 -1
- package/src/components/editor/edit-panel/mapping-editor/MappingEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +1 -4
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.tsx +3 -2
- package/src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +1 -4
- package/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.tsx +1 -1
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +3 -3
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.tsx +2 -2
- package/src/components/editor/edit-panel/service-editor/BulkServiceRegistrationEditor.tsx +283 -0
- package/src/components/editor/edit-panel/service-editor/ServiceEditor.tsx +2 -2
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +2 -2
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +0 -3
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.tsx +1 -1
- package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +2 -2
- package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +8 -8
- package/src/components/editor/edit-panel/uml-editor/ClassQueryBuilder.tsx +3 -4
- package/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx +2 -2
- package/src/components/editor/edit-panel/uml-editor/ProfileEditor.tsx +1 -1
- package/src/components/editor/edit-panel/uml-editor/StereotypeSelector.tsx +1 -1
- package/src/components/editor/edit-panel/uml-editor/TaggedValueEditor.tsx +1 -1
- package/src/components/editor/side-bar/CreateNewElementModal.tsx +4 -0
- package/src/components/editor/side-bar/Explorer.tsx +25 -15
- package/src/components/editor/side-bar/LocalChanges.tsx +4 -8
- package/src/components/editor/side-bar/ProjectDependantsEditor.tsx +1 -1
- package/src/components/editor/side-bar/ProjectOverview.tsx +1 -1
- package/src/components/editor/side-bar/RegisterService.tsx +139 -0
- package/src/components/editor/side-bar/SideBar.tsx +9 -0
- package/src/components/editor/side-bar/WorkspaceReview.tsx +1 -1
- package/src/components/editor/side-bar/WorkspaceUpdater.tsx +1 -1
- package/src/components/project-viewer/ProjectViewer.tsx +8 -5
- package/src/components/shared/ProjectSelectorUtils.tsx +1 -1
- package/src/components/workspace-review/WorkspaceReview.tsx +1 -1
- package/src/components/workspace-setup/CreateProjectModal.tsx +2 -2
- package/src/components/workspace-setup/CreateWorkspaceModal.tsx +1 -1
- package/src/components/workspace-setup/WorkspaceSetup.tsx +7 -7
- package/src/index.ts +9 -5
- package/src/stores/DependencyProjectViewerHelper.ts +1 -1
- package/src/stores/EditorConfig.ts +1 -0
- package/src/stores/EditorGraphState.ts +49 -798
- package/src/stores/EditorSDLCState.ts +1 -1
- package/src/stores/EditorStore.ts +104 -323
- package/src/stores/EditorStoreTestUtils.ts +0 -2
- package/src/stores/EditorTabManagerState.ts +90 -25
- package/src/stores/EmbeddedQueryBuilderState.ts +11 -11
- package/src/stores/ExplorerTreeState.ts +2 -4
- package/src/stores/GraphEditFormModeState.ts +605 -0
- package/src/stores/GraphEditGrammarModeState.ts +512 -0
- package/src/stores/GraphEditorMode.ts +77 -0
- package/src/stores/LegendStudioApplicationPlugin.ts +14 -4
- package/src/stores/LegendStudioBaseStore.ts +35 -11
- package/src/stores/editor/NewElementState.ts +36 -20
- package/src/stores/editor/StandardEditorMode.ts +1 -1
- package/src/stores/editor-state/ExternalFormatState.ts +1 -1
- package/src/stores/editor-state/FileGenerationState.ts +1 -1
- package/src/stores/editor-state/GrammarTextEditorState.ts +4 -5
- package/src/stores/editor-state/GraphGenerationState.ts +6 -2
- package/src/stores/editor-state/ModelImporterState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/ElementExternalFormatGenerationState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/ElementFileGenerationState.ts +5 -1
- package/src/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.ts +12 -5
- 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 +1 -3
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +12 -21
- package/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +6 -15
- package/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +7 -20
- 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 +3 -3
- package/src/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.ts +1 -1
- package/src/stores/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.ts +1 -1
- package/src/stores/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.ts +1 -1
- package/src/stores/project-viewer/ProjectViewerEditorMode.ts +1 -1
- package/src/stores/project-viewer/ProjectViewerStore.ts +14 -25
- package/src/stores/sidebar-state/BulkServiceRegistrationState.ts +370 -0
- package/src/stores/sidebar-state/LocalChangesState.ts +57 -16
- package/src/stores/sidebar-state/ProjectOverviewState.ts +2 -2
- package/src/stores/sidebar-state/WorkflowManagerState.ts +1 -1
- package/src/stores/sidebar-state/WorkspaceReviewState.ts +2 -2
- package/src/stores/sidebar-state/WorkspaceSyncState.ts +3 -2
- package/src/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.ts +2 -2
- package/src/stores/sidebar-state/WorkspaceUpdaterState.ts +1 -1
- package/src/stores/workspace-review/WorkspaceReviewStore.ts +1 -1
- package/src/stores/workspace-setup/WorkspaceSetupStore.ts +2 -2
- package/tsconfig.json +16 -11
- package/tsconfig.package.json +1 -2
- package/lib/stores/LegendStudioAppEvent.d.ts.map +0 -1
- package/lib/stores/LegendStudioAppEvent.js.map +0 -1
- package/lib/stores/LegendStudioApplicationNavigationContext.d.ts.map +0 -1
- package/lib/stores/LegendStudioApplicationNavigationContext.js.map +0 -1
- package/lib/stores/LegendStudioCodeSnippets.d.ts.map +0 -1
- package/lib/stores/LegendStudioCodeSnippets.js.map +0 -1
- package/lib/stores/LegendStudioCommand.d.ts.map +0 -1
- package/lib/stores/LegendStudioCommand.js.map +0 -1
- package/lib/stores/LegendStudioDocumentation.d.ts.map +0 -1
- package/lib/stores/LegendStudioDocumentation.js.map +0 -1
- package/lib/stores/LegendStudioEventService.d.ts.map +0 -1
- package/lib/stores/LegendStudioEventService.js.map +0 -1
- package/lib/stores/LegendStudioRouter.d.ts.map +0 -1
- package/lib/stores/LegendStudioRouter.js.map +0 -1
- package/lib/stores/LegendStudioStorage.d.ts.map +0 -1
- package/lib/stores/LegendStudioStorage.js.map +0 -1
- package/lib/stores/LegendStudioTelemetry.d.ts.map +0 -1
- package/lib/stores/LegendStudioTelemetry.js +0 -37
- package/lib/stores/LegendStudioTelemetry.js.map +0 -1
- /package/lib/{stores → application}/LegendStudioApplicationNavigationContext.d.ts +0 -0
- /package/lib/{stores → application}/LegendStudioApplicationNavigationContext.js +0 -0
- /package/lib/{stores → application}/LegendStudioCommand.d.ts +0 -0
- /package/lib/{stores → application}/LegendStudioCommand.js +0 -0
- /package/lib/{stores → application}/LegendStudioDocumentation.d.ts +0 -0
- /package/lib/{stores → application}/LegendStudioDocumentation.js +0 -0
- /package/src/{stores → application}/LegendStudioApplicationNavigationContext.ts +0 -0
- /package/src/{stores → application}/LegendStudioCommand.ts +0 -0
- /package/src/{stores → application}/LegendStudioDocumentation.ts +0 -0
- /package/src/{stores/LegendStudioAppEvent.ts → application/LegendStudioEvent.ts} +0 -0
- /package/src/stores/{LegendStudioCodeSnippets.ts → Core_CodeSnippets.ts} +0 -0
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { ActionAlertActionType, ActionAlertType, } from '@finos/legend-application';
|
|
17
|
+
import { GRAPH_MANAGER_EVENT, EngineError, GraphBuilderError, reportGraphAnalytics, } from '@finos/legend-graph';
|
|
18
|
+
import { assertErrorThrown, LogEvent, ActionState, StopWatch, } from '@finos/legend-shared';
|
|
19
|
+
import { makeObservable, flow, flowResult, observable } from 'mobx';
|
|
20
|
+
import { GrammarTextEditorState } from './editor-state/GrammarTextEditorState.js';
|
|
21
|
+
import { ExplorerTreeState } from './ExplorerTreeState.js';
|
|
22
|
+
import { TextLocalChangesState } from './sidebar-state/LocalChangesState.js';
|
|
23
|
+
import { GraphCompilationOutcome } from './EditorGraphState.js';
|
|
24
|
+
import { GRAPH_EDITOR_MODE, AUX_PANEL_MODE } from './EditorConfig.js';
|
|
25
|
+
import { graph_dispose } from './shared/modifier/GraphModifierHelper.js';
|
|
26
|
+
import { LegendStudioTelemetryHelper } from '../application/LegendStudioTelemetryHelper.js';
|
|
27
|
+
import { GraphEditorMode } from './GraphEditorMode.js';
|
|
28
|
+
import { ElementEditorState } from './editor-state/element-editor-state/ElementEditorState.js';
|
|
29
|
+
export class GraphEditGrammarModeState extends GraphEditorMode {
|
|
30
|
+
grammarTextEditorState;
|
|
31
|
+
constructor(editorStore) {
|
|
32
|
+
super(editorStore);
|
|
33
|
+
makeObservable(this, {
|
|
34
|
+
grammarTextEditorState: observable,
|
|
35
|
+
setGraphGrammar: flow,
|
|
36
|
+
setGraphGrammarFromEntites: flow,
|
|
37
|
+
compileText: flow,
|
|
38
|
+
});
|
|
39
|
+
this.grammarTextEditorState = new GrammarTextEditorState(this.editorStore);
|
|
40
|
+
}
|
|
41
|
+
async computeEntitiesFromCurrentGrammar() {
|
|
42
|
+
return this.editorStore.graphManagerState.graphManager.pureCodeToEntities(this.grammarTextEditorState.graphGrammarText);
|
|
43
|
+
}
|
|
44
|
+
*initialize(isFallback) {
|
|
45
|
+
this.editorStore.localChangesState = new TextLocalChangesState(this.editorStore, this.editorStore.sdlcState);
|
|
46
|
+
this.editorStore.graphState.clearProblems();
|
|
47
|
+
this.editorStore.changeDetectionState.stop();
|
|
48
|
+
try {
|
|
49
|
+
yield flowResult(this.editorStore.changeDetectionState.computeLocalChangesInTextMode((yield this.computeEntitiesFromCurrentGrammar())));
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
assertErrorThrown(error);
|
|
53
|
+
this.editorStore.applicationStore.logService.warn(LogEvent.create(GRAPH_MANAGER_EVENT.PARSING_FAILURE), error);
|
|
54
|
+
}
|
|
55
|
+
if (isFallback) {
|
|
56
|
+
yield flowResult(this.globalCompile({
|
|
57
|
+
ignoreBlocking: true,
|
|
58
|
+
suppressCompilationFailureMessage: true,
|
|
59
|
+
}));
|
|
60
|
+
}
|
|
61
|
+
// navigate to the currently opened element immediately after entering text mode editor
|
|
62
|
+
if (this.editorStore.tabManagerState.currentTab instanceof ElementEditorState) {
|
|
63
|
+
this.grammarTextEditorState.setCurrentElementLabelRegexString(this.editorStore.tabManagerState.currentTab.element);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
*setGraphGrammarFromEntites(entities) {
|
|
67
|
+
const editorGrammar = (yield this.editorStore.graphManagerState.graphManager.entitiesToPureCode(entities));
|
|
68
|
+
yield flowResult(this.grammarTextEditorState.setGraphGrammarText(editorGrammar));
|
|
69
|
+
}
|
|
70
|
+
*setGraphGrammar() {
|
|
71
|
+
const graphGrammar = (yield this.editorStore.graphManagerState.graphManager.graphToPureCode(this.editorStore.graphManagerState.graph));
|
|
72
|
+
yield flowResult(this.grammarTextEditorState.setGraphGrammarText(graphGrammar));
|
|
73
|
+
}
|
|
74
|
+
*compileText(options, report) {
|
|
75
|
+
return (yield this.editorStore.graphManagerState.graphManager.compileText(this.grammarTextEditorState.graphGrammarText, this.editorStore.graphManagerState.graph, options));
|
|
76
|
+
}
|
|
77
|
+
getCurrentGraphHash() {
|
|
78
|
+
return this.grammarTextEditorState.currentTextGraphHash;
|
|
79
|
+
}
|
|
80
|
+
*addElement(element, packagePath, openAfterCreate) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
*deleteElement(element) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
*renameElement(element, newPath) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
get mode() {
|
|
90
|
+
return GRAPH_EDITOR_MODE.GRAMMAR_TEXT;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Creates a new explorer tree state when compiling in text mode. It resets the explorer state properly
|
|
94
|
+
* after the new graph is built. It tries to maintain the explorer state similar to what it was before compilation.
|
|
95
|
+
* To achieve that we store node ids of the opened nodes before creating a new explorer state. After creating a
|
|
96
|
+
* new state we open the nodes which were opened before so that user see the same explorer state as before.
|
|
97
|
+
*/
|
|
98
|
+
reprocessExplorerTreeInTextMode() {
|
|
99
|
+
const mainTreeOpenedNodeIds = this.editorStore.explorerTreeState.treeData
|
|
100
|
+
? Array.from(this.editorStore.explorerTreeState.treeData.nodes.values())
|
|
101
|
+
.filter((node) => node.isOpen)
|
|
102
|
+
.map((node) => node.id)
|
|
103
|
+
: [];
|
|
104
|
+
const generationTreeOpenedNodeIds = this.editorStore.explorerTreeState
|
|
105
|
+
.generationTreeData
|
|
106
|
+
? Array.from(this.editorStore.explorerTreeState.generationTreeData.nodes.values())
|
|
107
|
+
.filter((node) => node.isOpen)
|
|
108
|
+
.map((node) => node.id)
|
|
109
|
+
: [];
|
|
110
|
+
// Storing dependencyTree, filegenerationTree, systemTree as is as they don't
|
|
111
|
+
// hold any reference to actual graph
|
|
112
|
+
const systemTreeData = this.editorStore.explorerTreeState.systemTreeData;
|
|
113
|
+
const dependencyTreeData = this.editorStore.explorerTreeState.dependencyTreeData;
|
|
114
|
+
const selectedNodeId = this.editorStore.explorerTreeState.selectedNode?.id;
|
|
115
|
+
this.editorStore.explorerTreeState = new ExplorerTreeState(this.editorStore);
|
|
116
|
+
this.editorStore.explorerTreeState.systemTreeData = systemTreeData;
|
|
117
|
+
this.editorStore.explorerTreeState.dependencyTreeData = dependencyTreeData;
|
|
118
|
+
this.editorStore.explorerTreeState.buildTreeInTextMode();
|
|
119
|
+
this.editorStore.explorerTreeState.openExplorerTreeNodes(mainTreeOpenedNodeIds, generationTreeOpenedNodeIds, selectedNodeId);
|
|
120
|
+
}
|
|
121
|
+
*updateGraphAndApplication(entities) {
|
|
122
|
+
const startTime = Date.now();
|
|
123
|
+
this.editorStore.graphState.isUpdatingApplication = true;
|
|
124
|
+
this.editorStore.graphState.isUpdatingGraph = true;
|
|
125
|
+
try {
|
|
126
|
+
const newGraph = this.editorStore.graphManagerState.createEmptyGraph();
|
|
127
|
+
yield flowResult(this.editorStore.graphState.rebuildDependencies(newGraph));
|
|
128
|
+
yield flowResult(graph_dispose(this.editorStore.graphManagerState.graph));
|
|
129
|
+
const graphBuildState = ActionState.create();
|
|
130
|
+
yield this.editorStore.graphManagerState.graphManager.buildLightGraph(newGraph, entities, graphBuildState, {
|
|
131
|
+
TEMPORARY__preserveSectionIndex: this.editorStore.applicationStore.config.options
|
|
132
|
+
.TEMPORARY__preserveSectionIndex,
|
|
133
|
+
strict: this.editorStore.graphState.enableStrictMode,
|
|
134
|
+
});
|
|
135
|
+
this.editorStore.graphManagerState.graph = newGraph;
|
|
136
|
+
// NOTE: here we don't want to modify the current graph build state directly
|
|
137
|
+
// instead, we quietly run this in the background and then sync it with the current build state
|
|
138
|
+
this.editorStore.graphManagerState.graphBuildState.sync(graphBuildState);
|
|
139
|
+
this.reprocessExplorerTreeInTextMode();
|
|
140
|
+
this.editorStore.applicationStore.logService.info(LogEvent.create(GRAPH_MANAGER_EVENT.UPDATE_AND_REBUILD_GRAPH__SUCCESS), '[TOTAL]', Date.now() - startTime, 'ms');
|
|
141
|
+
this.editorStore.graphState.isUpdatingGraph = false;
|
|
142
|
+
}
|
|
143
|
+
catch (error) {
|
|
144
|
+
assertErrorThrown(error);
|
|
145
|
+
this.editorStore.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.GRAPH_BUILDER_FAILURE), error);
|
|
146
|
+
this.editorStore.graphState.isUpdatingGraph = false;
|
|
147
|
+
if (error instanceof GraphBuilderError) {
|
|
148
|
+
this.editorStore.applicationStore.notificationService.notifyError(`Can't build graph: ${error.message}`);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
finally {
|
|
152
|
+
this.editorStore.graphState.isUpdatingApplication = false;
|
|
153
|
+
this.editorStore.applicationStore.alertService.setBlockingAlert(undefined);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
// TODO: when we support showing multiple notifications, we can take this `suppressCompilationFailureMessage` out as
|
|
157
|
+
// we can show the transition between form mode and text mode warning and the compilation failure warning at the same time
|
|
158
|
+
*globalCompile(options) {
|
|
159
|
+
if (!options?.ignoreBlocking &&
|
|
160
|
+
this.editorStore.graphState.checkIfApplicationUpdateOperationIsRunning()) {
|
|
161
|
+
this.editorStore.graphState.setMostRecentCompilationOutcome(GraphCompilationOutcome.SKIPPED);
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
const stopWatch = new StopWatch();
|
|
165
|
+
const report = reportGraphAnalytics(this.editorStore.graphManagerState.graph);
|
|
166
|
+
LegendStudioTelemetryHelper.logEvent_TextCompilationLaunched(this.editorStore.applicationStore.telemetryService);
|
|
167
|
+
const currentGraphHash = this.getCurrentGraphHash();
|
|
168
|
+
try {
|
|
169
|
+
this.editorStore.graphState.isRunningGlobalCompile = true;
|
|
170
|
+
this.editorStore.graphState.clearProblems();
|
|
171
|
+
if (options?.openConsole) {
|
|
172
|
+
this.editorStore.setActiveAuxPanelMode(AUX_PANEL_MODE.CONSOLE);
|
|
173
|
+
}
|
|
174
|
+
const compilationResult = (yield flowResult(this.compileText({}, report)));
|
|
175
|
+
const entities = compilationResult.entities;
|
|
176
|
+
this.editorStore.graphState.setMostRecentCompilationGraphHash(currentGraphHash);
|
|
177
|
+
this.editorStore.graphState.warnings = compilationResult.warnings
|
|
178
|
+
? this.editorStore.graphState.TEMPORARY__removeDependencyProblems(compilationResult.warnings)
|
|
179
|
+
: [];
|
|
180
|
+
if (!options?.disableNotificationOnSuccess) {
|
|
181
|
+
if (this.editorStore.graphState.warnings.length) {
|
|
182
|
+
this.editorStore.applicationStore.notificationService.notifyWarning(`Compilation suceeded with warnings`);
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
if (!options?.disableNotificationOnSuccess) {
|
|
186
|
+
this.editorStore.applicationStore.notificationService.notifySuccess('Compiled successfully');
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
yield flowResult(this.updateGraphAndApplication(entities));
|
|
191
|
+
// Remove `SectionIndex when computing changes in text mode as engine after
|
|
192
|
+
// transforming grammarToJson would return `SectionIndex` which is not
|
|
193
|
+
// required to do change detection.
|
|
194
|
+
yield flowResult(this.editorStore.changeDetectionState.computeLocalChangesInTextMode(this.editorStore.graphManagerState.graphManager.getElementEntities(entities)));
|
|
195
|
+
this.editorStore.graphState.setMostRecentCompilationOutcome(GraphCompilationOutcome.SUCCEEDED);
|
|
196
|
+
report.timings =
|
|
197
|
+
this.editorStore.applicationStore.timeService.finalizeTimingsRecord(stopWatch, report.timings);
|
|
198
|
+
LegendStudioTelemetryHelper.logEvent_TextCompilationSucceeded(this.editorStore.applicationStore.telemetryService, report);
|
|
199
|
+
}
|
|
200
|
+
catch (error) {
|
|
201
|
+
assertErrorThrown(error);
|
|
202
|
+
this.editorStore.graphState.setMostRecentCompilationGraphHash(currentGraphHash);
|
|
203
|
+
if (error instanceof EngineError) {
|
|
204
|
+
this.editorStore.graphState.error = error;
|
|
205
|
+
if (error.sourceInformation) {
|
|
206
|
+
this.grammarTextEditorState.setForcedCursorPosition({
|
|
207
|
+
lineNumber: error.sourceInformation.startLine,
|
|
208
|
+
column: error.sourceInformation.startColumn,
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
if (!this.editorStore.applicationStore.notificationService.notification ||
|
|
213
|
+
!options?.suppressCompilationFailureMessage) {
|
|
214
|
+
this.editorStore.applicationStore.notificationService.notifyWarning(`Compilation failed: ${error.message}`);
|
|
215
|
+
}
|
|
216
|
+
this.editorStore.graphState.setMostRecentCompilationOutcome(GraphCompilationOutcome.FAILED);
|
|
217
|
+
}
|
|
218
|
+
finally {
|
|
219
|
+
this.editorStore.graphState.isRunningGlobalCompile = false;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
goToProblem(problem) {
|
|
223
|
+
// NOTE: in text mode, we allow click to go to position even when the problems might already be stale
|
|
224
|
+
if (problem.sourceInformation) {
|
|
225
|
+
this.grammarTextEditorState.setForcedCursorPosition({
|
|
226
|
+
lineNumber: problem.sourceInformation.startLine,
|
|
227
|
+
column: problem.sourceInformation.startColumn,
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
*onLeave(fallbackOptions) {
|
|
232
|
+
if (!fallbackOptions) {
|
|
233
|
+
this.editorStore.graphState.isApplicationLeavingGraphEditMode = true;
|
|
234
|
+
this.editorStore.graphState.clearProblems();
|
|
235
|
+
this.editorStore.applicationStore.alertService.setBlockingAlert({
|
|
236
|
+
message: 'Compiling graph before leaving text mode...',
|
|
237
|
+
showLoading: true,
|
|
238
|
+
});
|
|
239
|
+
const compilationResult = (yield flowResult(this.compileText(
|
|
240
|
+
// surpress the modal to reveal error properly in the text editor
|
|
241
|
+
// if the blocking modal is not dismissed, the edior will not be able to gain focus as modal has a focus trap
|
|
242
|
+
// therefore, the editor will not be able to get the focus
|
|
243
|
+
{
|
|
244
|
+
onError: () => this.editorStore.applicationStore.alertService.setBlockingAlert(undefined),
|
|
245
|
+
})));
|
|
246
|
+
this.editorStore.graphState.setMostRecentCompilationOutcome(GraphCompilationOutcome.SUCCEEDED);
|
|
247
|
+
this.editorStore.graphState.warnings = compilationResult.warnings
|
|
248
|
+
? this.editorStore.graphState.TEMPORARY__removeDependencyProblems(compilationResult.warnings)
|
|
249
|
+
: [];
|
|
250
|
+
this.editorStore.graphState.compilationResultEntities =
|
|
251
|
+
compilationResult.entities;
|
|
252
|
+
this.editorStore.applicationStore.alertService.setBlockingAlert({
|
|
253
|
+
message: 'Leaving text mode and rebuilding graph...',
|
|
254
|
+
showLoading: true,
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
*handleCleanupFailure(error) {
|
|
259
|
+
assertErrorThrown(error);
|
|
260
|
+
this.editorStore.graphState.setMostRecentCompilationOutcome(GraphCompilationOutcome.FAILED);
|
|
261
|
+
this.editorStore.graphState.setMostRecentCompilationGraphHash(this.getCurrentGraphHash());
|
|
262
|
+
if (error instanceof EngineError && error.sourceInformation) {
|
|
263
|
+
this.grammarTextEditorState.setForcedCursorPosition({
|
|
264
|
+
lineNumber: error.sourceInformation.startLine,
|
|
265
|
+
column: error.sourceInformation.startColumn,
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
this.editorStore.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.COMPILATION_FAILURE), 'Compilation failed:', error);
|
|
269
|
+
if (this.editorStore.graphManagerState.graphBuildState.hasFailed) {
|
|
270
|
+
// TODO: when we support showing multiple notification, we can split this into 2 messages
|
|
271
|
+
this.editorStore.applicationStore.notificationService.notifyWarning(`Can't build graph, please resolve compilation error before leaving text mode. Compilation failed with error: ${error.message}`);
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
this.editorStore.applicationStore.notificationService.notifyWarning(`Compilation failed: ${error.message}`);
|
|
275
|
+
this.editorStore.applicationStore.alertService.setActionAlertInfo({
|
|
276
|
+
message: 'Project is not in a compiled state',
|
|
277
|
+
prompt: 'All changes made since the last time the graph was built successfully will be lost',
|
|
278
|
+
type: ActionAlertType.CAUTION,
|
|
279
|
+
actions: [
|
|
280
|
+
{
|
|
281
|
+
label: 'Discard Changes',
|
|
282
|
+
default: true,
|
|
283
|
+
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
|
284
|
+
handler: () => {
|
|
285
|
+
flowResult(this.editorStore.switchModes(GRAPH_EDITOR_MODE.FORM, {
|
|
286
|
+
isCompilationFailure: true,
|
|
287
|
+
})).catch(this.editorStore.applicationStore.alertUnhandledError);
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
label: 'Stay',
|
|
292
|
+
default: true,
|
|
293
|
+
type: ActionAlertActionType.PROCEED,
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
*cleanupBeforeEntering(fallbackOptions) {
|
|
300
|
+
if (fallbackOptions?.isGraphBuildFailure) {
|
|
301
|
+
yield flowResult(this.setGraphGrammarFromEntites(this.editorStore.changeDetectionState
|
|
302
|
+
.workspaceLocalLatestRevisionState.entities));
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
yield flowResult(this.setGraphGrammar());
|
|
306
|
+
}
|
|
307
|
+
this.editorStore.applicationStore.alertService.setBlockingAlert(undefined);
|
|
308
|
+
}
|
|
309
|
+
openElement(element) {
|
|
310
|
+
// in text mode, we want to select the block of code that corresponds to the element if possible
|
|
311
|
+
// the cheap way to do this is to search by element label text, e.g. `Mapping some::package::someMapping`
|
|
312
|
+
this.grammarTextEditorState.setCurrentElementLabelRegexString(element);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
//# sourceMappingURL=GraphEditGrammarModeState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphEditGrammarModeState.js","sourceRoot":"","sources":["../../src/stores/GraphEditGrammarModeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,qBAAqB,EACrB,eAAe,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,mBAAmB,EAEnB,WAAW,EACX,iBAAiB,EAEjB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,iBAAiB,EACjB,QAAQ,EACR,WAAW,EACX,SAAS,GACV,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAElF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAgB,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,cAAc,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BAAoB,EAAE,IAAI;6BAC3B,CAAC,CACH,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;wBACjE,CAAC;qBACF;oBACD;wBACE,KAAK,EAAE,MAAM;wBACb,OAAO,EAAE,IAAI;wBACb,IAAI,EAAE,qBAAqB,CAAC,OAAO;qBACpC;iBACF;aACF,CAAC,CAAC;SACJ;IACH,CAAC;IAED,CAAC,qBAAqB,CAAC,eAGtB;QACC,IAAI,eAAe,EAAE,mBAAmB,EAAE;YACxC,MAAM,UAAU,CACd,IAAI,CAAC,0BAA0B,CAC7B,IAAI,CAAC,WAAW,CAAC,oBAAoB;iBAClC,iCAAiC,CAAC,QAAQ,CAC9C,CACF,CAAC;SACH;aAAM;YACL,MAAM,UAAU,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC;SAC1C;QACD,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,YAAY,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAC7E,CAAC;IAED,WAAW,CAAC,OAA2B;QACrC,gGAAgG;QAChG,yGAAyG;QACzG,IAAI,CAAC,sBAAsB,CAAC,iCAAiC,CAAC,OAAO,CAAC,CAAC;IACzE,CAAC;CACF"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { PackageableElement } from '@finos/legend-graph';
|
|
17
|
+
import type { GeneratorFn } from '@finos/legend-shared';
|
|
18
|
+
import type { Entity } from '@finos/legend-storage';
|
|
19
|
+
import type { EditorStore } from './EditorStore.js';
|
|
20
|
+
import type { GRAPH_EDITOR_MODE } from './EditorConfig.js';
|
|
21
|
+
import type { Problem } from './EditorGraphState.js';
|
|
22
|
+
export declare abstract class GraphEditorMode {
|
|
23
|
+
readonly editorStore: EditorStore;
|
|
24
|
+
constructor(editorStore: EditorStore);
|
|
25
|
+
abstract initialize(isFallback?: boolean): GeneratorFn<void>;
|
|
26
|
+
abstract addElement(element: PackageableElement, packagePath: string | undefined, openAfterCreate: boolean): GeneratorFn<void>;
|
|
27
|
+
abstract deleteElement(element: PackageableElement): GeneratorFn<void>;
|
|
28
|
+
abstract renameElement(element: PackageableElement, newPath: string): GeneratorFn<void>;
|
|
29
|
+
abstract getCurrentGraphHash(): string | undefined;
|
|
30
|
+
abstract globalCompile(options?: {
|
|
31
|
+
message?: string;
|
|
32
|
+
disableNotificationOnSuccess?: boolean;
|
|
33
|
+
openConsole?: boolean;
|
|
34
|
+
ignoreBlocking?: boolean | undefined;
|
|
35
|
+
suppressCompilationFailureMessage?: boolean | undefined;
|
|
36
|
+
}): GeneratorFn<void>;
|
|
37
|
+
abstract updateGraphAndApplication(entities: Entity[]): GeneratorFn<void>;
|
|
38
|
+
abstract get mode(): GRAPH_EDITOR_MODE;
|
|
39
|
+
abstract goToProblem(problem: Problem): void;
|
|
40
|
+
abstract onLeave(fallbackOptions?: {
|
|
41
|
+
isCompilationFailure?: boolean;
|
|
42
|
+
isGraphBuildFailure?: boolean;
|
|
43
|
+
}): GeneratorFn<void>;
|
|
44
|
+
abstract cleanupBeforeEntering(fallbackOptions?: {
|
|
45
|
+
isCompilationFailure?: boolean;
|
|
46
|
+
isGraphBuildFailure?: boolean;
|
|
47
|
+
}): GeneratorFn<void>;
|
|
48
|
+
abstract handleCleanupFailure(error: unknown): GeneratorFn<void>;
|
|
49
|
+
abstract openElement(element: PackageableElement): void;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=GraphEditorMode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphEditorMode.d.ts","sourceRoot":"","sources":["../../src/stores/GraphEditorMode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAErD,8BAAsB,eAAe;IACnC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;gBAEtB,WAAW,EAAE,WAAW;IAgBpC,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC;IAC5D,QAAQ,CAAC,UAAU,CACjB,OAAO,EAAE,kBAAkB,EAC3B,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,eAAe,EAAE,OAAO,GACvB,WAAW,CAAC,IAAI,CAAC;IACpB,QAAQ,CAAC,aAAa,CAAC,OAAO,EAAE,kBAAkB,GAAG,WAAW,CAAC,IAAI,CAAC;IACtE,QAAQ,CAAC,aAAa,CACpB,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,MAAM,GACd,WAAW,CAAC,IAAI,CAAC;IACpB,QAAQ,CAAC,mBAAmB,IAAI,MAAM,GAAG,SAAS;IAClD,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE;QAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,4BAA4B,CAAC,EAAE,OAAO,CAAC;QACvC,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACrC,iCAAiC,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KACzD,GAAG,WAAW,CAAC,IAAI,CAAC;IACrB,QAAQ,CAAC,yBAAyB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC,IAAI,CAAC;IACzE,QAAQ,KAAK,IAAI,IAAI,iBAAiB,CAAC;IACvC,QAAQ,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAC5C,QAAQ,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE;QACjC,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,mBAAmB,CAAC,EAAE,OAAO,CAAC;KAC/B,GAAG,WAAW,CAAC,IAAI,CAAC;IACrB,QAAQ,CAAC,qBAAqB,CAAC,eAAe,CAAC,EAAE;QAC/C,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,mBAAmB,CAAC,EAAE,OAAO,CAAC;KAC/B,GAAG,WAAW,CAAC,IAAI,CAAC;IACrB,QAAQ,CAAC,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC;IAChE,QAAQ,CAAC,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI;CACxD"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { makeObservable, flow, action } from 'mobx';
|
|
17
|
+
export class GraphEditorMode {
|
|
18
|
+
editorStore;
|
|
19
|
+
constructor(editorStore) {
|
|
20
|
+
makeObservable(this, {
|
|
21
|
+
initialize: flow,
|
|
22
|
+
addElement: flow,
|
|
23
|
+
deleteElement: flow,
|
|
24
|
+
renameElement: flow,
|
|
25
|
+
globalCompile: flow,
|
|
26
|
+
updateGraphAndApplication: flow,
|
|
27
|
+
onLeave: flow,
|
|
28
|
+
cleanupBeforeEntering: flow,
|
|
29
|
+
handleCleanupFailure: flow,
|
|
30
|
+
openElement: action,
|
|
31
|
+
});
|
|
32
|
+
this.editorStore = editorStore;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=GraphEditorMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphEditorMode.js","sourceRoot":"","sources":["../../src/stores/GraphEditorMode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAMpD,MAAM,OAAgB,eAAe;IAC1B,WAAW,CAAc;IAElC,YAAY,WAAwB;QAClC,cAAc,CAAC,IAAI,EAAE;YACnB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,IAAI;YAChB,aAAa,EAAE,IAAI;YACnB,aAAa,EAAE,IAAI;YACnB,aAAa,EAAE,IAAI;YACnB,yBAAyB,EAAE,IAAI;YAC/B,OAAO,EAAE,IAAI;YACb,qBAAqB,EAAE,IAAI;YAC3B,oBAAoB,EAAE,IAAI;YAC1B,WAAW,EAAE,MAAM;SACpB,CAAC,CAAC;QACH,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;CAkCF"}
|
|
@@ -19,7 +19,7 @@ import type { ElementEditorState } from './editor-state/element-editor-state/Ele
|
|
|
19
19
|
import type { EditorExtensionState, EditorStore } from './EditorStore.js';
|
|
20
20
|
import type { NewElementDriver, NewElementState } from './editor/NewElementState.js';
|
|
21
21
|
import type { Class, PackageableElement, Testable } from '@finos/legend-graph';
|
|
22
|
-
import { type DocumentationEntry, type PureGrammarTextSuggestion, LegendApplicationPlugin } from '@finos/legend-application';
|
|
22
|
+
import { type DocumentationEntry, type PureGrammarTextSuggestion, LegendApplicationPlugin, type ApplicationPageEntry } from '@finos/legend-application';
|
|
23
23
|
import type { TestableMetadata } from './sidebar-state/testable/GlobalTestRunnerState.js';
|
|
24
24
|
import type { ExtensionModelImportRendererState, ModelImporterState } from './editor-state/ModelImporterState.js';
|
|
25
25
|
export type ExplorerContextMenuItemRendererConfiguration = {
|
|
@@ -40,6 +40,9 @@ export type ModelImporterExtensionConfiguration = {
|
|
|
40
40
|
renderer: (rendererState: ExtensionModelImportRendererState) => React.ReactNode | undefined;
|
|
41
41
|
loadModel: (rendererState: ExtensionModelImportRendererState) => Promise<void>;
|
|
42
42
|
};
|
|
43
|
+
export type LegendStudioApplicationPageEntry = ApplicationPageEntry & {
|
|
44
|
+
bypassSDLC?: boolean | undefined;
|
|
45
|
+
};
|
|
43
46
|
export type TestableMetadataGetter = (testable: Testable, editorStore: EditorStore) => TestableMetadata | undefined;
|
|
44
47
|
export declare abstract class LegendStudioApplicationPlugin extends LegendApplicationPlugin {
|
|
45
48
|
/**
|
|
@@ -48,6 +51,10 @@ export declare abstract class LegendStudioApplicationPlugin extends LegendApplic
|
|
|
48
51
|
*/
|
|
49
52
|
private readonly _$nominalTypeBrand;
|
|
50
53
|
install(pluginManager: LegendStudioPluginManager): void;
|
|
54
|
+
/**
|
|
55
|
+
* Get the list of application page entries to be rendered
|
|
56
|
+
*/
|
|
57
|
+
getExtraApplicationPageEntries?(): LegendStudioApplicationPageEntry[];
|
|
51
58
|
/**
|
|
52
59
|
* Get the list of items to be rendered in the explorer context menu.
|
|
53
60
|
*/
|
|
@@ -58,14 +65,14 @@ export declare abstract class LegendStudioApplicationPlugin extends LegendApplic
|
|
|
58
65
|
* This is a mechanism to extend the editor store.
|
|
59
66
|
*/
|
|
60
67
|
getExtraEditorExtensionStateCreators?(): EditorExtensionStateCreator[];
|
|
61
|
-
/**
|
|
62
|
-
* Get the list of renderers for the preview panel of a class.
|
|
63
|
-
*/
|
|
64
|
-
getExtraClassPreviewRenderers?(): ClassPreviewRenderer[];
|
|
65
68
|
/**
|
|
66
69
|
* Get the list of configurations for the renderer of editor extension states.
|
|
67
70
|
*/
|
|
68
71
|
getExtraEditorExtensionComponentRendererConfigurations?(): EditorExtensionComponentRendererConfiguration[];
|
|
72
|
+
/**
|
|
73
|
+
* Get the list of renderers for the preview panel of a class.
|
|
74
|
+
*/
|
|
75
|
+
getExtraClassPreviewRenderers?(): ClassPreviewRenderer[];
|
|
69
76
|
/**
|
|
70
77
|
* Get the list of extension configurations for model importer.
|
|
71
78
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendStudioApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/stores/LegendStudioApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AAC7F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2DAA2D,CAAC;AACpG,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,qB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C,IAAI,qBAAqB,EAAE,CAAC;IAE3D;;OAEG;IACH,kCAAkC,CAAC,IAAI,yBAAyB,EAAE,CAAC;IAEnE;;OAEG;IACH,8BAA8B,CAAC,IAAI,qBAAqB,EAAE,CAAC;IAE3D;;OAEG;IACH,6CAA6C,CAAC,IAAI,MAAM,EAAE,CAAC;IAE3D;;;OAGG;IACH,6CAA6C,CAAC,IAAI,oCAAoC,EAAE,CAAC;IAEzF;;;OAGG;IACH,oDAAoD,CAAC,IAAI,2CAA2C,EAAE,CAAC;IAEvG;;OAEG;IACH,iDAAiD,CAAC,IAAI,wCAAwC,EAAE,CAAC;IAEjG;;;OAGG;IACH,yDAAyD,CAAC,IAAI,gDAAgD,EAAE,CAAC;CAClH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendStudioApplicationPlugin.js","sourceRoot":"","sources":["../../src/stores/LegendStudioApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,OAAO,EAGL,uBAAuB,
|
|
1
|
+
{"version":3,"file":"LegendStudioApplicationPlugin.js","sourceRoot":"","sources":["../../src/stores/LegendStudioApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,OAAO,EAGL,uBAAuB,GAExB,MAAM,2BAA2B,CAAC;AAoDnC,MAAM,OAAgB,6BAA8B,SAAQ,uBAAuB;IACjF;;;OAGG;IACc,kBAAkB,CAAmC;IAEtE,OAAO,CAAC,aAAwC;QAC9C,aAAa,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CAsCF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendStudioBaseStore.d.ts","sourceRoot":"","sources":["../../src/stores/LegendStudioBaseStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,WAAW,EAIhB,WAAW,
|
|
1
|
+
{"version":3,"file":"LegendStudioBaseStore.d.ts","sourceRoot":"","sources":["../../src/stores/LegendStudioBaseStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,WAAW,EAIhB,WAAW,EAIZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,gBAAgB,EAOtB,MAAM,2BAA2B,CAAC;AASnC,OAAO,EAAQ,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AAC7F,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iDAAiD,CAAC;AAIrG,MAAM,MAAM,4BAA4B,GAAG,gBAAgB,CACzD,6BAA6B,EAC7B,yBAAyB,CAC1B,CAAC;AAEF,qBAAa,qBAAqB;IAChC,QAAQ,CAAC,gBAAgB,EAAE,4BAA4B,CAAC;IACxD,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,aAAa,EAAE,yBAAyB,CAAC;IAElD,QAAQ,CAAC,SAAS,cAAwB;IAE1C,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAS;IAC9C,mCAAmC,EAAE,MAAM,EAAE,CAAM;gBAGjD,gBAAgB,EAAE,4BAA4B,EAC9C,gBAAgB,EAAE,gBAAgB,EAClC,iBAAiB,EAAE,iBAAiB;IAwBrC,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC;IAkFhC,IAAI,sCAAsC,IAAI,OAAO,CAEpD;IAED,qCAAqC,IAAI,IAAI;IAI7C,OAAO,CAAE,0BAA0B;CA0FpC"}
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { HttpStatus, NetworkClientError, ActionState, LogEvent, assertErrorThrown, } from '@finos/legend-shared';
|
|
17
|
-
import { ActionAlertActionType, ActionAlertType,
|
|
16
|
+
import { HttpStatus, NetworkClientError, ActionState, LogEvent, assertErrorThrown, NetworkClient, } from '@finos/legend-shared';
|
|
17
|
+
import { ActionAlertActionType, ActionAlertType, LegendApplicationTelemetryHelper, matchPath, APPLICATION_EVENT, generateExtensionUrlPattern, } from '@finos/legend-application';
|
|
18
18
|
import { action, computed, flow, flowResult, makeObservable, observable, } from 'mobx';
|
|
19
19
|
import { User, SDLCServerClient } from '@finos/legend-server-sdlc';
|
|
20
|
-
import { LEGEND_STUDIO_APP_EVENT } from '
|
|
21
|
-
import {
|
|
22
|
-
import { LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN } from '
|
|
20
|
+
import { LEGEND_STUDIO_APP_EVENT } from '../application/LegendStudioEvent.js';
|
|
21
|
+
import { LegendStudioEventHelper } from '../application/LegendStudioEventHelper.js';
|
|
22
|
+
import { LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN } from '../application/LegendStudioNavigation.js';
|
|
23
23
|
export class LegendStudioBaseStore {
|
|
24
24
|
applicationStore;
|
|
25
25
|
sdlcServerClient;
|
|
@@ -51,11 +51,16 @@ export class LegendStudioBaseStore {
|
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
this.initState.inProgress();
|
|
54
|
+
const SDLCBypassedRoutePatterns = this.applicationStore.pluginManager
|
|
55
|
+
.getApplicationPlugins()
|
|
56
|
+
.flatMap((plugin) => plugin.getExtraApplicationPageEntries?.() ?? [])
|
|
57
|
+
.filter((entry) => entry.bypassSDLC)
|
|
58
|
+
.flatMap((entry) => entry.urlPatterns.map(generateExtensionUrlPattern));
|
|
54
59
|
// authorize SDLC, unless navigation location match SDLC-bypassed patterns
|
|
55
60
|
if (!matchPath(this.applicationStore.navigationService.navigator.getCurrentLocation(), [
|
|
56
|
-
// TODO: we might want to consider making this extensible
|
|
57
61
|
LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.VIEW_BY_GAV,
|
|
58
62
|
LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.VIEW_BY_GAV_ENTITY,
|
|
63
|
+
...SDLCBypassedRoutePatterns,
|
|
59
64
|
])) {
|
|
60
65
|
// setup SDLC server client
|
|
61
66
|
yield flowResult(this.initializeSDLCServerClient());
|
|
@@ -66,7 +71,7 @@ export class LegendStudioBaseStore {
|
|
|
66
71
|
}
|
|
67
72
|
catch (error) {
|
|
68
73
|
assertErrorThrown(error);
|
|
69
|
-
this.applicationStore.logService.error(LogEvent.create(APPLICATION_EVENT.
|
|
74
|
+
this.applicationStore.logService.error(LogEvent.create(APPLICATION_EVENT.IDENTITY_AUTO_FETCH__FAILURE), error);
|
|
70
75
|
this.applicationStore.notificationService.notifyWarning(error.message);
|
|
71
76
|
}
|
|
72
77
|
// setup telemetry service
|
|
@@ -75,8 +80,19 @@ export class LegendStudioBaseStore {
|
|
|
75
80
|
else {
|
|
76
81
|
this.isSDLCAuthorized = undefined;
|
|
77
82
|
}
|
|
78
|
-
|
|
79
|
-
|
|
83
|
+
// retrieved the user identity is not already configured
|
|
84
|
+
if (this.applicationStore.identityService.isAnonymous) {
|
|
85
|
+
try {
|
|
86
|
+
this.applicationStore.identityService.setCurrentUser((yield new NetworkClient().get(`${this.applicationStore.config.engineServerUrl}/server/v1/currentUser`)));
|
|
87
|
+
}
|
|
88
|
+
catch (error) {
|
|
89
|
+
assertErrorThrown(error);
|
|
90
|
+
this.applicationStore.logService.error(LogEvent.create(APPLICATION_EVENT.IDENTITY_AUTO_FETCH__FAILURE), error);
|
|
91
|
+
this.applicationStore.notificationService.notifyWarning(error.message);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
LegendApplicationTelemetryHelper.logEvent_ApplicationInitializationSucceeded(this.applicationStore.telemetryService, this.applicationStore);
|
|
95
|
+
LegendStudioEventHelper.notify_ApplicationLoadSucceeded(this.applicationStore.eventService);
|
|
80
96
|
this.initState.complete();
|
|
81
97
|
}
|
|
82
98
|
get needsToAcceptSDLCServerTermsOfServices() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendStudioBaseStore.js","sourceRoot":"","sources":["../../src/stores/LegendStudioBaseStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,UAAU,EACV,kBAAkB,EAClB,WAAW,EACX,QAAQ,EACR,iBAAiB,
|
|
1
|
+
{"version":3,"file":"LegendStudioBaseStore.js","sourceRoot":"","sources":["../../src/stores/LegendStudioBaseStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,UAAU,EACV,kBAAkB,EAClB,WAAW,EACX,QAAQ,EACR,iBAAiB,EACjB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,qBAAqB,EACrB,eAAe,EACf,gCAAgC,EAChC,SAAS,EACT,iBAAiB,EACjB,2BAA2B,GAC5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,cAAc,EACd,UAAU,GACX,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAI9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,yCAAyC,EAAE,MAAM,0CAA0C,CAAC;AAOrG,MAAM,OAAO,qBAAqB;IACvB,gBAAgB,CAA+B;IAC/C,gBAAgB,CAAmB;IACnC,iBAAiB,CAAoB;IACrC,aAAa,CAA4B;IAEzC,SAAS,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IAE1C,gBAAgB,GAAwB,KAAK,CAAC;IAC9C,mCAAmC,GAAa,EAAE,CAA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kB;gBACnC,KAAK,CAAC,QAAQ,CAAC,MAAM,KAAK,UAAU,CAAC,YAAY,EACjD;gBACA,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,kBAAkB,CAAC;oBACpD,OAAO,EACL,kKAAkK;oBACpK,IAAI,EAAE,eAAe,CAAC,QAAQ;oBAC9B,OAAO,EAAE;wBACP;4BACE,KAAK,EAAE,yBAAyB;4BAChC,IAAI,EAAE,qBAAqB,CAAC,OAAO;4BACnC,OAAO,EAAE,IAAI;4BACb,OAAO,EAAE,GAAS,EAAE;gCAClB,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,YAAY,CAC5D,IAAI,CAAC,gBAAgB,CAAC,cAAc,CACrC,CAAC;gCACF,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,gBAAgB,CAAC;oCAClD,OAAO,EACL,6DAA6D;oCAC/D,MAAM,EACJ,6DAA6D;iCAChE,CAAC,CAAC;4BACL,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;aACJ;iBAAM;gBACL,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CACpC,QAAQ,CAAC,MAAM,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,EAC7D,KAAK,CACN,CAAC;gBACF,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;aAC9D;SACF;IACH,CAAC;CACF"}
|
|
@@ -68,11 +68,11 @@ export declare class NewRelationalDatabaseConnectionDriver extends NewConnection
|
|
|
68
68
|
}
|
|
69
69
|
export declare class NewPackageableConnectionDriver extends NewElementDriver<PackageableConnection> {
|
|
70
70
|
store: Store;
|
|
71
|
-
newConnectionValueDriver: NewConnectionValueDriver<Connection
|
|
71
|
+
newConnectionValueDriver: NewConnectionValueDriver<Connection> | undefined;
|
|
72
72
|
constructor(editorStore: EditorStore);
|
|
73
73
|
geDriverConnectionType(): string;
|
|
74
74
|
changeConnectionState(val: string): void;
|
|
75
|
-
getNewConnectionValueDriverBasedOnStore(store: Store): NewConnectionValueDriver<Connection
|
|
75
|
+
getNewConnectionValueDriverBasedOnStore(store: Store): NewConnectionValueDriver<Connection> | undefined;
|
|
76
76
|
setStore(store: Store): void;
|
|
77
77
|
get isValid(): boolean;
|
|
78
78
|
createElement(name: string): PackageableConnection;
|