@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
package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx
CHANGED
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
} from '@finos/legend-application';
|
|
54
54
|
import { ProjectDependencyEditor } from './ProjectDependencyEditor.js';
|
|
55
55
|
import type { ProjectData } from '@finos/legend-server-depot';
|
|
56
|
-
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../../../
|
|
56
|
+
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../../../application/LegendStudioDocumentation.js';
|
|
57
57
|
|
|
58
58
|
const ProjectStructureEditor = observer(
|
|
59
59
|
(props: { projectConfig: ProjectConfiguration; isReadOnly: boolean }) => {
|
|
@@ -138,7 +138,7 @@ const ProjectStructureEditor = observer(
|
|
|
138
138
|
pipeline and published to an artifact repository
|
|
139
139
|
</div>
|
|
140
140
|
<PanelListItem>
|
|
141
|
-
<div className="input-group">
|
|
141
|
+
<div className="input-group project-configuration-editor__input">
|
|
142
142
|
<input
|
|
143
143
|
className={clsx(
|
|
144
144
|
'input input--dark input-group__input panel__content__form__section__input input--full',
|
|
@@ -172,7 +172,7 @@ const ProjectStructureEditor = observer(
|
|
|
172
172
|
published to an artifact repository
|
|
173
173
|
</div>
|
|
174
174
|
<PanelListItem>
|
|
175
|
-
<div className="input-group">
|
|
175
|
+
<div className="input-group project-configuration-editor__input">
|
|
176
176
|
<input
|
|
177
177
|
className={clsx(
|
|
178
178
|
'input input--dark input-group__input panel__content__form__section__input input--full',
|
package/src/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.tsx
CHANGED
|
@@ -79,12 +79,12 @@ import {
|
|
|
79
79
|
ProjectDependencyTreeNodeData,
|
|
80
80
|
type ProjectDependencyEditorState,
|
|
81
81
|
} from '../../../../stores/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.js';
|
|
82
|
-
import { LEGEND_STUDIO_APP_EVENT } from '../../../../
|
|
82
|
+
import { LEGEND_STUDIO_APP_EVENT } from '../../../../application/LegendStudioEvent.js';
|
|
83
83
|
import {
|
|
84
84
|
generateViewProjectByGAVRoute,
|
|
85
85
|
generateViewProjectRoute,
|
|
86
86
|
generateViewVersionRoute,
|
|
87
|
-
} from '../../../../
|
|
87
|
+
} from '../../../../application/LegendStudioNavigation.js';
|
|
88
88
|
import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js';
|
|
89
89
|
import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
90
90
|
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
useApplicationStore,
|
|
54
54
|
} from '@finos/legend-application';
|
|
55
55
|
import { validate_ServicePattern } from '@finos/legend-graph';
|
|
56
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../
|
|
56
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../application/LegendStudioApplicationNavigationContext.js';
|
|
57
57
|
import { ServiceTestableEditor } from './testable/ServiceTestableEditor.js';
|
|
58
58
|
import { flowResult } from 'mobx';
|
|
59
59
|
|
|
@@ -400,7 +400,7 @@ const ServiceGeneralEditor = observer(() => {
|
|
|
400
400
|
disabled={isReadOnly}
|
|
401
401
|
darkMode={
|
|
402
402
|
!applicationStore.layoutService
|
|
403
|
-
.
|
|
403
|
+
.TEMPORARY__isLightColorThemeEnabled
|
|
404
404
|
}
|
|
405
405
|
onInputChange={onSearchTextChange}
|
|
406
406
|
onChange={onUserOptionChange}
|
|
@@ -120,7 +120,7 @@ const PureExecutionContextConfigurationEditor = observer(
|
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
const visitMapping = (): void =>
|
|
123
|
-
editorStore.
|
|
123
|
+
editorStore.graphEditorMode.openElement(mapping);
|
|
124
124
|
// runtime
|
|
125
125
|
const runtime = executionContext.runtime;
|
|
126
126
|
const isRuntimePointer = runtime instanceof RuntimePointer;
|
|
@@ -201,7 +201,7 @@ const PureExecutionContextConfigurationEditor = observer(
|
|
|
201
201
|
};
|
|
202
202
|
const visitRuntime = (): void => {
|
|
203
203
|
if (runtime instanceof RuntimePointer) {
|
|
204
|
-
editorStore.
|
|
204
|
+
editorStore.graphEditorMode.openElement(
|
|
205
205
|
runtime.packageableRuntime.value,
|
|
206
206
|
);
|
|
207
207
|
}
|
|
@@ -71,7 +71,6 @@ import { useLegendStudioApplicationStore } from '../../../LegendStudioBaseStoreP
|
|
|
71
71
|
import { WorkspaceType } from '@finos/legend-server-sdlc';
|
|
72
72
|
import { SNAPSHOT_VERSION_ALIAS } from '@finos/legend-server-depot';
|
|
73
73
|
import type { ProjectGAVCoordinates } from '@finos/legend-storage';
|
|
74
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../stores/LegendStudioApplicationNavigationContext.js';
|
|
75
74
|
|
|
76
75
|
const ServiceExecutionResultViewer = observer(
|
|
77
76
|
(props: { executionState: ServicePureExecutionState }) => {
|
|
@@ -341,8 +340,6 @@ export const ServiceExecutionQueryEditor = observer(
|
|
|
341
340
|
disableCompile: isStubbed_RawLambda(
|
|
342
341
|
executionState.queryState.query,
|
|
343
342
|
),
|
|
344
|
-
applicationContext:
|
|
345
|
-
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.MAPPING_TEST_EDITOR,
|
|
346
343
|
}),
|
|
347
344
|
);
|
|
348
345
|
executionState.setOpeningQueryEditor(false);
|
|
@@ -40,7 +40,7 @@ import type {
|
|
|
40
40
|
ServiceTestSuiteState,
|
|
41
41
|
} from '../../../../../stores/editor-state/element-editor-state/service/testable/ServiceTestableState.js';
|
|
42
42
|
import { useApplicationNavigationContext } from '@finos/legend-application';
|
|
43
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../../
|
|
43
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../../application/LegendStudioApplicationNavigationContext.js';
|
|
44
44
|
|
|
45
45
|
export const ServiceTestSuiteEditor = observer(
|
|
46
46
|
(props: { serviceTestSuiteState: ServiceTestSuiteState }) => {
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
type PackageableElementOption,
|
|
96
96
|
LEGEND_APPLICATION_DOCUMENTATION_KEY,
|
|
97
97
|
} from '@finos/legend-application';
|
|
98
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../
|
|
98
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../application/LegendStudioApplicationNavigationContext.js';
|
|
99
99
|
|
|
100
100
|
const AssociationPropertyBasicEditor = observer(
|
|
101
101
|
(props: {
|
|
@@ -205,7 +205,7 @@ const AssociationPropertyBasicEditor = observer(
|
|
|
205
205
|
// Other
|
|
206
206
|
const openElement = (): void => {
|
|
207
207
|
if (!(propertyType instanceof PrimitiveType)) {
|
|
208
|
-
editorStore.
|
|
208
|
+
editorStore.graphEditorMode.openElement(
|
|
209
209
|
propertyType instanceof Unit ? propertyType.measure : propertyType,
|
|
210
210
|
);
|
|
211
211
|
}
|
|
@@ -131,7 +131,7 @@ import {
|
|
|
131
131
|
CLASS_PROPERTY_TYPE,
|
|
132
132
|
getClassPropertyType,
|
|
133
133
|
} from '../../../../stores/shared/ModelClassifierUtils.js';
|
|
134
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../
|
|
134
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../application/LegendStudioApplicationNavigationContext.js';
|
|
135
135
|
import { LambdaEditor } from '@finos/legend-query-builder';
|
|
136
136
|
|
|
137
137
|
type ClassPropertyDragSource = {
|
|
@@ -272,7 +272,7 @@ const PropertyBasicEditor = observer(
|
|
|
272
272
|
// Other
|
|
273
273
|
const openElement = (): void => {
|
|
274
274
|
if (!(propertyType instanceof PrimitiveType)) {
|
|
275
|
-
editorStore.
|
|
275
|
+
editorStore.graphEditorMode.openElement(
|
|
276
276
|
propertyType instanceof Unit ? propertyType.measure : propertyType,
|
|
277
277
|
);
|
|
278
278
|
}
|
|
@@ -280,7 +280,7 @@ const PropertyBasicEditor = observer(
|
|
|
280
280
|
// NOTE: for now we do not allow directly modifying inherited and associated properties,
|
|
281
281
|
// we would make the user go to the supertype or the association where the property comes from
|
|
282
282
|
const visitOwner = (): void =>
|
|
283
|
-
editorStore.
|
|
283
|
+
editorStore.graphEditorMode.openElement(property._OWNER);
|
|
284
284
|
|
|
285
285
|
return (
|
|
286
286
|
<div ref={ref} className="property-basic-editor__container">
|
|
@@ -629,13 +629,13 @@ const DerivedPropertyBasicEditor = observer(
|
|
|
629
629
|
);
|
|
630
630
|
const openElement = (): void => {
|
|
631
631
|
if (!(propertyType instanceof PrimitiveType)) {
|
|
632
|
-
editorStore.
|
|
632
|
+
editorStore.graphEditorMode.openElement(
|
|
633
633
|
propertyType instanceof Unit ? propertyType.measure : propertyType,
|
|
634
634
|
);
|
|
635
635
|
}
|
|
636
636
|
};
|
|
637
637
|
const visitOwner = (): void =>
|
|
638
|
-
editorStore.
|
|
638
|
+
editorStore.graphEditorMode.openElement(derivedProperty._OWNER);
|
|
639
639
|
const remove = applicationStore.guardUnhandledError(async () => {
|
|
640
640
|
await flowResult(dpState.convertLambdaObjectToGrammarString(false));
|
|
641
641
|
deleteDerivedProperty();
|
|
@@ -919,7 +919,7 @@ const ConstraintEditor = observer(
|
|
|
919
919
|
deleteConstraint();
|
|
920
920
|
});
|
|
921
921
|
const visitOwner = (): void =>
|
|
922
|
-
editorStore.
|
|
922
|
+
editorStore.graphEditorMode.openElement(constraint._OWNER);
|
|
923
923
|
|
|
924
924
|
return (
|
|
925
925
|
<div ref={ref} className="constraint-editor__container">
|
|
@@ -1075,7 +1075,7 @@ const SuperTypeEditor = observer(
|
|
|
1075
1075
|
const changeType = (val: PackageableElementOption<Class>): void =>
|
|
1076
1076
|
setGenericTypeReferenceValue(superType, new GenericType(val.value));
|
|
1077
1077
|
const visitDerivationSource = (): void =>
|
|
1078
|
-
editorStore.
|
|
1078
|
+
editorStore.graphEditorMode.openElement(rawType);
|
|
1079
1079
|
|
|
1080
1080
|
return (
|
|
1081
1081
|
<div ref={ref} className="super-type-editor__container">
|
|
@@ -1674,7 +1674,7 @@ export const ClassFormEditor = observer(
|
|
|
1674
1674
|
: undefined;
|
|
1675
1675
|
const visitGenerationParentElement = (): void => {
|
|
1676
1676
|
if (generationParentElement) {
|
|
1677
|
-
editorStore.
|
|
1677
|
+
editorStore.graphEditorMode.openElement(generationParentElement);
|
|
1678
1678
|
}
|
|
1679
1679
|
};
|
|
1680
1680
|
|
|
@@ -30,7 +30,6 @@ import { observer } from 'mobx-react-lite';
|
|
|
30
30
|
import { useState } from 'react';
|
|
31
31
|
import type { EditorStore } from '../../../../stores/EditorStore.js';
|
|
32
32
|
import type { EmbeddedQueryBuilderState } from '../../../../stores/EmbeddedQueryBuilderState.js';
|
|
33
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../stores/LegendStudioApplicationNavigationContext.js';
|
|
34
33
|
import {
|
|
35
34
|
service_initNewService,
|
|
36
35
|
service_setExecution,
|
|
@@ -68,7 +67,9 @@ const promoteQueryToService = async (
|
|
|
68
67
|
),
|
|
69
68
|
editorStore.changeDetectionState.observerContext,
|
|
70
69
|
);
|
|
71
|
-
await flowResult(
|
|
70
|
+
await flowResult(
|
|
71
|
+
editorStore.graphEditorMode.addElement(service, packagePath, true),
|
|
72
|
+
);
|
|
72
73
|
await flowResult(
|
|
73
74
|
embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration(undefined),
|
|
74
75
|
).catch(applicationStore.alertUnhandledError);
|
|
@@ -157,8 +158,6 @@ export const queryClass = async (
|
|
|
157
158
|
),
|
|
158
159
|
},
|
|
159
160
|
],
|
|
160
|
-
applicationContext:
|
|
161
|
-
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.EDITOR,
|
|
162
161
|
}),
|
|
163
162
|
);
|
|
164
163
|
};
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
enum_swapValues,
|
|
85
85
|
} from '../../../../stores/shared/modifier/DomainGraphModifierHelper.js';
|
|
86
86
|
import { useApplicationNavigationContext } from '@finos/legend-application';
|
|
87
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../
|
|
87
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../application/LegendStudioApplicationNavigationContext.js';
|
|
88
88
|
|
|
89
89
|
type EnumValueDragSource = {
|
|
90
90
|
enumValue: Enum;
|
|
@@ -534,7 +534,7 @@ export const EnumerationEditor = observer(
|
|
|
534
534
|
: undefined;
|
|
535
535
|
const visitGenerationParentElement = (): void => {
|
|
536
536
|
if (generationParentElement) {
|
|
537
|
-
editorStore.
|
|
537
|
+
editorStore.graphEditorMode.openElement(generationParentElement);
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
profile_swapStereotypes,
|
|
53
53
|
} from '../../../../stores/shared/modifier/DomainGraphModifierHelper.js';
|
|
54
54
|
import { useApplicationNavigationContext } from '@finos/legend-application';
|
|
55
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../
|
|
55
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../application/LegendStudioApplicationNavigationContext.js';
|
|
56
56
|
import { useRef, useCallback } from 'react';
|
|
57
57
|
import { useDrop, useDrag } from 'react-dnd';
|
|
58
58
|
|
|
@@ -107,7 +107,7 @@ export const StereotypeSelector = observer(
|
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
const visitProfile = (): void =>
|
|
110
|
-
editorStore.
|
|
110
|
+
editorStore.graphEditorMode.openElement(selectedProfile.value);
|
|
111
111
|
// Stereotype
|
|
112
112
|
const stereotypeOptions = selectedProfile.value.p_stereotypes.map((st) => ({
|
|
113
113
|
label: st.value,
|
|
@@ -113,7 +113,7 @@ export const TaggedValueEditor = observer(
|
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
const visitProfile = (): void =>
|
|
116
|
-
editorStore.
|
|
116
|
+
editorStore.graphEditorMode.openElement(selectedProfile.value);
|
|
117
117
|
// Tag
|
|
118
118
|
const tagOptions = selectedProfile.value.p_tags.map((tag) => ({
|
|
119
119
|
label: tag.value,
|
|
@@ -296,6 +296,10 @@ const NewConnectionDriverEditor = observer(() => {
|
|
|
296
296
|
let storeOptions: { label: string; value?: Store | undefined }[] = [
|
|
297
297
|
{ label: 'ModelStore', value: undefined },
|
|
298
298
|
];
|
|
299
|
+
// TODO: we should think more about this and filter the store by the connection type
|
|
300
|
+
// or think about a way to completely revamp this workflow, maybe to let people select
|
|
301
|
+
// the store first and then the type of the connection
|
|
302
|
+
// See
|
|
299
303
|
storeOptions = storeOptions.concat(
|
|
300
304
|
editorStore.graphManagerState.usableStores
|
|
301
305
|
.map(buildElementOption)
|
|
@@ -62,7 +62,10 @@ import {
|
|
|
62
62
|
import { useDrag } from 'react-dnd';
|
|
63
63
|
import { ElementDragSource } from '../../../stores/shared/DnDUtils.js';
|
|
64
64
|
import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID.js';
|
|
65
|
-
import {
|
|
65
|
+
import {
|
|
66
|
+
ACTIVITY_MODE,
|
|
67
|
+
GRAPH_EDITOR_MODE,
|
|
68
|
+
} from '../../../stores/EditorConfig.js';
|
|
66
69
|
import {
|
|
67
70
|
generatePackageableElementTreeNodeDataLabel,
|
|
68
71
|
getTreeChildNodes,
|
|
@@ -76,10 +79,11 @@ import { FileSystemTree } from '../edit-panel/element-generation-editor/FileSyst
|
|
|
76
79
|
import {
|
|
77
80
|
generateViewEntityRoute,
|
|
78
81
|
generateViewProjectByGAVRoute,
|
|
79
|
-
} from '../../../
|
|
82
|
+
} from '../../../application/LegendStudioNavigation.js';
|
|
80
83
|
import {
|
|
81
84
|
guaranteeNonEmptyString,
|
|
82
85
|
guaranteeNonNullable,
|
|
86
|
+
isNonNullable,
|
|
83
87
|
toTitleCase,
|
|
84
88
|
} from '@finos/legend-shared';
|
|
85
89
|
import { flowResult } from 'mobx';
|
|
@@ -184,7 +188,7 @@ const ElementRenamer = observer(() => {
|
|
|
184
188
|
if (element && canRenameElement) {
|
|
185
189
|
explorerTreeState.setElementToRename(undefined);
|
|
186
190
|
flowResult(
|
|
187
|
-
editorStore.renameElement(
|
|
191
|
+
editorStore.graphEditorMode.renameElement(
|
|
188
192
|
element,
|
|
189
193
|
element instanceof ConcreteFunctionDefinition
|
|
190
194
|
? path + getFunctionSignature(element)
|
|
@@ -450,11 +454,14 @@ const ExplorerContextMenu = observer(
|
|
|
450
454
|
plugin.getExtraExplorerContextMenuItemRendererConfigurations?.() ??
|
|
451
455
|
[],
|
|
452
456
|
)
|
|
453
|
-
.map((config) =>
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
457
|
+
.map((config) => {
|
|
458
|
+
const action = config.renderer(editorStore, node?.packageableElement);
|
|
459
|
+
if (!action) {
|
|
460
|
+
return null;
|
|
461
|
+
}
|
|
462
|
+
return <Fragment key={config.key}>{action}</Fragment>;
|
|
463
|
+
})
|
|
464
|
+
.filter(isNonNullable);
|
|
458
465
|
const projectId = editorStore.sdlcState.currentProject?.projectId;
|
|
459
466
|
const isReadOnly = editorStore.isInViewerMode || Boolean(nodeIsImmutable);
|
|
460
467
|
const isDependencyProjectElement =
|
|
@@ -496,9 +503,9 @@ const ExplorerContextMenu = observer(
|
|
|
496
503
|
);
|
|
497
504
|
const removeElement = (): void => {
|
|
498
505
|
if (node) {
|
|
499
|
-
flowResult(
|
|
500
|
-
|
|
501
|
-
);
|
|
506
|
+
flowResult(
|
|
507
|
+
editorStore.graphEditorMode.deleteElement(node.packageableElement),
|
|
508
|
+
).catch(applicationStore.alertUnhandledError);
|
|
502
509
|
}
|
|
503
510
|
};
|
|
504
511
|
const renameElement = (): void => {
|
|
@@ -916,7 +923,9 @@ const ExplorerDropdownMenu = observer(() => {
|
|
|
916
923
|
|
|
917
924
|
const ExplorerTrees = observer(() => {
|
|
918
925
|
const editorStore = useEditorStore();
|
|
919
|
-
const {
|
|
926
|
+
const { isInViewerMode } = editorStore;
|
|
927
|
+
const isInGrammarTextMode =
|
|
928
|
+
editorStore.graphEditorMode.mode === GRAPH_EDITOR_MODE.GRAMMAR_TEXT;
|
|
920
929
|
const openModelImport = (): void =>
|
|
921
930
|
editorStore.tabManagerState.openTab(editorStore.modelImporterState);
|
|
922
931
|
const graph = editorStore.graphManagerState.graph;
|
|
@@ -1111,7 +1120,8 @@ const ExplorerTrees = observer(() => {
|
|
|
1111
1120
|
const ProjectExplorerActionPanel = observer((props: { disabled: boolean }) => {
|
|
1112
1121
|
const { disabled } = props;
|
|
1113
1122
|
const editorStore = useEditorStore();
|
|
1114
|
-
const isInGrammarMode =
|
|
1123
|
+
const isInGrammarMode =
|
|
1124
|
+
editorStore.graphEditorMode.mode === GRAPH_EDITOR_MODE.GRAMMAR_TEXT;
|
|
1115
1125
|
const showSearchModal = (): void =>
|
|
1116
1126
|
editorStore.searchElementCommandState.open();
|
|
1117
1127
|
// Explorer tree
|
|
@@ -1198,7 +1208,7 @@ export const Explorer = observer(() => {
|
|
|
1198
1208
|
const sdlcState = editorStore.sdlcState;
|
|
1199
1209
|
const isLoading =
|
|
1200
1210
|
((!editorStore.explorerTreeState.buildState.hasCompleted &&
|
|
1201
|
-
|
|
1211
|
+
editorStore.graphEditorMode.mode !== GRAPH_EDITOR_MODE.GRAMMAR_TEXT) ||
|
|
1202
1212
|
editorStore.graphState.isUpdatingGraph) &&
|
|
1203
1213
|
!editorStore.graphManagerState.graphBuildState.hasFailed;
|
|
1204
1214
|
const showExplorerTrees =
|
|
@@ -1210,7 +1220,7 @@ export const Explorer = observer(() => {
|
|
|
1210
1220
|
// don't edit elements that fast in form mode, but this could throw off
|
|
1211
1221
|
// test runner
|
|
1212
1222
|
(editorStore.isInViewerMode ||
|
|
1213
|
-
editorStore.
|
|
1223
|
+
editorStore.graphEditorMode.mode === GRAPH_EDITOR_MODE.GRAMMAR_TEXT ||
|
|
1214
1224
|
editorStore.changeDetectionState.graphObserveState.hasSucceeded);
|
|
1215
1225
|
// conflict resolution
|
|
1216
1226
|
const showConflictResolutionContent =
|
|
@@ -52,6 +52,7 @@ import { useEffect } from 'react';
|
|
|
52
52
|
import { EntityChangeConflictEditorState } from '../../../stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js';
|
|
53
53
|
import { EntityChangeConflictSideBarItem } from '../edit-panel/diff-editor/EntityChangeConflictEditor.js';
|
|
54
54
|
import { FormLocalChangesState } from '../../../stores/sidebar-state/LocalChangesState.js';
|
|
55
|
+
import { GRAPH_EDITOR_MODE } from '../../../stores/EditorConfig.js';
|
|
55
56
|
|
|
56
57
|
const PatchLoader = observer(() => {
|
|
57
58
|
const editorStore = useEditorStore();
|
|
@@ -76,12 +77,7 @@ const PatchLoader = observer(() => {
|
|
|
76
77
|
<ModalBody>
|
|
77
78
|
<PanelLoadingIndicator isLoading={patchState.isLoadingChanges} />
|
|
78
79
|
<div>
|
|
79
|
-
<input
|
|
80
|
-
id="upload-file"
|
|
81
|
-
type="file"
|
|
82
|
-
name="myFiles"
|
|
83
|
-
onChange={onChange}
|
|
84
|
-
/>
|
|
80
|
+
<input type="file" name="myFiles" onChange={onChange} />
|
|
85
81
|
</div>
|
|
86
82
|
{Boolean(patchState.overiddingChanges.length) && (
|
|
87
83
|
<div className="panel__content__form__section">
|
|
@@ -143,7 +139,7 @@ export const LocalChanges = observer(() => {
|
|
|
143
139
|
localChangesState.downloadLocalChanges();
|
|
144
140
|
const uploadPatchChanges = (): void =>
|
|
145
141
|
localChangesState.patchLoaderState.openModal(
|
|
146
|
-
editorStore.
|
|
142
|
+
editorStore.localChangesState.computeLocalEntityChanges(),
|
|
147
143
|
);
|
|
148
144
|
const pushLocalChanges = applicationStore.guardUnhandledError(() =>
|
|
149
145
|
flowResult(localChangesState.pushLocalChanges()),
|
|
@@ -244,7 +240,7 @@ export const LocalChanges = observer(() => {
|
|
|
244
240
|
isDispatchingAction ||
|
|
245
241
|
editorStore.workspaceUpdaterState.isUpdatingWorkspace ||
|
|
246
242
|
!editorStore.changeDetectionState.initState.hasSucceeded ||
|
|
247
|
-
|
|
243
|
+
editorStore.graphEditorMode.mode !== GRAPH_EDITOR_MODE.FORM
|
|
248
244
|
}
|
|
249
245
|
tabIndex={-1}
|
|
250
246
|
title="Upload local entity changes"
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
generateDependencyDashboardRoute,
|
|
47
47
|
generateViewProjectByGAVRoute,
|
|
48
48
|
generateViewVersionRoute,
|
|
49
|
-
} from '../../../
|
|
49
|
+
} from '../../../application/LegendStudioNavigation.js';
|
|
50
50
|
|
|
51
51
|
const ProjectDependantEditor = observer(
|
|
52
52
|
(props: { dependant: ProjectVersionPlatformDependency }) => {
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
generateViewProjectRoute,
|
|
45
45
|
generateViewVersionRoute,
|
|
46
46
|
generateReviewRoute,
|
|
47
|
-
} from '../../../
|
|
47
|
+
} from '../../../application/LegendStudioNavigation.js';
|
|
48
48
|
import { flowResult } from 'mobx';
|
|
49
49
|
import {
|
|
50
50
|
type Workspace,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
PanelContent,
|
|
31
31
|
} from '@finos/legend-art';
|
|
32
32
|
import { ACTIVITY_MODE } from '../../../stores/EditorConfig.js';
|
|
33
|
-
import { generateReviewRoute } from '../../../
|
|
33
|
+
import { generateReviewRoute } from '../../../application/LegendStudioNavigation.js';
|
|
34
34
|
import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID.js';
|
|
35
35
|
import { flowResult } from 'mobx';
|
|
36
36
|
import type { EntityDiff } from '@finos/legend-server-sdlc';
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from '@finos/legend-art';
|
|
33
33
|
import { EntityChangeConflictSideBarItem } from '../../editor/edit-panel/diff-editor/EntityChangeConflictEditor.js';
|
|
34
34
|
import { EntityChangeConflictEditorState } from '../../../stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js';
|
|
35
|
-
import { generateReviewRoute } from '../../../
|
|
35
|
+
import { generateReviewRoute } from '../../../application/LegendStudioNavigation.js';
|
|
36
36
|
import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID.js';
|
|
37
37
|
import { flowResult } from 'mobx';
|
|
38
38
|
import type {
|
|
@@ -19,7 +19,7 @@ import { observer } from 'mobx-react-lite';
|
|
|
19
19
|
import { EditPanel } from '../editor/edit-panel/EditPanel.js';
|
|
20
20
|
import { GrammarTextEditor } from '../editor/edit-panel/GrammarTextEditor.js';
|
|
21
21
|
import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js';
|
|
22
|
-
import { ACTIVITY_MODE } from '../../stores/EditorConfig.js';
|
|
22
|
+
import { ACTIVITY_MODE, GRAPH_EDITOR_MODE } from '../../stores/EditorConfig.js';
|
|
23
23
|
import {
|
|
24
24
|
type ResizablePanelHandlerProps,
|
|
25
25
|
clsx,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
type ViewerPathParams,
|
|
45
45
|
generateSetupRoute,
|
|
46
|
-
} from '../../
|
|
46
|
+
} from '../../application/LegendStudioNavigation.js';
|
|
47
47
|
import { ProjectSearchCommand } from '../editor/command-center/ProjectSearchCommand.js';
|
|
48
48
|
import { flowResult } from 'mobx';
|
|
49
49
|
import {
|
|
@@ -143,7 +143,8 @@ const ProjectViewerStatusBar = observer(() => {
|
|
|
143
143
|
'editor__status-bar__action editor__status-bar__action__toggler',
|
|
144
144
|
{
|
|
145
145
|
'editor__status-bar__action__toggler--active':
|
|
146
|
-
editorStore.
|
|
146
|
+
editorStore.graphEditorMode.mode ===
|
|
147
|
+
GRAPH_EDITOR_MODE.GRAMMAR_TEXT,
|
|
147
148
|
},
|
|
148
149
|
)}
|
|
149
150
|
onClick={handleTextModeClick}
|
|
@@ -329,8 +330,10 @@ export const ProjectViewer = withEditorStore(
|
|
|
329
330
|
{...sideBarCollapsiblePanelGroupProps.remainingPanel}
|
|
330
331
|
minSize={300}
|
|
331
332
|
>
|
|
332
|
-
{editorStore.
|
|
333
|
-
|
|
333
|
+
{editorStore.graphEditorMode.mode ===
|
|
334
|
+
GRAPH_EDITOR_MODE.FORM && <EditPanel />}
|
|
335
|
+
{editorStore.graphEditorMode.mode ===
|
|
336
|
+
GRAPH_EDITOR_MODE.GRAMMAR_TEXT && <GrammarTextEditor />}
|
|
334
337
|
</ResizablePanel>
|
|
335
338
|
</ResizablePanelGroup>
|
|
336
339
|
</div>
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from '@finos/legend-art';
|
|
23
23
|
import type { Project } from '@finos/legend-server-sdlc';
|
|
24
24
|
import type { LegendStudioApplicationStore } from '../../stores/LegendStudioBaseStore.js';
|
|
25
|
-
import { generateViewProjectRoute } from '../../
|
|
25
|
+
import { generateViewProjectRoute } from '../../application/LegendStudioNavigation.js';
|
|
26
26
|
import type { ProjectConfigurationStatus } from '../../stores/workspace-setup/ProjectConfigurationStatus.js';
|
|
27
27
|
|
|
28
28
|
export interface ProjectOption {
|
|
@@ -38,8 +38,8 @@ import {
|
|
|
38
38
|
DocumentationLink,
|
|
39
39
|
useConditionedApplicationNavigationContext,
|
|
40
40
|
} from '@finos/legend-application';
|
|
41
|
-
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../
|
|
42
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../
|
|
41
|
+
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../application/LegendStudioDocumentation.js';
|
|
42
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../application/LegendStudioApplicationNavigationContext.js';
|
|
43
43
|
import { useLegendStudioApplicationStore } from '../LegendStudioBaseStoreProvider.js';
|
|
44
44
|
import { useWorkspaceSetupStore } from './WorkspaceSetup.js';
|
|
45
45
|
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
useApplicationStore,
|
|
33
33
|
DocumentationLink,
|
|
34
34
|
} from '@finos/legend-application';
|
|
35
|
-
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../
|
|
35
|
+
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../application/LegendStudioDocumentation.js';
|
|
36
36
|
import { useWorkspaceSetupStore } from './WorkspaceSetup.js';
|
|
37
37
|
|
|
38
38
|
export const CreateWorkspaceModal = observer(
|
|
@@ -30,18 +30,18 @@ import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js';
|
|
|
30
30
|
import {
|
|
31
31
|
type SetupPathParams,
|
|
32
32
|
generateEditorRoute,
|
|
33
|
-
|
|
34
|
-
} from '../../
|
|
33
|
+
LEGEND_STUDIO_ROUTE_PATTERN_TOKEN,
|
|
34
|
+
} from '../../application/LegendStudioNavigation.js';
|
|
35
35
|
import { flowResult } from 'mobx';
|
|
36
36
|
import {
|
|
37
37
|
DocumentationLink,
|
|
38
38
|
useApplicationNavigationContext,
|
|
39
39
|
useParams,
|
|
40
40
|
} from '@finos/legend-application';
|
|
41
|
-
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../
|
|
41
|
+
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../application/LegendStudioDocumentation.js';
|
|
42
42
|
import { CreateProjectModal } from './CreateProjectModal.js';
|
|
43
43
|
import { ActivityBarMenu } from '../editor/ActivityBar.js';
|
|
44
|
-
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../
|
|
44
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../application/LegendStudioApplicationNavigationContext.js';
|
|
45
45
|
import { CreateWorkspaceModal } from './CreateWorkspaceModal.js';
|
|
46
46
|
import { useLegendStudioApplicationStore } from '../LegendStudioBaseStoreProvider.js';
|
|
47
47
|
import {
|
|
@@ -95,10 +95,10 @@ const withWorkspaceSetupStore = (WrappedComponent: React.FC): React.FC =>
|
|
|
95
95
|
export const WorkspaceSetup = withWorkspaceSetupStore(
|
|
96
96
|
observer(() => {
|
|
97
97
|
const params = useParams<SetupPathParams>();
|
|
98
|
-
const projectId = params[
|
|
99
|
-
const workspaceId = params[
|
|
98
|
+
const projectId = params[LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.PROJECT_ID];
|
|
99
|
+
const workspaceId = params[LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.WORKSPACE_ID];
|
|
100
100
|
const groupWorkspaceId =
|
|
101
|
-
params[
|
|
101
|
+
params[LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.GROUP_WORKSPACE_ID];
|
|
102
102
|
const setupStore = useWorkspaceSetupStore();
|
|
103
103
|
const applicationStore = useLegendStudioApplicationStore();
|
|
104
104
|
const [projectSearchText, setProjectSearchText] = useState('');
|
package/src/index.ts
CHANGED
|
@@ -15,13 +15,16 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
// application
|
|
18
|
-
export * from './components/LegendStudioBaseStoreProvider.js';
|
|
19
|
-
export * from './stores/LegendStudioBaseStore.js';
|
|
20
18
|
export * from './application/LegendStudio.js';
|
|
21
19
|
export * from './application/LegendStudioApplicationConfig.js';
|
|
22
20
|
export * from './application/LegendStudioPluginManager.js';
|
|
23
|
-
export * from './
|
|
24
|
-
export {
|
|
21
|
+
export * from './application/LegendStudioEvent.js';
|
|
22
|
+
export {
|
|
23
|
+
generateEditorRoute,
|
|
24
|
+
generateReviewRoute,
|
|
25
|
+
} from './application/LegendStudioNavigation.js';
|
|
26
|
+
export { useLegendStudioApplicationStore } from './components/LegendStudioBaseStoreProvider.js';
|
|
27
|
+
export type { LegendStudioApplicationStore } from './stores/LegendStudioBaseStore.js';
|
|
25
28
|
|
|
26
29
|
// stores
|
|
27
30
|
export * from './stores/LegendStudioApplicationPlugin.js';
|
|
@@ -55,8 +58,8 @@ export * from './stores/shared/modifier/DSL_Generation_GraphModifierHelper.js';
|
|
|
55
58
|
export * from './stores/shared/modifier/DSL_Service_GraphModifierHelper.js';
|
|
56
59
|
|
|
57
60
|
// components
|
|
61
|
+
export { queryClass } from './components/editor/edit-panel/uml-editor/ClassQueryBuilder.js';
|
|
58
62
|
export * from './components/editor/EditorStoreProvider.js';
|
|
59
|
-
export * from './stores/LegendStudioRouter.js';
|
|
60
63
|
export { ActivityBarMenu } from './components/editor/ActivityBar.js';
|
|
61
64
|
export * from './components/shared/ProjectSelectorUtils.js';
|
|
62
65
|
export * from './components/shared/WorkspaceSelectorUtils.js';
|
|
@@ -93,6 +96,7 @@ export { getElementIcon } from './components/shared/ElementIconUtils.js';
|
|
|
93
96
|
*/
|
|
94
97
|
|
|
95
98
|
export * from './stores/DSL_Generation_LegendStudioApplicationPlugin_Extension.js';
|
|
99
|
+
export * from './stores/STO_ProjectOverview_LegendStudioApplicationPlugin_Extension.js';
|
|
96
100
|
export * from './stores/STO_Relational_LegendStudioApplicationPlugin_Extension.js';
|
|
97
101
|
|
|
98
102
|
export { MINIMUM_SERVICE_OWNERS } from './stores/editor-state/element-editor-state/service/ServiceEditorState.js';
|