@finos/legend-application-studio 18.0.2 → 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 +18 -19
- 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 +13 -7
- 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 +65 -54
- 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 +27 -18
- 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.d.ts +2 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js +10 -4
- 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 +37 -38
- package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +29 -24
- 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 +273 -121
- 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 +35 -25
- 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 +16 -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
|
@@ -31,31 +31,30 @@ import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js';
|
|
|
31
31
|
import { ACTIVITY_MODE } from '../../stores/EditorConfig.js';
|
|
32
32
|
import {
|
|
33
33
|
generateSetupRoute,
|
|
34
|
-
type
|
|
35
|
-
type GroupEditorPathParams,
|
|
34
|
+
type WorkspaceEditorPathParams,
|
|
36
35
|
} from '../../stores/LegendStudioRouter.js';
|
|
37
36
|
import { flowResult } from 'mobx';
|
|
38
37
|
import { useEditorStore } from './EditorStoreProvider.js';
|
|
39
38
|
import { WorkspaceType } from '@finos/legend-server-sdlc';
|
|
40
39
|
import { useLegendStudioApplicationStore } from '../LegendStudioBaseStoreProvider.js';
|
|
41
40
|
import { useParams } from '@finos/legend-application';
|
|
41
|
+
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
42
42
|
|
|
43
43
|
export const StatusBar = observer((props: { actionsDisabled: boolean }) => {
|
|
44
44
|
const { actionsDisabled } = props;
|
|
45
|
-
const params = useParams<
|
|
45
|
+
const params = useParams<WorkspaceEditorPathParams>();
|
|
46
46
|
const editorStore = useEditorStore();
|
|
47
47
|
const applicationStore = useLegendStudioApplicationStore();
|
|
48
48
|
const isInConflictResolutionMode = editorStore.isInConflictResolutionMode;
|
|
49
49
|
// SDLC
|
|
50
50
|
const projectId = params.projectId;
|
|
51
|
-
const workspaceType =
|
|
52
|
-
.groupWorkspaceId
|
|
51
|
+
const workspaceType = params.groupWorkspaceId
|
|
53
52
|
? WorkspaceType.GROUP
|
|
54
53
|
: WorkspaceType.USER;
|
|
55
|
-
const workspaceId =
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
const workspaceId = guaranteeNonNullable(
|
|
55
|
+
params.groupWorkspaceId ?? params.workspaceId,
|
|
56
|
+
`Workspace/group workspace ID is not provided`,
|
|
57
|
+
);
|
|
59
58
|
const currentProject = editorStore.sdlcState.currentProject;
|
|
60
59
|
const goToWorkspaceUpdater = (): void =>
|
|
61
60
|
editorStore.setActiveActivity(
|
|
@@ -155,8 +154,10 @@ export const StatusBar = observer((props: { actionsDisabled: boolean }) => {
|
|
|
155
154
|
title="Go back to workspace setup using the specified project"
|
|
156
155
|
tabIndex={-1}
|
|
157
156
|
onClick={(): void =>
|
|
158
|
-
applicationStore.navigator.
|
|
159
|
-
|
|
157
|
+
applicationStore.navigator.visitAddress(
|
|
158
|
+
applicationStore.navigator.generateAddress(
|
|
159
|
+
generateSetupRoute(projectId),
|
|
160
|
+
),
|
|
160
161
|
)
|
|
161
162
|
}
|
|
162
163
|
>
|
|
@@ -168,8 +169,10 @@ export const StatusBar = observer((props: { actionsDisabled: boolean }) => {
|
|
|
168
169
|
title="Go back to workspace setup using the specified workspace"
|
|
169
170
|
tabIndex={-1}
|
|
170
171
|
onClick={(): void =>
|
|
171
|
-
applicationStore.navigator.
|
|
172
|
-
|
|
172
|
+
applicationStore.navigator.visitAddress(
|
|
173
|
+
applicationStore.navigator.generateAddress(
|
|
174
|
+
generateSetupRoute(projectId, workspaceId, workspaceType),
|
|
175
|
+
),
|
|
173
176
|
)
|
|
174
177
|
}
|
|
175
178
|
>
|
|
@@ -98,6 +98,8 @@ export const ProjectSearchCommand = observer(() => {
|
|
|
98
98
|
<div className="modal search-modal modal--dark">
|
|
99
99
|
<div className="project-search-command">
|
|
100
100
|
<DropdownMenu
|
|
101
|
+
className="project-search-command__type"
|
|
102
|
+
title="Choose Element Type..."
|
|
101
103
|
content={
|
|
102
104
|
<div className="project-search-command__options">
|
|
103
105
|
<div
|
|
@@ -118,22 +120,16 @@ export const ProjectSearchCommand = observer(() => {
|
|
|
118
120
|
</div>
|
|
119
121
|
}
|
|
120
122
|
>
|
|
121
|
-
<
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
)}
|
|
132
|
-
</div>
|
|
133
|
-
<div className="project-search-command__type__selector">
|
|
134
|
-
<CaretDownIcon />
|
|
135
|
-
</div>
|
|
136
|
-
</button>
|
|
123
|
+
<div className="project-search-command__type__label">
|
|
124
|
+
{elementType ? (
|
|
125
|
+
getElementTypeIcon(editorStore, elementType)
|
|
126
|
+
) : (
|
|
127
|
+
<MoreHorizontalIcon />
|
|
128
|
+
)}
|
|
129
|
+
</div>
|
|
130
|
+
<div className="project-search-command__type__selector">
|
|
131
|
+
<CaretDownIcon />
|
|
132
|
+
</div>
|
|
137
133
|
</DropdownMenu>
|
|
138
134
|
<CustomSelectorInput
|
|
139
135
|
ref={selectorRef}
|
|
@@ -440,7 +440,8 @@ export const EditPanel = observer(() => {
|
|
|
440
440
|
<div className="edit-panel__header__actions">
|
|
441
441
|
{currentEditorState instanceof ElementEditorState && (
|
|
442
442
|
<DropdownMenu
|
|
443
|
-
className="edit-panel__view-
|
|
443
|
+
className="edit-panel__view-mode__type"
|
|
444
|
+
title="View as..."
|
|
444
445
|
content={
|
|
445
446
|
<MenuContent
|
|
446
447
|
data-testid={
|
|
@@ -503,23 +504,19 @@ export const EditPanel = observer(() => {
|
|
|
503
504
|
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
|
504
505
|
}}
|
|
505
506
|
>
|
|
506
|
-
<
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
currentEditorState.generationViewMode,
|
|
514
|
-
).label
|
|
515
|
-
: currentEditorState.editMode}
|
|
516
|
-
</div>
|
|
517
|
-
</button>
|
|
507
|
+
<div className="edit-panel__view-mode__type__label">
|
|
508
|
+
{currentEditorState.generationViewMode
|
|
509
|
+
? editorStore.graphState.graphGenerationState.getFileGenerationConfiguration(
|
|
510
|
+
currentEditorState.generationViewMode,
|
|
511
|
+
).label
|
|
512
|
+
: currentEditorState.editMode}
|
|
513
|
+
</div>
|
|
518
514
|
</DropdownMenu>
|
|
519
515
|
)}
|
|
520
516
|
{currentEditorState instanceof EntityDiffViewState && (
|
|
521
517
|
<DropdownMenu
|
|
522
|
-
className="edit-panel__view-
|
|
518
|
+
className="edit-panel__view-mode__type"
|
|
519
|
+
title="View as..."
|
|
523
520
|
content={
|
|
524
521
|
<MenuContent
|
|
525
522
|
data-testid={
|
|
@@ -550,14 +547,9 @@ export const EditPanel = observer(() => {
|
|
|
550
547
|
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
|
551
548
|
}}
|
|
552
549
|
>
|
|
553
|
-
<
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
>
|
|
557
|
-
<div className="edit-panel__view-mode__type__label">
|
|
558
|
-
{currentEditorState.diffMode}
|
|
559
|
-
</div>
|
|
560
|
-
</button>
|
|
550
|
+
<div className="edit-panel__view-mode__type__label">
|
|
551
|
+
{currentEditorState.diffMode}
|
|
552
|
+
</div>
|
|
561
553
|
</DropdownMenu>
|
|
562
554
|
)}
|
|
563
555
|
</div>
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from '@finos/legend-art';
|
|
30
30
|
import type { FileGenerationSpecification } from '@finos/legend-graph';
|
|
31
31
|
import { useEditorStore } from '../EditorStoreProvider.js';
|
|
32
|
-
import {
|
|
32
|
+
import { TextInputEditor } from '@finos/legend-application';
|
|
33
33
|
|
|
34
34
|
export const FileGenerationViewer = observer(() => {
|
|
35
35
|
const editorStore = useEditorStore();
|
|
@@ -90,16 +90,14 @@ export const FileGenerationViewer = observer(() => {
|
|
|
90
90
|
</div>
|
|
91
91
|
</div>
|
|
92
92
|
<PanelContent>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
/>
|
|
102
|
-
}
|
|
93
|
+
<TextInputEditor
|
|
94
|
+
inputValue={getTextContent(
|
|
95
|
+
generatedFile.content,
|
|
96
|
+
generatedFile.format,
|
|
97
|
+
)}
|
|
98
|
+
isReadOnly={true}
|
|
99
|
+
language={getEditorLanguageFromFormat(generatedFile.format)}
|
|
100
|
+
/>
|
|
103
101
|
</PanelContent>
|
|
104
102
|
</div>
|
|
105
103
|
</Panel>
|
|
@@ -82,7 +82,6 @@ import {
|
|
|
82
82
|
useApplicationStore,
|
|
83
83
|
buildElementOption,
|
|
84
84
|
} from '@finos/legend-application';
|
|
85
|
-
import { StudioLambdaEditor } from '../../shared/StudioLambdaEditor.js';
|
|
86
85
|
import { getElementIcon } from '../../shared/ElementIconUtils.js';
|
|
87
86
|
import {
|
|
88
87
|
function_setReturnType,
|
|
@@ -101,6 +100,7 @@ import {
|
|
|
101
100
|
rawVariableExpression_setType,
|
|
102
101
|
} from '../../../stores/shared/modifier/RawValueSpecificationGraphModifierHelper.js';
|
|
103
102
|
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../stores/LegendStudioApplicationNavigationContext.js';
|
|
103
|
+
import { LambdaEditor } from '@finos/legend-query-builder';
|
|
104
104
|
|
|
105
105
|
enum FUNCTION_PARAMETER_TYPE {
|
|
106
106
|
CLASS = 'CLASS',
|
|
@@ -685,7 +685,7 @@ export const FunctionMainEditor = observer(
|
|
|
685
685
|
),
|
|
686
686
|
})}
|
|
687
687
|
>
|
|
688
|
-
<
|
|
688
|
+
<LambdaEditor
|
|
689
689
|
className="function-editor__element__lambda-editor"
|
|
690
690
|
disabled={
|
|
691
691
|
lambdaEditorState.isConvertingFunctionBodyToString || isReadOnly
|
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
type IDisposable,
|
|
21
21
|
editor as monacoEditorAPI,
|
|
22
22
|
languages as monacoLanguagesAPI,
|
|
23
|
-
KeyCode,
|
|
24
23
|
} from 'monaco-editor';
|
|
25
24
|
import {
|
|
26
25
|
ContextMenu,
|
|
@@ -28,7 +27,6 @@ import {
|
|
|
28
27
|
setErrorMarkers,
|
|
29
28
|
disposeEditor,
|
|
30
29
|
baseTextEditorSettings,
|
|
31
|
-
disableEditorHotKeys,
|
|
32
30
|
resetLineNumberGutterWidth,
|
|
33
31
|
clsx,
|
|
34
32
|
WordWrapIcon,
|
|
@@ -46,6 +44,7 @@ import {
|
|
|
46
44
|
useApplicationStore,
|
|
47
45
|
type DocumentationEntry,
|
|
48
46
|
useApplicationNavigationContext,
|
|
47
|
+
createPassThroughOnKeyHandler,
|
|
49
48
|
} from '@finos/legend-application';
|
|
50
49
|
import {
|
|
51
50
|
type ElementDragSource,
|
|
@@ -817,22 +816,7 @@ export const GrammarTextEditor = observer(() => {
|
|
|
817
816
|
// but if we do that on first load, the cursor will not jump to the current element
|
|
818
817
|
// also, it's better to place that logic in an effect that watches for the regex string
|
|
819
818
|
});
|
|
820
|
-
_editor.onKeyDown((
|
|
821
|
-
if (event.keyCode === KeyCode.F9) {
|
|
822
|
-
event.preventDefault();
|
|
823
|
-
event.stopPropagation();
|
|
824
|
-
flowResult(editorStore.graphState.globalCompileInTextMode()).catch(
|
|
825
|
-
applicationStore.alertUnhandledError,
|
|
826
|
-
);
|
|
827
|
-
} else if (event.keyCode === KeyCode.F8) {
|
|
828
|
-
event.preventDefault();
|
|
829
|
-
event.stopPropagation();
|
|
830
|
-
flowResult(editorStore.toggleTextMode()).catch(
|
|
831
|
-
applicationStore.alertUnhandledError,
|
|
832
|
-
);
|
|
833
|
-
}
|
|
834
|
-
});
|
|
835
|
-
disableEditorHotKeys(_editor);
|
|
819
|
+
_editor.onKeyDown(createPassThroughOnKeyHandler());
|
|
836
820
|
_editor.focus(); // focus on the editor initially
|
|
837
821
|
setEditor(_editor);
|
|
838
822
|
}
|
|
@@ -39,13 +39,11 @@ import {
|
|
|
39
39
|
import { flowResult } from 'mobx';
|
|
40
40
|
import { useEditorStore } from '../EditorStoreProvider.js';
|
|
41
41
|
import {
|
|
42
|
-
ActionAlertType,
|
|
43
|
-
ActionAlertActionType,
|
|
44
42
|
useApplicationStore,
|
|
45
43
|
EDITOR_LANGUAGE,
|
|
46
44
|
useApplicationNavigationContext,
|
|
45
|
+
TextInputEditor,
|
|
47
46
|
} from '@finos/legend-application';
|
|
48
|
-
import { StudioTextInputEditor } from '../../shared/StudioTextInputEditor.js';
|
|
49
47
|
import type { ModelImporterExtensionConfiguration } from '../../../stores/LegendStudioApplicationPlugin.js';
|
|
50
48
|
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../stores/LegendStudioApplicationNavigationContext.js';
|
|
51
49
|
import { SCHEMA_SET_TAB_TYPE } from '../../../stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js';
|
|
@@ -151,36 +149,11 @@ export const ModelImporter = observer(() => {
|
|
|
151
149
|
const label = modelImporterState.modelImportEditorState.label;
|
|
152
150
|
const modelImportEditorState = modelImporterState.modelImportEditorState;
|
|
153
151
|
const loadModel = (): void => {
|
|
154
|
-
|
|
155
|
-
editorStore.setActionAlertInfo({
|
|
156
|
-
message: 'You have unpushed changes',
|
|
157
|
-
prompt:
|
|
158
|
-
'This action will discard these changes and refresh the application',
|
|
159
|
-
type: ActionAlertType.CAUTION,
|
|
160
|
-
onEnter: (): void => editorStore.setBlockGlobalHotkeys(true),
|
|
161
|
-
onClose: (): void => editorStore.setBlockGlobalHotkeys(false),
|
|
162
|
-
actions: [
|
|
163
|
-
{
|
|
164
|
-
label: 'Proceed to load model',
|
|
165
|
-
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
|
166
|
-
handler: (): void => {
|
|
167
|
-
modelImporterState.modelImportEditorState
|
|
168
|
-
.loadModel()
|
|
169
|
-
.catch(applicationStore.alertUnhandledError);
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
label: 'Abort',
|
|
174
|
-
type: ActionAlertActionType.PROCEED,
|
|
175
|
-
default: true,
|
|
176
|
-
},
|
|
177
|
-
],
|
|
178
|
-
});
|
|
179
|
-
} else {
|
|
152
|
+
editorStore.localChangesState.alertUnsavedChanges((): void => {
|
|
180
153
|
modelImporterState.modelImportEditorState
|
|
181
154
|
.loadModel()
|
|
182
155
|
.catch(applicationStore.alertUnhandledError);
|
|
183
|
-
}
|
|
156
|
+
});
|
|
184
157
|
};
|
|
185
158
|
useApplicationNavigationContext(
|
|
186
159
|
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.MODEL_LOADER,
|
|
@@ -216,7 +189,7 @@ export const ModelImporter = observer(() => {
|
|
|
216
189
|
modelImportEditorState.setModelText(val);
|
|
217
190
|
return (
|
|
218
191
|
<div className="panel__content model-loader__editor">
|
|
219
|
-
<
|
|
192
|
+
<TextInputEditor
|
|
220
193
|
language={
|
|
221
194
|
modelImportEditorState.nativeType ===
|
|
222
195
|
MODEL_IMPORT_NATIVE_INPUT_TYPE.PURE_GRAMMAR
|
|
@@ -246,6 +219,7 @@ export const ModelImporter = observer(() => {
|
|
|
246
219
|
<div className="panel__header model-loader__header">
|
|
247
220
|
<div className="model-loader__header__configs">
|
|
248
221
|
<DropdownMenu
|
|
222
|
+
className="model-loader__header__configs__type"
|
|
249
223
|
content={
|
|
250
224
|
<MenuContent className="model-loader__header__configs__type__menu">
|
|
251
225
|
<div className="model-loader__header__configs__type-option__group model-loader__header__configs__type-option__group--native">
|
|
@@ -325,13 +299,11 @@ export const ModelImporter = observer(() => {
|
|
|
325
299
|
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
|
326
300
|
}}
|
|
327
301
|
>
|
|
328
|
-
<div className="model-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
<
|
|
333
|
-
<CaretDownIcon />
|
|
334
|
-
</div>
|
|
302
|
+
<div className="model-loader__header__configs__type__label">
|
|
303
|
+
{prettyCONSTName(label)}
|
|
304
|
+
</div>
|
|
305
|
+
<div className="model-loader__header__configs__type__icon">
|
|
306
|
+
<CaretDownIcon />
|
|
335
307
|
</div>
|
|
336
308
|
</DropdownMenu>
|
|
337
309
|
{modelImportEditorState.allowHardReplace && (
|
|
@@ -47,6 +47,7 @@ import {
|
|
|
47
47
|
import { capitalize } from '@finos/legend-shared';
|
|
48
48
|
import {
|
|
49
49
|
EDITOR_LANGUAGE,
|
|
50
|
+
TextInputEditor,
|
|
50
51
|
useApplicationStore,
|
|
51
52
|
} from '@finos/legend-application';
|
|
52
53
|
import {
|
|
@@ -54,7 +55,6 @@ import {
|
|
|
54
55
|
renderColumnTypeIcon,
|
|
55
56
|
} from './DatabaseEditorHelper.js';
|
|
56
57
|
import { flowResult } from 'mobx';
|
|
57
|
-
import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js';
|
|
58
58
|
|
|
59
59
|
const getNodeIcon = (node: DatabaseBuilderTreeNodeData): React.ReactNode => {
|
|
60
60
|
if (node instanceof SchemaDatabaseBuilderTreeNodeData) {
|
|
@@ -338,7 +338,7 @@ export const DatabaseBuilder = observer(
|
|
|
338
338
|
</div>
|
|
339
339
|
</div>
|
|
340
340
|
<PanelContent>
|
|
341
|
-
<
|
|
341
|
+
<TextInputEditor
|
|
342
342
|
language={EDITOR_LANGUAGE.PURE}
|
|
343
343
|
inputValue={databaseBuilderState.databaseGrammarCode}
|
|
344
344
|
isReadOnly={true}
|
package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx
CHANGED
|
@@ -29,7 +29,6 @@ import {
|
|
|
29
29
|
CustomSelectorInput,
|
|
30
30
|
ErrorIcon,
|
|
31
31
|
PanelHeader,
|
|
32
|
-
PanelHeaderActionItem,
|
|
33
32
|
PlusIcon,
|
|
34
33
|
PanelFormTextEditor,
|
|
35
34
|
ContextMenu,
|
|
@@ -46,6 +45,7 @@ import {
|
|
|
46
45
|
PanelListSelectorItemLabel,
|
|
47
46
|
PanelSection,
|
|
48
47
|
PanelFormBooleanEditor,
|
|
48
|
+
PanelHeaderActions,
|
|
49
49
|
} from '@finos/legend-art';
|
|
50
50
|
import { capitalize, prettyCONSTName } from '@finos/legend-shared';
|
|
51
51
|
|
|
@@ -79,8 +79,8 @@ import {
|
|
|
79
79
|
EDITOR_LANGUAGE,
|
|
80
80
|
buildElementOption,
|
|
81
81
|
type PackageableElementOption,
|
|
82
|
+
TextInputEditor,
|
|
82
83
|
} from '@finos/legend-application';
|
|
83
|
-
import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js';
|
|
84
84
|
import { connection_setStore } from '../../../../stores/shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
85
85
|
import {
|
|
86
86
|
apiTokenAuthenticationStrategy_setApiToken,
|
|
@@ -153,7 +153,7 @@ const LocalH2DatasourceSpecificationEditor = observer(
|
|
|
153
153
|
{capitalize('test data setup SQL')}
|
|
154
154
|
</div>
|
|
155
155
|
<div className="panel__content__form__section__text-editor">
|
|
156
|
-
<
|
|
156
|
+
<TextInputEditor
|
|
157
157
|
inputValue={SQLValue}
|
|
158
158
|
updateInput={(value: string | undefined): void =>
|
|
159
159
|
localH2DatasourceSpecification_setTestDataSetupSqls(
|
|
@@ -417,7 +417,7 @@ const SnowflakeDatasourceSpecificationEditor = observer(
|
|
|
417
417
|
isReadOnly={isReadOnly}
|
|
418
418
|
value={sourceSpec.quotedIdentifiersIgnoreCase}
|
|
419
419
|
name="quoted identifiers ignore case"
|
|
420
|
-
|
|
420
|
+
prompt="Controls whether Snowflake will treat alphabetic characters in double-quoted identifiers as uppercase"
|
|
421
421
|
update={(value: boolean | undefined): void =>
|
|
422
422
|
snowflakeDatasourceSpec_setQuotedIdentifiersIgnoreCase(
|
|
423
423
|
sourceSpec,
|
|
@@ -544,7 +544,7 @@ const BigQueryDatasourceSpecificationEditor = observer(
|
|
|
544
544
|
isReadOnly={isReadOnly}
|
|
545
545
|
value={sourceSpec.proxyHost}
|
|
546
546
|
name="proxy host"
|
|
547
|
-
|
|
547
|
+
prompt="Specifies proxy host for connection to GCP BigQuery"
|
|
548
548
|
update={(value: string | undefined): void =>
|
|
549
549
|
bigQueryDatasourceSpecification_setProxyHost(
|
|
550
550
|
sourceSpec,
|
|
@@ -556,7 +556,7 @@ const BigQueryDatasourceSpecificationEditor = observer(
|
|
|
556
556
|
isReadOnly={isReadOnly}
|
|
557
557
|
value={sourceSpec.proxyPort}
|
|
558
558
|
name="proxy port"
|
|
559
|
-
|
|
559
|
+
prompt="Specifies proxy port for connection to GCP BigQuery"
|
|
560
560
|
update={(value: string | undefined): void =>
|
|
561
561
|
bigQueryDatasourceSpecification_setProxyPort(
|
|
562
562
|
sourceSpec,
|
|
@@ -746,7 +746,7 @@ const MiddleTierUsernamePasswordAuthenticationStrategyEditor = observer(
|
|
|
746
746
|
isReadOnly={isReadOnly}
|
|
747
747
|
value={authSpec.vaultReference}
|
|
748
748
|
name="vault reference"
|
|
749
|
-
|
|
749
|
+
prompt="Specifies the credential vault reference containing connection credentials"
|
|
750
750
|
update={(value: string | undefined): void =>
|
|
751
751
|
middleTierUsernamePasswordAuthenticationStrategy_setVaultReference(
|
|
752
752
|
authSpec,
|
|
@@ -1024,39 +1024,38 @@ const PostProcessorRelationalConnectionEditor = observer(
|
|
|
1024
1024
|
<ResizablePanel size={200} minSize={100}>
|
|
1025
1025
|
<Panel>
|
|
1026
1026
|
<PanelHeader title="post-processor">
|
|
1027
|
-
<
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
<MenuContentItem
|
|
1032
|
-
key={postProcessorType.value}
|
|
1033
|
-
onClick={addPostProcessor(
|
|
1034
|
-
postProcessorType.value,
|
|
1035
|
-
)}
|
|
1036
|
-
>
|
|
1037
|
-
New {postProcessorType.label} Post-Processor
|
|
1038
|
-
</MenuContentItem>
|
|
1039
|
-
),
|
|
1040
|
-
)}
|
|
1041
|
-
menuProps={{
|
|
1042
|
-
anchorOrigin: {
|
|
1043
|
-
vertical: 'bottom',
|
|
1044
|
-
horizontal: 'right',
|
|
1045
|
-
},
|
|
1046
|
-
transformOrigin: {
|
|
1047
|
-
vertical: 'top',
|
|
1048
|
-
horizontal: 'right',
|
|
1049
|
-
},
|
|
1050
|
-
elevation: 7,
|
|
1051
|
-
}}
|
|
1052
|
-
>
|
|
1053
|
-
<PanelHeaderActionItem
|
|
1027
|
+
<PanelHeaderActions>
|
|
1028
|
+
<DropdownMenu
|
|
1029
|
+
title="Create post-processor"
|
|
1030
|
+
className="panel__header__action"
|
|
1054
1031
|
disabled={isReadOnly}
|
|
1055
|
-
|
|
1032
|
+
content={postProcessorOptions.map(
|
|
1033
|
+
(postProcessorType) => (
|
|
1034
|
+
<MenuContentItem
|
|
1035
|
+
key={postProcessorType.value}
|
|
1036
|
+
onClick={addPostProcessor(
|
|
1037
|
+
postProcessorType.value,
|
|
1038
|
+
)}
|
|
1039
|
+
>
|
|
1040
|
+
New {postProcessorType.label} Post-Processor
|
|
1041
|
+
</MenuContentItem>
|
|
1042
|
+
),
|
|
1043
|
+
)}
|
|
1044
|
+
menuProps={{
|
|
1045
|
+
anchorOrigin: {
|
|
1046
|
+
vertical: 'bottom',
|
|
1047
|
+
horizontal: 'right',
|
|
1048
|
+
},
|
|
1049
|
+
transformOrigin: {
|
|
1050
|
+
vertical: 'top',
|
|
1051
|
+
horizontal: 'right',
|
|
1052
|
+
},
|
|
1053
|
+
elevation: 7,
|
|
1054
|
+
}}
|
|
1056
1055
|
>
|
|
1057
1056
|
<PlusIcon />
|
|
1058
|
-
</
|
|
1059
|
-
</
|
|
1057
|
+
</DropdownMenu>
|
|
1058
|
+
</PanelHeaderActions>
|
|
1060
1059
|
</PanelHeader>
|
|
1061
1060
|
<PanelContent>
|
|
1062
1061
|
{postProcessors.map((postProcessor, idx) => (
|
|
@@ -1375,7 +1374,7 @@ const RelationalConnectionGeneralEditor = observer(
|
|
|
1375
1374
|
isReadOnly={isReadOnly}
|
|
1376
1375
|
value={connection.quoteIdentifiers}
|
|
1377
1376
|
name="Quote identifiers"
|
|
1378
|
-
|
|
1377
|
+
prompt="Specifies whether to use double-quotes for SQL identifiers"
|
|
1379
1378
|
update={(value?: boolean): void =>
|
|
1380
1379
|
dBConnection_setQuoteIdentifiers(connection, Boolean(value))
|
|
1381
1380
|
}
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
import {
|
|
18
18
|
ResizablePanelGroup,
|
|
19
19
|
ResizablePanel,
|
|
20
|
-
PanelHeaderActionItem,
|
|
21
20
|
PlusIcon,
|
|
22
21
|
ResizablePanelSplitter,
|
|
23
22
|
PanelFormTextEditor,
|
|
@@ -34,6 +33,7 @@ import {
|
|
|
34
33
|
PanelContent,
|
|
35
34
|
PanelListSelectorItemLabel,
|
|
36
35
|
PanelSection,
|
|
36
|
+
PanelHeaderActions,
|
|
37
37
|
} from '@finos/legend-art';
|
|
38
38
|
import {
|
|
39
39
|
type Mapper,
|
|
@@ -137,31 +137,36 @@ export const MapperPostProcessorEditor = observer(
|
|
|
137
137
|
<ResizablePanel size={170} minSize={70}>
|
|
138
138
|
<Panel>
|
|
139
139
|
<PanelHeader title="mapper">
|
|
140
|
-
<
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
<MenuContentItem onClick={addSchemaMapper}>
|
|
145
|
-
New Schema Mapper
|
|
146
|
-
</MenuContentItem>
|
|
147
|
-
<MenuContentItem onClick={addTableMapper}>
|
|
148
|
-
New Table Mapper
|
|
149
|
-
</MenuContentItem>
|
|
150
|
-
</MenuContent>
|
|
151
|
-
}
|
|
152
|
-
menuProps={{
|
|
153
|
-
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
|
154
|
-
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
|
155
|
-
elevation: 7,
|
|
156
|
-
}}
|
|
157
|
-
>
|
|
158
|
-
<PanelHeaderActionItem
|
|
140
|
+
<PanelHeaderActions>
|
|
141
|
+
<DropdownMenu
|
|
142
|
+
title="Create mapper"
|
|
143
|
+
className="panel__header__action"
|
|
159
144
|
disabled={isReadOnly}
|
|
160
|
-
|
|
145
|
+
content={
|
|
146
|
+
<MenuContent>
|
|
147
|
+
<MenuContentItem onClick={addSchemaMapper}>
|
|
148
|
+
New Schema Mapper
|
|
149
|
+
</MenuContentItem>
|
|
150
|
+
<MenuContentItem onClick={addTableMapper}>
|
|
151
|
+
New Table Mapper
|
|
152
|
+
</MenuContentItem>
|
|
153
|
+
</MenuContent>
|
|
154
|
+
}
|
|
155
|
+
menuProps={{
|
|
156
|
+
anchorOrigin: {
|
|
157
|
+
vertical: 'bottom',
|
|
158
|
+
horizontal: 'right',
|
|
159
|
+
},
|
|
160
|
+
transformOrigin: {
|
|
161
|
+
vertical: 'top',
|
|
162
|
+
horizontal: 'right',
|
|
163
|
+
},
|
|
164
|
+
elevation: 7,
|
|
165
|
+
}}
|
|
161
166
|
>
|
|
162
167
|
<PlusIcon />
|
|
163
|
-
</
|
|
164
|
-
</
|
|
168
|
+
</DropdownMenu>
|
|
169
|
+
</PanelHeaderActions>
|
|
165
170
|
</PanelHeader>
|
|
166
171
|
<PanelContent>
|
|
167
172
|
{mappers.map((mapper) => (
|
|
@@ -193,7 +198,7 @@ export const MapperPostProcessorEditor = observer(
|
|
|
193
198
|
? 'Table Mapper'
|
|
194
199
|
: 'Schema Mapper'
|
|
195
200
|
}
|
|
196
|
-
|
|
201
|
+
errorMessage={
|
|
197
202
|
isMapperDuplicated(mapper)
|
|
198
203
|
? 'Mappers have the same values'
|
|
199
204
|
: undefined
|