@finos/legend-application-studio 22.6.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/{src/stores/LegendStudioStorage.ts → lib/application/LegendStudioEventHelper.d.ts} +4 -4
- package/lib/application/LegendStudioEventHelper.d.ts.map +1 -0
- package/lib/{stores/LegendStudioEventService.d.ts → application/LegendStudioEventHelper.js} +6 -7
- 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/{stores/LegendStudioEventService.js → application/LegendStudioSetting.js} +14 -14
- 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.js +6 -6
- 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/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/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/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 +11 -16
- package/lib/stores/EditorStore.d.ts.map +1 -1
- package/lib/stores/EditorStore.js +73 -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.js +1 -1
- package/lib/stores/sidebar-state/BulkServiceRegistrationState.js.map +1 -1
- 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 +6 -6
- 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/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/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/EditorGraphState.ts +49 -798
- package/src/stores/EditorSDLCState.ts +1 -1
- package/src/stores/EditorStore.ts +98 -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 +1 -1
- 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 +13 -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
|
@@ -29,8 +29,7 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
LEGEND_STUDIO_ROUTE_PATTERN,
|
|
31
31
|
LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN,
|
|
32
|
-
} from '../
|
|
33
|
-
import type { LegendStudioPluginManager } from '../application/LegendStudioPluginManager.js';
|
|
32
|
+
} from '../application/LegendStudioNavigation.js';
|
|
34
33
|
import { flowResult } from 'mobx';
|
|
35
34
|
import { SDLCServerClientProvider } from '@finos/legend-server-sdlc';
|
|
36
35
|
import { DepotServerClientProvider } from '@finos/legend-server-depot';
|
|
@@ -39,7 +38,6 @@ import {
|
|
|
39
38
|
useLegendStudioApplicationStore,
|
|
40
39
|
useLegendStudioBaseStore,
|
|
41
40
|
} from './LegendStudioBaseStoreProvider.js';
|
|
42
|
-
import { GraphManagerStateProvider } from '@finos/legend-graph';
|
|
43
41
|
import {
|
|
44
42
|
generateExtensionUrlPattern,
|
|
45
43
|
LegendApplicationComponentFrameworkProvider,
|
|
@@ -48,7 +46,7 @@ import {
|
|
|
48
46
|
useApplicationStore,
|
|
49
47
|
} from '@finos/legend-application';
|
|
50
48
|
import type { LegendStudioApplicationConfig } from '../application/LegendStudioApplicationConfig.js';
|
|
51
|
-
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../
|
|
49
|
+
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../application/LegendStudioDocumentation.js';
|
|
52
50
|
|
|
53
51
|
const LegendStudioNotFoundRouteScreen = observer(() => {
|
|
54
52
|
const applicationStore = useApplicationStore();
|
|
@@ -117,6 +115,12 @@ export const LegendStudioApplicationRoot = observer(() => {
|
|
|
117
115
|
const extraApplicationPageEntries = applicationStore.pluginManager
|
|
118
116
|
.getApplicationPlugins()
|
|
119
117
|
.flatMap((plugin) => plugin.getExtraApplicationPageEntries?.() ?? []);
|
|
118
|
+
const SDLCBypassedPageEntries = extraApplicationPageEntries.filter(
|
|
119
|
+
(entry) => entry.bypassSDLC,
|
|
120
|
+
);
|
|
121
|
+
const SDLCPageEntries = extraApplicationPageEntries.filter(
|
|
122
|
+
(entry) => !entry.bypassSDLC,
|
|
123
|
+
);
|
|
120
124
|
|
|
121
125
|
useEffect(() => {
|
|
122
126
|
flowResult(baseStore.initialize()).catch(
|
|
@@ -146,6 +150,14 @@ export const LegendStudioApplicationRoot = observer(() => {
|
|
|
146
150
|
]}
|
|
147
151
|
component={ProjectViewer}
|
|
148
152
|
/>
|
|
153
|
+
{SDLCBypassedPageEntries.map((entry) => (
|
|
154
|
+
<Route
|
|
155
|
+
key={entry.key}
|
|
156
|
+
exact={true}
|
|
157
|
+
path={entry.urlPatterns.map(generateExtensionUrlPattern)}
|
|
158
|
+
component={entry.renderer as React.ComponentType<unknown>}
|
|
159
|
+
/>
|
|
160
|
+
))}
|
|
149
161
|
<Route>
|
|
150
162
|
<LegendStudioNotFoundRouteScreen />
|
|
151
163
|
</Route>
|
|
@@ -193,7 +205,7 @@ export const LegendStudioApplicationRoot = observer(() => {
|
|
|
193
205
|
]}
|
|
194
206
|
component={WorkspaceSetup}
|
|
195
207
|
/>
|
|
196
|
-
{
|
|
208
|
+
{SDLCPageEntries.map((entry) => (
|
|
197
209
|
<Route
|
|
198
210
|
key={entry.key}
|
|
199
211
|
exact={true}
|
|
@@ -212,12 +224,8 @@ export const LegendStudioApplicationRoot = observer(() => {
|
|
|
212
224
|
});
|
|
213
225
|
|
|
214
226
|
export const LegendStudioApplication = observer(
|
|
215
|
-
(props: {
|
|
216
|
-
config
|
|
217
|
-
pluginManager: LegendStudioPluginManager;
|
|
218
|
-
}) => {
|
|
219
|
-
const { config, pluginManager } = props;
|
|
220
|
-
const applicationStore = useApplicationStore();
|
|
227
|
+
(props: { config: LegendStudioApplicationConfig }) => {
|
|
228
|
+
const { config } = props;
|
|
221
229
|
|
|
222
230
|
return (
|
|
223
231
|
<SDLCServerClientProvider
|
|
@@ -232,16 +240,11 @@ export const LegendStudioApplication = observer(
|
|
|
232
240
|
serverUrl: config.depotServerUrl,
|
|
233
241
|
}}
|
|
234
242
|
>
|
|
235
|
-
<
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
<LegendApplicationComponentFrameworkProvider>
|
|
241
|
-
<LegendStudioApplicationRoot />
|
|
242
|
-
</LegendApplicationComponentFrameworkProvider>
|
|
243
|
-
</LegendStudioBaseStoreProvider>
|
|
244
|
-
</GraphManagerStateProvider>
|
|
243
|
+
<LegendStudioBaseStoreProvider>
|
|
244
|
+
<LegendApplicationComponentFrameworkProvider>
|
|
245
|
+
<LegendStudioApplicationRoot />
|
|
246
|
+
</LegendApplicationComponentFrameworkProvider>
|
|
247
|
+
</LegendStudioBaseStoreProvider>
|
|
245
248
|
</DepotServerClientProvider>
|
|
246
249
|
</SDLCServerClientProvider>
|
|
247
250
|
);
|
|
@@ -41,7 +41,7 @@ import { useEditorStore } from './EditorStoreProvider.js';
|
|
|
41
41
|
import { forwardRef, useState } from 'react';
|
|
42
42
|
import { VIRTUAL_ASSISTANT_TAB } from '@finos/legend-application';
|
|
43
43
|
import { LegendStudioAppInfo } from '../LegendStudioAppInfo.js';
|
|
44
|
-
import { generateSetupRoute } from '../../
|
|
44
|
+
import { generateSetupRoute } from '../../application/LegendStudioNavigation.js';
|
|
45
45
|
import { useLegendStudioApplicationStore } from '../LegendStudioBaseStoreProvider.js';
|
|
46
46
|
|
|
47
47
|
const SettingsMenu = observer(
|
|
@@ -251,11 +251,6 @@ export const ActivityBar = observer(() => {
|
|
|
251
251
|
title: 'Test Runner',
|
|
252
252
|
icon: <FlaskIcon />,
|
|
253
253
|
},
|
|
254
|
-
!editorStore.isInConflictResolutionMode && {
|
|
255
|
-
mode: ACTIVITY_MODE.REGISTER_SERVICES,
|
|
256
|
-
title: 'Register Service',
|
|
257
|
-
icon: <RobotIcon />,
|
|
258
|
-
},
|
|
259
254
|
!editorStore.isInConflictResolutionMode && {
|
|
260
255
|
mode: ACTIVITY_MODE.LOCAL_CHANGES,
|
|
261
256
|
title: 'Local Changes (Ctrl + Shift + G)',
|
|
@@ -324,6 +319,11 @@ export const ActivityBar = observer(() => {
|
|
|
324
319
|
title: 'Workflow Manager',
|
|
325
320
|
icon: <WrenchIcon />,
|
|
326
321
|
},
|
|
322
|
+
!editorStore.isInConflictResolutionMode && {
|
|
323
|
+
mode: ACTIVITY_MODE.REGISTER_SERVICES,
|
|
324
|
+
title: 'Register Service',
|
|
325
|
+
icon: <RobotIcon />,
|
|
326
|
+
},
|
|
327
327
|
].filter((activity): activity is ActivityDisplay => Boolean(activity));
|
|
328
328
|
|
|
329
329
|
return (
|
|
@@ -31,7 +31,7 @@ import { EditPanel, EditPanelSplashScreen } from './edit-panel/EditPanel.js';
|
|
|
31
31
|
import { GrammarTextEditor } from './edit-panel/GrammarTextEditor.js';
|
|
32
32
|
import { StatusBar } from './StatusBar.js';
|
|
33
33
|
import { ActivityBar } from './ActivityBar.js';
|
|
34
|
-
import type { WorkspaceEditorPathParams } from '../../
|
|
34
|
+
import type { WorkspaceEditorPathParams } from '../../application/LegendStudioNavigation.js';
|
|
35
35
|
import { ProjectSearchCommand } from '../editor/command-center/ProjectSearchCommand.js';
|
|
36
36
|
import { guaranteeNonNullable, isNonNullable } from '@finos/legend-shared';
|
|
37
37
|
import { flowResult } from 'mobx';
|
|
@@ -46,8 +46,9 @@ import {
|
|
|
46
46
|
} from '@finos/legend-application';
|
|
47
47
|
import { WorkspaceType } from '@finos/legend-server-sdlc';
|
|
48
48
|
import { WorkspaceSyncConflictResolver } from './side-bar/WorkspaceSyncConflictResolver.js';
|
|
49
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../
|
|
49
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../application/LegendStudioApplicationNavigationContext.js';
|
|
50
50
|
import { EmbeddedQueryBuilder } from '../EmbeddedQueryBuilder.js';
|
|
51
|
+
import { GRAPH_EDITOR_MODE } from '../../stores/EditorConfig.js';
|
|
51
52
|
|
|
52
53
|
export const Editor = withEditorStore(
|
|
53
54
|
observer(() => {
|
|
@@ -204,10 +205,13 @@ export const Editor = withEditorStore(
|
|
|
204
205
|
: {})}
|
|
205
206
|
>
|
|
206
207
|
{(isResolvingConflicts || editable) &&
|
|
207
|
-
editorStore.
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
208
|
+
editorStore.graphEditorMode.mode ===
|
|
209
|
+
GRAPH_EDITOR_MODE.FORM && <EditPanel />}
|
|
210
|
+
{editable &&
|
|
211
|
+
editorStore.graphEditorMode.mode ===
|
|
212
|
+
GRAPH_EDITOR_MODE.GRAMMAR_TEXT && (
|
|
213
|
+
<GrammarTextEditor />
|
|
214
|
+
)}
|
|
211
215
|
{!editable && <EditPanelSplashScreen />}
|
|
212
216
|
</ResizablePanel>
|
|
213
217
|
<ResizablePanelSplitter>
|
|
@@ -21,7 +21,6 @@ import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
|
21
21
|
import { useSDLCServerClient } from '@finos/legend-server-sdlc';
|
|
22
22
|
import { useDepotServerClient } from '@finos/legend-server-depot';
|
|
23
23
|
import { useLegendStudioApplicationStore } from '../LegendStudioBaseStoreProvider.js';
|
|
24
|
-
import { useGraphManagerState } from '@finos/legend-graph';
|
|
25
24
|
|
|
26
25
|
const EditorStoreContext = createContext<EditorStore | undefined>(undefined);
|
|
27
26
|
|
|
@@ -31,15 +30,9 @@ export const EditorStoreProvider: React.FC<{
|
|
|
31
30
|
const applicationStore = useLegendStudioApplicationStore();
|
|
32
31
|
const sdlcServerClient = useSDLCServerClient();
|
|
33
32
|
const depotServerClient = useDepotServerClient();
|
|
34
|
-
const graphManagerState = useGraphManagerState();
|
|
35
33
|
const store = useLocalObservable(
|
|
36
34
|
() =>
|
|
37
|
-
new EditorStore(
|
|
38
|
-
applicationStore,
|
|
39
|
-
sdlcServerClient,
|
|
40
|
-
depotServerClient,
|
|
41
|
-
graphManagerState,
|
|
42
|
-
),
|
|
35
|
+
new EditorStore(applicationStore, sdlcServerClient, depotServerClient),
|
|
43
36
|
);
|
|
44
37
|
return (
|
|
45
38
|
<EditorStoreContext.Provider value={store}>
|
|
@@ -30,11 +30,15 @@ import {
|
|
|
30
30
|
WarningIcon,
|
|
31
31
|
} from '@finos/legend-art';
|
|
32
32
|
import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js';
|
|
33
|
-
import {
|
|
33
|
+
import {
|
|
34
|
+
ACTIVITY_MODE,
|
|
35
|
+
AUX_PANEL_MODE,
|
|
36
|
+
GRAPH_EDITOR_MODE,
|
|
37
|
+
} from '../../stores/EditorConfig.js';
|
|
34
38
|
import {
|
|
35
39
|
generateSetupRoute,
|
|
36
40
|
type WorkspaceEditorPathParams,
|
|
37
|
-
} from '../../
|
|
41
|
+
} from '../../application/LegendStudioNavigation.js';
|
|
38
42
|
import { flowResult } from 'mobx';
|
|
39
43
|
import { useEditorStore } from './EditorStoreProvider.js';
|
|
40
44
|
import { WorkspaceType } from '@finos/legend-server-sdlc';
|
|
@@ -136,12 +140,8 @@ export const StatusBar = observer((props: { actionsDisabled: boolean }) => {
|
|
|
136
140
|
const handleTextModeClick = applicationStore.guardUnhandledError(() =>
|
|
137
141
|
flowResult(editorStore.toggleTextMode()),
|
|
138
142
|
);
|
|
139
|
-
const compile = applicationStore.guardUnhandledError(
|
|
140
|
-
editorStore.
|
|
141
|
-
? () => flowResult(editorStore.graphState.globalCompileInTextMode())
|
|
142
|
-
: async () => {
|
|
143
|
-
await flowResult(editorStore.graphState.globalCompileInFormMode());
|
|
144
|
-
},
|
|
143
|
+
const compile = applicationStore.guardUnhandledError(() =>
|
|
144
|
+
flowResult(editorStore.graphEditorMode.globalCompile()),
|
|
145
145
|
);
|
|
146
146
|
const generate = applicationStore.guardUnhandledError(() =>
|
|
147
147
|
flowResult(editorStore.graphState.graphGenerationState.globalGenerate()),
|
|
@@ -380,7 +380,8 @@ export const StatusBar = observer((props: { actionsDisabled: boolean }) => {
|
|
|
380
380
|
'editor__status-bar__action editor__status-bar__action__toggler',
|
|
381
381
|
{
|
|
382
382
|
'editor__status-bar__action editor__status-bar__action__toggler--active':
|
|
383
|
-
editorStore.
|
|
383
|
+
editorStore.graphEditorMode.mode ===
|
|
384
|
+
GRAPH_EDITOR_MODE.GRAMMAR_TEXT,
|
|
384
385
|
},
|
|
385
386
|
)}
|
|
386
387
|
disabled={actionsDisabled}
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
import { isValidUrl } from '@finos/legend-shared';
|
|
25
25
|
import { useEditorStore } from '../EditorStoreProvider.js';
|
|
26
26
|
import { observe_TEMPORARY__AbstractEngineConfig } from '@finos/legend-graph';
|
|
27
|
-
import {
|
|
27
|
+
import { LEGEND_STUDIO_SETTING_KEY } from '../../../application/LegendStudioSetting.js';
|
|
28
28
|
|
|
29
29
|
export const DevTool = observer(() => {
|
|
30
30
|
const editorStore = useEditorStore();
|
|
@@ -45,8 +45,8 @@ export const DevTool = observer(() => {
|
|
|
45
45
|
editorStore.graphState.setEnableStrictMode(
|
|
46
46
|
!editorStore.graphState.enableStrictMode,
|
|
47
47
|
);
|
|
48
|
-
editorStore.applicationStore.
|
|
49
|
-
|
|
48
|
+
editorStore.applicationStore.settingService.persistValue(
|
|
49
|
+
LEGEND_STUDIO_SETTING_KEY.EDITOR_STRICT_MODE,
|
|
50
50
|
editorStore.graphState.enableStrictMode,
|
|
51
51
|
);
|
|
52
52
|
};
|
|
@@ -26,20 +26,14 @@ import {
|
|
|
26
26
|
import { useEditorStore } from '../EditorStoreProvider.js';
|
|
27
27
|
import type { Problem } from '../../../stores/EditorGraphState.js';
|
|
28
28
|
import { CompilationWarning, EngineError } from '@finos/legend-graph';
|
|
29
|
+
import { GRAPH_EDITOR_MODE } from '../../../stores/EditorConfig.js';
|
|
29
30
|
|
|
30
31
|
const ProblemItem = observer((props: { problem: Problem }) => {
|
|
31
32
|
const { problem } = props;
|
|
32
33
|
const editorStore = useEditorStore();
|
|
33
34
|
const isStale = editorStore.graphState.areProblemsStale;
|
|
34
|
-
const goToSource = (): void =>
|
|
35
|
-
|
|
36
|
-
if (editorStore.isInGrammarTextMode && problem.sourceInformation) {
|
|
37
|
-
editorStore.grammarTextEditorState.setForcedCursorPosition({
|
|
38
|
-
lineNumber: problem.sourceInformation.startLine,
|
|
39
|
-
column: problem.sourceInformation.startColumn,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
};
|
|
35
|
+
const goToSource = (): void =>
|
|
36
|
+
editorStore.graphEditorMode.goToProblem(problem);
|
|
43
37
|
|
|
44
38
|
return (
|
|
45
39
|
<PanelListItem>
|
|
@@ -64,7 +58,8 @@ const ProblemItem = observer((props: { problem: Problem }) => {
|
|
|
64
58
|
</div>
|
|
65
59
|
{problem.sourceInformation && (
|
|
66
60
|
<div className="auxiliary-panel__problem__source">
|
|
67
|
-
{editorStore.
|
|
61
|
+
{editorStore.graphEditorMode.mode ===
|
|
62
|
+
GRAPH_EDITOR_MODE.GRAMMAR_TEXT &&
|
|
68
63
|
`[Ln ${problem.sourceInformation.startLine}, Col ${problem.sourceInformation.startColumn}]`}
|
|
69
64
|
</div>
|
|
70
65
|
)}
|
|
@@ -76,10 +76,7 @@ export const ProjectSearchCommand = observer(() => {
|
|
|
76
76
|
closeModal();
|
|
77
77
|
// NOTE: since it takes time to close the modal, this will prevent any auto-focus effort when we open a new element
|
|
78
78
|
// to fail as the focus is still trapped in this modal, we need to use `setTimeout` here
|
|
79
|
-
setTimeout(
|
|
80
|
-
() => editorStore.tabManagerState.openElementEditor(val.value),
|
|
81
|
-
0,
|
|
82
|
-
);
|
|
79
|
+
setTimeout(() => editorStore.graphEditorMode.openElement(val.value), 0);
|
|
83
80
|
}
|
|
84
81
|
};
|
|
85
82
|
const handleEnter = (): void => {
|
|
@@ -43,7 +43,7 @@ export const FileGenerationViewer = observer(() => {
|
|
|
43
43
|
)
|
|
44
44
|
: undefined;
|
|
45
45
|
const visitFileGeneration = (fg: FileGenerationSpecification): void =>
|
|
46
|
-
editorStore.
|
|
46
|
+
editorStore.graphEditorMode.openElement(fg);
|
|
47
47
|
|
|
48
48
|
return (
|
|
49
49
|
<div className="file-generation-viewer">
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
rawVariableExpression_setName,
|
|
106
106
|
rawVariableExpression_setType,
|
|
107
107
|
} from '../../../stores/shared/modifier/RawValueSpecificationGraphModifierHelper.js';
|
|
108
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../
|
|
108
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../application/LegendStudioApplicationNavigationContext.js';
|
|
109
109
|
import { LambdaEditor } from '@finos/legend-query-builder';
|
|
110
110
|
import type { EditorStore } from '../../../stores/EditorStore.js';
|
|
111
111
|
import { graph_renameElement } from '../../../stores/shared/modifier/GraphModifierHelper.js';
|
|
@@ -201,7 +201,7 @@ const ParameterBasicEditor = observer(
|
|
|
201
201
|
};
|
|
202
202
|
const openElement = (): void => {
|
|
203
203
|
if (!(paramType instanceof PrimitiveType)) {
|
|
204
|
-
editorStore.
|
|
204
|
+
editorStore.graphEditorMode.openElement(
|
|
205
205
|
paramType instanceof Unit ? paramType.measure : paramType,
|
|
206
206
|
);
|
|
207
207
|
}
|
|
@@ -456,7 +456,7 @@ const ReturnTypeEditor = observer(
|
|
|
456
456
|
|
|
457
457
|
const openElement = (): void => {
|
|
458
458
|
if (!(returnType.value instanceof PrimitiveType)) {
|
|
459
|
-
editorStore.
|
|
459
|
+
editorStore.graphEditorMode.openElement(
|
|
460
460
|
returnType.value instanceof Unit
|
|
461
461
|
? returnType.value.measure
|
|
462
462
|
: returnType.value,
|
|
@@ -99,7 +99,7 @@ const ModelGenerationItem = observer(
|
|
|
99
99
|
const deleteNode = (): void =>
|
|
100
100
|
specState.deleteGenerationTreeNode(generationTreeNode);
|
|
101
101
|
const visitModelGeneration = (): void =>
|
|
102
|
-
editorStore.
|
|
102
|
+
editorStore.graphEditorMode.openElement(modelGeneration);
|
|
103
103
|
// generation id
|
|
104
104
|
const isUnique =
|
|
105
105
|
specState.spec.generationNodes.filter(
|
|
@@ -368,7 +368,7 @@ const FileGenerationItem = observer(
|
|
|
368
368
|
fileGeneraitonRef,
|
|
369
369
|
);
|
|
370
370
|
const visitFileGen = (): void =>
|
|
371
|
-
editorStore.
|
|
371
|
+
editorStore.graphEditorMode.openElement(fileGeneration);
|
|
372
372
|
return (
|
|
373
373
|
<div className="generation-spec-file-generation-editor__item">
|
|
374
374
|
<div className="btn--sm generation-spec-file-generation-editor__item__label">
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
PURE_PARSER,
|
|
74
74
|
} from '@finos/legend-graph';
|
|
75
75
|
import type { EditorStore } from '../../../stores/EditorStore.js';
|
|
76
|
-
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../../
|
|
76
|
+
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../../application/LegendStudioDocumentation.js';
|
|
77
77
|
import {
|
|
78
78
|
BLANK_CLASS_SNIPPET,
|
|
79
79
|
CLASS_WITH_CONSTRAINT_SNIPPET,
|
|
@@ -104,12 +104,13 @@ import {
|
|
|
104
104
|
MAPPING_WITH_RELATIONAL_CLASS_MAPPING_SNIPPET,
|
|
105
105
|
POST_PROCESSOR_RELATIONAL_DATABASE_CONNECTION_SNIPPET,
|
|
106
106
|
createConnectionSnippetWithPostProcessorSuggestionSnippet,
|
|
107
|
-
} from '../../../stores/
|
|
107
|
+
} from '../../../stores/Core_CodeSnippets.js';
|
|
108
108
|
import type { DSL_Data_LegendStudioApplicationPlugin_Extension } from '../../../stores/DSL_Data_LegendStudioApplicationPlugin_Extension.js';
|
|
109
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../
|
|
109
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../application/LegendStudioApplicationNavigationContext.js';
|
|
110
110
|
import type { DSL_Mapping_LegendStudioApplicationPlugin_Extension } from '../../../stores/DSL_Mapping_LegendStudioApplicationPlugin_Extension.js';
|
|
111
111
|
import type { STO_Relational_LegendStudioApplicationPlugin_Extension } from '../../../stores/STO_Relational_LegendStudioApplicationPlugin_Extension.js';
|
|
112
|
-
import {
|
|
112
|
+
import { LEGEND_STUDIO_SETTING_KEY } from '../../../application/LegendStudioSetting.js';
|
|
113
|
+
import { GraphEditGrammarModeState } from '../../../stores/GraphEditGrammarModeState.js';
|
|
113
114
|
|
|
114
115
|
export const GrammarTextEditorHeaderTabContextMenu = observer(
|
|
115
116
|
forwardRef<HTMLDivElement, { children?: React.ReactNode }>(
|
|
@@ -684,7 +685,9 @@ export const GrammarTextEditor = observer(() => {
|
|
|
684
685
|
>();
|
|
685
686
|
const editorStore = useEditorStore();
|
|
686
687
|
const applicationStore = useApplicationStore();
|
|
687
|
-
const grammarTextEditorState = editorStore.
|
|
688
|
+
const grammarTextEditorState = editorStore.getGraphEditorMode(
|
|
689
|
+
GraphEditGrammarModeState,
|
|
690
|
+
).grammarTextEditorState;
|
|
688
691
|
const currentElementLabelRegexString =
|
|
689
692
|
grammarTextEditorState.currentElementLabelRegexString;
|
|
690
693
|
const error = editorStore.graphState.error;
|
|
@@ -701,8 +704,8 @@ export const GrammarTextEditor = observer(() => {
|
|
|
701
704
|
|
|
702
705
|
const toggleWordWrap = (): void => {
|
|
703
706
|
grammarTextEditorState.setWrapText(!grammarTextEditorState.wrapText);
|
|
704
|
-
editorStore.applicationStore.
|
|
705
|
-
|
|
707
|
+
editorStore.applicationStore.settingService.persistValue(
|
|
708
|
+
LEGEND_STUDIO_SETTING_KEY.EDITOR_WRAP_TEXT,
|
|
706
709
|
grammarTextEditorState.wrapText,
|
|
707
710
|
);
|
|
708
711
|
};
|
|
@@ -1043,7 +1046,9 @@ export const GrammarTextEditor = observer(() => {
|
|
|
1043
1046
|
<div className="edit-panel__text-mode__tab">
|
|
1044
1047
|
<button
|
|
1045
1048
|
className="edit-panel__text-mode__tab__label"
|
|
1046
|
-
disabled={
|
|
1049
|
+
disabled={
|
|
1050
|
+
editorStore.graphState.isApplicationLeavingGraphEditMode
|
|
1051
|
+
}
|
|
1047
1052
|
onClick={leaveTextMode}
|
|
1048
1053
|
tabIndex={-1}
|
|
1049
1054
|
title="Click to exit text mode and go back to form mode"
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
TextInputEditor,
|
|
46
46
|
} from '@finos/legend-application';
|
|
47
47
|
import type { ModelImporterExtensionConfiguration } from '../../../stores/LegendStudioApplicationPlugin.js';
|
|
48
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../
|
|
48
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../application/LegendStudioApplicationNavigationContext.js';
|
|
49
49
|
import { SCHEMA_SET_TAB_TYPE } from '../../../stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js';
|
|
50
50
|
import { SchemaSetModelGenerationEditor } from './external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js';
|
|
51
51
|
import { SchemaSetGeneralEditor } from './external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js';
|
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
runtime_addIdentifiedConnection,
|
|
111
111
|
runtime_deleteIdentifiedConnection,
|
|
112
112
|
} from '../../../stores/shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
113
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../
|
|
113
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../application/LegendStudioApplicationNavigationContext.js';
|
|
114
114
|
|
|
115
115
|
const getConnectionTooltipText = (
|
|
116
116
|
connection: Connection,
|
|
@@ -580,7 +580,7 @@ const IdentifiedConnectionEditor = observer(
|
|
|
580
580
|
};
|
|
581
581
|
const visitConnection = (): void => {
|
|
582
582
|
if (identifiedConnection.connection instanceof ConnectionPointer) {
|
|
583
|
-
editorStore.
|
|
583
|
+
editorStore.graphEditorMode.openElement(
|
|
584
584
|
identifiedConnection.connection.packageableConnection.value,
|
|
585
585
|
);
|
|
586
586
|
}
|
|
@@ -844,7 +844,7 @@ const RuntimeMappingEditor = observer(
|
|
|
844
844
|
const deleteMapping = (): void =>
|
|
845
845
|
runtimeEditorState.deleteMapping(mappingRef);
|
|
846
846
|
const visitMapping = (): void =>
|
|
847
|
-
editorStore.
|
|
847
|
+
editorStore.graphEditorMode.openElement(mappingRef.value);
|
|
848
848
|
|
|
849
849
|
return (
|
|
850
850
|
<div className="panel__content__form__section__list__item--customized runtime-mapping-editor">
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
getPackageableElementOptionFormatter,
|
|
39
39
|
useApplicationNavigationContext,
|
|
40
40
|
} from '@finos/legend-application';
|
|
41
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../
|
|
41
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../application/LegendStudioApplicationNavigationContext.js';
|
|
42
42
|
|
|
43
43
|
const ModelConnectionEditor = observer(
|
|
44
44
|
(props: {
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
renderColumnTypeIcon,
|
|
56
56
|
} from './DatabaseEditorHelper.js';
|
|
57
57
|
import { flowResult } from 'mobx';
|
|
58
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../
|
|
58
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../application/LegendStudioApplicationNavigationContext.js';
|
|
59
59
|
|
|
60
60
|
const getNodeIcon = (node: DatabaseBuilderTreeNodeData): React.ReactNode => {
|
|
61
61
|
if (node instanceof SchemaDatabaseBuilderTreeNodeData) {
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
useApplicationNavigationContext,
|
|
78
78
|
useApplicationStore,
|
|
79
79
|
} from '@finos/legend-application';
|
|
80
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../
|
|
80
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../application/LegendStudioApplicationNavigationContext.js';
|
|
81
81
|
|
|
82
82
|
export const ExternalFormatDataEditor = observer(
|
|
83
83
|
(props: {
|
|
@@ -168,7 +168,7 @@ export const DataElementReferenceDataEditor = observer(
|
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
170
|
const visitData = (): void =>
|
|
171
|
-
editorStore.
|
|
171
|
+
editorStore.graphEditorMode.openElement(dataElement);
|
|
172
172
|
return (
|
|
173
173
|
<div className="panel data-element-reference-editor">
|
|
174
174
|
<div className="data-element-reference-editor__header">
|
|
@@ -98,7 +98,7 @@ export const EntityDiffView = observer(
|
|
|
98
98
|
} = diffEditorState;
|
|
99
99
|
const goToElement = (): void => {
|
|
100
100
|
if (diffEditorState.element) {
|
|
101
|
-
editorStore.
|
|
101
|
+
editorStore.graphEditorMode.openElement(diffEditorState.element);
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
useApplicationNavigationContext,
|
|
69
69
|
useApplicationStore,
|
|
70
70
|
} from '@finos/legend-application';
|
|
71
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../
|
|
71
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../application/LegendStudioApplicationNavigationContext.js';
|
|
72
72
|
import type { MappingEditorTabState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingTabManagerState.js';
|
|
73
73
|
|
|
74
74
|
export const MappingEditorSplashScreen: React.FC = () => {
|
|
@@ -90,7 +90,6 @@ import {
|
|
|
90
90
|
} from '../../../../stores/shared/modifier/STO_Relational_GraphModifierHelper.js';
|
|
91
91
|
import { MappingExecutionQueryBuilderState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js';
|
|
92
92
|
import type { QueryBuilderState } from '@finos/legend-query-builder';
|
|
93
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../stores/LegendStudioApplicationNavigationContext.js';
|
|
94
93
|
|
|
95
94
|
interface ClassMappingSelectOption {
|
|
96
95
|
label: string;
|
|
@@ -193,9 +192,9 @@ const MappingExecutionQueryEditor = observer(
|
|
|
193
192
|
embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration({
|
|
194
193
|
setupQueryBuilderState: (): QueryBuilderState => {
|
|
195
194
|
const queryBuilderState = new MappingExecutionQueryBuilderState(
|
|
196
|
-
executionState.mappingEditorState.mapping,
|
|
197
195
|
embeddedQueryBuilderState.editorStore.applicationStore,
|
|
198
196
|
embeddedQueryBuilderState.editorStore.graphManagerState,
|
|
197
|
+
executionState.mappingEditorState.mapping,
|
|
199
198
|
);
|
|
200
199
|
queryBuilderState.initializeWithQuery(
|
|
201
200
|
executionState.queryState.query,
|
|
@@ -244,8 +243,6 @@ const MappingExecutionQueryEditor = observer(
|
|
|
244
243
|
disableCompile: isStubbed_RawLambda(
|
|
245
244
|
executionState.queryState.query,
|
|
246
245
|
),
|
|
247
|
-
applicationContext:
|
|
248
|
-
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.MAPPING_EXECUTION_EDITOR,
|
|
249
246
|
}),
|
|
250
247
|
);
|
|
251
248
|
},
|
|
@@ -69,12 +69,13 @@ const MappingExecutionQueryBuilderSetupPanelContent = observer(
|
|
|
69
69
|
options={[]}
|
|
70
70
|
value={selectedMappingOption}
|
|
71
71
|
darkMode={
|
|
72
|
-
!applicationStore.layoutService
|
|
72
|
+
!applicationStore.layoutService
|
|
73
|
+
.TEMPORARY__isLightColorThemeEnabled
|
|
73
74
|
}
|
|
74
75
|
formatOptionLabel={getPackageableElementOptionFormatter({
|
|
75
76
|
darkMode:
|
|
76
77
|
!applicationStore.layoutService
|
|
77
|
-
.
|
|
78
|
+
.TEMPORARY__isLightColorThemeEnabled,
|
|
78
79
|
graph: editorStore.graphManagerState.graph,
|
|
79
80
|
})}
|
|
80
81
|
/>
|
|
@@ -465,7 +465,7 @@ export const MappingExplorer = observer((props: { isReadOnly: boolean }) => {
|
|
|
465
465
|
: undefined;
|
|
466
466
|
const visitGenerationParentElement = (): void => {
|
|
467
467
|
if (generationParentElement) {
|
|
468
|
-
editorStore.
|
|
468
|
+
editorStore.graphEditorMode.openElement(generationParentElement);
|
|
469
469
|
}
|
|
470
470
|
};
|
|
471
471
|
// explorer tree data
|
|
@@ -96,7 +96,6 @@ import {
|
|
|
96
96
|
QueryBuilderTextEditorMode,
|
|
97
97
|
} from '@finos/legend-query-builder';
|
|
98
98
|
import { MappingExecutionQueryBuilderState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js';
|
|
99
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../stores/LegendStudioApplicationNavigationContext.js';
|
|
100
99
|
|
|
101
100
|
const MappingTestQueryEditor = observer(
|
|
102
101
|
(props: { testState: MappingTestState; isReadOnly: boolean }) => {
|
|
@@ -113,9 +112,9 @@ const MappingTestQueryEditor = observer(
|
|
|
113
112
|
embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration({
|
|
114
113
|
setupQueryBuilderState: (): QueryBuilderState => {
|
|
115
114
|
const queryBuilderState = new MappingExecutionQueryBuilderState(
|
|
116
|
-
testState.mappingEditorState.mapping,
|
|
117
115
|
embeddedQueryBuilderState.editorStore.applicationStore,
|
|
118
116
|
embeddedQueryBuilderState.editorStore.graphManagerState,
|
|
117
|
+
testState.mappingEditorState.mapping,
|
|
119
118
|
);
|
|
120
119
|
queryBuilderState.initializeWithQuery(testState.queryState.query);
|
|
121
120
|
if (openInTextMode) {
|
|
@@ -166,8 +165,6 @@ const MappingTestQueryEditor = observer(
|
|
|
166
165
|
},
|
|
167
166
|
],
|
|
168
167
|
disableCompile: isStubbed_RawLambda(testState.queryState.query),
|
|
169
|
-
applicationContext:
|
|
170
|
-
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.MAPPING_TEST_EDITOR,
|
|
171
168
|
}),
|
|
172
169
|
);
|
|
173
170
|
});
|
package/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx
CHANGED
|
@@ -169,7 +169,7 @@ export const OperationSetImplementationEditor = observer(
|
|
|
169
169
|
const parent = param.setImplementation.value._PARENT;
|
|
170
170
|
// TODO: think more about this flow. Right now we open the mapping element in the parent mapping
|
|
171
171
|
if (parent !== mappingEditorState.element) {
|
|
172
|
-
editorStore.
|
|
172
|
+
editorStore.graphEditorMode.openElement(parent);
|
|
173
173
|
editorStore.tabManagerState
|
|
174
174
|
.getCurrentEditorState(MappingEditorState)
|
|
175
175
|
.openMappingElement(param.setImplementation.value, false);
|
|
@@ -193,7 +193,7 @@ export const PropertyMappingEditor = observer(
|
|
|
193
193
|
const parent = rootMappingElement._PARENT;
|
|
194
194
|
if (parent !== mappingEditorState.element) {
|
|
195
195
|
// TODO: think more about this flow. Right now we open the mapping element in the parent mapping
|
|
196
|
-
editorStore.
|
|
196
|
+
editorStore.graphEditorMode.openElement(parent);
|
|
197
197
|
editorStore.tabManagerState
|
|
198
198
|
.getCurrentEditorState(MappingEditorState)
|
|
199
199
|
.openMappingElement(rootMappingElement, false);
|