@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
|
@@ -464,7 +464,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
464
464
|
this.sdlcState.checkIfCurrentWorkspaceIsInConflictResolutionMode(),
|
|
465
465
|
)) as boolean;
|
|
466
466
|
if (!isInConflictResolutionMode) {
|
|
467
|
-
this.editorStore.setBlockingAlert({
|
|
467
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
468
468
|
message: 'Workspace is no longer in conflict resolution mode',
|
|
469
469
|
prompt: 'Please refresh the application',
|
|
470
470
|
});
|
|
@@ -476,7 +476,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
476
476
|
error instanceof NetworkClientError &&
|
|
477
477
|
error.response.status === HttpStatus.NOT_FOUND
|
|
478
478
|
) {
|
|
479
|
-
this.editorStore.setBlockingAlert({
|
|
479
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
480
480
|
message: 'Current project or workspace no longer exists',
|
|
481
481
|
prompt: 'Please refresh the application',
|
|
482
482
|
});
|
|
@@ -490,7 +490,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
490
490
|
|
|
491
491
|
try {
|
|
492
492
|
this.isAcceptingConflictResolution = true;
|
|
493
|
-
this.editorStore.setBlockingAlert({
|
|
493
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
494
494
|
message: 'Accepting conflict resolution...',
|
|
495
495
|
prompt: 'Please do not close the application',
|
|
496
496
|
showLoading: true,
|
|
@@ -512,8 +512,9 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
512
512
|
revisionId: this.sdlcState.activeRevision.id,
|
|
513
513
|
},
|
|
514
514
|
);
|
|
515
|
-
this.editorStore.
|
|
516
|
-
|
|
515
|
+
this.editorStore.applicationStore.navigator.reload({
|
|
516
|
+
ignoreBlocking: true,
|
|
517
|
+
});
|
|
517
518
|
} catch (error) {
|
|
518
519
|
assertErrorThrown(error);
|
|
519
520
|
this.editorStore.applicationStore.log.error(
|
|
@@ -533,7 +534,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
533
534
|
this.sdlcState.checkIfCurrentWorkspaceIsInConflictResolutionMode(),
|
|
534
535
|
)) as boolean;
|
|
535
536
|
if (!isInConflictResolutionMode) {
|
|
536
|
-
this.editorStore.setBlockingAlert({
|
|
537
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
537
538
|
message: 'Workspace is no longer in conflict resolution mode',
|
|
538
539
|
prompt: 'Please refresh the application',
|
|
539
540
|
});
|
|
@@ -545,7 +546,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
545
546
|
error instanceof NetworkClientError &&
|
|
546
547
|
error.response.status === HttpStatus.NOT_FOUND
|
|
547
548
|
) {
|
|
548
|
-
this.editorStore.setBlockingAlert({
|
|
549
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
549
550
|
message: 'Current project or workspace no longer exists',
|
|
550
551
|
prompt: 'Please refresh the application',
|
|
551
552
|
});
|
|
@@ -559,7 +560,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
559
560
|
|
|
560
561
|
try {
|
|
561
562
|
this.isDiscardingConflictResolutionChanges = true;
|
|
562
|
-
this.editorStore.setBlockingAlert({
|
|
563
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
563
564
|
message: 'Discarding conflict resolution changes...',
|
|
564
565
|
prompt: 'Please do not close the application',
|
|
565
566
|
showLoading: true,
|
|
@@ -568,8 +569,9 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
568
569
|
this.sdlcState.activeProject.projectId,
|
|
569
570
|
this.sdlcState.activeWorkspace,
|
|
570
571
|
);
|
|
571
|
-
this.editorStore.
|
|
572
|
-
|
|
572
|
+
this.editorStore.applicationStore.navigator.reload({
|
|
573
|
+
ignoreBlocking: true,
|
|
574
|
+
});
|
|
573
575
|
} catch (error) {
|
|
574
576
|
assertErrorThrown(error);
|
|
575
577
|
this.editorStore.applicationStore.log.error(
|
|
@@ -589,7 +591,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
589
591
|
this.sdlcState.checkIfCurrentWorkspaceIsInConflictResolutionMode(),
|
|
590
592
|
)) as boolean;
|
|
591
593
|
if (!isInConflictResolutionMode) {
|
|
592
|
-
this.editorStore.setBlockingAlert({
|
|
594
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
593
595
|
message: 'Workspace is no longer in conflict resolution mode',
|
|
594
596
|
prompt: 'Please refresh the application',
|
|
595
597
|
});
|
|
@@ -601,7 +603,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
601
603
|
error instanceof NetworkClientError &&
|
|
602
604
|
error.response.status === HttpStatus.NOT_FOUND
|
|
603
605
|
) {
|
|
604
|
-
this.editorStore.setBlockingAlert({
|
|
606
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
605
607
|
message: 'Current project or workspace no longer exists',
|
|
606
608
|
prompt: 'Please refresh the application',
|
|
607
609
|
});
|
|
@@ -615,7 +617,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
615
617
|
|
|
616
618
|
try {
|
|
617
619
|
this.isAbortingConflictResolution = true;
|
|
618
|
-
this.editorStore.setBlockingAlert({
|
|
620
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
619
621
|
message: 'Aborting conflict resolution...',
|
|
620
622
|
prompt: 'Please do not close the application',
|
|
621
623
|
showLoading: true,
|
|
@@ -624,8 +626,9 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
624
626
|
this.sdlcState.activeProject.projectId,
|
|
625
627
|
this.sdlcState.activeWorkspace,
|
|
626
628
|
);
|
|
627
|
-
this.editorStore.
|
|
628
|
-
|
|
629
|
+
this.editorStore.applicationStore.navigator.reload({
|
|
630
|
+
ignoreBlocking: true,
|
|
631
|
+
});
|
|
629
632
|
} catch (error) {
|
|
630
633
|
assertErrorThrown(error);
|
|
631
634
|
this.editorStore.applicationStore.log.error(
|
|
@@ -716,13 +719,13 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
716
719
|
*promptBuildGraphAfterAllConflictsResolved(): GeneratorFn<void> {
|
|
717
720
|
if (!this.conflicts.length) {
|
|
718
721
|
this.confirmHasResolvedAllConflicts();
|
|
719
|
-
this.editorStore.setBlockingAlert({
|
|
722
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
720
723
|
message: 'Building graph...',
|
|
721
724
|
prompt: 'Please do not close the application',
|
|
722
725
|
showLoading: true,
|
|
723
726
|
});
|
|
724
727
|
yield flowResult(this.buildGraphInConflictResolutionMode());
|
|
725
|
-
this.editorStore.setBlockingAlert(undefined);
|
|
728
|
+
this.editorStore.applicationStore.setBlockingAlert(undefined);
|
|
726
729
|
}
|
|
727
730
|
}
|
|
728
731
|
}
|
|
@@ -158,7 +158,7 @@ export class WorkspaceUpdaterState {
|
|
|
158
158
|
this.sdlcState.checkIfCurrentWorkspaceIsInConflictResolutionMode(),
|
|
159
159
|
)) as boolean;
|
|
160
160
|
if (isInConflictResolutionMode) {
|
|
161
|
-
this.editorStore.setBlockingAlert({
|
|
161
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
162
162
|
message: 'Workspace is in conflict resolution mode',
|
|
163
163
|
prompt: 'Please refresh the application',
|
|
164
164
|
});
|
|
@@ -170,7 +170,7 @@ export class WorkspaceUpdaterState {
|
|
|
170
170
|
error instanceof NetworkClientError &&
|
|
171
171
|
error.response.status === HttpStatus.NOT_FOUND
|
|
172
172
|
) {
|
|
173
|
-
this.editorStore.setBlockingAlert({
|
|
173
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
174
174
|
message: 'Current project or workspace no longer exists',
|
|
175
175
|
prompt: 'Please refresh the application',
|
|
176
176
|
});
|
|
@@ -248,7 +248,7 @@ export class WorkspaceUpdaterState {
|
|
|
248
248
|
this.sdlcState.checkIfCurrentWorkspaceIsInConflictResolutionMode(),
|
|
249
249
|
)) as boolean;
|
|
250
250
|
if (isInConflictResolutionMode) {
|
|
251
|
-
this.editorStore.setBlockingAlert({
|
|
251
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
252
252
|
message: 'Workspace is in conflict resolution mode',
|
|
253
253
|
prompt: 'Please refresh the application',
|
|
254
254
|
});
|
|
@@ -264,7 +264,7 @@ export class WorkspaceUpdaterState {
|
|
|
264
264
|
|
|
265
265
|
this.isUpdatingWorkspace = true;
|
|
266
266
|
try {
|
|
267
|
-
this.editorStore.setBlockingAlert({
|
|
267
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
268
268
|
message: 'Updating workspace...',
|
|
269
269
|
prompt: 'Please do not close the application',
|
|
270
270
|
showLoading: true,
|
|
@@ -284,8 +284,9 @@ export class WorkspaceUpdaterState {
|
|
|
284
284
|
// TODO: we might want to handle the situation more gracefully rather than just reloading the page
|
|
285
285
|
case WorkspaceUpdateReportStatus.CONFLICT:
|
|
286
286
|
case WorkspaceUpdateReportStatus.UPDATED:
|
|
287
|
-
this.editorStore.
|
|
288
|
-
|
|
287
|
+
this.editorStore.applicationStore.navigator.reload({
|
|
288
|
+
ignoreBlocking: true,
|
|
289
|
+
});
|
|
289
290
|
break;
|
|
290
291
|
case WorkspaceUpdateReportStatus.NO_OP:
|
|
291
292
|
default:
|
|
@@ -299,7 +300,7 @@ export class WorkspaceUpdaterState {
|
|
|
299
300
|
);
|
|
300
301
|
this.editorStore.applicationStore.notifyError(error);
|
|
301
302
|
} finally {
|
|
302
|
-
this.editorStore.setBlockingAlert(undefined);
|
|
303
|
+
this.editorStore.applicationStore.setBlockingAlert(undefined);
|
|
303
304
|
this.isUpdatingWorkspace = false;
|
|
304
305
|
}
|
|
305
306
|
}
|
|
@@ -111,7 +111,7 @@ export class WorkspaceSetupStore {
|
|
|
111
111
|
this.currentProject = undefined;
|
|
112
112
|
this.workspaces = [];
|
|
113
113
|
this.currentWorkspace = undefined;
|
|
114
|
-
this.applicationStore.navigator.
|
|
114
|
+
this.applicationStore.navigator.updateCurrentLocation(
|
|
115
115
|
generateSetupRoute(undefined, undefined, undefined),
|
|
116
116
|
);
|
|
117
117
|
}
|
|
@@ -119,7 +119,7 @@ export class WorkspaceSetupStore {
|
|
|
119
119
|
resetWorkspace(): void {
|
|
120
120
|
this.currentWorkspace = undefined;
|
|
121
121
|
if (this.currentProject) {
|
|
122
|
-
this.applicationStore.navigator.
|
|
122
|
+
this.applicationStore.navigator.updateCurrentLocation(
|
|
123
123
|
generateSetupRoute(this.currentProject.projectId, undefined, undefined),
|
|
124
124
|
);
|
|
125
125
|
}
|
|
@@ -145,7 +145,7 @@ export class WorkspaceSetupStore {
|
|
|
145
145
|
)) as PlainObject<Project>,
|
|
146
146
|
);
|
|
147
147
|
} catch {
|
|
148
|
-
this.applicationStore.navigator.
|
|
148
|
+
this.applicationStore.navigator.updateCurrentLocation(
|
|
149
149
|
generateSetupRoute(undefined),
|
|
150
150
|
);
|
|
151
151
|
this.initState.pass();
|
|
@@ -241,13 +241,13 @@ export class WorkspaceSetupStore {
|
|
|
241
241
|
if (matchingWorkspace) {
|
|
242
242
|
this.changeWorkspace(matchingWorkspace);
|
|
243
243
|
} else {
|
|
244
|
-
this.applicationStore.navigator.
|
|
244
|
+
this.applicationStore.navigator.updateCurrentLocation(
|
|
245
245
|
generateSetupRoute(project.projectId),
|
|
246
246
|
);
|
|
247
247
|
}
|
|
248
248
|
} else {
|
|
249
249
|
this.currentWorkspace = undefined;
|
|
250
|
-
this.applicationStore.navigator.
|
|
250
|
+
this.applicationStore.navigator.updateCurrentLocation(
|
|
251
251
|
generateSetupRoute(project.projectId),
|
|
252
252
|
);
|
|
253
253
|
}
|
|
@@ -271,7 +271,7 @@ export class WorkspaceSetupStore {
|
|
|
271
271
|
);
|
|
272
272
|
}
|
|
273
273
|
this.currentWorkspace = workspace;
|
|
274
|
-
this.applicationStore.navigator.
|
|
274
|
+
this.applicationStore.navigator.updateCurrentLocation(
|
|
275
275
|
generateSetupRoute(
|
|
276
276
|
this.currentProject.projectId,
|
|
277
277
|
workspace.workspaceId,
|
package/tsconfig.json
CHANGED
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"./src/stores/LegendStudioApplicationPlugin.ts",
|
|
59
59
|
"./src/stores/LegendStudioBaseStore.ts",
|
|
60
60
|
"./src/stores/LegendStudioCodeSnippets.ts",
|
|
61
|
+
"./src/stores/LegendStudioCommand.ts",
|
|
61
62
|
"./src/stores/LegendStudioDocumentation.ts",
|
|
62
63
|
"./src/stores/LegendStudioEventService.ts",
|
|
63
64
|
"./src/stores/LegendStudioRouter.ts",
|
|
@@ -240,8 +241,6 @@
|
|
|
240
241
|
"./src/components/shared/ElementIconUtils.tsx",
|
|
241
242
|
"./src/components/shared/MultiplicityBadge.tsx",
|
|
242
243
|
"./src/components/shared/ProjectSelectorUtils.tsx",
|
|
243
|
-
"./src/components/shared/StudioLambdaEditor.tsx",
|
|
244
|
-
"./src/components/shared/StudioTextInputEditor.tsx",
|
|
245
244
|
"./src/components/shared/TypeTree.tsx",
|
|
246
245
|
"./src/components/shared/WorkspaceSelectorUtils.tsx",
|
|
247
246
|
"./src/components/workspace-review/WorkspaceReview.tsx",
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
|
17
|
-
import type { Type } from '@finos/legend-graph';
|
|
18
|
-
import { type LambdaEditorState } from '@finos/legend-query-builder';
|
|
19
|
-
export declare const StudioLambdaEditor: ((props: {
|
|
20
|
-
className?: string | undefined;
|
|
21
|
-
disabled: boolean;
|
|
22
|
-
lambdaEditorState: LambdaEditorState;
|
|
23
|
-
/**
|
|
24
|
-
* TODO: when we pass in these expected type we should match a type as expected type if it's covariance, i.e. it is a subtype of
|
|
25
|
-
* the expected type. Note that we also have to handle that relationship for Primitive type
|
|
26
|
-
* See https://dzone.com/articles/covariance-and-contravariance
|
|
27
|
-
*/
|
|
28
|
-
expectedType?: Type | undefined;
|
|
29
|
-
matchedExpectedType?: (() => boolean) | undefined;
|
|
30
|
-
onExpectedTypeLabelSelect?: (() => void) | undefined;
|
|
31
|
-
forceBackdrop: boolean;
|
|
32
|
-
disableExpansion?: boolean | undefined;
|
|
33
|
-
forceExpansion?: boolean | undefined;
|
|
34
|
-
disablePopUp?: boolean | undefined;
|
|
35
|
-
useBaseTextEditorSettings?: boolean | undefined;
|
|
36
|
-
hideErrorBar?: boolean | undefined;
|
|
37
|
-
onEditorFocusEventHandler?: (() => void) | undefined;
|
|
38
|
-
}) => JSX.Element) & {
|
|
39
|
-
displayName: string;
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=StudioLambdaEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StudioLambdaEditor.d.ts","sourceRoot":"","sources":["../../../src/components/shared/StudioLambdaEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAOH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,kBAAkB,WACrB;IACN,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC;;;;OAIG;IACH,YAAY,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAChC,mBAAmB,CAAC,EAAE,CAAC,MAAM,OAAO,CAAC,GAAG,SAAS,CAAC;IAClD,yBAAyB,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACrD,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC,yBAAyB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChD,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC,yBAAyB,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CACtD;;CAgGF,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { useMemo, useCallback } from 'react';
|
|
18
|
-
import { KeyCode } from 'monaco-editor';
|
|
19
|
-
import { observer } from 'mobx-react-lite';
|
|
20
|
-
import { useApplicationStore } from '@finos/legend-application';
|
|
21
|
-
import { flowResult } from 'mobx';
|
|
22
|
-
import { useEditorStore } from '../editor/EditorStoreProvider.js';
|
|
23
|
-
import { LambdaEditor, } from '@finos/legend-query-builder';
|
|
24
|
-
export const StudioLambdaEditor = observer((props) => {
|
|
25
|
-
const { className, lambdaEditorState, disabled, forceBackdrop, expectedType, onExpectedTypeLabelSelect, matchedExpectedType, disableExpansion, forceExpansion, disablePopUp, useBaseTextEditorSettings, hideErrorBar, onEditorFocusEventHandler, } = props;
|
|
26
|
-
const applicationStore = useApplicationStore();
|
|
27
|
-
const editorStore = useEditorStore();
|
|
28
|
-
const backdropSetter = useCallback((val) => applicationStore.setShowBackdrop(val), [applicationStore]);
|
|
29
|
-
const onKeyDownEventHandlers = useMemo(() => [
|
|
30
|
-
{
|
|
31
|
-
matcher: (event) => event.keyCode === KeyCode.F8,
|
|
32
|
-
action: (event) => {
|
|
33
|
-
flowResult(editorStore.graphState.checkLambdaParsingError(lambdaEditorState, !disabled, () => flowResult(editorStore.toggleTextMode()))).catch(applicationStore.alertUnhandledError);
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
matcher: (event) => event.keyCode === KeyCode.F9,
|
|
38
|
-
action: (event) => {
|
|
39
|
-
flowResult(editorStore.graphState.checkLambdaParsingError(lambdaEditorState, !disabled, async () => {
|
|
40
|
-
await flowResult(editorStore.graphState.globalCompileInFormMode());
|
|
41
|
-
})).catch(applicationStore.alertUnhandledError);
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
matcher: (event) => event.keyCode === KeyCode.F10,
|
|
46
|
-
action: (event) => {
|
|
47
|
-
flowResult(editorStore.graphState.checkLambdaParsingError(lambdaEditorState, !disabled, () => flowResult(editorStore.graphState.graphGenerationState.globalGenerate()))).catch(applicationStore.alertUnhandledError);
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
], [disabled, lambdaEditorState, applicationStore, editorStore]);
|
|
51
|
-
return (_jsx(LambdaEditor, { className: className, disabled: disabled, lambdaEditorState: lambdaEditorState, expectedType: expectedType, matchedExpectedType: matchedExpectedType, onExpectedTypeLabelSelect: onExpectedTypeLabelSelect, forceBackdrop: forceBackdrop, backdropSetter: backdropSetter, disableExpansion: disableExpansion, forceExpansion: forceExpansion, disablePopUp: disablePopUp, useBaseTextEditorSettings: useBaseTextEditorSettings, hideErrorBar: hideErrorBar, onKeyDownEventHandlers: onKeyDownEventHandlers, onEditorFocusEventHandler: onEditorFocusEventHandler }, lambdaEditorState.uuid));
|
|
52
|
-
});
|
|
53
|
-
//# sourceMappingURL=StudioLambdaEditor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StudioLambdaEditor.js","sourceRoot":"","sources":["../../../src/components/shared/StudioLambdaEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAuB,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAGL,YAAY,GACb,MAAM,6BAA6B,CAAC;AAErC,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CACxC,CAAC,KAmBA,EAAE,EAAE;IACH,MAAM,EACJ,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,yBAAyB,EACzB,YAAY,EACZ,yBAAyB,GAC1B,GAAG,KAAK,CAAC;IACV,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,GAAY,EAAE,EAAE,CAAC,gBAAgB,CAAC,eAAe,CAAC,GAAG,CAAC,EACvD,CAAC,gBAAgB,CAAC,CACnB,CAAC;IACF,MAAM,sBAAsB,GAAwC,OAAO,CACzE,GAAG,EAAE,CAAC;QACJ;YACE,OAAO,EAAE,CAAC,KAAqB,EAAW,EAAE,CAC1C,KAAK,CAAC,OAAO,KAAK,OAAO,CAAC,EAAE;YAC9B,MAAM,EAAE,CAAC,KAAqB,EAAQ,EAAE;gBACtC,UAAU,CACR,WAAW,CAAC,UAAU,CAAC,uBAAuB,CAC5C,iBAAiB,EACjB,CAAC,QAAQ,EACT,GAAG,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC,CAC/C,CACF,CAAC,KAAK,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;YAChD,CAAC;SACF;QACD;YACE,OAAO,EAAE,CAAC,KAAqB,EAAW,EAAE,CAC1C,KAAK,CAAC,OAAO,KAAK,OAAO,CAAC,EAAE;YAC9B,MAAM,EAAE,CAAC,KAAqB,EAAQ,EAAE;gBACtC,UAAU,CACR,WAAW,CAAC,UAAU,CAAC,uBAAuB,CAC5C,iBAAiB,EACjB,CAAC,QAAQ,EACT,KAAK,IAAI,EAAE;oBACT,MAAM,UAAU,CACd,WAAW,CAAC,UAAU,CAAC,uBAAuB,EAAE,CACjD,CAAC;gBACJ,CAAC,CACF,CACF,CAAC,KAAK,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;YAChD,CAAC;SACF;QACD;YACE,OAAO,EAAE,CAAC,KAAqB,EAAW,EAAE,CAC1C,KAAK,CAAC,OAAO,KAAK,OAAO,CAAC,GAAG;YAC/B,MAAM,EAAE,CAAC,KAAqB,EAAQ,EAAE;gBACtC,UAAU,CACR,WAAW,CAAC,UAAU,CAAC,uBAAuB,CAC5C,iBAAiB,EACjB,CAAC,QAAQ,EACT,GAAG,EAAE,CACH,UAAU,CACR,WAAW,CAAC,UAAU,CAAC,oBAAoB,CAAC,cAAc,EAAE,CAC7D,CACJ,CACF,CAAC,KAAK,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;YAChD,CAAC;SACF;KACF,EACD,CAAC,QAAQ,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,WAAW,CAAC,CAC7D,CAAC;IAEF,OAAO,CACL,KAAC,YAAY,IAEX,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,EAAE,YAAY,EAC1B,mBAAmB,EAAE,mBAAmB,EACxC,yBAAyB,EAAE,yBAAyB,EACpD,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,cAAc,EAC9B,YAAY,EAAE,YAAY,EAC1B,yBAAyB,EAAE,yBAAyB,EACpD,YAAY,EAAE,YAAY,EAC1B,sBAAsB,EAAE,sBAAsB,EAC9C,yBAAyB,EAAE,yBAAyB,IAf/C,iBAAiB,CAAC,IAAI,CAgB3B,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
|
17
|
-
import { type editor as monacoEditorAPI } from 'monaco-editor';
|
|
18
|
-
import { type EDITOR_LANGUAGE } from '@finos/legend-application';
|
|
19
|
-
export declare const StudioTextInputEditor: React.FC<{
|
|
20
|
-
inputValue: string;
|
|
21
|
-
isReadOnly?: boolean | undefined;
|
|
22
|
-
language: EDITOR_LANGUAGE;
|
|
23
|
-
showMiniMap?: boolean | undefined;
|
|
24
|
-
hideGutter?: boolean | undefined;
|
|
25
|
-
extraEditorOptions?: monacoEditorAPI.IEditorOptions & monacoEditorAPI.IGlobalEditorOptions;
|
|
26
|
-
updateInput?: ((val: string) => void) | undefined;
|
|
27
|
-
}>;
|
|
28
|
-
//# sourceMappingURL=StudioTextInputEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StudioTextInputEditor.d.ts","sourceRoot":"","sources":["../../../src/components/shared/StudioTextInputEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,MAAM,IAAI,eAAe,EAG/B,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,KAAK,eAAe,EAGrB,MAAM,2BAA2B,CAAC;AAInC,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,eAAe,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,kBAAkB,CAAC,EAAE,eAAe,CAAC,cAAc,GACjD,eAAe,CAAC,oBAAoB,CAAC;IACvC,WAAW,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACnD,CA0CA,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { useMemo } from 'react';
|
|
18
|
-
import { KeyCode, } from 'monaco-editor';
|
|
19
|
-
import { TextInputEditor, useApplicationStore, } from '@finos/legend-application';
|
|
20
|
-
import { flowResult } from 'mobx';
|
|
21
|
-
import { useEditorStore } from '../editor/EditorStoreProvider.js';
|
|
22
|
-
export const StudioTextInputEditor = (props) => {
|
|
23
|
-
const { inputValue, isReadOnly, updateInput, language, showMiniMap, hideGutter, extraEditorOptions, } = props;
|
|
24
|
-
const applicationStore = useApplicationStore();
|
|
25
|
-
const editorStore = useEditorStore();
|
|
26
|
-
const onKeyDownEventHandlers = useMemo(() => [
|
|
27
|
-
{
|
|
28
|
-
matcher: (event) => event.keyCode === KeyCode.F8,
|
|
29
|
-
action: (event) => {
|
|
30
|
-
flowResult(editorStore.toggleTextMode()).catch(applicationStore.alertUnhandledError);
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
], [applicationStore, editorStore]);
|
|
34
|
-
return (_jsx(TextInputEditor, { inputValue: inputValue, updateInput: updateInput, isReadOnly: isReadOnly, language: language, showMiniMap: showMiniMap, hideGutter: hideGutter, extraEditorOptions: extraEditorOptions, onKeyDownEventHandlers: onKeyDownEventHandlers }));
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=StudioTextInputEditor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StudioTextInputEditor.js","sourceRoot":"","sources":["../../../src/components/shared/StudioTextInputEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAGL,OAAO,GACR,MAAM,eAAe,CAAC;AACvB,OAAO,EAGL,eAAe,EACf,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,MAAM,CAAC,MAAM,qBAAqB,GAS7B,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EACJ,UAAU,EACV,UAAU,EACV,WAAW,EACX,QAAQ,EACR,WAAW,EACX,UAAU,EACV,kBAAkB,GACnB,GAAG,KAAK,CAAC;IAEV,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,MAAM,sBAAsB,GAC1B,OAAO,CACL,GAAG,EAAE,CAAC;QACJ;YACE,OAAO,EAAE,CAAC,KAAqB,EAAW,EAAE,CAC1C,KAAK,CAAC,OAAO,KAAK,OAAO,CAAC,EAAE;YAC9B,MAAM,EAAE,CAAC,KAAqB,EAAQ,EAAE;gBACtC,UAAU,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC,CAAC,KAAK,CAC5C,gBAAgB,CAAC,mBAAmB,CACrC,CAAC;YACJ,CAAC;SACF;KACF,EACD,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAChC,CAAC;IAEJ,OAAO,CACL,KAAC,eAAe,IACd,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,kBAAkB,EACtC,sBAAsB,EAAE,sBAAsB,GAC9C,CACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import { useMemo, useCallback } from 'react';
|
|
18
|
-
import { type IKeyboardEvent, KeyCode } from 'monaco-editor';
|
|
19
|
-
import { observer } from 'mobx-react-lite';
|
|
20
|
-
import { useApplicationStore } from '@finos/legend-application';
|
|
21
|
-
import { flowResult } from 'mobx';
|
|
22
|
-
import type { Type } from '@finos/legend-graph';
|
|
23
|
-
import { useEditorStore } from '../editor/EditorStoreProvider.js';
|
|
24
|
-
import {
|
|
25
|
-
type LambdaEditorState,
|
|
26
|
-
type LambdaEditorOnKeyDownEventHandler,
|
|
27
|
-
LambdaEditor,
|
|
28
|
-
} from '@finos/legend-query-builder';
|
|
29
|
-
|
|
30
|
-
export const StudioLambdaEditor = observer(
|
|
31
|
-
(props: {
|
|
32
|
-
className?: string | undefined;
|
|
33
|
-
disabled: boolean;
|
|
34
|
-
lambdaEditorState: LambdaEditorState;
|
|
35
|
-
/**
|
|
36
|
-
* TODO: when we pass in these expected type we should match a type as expected type if it's covariance, i.e. it is a subtype of
|
|
37
|
-
* the expected type. Note that we also have to handle that relationship for Primitive type
|
|
38
|
-
* See https://dzone.com/articles/covariance-and-contravariance
|
|
39
|
-
*/
|
|
40
|
-
expectedType?: Type | undefined;
|
|
41
|
-
matchedExpectedType?: (() => boolean) | undefined;
|
|
42
|
-
onExpectedTypeLabelSelect?: (() => void) | undefined;
|
|
43
|
-
forceBackdrop: boolean;
|
|
44
|
-
disableExpansion?: boolean | undefined;
|
|
45
|
-
forceExpansion?: boolean | undefined;
|
|
46
|
-
disablePopUp?: boolean | undefined;
|
|
47
|
-
useBaseTextEditorSettings?: boolean | undefined;
|
|
48
|
-
hideErrorBar?: boolean | undefined;
|
|
49
|
-
onEditorFocusEventHandler?: (() => void) | undefined;
|
|
50
|
-
}) => {
|
|
51
|
-
const {
|
|
52
|
-
className,
|
|
53
|
-
lambdaEditorState,
|
|
54
|
-
disabled,
|
|
55
|
-
forceBackdrop,
|
|
56
|
-
expectedType,
|
|
57
|
-
onExpectedTypeLabelSelect,
|
|
58
|
-
matchedExpectedType,
|
|
59
|
-
disableExpansion,
|
|
60
|
-
forceExpansion,
|
|
61
|
-
disablePopUp,
|
|
62
|
-
useBaseTextEditorSettings,
|
|
63
|
-
hideErrorBar,
|
|
64
|
-
onEditorFocusEventHandler,
|
|
65
|
-
} = props;
|
|
66
|
-
const applicationStore = useApplicationStore();
|
|
67
|
-
const editorStore = useEditorStore();
|
|
68
|
-
|
|
69
|
-
const backdropSetter = useCallback(
|
|
70
|
-
(val: boolean) => applicationStore.setShowBackdrop(val),
|
|
71
|
-
[applicationStore],
|
|
72
|
-
);
|
|
73
|
-
const onKeyDownEventHandlers: LambdaEditorOnKeyDownEventHandler[] = useMemo(
|
|
74
|
-
() => [
|
|
75
|
-
{
|
|
76
|
-
matcher: (event: IKeyboardEvent): boolean =>
|
|
77
|
-
event.keyCode === KeyCode.F8,
|
|
78
|
-
action: (event: IKeyboardEvent): void => {
|
|
79
|
-
flowResult(
|
|
80
|
-
editorStore.graphState.checkLambdaParsingError(
|
|
81
|
-
lambdaEditorState,
|
|
82
|
-
!disabled,
|
|
83
|
-
() => flowResult(editorStore.toggleTextMode()),
|
|
84
|
-
),
|
|
85
|
-
).catch(applicationStore.alertUnhandledError);
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
matcher: (event: IKeyboardEvent): boolean =>
|
|
90
|
-
event.keyCode === KeyCode.F9,
|
|
91
|
-
action: (event: IKeyboardEvent): void => {
|
|
92
|
-
flowResult(
|
|
93
|
-
editorStore.graphState.checkLambdaParsingError(
|
|
94
|
-
lambdaEditorState,
|
|
95
|
-
!disabled,
|
|
96
|
-
async () => {
|
|
97
|
-
await flowResult(
|
|
98
|
-
editorStore.graphState.globalCompileInFormMode(),
|
|
99
|
-
);
|
|
100
|
-
},
|
|
101
|
-
),
|
|
102
|
-
).catch(applicationStore.alertUnhandledError);
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
matcher: (event: IKeyboardEvent): boolean =>
|
|
107
|
-
event.keyCode === KeyCode.F10,
|
|
108
|
-
action: (event: IKeyboardEvent): void => {
|
|
109
|
-
flowResult(
|
|
110
|
-
editorStore.graphState.checkLambdaParsingError(
|
|
111
|
-
lambdaEditorState,
|
|
112
|
-
!disabled,
|
|
113
|
-
() =>
|
|
114
|
-
flowResult(
|
|
115
|
-
editorStore.graphState.graphGenerationState.globalGenerate(),
|
|
116
|
-
),
|
|
117
|
-
),
|
|
118
|
-
).catch(applicationStore.alertUnhandledError);
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
],
|
|
122
|
-
[disabled, lambdaEditorState, applicationStore, editorStore],
|
|
123
|
-
);
|
|
124
|
-
|
|
125
|
-
return (
|
|
126
|
-
<LambdaEditor
|
|
127
|
-
key={lambdaEditorState.uuid}
|
|
128
|
-
className={className}
|
|
129
|
-
disabled={disabled}
|
|
130
|
-
lambdaEditorState={lambdaEditorState}
|
|
131
|
-
expectedType={expectedType}
|
|
132
|
-
matchedExpectedType={matchedExpectedType}
|
|
133
|
-
onExpectedTypeLabelSelect={onExpectedTypeLabelSelect}
|
|
134
|
-
forceBackdrop={forceBackdrop}
|
|
135
|
-
backdropSetter={backdropSetter}
|
|
136
|
-
disableExpansion={disableExpansion}
|
|
137
|
-
forceExpansion={forceExpansion}
|
|
138
|
-
disablePopUp={disablePopUp}
|
|
139
|
-
useBaseTextEditorSettings={useBaseTextEditorSettings}
|
|
140
|
-
hideErrorBar={hideErrorBar}
|
|
141
|
-
onKeyDownEventHandlers={onKeyDownEventHandlers}
|
|
142
|
-
onEditorFocusEventHandler={onEditorFocusEventHandler}
|
|
143
|
-
/>
|
|
144
|
-
);
|
|
145
|
-
},
|
|
146
|
-
);
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import { useMemo } from 'react';
|
|
18
|
-
import {
|
|
19
|
-
type editor as monacoEditorAPI,
|
|
20
|
-
type IKeyboardEvent,
|
|
21
|
-
KeyCode,
|
|
22
|
-
} from 'monaco-editor';
|
|
23
|
-
import {
|
|
24
|
-
type TextInputEditorOnKeyDownEventHandler,
|
|
25
|
-
type EDITOR_LANGUAGE,
|
|
26
|
-
TextInputEditor,
|
|
27
|
-
useApplicationStore,
|
|
28
|
-
} from '@finos/legend-application';
|
|
29
|
-
import { flowResult } from 'mobx';
|
|
30
|
-
import { useEditorStore } from '../editor/EditorStoreProvider.js';
|
|
31
|
-
|
|
32
|
-
export const StudioTextInputEditor: React.FC<{
|
|
33
|
-
inputValue: string;
|
|
34
|
-
isReadOnly?: boolean | undefined;
|
|
35
|
-
language: EDITOR_LANGUAGE;
|
|
36
|
-
showMiniMap?: boolean | undefined;
|
|
37
|
-
hideGutter?: boolean | undefined;
|
|
38
|
-
extraEditorOptions?: monacoEditorAPI.IEditorOptions &
|
|
39
|
-
monacoEditorAPI.IGlobalEditorOptions;
|
|
40
|
-
updateInput?: ((val: string) => void) | undefined;
|
|
41
|
-
}> = (props) => {
|
|
42
|
-
const {
|
|
43
|
-
inputValue,
|
|
44
|
-
isReadOnly,
|
|
45
|
-
updateInput,
|
|
46
|
-
language,
|
|
47
|
-
showMiniMap,
|
|
48
|
-
hideGutter,
|
|
49
|
-
extraEditorOptions,
|
|
50
|
-
} = props;
|
|
51
|
-
|
|
52
|
-
const applicationStore = useApplicationStore();
|
|
53
|
-
const editorStore = useEditorStore();
|
|
54
|
-
|
|
55
|
-
const onKeyDownEventHandlers: TextInputEditorOnKeyDownEventHandler[] =
|
|
56
|
-
useMemo(
|
|
57
|
-
() => [
|
|
58
|
-
{
|
|
59
|
-
matcher: (event: IKeyboardEvent): boolean =>
|
|
60
|
-
event.keyCode === KeyCode.F8,
|
|
61
|
-
action: (event: IKeyboardEvent): void => {
|
|
62
|
-
flowResult(editorStore.toggleTextMode()).catch(
|
|
63
|
-
applicationStore.alertUnhandledError,
|
|
64
|
-
);
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
[applicationStore, editorStore],
|
|
69
|
-
);
|
|
70
|
-
|
|
71
|
-
return (
|
|
72
|
-
<TextInputEditor
|
|
73
|
-
inputValue={inputValue}
|
|
74
|
-
updateInput={updateInput}
|
|
75
|
-
isReadOnly={isReadOnly}
|
|
76
|
-
language={language}
|
|
77
|
-
showMiniMap={showMiniMap}
|
|
78
|
-
hideGutter={hideGutter}
|
|
79
|
-
extraEditorOptions={extraEditorOptions}
|
|
80
|
-
onKeyDownEventHandlers={onKeyDownEventHandlers}
|
|
81
|
-
/>
|
|
82
|
-
);
|
|
83
|
-
};
|