@finos/legend-application-studio 18.1.0 → 19.1.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.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.js +33 -7
- 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 +21 -12
- 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/PackageTreeUtils.d.ts +1 -0
- package/lib/stores/shared/PackageTreeUtils.d.ts.map +1 -1
- package/lib/stores/shared/PackageTreeUtils.js +5 -2
- package/lib/stores/shared/PackageTreeUtils.js.map +1 -1
- package/lib/stores/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 +42 -25
- 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 +51 -5
- 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 +60 -39
- 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/PackageTreeUtils.ts +10 -1
- package/src/stores/shared/testable/TestableUtils.ts +6 -5
- package/src/stores/sidebar-state/LocalChangesState.ts +50 -36
- 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
|
@@ -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) => (
|
|
@@ -67,10 +67,10 @@ import {
|
|
|
67
67
|
externalFormatData_setContentType,
|
|
68
68
|
externalFormatData_setData,
|
|
69
69
|
} from '../../../../stores/shared/modifier/DSL_Data_GraphModifierHelper.js';
|
|
70
|
-
import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js';
|
|
71
70
|
import { getEditorLanguageFromFormat } from '../../../../stores/editor-state/FileGenerationViewerState.js';
|
|
72
71
|
import type { ExternalFormatDataState } from '../../../../stores/editor-state/element-editor-state/data/EmbeddedDataState.js';
|
|
73
72
|
import { renderEmbeddedDataEditor } from './EmbeddedDataEditor.js';
|
|
73
|
+
import { TextInputEditor } from '@finos/legend-application';
|
|
74
74
|
|
|
75
75
|
export const ExternalFormatDataEditor = observer(
|
|
76
76
|
(props: {
|
|
@@ -116,6 +116,7 @@ export const ExternalFormatDataEditor = observer(
|
|
|
116
116
|
</div>
|
|
117
117
|
<div className="external-format-data-editor__header__actions">
|
|
118
118
|
<DropdownMenu
|
|
119
|
+
className="external-format-data-editor__type"
|
|
119
120
|
disabled={isReadOnly}
|
|
120
121
|
content={
|
|
121
122
|
<MenuContent className="external-format-data-editor__dropdown">
|
|
@@ -135,20 +136,18 @@ export const ExternalFormatDataEditor = observer(
|
|
|
135
136
|
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
|
136
137
|
}}
|
|
137
138
|
>
|
|
138
|
-
<div className="external-format-data-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
<
|
|
143
|
-
<CaretDownIcon />
|
|
144
|
-
</div>
|
|
139
|
+
<div className="external-format-data-editor__type__label">
|
|
140
|
+
{externalFormatDataState.embeddedData.contentType}
|
|
141
|
+
</div>
|
|
142
|
+
<div className="external-format-data-editor__type__icon">
|
|
143
|
+
<CaretDownIcon />
|
|
145
144
|
</div>
|
|
146
145
|
</DropdownMenu>
|
|
147
146
|
</div>
|
|
148
147
|
</div>
|
|
149
148
|
<div className={clsx('external-format-data-editor__content')}>
|
|
150
149
|
<div className="external-format-data-editor__content__input">
|
|
151
|
-
<
|
|
150
|
+
<TextInputEditor
|
|
152
151
|
language={language}
|
|
153
152
|
inputValue={externalFormatDataState.embeddedData.data}
|
|
154
153
|
updateInput={changeData}
|
|
@@ -36,7 +36,6 @@ import {
|
|
|
36
36
|
externalFormatData_setContentType,
|
|
37
37
|
externalFormatData_setData,
|
|
38
38
|
} from '../../../../stores/shared/modifier/DSL_Data_GraphModifierHelper.js';
|
|
39
|
-
import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js';
|
|
40
39
|
import type { DSL_Data_LegendStudioApplicationPlugin_Extension } from '../../../../stores/DSL_Data_LegendStudioApplicationPlugin_Extension.js';
|
|
41
40
|
import { getEditorLanguageFromFormat } from '../../../../stores/editor-state/FileGenerationViewerState.js';
|
|
42
41
|
import {
|
|
@@ -46,7 +45,7 @@ import {
|
|
|
46
45
|
RelationalCSVDataState,
|
|
47
46
|
} from '../../../../stores/editor-state/element-editor-state/data/EmbeddedDataState.js';
|
|
48
47
|
import type { DataElement } from '@finos/legend-graph';
|
|
49
|
-
import { buildElementOption } from '@finos/legend-application';
|
|
48
|
+
import { buildElementOption, TextInputEditor } from '@finos/legend-application';
|
|
50
49
|
import { RelationalCSVDataEditor } from './RelationalCSVDataEditor.js';
|
|
51
50
|
|
|
52
51
|
export const ExternalFormatDataEditor = observer(
|
|
@@ -104,6 +103,7 @@ export const ExternalFormatDataEditor = observer(
|
|
|
104
103
|
<WrenchIcon />
|
|
105
104
|
</button>
|
|
106
105
|
<DropdownMenu
|
|
106
|
+
className="external-format-data-editor__type"
|
|
107
107
|
disabled={isReadOnly}
|
|
108
108
|
content={
|
|
109
109
|
<MenuContent className="external-format-data-editor__dropdown">
|
|
@@ -123,20 +123,18 @@ export const ExternalFormatDataEditor = observer(
|
|
|
123
123
|
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
|
124
124
|
}}
|
|
125
125
|
>
|
|
126
|
-
<div className="external-format-data-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
<
|
|
131
|
-
<CaretDownIcon />
|
|
132
|
-
</div>
|
|
126
|
+
<div className="external-format-data-editor__type__label">
|
|
127
|
+
{externalFormatDataState.embeddedData.contentType}
|
|
128
|
+
</div>
|
|
129
|
+
<div className="external-format-data-editor__type__icon">
|
|
130
|
+
<CaretDownIcon />
|
|
133
131
|
</div>
|
|
134
132
|
</DropdownMenu>
|
|
135
133
|
</div>
|
|
136
134
|
</div>
|
|
137
135
|
<div className={clsx('external-format-data-editor__content')}>
|
|
138
136
|
<div className="external-format-data-editor__content__input">
|
|
139
|
-
<
|
|
137
|
+
<TextInputEditor
|
|
140
138
|
language={language}
|
|
141
139
|
inputValue={externalFormatDataState.embeddedData.data}
|
|
142
140
|
updateInput={changeData}
|
|
@@ -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
|
BlankPanelPlaceholder,
|
|
20
20
|
clsx,
|
|
@@ -32,7 +32,6 @@ import type { RelationalCSVDataTable } from '@finos/legend-graph';
|
|
|
32
32
|
import { observer } from 'mobx-react-lite';
|
|
33
33
|
import { forwardRef, useState } from 'react';
|
|
34
34
|
import type { RelationalCSVDataState } from '../../../../stores/editor-state/element-editor-state/data/EmbeddedDataState.js';
|
|
35
|
-
import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js';
|
|
36
35
|
|
|
37
36
|
const RelationalTableIdentifierModal = observer(
|
|
38
37
|
(props: { dataState: RelationalCSVDataState; isReadOnly: boolean }) => {
|
|
@@ -40,10 +39,6 @@ const RelationalTableIdentifierModal = observer(
|
|
|
40
39
|
const tableIdentifierState = dataState.tableIdentifierState;
|
|
41
40
|
const editableTable = tableIdentifierState.table;
|
|
42
41
|
const closeModal = (): void => dataState.closeModal();
|
|
43
|
-
const handleSubmit = (): void => {
|
|
44
|
-
tableIdentifierState.handleSubmit();
|
|
45
|
-
closeModal();
|
|
46
|
-
};
|
|
47
42
|
const changeTableValue: React.ChangeEventHandler<HTMLInputElement> = (
|
|
48
43
|
event,
|
|
49
44
|
) => {
|
|
@@ -62,7 +57,11 @@ const RelationalTableIdentifierModal = observer(
|
|
|
62
57
|
PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
|
|
63
58
|
>
|
|
64
59
|
<form
|
|
65
|
-
onSubmit={
|
|
60
|
+
onSubmit={(event) => {
|
|
61
|
+
event.preventDefault();
|
|
62
|
+
tableIdentifierState.handleSubmit();
|
|
63
|
+
closeModal();
|
|
64
|
+
}}
|
|
66
65
|
className="modal modal--dark search-modal"
|
|
67
66
|
>
|
|
68
67
|
<div className="modal__title">
|
|
@@ -226,7 +225,7 @@ export const RelationalCSVDataEditor = observer(
|
|
|
226
225
|
<div className="relational-data-editor__content">
|
|
227
226
|
{currentTableState && (
|
|
228
227
|
<div className="relational-data-editor__values">
|
|
229
|
-
<
|
|
228
|
+
<TextInputEditor
|
|
230
229
|
inputValue={currentTableState.table.values}
|
|
231
230
|
updateInput={updateTableValues}
|
|
232
231
|
isReadOnly={isReadOnly}
|
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
EDITOR_THEME,
|
|
28
28
|
EDITOR_LANGUAGE,
|
|
29
29
|
useApplicationStore,
|
|
30
|
+
createPassThroughOnKeyHandler,
|
|
30
31
|
} from '@finos/legend-application';
|
|
31
32
|
import {
|
|
32
33
|
type MergeEditorComparisonViewInfo,
|
|
@@ -45,7 +46,6 @@ import {
|
|
|
45
46
|
clsx,
|
|
46
47
|
CustomSelectorInput,
|
|
47
48
|
disposeEditor,
|
|
48
|
-
disableEditorHotKeys,
|
|
49
49
|
baseTextEditorSettings,
|
|
50
50
|
moveToPosition,
|
|
51
51
|
setErrorMarkers,
|
|
@@ -200,7 +200,7 @@ const MergeConflictEditor = observer(
|
|
|
200
200
|
formatOnType: true,
|
|
201
201
|
formatOnPaste: true,
|
|
202
202
|
});
|
|
203
|
-
|
|
203
|
+
_editor.onKeyDown(createPassThroughOnKeyHandler());
|
|
204
204
|
_editor.focus(); // focus on the editor initially so we can correctly compute next/prev conflict chunks
|
|
205
205
|
setEditor(_editor);
|
|
206
206
|
}
|
package/src/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.tsx
CHANGED
|
@@ -78,10 +78,6 @@ const NewFileGenerationModal = observer(
|
|
|
78
78
|
close();
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
-
const onSubmit = (event: React.FormEvent<HTMLFormElement>): void => {
|
|
82
|
-
event.preventDefault();
|
|
83
|
-
promoteToFileGeneration().catch(applicationStore.alertUnhandledError);
|
|
84
|
-
};
|
|
85
81
|
const changeValue: React.ChangeEventHandler<HTMLInputElement> = (event) =>
|
|
86
82
|
setServicePath(event.target.value);
|
|
87
83
|
|
|
@@ -98,7 +94,15 @@ const NewFileGenerationModal = observer(
|
|
|
98
94
|
},
|
|
99
95
|
}}
|
|
100
96
|
>
|
|
101
|
-
<form
|
|
97
|
+
<form
|
|
98
|
+
onSubmit={(event) => {
|
|
99
|
+
event.preventDefault();
|
|
100
|
+
promoteToFileGeneration().catch(
|
|
101
|
+
applicationStore.alertUnhandledError,
|
|
102
|
+
);
|
|
103
|
+
}}
|
|
104
|
+
className="modal search-modal modal--dark"
|
|
105
|
+
>
|
|
102
106
|
<div className="modal__title">
|
|
103
107
|
Promote file generation specification
|
|
104
108
|
</div>
|
|
@@ -22,8 +22,8 @@ import { flowResult } from 'mobx';
|
|
|
22
22
|
import {
|
|
23
23
|
useApplicationStore,
|
|
24
24
|
EDITOR_LANGUAGE,
|
|
25
|
+
TextInputEditor,
|
|
25
26
|
} from '@finos/legend-application';
|
|
26
|
-
import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js';
|
|
27
27
|
|
|
28
28
|
export const ElementNativeView = observer(
|
|
29
29
|
(props: { currentElementState: ElementEditorState }) => {
|
|
@@ -51,7 +51,7 @@ export const ElementNativeView = observer(
|
|
|
51
51
|
}, [applicationStore, currentElementState, currentElementState.editMode]);
|
|
52
52
|
|
|
53
53
|
return (
|
|
54
|
-
<
|
|
54
|
+
<TextInputEditor
|
|
55
55
|
inputValue={generatedText}
|
|
56
56
|
language={editorLanguage}
|
|
57
57
|
isReadOnly={true}
|
|
@@ -84,8 +84,10 @@ import {
|
|
|
84
84
|
resolvePackagePathAndElementName,
|
|
85
85
|
getNullableFileGenerationConfig,
|
|
86
86
|
} from '@finos/legend-graph';
|
|
87
|
-
import {
|
|
88
|
-
|
|
87
|
+
import {
|
|
88
|
+
TextInputEditor,
|
|
89
|
+
useApplicationStore,
|
|
90
|
+
} from '@finos/legend-application';
|
|
89
91
|
import type { DSL_Generation_LegendStudioApplicationPlugin_Extension } from '../../../../stores/DSL_Generation_LegendStudioApplicationPlugin_Extension.js';
|
|
90
92
|
import {
|
|
91
93
|
fileGeneration_addScopeElement,
|
|
@@ -316,7 +318,7 @@ export const GenerationResultViewer = observer(
|
|
|
316
318
|
</div>
|
|
317
319
|
<PanelContent>
|
|
318
320
|
{fileNode instanceof GenerationFile && (
|
|
319
|
-
<
|
|
321
|
+
<TextInputEditor
|
|
320
322
|
inputValue={getTextContent(fileNode.content, fileNode.format)}
|
|
321
323
|
isReadOnly={true}
|
|
322
324
|
language={getEditorLanguageFromFormat(fileNode.format)}
|
|
@@ -40,8 +40,7 @@ import {
|
|
|
40
40
|
type InnerSchemaSetEditorState,
|
|
41
41
|
SCHEMA_SET_TAB_TYPE,
|
|
42
42
|
} from '../../../../stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js';
|
|
43
|
-
import { EDITOR_LANGUAGE } from '@finos/legend-application';
|
|
44
|
-
import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js';
|
|
43
|
+
import { EDITOR_LANGUAGE, TextInputEditor } from '@finos/legend-application';
|
|
45
44
|
import { getEditorLanguageFromFormat } from '../../../../stores/editor-state/FileGenerationViewerState.js';
|
|
46
45
|
import { guaranteeNonNullable, prettyCONSTName } from '@finos/legend-shared';
|
|
47
46
|
import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
@@ -178,7 +177,7 @@ const SchemaBasicEditor = observer(
|
|
|
178
177
|
/>
|
|
179
178
|
<div className={clsx('schema-editor__content')}>
|
|
180
179
|
<div className="schema-editor__content__input">
|
|
181
|
-
<
|
|
180
|
+
<TextInputEditor
|
|
182
181
|
inputValue={schema.content}
|
|
183
182
|
language={language}
|
|
184
183
|
updateInput={(val: string): void => {
|
|
@@ -32,8 +32,7 @@ import {
|
|
|
32
32
|
ResizablePanelSplitterLine,
|
|
33
33
|
} from '@finos/legend-art';
|
|
34
34
|
import { GenerationPropertyEditor } from '../element-generation-editor/FileGenerationEditor.js';
|
|
35
|
-
import {
|
|
36
|
-
import { EDITOR_LANGUAGE } from '@finos/legend-application';
|
|
35
|
+
import { EDITOR_LANGUAGE, TextInputEditor } from '@finos/legend-application';
|
|
37
36
|
|
|
38
37
|
enum HIDDEN_CONFIGURATION_PROPERTIES {
|
|
39
38
|
FORMAT = 'format',
|
|
@@ -212,7 +211,7 @@ export const SchemaSetModelGenerationEditor = observer(
|
|
|
212
211
|
.isInProgress
|
|
213
212
|
}
|
|
214
213
|
/>
|
|
215
|
-
<
|
|
214
|
+
<TextInputEditor
|
|
216
215
|
inputValue={modelGenerationState.generationValue}
|
|
217
216
|
isReadOnly={true}
|
|
218
217
|
language={EDITOR_LANGUAGE.PURE}
|
|
@@ -45,12 +45,12 @@ import {
|
|
|
45
45
|
getRawGenericType,
|
|
46
46
|
EnumerationMappingExplicitReference,
|
|
47
47
|
} from '@finos/legend-graph';
|
|
48
|
-
import { StudioLambdaEditor } from '../../../shared/StudioLambdaEditor.js';
|
|
49
48
|
import { flatDataPropertyMapping_setTransformer } from '../../../../stores/shared/modifier/STO_FlatData_GraphModifierHelper.js';
|
|
50
49
|
import {
|
|
51
50
|
CLASS_PROPERTY_TYPE,
|
|
52
51
|
getClassPropertyType,
|
|
53
52
|
} from '../../../../stores/shared/ModelClassifierUtils.js';
|
|
53
|
+
import { LambdaEditor } from '@finos/legend-query-builder';
|
|
54
54
|
|
|
55
55
|
const SimplePropertyMappingEditor = observer(
|
|
56
56
|
(props: {
|
|
@@ -83,7 +83,7 @@ const SimplePropertyMappingEditor = observer(
|
|
|
83
83
|
return (
|
|
84
84
|
<div className="property-mapping-editor__entry__container">
|
|
85
85
|
<div ref={drop} className="property-mapping-editor__entry">
|
|
86
|
-
<
|
|
86
|
+
<LambdaEditor
|
|
87
87
|
className={clsx({ 'lambda-editor--dnd-match': canDrop })}
|
|
88
88
|
disabled={transformProps.disableTransform}
|
|
89
89
|
lambdaEditorState={propertyMappingState}
|
|
@@ -205,7 +205,7 @@ const EnumerationPropertyMappingEditor = observer(
|
|
|
205
205
|
<ArrowCircleRightIcon />
|
|
206
206
|
</button>
|
|
207
207
|
</div>
|
|
208
|
-
<
|
|
208
|
+
<LambdaEditor
|
|
209
209
|
className={clsx(
|
|
210
210
|
'property-mapping-editor__entry__enumeration__transform',
|
|
211
211
|
{ 'lambda-editor--dnd-match': canDrop },
|
|
@@ -86,9 +86,9 @@ import {
|
|
|
86
86
|
getAllRecordTypes,
|
|
87
87
|
getAllClassProperties,
|
|
88
88
|
} from '@finos/legend-graph';
|
|
89
|
-
import { StudioLambdaEditor } from '../../../shared/StudioLambdaEditor.js';
|
|
90
89
|
import type { EditorStore } from '../../../../stores/EditorStore.js';
|
|
91
90
|
import type { DSL_Mapping_LegendStudioApplicationPlugin_Extension } from '../../../../stores/DSL_Mapping_LegendStudioApplicationPlugin_Extension.js';
|
|
91
|
+
import { LambdaEditor } from '@finos/legend-query-builder';
|
|
92
92
|
|
|
93
93
|
export const InstanceSetImplementationSourceExplorer = observer(
|
|
94
94
|
(props: {
|
|
@@ -125,10 +125,8 @@ export const InstanceSetImplementationSourceExplorer = observer(
|
|
|
125
125
|
if (!embeddedSetImpls.length) {
|
|
126
126
|
setSourceElementForSourceSelectorModal(null);
|
|
127
127
|
} else {
|
|
128
|
-
|
|
128
|
+
applicationStore.setActionAlertInfo({
|
|
129
129
|
message: CHANGING_SOURCE_ON_EMBEDDED,
|
|
130
|
-
onEnter: (): void => editorStore.setBlockGlobalHotkeys(true),
|
|
131
|
-
onClose: (): void => editorStore.setBlockGlobalHotkeys(false),
|
|
132
130
|
actions: [
|
|
133
131
|
{
|
|
134
132
|
label: 'Continue',
|
|
@@ -220,10 +218,8 @@ export const InstanceSetImplementationSourceExplorer = observer(
|
|
|
220
218
|
if (!embeddedSetImpls.length) {
|
|
221
219
|
changeClassMappingSourceDriver(droppedPackagableElement);
|
|
222
220
|
} else {
|
|
223
|
-
|
|
221
|
+
applicationStore.setActionAlertInfo({
|
|
224
222
|
message: CHANGING_SOURCE_ON_EMBEDDED,
|
|
225
|
-
onEnter: (): void => editorStore.setBlockGlobalHotkeys(true),
|
|
226
|
-
onClose: (): void => editorStore.setBlockGlobalHotkeys(false),
|
|
227
223
|
actions: [
|
|
228
224
|
{
|
|
229
225
|
label: 'Continue',
|
|
@@ -241,7 +237,7 @@ export const InstanceSetImplementationSourceExplorer = observer(
|
|
|
241
237
|
},
|
|
242
238
|
[
|
|
243
239
|
changeClassMappingSourceDriver,
|
|
244
|
-
|
|
240
|
+
applicationStore,
|
|
245
241
|
isReadOnly,
|
|
246
242
|
setImplementation,
|
|
247
243
|
],
|
|
@@ -406,7 +402,7 @@ const MappingFilterEditor = observer(
|
|
|
406
402
|
})}
|
|
407
403
|
>
|
|
408
404
|
<div className="class-mapping-filter-editor__content">
|
|
409
|
-
<
|
|
405
|
+
<LambdaEditor
|
|
410
406
|
className="class-mapping-filter-editor__element__lambda-editor"
|
|
411
407
|
disabled={
|
|
412
408
|
isReadOnly ||
|
|
@@ -68,6 +68,7 @@ import {
|
|
|
68
68
|
ActionAlertType,
|
|
69
69
|
useApplicationStore,
|
|
70
70
|
ExecutionPlanViewer,
|
|
71
|
+
TextInputEditor,
|
|
71
72
|
} from '@finos/legend-application';
|
|
72
73
|
import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
73
74
|
import {
|
|
@@ -79,7 +80,6 @@ import {
|
|
|
79
80
|
stub_RawLambda,
|
|
80
81
|
isStubbed_RawLambda,
|
|
81
82
|
} from '@finos/legend-graph';
|
|
82
|
-
import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js';
|
|
83
83
|
import { objectInputData_setData } from '../../../../stores/shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
84
84
|
import { flatData_setData } from '../../../../stores/shared/modifier/STO_FlatData_GraphModifierHelper.js';
|
|
85
85
|
import {
|
|
@@ -296,12 +296,10 @@ const MappingExecutionQueryEditor = observer(
|
|
|
296
296
|
);
|
|
297
297
|
}
|
|
298
298
|
} else {
|
|
299
|
-
|
|
299
|
+
applicationStore.setActionAlertInfo({
|
|
300
300
|
message: 'Mapping execution input data is already set',
|
|
301
301
|
prompt: 'Do you want to regenerate the input data?',
|
|
302
302
|
type: ActionAlertType.CAUTION,
|
|
303
|
-
onEnter: (): void => editorStore.setBlockGlobalHotkeys(true),
|
|
304
|
-
onClose: (): void => editorStore.setBlockGlobalHotkeys(false),
|
|
305
303
|
actions: [
|
|
306
304
|
{
|
|
307
305
|
label: 'Regenerate',
|
|
@@ -385,7 +383,7 @@ const MappingExecutionQueryEditor = observer(
|
|
|
385
383
|
{!isStubbed_RawLambda(queryState.query) && (
|
|
386
384
|
<PanelContent>
|
|
387
385
|
<div className="mapping-execution-builder__query-panel__query">
|
|
388
|
-
<
|
|
386
|
+
<TextInputEditor
|
|
389
387
|
inputValue={queryState.lambdaString}
|
|
390
388
|
isReadOnly={true}
|
|
391
389
|
language={EDITOR_LANGUAGE.PURE}
|
|
@@ -434,7 +432,7 @@ export const MappingExecutionObjectInputDataBuilder = observer(
|
|
|
434
432
|
|
|
435
433
|
return (
|
|
436
434
|
<div className="panel__content mapping-execution-builder__input-data-panel__content">
|
|
437
|
-
<
|
|
435
|
+
<TextInputEditor
|
|
438
436
|
language={EDITOR_LANGUAGE.JSON}
|
|
439
437
|
inputValue={inputDataState.inputData.data}
|
|
440
438
|
updateInput={updateInput}
|
|
@@ -454,7 +452,7 @@ export const MappingExecutionFlatDataInputDataBuilder = observer(
|
|
|
454
452
|
|
|
455
453
|
return (
|
|
456
454
|
<div className="panel__content mapping-execution-builder__input-data-panel__content">
|
|
457
|
-
<
|
|
455
|
+
<TextInputEditor
|
|
458
456
|
language={EDITOR_LANGUAGE.TEXT}
|
|
459
457
|
inputValue={inputDataState.inputData.data}
|
|
460
458
|
updateInput={updateInput}
|
|
@@ -477,7 +475,7 @@ export const MappingExecutionRelationalInputDataBuilder = observer(
|
|
|
477
475
|
|
|
478
476
|
return (
|
|
479
477
|
<div className="panel__content mapping-execution-builder__input-data-panel__content">
|
|
480
|
-
<
|
|
478
|
+
<TextInputEditor
|
|
481
479
|
language={getRelationalInputTestDataEditorLanguage(
|
|
482
480
|
inputDataState.inputData.inputType,
|
|
483
481
|
)}
|
|
@@ -551,6 +549,7 @@ const RelationalMappingExecutionInputDataTypeSelector = observer(
|
|
|
551
549
|
return (
|
|
552
550
|
<DropdownMenu
|
|
553
551
|
className="mapping-execution-builder__input-data-panel__type-selector"
|
|
552
|
+
title="Choose input data type..."
|
|
554
553
|
content={
|
|
555
554
|
<MenuContent>
|
|
556
555
|
{Object.keys(RelationalInputType).map((mode) => (
|
|
@@ -565,10 +564,7 @@ const RelationalMappingExecutionInputDataTypeSelector = observer(
|
|
|
565
564
|
</MenuContent>
|
|
566
565
|
}
|
|
567
566
|
>
|
|
568
|
-
<div
|
|
569
|
-
className="mapping-execution-builder__input-data-panel__type-selector__value"
|
|
570
|
-
title="Choose input data type..."
|
|
571
|
-
>
|
|
567
|
+
<div className="mapping-execution-builder__input-data-panel__type-selector__value">
|
|
572
568
|
<div className="mapping-execution-builder__input-data-panel__type-selector__value__label">
|
|
573
569
|
{inputDataState.inputData.inputType}
|
|
574
570
|
</div>
|
|
@@ -775,23 +771,23 @@ export const MappingExecutionBuilder = observer(
|
|
|
775
771
|
<FlaskIcon />
|
|
776
772
|
</button>
|
|
777
773
|
)}
|
|
778
|
-
<
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
774
|
+
<div className="mapping-execution-builder__execute-btn">
|
|
775
|
+
<button
|
|
776
|
+
className="mapping-execution-builder__execute-btn__label"
|
|
777
|
+
onClick={execute}
|
|
778
|
+
disabled={
|
|
779
|
+
isStubbed_RawLambda(queryState.query) ||
|
|
780
|
+
!inputDataState.isValid ||
|
|
781
|
+
executionState.isGeneratingPlan ||
|
|
782
|
+
executionState.isExecuting
|
|
783
|
+
}
|
|
784
|
+
tabIndex={-1}
|
|
785
|
+
>
|
|
790
786
|
<PlayIcon className="mapping-execution-builder__execute-btn__label__icon" />
|
|
791
787
|
<div className="mapping-execution-builder__execute-btn__label__title">
|
|
792
788
|
Run Query
|
|
793
789
|
</div>
|
|
794
|
-
</
|
|
790
|
+
</button>
|
|
795
791
|
<DropdownMenu
|
|
796
792
|
className="mapping-execution-builder__execute-btn__dropdown-btn"
|
|
797
793
|
disabled={
|
|
@@ -823,7 +819,7 @@ export const MappingExecutionBuilder = observer(
|
|
|
823
819
|
>
|
|
824
820
|
<CaretDownIcon />
|
|
825
821
|
</DropdownMenu>
|
|
826
|
-
</
|
|
822
|
+
</div>
|
|
827
823
|
</div>
|
|
828
824
|
</div>
|
|
829
825
|
<div className="mapping-execution-builder__content">
|
|
@@ -855,7 +851,7 @@ export const MappingExecutionBuilder = observer(
|
|
|
855
851
|
</div>
|
|
856
852
|
</div>
|
|
857
853
|
<div className="panel__content mapping-execution-builder__result-panel__content">
|
|
858
|
-
<
|
|
854
|
+
<TextInputEditor
|
|
859
855
|
inputValue={executionResultText ?? ''}
|
|
860
856
|
isReadOnly={true}
|
|
861
857
|
language={EDITOR_LANGUAGE.JSON}
|