@finos/legend-application-studio 18.1.0 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/LegendStudio.d.ts.map +1 -1
- package/lib/application/LegendStudio.js +3 -9
- package/lib/application/LegendStudio.js.map +1 -1
- package/lib/components/Core_LegendStudioApplicationPlugin.d.ts +2 -1
- package/lib/components/Core_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/Core_LegendStudioApplicationPlugin.js +5 -1
- package/lib/components/Core_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/EditorComponentTestUtils.js +3 -3
- package/lib/components/EditorComponentTestUtils.js.map +1 -1
- package/lib/components/LegendStudioApplication.d.ts.map +1 -1
- package/lib/components/LegendStudioApplication.js +11 -8
- package/lib/components/LegendStudioApplication.js.map +1 -1
- package/lib/components/editor/ActivityBar.d.ts.map +1 -1
- package/lib/components/editor/ActivityBar.js +13 -18
- package/lib/components/editor/ActivityBar.js.map +1 -1
- package/lib/components/editor/Editor.d.ts.map +1 -1
- package/lib/components/editor/Editor.js +58 -95
- package/lib/components/editor/Editor.js.map +1 -1
- package/lib/components/editor/StatusBar.d.ts.map +1 -1
- package/lib/components/editor/StatusBar.js +4 -6
- package/lib/components/editor/StatusBar.js.map +1 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.js +1 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.js.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.js +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.js.map +1 -1
- package/lib/components/editor/edit-panel/EditPanel.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/EditPanel.js +5 -5
- package/lib/components/editor/edit-panel/EditPanel.js.map +1 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.js +2 -2
- package/lib/components/editor/edit-panel/FileGenerationViewer.js.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.js +2 -2
- 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 +4 -16
- package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.js +6 -32
- package/lib/components/editor/edit-panel/ModelImporter.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js +2 -3
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.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 +14 -15
- 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.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js +12 -6
- 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.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js +3 -3
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js +3 -4
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js +7 -8
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js.map +1 -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 +3 -3
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js.map +1 -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/ElementGenerationEditor.js +4 -5
- package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.js +2 -3
- package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.js.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js +2 -3
- package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +2 -3
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js +2 -3
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js +5 -9
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +12 -15
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js +9 -12
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js +4 -5
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js +4 -4
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js +4 -4
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.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 +17 -41
- 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.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/NewServiceModal.js +4 -5
- package/lib/components/editor/edit-panel/service-editor/NewServiceModal.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js +16 -16
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +6 -7
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js +9 -9
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.js +5 -5
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.js +4 -2
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.js +2 -3
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js +7 -5
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js +12 -8
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js +7 -5
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.js +4 -5
- package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +10 -7
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.js +3 -5
- package/lib/components/editor/side-bar/WorkflowManager.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.js +5 -32
- package/lib/components/editor/side-bar/WorkspaceReview.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.js +2 -26
- 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 +3 -4
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
- package/lib/components/project-viewer/ProjectViewer.d.ts.map +1 -1
- package/lib/components/project-viewer/ProjectViewer.js +19 -33
- package/lib/components/project-viewer/ProjectViewer.js.map +1 -1
- package/lib/components/shared/DiffView.d.ts.map +1 -1
- package/lib/components/shared/DiffView.js +4 -19
- package/lib/components/shared/DiffView.js.map +1 -1
- package/lib/components/workspace-review/WorkspaceReview.d.ts.map +1 -1
- package/lib/components/workspace-review/WorkspaceReview.js +8 -6
- package/lib/components/workspace-review/WorkspaceReview.js.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewPanel.js +2 -2
- package/lib/components/workspace-review/WorkspaceReviewPanel.js.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.js +1 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.js.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.js +10 -6
- package/lib/components/workspace-setup/CreateProjectModal.js.map +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.js +4 -5
- package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.d.ts.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.js +4 -1
- package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +5 -7
- package/lib/stores/EditorConfig.d.ts +0 -28
- package/lib/stores/EditorConfig.d.ts.map +1 -1
- package/lib/stores/EditorConfig.js +0 -29
- package/lib/stores/EditorConfig.js.map +1 -1
- package/lib/stores/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.js +8 -8
- package/lib/stores/EditorGraphState.js.map +1 -1
- package/lib/stores/EditorSDLCState.d.ts.map +1 -1
- package/lib/stores/EditorSDLCState.js +4 -2
- package/lib/stores/EditorSDLCState.js.map +1 -1
- package/lib/stores/EditorStore.d.ts +27 -30
- package/lib/stores/EditorStore.d.ts.map +1 -1
- package/lib/stores/EditorStore.js +183 -146
- package/lib/stores/EditorStore.js.map +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.d.ts +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.js +7 -8
- package/lib/stores/EmbeddedQueryBuilderState.js.map +1 -1
- package/lib/stores/LegendStudioBaseStore.d.ts +1 -1
- package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendStudioBaseStore.js +25 -17
- package/lib/stores/LegendStudioBaseStore.js.map +1 -1
- package/lib/stores/LegendStudioCommand.d.ts +32 -0
- package/lib/stores/LegendStudioCommand.d.ts.map +1 -0
- package/lib/stores/LegendStudioCommand.js +81 -0
- package/lib/stores/LegendStudioCommand.js.map +1 -0
- package/lib/stores/LegendStudioRouter.d.ts +15 -15
- package/lib/stores/LegendStudioRouter.d.ts.map +1 -1
- package/lib/stores/LegendStudioRouter.js +37 -24
- package/lib/stores/LegendStudioRouter.js.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.d.ts.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.js +2 -3
- 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 +21 -21
- package/lib/stores/editor-state/ModelImporterState.js.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js +2 -2
- package/lib/stores/editor-state/ProjectConfigurationEditorState.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 +1 -3
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
- 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 +1 -3
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.js +2 -2
- package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.js.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts +2 -4
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js +45 -44
- package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
- package/lib/stores/shared/MockDataUtils.d.ts.map +1 -1
- package/lib/stores/shared/MockDataUtils.js +3 -4
- package/lib/stores/shared/MockDataUtils.js.map +1 -1
- package/lib/stores/shared/testable/TestableUtils.d.ts.map +1 -1
- package/lib/stores/shared/testable/TestableUtils.js +6 -6
- package/lib/stores/shared/testable/TestableUtils.js.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.d.ts +1 -0
- package/lib/stores/sidebar-state/LocalChangesState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.js +28 -10
- 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 +3 -2
- package/lib/stores/sidebar-state/ProjectOverviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.js +10 -10
- 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 +6 -8
- 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 +20 -17
- 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 +8 -7
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js.map +1 -1
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js +6 -6
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js.map +1 -1
- package/package.json +14 -16
- package/src/application/LegendStudio.tsx +3 -9
- package/src/components/Core_LegendStudioApplicationPlugin.tsx +9 -0
- package/src/components/EditorComponentTestUtils.tsx +8 -2
- package/src/components/LegendStudioApplication.tsx +28 -8
- package/src/components/editor/ActivityBar.tsx +35 -73
- package/src/components/editor/Editor.tsx +135 -172
- package/src/components/editor/StatusBar.tsx +16 -13
- package/src/components/editor/aux-panel/AuxiliaryPanel.tsx +1 -1
- package/src/components/editor/command-center/ProjectSearchCommand.tsx +12 -16
- package/src/components/editor/edit-panel/EditPanel.tsx +14 -22
- package/src/components/editor/edit-panel/FileGenerationViewer.tsx +9 -11
- package/src/components/editor/edit-panel/FunctionEditor.tsx +2 -2
- package/src/components/editor/edit-panel/GrammarTextEditor.tsx +2 -18
- package/src/components/editor/edit-panel/ModelImporter.tsx +10 -38
- package/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx +2 -2
- package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +32 -33
- package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +28 -23
- package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +8 -9
- package/src/components/editor/edit-panel/data-editor/EmbeddedDataEditor.tsx +8 -10
- package/src/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.tsx +7 -8
- package/src/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.tsx +2 -2
- package/src/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.tsx +9 -5
- package/src/components/editor/edit-panel/element-generation-editor/ElementNativeView.tsx +2 -2
- package/src/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.tsx +5 -3
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +2 -3
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.tsx +2 -3
- package/src/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.tsx +3 -3
- package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx +5 -9
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +23 -27
- package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +20 -24
- package/src/components/editor/edit-panel/mapping-editor/NewMappingElementModal.tsx +4 -5
- package/src/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.tsx +4 -4
- package/src/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.tsx +4 -4
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +57 -75
- package/src/components/editor/edit-panel/service-editor/NewServiceModal.tsx +7 -5
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +16 -16
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +15 -14
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.tsx +9 -9
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.tsx +5 -5
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.tsx +4 -2
- package/src/components/editor/edit-panel/testable/TestAssertionEditor.tsx +2 -3
- package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +12 -5
- package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +17 -11
- package/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx +14 -5
- package/src/components/editor/side-bar/CreateNewElementModal.tsx +4 -5
- package/src/components/editor/side-bar/Explorer.tsx +31 -32
- package/src/components/editor/side-bar/WorkflowManager.tsx +3 -3
- package/src/components/editor/side-bar/WorkspaceReview.tsx +5 -35
- package/src/components/editor/side-bar/WorkspaceUpdater.tsx +2 -31
- package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +3 -4
- package/src/components/project-viewer/ProjectViewer.tsx +65 -78
- package/src/components/shared/DiffView.tsx +3 -22
- package/src/components/workspace-review/WorkspaceReview.tsx +26 -16
- package/src/components/workspace-review/WorkspaceReviewPanel.tsx +5 -9
- package/src/components/workspace-review/WorkspaceReviewSideBar.tsx +1 -1
- package/src/components/workspace-setup/CreateProjectModal.tsx +14 -10
- package/src/components/workspace-setup/CreateWorkspaceModal.tsx +6 -5
- package/src/components/workspace-setup/WorkspaceSetup.tsx +6 -1
- package/src/index.ts +0 -1
- package/src/stores/EditorConfig.ts +0 -30
- package/src/stores/EditorGraphState.ts +9 -8
- package/src/stores/EditorSDLCState.ts +4 -2
- package/src/stores/EditorStore.ts +231 -245
- package/src/stores/EmbeddedQueryBuilderState.ts +14 -9
- package/src/stores/LegendStudioBaseStore.ts +33 -24
- package/src/stores/LegendStudioCommand.ts +83 -0
- package/src/stores/LegendStudioRouter.ts +50 -41
- package/src/stores/editor-state/GraphGenerationState.ts +3 -2
- package/src/stores/editor-state/ModelImporterState.ts +35 -23
- package/src/stores/editor-state/ProjectConfigurationEditorState.ts +2 -2
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +1 -3
- package/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +1 -3
- package/src/stores/editor-state/element-editor-state/testable/TestAssertionState.ts +2 -1
- package/src/stores/project-viewer/ProjectViewerStore.ts +65 -59
- package/src/stores/shared/MockDataUtils.ts +4 -3
- package/src/stores/shared/testable/TestableUtils.ts +6 -5
- package/src/stores/sidebar-state/LocalChangesState.ts +29 -9
- package/src/stores/sidebar-state/ProjectOverviewState.ts +4 -2
- package/src/stores/sidebar-state/WorkspaceReviewState.ts +11 -10
- package/src/stores/sidebar-state/WorkspaceSyncState.ts +6 -8
- package/src/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.ts +20 -17
- package/src/stores/sidebar-state/WorkspaceUpdaterState.ts +8 -7
- package/src/stores/workspace-setup/WorkspaceSetupStore.ts +6 -6
- package/tsconfig.json +1 -2
- package/lib/components/shared/StudioLambdaEditor.d.ts +0 -41
- package/lib/components/shared/StudioLambdaEditor.d.ts.map +0 -1
- package/lib/components/shared/StudioLambdaEditor.js +0 -53
- package/lib/components/shared/StudioLambdaEditor.js.map +0 -1
- package/lib/components/shared/StudioTextInputEditor.d.ts +0 -28
- package/lib/components/shared/StudioTextInputEditor.d.ts.map +0 -1
- package/lib/components/shared/StudioTextInputEditor.js +0 -36
- package/lib/components/shared/StudioTextInputEditor.js.map +0 -1
- package/src/components/shared/StudioLambdaEditor.tsx +0 -146
- package/src/components/shared/StudioTextInputEditor.tsx +0 -83
package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx
CHANGED
|
@@ -39,7 +39,6 @@ import {
|
|
|
39
39
|
CheckCircleIcon,
|
|
40
40
|
ExclamationCircleIcon,
|
|
41
41
|
ExternalLinkSquareIcon,
|
|
42
|
-
ArchiveIcon,
|
|
43
42
|
Dialog,
|
|
44
43
|
Panel,
|
|
45
44
|
PanelForm,
|
|
@@ -48,6 +47,10 @@ import {
|
|
|
48
47
|
CheckSquareIcon,
|
|
49
48
|
SquareIcon,
|
|
50
49
|
ExclamationTriangleIcon,
|
|
50
|
+
DropdownMenu,
|
|
51
|
+
CaretDownIcon,
|
|
52
|
+
MenuContentItem,
|
|
53
|
+
MenuContent,
|
|
51
54
|
} from '@finos/legend-art';
|
|
52
55
|
import { flowResult } from 'mobx';
|
|
53
56
|
import {
|
|
@@ -58,8 +61,6 @@ import {
|
|
|
58
61
|
} from '@finos/legend-server-sdlc';
|
|
59
62
|
import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
60
63
|
import {
|
|
61
|
-
ActionAlertActionType,
|
|
62
|
-
ActionAlertType,
|
|
63
64
|
DocumentationPreview,
|
|
64
65
|
EDITOR_LANGUAGE,
|
|
65
66
|
LEGEND_APPLICATION_DOCUMENTATION_KEY,
|
|
@@ -73,11 +74,11 @@ import {
|
|
|
73
74
|
type ProjectData,
|
|
74
75
|
type ProjectDependencyInfo,
|
|
75
76
|
} from '@finos/legend-server-depot';
|
|
76
|
-
import { generateViewProjectRoute } from '../../../../stores/LegendStudioRouter.js';
|
|
77
77
|
import {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
} from '
|
|
78
|
+
generateViewProjectByGAVRoute,
|
|
79
|
+
generateViewProjectRoute,
|
|
80
|
+
} from '../../../../stores/LegendStudioRouter.js';
|
|
81
|
+
import { compareSemVerVersions } from '@finos/legend-storage';
|
|
81
82
|
|
|
82
83
|
interface VersionOption {
|
|
83
84
|
label: string;
|
|
@@ -326,26 +327,24 @@ const ProjectDependencyEditor = observer(
|
|
|
326
327
|
}
|
|
327
328
|
}
|
|
328
329
|
};
|
|
329
|
-
const
|
|
330
|
+
const viewProject = (): void => {
|
|
330
331
|
if (!projectDependency.isLegacyDependency) {
|
|
331
|
-
const projectDependencyVersionId =
|
|
332
|
-
projectDependency.versionId === MASTER_SNAPSHOT_ALIAS
|
|
333
|
-
? SNAPSHOT_VERSION_ALIAS
|
|
334
|
-
: projectDependency.versionId;
|
|
335
332
|
applicationStore.navigator.visitAddress(
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
333
|
+
applicationStore.navigator.generateAddress(
|
|
334
|
+
generateViewProjectByGAVRoute(
|
|
335
|
+
guaranteeNonNullable(projectDependency.groupId),
|
|
336
|
+
guaranteeNonNullable(projectDependency.artifactId),
|
|
337
|
+
projectDependency.versionId === MASTER_SNAPSHOT_ALIAS
|
|
338
|
+
? SNAPSHOT_VERSION_ALIAS
|
|
339
|
+
: projectDependency.versionId,
|
|
340
|
+
),
|
|
341
|
+
),
|
|
343
342
|
);
|
|
344
343
|
}
|
|
345
344
|
};
|
|
346
345
|
// NOTE: This assumes that the dependant project is in the same studio instance as the current project
|
|
347
346
|
// In the future, the studio instance may be part of the project data
|
|
348
|
-
const
|
|
347
|
+
const viewSDLCProject = (): void => {
|
|
349
348
|
if (projectDependencyData) {
|
|
350
349
|
applicationStore.navigator.visitAddress(
|
|
351
350
|
applicationStore.navigator.generateAddress(
|
|
@@ -391,33 +390,41 @@ const ProjectDependencyEditor = observer(
|
|
|
391
390
|
}
|
|
392
391
|
darkMode={true}
|
|
393
392
|
/>
|
|
394
|
-
<
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
393
|
+
<div className="project-dependency-editor__visit-project-btn">
|
|
394
|
+
<button
|
|
395
|
+
className="project-dependency-editor__visit-project-btn__btn btn--dark"
|
|
396
|
+
disabled={
|
|
397
|
+
projectDependency.isLegacyDependency ||
|
|
398
|
+
!selectedProject ||
|
|
399
|
+
!selectedVersionOption
|
|
400
|
+
}
|
|
401
|
+
onClick={viewProject}
|
|
402
|
+
tabIndex={-1}
|
|
403
|
+
title="View project"
|
|
404
|
+
>
|
|
405
|
+
<ExternalLinkSquareIcon />
|
|
406
|
+
</button>
|
|
407
|
+
<DropdownMenu
|
|
408
|
+
className="project-dependency-editor__visit-project-btn__dropdown-trigger btn--dark"
|
|
409
|
+
content={
|
|
410
|
+
<MenuContent>
|
|
411
|
+
<MenuContentItem
|
|
412
|
+
disabled={
|
|
413
|
+
projectDependency.isLegacyDependency ||
|
|
414
|
+
!selectedProject ||
|
|
415
|
+
!selectedVersionOption ||
|
|
416
|
+
!projectDependencyData
|
|
417
|
+
}
|
|
418
|
+
onClick={viewSDLCProject}
|
|
419
|
+
>
|
|
420
|
+
View SDLC project
|
|
421
|
+
</MenuContentItem>
|
|
422
|
+
</MenuContent>
|
|
423
|
+
}
|
|
424
|
+
>
|
|
425
|
+
<CaretDownIcon title="Show more options..." />
|
|
426
|
+
</DropdownMenu>
|
|
427
|
+
</div>
|
|
421
428
|
<button
|
|
422
429
|
className="project-dependency-editor__remove-btn btn--dark btn--caution"
|
|
423
430
|
disabled={isReadOnly}
|
|
@@ -711,38 +718,13 @@ export const ProjectConfigurationEditor = observer(() => {
|
|
|
711
718
|
}
|
|
712
719
|
};
|
|
713
720
|
const disableAddButton =
|
|
714
|
-
selectedTab
|
|
721
|
+
selectedTab !== CONFIGURATION_EDITOR_TAB.PROJECT_DEPENDENCIES || isReadOnly;
|
|
715
722
|
const updateConfigs = (): void => {
|
|
716
|
-
|
|
717
|
-
editorStore.setActionAlertInfo({
|
|
718
|
-
message: 'You have unpushed changes',
|
|
719
|
-
prompt:
|
|
720
|
-
'This action will discard these changes and refresh the application',
|
|
721
|
-
type: ActionAlertType.CAUTION,
|
|
722
|
-
onEnter: (): void => editorStore.setBlockGlobalHotkeys(true),
|
|
723
|
-
onClose: (): void => editorStore.setBlockGlobalHotkeys(false),
|
|
724
|
-
actions: [
|
|
725
|
-
{
|
|
726
|
-
label: 'Proceed to update project dependencies',
|
|
727
|
-
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
|
728
|
-
handler: (): void => {
|
|
729
|
-
flowResult(configState.updateConfigs()).catch(
|
|
730
|
-
applicationStore.alertUnhandledError,
|
|
731
|
-
);
|
|
732
|
-
},
|
|
733
|
-
},
|
|
734
|
-
{
|
|
735
|
-
label: 'Abort',
|
|
736
|
-
type: ActionAlertActionType.PROCEED,
|
|
737
|
-
default: true,
|
|
738
|
-
},
|
|
739
|
-
],
|
|
740
|
-
});
|
|
741
|
-
} else {
|
|
723
|
+
editorStore.localChangesState.alertUnsavedChanges((): void => {
|
|
742
724
|
flowResult(configState.updateConfigs()).catch(
|
|
743
725
|
applicationStore.alertUnhandledError,
|
|
744
726
|
);
|
|
745
|
-
}
|
|
727
|
+
});
|
|
746
728
|
};
|
|
747
729
|
useEffect(() => {
|
|
748
730
|
if (
|
|
@@ -61,10 +61,6 @@ export const NewServiceModal = observer(
|
|
|
61
61
|
.catch(applicationStore.alertUnhandledError);
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
const onSubmit = (event: React.FormEvent<HTMLFormElement>): void => {
|
|
65
|
-
event.preventDefault();
|
|
66
|
-
create();
|
|
67
|
-
};
|
|
68
64
|
const changeValue: React.ChangeEventHandler<HTMLInputElement> = (event) =>
|
|
69
65
|
setServicePath(event.target.value);
|
|
70
66
|
return (
|
|
@@ -80,7 +76,13 @@ export const NewServiceModal = observer(
|
|
|
80
76
|
},
|
|
81
77
|
}}
|
|
82
78
|
>
|
|
83
|
-
<form
|
|
79
|
+
<form
|
|
80
|
+
onSubmit={(event) => {
|
|
81
|
+
event.preventDefault();
|
|
82
|
+
create();
|
|
83
|
+
}}
|
|
84
|
+
className="modal search-modal modal--dark"
|
|
85
|
+
>
|
|
84
86
|
<div className="modal__title">Promote to Service</div>
|
|
85
87
|
<div className="input-group">
|
|
86
88
|
<input
|
|
@@ -334,10 +334,6 @@ export const ChangeExecutionModal = observer(
|
|
|
334
334
|
const closeModal = (): void => executionState.setShowChangeExecModal(false);
|
|
335
335
|
const isChangingToMulti =
|
|
336
336
|
executionState instanceof SingleServicePureExecutionState;
|
|
337
|
-
const handleSubmit = (): void => {
|
|
338
|
-
executionState.changeExecution();
|
|
339
|
-
closeModal();
|
|
340
|
-
};
|
|
341
337
|
const renderChangeExecution = (): React.ReactNode => {
|
|
342
338
|
if (executionState instanceof SingleServicePureExecutionState) {
|
|
343
339
|
const keyValue = executionState.multiExecutionKey;
|
|
@@ -404,7 +400,11 @@ export const ChangeExecutionModal = observer(
|
|
|
404
400
|
PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
|
|
405
401
|
>
|
|
406
402
|
<form
|
|
407
|
-
onSubmit={
|
|
403
|
+
onSubmit={(event) => {
|
|
404
|
+
event.preventDefault();
|
|
405
|
+
executionState.changeExecution();
|
|
406
|
+
closeModal();
|
|
407
|
+
}}
|
|
408
408
|
className="modal modal--dark search-modal"
|
|
409
409
|
>
|
|
410
410
|
<div className="modal__title">
|
|
@@ -553,11 +553,6 @@ export const NewExecutionParameterModal = observer(
|
|
|
553
553
|
|
|
554
554
|
const closeModal = (): void =>
|
|
555
555
|
executionState.setNewKeyParameterModal(false);
|
|
556
|
-
const handleSubmit = (): void => {
|
|
557
|
-
executionState.addExecutionParameter(keyValue);
|
|
558
|
-
setKeyValue('');
|
|
559
|
-
closeModal();
|
|
560
|
-
};
|
|
561
556
|
const onChange: React.ChangeEventHandler<HTMLInputElement> = (event) => {
|
|
562
557
|
setKeyValue(event.target.value);
|
|
563
558
|
};
|
|
@@ -569,7 +564,12 @@ export const NewExecutionParameterModal = observer(
|
|
|
569
564
|
PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
|
|
570
565
|
>
|
|
571
566
|
<form
|
|
572
|
-
onSubmit={
|
|
567
|
+
onSubmit={(event) => {
|
|
568
|
+
event.preventDefault();
|
|
569
|
+
executionState.addExecutionParameter(keyValue);
|
|
570
|
+
setKeyValue('');
|
|
571
|
+
closeModal();
|
|
572
|
+
}}
|
|
573
573
|
className="modal modal--dark search-modal"
|
|
574
574
|
>
|
|
575
575
|
<div className="modal__title">New Execution Context</div>
|
|
@@ -607,10 +607,6 @@ const RenameModal = observer(
|
|
|
607
607
|
}) => {
|
|
608
608
|
const { val, isReadOnly, showModal, closeModal, setValue } = props;
|
|
609
609
|
const [inputValue, setInputValue] = useState(val);
|
|
610
|
-
const handleSubmit = (): void => {
|
|
611
|
-
setValue(inputValue);
|
|
612
|
-
closeModal();
|
|
613
|
-
};
|
|
614
610
|
const changeValue: React.ChangeEventHandler<HTMLInputElement> = (event) => {
|
|
615
611
|
setInputValue(event.target.value);
|
|
616
612
|
};
|
|
@@ -622,7 +618,11 @@ const RenameModal = observer(
|
|
|
622
618
|
PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
|
|
623
619
|
>
|
|
624
620
|
<form
|
|
625
|
-
onSubmit={
|
|
621
|
+
onSubmit={(event) => {
|
|
622
|
+
event.preventDefault();
|
|
623
|
+
setValue(inputValue);
|
|
624
|
+
closeModal();
|
|
625
|
+
}}
|
|
626
626
|
className="modal modal--dark search-modal"
|
|
627
627
|
>
|
|
628
628
|
<div className="modal__title">Rename</div>
|
|
@@ -42,9 +42,9 @@ import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
|
42
42
|
import {
|
|
43
43
|
EDITOR_LANGUAGE,
|
|
44
44
|
ExecutionPlanViewer,
|
|
45
|
+
TextInputEditor,
|
|
45
46
|
useApplicationStore,
|
|
46
47
|
} from '@finos/legend-application';
|
|
47
|
-
import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js';
|
|
48
48
|
import {
|
|
49
49
|
type LightQuery,
|
|
50
50
|
isStubbed_PackageableElement,
|
|
@@ -80,7 +80,7 @@ const ServiceExecutionResultViewer = observer(
|
|
|
80
80
|
<div className="modal__title">Execution Result</div>
|
|
81
81
|
</div>
|
|
82
82
|
<div className="modal__body">
|
|
83
|
-
<
|
|
83
|
+
<TextInputEditor
|
|
84
84
|
inputValue={executionResultText ?? ''}
|
|
85
85
|
isReadOnly={true}
|
|
86
86
|
language={EDITOR_LANGUAGE.JSON}
|
|
@@ -209,7 +209,7 @@ const ServiceExecutionQueryImporter = observer(
|
|
|
209
209
|
isLoading={queryState.loadQueryInfoState.isInProgress}
|
|
210
210
|
/>
|
|
211
211
|
{queryState.selectedQueryInfo && (
|
|
212
|
-
<
|
|
212
|
+
<TextInputEditor
|
|
213
213
|
inputValue={queryState.selectedQueryInfo.content}
|
|
214
214
|
isReadOnly={true}
|
|
215
215
|
language={EDITOR_LANGUAGE.PURE}
|
|
@@ -264,6 +264,7 @@ export const ServiceExecutionQueryEditor = observer(
|
|
|
264
264
|
embeddedQueryBuilderState.editorStore.applicationStore,
|
|
265
265
|
embeddedQueryBuilderState.editorStore.graphManagerState,
|
|
266
266
|
service,
|
|
267
|
+
undefined,
|
|
267
268
|
selectedExecutionState.executionContext instanceof
|
|
268
269
|
KeyedExecutionParameter
|
|
269
270
|
? selectedExecutionState.executionContext.key
|
|
@@ -396,19 +397,19 @@ export const ServiceExecutionQueryEditor = observer(
|
|
|
396
397
|
</div>
|
|
397
398
|
</button>
|
|
398
399
|
) : (
|
|
399
|
-
<
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
400
|
+
<div className="service-editor__execution__execute-btn">
|
|
401
|
+
<button
|
|
402
|
+
className="service-editor__execution__execute-btn__label"
|
|
403
|
+
onClick={runQuery}
|
|
404
|
+
title="Run Query"
|
|
405
|
+
disabled={executionState.isGeneratingPlan}
|
|
406
|
+
tabIndex={-1}
|
|
407
|
+
>
|
|
407
408
|
<PlayIcon className="service-editor__execution__execute-btn__label__icon" />
|
|
408
409
|
<div className="service-editor__execution__execute-btn__label__title">
|
|
409
410
|
Run Query
|
|
410
411
|
</div>
|
|
411
|
-
</
|
|
412
|
+
</button>
|
|
412
413
|
<DropdownMenu
|
|
413
414
|
className="service-editor__execution__execute-btn__dropdown-btn"
|
|
414
415
|
disabled={executionState.isGeneratingPlan}
|
|
@@ -435,7 +436,7 @@ export const ServiceExecutionQueryEditor = observer(
|
|
|
435
436
|
>
|
|
436
437
|
<CaretDownIcon />
|
|
437
438
|
</DropdownMenu>
|
|
438
|
-
</
|
|
439
|
+
</div>
|
|
439
440
|
)}
|
|
440
441
|
</div>
|
|
441
442
|
</div>
|
|
@@ -448,7 +449,7 @@ export const ServiceExecutionQueryEditor = observer(
|
|
|
448
449
|
}
|
|
449
450
|
/>
|
|
450
451
|
<div className="service-execution-query-editor__content">
|
|
451
|
-
<
|
|
452
|
+
<TextInputEditor
|
|
452
453
|
inputValue={queryState.lambdaString}
|
|
453
454
|
isReadOnly={true}
|
|
454
455
|
language={EDITOR_LANGUAGE.PURE}
|
|
@@ -253,14 +253,6 @@ export const NewConnectionDataModal = observer(
|
|
|
253
253
|
(c) => c.connectionId === selectedConnection?.value.id,
|
|
254
254
|
),
|
|
255
255
|
);
|
|
256
|
-
const handleSubmit = (): void => {
|
|
257
|
-
const connection = newConnectionState.connection;
|
|
258
|
-
const data = newConnectionState.embeddedDataType;
|
|
259
|
-
if (connection && data) {
|
|
260
|
-
testDataState.createConnectionTestData();
|
|
261
|
-
closeModal();
|
|
262
|
-
}
|
|
263
|
-
};
|
|
264
256
|
const onConnectionSelectionChange = (val: {
|
|
265
257
|
label: string;
|
|
266
258
|
value?: IdentifiedConnection;
|
|
@@ -309,7 +301,15 @@ export const NewConnectionDataModal = observer(
|
|
|
309
301
|
PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
|
|
310
302
|
>
|
|
311
303
|
<form
|
|
312
|
-
onSubmit={
|
|
304
|
+
onSubmit={(event) => {
|
|
305
|
+
event.preventDefault();
|
|
306
|
+
const connection = newConnectionState.connection;
|
|
307
|
+
const data = newConnectionState.embeddedDataType;
|
|
308
|
+
if (connection && data) {
|
|
309
|
+
testDataState.createConnectionTestData();
|
|
310
|
+
closeModal();
|
|
311
|
+
}
|
|
312
|
+
}}
|
|
313
313
|
className="modal service-test-data-modal modal--dark"
|
|
314
314
|
>
|
|
315
315
|
<div className="modal__header">
|
|
@@ -101,10 +101,6 @@ export const RenameModal = observer(
|
|
|
101
101
|
}) => {
|
|
102
102
|
const { val, isReadOnly, showModal, closeModal, setValue } = props;
|
|
103
103
|
const [inputValue, setInputValue] = useState(val);
|
|
104
|
-
const handleSubmit = (): void => {
|
|
105
|
-
setValue(inputValue);
|
|
106
|
-
closeModal();
|
|
107
|
-
};
|
|
108
104
|
const changeValue: React.ChangeEventHandler<HTMLInputElement> = (event) => {
|
|
109
105
|
setInputValue(event.target.value);
|
|
110
106
|
};
|
|
@@ -116,7 +112,11 @@ export const RenameModal = observer(
|
|
|
116
112
|
PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
|
|
117
113
|
>
|
|
118
114
|
<form
|
|
119
|
-
onSubmit={
|
|
115
|
+
onSubmit={(event) => {
|
|
116
|
+
event.preventDefault();
|
|
117
|
+
setValue(inputValue);
|
|
118
|
+
closeModal();
|
|
119
|
+
}}
|
|
120
120
|
className="modal modal--dark search-modal"
|
|
121
121
|
>
|
|
122
122
|
<div className="modal__title">Rename</div>
|
|
@@ -159,7 +159,6 @@ export const NewParameterModal = observer(
|
|
|
159
159
|
};
|
|
160
160
|
const options = setupState.newParamOptions;
|
|
161
161
|
const closeModal = (): void => setupState.setShowNewParameterModal(false);
|
|
162
|
-
const handleSubmit = (): void => setupState.addParameterValue();
|
|
163
162
|
const onChange = (val: { label: string; value: string } | null): void => {
|
|
164
163
|
if (val === null) {
|
|
165
164
|
setupState.setNewParameterValueName('');
|
|
@@ -175,7 +174,10 @@ export const NewParameterModal = observer(
|
|
|
175
174
|
PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
|
|
176
175
|
>
|
|
177
176
|
<form
|
|
178
|
-
onSubmit={
|
|
177
|
+
onSubmit={(event) => {
|
|
178
|
+
event.preventDefault();
|
|
179
|
+
setupState.addParameterValue();
|
|
180
|
+
}}
|
|
179
181
|
className="modal modal--dark search-modal"
|
|
180
182
|
>
|
|
181
183
|
<div className="modal__title">New Test Parameter Value </div>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { EDITOR_LANGUAGE } from '@finos/legend-application';
|
|
17
|
+
import { EDITOR_LANGUAGE, TextInputEditor } from '@finos/legend-application';
|
|
18
18
|
import {
|
|
19
19
|
clsx,
|
|
20
20
|
CompareIcon,
|
|
@@ -43,7 +43,6 @@ import {
|
|
|
43
43
|
import { externalFormatData_setData } from '../../../../stores/shared/modifier/DSL_Data_GraphModifierHelper.js';
|
|
44
44
|
import { TESTABLE_RESULT } from '../../../../stores/sidebar-state/testable/GlobalTestRunnerState.js';
|
|
45
45
|
import { JsonDiffView } from '../../../shared/DiffView.js';
|
|
46
|
-
import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js';
|
|
47
46
|
import { UnsupportedEditorPanel } from '../UnsupportedElementEditor.js';
|
|
48
47
|
|
|
49
48
|
const EqualToJsonAsssertionEditor = observer(
|
|
@@ -80,7 +79,7 @@ const EqualToJsonAsssertionEditor = observer(
|
|
|
80
79
|
</div>
|
|
81
80
|
<div className="equal-to-json-editor__content panel__content">
|
|
82
81
|
<div className="equal-to-json-editor__content__data">
|
|
83
|
-
<
|
|
82
|
+
<TextInputEditor
|
|
84
83
|
inputValue={assertion.expected.data}
|
|
85
84
|
language={EDITOR_LANGUAGE.JSON}
|
|
86
85
|
updateInput={(val: string): void => {
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
ResizablePanelGroup,
|
|
36
36
|
ResizablePanelSplitterLine,
|
|
37
37
|
BlankPanelContent,
|
|
38
|
-
|
|
38
|
+
getCollapsiblePanelGroupProps,
|
|
39
39
|
InputWithInlineValidation,
|
|
40
40
|
LockIcon,
|
|
41
41
|
PlusIcon,
|
|
@@ -440,13 +440,22 @@ export const AssociationEditor = observer(
|
|
|
440
440
|
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.ASSOCIATION_EDITOR,
|
|
441
441
|
);
|
|
442
442
|
|
|
443
|
+
// layout
|
|
444
|
+
const propertyEditorCollapsiblePanelGroupProps =
|
|
445
|
+
getCollapsiblePanelGroupProps(!selectedProperty, {
|
|
446
|
+
size: 250,
|
|
447
|
+
});
|
|
448
|
+
|
|
443
449
|
return (
|
|
444
450
|
<div
|
|
445
451
|
data-testid={LEGEND_STUDIO_TEST_ID.ASSOCIATION_EDITOR}
|
|
446
452
|
className="uml-element-editor association-editor"
|
|
447
453
|
>
|
|
448
454
|
<ResizablePanelGroup orientation="horizontal">
|
|
449
|
-
<ResizablePanel
|
|
455
|
+
<ResizablePanel
|
|
456
|
+
{...propertyEditorCollapsiblePanelGroupProps.remainingPanel}
|
|
457
|
+
minSize={56}
|
|
458
|
+
>
|
|
450
459
|
<Panel>
|
|
451
460
|
<div className="panel__header">
|
|
452
461
|
<div className="panel__header__title">
|
|
@@ -561,9 +570,7 @@ export const AssociationEditor = observer(
|
|
|
561
570
|
<ResizablePanelSplitterLine color="var(--color-light-grey-200)" />
|
|
562
571
|
</ResizablePanelSplitter>
|
|
563
572
|
<ResizablePanel
|
|
564
|
-
{...
|
|
565
|
-
size: 250,
|
|
566
|
-
})}
|
|
573
|
+
{...propertyEditorCollapsiblePanelGroupProps.collapsiblePanel}
|
|
567
574
|
direction={-1}
|
|
568
575
|
>
|
|
569
576
|
{selectedProperty ? (
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
ResizablePanelSplitter,
|
|
32
32
|
ResizablePanelSplitterLine,
|
|
33
33
|
BlankPanelContent,
|
|
34
|
-
|
|
34
|
+
getCollapsiblePanelGroupProps,
|
|
35
35
|
InputWithInlineValidation,
|
|
36
36
|
LockIcon,
|
|
37
37
|
PlusIcon,
|
|
@@ -93,7 +93,6 @@ import {
|
|
|
93
93
|
getAllClassDerivedProperties,
|
|
94
94
|
isElementReadOnly,
|
|
95
95
|
} from '@finos/legend-graph';
|
|
96
|
-
import { StudioLambdaEditor } from '../../../shared/StudioLambdaEditor.js';
|
|
97
96
|
import {
|
|
98
97
|
ApplicationNavigationContextData,
|
|
99
98
|
buildElementOption,
|
|
@@ -134,6 +133,7 @@ import {
|
|
|
134
133
|
getClassPropertyType,
|
|
135
134
|
} from '../../../../stores/shared/ModelClassifierUtils.js';
|
|
136
135
|
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../stores/LegendStudioApplicationNavigationContext.js';
|
|
136
|
+
import { LambdaEditor } from '@finos/legend-query-builder';
|
|
137
137
|
|
|
138
138
|
type ClassPropertyDragSource = {
|
|
139
139
|
property: Property;
|
|
@@ -811,7 +811,7 @@ const DerivedPropertyBasicEditor = observer(
|
|
|
811
811
|
</button>
|
|
812
812
|
)}
|
|
813
813
|
</div>
|
|
814
|
-
<
|
|
814
|
+
<LambdaEditor
|
|
815
815
|
disabled={
|
|
816
816
|
editorState.classState
|
|
817
817
|
.isConvertingDerivedPropertyLambdaObjects ||
|
|
@@ -821,7 +821,7 @@ const DerivedPropertyBasicEditor = observer(
|
|
|
821
821
|
lambdaEditorState={dpState}
|
|
822
822
|
forceBackdrop={hasParserError}
|
|
823
823
|
expectedType={propertyType}
|
|
824
|
-
|
|
824
|
+
onEditorFocus={onLambdaEditorFocus}
|
|
825
825
|
/>
|
|
826
826
|
</div>
|
|
827
827
|
</PanelEntryDropZonePlaceholder>
|
|
@@ -971,7 +971,7 @@ const ConstraintEditor = observer(
|
|
|
971
971
|
</button>
|
|
972
972
|
)}
|
|
973
973
|
</div>
|
|
974
|
-
<
|
|
974
|
+
<LambdaEditor
|
|
975
975
|
disabled={
|
|
976
976
|
editorState.classState.isConvertingConstraintLambdaObjects ||
|
|
977
977
|
isReadOnly ||
|
|
@@ -982,7 +982,7 @@ const ConstraintEditor = observer(
|
|
|
982
982
|
expectedType={editorStore.graphManagerState.graph.getPrimitiveType(
|
|
983
983
|
PRIMITIVE_TYPE.BOOLEAN,
|
|
984
984
|
)}
|
|
985
|
-
|
|
985
|
+
onEditorFocus={onLambdaEditorFocus}
|
|
986
986
|
/>
|
|
987
987
|
</div>
|
|
988
988
|
</PanelEntryDropZonePlaceholder>
|
|
@@ -1688,13 +1688,22 @@ export const ClassFormEditor = observer(
|
|
|
1688
1688
|
);
|
|
1689
1689
|
}, [applicationStore, classState]);
|
|
1690
1690
|
|
|
1691
|
+
// layout
|
|
1692
|
+
const propertyEditorCollapsiblePanelGroupProps =
|
|
1693
|
+
getCollapsiblePanelGroupProps(!editorState.selectedProperty, {
|
|
1694
|
+
size: 250,
|
|
1695
|
+
});
|
|
1696
|
+
|
|
1691
1697
|
return (
|
|
1692
1698
|
<div
|
|
1693
1699
|
data-testid={LEGEND_STUDIO_TEST_ID.CLASS_FORM_EDITOR}
|
|
1694
1700
|
className="uml-element-editor class-form-editor"
|
|
1695
1701
|
>
|
|
1696
1702
|
<ResizablePanelGroup orientation="horizontal">
|
|
1697
|
-
<ResizablePanel
|
|
1703
|
+
<ResizablePanel
|
|
1704
|
+
{...propertyEditorCollapsiblePanelGroupProps.remainingPanel}
|
|
1705
|
+
minSize={56}
|
|
1706
|
+
>
|
|
1698
1707
|
<Panel>
|
|
1699
1708
|
<div className="panel__header">
|
|
1700
1709
|
<div className="panel__header__title">
|
|
@@ -1804,10 +1813,7 @@ export const ClassFormEditor = observer(
|
|
|
1804
1813
|
<ResizablePanelSplitterLine color="var(--color-light-grey-200)" />
|
|
1805
1814
|
</ResizablePanelSplitter>
|
|
1806
1815
|
<ResizablePanel
|
|
1807
|
-
{...
|
|
1808
|
-
!editorState.selectedProperty,
|
|
1809
|
-
{ size: 250 },
|
|
1810
|
-
)}
|
|
1816
|
+
{...propertyEditorCollapsiblePanelGroupProps.collapsiblePanel}
|
|
1811
1817
|
direction={-1}
|
|
1812
1818
|
>
|
|
1813
1819
|
{editorState.selectedProperty ? (
|
|
@@ -30,7 +30,7 @@ import { prettyCONSTName } from '@finos/legend-shared';
|
|
|
30
30
|
import {
|
|
31
31
|
BlankPanelContent,
|
|
32
32
|
clsx,
|
|
33
|
-
|
|
33
|
+
getCollapsiblePanelGroupProps,
|
|
34
34
|
InputWithInlineValidation,
|
|
35
35
|
ResizablePanel,
|
|
36
36
|
ResizablePanelGroup,
|
|
@@ -541,13 +541,24 @@ export const EnumerationEditor = observer(
|
|
|
541
541
|
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.ENUMERATION_EDITOR,
|
|
542
542
|
);
|
|
543
543
|
|
|
544
|
+
// layout
|
|
545
|
+
const enumEditorCollapsiblePanelGroupProps = getCollapsiblePanelGroupProps(
|
|
546
|
+
!selectedEnum,
|
|
547
|
+
{
|
|
548
|
+
size: 250,
|
|
549
|
+
},
|
|
550
|
+
);
|
|
551
|
+
|
|
544
552
|
return (
|
|
545
553
|
<div
|
|
546
554
|
data-testid={LEGEND_STUDIO_TEST_ID.ENUMERATION_EDITOR}
|
|
547
555
|
className="uml-element-editor enumeration-editor"
|
|
548
556
|
>
|
|
549
557
|
<ResizablePanelGroup orientation="horizontal">
|
|
550
|
-
<ResizablePanel
|
|
558
|
+
<ResizablePanel
|
|
559
|
+
{...enumEditorCollapsiblePanelGroupProps.remainingPanel}
|
|
560
|
+
minSize={56}
|
|
561
|
+
>
|
|
551
562
|
<Panel>
|
|
552
563
|
<div className="panel__header">
|
|
553
564
|
<div className="panel__header__title">
|
|
@@ -674,9 +685,7 @@ export const EnumerationEditor = observer(
|
|
|
674
685
|
<ResizablePanelSplitterLine color="var(--color-light-grey-200)" />
|
|
675
686
|
</ResizablePanelSplitter>
|
|
676
687
|
<ResizablePanel
|
|
677
|
-
{...
|
|
678
|
-
size: 250,
|
|
679
|
-
})}
|
|
688
|
+
{...enumEditorCollapsiblePanelGroupProps.collapsiblePanel}
|
|
680
689
|
direction={-1}
|
|
681
690
|
>
|
|
682
691
|
{selectedEnum ? (
|