@finos/legend-application-studio 22.4.7 → 22.5.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/components/EditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/EditorComponentTestUtils.js +2 -1
- package/lib/components/EditorComponentTestUtils.js.map +1 -1
- package/lib/components/LegendStudioAppInfo.d.ts.map +1 -1
- package/lib/components/LegendStudioAppInfo.js +2 -2
- package/lib/components/LegendStudioAppInfo.js.map +1 -1
- package/lib/components/LegendStudioApplication.d.ts.map +1 -1
- package/lib/components/LegendStudioApplication.js +3 -3
- package/lib/components/LegendStudioApplication.js.map +1 -1
- package/lib/components/LegendStudioTestID.d.ts +1 -1
- package/lib/components/LegendStudioTestID.d.ts.map +1 -1
- package/lib/components/LegendStudioTestID.js +1 -1
- package/lib/components/LegendStudioTestID.js.map +1 -1
- package/lib/components/editor/ActivityBar.d.ts.map +1 -1
- package/lib/components/editor/ActivityBar.js +3 -3
- package/lib/components/editor/ActivityBar.js.map +1 -1
- package/lib/components/editor/Editor.js +4 -4
- package/lib/components/editor/Editor.js.map +1 -1
- package/lib/components/editor/StatusBar.js +1 -1
- package/lib/components/editor/StatusBar.js.map +1 -1
- package/lib/components/editor/aux-panel/DevTool.d.ts.map +1 -1
- package/lib/components/editor/aux-panel/DevTool.js +5 -1
- package/lib/components/editor/aux-panel/DevTool.js.map +1 -1
- package/lib/components/editor/command/project-search.css +1 -1
- package/lib/components/editor/command/project-search.css.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.js +2 -2
- package/lib/components/editor/command-center/ProjectSearchCommand.js.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.js +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.js +5 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.js +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.js.map +1 -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 +9 -2
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js +4 -4
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +4 -4
- 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/MappingTestEditor.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.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.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +62 -8
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.js +5 -5
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js +2 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +6 -6
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js +1 -1
- 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 +2 -2
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +103 -16
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/ProjectDependantsEditor.js +3 -3
- package/lib/components/editor/side-bar/ProjectDependantsEditor.js.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.js +8 -8
- package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.js +2 -2
- package/lib/components/editor/side-bar/WorkflowManager.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/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.js +38 -6
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
- package/lib/components/project-viewer/ProjectViewer.js +1 -1
- package/lib/components/project-viewer/ProjectViewer.js.map +1 -1
- package/lib/components/shared/ProjectSelectorUtils.d.ts.map +1 -1
- package/lib/components/shared/ProjectSelectorUtils.js +4 -4
- 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 +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.js.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.js +2 -2
- 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/package.json +9 -7
- package/lib/stores/ChangeDetectionState.js +12 -12
- package/lib/stores/ChangeDetectionState.js.map +1 -1
- package/lib/stores/DependencyProjectViewerHelper.js +1 -1
- package/lib/stores/DependencyProjectViewerHelper.js.map +1 -1
- package/lib/stores/EditorConfig.d.ts +3 -0
- package/lib/stores/EditorConfig.d.ts.map +1 -1
- package/lib/stores/EditorConfig.js +4 -0
- package/lib/stores/EditorConfig.js.map +1 -1
- package/lib/stores/EditorGraphState.d.ts +1 -1
- package/lib/stores/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.js +73 -72
- package/lib/stores/EditorGraphState.js.map +1 -1
- package/lib/stores/EditorSDLCState.d.ts.map +1 -1
- package/lib/stores/EditorSDLCState.js +21 -21
- package/lib/stores/EditorSDLCState.js.map +1 -1
- package/lib/stores/EditorStore.js +39 -39
- package/lib/stores/EditorStore.js.map +1 -1
- package/lib/stores/EditorTabManagerState.js +1 -1
- package/lib/stores/EditorTabManagerState.js.map +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.js +8 -8
- package/lib/stores/EmbeddedQueryBuilderState.js.map +1 -1
- package/lib/stores/ExplorerTreeState.d.ts +5 -3
- package/lib/stores/ExplorerTreeState.d.ts.map +1 -1
- package/lib/stores/ExplorerTreeState.js +11 -5
- package/lib/stores/ExplorerTreeState.js.map +1 -1
- package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendStudioBaseStore.js +16 -29
- package/lib/stores/LegendStudioBaseStore.js.map +1 -1
- package/lib/stores/LegendStudioDocumentation.d.ts +1 -0
- package/lib/stores/LegendStudioDocumentation.d.ts.map +1 -1
- package/lib/stores/LegendStudioDocumentation.js +1 -0
- package/lib/stores/LegendStudioDocumentation.js.map +1 -1
- package/lib/stores/LegendStudioStorage.d.ts +20 -0
- package/lib/stores/LegendStudioStorage.d.ts.map +1 -0
- package/lib/stores/LegendStudioStorage.js +21 -0
- package/lib/stores/LegendStudioStorage.js.map +1 -0
- package/lib/stores/LegendStudioTelemetry.d.ts +1 -1
- package/lib/stores/LegendStudioTelemetry.d.ts.map +1 -1
- package/lib/stores/STO_ProjectOverview_LegendStudioApplicationPlugin_Extension.d.ts +31 -0
- package/lib/stores/STO_ProjectOverview_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -0
- package/lib/stores/STO_ProjectOverview_LegendStudioApplicationPlugin_Extension.js +17 -0
- package/lib/stores/STO_ProjectOverview_LegendStudioApplicationPlugin_Extension.js.map +1 -0
- package/lib/stores/editor-state/ExternalFormatState.js +2 -2
- package/lib/stores/editor-state/ExternalFormatState.js.map +1 -1
- package/lib/stores/editor-state/FileGenerationState.js +3 -3
- 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 +4 -1
- package/lib/stores/editor-state/GrammarTextEditorState.js.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.js +9 -9
- package/lib/stores/editor-state/GraphGenerationState.js.map +1 -1
- package/lib/stores/editor-state/ModelImporterState.d.ts.map +1 -1
- package/lib/stores/editor-state/ModelImporterState.js +9 -9
- package/lib/stores/editor-state/ModelImporterState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ClassEditorState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/ClassEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ClassState.js +6 -6
- package/lib/stores/editor-state/element-editor-state/ClassState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementEditorState.js +2 -2
- package/lib/stores/editor-state/element-editor-state/ElementEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementExternalFormatGenerationState.js +2 -2
- package/lib/stores/editor-state/element-editor-state/ElementExternalFormatGenerationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.js +3 -3
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/RuntimeEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/RuntimeEditorState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/RuntimeEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.d.ts +2 -1
- package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.js +9 -1
- package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.js +11 -11
- 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.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js +10 -10
- 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/FlatDataInstanceSetImplementationState.js +3 -3
- package/lib/stores/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js +3 -3
- 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.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js +18 -21
- 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 +15 -17
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.js +6 -6
- package/lib/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.js +3 -3
- package/lib/stores/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceEditorState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceEditorState.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 +14 -17
- 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 +4 -4
- 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 +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js +3 -3
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestableState.js +2 -2
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestableState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/testable/TestableEditorState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/testable/TestableEditorState.js.map +1 -1
- package/lib/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js +2 -2
- package/lib/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js.map +1 -1
- package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js +2 -2
- package/lib/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js.map +1 -1
- package/lib/stores/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts +2 -0
- package/lib/stores/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js +22 -12
- 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 +2 -2
- package/lib/stores/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.js.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js +17 -19
- package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
- package/lib/stores/shared/MockDataUtils.d.ts +6 -0
- package/lib/stores/shared/MockDataUtils.d.ts.map +1 -1
- package/lib/stores/shared/MockDataUtils.js +32 -3
- package/lib/stores/shared/MockDataUtils.js.map +1 -1
- package/lib/stores/shared/modifier/STO_Relational_GraphModifierHelper.d.ts +6 -1
- package/lib/stores/shared/modifier/STO_Relational_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/shared/modifier/STO_Relational_GraphModifierHelper.js +15 -1
- package/lib/stores/shared/modifier/STO_Relational_GraphModifierHelper.js.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.js +19 -19
- package/lib/stores/sidebar-state/LocalChangesState.js.map +1 -1
- package/lib/stores/sidebar-state/ProjectOverviewState.js +11 -11
- package/lib/stores/sidebar-state/ProjectOverviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkflowManagerState.js +12 -12
- package/lib/stores/sidebar-state/WorkflowManagerState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.js +23 -23
- 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 +10 -10
- package/lib/stores/sidebar-state/WorkspaceSyncState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js +33 -33
- package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js +16 -16
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js.map +1 -1
- package/lib/stores/sidebar-state/testable/GlobalTestRunnerState.js +3 -3
- package/lib/stores/sidebar-state/testable/GlobalTestRunnerState.js.map +1 -1
- package/lib/stores/workspace-review/WorkspaceReviewStore.js +16 -16
- package/lib/stores/workspace-review/WorkspaceReviewStore.js.map +1 -1
- package/lib/stores/workspace-setup/ProjectConfigurationStatus.js +1 -1
- package/lib/stores/workspace-setup/ProjectConfigurationStatus.js.map +1 -1
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js +17 -17
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js.map +1 -1
- package/package.json +18 -16
- package/src/components/EditorComponentTestUtils.tsx +3 -2
- package/src/components/LegendStudioAppInfo.tsx +4 -2
- package/src/components/LegendStudioApplication.tsx +6 -3
- package/src/components/LegendStudioTestID.ts +1 -1
- package/src/components/editor/ActivityBar.tsx +6 -4
- package/src/components/editor/Editor.tsx +4 -4
- package/src/components/editor/StatusBar.tsx +4 -4
- package/src/components/editor/aux-panel/DevTool.tsx +7 -1
- package/src/components/editor/command-center/ProjectSearchCommand.tsx +8 -6
- package/src/components/editor/edit-panel/FunctionEditor.tsx +1 -1
- package/src/components/editor/edit-panel/GrammarTextEditor.tsx +7 -1
- package/src/components/editor/edit-panel/RuntimeEditor.tsx +1 -1
- package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +77 -1
- package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx +4 -4
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +4 -4
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.tsx +6 -2
- package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +3 -3
- package/src/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.tsx +1 -1
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +164 -26
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.tsx +13 -9
- package/src/components/editor/edit-panel/service-editor/ServiceEditor.tsx +4 -1
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +7 -7
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.tsx +1 -1
- package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +1 -1
- package/src/components/editor/edit-panel/uml-editor/ClassQueryBuilder.tsx +4 -2
- package/src/components/editor/side-bar/Explorer.tsx +268 -40
- package/src/components/editor/side-bar/ProjectDependantsEditor.tsx +5 -5
- package/src/components/editor/side-bar/ProjectOverview.tsx +13 -13
- package/src/components/editor/side-bar/WorkflowManager.tsx +6 -2
- package/src/components/editor/side-bar/WorkspaceReview.tsx +2 -2
- package/src/components/editor/side-bar/WorkspaceUpdater.tsx +2 -2
- package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +150 -60
- package/src/components/project-viewer/ProjectViewer.tsx +2 -2
- package/src/components/shared/ProjectSelectorUtils.tsx +7 -5
- package/src/components/workspace-review/WorkspaceReview.tsx +4 -4
- package/src/components/workspace-setup/CreateProjectModal.tsx +1 -1
- package/src/components/workspace-setup/WorkspaceSetup.tsx +2 -2
- package/src/stores/ChangeDetectionState.ts +12 -12
- package/src/stores/DependencyProjectViewerHelper.ts +2 -2
- package/src/stores/EditorConfig.ts +4 -0
- package/src/stores/EditorGraphState.ts +99 -75
- package/src/stores/EditorSDLCState.ts +25 -21
- package/src/stores/EditorStore.ts +39 -39
- package/src/stores/EditorTabManagerState.ts +1 -1
- package/src/stores/EmbeddedQueryBuilderState.ts +14 -8
- package/src/stores/ExplorerTreeState.ts +16 -6
- package/src/stores/LegendStudioBaseStore.ts +30 -36
- package/src/stores/LegendStudioDocumentation.ts +1 -0
- package/src/stores/LegendStudioStorage.ts +20 -0
- package/src/stores/LegendStudioTelemetry.ts +1 -1
- package/src/stores/STO_ProjectOverview_LegendStudioApplicationPlugin_Extension.ts +40 -0
- package/src/stores/editor-state/ExternalFormatState.ts +2 -2
- package/src/stores/editor-state/FileGenerationState.ts +3 -3
- package/src/stores/editor-state/GrammarTextEditorState.ts +7 -1
- package/src/stores/editor-state/GraphGenerationState.ts +9 -9
- package/src/stores/editor-state/ModelImporterState.ts +13 -9
- package/src/stores/editor-state/element-editor-state/ClassEditorState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/ClassState.ts +6 -6
- package/src/stores/editor-state/element-editor-state/ElementEditorState.ts +2 -2
- package/src/stores/editor-state/element-editor-state/ElementExternalFormatGenerationState.ts +2 -2
- package/src/stores/editor-state/element-editor-state/FunctionEditorState.ts +3 -3
- package/src/stores/editor-state/element-editor-state/RuntimeEditorState.ts +3 -1
- package/src/stores/editor-state/element-editor-state/connection/ConnectionEditorState.ts +8 -0
- package/src/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.ts +11 -11
- package/src/stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.ts +12 -10
- package/src/stores/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.ts +3 -3
- package/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts +3 -3
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +24 -21
- package/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +18 -17
- package/src/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.ts +6 -6
- package/src/stores/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.ts +3 -3
- package/src/stores/editor-state/element-editor-state/service/ServiceEditorState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +24 -17
- package/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +4 -4
- package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.ts +3 -3
- package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestableState.ts +2 -2
- package/src/stores/editor-state/element-editor-state/testable/TestAssertionState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/testable/TestableEditorState.ts +1 -1
- package/src/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.ts +2 -2
- package/src/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.ts +2 -2
- package/src/stores/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.ts +33 -12
- package/src/stores/editor-state/project-configuration-editor-state/ProjectDependencyEditorState.ts +2 -2
- package/src/stores/project-viewer/ProjectViewerStore.ts +23 -22
- package/src/stores/shared/MockDataUtils.ts +44 -3
- package/src/stores/shared/modifier/STO_Relational_GraphModifierHelper.ts +26 -1
- package/src/stores/sidebar-state/LocalChangesState.ts +21 -19
- package/src/stores/sidebar-state/ProjectOverviewState.ts +11 -11
- package/src/stores/sidebar-state/WorkflowManagerState.ts +12 -12
- package/src/stores/sidebar-state/WorkspaceReviewState.ts +27 -23
- package/src/stores/sidebar-state/WorkspaceSyncState.ts +16 -10
- package/src/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.ts +35 -33
- package/src/stores/sidebar-state/WorkspaceUpdaterState.ts +18 -16
- package/src/stores/sidebar-state/testable/GlobalTestRunnerState.ts +3 -3
- package/src/stores/workspace-review/WorkspaceReviewStore.ts +16 -16
- package/src/stores/workspace-setup/ProjectConfigurationStatus.ts +1 -1
- package/src/stores/workspace-setup/WorkspaceSetupStore.ts +17 -17
- package/tsconfig.json +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceSetupStore.js","sourceRoot":"","sources":["../../../src/stores/workspace-setup/WorkspaceSetupStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAGL,iBAAiB,EACjB,QAAQ,EACR,WAAW,EACX,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAEL,aAAa,EACb,YAAY,EACZ,OAAO,EACP,MAAM,EACN,SAAS,GACV,MAAM,2BAA2B,CAAC;AAE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;SACtB,CAAC,CAAC;QAEH,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC3C,CAAC;IAED,yBAAyB,CAAC,GAAY;QACpC,IAAI,CAAC,sBAAsB,GAAG,GAAG,CAAC;IACpC,CAAC;IAED,2BAA2B,CAAC,GAAY;QACtC,IAAI,CAAC,wBAAwB,GAAG,GAAG,CAAC;IACtC,CAAC;IAED,6BAA6B,CAC3B,0BAAkE;QAElE,IAAI,CAAC,0BAA0B,GAAG,0BAA0B,CAAC;IAC/D,CAAC;IAED,YAAY;QACV,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;QAClC,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"WorkspaceSetupStore.js","sourceRoot":"","sources":["../../../src/stores/workspace-setup/WorkspaceSetupStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAGL,iBAAiB,EACjB,QAAQ,EACR,WAAW,EACX,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAEL,aAAa,EACb,YAAY,EACZ,OAAO,EACP,MAAM,EACN,SAAS,GACV,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,8BAA8B,EAC9B,8CAA8C,GAC/C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,+BAA+B,GAEhC,MAAM,iCAAiC,CAAC;AAQzC,MAAM,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,CACZ,SAAS,CAAC,WAAW,KAAK,YAAY,CAAC,WAAW;gBAClD,SAAS,CAAC,aAAa,KAAK,YAAY,CAAC,aAAa,CACzD,CAAC;YACF,MAAM,oBAAoB,GAAG,iBAAiB,IAAI,YAAY,CAAC;YAC/D,IAAI,CAAC,eAAe,CAAC,oBAAoB,CAAC,CAAC;YAC3C,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC;YAExC,yDAAyD;YACzD,mEAAmE;YACnE,IAAI,CAAC,iBAAiB,EAAE;gBACtB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;aACpC;SACF;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CACpC,QAAQ,CAAC,MAAM,CAAC,uBAAuB,CAAC,uBAAuB,CAAC,EAChE,KAAK,CACN,CAAC;YACF,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;SAC9D;gBAAS;YACR,IAAI,CAAC,oBAAoB,CAAC,KAAK,EAAE,CAAC;SACnC;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-application-studio",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.5.0",
|
|
4
4
|
"description": "Legend Studio application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -44,35 +44,37 @@
|
|
|
44
44
|
"test:watch": "jest --watch"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@finos/legend-application": "
|
|
48
|
-
"@finos/legend-art": "5.0.
|
|
49
|
-
"@finos/legend-graph": "23.0
|
|
50
|
-
"@finos/legend-query-builder": "0.6.
|
|
51
|
-
"@finos/legend-server-depot": "4.4.
|
|
52
|
-
"@finos/legend-server-sdlc": "4.1.
|
|
53
|
-
"@finos/legend-shared": "
|
|
54
|
-
"@finos/legend-storage": "3.0.
|
|
47
|
+
"@finos/legend-application": "12.0.0",
|
|
48
|
+
"@finos/legend-art": "5.0.32",
|
|
49
|
+
"@finos/legend-graph": "23.1.0",
|
|
50
|
+
"@finos/legend-query-builder": "0.6.32",
|
|
51
|
+
"@finos/legend-server-depot": "4.4.5",
|
|
52
|
+
"@finos/legend-server-sdlc": "4.1.28",
|
|
53
|
+
"@finos/legend-shared": "8.0.0",
|
|
54
|
+
"@finos/legend-storage": "3.0.40",
|
|
55
55
|
"@testing-library/react": "14.0.0",
|
|
56
56
|
"@types/react": "18.0.28",
|
|
57
57
|
"@types/react-dom": "18.0.11",
|
|
58
|
+
"fast-xml-parser": "4.1.3",
|
|
58
59
|
"mobx": "6.8.0",
|
|
59
|
-
"mobx-react-lite": "3.4.
|
|
60
|
+
"mobx-react-lite": "3.4.3",
|
|
60
61
|
"mobx-utils": "6.0.5",
|
|
61
|
-
"monaco-editor": "0.36.
|
|
62
|
+
"monaco-editor": "0.36.1",
|
|
62
63
|
"node-diff3": "3.1.2",
|
|
63
64
|
"react": "18.2.0",
|
|
64
65
|
"react-dnd": "16.0.1",
|
|
65
66
|
"react-dom": "18.2.0",
|
|
66
|
-
"serializr": "3.0.2"
|
|
67
|
+
"serializr": "3.0.2",
|
|
68
|
+
"yaml": "2.2.1"
|
|
67
69
|
},
|
|
68
70
|
"devDependencies": {
|
|
69
|
-
"@finos/legend-dev-utils": "2.0.
|
|
70
|
-
"@jest/globals": "29.
|
|
71
|
+
"@finos/legend-dev-utils": "2.0.45",
|
|
72
|
+
"@jest/globals": "29.5.0",
|
|
71
73
|
"cross-env": "7.0.3",
|
|
72
74
|
"eslint": "8.35.0",
|
|
73
|
-
"jest": "29.
|
|
75
|
+
"jest": "29.5.0",
|
|
74
76
|
"npm-run-all": "4.1.5",
|
|
75
|
-
"rimraf": "4.
|
|
77
|
+
"rimraf": "4.4.0",
|
|
76
78
|
"sass": "1.58.3",
|
|
77
79
|
"typescript": "4.9.5"
|
|
78
80
|
},
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
Router,
|
|
77
77
|
createMemoryHistory,
|
|
78
78
|
Route,
|
|
79
|
-
type
|
|
79
|
+
type NavigationService,
|
|
80
80
|
} from '@finos/legend-application';
|
|
81
81
|
import { TEST__getLegendStudioApplicationConfig } from '../stores/EditorStoreTestUtils.js';
|
|
82
82
|
import type { LegendStudioApplicationStore } from '../stores/LegendStudioBaseStore.js';
|
|
@@ -350,7 +350,8 @@ export const TEST__setUpEditor = async (
|
|
|
350
350
|
// TODO: this is not the proper way to do this, we prefer to mock and inject this when we
|
|
351
351
|
// create the editor store, let's consider how we clean this up in the future
|
|
352
352
|
(
|
|
353
|
-
MOCK__editorStore.applicationStore
|
|
353
|
+
MOCK__editorStore.applicationStore
|
|
354
|
+
.navigationService as Writable<NavigationService>
|
|
354
355
|
).navigator = navigator;
|
|
355
356
|
|
|
356
357
|
const renderResult = render(
|
|
@@ -161,7 +161,7 @@ export const LegendStudioAppInfo: React.FC<{
|
|
|
161
161
|
const applicationStore = useLegendStudioApplicationStore();
|
|
162
162
|
const config = applicationStore.config;
|
|
163
163
|
const copyInfo = (): void => {
|
|
164
|
-
applicationStore
|
|
164
|
+
applicationStore.clipboardService
|
|
165
165
|
.copyTextToClipboard(
|
|
166
166
|
[
|
|
167
167
|
`Environment: ${config.env}`,
|
|
@@ -177,7 +177,9 @@ export const LegendStudioAppInfo: React.FC<{
|
|
|
177
177
|
.join('\n'),
|
|
178
178
|
)
|
|
179
179
|
.then(() =>
|
|
180
|
-
applicationStore.notifySuccess(
|
|
180
|
+
applicationStore.notificationService.notifySuccess(
|
|
181
|
+
'Copied application info to clipboard',
|
|
182
|
+
),
|
|
181
183
|
)
|
|
182
184
|
.catch(applicationStore.alertUnhandledError);
|
|
183
185
|
};
|
|
@@ -53,7 +53,8 @@ import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../stores/LegendStudioDocumenta
|
|
|
53
53
|
const LegendStudioNotFoundRouteScreen = observer(() => {
|
|
54
54
|
const applicationStore = useApplicationStore();
|
|
55
55
|
|
|
56
|
-
const currentPath =
|
|
56
|
+
const currentPath =
|
|
57
|
+
applicationStore.navigationService.navigator.getCurrentLocation();
|
|
57
58
|
|
|
58
59
|
const documentation = applicationStore.documentationService.getDocEntry(
|
|
59
60
|
LEGEND_STUDIO_DOCUMENTATION_KEY.NOT_FOUND_HELP,
|
|
@@ -89,7 +90,9 @@ const LegendStudioNotFoundRouteScreen = observer(() => {
|
|
|
89
90
|
<div className="not-found-screen__text-content__detail">
|
|
90
91
|
The requested URL
|
|
91
92
|
<span className="not-found-screen__text-content__detail__url">
|
|
92
|
-
{applicationStore.navigator.generateAddress(
|
|
93
|
+
{applicationStore.navigationService.navigator.generateAddress(
|
|
94
|
+
currentPath,
|
|
95
|
+
)}
|
|
93
96
|
</span>
|
|
94
97
|
was not found in the application
|
|
95
98
|
</div>
|
|
@@ -231,7 +234,7 @@ export const LegendStudioApplication = observer(
|
|
|
231
234
|
>
|
|
232
235
|
<GraphManagerStateProvider
|
|
233
236
|
pluginManager={pluginManager}
|
|
234
|
-
|
|
237
|
+
logService={applicationStore.logService}
|
|
235
238
|
>
|
|
236
239
|
<LegendStudioBaseStoreProvider>
|
|
237
240
|
<LegendApplicationComponentFrameworkProvider>
|
|
@@ -30,7 +30,7 @@ export enum LEGEND_STUDIO_TEST_ID {
|
|
|
30
30
|
EXPLORER_TREES = 'explorer-trees',
|
|
31
31
|
EXPLORER_CONTEXT_MENU = 'explorer__context-menu',
|
|
32
32
|
|
|
33
|
-
GLOBAL_TEST_RUNNER = '
|
|
33
|
+
GLOBAL_TEST_RUNNER = 'test-runner',
|
|
34
34
|
|
|
35
35
|
STATUS_BAR = 'status-bar',
|
|
36
36
|
EDITOR__STATUS_BAR__RIGHT = 'editor__status-bar__right',
|
|
@@ -79,13 +79,15 @@ export const ActivityBarMenu: React.FC = () => {
|
|
|
79
79
|
// documentation
|
|
80
80
|
const goToDocumentation = (): void => {
|
|
81
81
|
if (appDocUrl) {
|
|
82
|
-
applicationStore.navigator.visitAddress(appDocUrl);
|
|
82
|
+
applicationStore.navigationService.navigator.visitAddress(appDocUrl);
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
85
|
// go to setup page
|
|
86
86
|
const goToWorkspaceSetup = (): void =>
|
|
87
|
-
applicationStore.navigator.visitAddress(
|
|
88
|
-
applicationStore.navigator.generateAddress(
|
|
87
|
+
applicationStore.navigationService.navigator.visitAddress(
|
|
88
|
+
applicationStore.navigationService.navigator.generateAddress(
|
|
89
|
+
generateSetupRoute(undefined),
|
|
90
|
+
),
|
|
89
91
|
);
|
|
90
92
|
// help
|
|
91
93
|
const openHelp = (): void => {
|
|
@@ -245,7 +247,7 @@ export const ActivityBar = observer(() => {
|
|
|
245
247
|
},
|
|
246
248
|
!editorStore.isInConflictResolutionMode && {
|
|
247
249
|
mode: ACTIVITY_MODE.GLOBAL_TEST_RUNNER,
|
|
248
|
-
title: '
|
|
250
|
+
title: 'Test Runner',
|
|
249
251
|
icon: <FlaskIcon />,
|
|
250
252
|
},
|
|
251
253
|
!editorStore.isInConflictResolutionMode && {
|
|
@@ -131,14 +131,14 @@ export const Editor = withEditorStore(
|
|
|
131
131
|
}, [editorStore, applicationStore, projectId, workspaceId, workspaceType]);
|
|
132
132
|
|
|
133
133
|
useEffect(() => {
|
|
134
|
-
applicationStore.navigator.blockNavigation(
|
|
134
|
+
applicationStore.navigationService.navigator.blockNavigation(
|
|
135
135
|
[
|
|
136
136
|
(): boolean =>
|
|
137
137
|
editorStore.isInConflictResolutionMode ||
|
|
138
138
|
editorStore.localChangesState.hasUnpushedChanges,
|
|
139
139
|
],
|
|
140
140
|
(onProceed: () => void): void => {
|
|
141
|
-
applicationStore.setActionAlertInfo({
|
|
141
|
+
applicationStore.alertService.setActionAlertInfo({
|
|
142
142
|
// TODO?: should we make this message generic like the `BeforeUnloadEvent` message?
|
|
143
143
|
message: editorStore.isInConflictResolutionMode
|
|
144
144
|
? 'You have not accepted the conflict resolution, the current resolution will be discarded. Leave anyway?'
|
|
@@ -159,12 +159,12 @@ export const Editor = withEditorStore(
|
|
|
159
159
|
});
|
|
160
160
|
},
|
|
161
161
|
() =>
|
|
162
|
-
applicationStore.notifyWarning(
|
|
162
|
+
applicationStore.notificationService.notifyWarning(
|
|
163
163
|
`Navigation from the editor is blocked`,
|
|
164
164
|
),
|
|
165
165
|
);
|
|
166
166
|
return (): void => {
|
|
167
|
-
applicationStore.navigator.unblockNavigation();
|
|
167
|
+
applicationStore.navigationService.navigator.unblockNavigation();
|
|
168
168
|
};
|
|
169
169
|
}, [editorStore, applicationStore]);
|
|
170
170
|
|
|
@@ -169,8 +169,8 @@ export const StatusBar = observer((props: { actionsDisabled: boolean }) => {
|
|
|
169
169
|
title="Go back to workspace setup using the specified project"
|
|
170
170
|
tabIndex={-1}
|
|
171
171
|
onClick={(): void =>
|
|
172
|
-
applicationStore.navigator.visitAddress(
|
|
173
|
-
applicationStore.navigator.generateAddress(
|
|
172
|
+
applicationStore.navigationService.navigator.visitAddress(
|
|
173
|
+
applicationStore.navigationService.navigator.generateAddress(
|
|
174
174
|
generateSetupRoute(projectId),
|
|
175
175
|
),
|
|
176
176
|
)
|
|
@@ -184,8 +184,8 @@ export const StatusBar = observer((props: { actionsDisabled: boolean }) => {
|
|
|
184
184
|
title="Go back to workspace setup using the specified workspace"
|
|
185
185
|
tabIndex={-1}
|
|
186
186
|
onClick={(): void =>
|
|
187
|
-
applicationStore.navigator.visitAddress(
|
|
188
|
-
applicationStore.navigator.generateAddress(
|
|
187
|
+
applicationStore.navigationService.navigator.visitAddress(
|
|
188
|
+
applicationStore.navigationService.navigator.generateAddress(
|
|
189
189
|
generateSetupRoute(projectId, workspaceId, workspaceType),
|
|
190
190
|
),
|
|
191
191
|
)
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
import { isValidUrl } from '@finos/legend-shared';
|
|
25
25
|
import { useEditorStore } from '../EditorStoreProvider.js';
|
|
26
26
|
import { observe_TEMPORARY__AbstractEngineConfig } from '@finos/legend-graph';
|
|
27
|
+
import { LEGEND_STUDIO_SETTINGS_KEY } from '../../../stores/LegendStudioStorage.js';
|
|
27
28
|
|
|
28
29
|
export const DevTool = observer(() => {
|
|
29
30
|
const editorStore = useEditorStore();
|
|
@@ -40,10 +41,15 @@ export const DevTool = observer(() => {
|
|
|
40
41
|
!engineConfig.useBase64ForAdhocConnectionDataUrls,
|
|
41
42
|
);
|
|
42
43
|
// Graph Manager
|
|
43
|
-
const toggleStrictMode = (): void =>
|
|
44
|
+
const toggleStrictMode = (): void => {
|
|
44
45
|
editorStore.graphState.setEnableStrictMode(
|
|
45
46
|
!editorStore.graphState.enableStrictMode,
|
|
46
47
|
);
|
|
48
|
+
editorStore.applicationStore.storageService.settingsStore.persist(
|
|
49
|
+
LEGEND_STUDIO_SETTINGS_KEY.EDITOR_STRICT_MODE,
|
|
50
|
+
editorStore.graphState.enableStrictMode,
|
|
51
|
+
);
|
|
52
|
+
};
|
|
47
53
|
|
|
48
54
|
return (
|
|
49
55
|
<Panel>
|
|
@@ -26,6 +26,8 @@ import {
|
|
|
26
26
|
MoreHorizontalIcon,
|
|
27
27
|
CaretDownIcon,
|
|
28
28
|
Modal,
|
|
29
|
+
MenuContent,
|
|
30
|
+
MenuContentItem,
|
|
29
31
|
} from '@finos/legend-art';
|
|
30
32
|
import { getElementTypeIcon } from '../../shared/ElementIconUtils.js';
|
|
31
33
|
import type { PackageableElement } from '@finos/legend-graph';
|
|
@@ -105,23 +107,23 @@ export const ProjectSearchCommand = observer(() => {
|
|
|
105
107
|
className="project-search-command__type"
|
|
106
108
|
title="Choose Element Type..."
|
|
107
109
|
content={
|
|
108
|
-
<
|
|
109
|
-
<
|
|
110
|
+
<MenuContent className="project-search-command__options">
|
|
111
|
+
<MenuContentItem
|
|
110
112
|
className="project-search-command__option"
|
|
111
113
|
onClick={changeType(undefined)}
|
|
112
114
|
>
|
|
113
115
|
<MoreHorizontalIcon />
|
|
114
|
-
</
|
|
116
|
+
</MenuContentItem>
|
|
115
117
|
{types.map((type) => (
|
|
116
|
-
<
|
|
118
|
+
<MenuContentItem
|
|
117
119
|
key={type}
|
|
118
120
|
className="project-search-command__option"
|
|
119
121
|
onClick={changeType(type)}
|
|
120
122
|
>
|
|
121
123
|
{getElementTypeIcon(editorStore, type)}
|
|
122
|
-
</
|
|
124
|
+
</MenuContentItem>
|
|
123
125
|
))}
|
|
124
|
-
</
|
|
126
|
+
</MenuContent>
|
|
125
127
|
}
|
|
126
128
|
>
|
|
127
129
|
<div className="project-search-command__type__label">
|
|
@@ -109,6 +109,7 @@ import type { DSL_Data_LegendStudioApplicationPlugin_Extension } from '../../../
|
|
|
109
109
|
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../stores/LegendStudioApplicationNavigationContext.js';
|
|
110
110
|
import type { DSL_Mapping_LegendStudioApplicationPlugin_Extension } from '../../../stores/DSL_Mapping_LegendStudioApplicationPlugin_Extension.js';
|
|
111
111
|
import type { STO_Relational_LegendStudioApplicationPlugin_Extension } from '../../../stores/STO_Relational_LegendStudioApplicationPlugin_Extension.js';
|
|
112
|
+
import { LEGEND_STUDIO_SETTINGS_KEY } from '../../../stores/LegendStudioStorage.js';
|
|
112
113
|
|
|
113
114
|
export const GrammarTextEditorHeaderTabContextMenu = observer(
|
|
114
115
|
forwardRef<HTMLDivElement, { children?: React.ReactNode }>(
|
|
@@ -698,8 +699,13 @@ export const GrammarTextEditor = observer(() => {
|
|
|
698
699
|
flowResult(editorStore.toggleTextMode()),
|
|
699
700
|
);
|
|
700
701
|
|
|
701
|
-
const toggleWordWrap = (): void =>
|
|
702
|
+
const toggleWordWrap = (): void => {
|
|
702
703
|
grammarTextEditorState.setWrapText(!grammarTextEditorState.wrapText);
|
|
704
|
+
editorStore.applicationStore.storageService.settingsStore.persist(
|
|
705
|
+
LEGEND_STUDIO_SETTINGS_KEY.EDITOR_WRAP_TEXT,
|
|
706
|
+
grammarTextEditorState.wrapText,
|
|
707
|
+
);
|
|
708
|
+
};
|
|
703
709
|
|
|
704
710
|
const { ref, width, height } = useResizeDetector<HTMLDivElement>();
|
|
705
711
|
|
|
@@ -538,7 +538,7 @@ const IdentifiedConnectionEditor = observer(
|
|
|
538
538
|
currentRuntimeEditorTabState.createDefaultConnection();
|
|
539
539
|
} catch (error) {
|
|
540
540
|
assertErrorThrown(error);
|
|
541
|
-
applicationStore.notifyWarning(error.message);
|
|
541
|
+
applicationStore.notificationService.notifyWarning(error.message);
|
|
542
542
|
return;
|
|
543
543
|
}
|
|
544
544
|
const newIdentifiedConnection = new IdentifiedConnection(
|
package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx
CHANGED
|
@@ -80,6 +80,7 @@ import {
|
|
|
80
80
|
RedshiftDatasourceSpecification,
|
|
81
81
|
PackageableElementExplicitReference,
|
|
82
82
|
MapperPostProcessor,
|
|
83
|
+
SpannerDatasourceSpecification,
|
|
83
84
|
} from '@finos/legend-graph';
|
|
84
85
|
import type { LegendStudioApplicationPlugin } from '../../../../stores/LegendStudioApplicationPlugin.js';
|
|
85
86
|
import type { STO_Relational_LegendStudioApplicationPlugin_Extension } from '../../../../stores/STO_Relational_LegendStudioApplicationPlugin_Extension.js';
|
|
@@ -132,6 +133,11 @@ import {
|
|
|
132
133
|
snowflakePublicAuthenticationStrategy_setPassPhraseVaultReference,
|
|
133
134
|
snowflakePublicAuthenticationStrategy_setPrivateKeyVaultReference,
|
|
134
135
|
snowflakePublicAuthenticationStrategy_setPublicUserName,
|
|
136
|
+
spannerDatasourceSpecification_setDatabaseId,
|
|
137
|
+
spannerDatasourceSpecification_setProxyHost,
|
|
138
|
+
spannerDatasourceSpecification_setInstanceId,
|
|
139
|
+
spannerDatasourceSpecification_setProxyPort,
|
|
140
|
+
spannerDatasourceSpecification_setProjectId,
|
|
135
141
|
staticDatasourceSpecification_setDatabaseName,
|
|
136
142
|
staticDatasourceSpecification_setHost,
|
|
137
143
|
staticDatasourceSpecification_setPort,
|
|
@@ -621,6 +627,70 @@ const BigQueryDatasourceSpecificationEditor = observer(
|
|
|
621
627
|
},
|
|
622
628
|
);
|
|
623
629
|
|
|
630
|
+
const SpannerDatasourceSpecificationEditor = observer(
|
|
631
|
+
(props: {
|
|
632
|
+
sourceSpec: SpannerDatasourceSpecification;
|
|
633
|
+
isReadOnly: boolean;
|
|
634
|
+
}) => {
|
|
635
|
+
const { sourceSpec, isReadOnly } = props;
|
|
636
|
+
return (
|
|
637
|
+
<>
|
|
638
|
+
<PanelFormTextField
|
|
639
|
+
isReadOnly={isReadOnly}
|
|
640
|
+
value={sourceSpec.projectId}
|
|
641
|
+
name="project id"
|
|
642
|
+
prompt="Your Google Cloud Platform (GCP) project identifier"
|
|
643
|
+
update={(value: string | undefined): void =>
|
|
644
|
+
spannerDatasourceSpecification_setProjectId(sourceSpec, value ?? '')
|
|
645
|
+
}
|
|
646
|
+
/>
|
|
647
|
+
<PanelFormTextField
|
|
648
|
+
isReadOnly={isReadOnly}
|
|
649
|
+
value={sourceSpec.instanceId}
|
|
650
|
+
name="instance id"
|
|
651
|
+
prompt="Spanner instance identifier in Google Cloud Platform (GCP)"
|
|
652
|
+
update={(value: string | undefined): void =>
|
|
653
|
+
spannerDatasourceSpecification_setInstanceId(
|
|
654
|
+
sourceSpec,
|
|
655
|
+
value ?? '',
|
|
656
|
+
)
|
|
657
|
+
}
|
|
658
|
+
/>
|
|
659
|
+
<PanelFormTextField
|
|
660
|
+
isReadOnly={isReadOnly}
|
|
661
|
+
value={sourceSpec.databaseId}
|
|
662
|
+
name="database id"
|
|
663
|
+
prompt="Spanner database identifier"
|
|
664
|
+
update={(value: string | undefined): void =>
|
|
665
|
+
spannerDatasourceSpecification_setDatabaseId(
|
|
666
|
+
sourceSpec,
|
|
667
|
+
value ?? '',
|
|
668
|
+
)
|
|
669
|
+
}
|
|
670
|
+
/>
|
|
671
|
+
<PanelFormTextField
|
|
672
|
+
isReadOnly={isReadOnly}
|
|
673
|
+
value={sourceSpec.proxyHost}
|
|
674
|
+
name="proxyHost"
|
|
675
|
+
prompt="Specifies the connection host. Leave blank to use GCP defaults"
|
|
676
|
+
update={(value: string | undefined): void =>
|
|
677
|
+
spannerDatasourceSpecification_setProxyHost(sourceSpec, value ?? '')
|
|
678
|
+
}
|
|
679
|
+
/>
|
|
680
|
+
<PanelFormTextField
|
|
681
|
+
isReadOnly={isReadOnly}
|
|
682
|
+
value={sourceSpec.proxyPort}
|
|
683
|
+
name="proxyPort"
|
|
684
|
+
prompt="Specifies the connection port. Leave blank to use GCP defaults"
|
|
685
|
+
update={(value: string | undefined): void =>
|
|
686
|
+
spannerDatasourceSpecification_setProxyPort(sourceSpec, value ?? '')
|
|
687
|
+
}
|
|
688
|
+
/>
|
|
689
|
+
</>
|
|
690
|
+
);
|
|
691
|
+
},
|
|
692
|
+
);
|
|
693
|
+
|
|
624
694
|
// auth strategy
|
|
625
695
|
|
|
626
696
|
const DelegatedKerberosAuthenticationStrategyEditor = observer(
|
|
@@ -1230,6 +1300,13 @@ const renderDatasourceSpecificationEditor = (
|
|
|
1230
1300
|
isReadOnly={isReadOnly}
|
|
1231
1301
|
/>
|
|
1232
1302
|
);
|
|
1303
|
+
} else if (sourceSpec instanceof SpannerDatasourceSpecification) {
|
|
1304
|
+
return (
|
|
1305
|
+
<SpannerDatasourceSpecificationEditor
|
|
1306
|
+
sourceSpec={sourceSpec}
|
|
1307
|
+
isReadOnly={isReadOnly}
|
|
1308
|
+
/>
|
|
1309
|
+
);
|
|
1233
1310
|
} else {
|
|
1234
1311
|
const extraDatasourceSpecificationEditorRenderers = plugins.flatMap(
|
|
1235
1312
|
(plugin) =>
|
|
@@ -1324,7 +1401,6 @@ const renderAuthenticationStrategyEditor = (
|
|
|
1324
1401
|
return null;
|
|
1325
1402
|
}
|
|
1326
1403
|
};
|
|
1327
|
-
|
|
1328
1404
|
const RelationalConnectionGeneralEditor = observer(
|
|
1329
1405
|
(props: {
|
|
1330
1406
|
connectionValueState: RelationalDatabaseConnectionValueState;
|
|
@@ -125,7 +125,7 @@ export const InstanceSetImplementationSourceExplorer = observer(
|
|
|
125
125
|
if (!embeddedSetImpls.length) {
|
|
126
126
|
setSourceElementForSourceSelectorModal(null);
|
|
127
127
|
} else {
|
|
128
|
-
applicationStore.setActionAlertInfo({
|
|
128
|
+
applicationStore.alertService.setActionAlertInfo({
|
|
129
129
|
message: CHANGING_SOURCE_ON_EMBEDDED,
|
|
130
130
|
actions: [
|
|
131
131
|
{
|
|
@@ -164,7 +164,7 @@ export const InstanceSetImplementationSourceExplorer = observer(
|
|
|
164
164
|
} else if (droppedPackagableElement instanceof FlatData) {
|
|
165
165
|
const allRecordTypes = getAllRecordTypes(droppedPackagableElement);
|
|
166
166
|
if (allRecordTypes.length === 0) {
|
|
167
|
-
applicationStore.notifyWarning(
|
|
167
|
+
applicationStore.notificationService.notifyWarning(
|
|
168
168
|
`Source flat-data store '${droppedPackagableElement.path}' must have at least one action`,
|
|
169
169
|
);
|
|
170
170
|
return;
|
|
@@ -184,7 +184,7 @@ export const InstanceSetImplementationSourceExplorer = observer(
|
|
|
184
184
|
(schema.tables as (Table | View)[]).concat(schema.views),
|
|
185
185
|
);
|
|
186
186
|
if (relations.length === 0) {
|
|
187
|
-
applicationStore.notifyWarning(
|
|
187
|
+
applicationStore.notificationService.notifyWarning(
|
|
188
188
|
`Source database '${droppedPackagableElement.path}' must have at least one table or view`,
|
|
189
189
|
);
|
|
190
190
|
return;
|
|
@@ -218,7 +218,7 @@ export const InstanceSetImplementationSourceExplorer = observer(
|
|
|
218
218
|
if (!embeddedSetImpls.length) {
|
|
219
219
|
changeClassMappingSourceDriver(droppedPackagableElement);
|
|
220
220
|
} else {
|
|
221
|
-
applicationStore.setActionAlertInfo({
|
|
221
|
+
applicationStore.alertService.setActionAlertInfo({
|
|
222
222
|
message: CHANGING_SOURCE_ON_EMBEDDED,
|
|
223
223
|
actions: [
|
|
224
224
|
{
|
|
@@ -215,7 +215,7 @@ const MappingExecutionQueryEditor = observer(
|
|
|
215
215
|
await flowResult(
|
|
216
216
|
executionState.queryState.updateLamba(rawLambda),
|
|
217
217
|
);
|
|
218
|
-
applicationStore.notifySuccess(
|
|
218
|
+
applicationStore.notificationService.notifySuccess(
|
|
219
219
|
`Mapping execution query is updated`,
|
|
220
220
|
);
|
|
221
221
|
embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration(
|
|
@@ -223,7 +223,7 @@ const MappingExecutionQueryEditor = observer(
|
|
|
223
223
|
);
|
|
224
224
|
} catch (error) {
|
|
225
225
|
assertErrorThrown(error);
|
|
226
|
-
applicationStore.notifyError(
|
|
226
|
+
applicationStore.notificationService.notifyError(
|
|
227
227
|
`Can't save query: ${error.message}`,
|
|
228
228
|
);
|
|
229
229
|
}
|
|
@@ -288,7 +288,7 @@ const MappingExecutionQueryEditor = observer(
|
|
|
288
288
|
MappingExecutionEmptyInputDataState
|
|
289
289
|
) {
|
|
290
290
|
if (setImplementation instanceof OperationSetImplementation) {
|
|
291
|
-
applicationStore.notifyWarning(
|
|
291
|
+
applicationStore.notificationService.notifyWarning(
|
|
292
292
|
`Can't auto-generate input data for operation class mapping. Please pick a concrete class mapping instead`,
|
|
293
293
|
);
|
|
294
294
|
} else {
|
|
@@ -301,7 +301,7 @@ const MappingExecutionQueryEditor = observer(
|
|
|
301
301
|
);
|
|
302
302
|
}
|
|
303
303
|
} else {
|
|
304
|
-
applicationStore.setActionAlertInfo({
|
|
304
|
+
applicationStore.alertService.setActionAlertInfo({
|
|
305
305
|
message: 'Mapping execution input data is already set',
|
|
306
306
|
prompt: 'Do you want to regenerate the input data?',
|
|
307
307
|
type: ActionAlertType.CAUTION,
|
|
@@ -68,9 +68,13 @@ const MappingExecutionQueryBuilderSetupPanelContent = observer(
|
|
|
68
68
|
disabled={true}
|
|
69
69
|
options={[]}
|
|
70
70
|
value={selectedMappingOption}
|
|
71
|
-
darkMode={
|
|
71
|
+
darkMode={
|
|
72
|
+
!applicationStore.layoutService.TEMPORARY__isLightThemeEnabled
|
|
73
|
+
}
|
|
72
74
|
formatOptionLabel={getPackageableElementOptionFormatter({
|
|
73
|
-
darkMode:
|
|
75
|
+
darkMode:
|
|
76
|
+
!applicationStore.layoutService
|
|
77
|
+
.TEMPORARY__isLightThemeEnabled,
|
|
74
78
|
graph: editorStore.graphManagerState.graph,
|
|
75
79
|
})}
|
|
76
80
|
/>
|
|
@@ -138,7 +138,7 @@ const MappingTestQueryEditor = observer(
|
|
|
138
138
|
await flowResult(
|
|
139
139
|
testState.queryState.updateLamba(rawLambda),
|
|
140
140
|
);
|
|
141
|
-
applicationStore.notifySuccess(
|
|
141
|
+
applicationStore.notificationService.notifySuccess(
|
|
142
142
|
`Mapping test query is updated`,
|
|
143
143
|
);
|
|
144
144
|
embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration(
|
|
@@ -146,7 +146,7 @@ const MappingTestQueryEditor = observer(
|
|
|
146
146
|
);
|
|
147
147
|
} catch (error) {
|
|
148
148
|
assertErrorThrown(error);
|
|
149
|
-
applicationStore.notifyError(
|
|
149
|
+
applicationStore.notificationService.notifyError(
|
|
150
150
|
`Can't save query: ${error.message}`,
|
|
151
151
|
);
|
|
152
152
|
}
|
|
@@ -198,7 +198,7 @@ const MappingTestQueryEditor = observer(
|
|
|
198
198
|
|
|
199
199
|
// Attempt to generate data for input data panel as we pick the class mapping
|
|
200
200
|
if (setImplementation) {
|
|
201
|
-
applicationStore.setActionAlertInfo({
|
|
201
|
+
applicationStore.alertService.setActionAlertInfo({
|
|
202
202
|
message: 'Mapping test input data is already set',
|
|
203
203
|
prompt: 'Do you want to regenerate the input data?',
|
|
204
204
|
type: ActionAlertType.CAUTION,
|
|
@@ -239,7 +239,7 @@ export const PropertyMappingEditor = observer(
|
|
|
239
239
|
mappingEditorState.openMappingElement(embedded, true);
|
|
240
240
|
}
|
|
241
241
|
} else {
|
|
242
|
-
applicationStore.notifyWarning(
|
|
242
|
+
applicationStore.notificationService.notifyWarning(
|
|
243
243
|
`Can't visit mapping element for type '${propertyRawType.name}'`,
|
|
244
244
|
);
|
|
245
245
|
}
|