@finos/legend-application-studio 19.0.0 → 20.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/LegendStudioApplicationConfig.d.ts +6 -0
- package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.js +7 -0
- package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
- package/lib/components/EditorComponentTestUtils.d.ts +1 -1
- package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/EditorComponentTestUtils.js +23 -50
- package/lib/components/EditorComponentTestUtils.js.map +1 -1
- package/lib/components/EmbeddedQueryBuilder.d.ts +0 -1
- package/lib/components/EmbeddedQueryBuilder.d.ts.map +1 -1
- package/lib/components/LegendStudioApplication.d.ts +0 -1
- package/lib/components/LegendStudioApplication.d.ts.map +1 -1
- package/lib/components/editor/StatusBar.d.ts +0 -1
- package/lib/components/editor/StatusBar.d.ts.map +1 -1
- package/lib/components/editor/StatusBar.js +10 -3
- package/lib/components/editor/StatusBar.js.map +1 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.d.ts +0 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.d.ts.map +1 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.js +11 -3
- package/lib/components/editor/aux-panel/AuxiliaryPanel.js.map +1 -1
- package/lib/components/editor/aux-panel/Console.d.ts +0 -1
- package/lib/components/editor/aux-panel/Console.d.ts.map +1 -1
- package/lib/components/editor/aux-panel/Console.js +2 -1
- package/lib/components/editor/aux-panel/Console.js.map +1 -1
- package/lib/components/editor/aux-panel/DevTool.d.ts +0 -1
- package/lib/components/editor/aux-panel/DevTool.d.ts.map +1 -1
- package/lib/components/editor/aux-panel/DevTool.js +4 -7
- package/lib/components/editor/aux-panel/DevTool.js.map +1 -1
- package/lib/components/editor/aux-panel/Problems.d.ts +19 -0
- package/lib/components/editor/aux-panel/Problems.d.ts.map +1 -0
- package/lib/components/editor/aux-panel/Problems.js +48 -0
- package/lib/components/editor/aux-panel/Problems.js.map +1 -0
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts +0 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.d.ts +0 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/FunctionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.js +31 -5
- package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.js +36 -25
- package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.d.ts +0 -1
- package/lib/components/editor/edit-panel/ModelImporter.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/UnsupportedElementEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/UnsupportedElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.d.ts +0 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js +16 -16
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js +4 -4
- package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js +20 -6
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.d.ts +0 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.d.ts +0 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_ExternalFormatConnectionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_ExternalFormatConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts +0 -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_SchemaSetModelGenerationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js +2 -2
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts.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/service-editor/NewServiceModal.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/NewServiceModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/UMLEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/UMLEditor.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts +0 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.d.ts +0 -1
- package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +15 -9
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.d.ts +0 -1
- package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts +0 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.js +3 -3
- package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
- package/lib/components/editor/side-bar/SideBar.d.ts +0 -1
- package/lib/components/editor/side-bar/SideBar.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts.map +1 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts +0 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
- package/lib/components/shared/DiffView.d.ts +0 -1
- package/lib/components/shared/DiffView.d.ts.map +1 -1
- package/lib/components/shared/DiffView.js +2 -2
- package/lib/components/shared/DiffView.js.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts +0 -1
- package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts +0 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.d.ts +0 -1
- package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts +0 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +6 -6
- package/lib/stores/ChangeDetectionState.d.ts +2 -0
- package/lib/stores/ChangeDetectionState.d.ts.map +1 -1
- package/lib/stores/ChangeDetectionState.js +12 -6
- package/lib/stores/ChangeDetectionState.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 +17 -16
- package/lib/stores/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.js +152 -94
- package/lib/stores/EditorGraphState.js.map +1 -1
- package/lib/stores/EditorSDLCState.d.ts +6 -6
- package/lib/stores/EditorSDLCState.d.ts.map +1 -1
- package/lib/stores/EditorSDLCState.js +52 -27
- package/lib/stores/EditorSDLCState.js.map +1 -1
- package/lib/stores/EditorStore.js +1 -1
- package/lib/stores/EditorStore.js.map +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.js +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.js.map +1 -1
- package/lib/stores/editor/NewElementState.d.ts.map +1 -1
- package/lib/stores/editor/NewElementState.js +14 -5
- package/lib/stores/editor/NewElementState.js.map +1 -1
- package/lib/stores/editor/StandardEditorMode.d.ts.map +1 -1
- package/lib/stores/editor/StandardEditorMode.js +2 -2
- package/lib/stores/editor/StandardEditorMode.js.map +1 -1
- package/lib/stores/editor-state/FileGenerationState.d.ts +3 -3
- package/lib/stores/editor-state/FileGenerationState.d.ts.map +1 -1
- package/lib/stores/editor-state/FileGenerationState.js +9 -5
- package/lib/stores/editor-state/FileGenerationState.js.map +1 -1
- package/lib/stores/editor-state/GrammarTextEditorState.d.ts +6 -4
- package/lib/stores/editor-state/GrammarTextEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/GrammarTextEditorState.js +14 -8
- package/lib/stores/editor-state/GrammarTextEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ClassEditorState.d.ts +0 -1
- package/lib/stores/editor-state/element-editor-state/ClassEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ClassEditorState.js +0 -5
- package/lib/stores/editor-state/element-editor-state/ClassEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementEditorState.d.ts +0 -1
- package/lib/stores/editor-state/element-editor-state/ElementEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementEditorState.js +0 -3
- package/lib/stores/editor-state/element-editor-state/ElementEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.d.ts +2 -2
- package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.js +5 -4
- package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.d.ts +0 -1
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.js +0 -4
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +0 -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 +0 -6
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts +6 -6
- 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 +24 -14
- 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 +6 -6
- 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 +30 -15
- 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 +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts +4 -4
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js +54 -44
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
- package/lib/stores/shared/PackageTreeUtils.d.ts +1 -0
- package/lib/stores/shared/PackageTreeUtils.d.ts.map +1 -1
- package/lib/stores/shared/PackageTreeUtils.js +5 -2
- package/lib/stores/shared/PackageTreeUtils.js.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.d.ts +13 -13
- package/lib/stores/sidebar-state/LocalChangesState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.js +85 -78
- package/lib/stores/sidebar-state/LocalChangesState.js.map +1 -1
- package/lib/stores/sidebar-state/ProjectOverviewState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/ProjectOverviewState.js +19 -4
- package/lib/stores/sidebar-state/ProjectOverviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkflowManagerState.d.ts +8 -8
- package/lib/stores/sidebar-state/WorkflowManagerState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkflowManagerState.js +15 -11
- package/lib/stores/sidebar-state/WorkflowManagerState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.d.ts +3 -3
- package/lib/stores/sidebar-state/WorkspaceReviewState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.js +21 -6
- package/lib/stores/sidebar-state/WorkspaceReviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceSyncState.d.ts +2 -2
- package/lib/stores/sidebar-state/WorkspaceSyncState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceSyncState.js +9 -7
- package/lib/stores/sidebar-state/WorkspaceSyncState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.d.ts +2 -2
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js +8 -4
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js.map +1 -1
- package/lib/stores/workspace-review/WorkspaceReviewStore.d.ts +2 -2
- package/lib/stores/workspace-review/WorkspaceReviewStore.d.ts.map +1 -1
- package/lib/stores/workspace-review/WorkspaceReviewStore.js +27 -10
- package/lib/stores/workspace-review/WorkspaceReviewStore.js.map +1 -1
- package/package.json +15 -15
- package/src/application/LegendStudioApplicationConfig.ts +7 -0
- package/src/components/EditorComponentTestUtils.tsx +64 -60
- package/src/components/editor/StatusBar.tsx +38 -3
- package/src/components/editor/aux-panel/AuxiliaryPanel.tsx +32 -10
- package/src/components/editor/aux-panel/Console.tsx +4 -3
- package/src/components/editor/aux-panel/DevTool.tsx +47 -79
- package/src/components/editor/aux-panel/Problems.tsx +103 -0
- package/src/components/editor/edit-panel/FunctionEditor.tsx +49 -3
- package/src/components/editor/edit-panel/GrammarTextEditor.tsx +48 -36
- package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +61 -61
- package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +21 -25
- package/src/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.tsx +23 -23
- package/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx +2 -1
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +19 -22
- package/src/components/editor/side-bar/Explorer.tsx +34 -10
- package/src/components/editor/side-bar/ProjectOverview.tsx +5 -3
- package/src/components/shared/DiffView.tsx +2 -2
- package/src/stores/ChangeDetectionState.ts +17 -8
- package/src/stores/EditorConfig.ts +1 -0
- package/src/stores/EditorGraphState.ts +223 -136
- package/src/stores/EditorSDLCState.ts +65 -30
- package/src/stores/EditorStore.ts +1 -1
- package/src/stores/EmbeddedQueryBuilderState.ts +1 -1
- package/src/stores/editor/NewElementState.ts +24 -5
- package/src/stores/editor/StandardEditorMode.ts +4 -2
- package/src/stores/editor-state/FileGenerationState.ts +19 -8
- package/src/stores/editor-state/GrammarTextEditorState.ts +18 -10
- package/src/stores/editor-state/element-editor-state/ClassEditorState.ts +0 -12
- package/src/stores/editor-state/element-editor-state/ElementEditorState.ts +0 -4
- package/src/stores/editor-state/element-editor-state/ElementFileGenerationState.ts +8 -6
- package/src/stores/editor-state/element-editor-state/FunctionEditorState.ts +0 -5
- package/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts +0 -11
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +29 -15
- package/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +37 -23
- package/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +4 -3
- package/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +63 -48
- package/src/stores/project-viewer/ProjectViewerStore.ts +5 -3
- package/src/stores/shared/PackageTreeUtils.ts +10 -1
- package/src/stores/sidebar-state/LocalChangesState.ts +151 -142
- package/src/stores/sidebar-state/ProjectOverviewState.ts +19 -4
- package/src/stores/sidebar-state/WorkflowManagerState.ts +28 -31
- package/src/stores/sidebar-state/WorkspaceReviewState.ts +24 -8
- package/src/stores/sidebar-state/WorkspaceSyncState.ts +11 -16
- package/src/stores/sidebar-state/WorkspaceUpdaterState.ts +11 -7
- package/src/stores/workspace-review/WorkspaceReviewStore.ts +39 -12
- package/tsconfig.json +1 -0
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
type ElementDragSource,
|
|
27
27
|
} from '../../../stores/shared/DnDUtils.js';
|
|
28
28
|
import {
|
|
29
|
+
assertErrorThrown,
|
|
29
30
|
prettyCONSTName,
|
|
30
31
|
UnsupportedOperationError,
|
|
31
32
|
} from '@finos/legend-shared';
|
|
@@ -75,9 +76,15 @@ import {
|
|
|
75
76
|
stub_TaggedValue,
|
|
76
77
|
stub_Stereotype,
|
|
77
78
|
stub_RawVariableExpression,
|
|
79
|
+
getFunctionNameWithPath,
|
|
80
|
+
getFunctionSignature,
|
|
78
81
|
} from '@finos/legend-graph';
|
|
79
82
|
import {
|
|
80
83
|
type PackageableElementOption,
|
|
84
|
+
type ApplicationStore,
|
|
85
|
+
type LegendApplicationPlugin,
|
|
86
|
+
type LegendApplicationConfig,
|
|
87
|
+
type LegendApplicationPluginManager,
|
|
81
88
|
useApplicationNavigationContext,
|
|
82
89
|
useApplicationStore,
|
|
83
90
|
buildElementOption,
|
|
@@ -101,6 +108,8 @@ import {
|
|
|
101
108
|
} from '../../../stores/shared/modifier/RawValueSpecificationGraphModifierHelper.js';
|
|
102
109
|
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../stores/LegendStudioApplicationNavigationContext.js';
|
|
103
110
|
import { LambdaEditor } from '@finos/legend-query-builder';
|
|
111
|
+
import type { EditorStore } from '../../../stores/EditorStore.js';
|
|
112
|
+
import { graph_renameElement } from '../../../stores/shared/modifier/GraphModifierHelper.js';
|
|
104
113
|
|
|
105
114
|
enum FUNCTION_PARAMETER_TYPE {
|
|
106
115
|
CLASS = 'CLASS',
|
|
@@ -130,6 +139,31 @@ type FunctionParameterDragSource = {
|
|
|
130
139
|
|
|
131
140
|
const FUNCTION_PARAMETER_DND_TYPE = 'FUNCTION_PARAMETER';
|
|
132
141
|
|
|
142
|
+
/**
|
|
143
|
+
* NOTE: every time we update the function signature (parameters, return value), we need to adjust the function path,
|
|
144
|
+
* therefore, we need to update the graph's function index.
|
|
145
|
+
*/
|
|
146
|
+
const updateFunctionName = (
|
|
147
|
+
editorStore: EditorStore,
|
|
148
|
+
applicationStore: ApplicationStore<
|
|
149
|
+
LegendApplicationConfig,
|
|
150
|
+
LegendApplicationPluginManager<LegendApplicationPlugin>
|
|
151
|
+
>,
|
|
152
|
+
func: ConcreteFunctionDefinition,
|
|
153
|
+
): void => {
|
|
154
|
+
try {
|
|
155
|
+
graph_renameElement(
|
|
156
|
+
editorStore.graphManagerState.graph,
|
|
157
|
+
func,
|
|
158
|
+
`${getFunctionNameWithPath(func)}${getFunctionSignature(func)}`,
|
|
159
|
+
editorStore.changeDetectionState.observerContext,
|
|
160
|
+
);
|
|
161
|
+
} catch (error) {
|
|
162
|
+
assertErrorThrown(error);
|
|
163
|
+
applicationStore.notifyError(error);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
|
|
133
167
|
const ParameterBasicEditor = observer(
|
|
134
168
|
(props: {
|
|
135
169
|
parameter: RawVariableExpression;
|
|
@@ -140,6 +174,7 @@ const ParameterBasicEditor = observer(
|
|
|
140
174
|
const ref = useRef<HTMLDivElement>(null);
|
|
141
175
|
const { parameter, _func, deleteParameter, isReadOnly } = props;
|
|
142
176
|
const editorStore = useEditorStore();
|
|
177
|
+
const applicationStore = useApplicationStore();
|
|
143
178
|
// Name
|
|
144
179
|
const changeValue: React.ChangeEventHandler<HTMLInputElement> = (event) =>
|
|
145
180
|
rawVariableExpression_setName(parameter, event.target.value);
|
|
@@ -159,7 +194,10 @@ const ParameterBasicEditor = observer(
|
|
|
159
194
|
});
|
|
160
195
|
const selectedType = { value: paramType, label: paramType.name };
|
|
161
196
|
const changeType = (val: PackageableElementOption<Type>): void => {
|
|
162
|
-
|
|
197
|
+
if (val.value !== parameter.type.value) {
|
|
198
|
+
rawVariableExpression_setType(parameter, val.value);
|
|
199
|
+
updateFunctionName(editorStore, applicationStore, _func);
|
|
200
|
+
}
|
|
163
201
|
setIsEditingType(false);
|
|
164
202
|
};
|
|
165
203
|
const openElement = (): void => {
|
|
@@ -192,6 +230,7 @@ const ParameterBasicEditor = observer(
|
|
|
192
230
|
parameter,
|
|
193
231
|
editorStore.graphManagerState.graph.getMultiplicity(lBound, uBound),
|
|
194
232
|
);
|
|
233
|
+
updateFunctionName(editorStore, applicationStore, _func);
|
|
195
234
|
}
|
|
196
235
|
};
|
|
197
236
|
const changeLowerBound: React.ChangeEventHandler<HTMLInputElement> = (
|
|
@@ -395,6 +434,7 @@ const ReturnTypeEditor = observer(
|
|
|
395
434
|
const { functionElement, isReadOnly } = props;
|
|
396
435
|
const { returnType, returnMultiplicity } = functionElement;
|
|
397
436
|
const editorStore = useEditorStore();
|
|
437
|
+
const applicationStore = useApplicationStore();
|
|
398
438
|
// Type
|
|
399
439
|
const [isEditingType, setIsEditingType] = useState(false);
|
|
400
440
|
const typeOptions =
|
|
@@ -412,6 +452,7 @@ const ReturnTypeEditor = observer(
|
|
|
412
452
|
const changeType = (val: PackageableElementOption<Type>): void => {
|
|
413
453
|
function_setReturnType(functionElement, val.value);
|
|
414
454
|
setIsEditingType(false);
|
|
455
|
+
updateFunctionName(editorStore, applicationStore, functionElement);
|
|
415
456
|
};
|
|
416
457
|
|
|
417
458
|
const openElement = (): void => {
|
|
@@ -446,6 +487,7 @@ const ReturnTypeEditor = observer(
|
|
|
446
487
|
functionElement,
|
|
447
488
|
editorStore.graphManagerState.graph.getMultiplicity(lBound, uBound),
|
|
448
489
|
);
|
|
490
|
+
updateFunctionName(editorStore, applicationStore, functionElement);
|
|
449
491
|
}
|
|
450
492
|
};
|
|
451
493
|
const changeLowerBound: React.ChangeEventHandler<HTMLInputElement> = (
|
|
@@ -580,6 +622,7 @@ export const FunctionMainEditor = observer(
|
|
|
580
622
|
functionEditorState: FunctionEditorState;
|
|
581
623
|
}) => {
|
|
582
624
|
const editorStore = useEditorStore();
|
|
625
|
+
const applicationStore = useApplicationStore();
|
|
583
626
|
const defaultType = editorStore.graphManagerState.graph.getPrimitiveType(
|
|
584
627
|
PRIMITIVE_TYPE.STRING,
|
|
585
628
|
);
|
|
@@ -591,11 +634,13 @@ export const FunctionMainEditor = observer(
|
|
|
591
634
|
functionElement,
|
|
592
635
|
stub_RawVariableExpression(defaultType),
|
|
593
636
|
);
|
|
637
|
+
updateFunctionName(editorStore, applicationStore, functionElement);
|
|
594
638
|
};
|
|
595
639
|
const deleteParameter =
|
|
596
640
|
(val: RawVariableExpression): (() => void) =>
|
|
597
641
|
(): void => {
|
|
598
642
|
function_deleteParameter(functionElement, val);
|
|
643
|
+
updateFunctionName(editorStore, applicationStore, functionElement);
|
|
599
644
|
};
|
|
600
645
|
const handleDropParameter = useCallback(
|
|
601
646
|
(item: UMLEditorElementDropTarget): void => {
|
|
@@ -604,9 +649,10 @@ export const FunctionMainEditor = observer(
|
|
|
604
649
|
functionElement,
|
|
605
650
|
stub_RawVariableExpression(item.data.packageableElement),
|
|
606
651
|
);
|
|
652
|
+
updateFunctionName(editorStore, applicationStore, functionElement);
|
|
607
653
|
}
|
|
608
654
|
},
|
|
609
|
-
[functionElement, isReadOnly],
|
|
655
|
+
[applicationStore, editorStore, functionElement, isReadOnly],
|
|
610
656
|
);
|
|
611
657
|
const [{ isParameterDragOver }, dropParameterRef] = useDrop<
|
|
612
658
|
ElementDragSource,
|
|
@@ -827,7 +873,7 @@ export const FunctionEditor = observer(() => {
|
|
|
827
873
|
)}
|
|
828
874
|
<div className="panel__header__title__label">function</div>
|
|
829
875
|
<div className="panel__header__title__content">
|
|
830
|
-
{functionElement.
|
|
876
|
+
{functionElement.functionName}
|
|
831
877
|
</div>
|
|
832
878
|
</div>
|
|
833
879
|
</div>
|
|
@@ -23,10 +23,8 @@ import {
|
|
|
23
23
|
} from 'monaco-editor';
|
|
24
24
|
import {
|
|
25
25
|
ContextMenu,
|
|
26
|
-
revealError,
|
|
27
|
-
setErrorMarkers,
|
|
28
26
|
disposeEditor,
|
|
29
|
-
|
|
27
|
+
getBaseTextEditorOptions,
|
|
30
28
|
resetLineNumberGutterWidth,
|
|
31
29
|
clsx,
|
|
32
30
|
WordWrapIcon,
|
|
@@ -36,6 +34,10 @@ import {
|
|
|
36
34
|
HackerIcon,
|
|
37
35
|
PanelContent,
|
|
38
36
|
useResizeDetector,
|
|
37
|
+
setWarningMarkers,
|
|
38
|
+
clearMarkers,
|
|
39
|
+
setErrorMarkers,
|
|
40
|
+
moveCursorToPosition,
|
|
39
41
|
} from '@finos/legend-art';
|
|
40
42
|
import {
|
|
41
43
|
TAB_SIZE,
|
|
@@ -779,7 +781,9 @@ export const GrammarTextEditor = observer(() => {
|
|
|
779
781
|
const grammarTextEditorState = editorStore.grammarTextEditorState;
|
|
780
782
|
const currentElementLabelRegexString =
|
|
781
783
|
grammarTextEditorState.currentElementLabelRegexString;
|
|
782
|
-
const error =
|
|
784
|
+
const error = editorStore.graphState.error;
|
|
785
|
+
|
|
786
|
+
const forcedCursorPosition = grammarTextEditorState.forcedCursorPosition;
|
|
783
787
|
const value = normalizeLineEnding(grammarTextEditorState.graphGrammarText);
|
|
784
788
|
const textEditorRef = useRef<HTMLDivElement>(null);
|
|
785
789
|
const hoverProviderDisposer = useRef<IDisposable | undefined>(undefined);
|
|
@@ -804,15 +808,15 @@ export const GrammarTextEditor = observer(() => {
|
|
|
804
808
|
if (!editor && textEditorRef.current) {
|
|
805
809
|
const element = textEditorRef.current;
|
|
806
810
|
const _editor = monacoEditorAPI.create(element, {
|
|
807
|
-
...
|
|
811
|
+
...getBaseTextEditorOptions(),
|
|
808
812
|
language: EDITOR_LANGUAGE.PURE,
|
|
809
813
|
theme: EDITOR_THEME.LEGEND,
|
|
810
814
|
renderValidationDecorations: 'on',
|
|
811
815
|
});
|
|
812
816
|
_editor.onDidChangeModelContent(() => {
|
|
813
817
|
grammarTextEditorState.setGraphGrammarText(getEditorValue(_editor));
|
|
814
|
-
|
|
815
|
-
// we can technically can reset the current element label regex string here
|
|
818
|
+
clearMarkers();
|
|
819
|
+
// NOTE: we can technically can reset the current element label regex string here
|
|
816
820
|
// but if we do that on first load, the cursor will not jump to the current element
|
|
817
821
|
// also, it's better to place that logic in an effect that watches for the regex string
|
|
818
822
|
});
|
|
@@ -882,17 +886,42 @@ export const GrammarTextEditor = observer(() => {
|
|
|
882
886
|
const editorModel = editor.getModel();
|
|
883
887
|
if (editorModel) {
|
|
884
888
|
editorModel.updateOptions({ tabSize: TAB_SIZE });
|
|
885
|
-
if (
|
|
886
|
-
|
|
889
|
+
if (
|
|
890
|
+
!editorStore.graphState.areProblemsStale &&
|
|
891
|
+
error?.sourceInformation
|
|
892
|
+
) {
|
|
893
|
+
setErrorMarkers(editorModel, [
|
|
894
|
+
{
|
|
895
|
+
message: error.message,
|
|
896
|
+
startLineNumber: error.sourceInformation.startLine,
|
|
897
|
+
startColumn: error.sourceInformation.startColumn,
|
|
898
|
+
endLineNumber: error.sourceInformation.endLine,
|
|
899
|
+
endColumn: error.sourceInformation.endColumn,
|
|
900
|
+
},
|
|
901
|
+
]);
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
if (
|
|
905
|
+
!editorStore.graphState.areProblemsStale &&
|
|
906
|
+
editorStore.graphState.warnings.length
|
|
907
|
+
) {
|
|
908
|
+
setWarningMarkers(
|
|
887
909
|
editorModel,
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
910
|
+
editorStore.graphState.warnings
|
|
911
|
+
.map((warning) => {
|
|
912
|
+
if (!warning.sourceInformation) {
|
|
913
|
+
return undefined;
|
|
914
|
+
}
|
|
915
|
+
return {
|
|
916
|
+
message: warning.message,
|
|
917
|
+
startLineNumber: warning.sourceInformation.startLine,
|
|
918
|
+
startColumn: warning.sourceInformation.startColumn,
|
|
919
|
+
endLineNumber: warning.sourceInformation.endLine,
|
|
920
|
+
endColumn: warning.sourceInformation.endColumn,
|
|
921
|
+
};
|
|
922
|
+
})
|
|
923
|
+
.filter(isNonNullable),
|
|
893
924
|
);
|
|
894
|
-
} else {
|
|
895
|
-
monacoEditorAPI.setModelMarkers(editorModel, 'Error', []);
|
|
896
925
|
}
|
|
897
926
|
}
|
|
898
927
|
// Disable editing if user is in viewer mode
|
|
@@ -1124,28 +1153,11 @@ export const GrammarTextEditor = observer(() => {
|
|
|
1124
1153
|
},
|
|
1125
1154
|
});
|
|
1126
1155
|
|
|
1127
|
-
/**
|
|
1128
|
-
* Reveal error has to be in an effect like this because, we want to reveal the error.
|
|
1129
|
-
* For this to happen, the editor needs to gain focus. However, if the user clicks on the
|
|
1130
|
-
* exit hackermode button, the editor loses focus, and the blocking modal pops up. This modal
|
|
1131
|
-
* in turn traps the focus and preventing the editor from gaining the focus to reveal the error.
|
|
1132
|
-
* As such we want to dismiss the modal before revealing the error, however, as of the current flow
|
|
1133
|
-
* dismissing the modal is called when we set the parser/compiler error. So if this logic belongs to
|
|
1134
|
-
* the normal rendering logic, and not an effect, it might happen just when the modal is still present
|
|
1135
|
-
* to make sure the modal is dismissed, we should place this logic in an effect to make sure it happens
|
|
1136
|
-
* slightly later, also it's better to have this as part of an effect in response to change in the errors
|
|
1137
|
-
*/
|
|
1138
1156
|
useEffect(() => {
|
|
1139
|
-
if (editor) {
|
|
1140
|
-
|
|
1141
|
-
revealError(
|
|
1142
|
-
editor,
|
|
1143
|
-
error.sourceInformation.startLine,
|
|
1144
|
-
error.sourceInformation.startColumn,
|
|
1145
|
-
);
|
|
1146
|
-
}
|
|
1157
|
+
if (editor && forcedCursorPosition) {
|
|
1158
|
+
moveCursorToPosition(editor, forcedCursorPosition);
|
|
1147
1159
|
}
|
|
1148
|
-
}, [editor,
|
|
1160
|
+
}, [editor, forcedCursorPosition]);
|
|
1149
1161
|
|
|
1150
1162
|
/**
|
|
1151
1163
|
* This effect helps to navigate to the currently selected element in the explorer tree
|