@finos/legend-application-studio 22.5.0 → 23.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/LegendStudio.d.ts.map +1 -1
- package/lib/application/LegendStudio.js +8 -5
- package/lib/application/LegendStudio.js.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.d.ts +4 -0
- package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.js +7 -1
- package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
- package/lib/application/LegendStudioApplicationNavigationContext.d.ts.map +1 -0
- package/lib/application/LegendStudioApplicationNavigationContext.js.map +1 -0
- package/lib/application/LegendStudioCommand.d.ts.map +1 -0
- package/lib/application/LegendStudioCommand.js.map +1 -0
- package/lib/application/LegendStudioDocumentation.d.ts.map +1 -0
- package/lib/application/LegendStudioDocumentation.js.map +1 -0
- package/lib/{stores/LegendStudioAppEvent.d.ts → application/LegendStudioEvent.d.ts} +1 -1
- package/lib/application/LegendStudioEvent.d.ts.map +1 -0
- package/lib/{stores/LegendStudioAppEvent.js → application/LegendStudioEvent.js} +1 -1
- package/lib/application/LegendStudioEvent.js.map +1 -0
- package/lib/{stores/LegendStudioEventService.d.ts → application/LegendStudioEventHelper.d.ts} +3 -6
- package/lib/application/LegendStudioEventHelper.d.ts.map +1 -0
- package/lib/{stores/LegendStudioEventService.js → application/LegendStudioEventHelper.js} +4 -11
- package/lib/application/LegendStudioEventHelper.js.map +1 -0
- package/lib/{stores/LegendStudioRouter.d.ts → application/LegendStudioNavigation.d.ts} +24 -24
- package/lib/application/LegendStudioNavigation.d.ts.map +1 -0
- package/lib/{stores/LegendStudioRouter.js → application/LegendStudioNavigation.js} +28 -28
- package/lib/application/LegendStudioNavigation.js.map +1 -0
- package/lib/{stores/LegendStudioStorage.d.ts → application/LegendStudioSetting.d.ts} +4 -2
- package/lib/application/LegendStudioSetting.d.ts.map +1 -0
- package/lib/application/LegendStudioSetting.js +29 -0
- package/lib/application/LegendStudioSetting.js.map +1 -0
- package/lib/{stores/LegendStudioTelemetry.d.ts → application/LegendStudioTelemetryHelper.d.ts} +8 -8
- package/lib/application/LegendStudioTelemetryHelper.d.ts.map +1 -0
- package/lib/application/LegendStudioTelemetryHelper.js +37 -0
- package/lib/application/LegendStudioTelemetryHelper.js.map +1 -0
- package/lib/components/Core_LegendStudioApplicationPlugin.d.ts +2 -1
- package/lib/components/Core_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/Core_LegendStudioApplicationPlugin.js +11 -6
- package/lib/components/Core_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/EditorComponentTestUtils.js +4 -5
- package/lib/components/EditorComponentTestUtils.js.map +1 -1
- package/lib/components/EmbeddedQueryBuilder.js +1 -1
- package/lib/components/EmbeddedQueryBuilder.js.map +1 -1
- package/lib/components/LegendStudioAppInfo.d.ts.map +1 -1
- package/lib/components/LegendStudioAppInfo.js +0 -1
- package/lib/components/LegendStudioAppInfo.js.map +1 -1
- package/lib/components/LegendStudioApplication.d.ts +0 -2
- package/lib/components/LegendStudioApplication.d.ts.map +1 -1
- package/lib/components/LegendStudioApplication.js +8 -8
- package/lib/components/LegendStudioApplication.js.map +1 -1
- package/lib/components/editor/ActivityBar.d.ts.map +1 -1
- package/lib/components/editor/ActivityBar.js +7 -2
- package/lib/components/editor/ActivityBar.js.map +1 -1
- package/lib/components/editor/Editor.d.ts.map +1 -1
- package/lib/components/editor/Editor.js +6 -2
- package/lib/components/editor/Editor.js.map +1 -1
- package/lib/components/editor/EditorStoreProvider.d.ts.map +1 -1
- package/lib/components/editor/EditorStoreProvider.js +1 -3
- package/lib/components/editor/EditorStoreProvider.js.map +1 -1
- package/lib/components/editor/StatusBar.d.ts.map +1 -1
- package/lib/components/editor/StatusBar.js +5 -8
- package/lib/components/editor/StatusBar.js.map +1 -1
- package/lib/components/editor/aux-panel/DevTool.js +2 -2
- package/lib/components/editor/aux-panel/DevTool.js.map +1 -1
- package/lib/components/editor/aux-panel/Problems.d.ts.map +1 -1
- package/lib/components/editor/aux-panel/Problems.js +4 -10
- package/lib/components/editor/aux-panel/Problems.js.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.js +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.js.map +1 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.js +1 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.js.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.js +3 -3
- package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js +2 -2
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.js +8 -7
- package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.js +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.js.map +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.js +3 -3
- package/lib/components/editor/edit-panel/RuntimeEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.js +1 -1
- package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js +1 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js +1 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js +1 -1
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +1 -3
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.js +3 -2
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js +1 -3
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +2 -2
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.js +2 -2
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
- package/{src/stores/LegendStudioStorage.ts → lib/components/editor/edit-panel/service-editor/BulkServiceRegistrationEditor.d.ts} +5 -5
- package/lib/components/editor/edit-panel/service-editor/BulkServiceRegistrationEditor.d.ts.map +1 -0
- package/lib/components/editor/edit-panel/service-editor/BulkServiceRegistrationEditor.js +98 -0
- package/lib/components/editor/edit-panel/service-editor/BulkServiceRegistrationEditor.js.map +1 -0
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js +2 -2
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js +2 -2
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +0 -2
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.js +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js +2 -2
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js +8 -8
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js +1 -3
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js +2 -2
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.js +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js +1 -1
- package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js +1 -1
- package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.js +4 -0
- package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +18 -10
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.js +4 -3
- package/lib/components/editor/side-bar/LocalChanges.js.map +1 -1
- package/lib/components/editor/side-bar/ProjectDependantsEditor.js +1 -1
- package/lib/components/editor/side-bar/ProjectDependantsEditor.js.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.js +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
- package/lib/components/editor/side-bar/RegisterService.d.ts +8 -0
- package/lib/components/editor/side-bar/RegisterService.d.ts.map +1 -0
- package/lib/components/editor/side-bar/RegisterService.js +35 -0
- package/lib/components/editor/side-bar/RegisterService.js.map +1 -0
- package/lib/components/editor/side-bar/SideBar.d.ts.map +1 -1
- package/lib/components/editor/side-bar/SideBar.js +3 -0
- package/lib/components/editor/side-bar/SideBar.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.js +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.js +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.js.map +1 -1
- package/lib/components/project-viewer/ProjectViewer.d.ts.map +1 -1
- package/lib/components/project-viewer/ProjectViewer.js +7 -4
- package/lib/components/project-viewer/ProjectViewer.js.map +1 -1
- package/lib/components/shared/ProjectSelectorUtils.js +1 -1
- package/lib/components/shared/ProjectSelectorUtils.js.map +1 -1
- package/lib/components/workspace-review/WorkspaceReview.js +1 -1
- package/lib/components/workspace-review/WorkspaceReview.js.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.js +2 -2
- package/lib/components/workspace-setup/CreateProjectModal.js.map +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.js +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.js +6 -6
- package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +6 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/package.json +4 -4
- package/lib/stores/{LegendStudioCodeSnippets.d.ts → Core_CodeSnippets.d.ts} +1 -1
- package/lib/stores/Core_CodeSnippets.d.ts.map +1 -0
- package/lib/stores/{LegendStudioCodeSnippets.js → Core_CodeSnippets.js} +1 -1
- package/lib/stores/Core_CodeSnippets.js.map +1 -0
- package/lib/stores/DependencyProjectViewerHelper.js +1 -1
- package/lib/stores/DependencyProjectViewerHelper.js.map +1 -1
- package/lib/stores/EditorConfig.d.ts +2 -1
- package/lib/stores/EditorConfig.d.ts.map +1 -1
- package/lib/stores/EditorConfig.js +1 -0
- package/lib/stores/EditorConfig.js.map +1 -1
- package/lib/stores/EditorGraphState.d.ts +10 -71
- package/lib/stores/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.js +46 -540
- package/lib/stores/EditorGraphState.js.map +1 -1
- package/lib/stores/EditorSDLCState.js +1 -1
- package/lib/stores/EditorSDLCState.js.map +1 -1
- package/lib/stores/EditorStore.d.ts +13 -16
- package/lib/stores/EditorStore.d.ts.map +1 -1
- package/lib/stores/EditorStore.js +76 -215
- package/lib/stores/EditorStore.js.map +1 -1
- package/lib/stores/EditorStoreTestUtils.d.ts.map +1 -1
- package/lib/stores/EditorStoreTestUtils.js +1 -2
- package/lib/stores/EditorStoreTestUtils.js.map +1 -1
- package/lib/stores/EditorTabManagerState.d.ts +2 -1
- package/lib/stores/EditorTabManagerState.d.ts.map +1 -1
- package/lib/stores/EditorTabManagerState.js +63 -19
- package/lib/stores/EditorTabManagerState.js.map +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.d.ts +0 -1
- package/lib/stores/EmbeddedQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.js +10 -9
- package/lib/stores/EmbeddedQueryBuilderState.js.map +1 -1
- package/lib/stores/ExplorerTreeState.d.ts.map +1 -1
- package/lib/stores/ExplorerTreeState.js +2 -2
- package/lib/stores/ExplorerTreeState.js.map +1 -1
- package/lib/stores/GraphEditFormModeState.d.ts +81 -0
- package/lib/stores/GraphEditFormModeState.d.ts.map +1 -0
- package/lib/stores/GraphEditFormModeState.js +370 -0
- package/lib/stores/GraphEditFormModeState.js.map +1 -0
- package/lib/stores/GraphEditGrammarModeState.d.ts +65 -0
- package/lib/stores/GraphEditGrammarModeState.d.ts.map +1 -0
- package/lib/stores/GraphEditGrammarModeState.js +315 -0
- package/lib/stores/GraphEditGrammarModeState.js.map +1 -0
- package/lib/stores/GraphEditorMode.d.ts +51 -0
- package/lib/stores/GraphEditorMode.d.ts.map +1 -0
- package/lib/stores/GraphEditorMode.js +35 -0
- package/lib/stores/GraphEditorMode.js.map +1 -0
- package/lib/stores/LegendStudioApplicationPlugin.d.ts +12 -5
- package/lib/stores/LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendStudioBaseStore.js +25 -9
- package/lib/stores/LegendStudioBaseStore.js.map +1 -1
- package/lib/stores/editor/NewElementState.d.ts +2 -2
- package/lib/stores/editor/NewElementState.d.ts.map +1 -1
- package/lib/stores/editor/NewElementState.js +19 -10
- package/lib/stores/editor/NewElementState.js.map +1 -1
- package/lib/stores/editor/StandardEditorMode.js +1 -1
- package/lib/stores/editor/StandardEditorMode.js.map +1 -1
- package/lib/stores/editor-state/ExternalFormatState.js +1 -1
- package/lib/stores/editor-state/ExternalFormatState.js.map +1 -1
- package/lib/stores/editor-state/FileGenerationState.js +1 -1
- package/lib/stores/editor-state/FileGenerationState.js.map +1 -1
- package/lib/stores/editor-state/GrammarTextEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/GrammarTextEditorState.js +2 -2
- package/lib/stores/editor-state/GrammarTextEditorState.js.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.d.ts.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.js +2 -2
- package/lib/stores/editor-state/GraphGenerationState.js.map +1 -1
- package/lib/stores/editor-state/ModelImporterState.js +1 -1
- package/lib/stores/editor-state/ModelImporterState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementExternalFormatGenerationState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementExternalFormatGenerationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.js +6 -3
- package/lib/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.d.ts +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js +8 -15
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js +6 -11
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js +7 -14
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js +3 -3
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
- package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js +1 -1
- package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js.map +1 -1
- package/lib/stores/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js +1 -1
- package/lib/stores/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js.map +1 -1
- package/lib/stores/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.js +1 -1
- package/lib/stores/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.js.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerEditorMode.js +1 -1
- package/lib/stores/project-viewer/ProjectViewerEditorMode.js.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js +9 -15
- package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
- package/lib/stores/sidebar-state/BulkServiceRegistrationState.d.ts +51 -0
- package/lib/stores/sidebar-state/BulkServiceRegistrationState.d.ts.map +1 -0
- package/lib/stores/sidebar-state/BulkServiceRegistrationState.js +237 -0
- package/lib/stores/sidebar-state/BulkServiceRegistrationState.js.map +1 -0
- package/lib/stores/sidebar-state/LocalChangesState.d.ts +6 -3
- package/lib/stores/sidebar-state/LocalChangesState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.js +45 -12
- package/lib/stores/sidebar-state/LocalChangesState.js.map +1 -1
- package/lib/stores/sidebar-state/ProjectOverviewState.js +2 -2
- package/lib/stores/sidebar-state/ProjectOverviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkflowManagerState.js +1 -1
- package/lib/stores/sidebar-state/WorkflowManagerState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.js +2 -2
- package/lib/stores/sidebar-state/WorkspaceReviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceSyncState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceSyncState.js +2 -2
- package/lib/stores/sidebar-state/WorkspaceSyncState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js +2 -2
- package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js.map +1 -1
- package/lib/stores/workspace-review/WorkspaceReviewStore.js +1 -1
- package/lib/stores/workspace-review/WorkspaceReviewStore.js.map +1 -1
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js +2 -2
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js.map +1 -1
- package/package.json +13 -13
- package/src/application/LegendStudio.tsx +8 -7
- package/src/application/LegendStudioApplicationConfig.ts +7 -0
- package/src/{stores/LegendStudioEventService.ts → application/LegendStudioEventHelper.ts} +3 -13
- package/src/{stores/LegendStudioRouter.ts → application/LegendStudioNavigation.ts} +40 -39
- package/{lib/stores/LegendStudioStorage.js → src/application/LegendStudioSetting.ts} +16 -6
- package/src/{stores/LegendStudioTelemetry.ts → application/LegendStudioTelemetryHelper.ts} +14 -26
- package/src/components/Core_LegendStudioApplicationPlugin.tsx +14 -5
- package/src/components/EditorComponentTestUtils.tsx +8 -14
- package/src/components/EmbeddedQueryBuilder.tsx +1 -1
- package/src/components/LegendStudioAppInfo.tsx +0 -1
- package/src/components/LegendStudioApplication.tsx +24 -21
- package/src/components/editor/ActivityBar.tsx +7 -1
- package/src/components/editor/Editor.tsx +10 -6
- package/src/components/editor/EditorStoreProvider.tsx +1 -8
- package/src/components/editor/StatusBar.tsx +10 -9
- package/src/components/editor/aux-panel/DevTool.tsx +3 -3
- package/src/components/editor/aux-panel/Problems.tsx +5 -10
- package/src/components/editor/command-center/ProjectSearchCommand.tsx +1 -4
- package/src/components/editor/edit-panel/FileGenerationViewer.tsx +1 -1
- package/src/components/editor/edit-panel/FunctionEditor.tsx +3 -3
- package/src/components/editor/edit-panel/GenerationSpecificationEditor.tsx +2 -2
- package/src/components/editor/edit-panel/GrammarTextEditor.tsx +13 -8
- package/src/components/editor/edit-panel/ModelImporter.tsx +1 -1
- package/src/components/editor/edit-panel/RuntimeEditor.tsx +3 -3
- package/src/components/editor/edit-panel/connection-editor/ConnectionEditor.tsx +1 -1
- package/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx +1 -1
- package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +1 -1
- package/src/components/editor/edit-panel/data-editor/EmbeddedDataEditor.tsx +1 -1
- package/src/components/editor/edit-panel/diff-editor/EntityDiffView.tsx +1 -1
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +0 -1
- package/src/components/editor/edit-panel/mapping-editor/MappingEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +1 -4
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.tsx +3 -2
- package/src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +1 -4
- package/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.tsx +1 -1
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +3 -3
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.tsx +2 -2
- package/src/components/editor/edit-panel/service-editor/BulkServiceRegistrationEditor.tsx +283 -0
- package/src/components/editor/edit-panel/service-editor/ServiceEditor.tsx +2 -2
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +2 -2
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +0 -3
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.tsx +1 -1
- package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +2 -2
- package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +8 -8
- package/src/components/editor/edit-panel/uml-editor/ClassQueryBuilder.tsx +3 -4
- package/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx +2 -2
- package/src/components/editor/edit-panel/uml-editor/ProfileEditor.tsx +1 -1
- package/src/components/editor/edit-panel/uml-editor/StereotypeSelector.tsx +1 -1
- package/src/components/editor/edit-panel/uml-editor/TaggedValueEditor.tsx +1 -1
- package/src/components/editor/side-bar/CreateNewElementModal.tsx +4 -0
- package/src/components/editor/side-bar/Explorer.tsx +25 -15
- package/src/components/editor/side-bar/LocalChanges.tsx +4 -8
- package/src/components/editor/side-bar/ProjectDependantsEditor.tsx +1 -1
- package/src/components/editor/side-bar/ProjectOverview.tsx +1 -1
- package/src/components/editor/side-bar/RegisterService.tsx +139 -0
- package/src/components/editor/side-bar/SideBar.tsx +9 -0
- package/src/components/editor/side-bar/WorkspaceReview.tsx +1 -1
- package/src/components/editor/side-bar/WorkspaceUpdater.tsx +1 -1
- package/src/components/project-viewer/ProjectViewer.tsx +8 -5
- package/src/components/shared/ProjectSelectorUtils.tsx +1 -1
- package/src/components/workspace-review/WorkspaceReview.tsx +1 -1
- package/src/components/workspace-setup/CreateProjectModal.tsx +2 -2
- package/src/components/workspace-setup/CreateWorkspaceModal.tsx +1 -1
- package/src/components/workspace-setup/WorkspaceSetup.tsx +7 -7
- package/src/index.ts +9 -5
- package/src/stores/DependencyProjectViewerHelper.ts +1 -1
- package/src/stores/EditorConfig.ts +1 -0
- package/src/stores/EditorGraphState.ts +49 -798
- package/src/stores/EditorSDLCState.ts +1 -1
- package/src/stores/EditorStore.ts +104 -323
- package/src/stores/EditorStoreTestUtils.ts +0 -2
- package/src/stores/EditorTabManagerState.ts +90 -25
- package/src/stores/EmbeddedQueryBuilderState.ts +11 -11
- package/src/stores/ExplorerTreeState.ts +2 -4
- package/src/stores/GraphEditFormModeState.ts +605 -0
- package/src/stores/GraphEditGrammarModeState.ts +512 -0
- package/src/stores/GraphEditorMode.ts +77 -0
- package/src/stores/LegendStudioApplicationPlugin.ts +14 -4
- package/src/stores/LegendStudioBaseStore.ts +35 -11
- package/src/stores/editor/NewElementState.ts +36 -20
- package/src/stores/editor/StandardEditorMode.ts +1 -1
- package/src/stores/editor-state/ExternalFormatState.ts +1 -1
- package/src/stores/editor-state/FileGenerationState.ts +1 -1
- package/src/stores/editor-state/GrammarTextEditorState.ts +4 -5
- package/src/stores/editor-state/GraphGenerationState.ts +6 -2
- package/src/stores/editor-state/ModelImporterState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/ElementExternalFormatGenerationState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/ElementFileGenerationState.ts +5 -1
- package/src/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.ts +12 -5
- package/src/stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts +1 -3
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +12 -21
- package/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +6 -15
- package/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +7 -20
- package/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +3 -3
- package/src/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.ts +1 -1
- package/src/stores/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.ts +1 -1
- package/src/stores/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.ts +1 -1
- package/src/stores/project-viewer/ProjectViewerEditorMode.ts +1 -1
- package/src/stores/project-viewer/ProjectViewerStore.ts +14 -25
- package/src/stores/sidebar-state/BulkServiceRegistrationState.ts +370 -0
- package/src/stores/sidebar-state/LocalChangesState.ts +57 -16
- package/src/stores/sidebar-state/ProjectOverviewState.ts +2 -2
- package/src/stores/sidebar-state/WorkflowManagerState.ts +1 -1
- package/src/stores/sidebar-state/WorkspaceReviewState.ts +2 -2
- package/src/stores/sidebar-state/WorkspaceSyncState.ts +3 -2
- package/src/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.ts +2 -2
- package/src/stores/sidebar-state/WorkspaceUpdaterState.ts +1 -1
- package/src/stores/workspace-review/WorkspaceReviewStore.ts +1 -1
- package/src/stores/workspace-setup/WorkspaceSetupStore.ts +2 -2
- package/tsconfig.json +16 -11
- package/tsconfig.package.json +1 -2
- package/lib/stores/LegendStudioAppEvent.d.ts.map +0 -1
- package/lib/stores/LegendStudioAppEvent.js.map +0 -1
- package/lib/stores/LegendStudioApplicationNavigationContext.d.ts.map +0 -1
- package/lib/stores/LegendStudioApplicationNavigationContext.js.map +0 -1
- package/lib/stores/LegendStudioCodeSnippets.d.ts.map +0 -1
- package/lib/stores/LegendStudioCodeSnippets.js.map +0 -1
- package/lib/stores/LegendStudioCommand.d.ts.map +0 -1
- package/lib/stores/LegendStudioCommand.js.map +0 -1
- package/lib/stores/LegendStudioDocumentation.d.ts.map +0 -1
- package/lib/stores/LegendStudioDocumentation.js.map +0 -1
- package/lib/stores/LegendStudioEventService.d.ts.map +0 -1
- package/lib/stores/LegendStudioEventService.js.map +0 -1
- package/lib/stores/LegendStudioRouter.d.ts.map +0 -1
- package/lib/stores/LegendStudioRouter.js.map +0 -1
- package/lib/stores/LegendStudioStorage.d.ts.map +0 -1
- package/lib/stores/LegendStudioStorage.js.map +0 -1
- package/lib/stores/LegendStudioTelemetry.d.ts.map +0 -1
- package/lib/stores/LegendStudioTelemetry.js +0 -37
- package/lib/stores/LegendStudioTelemetry.js.map +0 -1
- /package/lib/{stores → application}/LegendStudioApplicationNavigationContext.d.ts +0 -0
- /package/lib/{stores → application}/LegendStudioApplicationNavigationContext.js +0 -0
- /package/lib/{stores → application}/LegendStudioCommand.d.ts +0 -0
- /package/lib/{stores → application}/LegendStudioCommand.js +0 -0
- /package/lib/{stores → application}/LegendStudioDocumentation.d.ts +0 -0
- /package/lib/{stores → application}/LegendStudioDocumentation.js +0 -0
- /package/src/{stores → application}/LegendStudioApplicationNavigationContext.ts +0 -0
- /package/src/{stores → application}/LegendStudioCommand.ts +0 -0
- /package/src/{stores → application}/LegendStudioDocumentation.ts +0 -0
- /package/src/{stores/LegendStudioAppEvent.ts → application/LegendStudioEvent.ts} +0 -0
- /package/src/stores/{LegendStudioCodeSnippets.ts → Core_CodeSnippets.ts} +0 -0
|
@@ -15,13 +15,48 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { TabManagerState } from '@finos/legend-application';
|
|
18
|
-
import {
|
|
19
|
-
|
|
18
|
+
import {
|
|
19
|
+
Association,
|
|
20
|
+
Class,
|
|
21
|
+
ConcreteFunctionDefinition,
|
|
22
|
+
Database,
|
|
23
|
+
DataElement,
|
|
24
|
+
Enumeration,
|
|
25
|
+
FileGenerationSpecification,
|
|
26
|
+
FlatData,
|
|
27
|
+
GenerationSpecification,
|
|
28
|
+
Mapping,
|
|
29
|
+
Measure,
|
|
30
|
+
PackageableConnection,
|
|
31
|
+
PackageableRuntime,
|
|
32
|
+
PrimitiveType,
|
|
33
|
+
Profile,
|
|
34
|
+
Service,
|
|
35
|
+
type PackageableElement,
|
|
36
|
+
} from '@finos/legend-graph';
|
|
37
|
+
import {
|
|
38
|
+
type Clazz,
|
|
39
|
+
guaranteeType,
|
|
40
|
+
isNonNullable,
|
|
41
|
+
UnsupportedOperationError,
|
|
42
|
+
} from '@finos/legend-shared';
|
|
20
43
|
import { makeObservable, action } from 'mobx';
|
|
21
44
|
import type { EditorState } from './editor-state/EditorState.js';
|
|
45
|
+
import { ClassEditorState } from './editor-state/element-editor-state/ClassEditorState.js';
|
|
46
|
+
import { PackageableConnectionEditorState } from './editor-state/element-editor-state/connection/ConnectionEditorState.js';
|
|
47
|
+
import { PackageableDataEditorState } from './editor-state/element-editor-state/data/DataEditorState.js';
|
|
22
48
|
import { ElementEditorState } from './editor-state/element-editor-state/ElementEditorState.js';
|
|
49
|
+
import { FileGenerationEditorState } from './editor-state/element-editor-state/FileGenerationEditorState.js';
|
|
50
|
+
import { FunctionEditorState } from './editor-state/element-editor-state/FunctionEditorState.js';
|
|
51
|
+
import { MappingEditorState } from './editor-state/element-editor-state/mapping/MappingEditorState.js';
|
|
52
|
+
import { PackageableRuntimeEditorState } from './editor-state/element-editor-state/RuntimeEditorState.js';
|
|
53
|
+
import { ServiceEditorState } from './editor-state/element-editor-state/service/ServiceEditorState.js';
|
|
54
|
+
import { UMLEditorState } from './editor-state/element-editor-state/UMLEditorState.js';
|
|
23
55
|
import { EntityDiffViewerState } from './editor-state/entity-diff-editor-state/EntityDiffEditorState.js';
|
|
56
|
+
import { GenerationSpecificationEditorState } from './editor-state/GenerationSpecificationEditorState.js';
|
|
57
|
+
import { UnsupportedElementEditorState } from './editor-state/UnsupportedElementEditorState.js';
|
|
24
58
|
import type { EditorStore } from './EditorStore.js';
|
|
59
|
+
import type { DSL_LegendStudioApplicationPlugin_Extension } from './LegendStudioApplicationPlugin.js';
|
|
25
60
|
|
|
26
61
|
export class EditorTabManagerState extends TabManagerState {
|
|
27
62
|
readonly editorStore: EditorStore;
|
|
@@ -33,7 +68,6 @@ export class EditorTabManagerState extends TabManagerState {
|
|
|
33
68
|
super();
|
|
34
69
|
|
|
35
70
|
makeObservable(this, {
|
|
36
|
-
openElementEditor: action,
|
|
37
71
|
refreshCurrentEntityDiffViewer: action,
|
|
38
72
|
recoverTabs: action,
|
|
39
73
|
});
|
|
@@ -53,29 +87,62 @@ export class EditorTabManagerState extends TabManagerState {
|
|
|
53
87
|
);
|
|
54
88
|
}
|
|
55
89
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
element
|
|
90
|
+
createElementEditorState(
|
|
91
|
+
element: PackageableElement,
|
|
92
|
+
): ElementEditorState | undefined {
|
|
93
|
+
if (element instanceof PrimitiveType) {
|
|
94
|
+
throw new UnsupportedOperationError(
|
|
95
|
+
`Can't create element state for primitive type`,
|
|
62
96
|
);
|
|
63
|
-
} else if (
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
97
|
+
} else if (element instanceof Class) {
|
|
98
|
+
return new ClassEditorState(this.editorStore, element);
|
|
99
|
+
} else if (
|
|
100
|
+
element instanceof Association ||
|
|
101
|
+
element instanceof Enumeration ||
|
|
102
|
+
element instanceof Profile
|
|
103
|
+
) {
|
|
104
|
+
return new UMLEditorState(this.editorStore, element);
|
|
105
|
+
} else if (element instanceof ConcreteFunctionDefinition) {
|
|
106
|
+
return new FunctionEditorState(this.editorStore, element);
|
|
107
|
+
} else if (
|
|
108
|
+
element instanceof Measure ||
|
|
109
|
+
element instanceof Database ||
|
|
110
|
+
element instanceof FlatData
|
|
111
|
+
) {
|
|
112
|
+
return new UnsupportedElementEditorState(this.editorStore, element);
|
|
113
|
+
} else if (element instanceof PackageableRuntime) {
|
|
114
|
+
return new PackageableRuntimeEditorState(this.editorStore, element);
|
|
115
|
+
} else if (element instanceof PackageableConnection) {
|
|
116
|
+
return new PackageableConnectionEditorState(this.editorStore, element);
|
|
117
|
+
} else if (element instanceof Mapping) {
|
|
118
|
+
return new MappingEditorState(this.editorStore, element);
|
|
119
|
+
} else if (element instanceof Service) {
|
|
120
|
+
return new ServiceEditorState(this.editorStore, element);
|
|
121
|
+
} else if (element instanceof GenerationSpecification) {
|
|
122
|
+
return new GenerationSpecificationEditorState(this.editorStore, element);
|
|
123
|
+
} else if (element instanceof FileGenerationSpecification) {
|
|
124
|
+
return new FileGenerationEditorState(this.editorStore, element);
|
|
125
|
+
} else if (element instanceof DataElement) {
|
|
126
|
+
return new PackageableDataEditorState(this.editorStore, element);
|
|
127
|
+
}
|
|
128
|
+
const extraElementEditorStateCreators = this.editorStore.pluginManager
|
|
129
|
+
.getApplicationPlugins()
|
|
130
|
+
.flatMap(
|
|
131
|
+
(plugin) =>
|
|
132
|
+
(
|
|
133
|
+
plugin as DSL_LegendStudioApplicationPlugin_Extension
|
|
134
|
+
).getExtraElementEditorStateCreators?.() ?? [],
|
|
67
135
|
);
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
this.openTab(newTab);
|
|
73
|
-
} else {
|
|
74
|
-
this.editorStore.applicationStore.notificationService.notifyWarning(
|
|
75
|
-
`Can't open editor for element '${element.path}'`,
|
|
76
|
-
);
|
|
136
|
+
for (const creator of extraElementEditorStateCreators) {
|
|
137
|
+
const elementEditorState = creator(this.editorStore, element);
|
|
138
|
+
if (elementEditorState) {
|
|
139
|
+
return elementEditorState;
|
|
77
140
|
}
|
|
78
141
|
}
|
|
142
|
+
throw new UnsupportedOperationError(
|
|
143
|
+
`Can't create editor state for element: no compatible editor state creator available from plugins`,
|
|
144
|
+
element,
|
|
145
|
+
);
|
|
79
146
|
}
|
|
80
147
|
|
|
81
148
|
refreshCurrentEntityDiffViewer(): void {
|
|
@@ -109,9 +176,7 @@ export class EditorTabManagerState extends TabManagerState {
|
|
|
109
176
|
editorPath,
|
|
110
177
|
);
|
|
111
178
|
if (correspondingElement) {
|
|
112
|
-
return this.
|
|
113
|
-
correspondingElement,
|
|
114
|
-
);
|
|
179
|
+
return this.createElementEditorState(correspondingElement);
|
|
115
180
|
}
|
|
116
181
|
return undefined;
|
|
117
182
|
})
|
|
@@ -16,11 +16,12 @@
|
|
|
16
16
|
|
|
17
17
|
import {
|
|
18
18
|
type QueryBuilderState,
|
|
19
|
-
|
|
19
|
+
QUERY_BUILDER_COMPONENT_ELEMENT_ID,
|
|
20
20
|
} from '@finos/legend-query-builder';
|
|
21
21
|
import type { GeneratorFn } from '@finos/legend-shared';
|
|
22
22
|
import { flow, flowResult, makeObservable, observable } from 'mobx';
|
|
23
|
-
import {
|
|
23
|
+
import { GRAPH_EDITOR_MODE } from './EditorConfig.js';
|
|
24
|
+
import { GraphCompilationOutcome } from './EditorGraphState.js';
|
|
24
25
|
import type { EditorStore } from './EditorStore.js';
|
|
25
26
|
|
|
26
27
|
type EmbeddedQueryBuilderActionConfiguration = {
|
|
@@ -32,7 +33,6 @@ type EmbeddedQueryBuilderConfiguration = {
|
|
|
32
33
|
setupQueryBuilderState: () => QueryBuilderState;
|
|
33
34
|
disableCompile?: boolean | undefined;
|
|
34
35
|
actionConfigs: EmbeddedQueryBuilderActionConfiguration[];
|
|
35
|
-
applicationContext: string;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
export class EmbeddedQueryBuilderState {
|
|
@@ -57,7 +57,7 @@ export class EmbeddedQueryBuilderState {
|
|
|
57
57
|
config: EmbeddedQueryBuilderConfiguration | undefined,
|
|
58
58
|
): GeneratorFn<void> {
|
|
59
59
|
if (config) {
|
|
60
|
-
if (
|
|
60
|
+
if (this.editorStore.graphEditorMode.mode !== GRAPH_EDITOR_MODE.FORM) {
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
63
|
if (!config.disableCompile) {
|
|
@@ -65,15 +65,15 @@ export class EmbeddedQueryBuilderState {
|
|
|
65
65
|
message: 'Compiling graph before building query...',
|
|
66
66
|
showLoading: true,
|
|
67
67
|
});
|
|
68
|
-
|
|
69
|
-
this.editorStore.
|
|
68
|
+
yield flowResult(
|
|
69
|
+
this.editorStore.graphEditorMode.globalCompile({
|
|
70
70
|
// we don't want to notify about compilation success since this is just a simple check
|
|
71
71
|
// in order to be able to open query builder
|
|
72
72
|
disableNotificationOnSuccess: true,
|
|
73
73
|
}),
|
|
74
|
-
)
|
|
75
|
-
switch (
|
|
76
|
-
case
|
|
74
|
+
);
|
|
75
|
+
switch (this.editorStore.graphState.mostRecentCompilationOutcome) {
|
|
76
|
+
case GraphCompilationOutcome.SKIPPED: {
|
|
77
77
|
this.editorStore.applicationStore.alertService.setBlockingAlert(
|
|
78
78
|
undefined,
|
|
79
79
|
);
|
|
@@ -82,7 +82,7 @@ export class EmbeddedQueryBuilderState {
|
|
|
82
82
|
);
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
|
-
case
|
|
85
|
+
case GraphCompilationOutcome.SUCCEEDED: {
|
|
86
86
|
this.editorStore.applicationStore.alertService.setBlockingAlert(
|
|
87
87
|
undefined,
|
|
88
88
|
);
|
|
@@ -103,7 +103,7 @@ export class EmbeddedQueryBuilderState {
|
|
|
103
103
|
this.queryBuilderState = config.setupQueryBuilderState();
|
|
104
104
|
this.actionConfigs = config.actionConfigs;
|
|
105
105
|
this.editorStore.applicationStore.layoutService.setBackdropContainerElementID(
|
|
106
|
-
|
|
106
|
+
QUERY_BUILDER_COMPONENT_ELEMENT_ID.BACKDROP_CONTAINER,
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
109
|
} else {
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
openNodes,
|
|
33
33
|
populatePackageTreeNodeChildren,
|
|
34
34
|
} from './shared/PackageTreeUtils.js';
|
|
35
|
-
import { LEGEND_STUDIO_APP_EVENT } from '
|
|
35
|
+
import { LEGEND_STUDIO_APP_EVENT } from '../application/LegendStudioEvent.js';
|
|
36
36
|
import type { PackageTreeNodeData } from './shared/TreeUtils.js';
|
|
37
37
|
import type { TreeData } from '@finos/legend-art';
|
|
38
38
|
import {
|
|
@@ -449,9 +449,7 @@ export class ExplorerTreeState {
|
|
|
449
449
|
): void => {
|
|
450
450
|
// Open non-package element
|
|
451
451
|
if (!(node.packageableElement instanceof Package)) {
|
|
452
|
-
this.editorStore.
|
|
453
|
-
node.packageableElement,
|
|
454
|
-
);
|
|
452
|
+
this.editorStore.graphEditorMode.openElement(node.packageableElement);
|
|
455
453
|
}
|
|
456
454
|
// Expand package element
|
|
457
455
|
if (node.childrenIds?.length) {
|