@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
|
@@ -14,17 +14,27 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { TabManagerState } from '@finos/legend-application';
|
|
17
|
-
import {
|
|
18
|
-
import { guaranteeType, isNonNullable } from '@finos/legend-shared';
|
|
17
|
+
import { Association, Class, ConcreteFunctionDefinition, Database, DataElement, Enumeration, FileGenerationSpecification, FlatData, GenerationSpecification, Mapping, Measure, PackageableConnection, PackageableRuntime, PrimitiveType, Profile, Service, } from '@finos/legend-graph';
|
|
18
|
+
import { guaranteeType, isNonNullable, UnsupportedOperationError, } from '@finos/legend-shared';
|
|
19
19
|
import { makeObservable, action } from 'mobx';
|
|
20
|
+
import { ClassEditorState } from './editor-state/element-editor-state/ClassEditorState.js';
|
|
21
|
+
import { PackageableConnectionEditorState } from './editor-state/element-editor-state/connection/ConnectionEditorState.js';
|
|
22
|
+
import { PackageableDataEditorState } from './editor-state/element-editor-state/data/DataEditorState.js';
|
|
20
23
|
import { ElementEditorState } from './editor-state/element-editor-state/ElementEditorState.js';
|
|
24
|
+
import { FileGenerationEditorState } from './editor-state/element-editor-state/FileGenerationEditorState.js';
|
|
25
|
+
import { FunctionEditorState } from './editor-state/element-editor-state/FunctionEditorState.js';
|
|
26
|
+
import { MappingEditorState } from './editor-state/element-editor-state/mapping/MappingEditorState.js';
|
|
27
|
+
import { PackageableRuntimeEditorState } from './editor-state/element-editor-state/RuntimeEditorState.js';
|
|
28
|
+
import { ServiceEditorState } from './editor-state/element-editor-state/service/ServiceEditorState.js';
|
|
29
|
+
import { UMLEditorState } from './editor-state/element-editor-state/UMLEditorState.js';
|
|
21
30
|
import { EntityDiffViewerState } from './editor-state/entity-diff-editor-state/EntityDiffEditorState.js';
|
|
31
|
+
import { GenerationSpecificationEditorState } from './editor-state/GenerationSpecificationEditorState.js';
|
|
32
|
+
import { UnsupportedElementEditorState } from './editor-state/UnsupportedElementEditorState.js';
|
|
22
33
|
export class EditorTabManagerState extends TabManagerState {
|
|
23
34
|
editorStore;
|
|
24
35
|
constructor(editorStore) {
|
|
25
36
|
super();
|
|
26
37
|
makeObservable(this, {
|
|
27
|
-
openElementEditor: action,
|
|
28
38
|
refreshCurrentEntityDiffViewer: action,
|
|
29
39
|
recoverTabs: action,
|
|
30
40
|
});
|
|
@@ -36,23 +46,57 @@ export class EditorTabManagerState extends TabManagerState {
|
|
|
36
46
|
getCurrentEditorState(clazz) {
|
|
37
47
|
return guaranteeType(this.currentTab, clazz, `Current editor state is not of the specified type (this is likely caused by calling this method at the wrong place)`);
|
|
38
48
|
}
|
|
39
|
-
|
|
40
|
-
if (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
createElementEditorState(element) {
|
|
50
|
+
if (element instanceof PrimitiveType) {
|
|
51
|
+
throw new UnsupportedOperationError(`Can't create element state for primitive type`);
|
|
52
|
+
}
|
|
53
|
+
else if (element instanceof Class) {
|
|
54
|
+
return new ClassEditorState(this.editorStore, element);
|
|
55
|
+
}
|
|
56
|
+
else if (element instanceof Association ||
|
|
57
|
+
element instanceof Enumeration ||
|
|
58
|
+
element instanceof Profile) {
|
|
59
|
+
return new UMLEditorState(this.editorStore, element);
|
|
60
|
+
}
|
|
61
|
+
else if (element instanceof ConcreteFunctionDefinition) {
|
|
62
|
+
return new FunctionEditorState(this.editorStore, element);
|
|
63
|
+
}
|
|
64
|
+
else if (element instanceof Measure ||
|
|
65
|
+
element instanceof Database ||
|
|
66
|
+
element instanceof FlatData) {
|
|
67
|
+
return new UnsupportedElementEditorState(this.editorStore, element);
|
|
68
|
+
}
|
|
69
|
+
else if (element instanceof PackageableRuntime) {
|
|
70
|
+
return new PackageableRuntimeEditorState(this.editorStore, element);
|
|
71
|
+
}
|
|
72
|
+
else if (element instanceof PackageableConnection) {
|
|
73
|
+
return new PackageableConnectionEditorState(this.editorStore, element);
|
|
74
|
+
}
|
|
75
|
+
else if (element instanceof Mapping) {
|
|
76
|
+
return new MappingEditorState(this.editorStore, element);
|
|
77
|
+
}
|
|
78
|
+
else if (element instanceof Service) {
|
|
79
|
+
return new ServiceEditorState(this.editorStore, element);
|
|
80
|
+
}
|
|
81
|
+
else if (element instanceof GenerationSpecification) {
|
|
82
|
+
return new GenerationSpecificationEditorState(this.editorStore, element);
|
|
83
|
+
}
|
|
84
|
+
else if (element instanceof FileGenerationSpecification) {
|
|
85
|
+
return new FileGenerationEditorState(this.editorStore, element);
|
|
86
|
+
}
|
|
87
|
+
else if (element instanceof DataElement) {
|
|
88
|
+
return new PackageableDataEditorState(this.editorStore, element);
|
|
89
|
+
}
|
|
90
|
+
const extraElementEditorStateCreators = this.editorStore.pluginManager
|
|
91
|
+
.getApplicationPlugins()
|
|
92
|
+
.flatMap((plugin) => plugin.getExtraElementEditorStateCreators?.() ?? []);
|
|
93
|
+
for (const creator of extraElementEditorStateCreators) {
|
|
94
|
+
const elementEditorState = creator(this.editorStore, element);
|
|
95
|
+
if (elementEditorState) {
|
|
96
|
+
return elementEditorState;
|
|
54
97
|
}
|
|
55
98
|
}
|
|
99
|
+
throw new UnsupportedOperationError(`Can't create editor state for element: no compatible editor state creator available from plugins`, element);
|
|
56
100
|
}
|
|
57
101
|
refreshCurrentEntityDiffViewer() {
|
|
58
102
|
if (this.currentTab instanceof EntityDiffViewerState) {
|
|
@@ -77,7 +121,7 @@ export class EditorTabManagerState extends TabManagerState {
|
|
|
77
121
|
.map((editorPath) => {
|
|
78
122
|
const correspondingElement = this.editorStore.graphManagerState.graph.getNullableElement(editorPath);
|
|
79
123
|
if (correspondingElement) {
|
|
80
|
-
return this.
|
|
124
|
+
return this.createElementEditorState(correspondingElement);
|
|
81
125
|
}
|
|
82
126
|
return undefined;
|
|
83
127
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorTabManagerState.js","sourceRoot":"","sources":["../../src/stores/EditorTabManagerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"EditorTabManagerState.js","sourceRoot":"","sources":["../../src/stores/EditorTabManagerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EACL,WAAW,EACX,KAAK,EACL,0BAA0B,EAC1B,QAAQ,EACR,WAAW,EACX,WAAW,EACX,2BAA2B,EAC3B,QAAQ,EACR,uBAAuB,EACvB,OAAO,EACP,OAAO,EACP,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,OAAO,EACP,OAAO,GAER,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,aAAa,E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,CAAC;aAC5D;YACD,OAAO,SAAS,CAAC;QACnB,CAAC,CAAC;aACD,MAAM,CAAC,aAAa,CAAC,CAAC;QACzB,IAAI,CAAC,aAAa,CAChB,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,qBAAqB,CAAC,CAC5D,CAAC;IACJ,CAAC,CAAC;IAEF,cAAc,GAAG,CACf,GAA4B,EAC5B,cAAkC,EACT,EAAE;QAC3B,IAAI,GAAG,EAAE;YACP,OAAO,GAAG,CAAC;SACZ;aAAM;YACL,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CACnB,CAAC,WAAW,EAAE,EAAE,CACd,WAAW,YAAY,kBAAkB;gBACzC,WAAW,CAAC,WAAW,KAAK,cAAc,CAC7C,CAAC;SACH;IACH,CAAC,CAAC;CACH"}
|
|
@@ -25,7 +25,6 @@ type EmbeddedQueryBuilderConfiguration = {
|
|
|
25
25
|
setupQueryBuilderState: () => QueryBuilderState;
|
|
26
26
|
disableCompile?: boolean | undefined;
|
|
27
27
|
actionConfigs: EmbeddedQueryBuilderActionConfiguration[];
|
|
28
|
-
applicationContext: string;
|
|
29
28
|
};
|
|
30
29
|
export declare class EmbeddedQueryBuilderState {
|
|
31
30
|
editorStore: EditorStore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbeddedQueryBuilderState.d.ts","sourceRoot":"","sources":["../../src/stores/EmbeddedQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"EmbeddedQueryBuilderState.d.ts","sourceRoot":"","sources":["../../src/stores/EmbeddedQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,KAAK,uCAAuC,GAAG;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,KAAK,CAAC,SAAS,CAAC;CACrE,CAAC;AAEF,KAAK,iCAAiC,GAAG;IACvC,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;IAChD,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,aAAa,EAAE,uCAAuC,EAAE,CAAC;CAC1D,CAAC;AAEF,qBAAa,yBAAyB;IACpC,WAAW,EAAE,WAAW,CAAC;IACzB,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAClD,aAAa,EAAE,uCAAuC,EAAE,CAAM;gBAElD,WAAW,EAAE,WAAW;IAUpC;;OAEG;IACF,oCAAoC,CACnC,MAAM,EAAE,iCAAiC,GAAG,SAAS,GACpD,WAAW,CAAC,IAAI,CAAC;CA2DrB"}
|
|
@@ -13,9 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { QUERY_BUILDER_COMPONENT_ELEMENT_ID, } from '@finos/legend-query-builder';
|
|
17
17
|
import { flow, flowResult, makeObservable, observable } from 'mobx';
|
|
18
|
-
import {
|
|
18
|
+
import { GRAPH_EDITOR_MODE } from './EditorConfig.js';
|
|
19
|
+
import { GraphCompilationOutcome } from './EditorGraphState.js';
|
|
19
20
|
export class EmbeddedQueryBuilderState {
|
|
20
21
|
editorStore;
|
|
21
22
|
queryBuilderState;
|
|
@@ -33,7 +34,7 @@ export class EmbeddedQueryBuilderState {
|
|
|
33
34
|
*/
|
|
34
35
|
*setEmbeddedQueryBuilderConfiguration(config) {
|
|
35
36
|
if (config) {
|
|
36
|
-
if (
|
|
37
|
+
if (this.editorStore.graphEditorMode.mode !== GRAPH_EDITOR_MODE.FORM) {
|
|
37
38
|
return;
|
|
38
39
|
}
|
|
39
40
|
if (!config.disableCompile) {
|
|
@@ -41,18 +42,18 @@ export class EmbeddedQueryBuilderState {
|
|
|
41
42
|
message: 'Compiling graph before building query...',
|
|
42
43
|
showLoading: true,
|
|
43
44
|
});
|
|
44
|
-
|
|
45
|
+
yield flowResult(this.editorStore.graphEditorMode.globalCompile({
|
|
45
46
|
// we don't want to notify about compilation success since this is just a simple check
|
|
46
47
|
// in order to be able to open query builder
|
|
47
48
|
disableNotificationOnSuccess: true,
|
|
48
|
-
}))
|
|
49
|
-
switch (
|
|
50
|
-
case
|
|
49
|
+
}));
|
|
50
|
+
switch (this.editorStore.graphState.mostRecentCompilationOutcome) {
|
|
51
|
+
case GraphCompilationOutcome.SKIPPED: {
|
|
51
52
|
this.editorStore.applicationStore.alertService.setBlockingAlert(undefined);
|
|
52
53
|
this.editorStore.applicationStore.notificationService.notifyWarning(`Can't open query builder: Can't compile at this time, please try again later`);
|
|
53
54
|
return;
|
|
54
55
|
}
|
|
55
|
-
case
|
|
56
|
+
case GraphCompilationOutcome.SUCCEEDED: {
|
|
56
57
|
this.editorStore.applicationStore.alertService.setBlockingAlert(undefined);
|
|
57
58
|
break;
|
|
58
59
|
}
|
|
@@ -66,7 +67,7 @@ export class EmbeddedQueryBuilderState {
|
|
|
66
67
|
if (!this.editorStore.graphState.error) {
|
|
67
68
|
this.queryBuilderState = config.setupQueryBuilderState();
|
|
68
69
|
this.actionConfigs = config.actionConfigs;
|
|
69
|
-
this.editorStore.applicationStore.layoutService.setBackdropContainerElementID(
|
|
70
|
+
this.editorStore.applicationStore.layoutService.setBackdropContainerElementID(QUERY_BUILDER_COMPONENT_ELEMENT_ID.BACKDROP_CONTAINER);
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbeddedQueryBuilderState.js","sourceRoot":"","sources":["../../src/stores/EmbeddedQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,
|
|
1
|
+
{"version":3,"file":"EmbeddedQueryBuilderState.js","sourceRoot":"","sources":["../../src/stores/EmbeddedQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,kCAAkC,GACnC,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAchE,MAAM,OAAO,yBAAyB;IACpC,WAAW,CAAc;IACzB,iBAAiB,CAAiC;IAClD,aAAa,GAA8C,EAAE,CAAC;IAE9D,YAAY,WAAwB;QAClC,cAAc,CAAC,IAAI,EAAE;YACnB,iBAAiB,EAAE,UAAU;YAC7B,aAAa,EAAE,UAAU;YACzB,oCAAoC,EAAE,IAAI;SAC3C,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED;;OAEG;IACH,CAAC,oCAAoC,CACnC,MAAqD;QAErD,IAAI,MAAM,EAAE;YACV,IAAI,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,IAAI,KAAK,iBAAiB,CAAC,IAAI,EAAE;gBACpE,OAAO;aACR;YACD,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE;gBAC1B,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,YAAY,CAAC,gBAAgB,CAAC;oBAC9D,OAAO,EAAE,0CAA0C;oBACnD,WAAW,EAAE,IAAI;iBAClB,CAAC,CAAC;gBACH,MAAM,UAAU,CACd,IAAI,CAAC,WAAW,CAAC,eA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AG,IAAI;IAyD3C,yBAAyB,IAAI,QAAQ,CAAC,sBAAsB,CAAC;CAM9D"}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { action, observable, makeObservable } from 'mobx';
|
|
17
17
|
import { LogEvent, IllegalStateError, isNonNullable, UnsupportedOperationError, guaranteeNonNullable, ActionState, } from '@finos/legend-shared';
|
|
18
18
|
import { getDependenciesPackableElementTreeData, getPackableElementTreeData, openNode, openNodeById, openNodes, populatePackageTreeNodeChildren, } from './shared/PackageTreeUtils.js';
|
|
19
|
-
import { LEGEND_STUDIO_APP_EVENT } from '
|
|
19
|
+
import { LEGEND_STUDIO_APP_EVENT } from '../application/LegendStudioEvent.js';
|
|
20
20
|
import { getFileSystemTreeData, } from './shared/FileSystemTreeUtils.js';
|
|
21
21
|
import { ROOT_PACKAGE_NAME, Package, Unit, PrimitiveType, getElementRootPackage, isDependencyElement, } from '@finos/legend-graph';
|
|
22
22
|
import { APPLICATION_EVENT } from '@finos/legend-application';
|
|
@@ -261,7 +261,7 @@ export class ExplorerTreeState {
|
|
|
261
261
|
onTreeNodeSelect = (node, treeData, rootPackageName = ROOT_PACKAGE_NAME.MAIN) => {
|
|
262
262
|
// Open non-package element
|
|
263
263
|
if (!(node.packageableElement instanceof Package)) {
|
|
264
|
-
this.editorStore.
|
|
264
|
+
this.editorStore.graphEditorMode.openElement(node.packageableElement);
|
|
265
265
|
}
|
|
266
266
|
// Expand package element
|
|
267
267
|
if (node.childrenIds?.length) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExplorerTreeState.js","sourceRoot":"","sources":["../../src/stores/ExplorerTreeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EACL,QAAQ,EACR,iBAAiB,EACjB,aAAa,EACb,yBAAyB,EACzB,oBAAoB,EACpB,WAAW,GACZ,M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iB,CAAC,MAAM;YAC5C,IAAI,CAAC,cAAc,EACnB;YACA,MAAM,WAAW,GAAG,QAAQ,CAC1B,IAAI,CAAC,WAAW,EAChB,OAAO,EACP,IAAI,CAAC,cAAc,CACpB,CAAC;YACF,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;YAClC,MAAM,GAAG,IAAI,CAAC;SACf;aAAM,IACL,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,CAAC;YACtE,IAAI,CAAC,kBAAkB,EACvB;YACA,MAAM,WAAW,GAAG,QAAQ,CAC1B,IAAI,CAAC,WAAW,EAChB,OAAO,EACP,IAAI,CAAC,kBAAkB,EACvB,SAAS,EACT,IAAI,CACL,CAAC;YACF,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;YAClC,MAAM,GAAG,IAAI,CAAC;SACf;QACD,IAAI,CAAC,MAAM,EAAE;YACX,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAChD,QAAQ,CAAC,MAAM,CAAC,uBAAuB,CAAC,4BAA4B,CAAC,EACrE,6CAA6C,OAAO,CAAC,IAAI,wBAAwB,eAAe,GAAG,CACpG,CAAC;SACH;IACH,CAAC;IAED,yBAAyB;QACvB,OAAO,oBAAoB,CACzB,IAAI,CAAC,sBAAsB,EAC3B,oDAAoD,CACrD,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { type PackageableElement } from '@finos/legend-graph';
|
|
17
|
+
import { type GeneratorFn } from '@finos/legend-shared';
|
|
18
|
+
import type { Entity } from '@finos/legend-storage';
|
|
19
|
+
import { type Problem } from './EditorGraphState.js';
|
|
20
|
+
import { GRAPH_EDITOR_MODE } from './EditorConfig.js';
|
|
21
|
+
import { GraphEditorMode } from './GraphEditorMode.js';
|
|
22
|
+
export declare class GraphEditFormModeState extends GraphEditorMode {
|
|
23
|
+
initialize(): GeneratorFn<void>;
|
|
24
|
+
addElement(element: PackageableElement, packagePath: string | undefined, openAfterCreate: boolean): GeneratorFn<void>;
|
|
25
|
+
deleteElement(element: PackageableElement): GeneratorFn<void>;
|
|
26
|
+
renameElement(element: PackageableElement, newPath: string): GeneratorFn<void>;
|
|
27
|
+
getCurrentGraphHash(): string | undefined;
|
|
28
|
+
get mode(): GRAPH_EDITOR_MODE;
|
|
29
|
+
/**
|
|
30
|
+
* NOTE: IMPORTANT! This method is both a savior and a sinner. It helps reprocessing the graph state to use a new graph
|
|
31
|
+
* built from the new model context data, it resets the graph properly. The bane here is that resetting the graph properly is
|
|
32
|
+
* not trivial, for example, in the cleanup phase, there are things we want to re-use, such as the one-time processed system
|
|
33
|
+
* metamodels or the `reusable` metamodels from project dependencies. There are also explorer states like the package tree,
|
|
34
|
+
* opened tabs, change detection, etc. to take care of. There are a lot of potential pitfalls. For these, we will add the
|
|
35
|
+
* marker:
|
|
36
|
+
*
|
|
37
|
+
* @risk memory-leak
|
|
38
|
+
*
|
|
39
|
+
* to indicate we should check carefully these pieces when we detect memory issue as it might still
|
|
40
|
+
* be referring to the old graph
|
|
41
|
+
*
|
|
42
|
+
* In the past, we have found that there are a few potential root causes for memory leak:
|
|
43
|
+
* 1. State management Mobx allows references, as such, it is sometimes hard to trace down which references can cause problem
|
|
44
|
+
* We have to understand that the behind this updater is very simple (replace), yet to do it cleanly is not easy, since
|
|
45
|
+
* so far it is tempting to refer to elements in the graph from various editor state. On top of that, change detection
|
|
46
|
+
* sometimes obfuscate the investigation but we have cleared it out with explicit disposing of reaction
|
|
47
|
+
* 2. Reusable models, at this point in time, we haven't completed stabilize the logic for handling generated models, as well
|
|
48
|
+
* as dependencies, we intended to save computation time by reusing these while updating the graph. This can pose potential
|
|
49
|
+
* danger as well. Beware the way when we start to make system/project dependencies references elements of current graph
|
|
50
|
+
* e.g. when we have a computed value in a immutable class that get all subclasses, etc.
|
|
51
|
+
* 3. We reprocess editor states to ensure good UX, e.g. find tabs to keep open, find tree nodes to expand, etc.
|
|
52
|
+
* after updating the graph. These in our experience is the **MOST COMMON** source of memory leak. It is actually
|
|
53
|
+
* quite predictable since structures like tabs and tree node embeds graph data, which are references to the old graph
|
|
54
|
+
*
|
|
55
|
+
* NOTE: One big obfuscating factor is overlapping graph refresh. Sometimes, we observed that calling this update graph
|
|
56
|
+
* method multiple times can throws Mobx off and causes reusing change detection state to cause memory-leak. As such,
|
|
57
|
+
* we have blocked the possibility of calling compilation/graph-update/generation simultaneously
|
|
58
|
+
*
|
|
59
|
+
* A note on how to debug memory-leak issue:
|
|
60
|
+
* 1. Open browser Memory monitor
|
|
61
|
+
* 2. Go to text mode and compile multiple times (triggering graph update)
|
|
62
|
+
* 3. Try to force garbage collection, if we see memory goes up after while, it's pretty clear that this is memory-leak
|
|
63
|
+
* (note that since we disallow stacking multiple compilation and graph update, we have simplify the detection a lot)
|
|
64
|
+
* See https://auth0.com/blog/four-types-of-leaks-in-your-javascript-code-and-how-to-get-rid-of-them/
|
|
65
|
+
*/
|
|
66
|
+
updateGraphAndApplication(entities: Entity[]): GeneratorFn<void>;
|
|
67
|
+
globalCompile(options?: {
|
|
68
|
+
message?: string;
|
|
69
|
+
disableNotificationOnSuccess?: boolean;
|
|
70
|
+
openConsole?: boolean;
|
|
71
|
+
}): GeneratorFn<void>;
|
|
72
|
+
goToProblem(problem: Problem): void;
|
|
73
|
+
onLeave(): GeneratorFn<void>;
|
|
74
|
+
cleanupBeforeEntering(fallbackOptions?: {
|
|
75
|
+
isCompilationFailure?: boolean;
|
|
76
|
+
isGraphBuildFailure?: boolean;
|
|
77
|
+
}): GeneratorFn<void>;
|
|
78
|
+
handleCleanupFailure(error: unknown): GeneratorFn<void>;
|
|
79
|
+
openElement(element: PackageableElement): void;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=GraphEditFormModeState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphEditFormModeState.d.ts","sourceRoot":"","sources":["../../src/stores/GraphEditFormModeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,kBAAkB,EAUxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,WAAW,EAQjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAMpD,OAAO,EAA2B,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAkB,MAAM,mBAAmB,CAAC;AAUtE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,qBAAa,sBAAuB,SAAQ,eAAe;IACxD,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC;IA2B/B,UAAU,CACT,OAAO,EAAE,kBAAkB,EAC3B,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,eAAe,EAAE,OAAO,GACvB,WAAW,CAAC,IAAI,CAAC;IAcnB,aAAa,CAAC,OAAO,EAAE,kBAAkB,GAAG,WAAW,CAAC,IAAI,CAAC;IA0E7D,aAAa,CACZ,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,MAAM,GACd,WAAW,CAAC,IAAI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