@finos/legend-application-studio 15.2.0 → 16.0.1
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 +5 -2
- package/lib/application/LegendStudio.js.map +1 -1
- package/lib/application/LegendStudioPluginManager.js +2 -2
- package/lib/application/LegendStudioPluginManager.js.map +1 -1
- package/lib/components/DSLExternalFormat_LegendStudioApplicationPlugin.d.ts +4 -4
- package/lib/components/DSLExternalFormat_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/DSLExternalFormat_LegendStudioApplicationPlugin.js +3 -3
- package/lib/components/DSLExternalFormat_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/EditorComponentTestUtils.d.ts +10 -2
- package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/EditorComponentTestUtils.js +24 -18
- package/lib/components/EditorComponentTestUtils.js.map +1 -1
- package/lib/components/EmbeddedQueryBuilder.d.ts +19 -0
- package/lib/components/EmbeddedQueryBuilder.d.ts.map +1 -0
- package/lib/components/EmbeddedQueryBuilder.js +80 -0
- package/lib/components/EmbeddedQueryBuilder.js.map +1 -0
- package/lib/components/LegendStudioApplication.d.ts +0 -1
- package/lib/components/LegendStudioApplication.d.ts.map +1 -1
- package/lib/components/editor/Editor.d.ts.map +1 -1
- package/lib/components/editor/Editor.js +12 -13
- package/lib/components/editor/Editor.js.map +1 -1
- package/lib/components/editor/StatusBar.d.ts +0 -1
- package/lib/components/editor/StatusBar.d.ts.map +1 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.d.ts +0 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.d.ts.map +1 -1
- package/lib/components/editor/aux-panel/Console.d.ts +0 -1
- package/lib/components/editor/aux-panel/Console.d.ts.map +1 -1
- package/lib/components/editor/aux-panel/DevTool.d.ts +0 -1
- package/lib/components/editor/aux-panel/DevTool.d.ts.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts +0 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.d.ts +0 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/FunctionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.js +15 -3
- package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.d.ts +0 -1
- package/lib/components/editor/edit-panel/ModelImporter.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/UnsupportedElementEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/UnsupportedElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.d.ts +0 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts +0 -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 +2 -2
- 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 +0 -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.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.d.ts +0 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.d.ts +0 -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/ElementNativeView.d.ts +0 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/BindingElementEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/BindingElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/ExternalFormatConnectionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/ExternalFormatConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/NewSchemaSetDriver.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/NewSchemaSetDriver.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/SchemaSetModelGenerationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/SchemaSetModelGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts +0 -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 +40 -8
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.d.ts +18 -0
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.d.ts.map +1 -0
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.js +38 -0
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.js.map +1 -0
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts +0 -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 +40 -8
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts +0 -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 +52 -8
- 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 +0 -1
- package/lib/components/editor/edit-panel/service-editor/NewServiceModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts +0 -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 +58 -10
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.d.ts +19 -0
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.d.ts.map +1 -0
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js +80 -0
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js.map +1 -0
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/UMLEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/UMLEditor.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts +0 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.d.ts +0 -1
- package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +15 -8
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.d.ts +0 -1
- package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts +0 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/SideBar.d.ts +0 -1
- package/lib/components/editor/side-bar/SideBar.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts.map +1 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts +0 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
- package/lib/components/project-viewer/ProjectViewer.d.ts.map +1 -1
- package/lib/components/project-viewer/ProjectViewer.js +5 -6
- package/lib/components/project-viewer/ProjectViewer.js.map +1 -1
- package/lib/components/shared/DiffView.d.ts +0 -1
- package/lib/components/shared/DiffView.d.ts.map +1 -1
- package/lib/components/shared/StudioLambdaEditor.d.ts +0 -1
- package/lib/components/shared/StudioLambdaEditor.d.ts.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts +0 -1
- package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts +0 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts.map +1 -1
- package/lib/components/workspace-setup/ProjectCreateModal.d.ts +0 -1
- package/lib/components/workspace-setup/ProjectCreateModal.d.ts.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +5 -5
- package/lib/stores/DSLMapping_LegendStudioApplicationPlugin_Extension.d.ts +0 -18
- package/lib/stores/DSLMapping_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -1
- package/lib/stores/DSLService_LegendStudioApplicationPlugin_Extension.d.ts +0 -10
- package/lib/stores/DSLService_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.js +37 -9
- package/lib/stores/EditorGraphState.js.map +1 -1
- package/lib/stores/EditorStore.d.ts +2 -0
- package/lib/stores/EditorStore.d.ts.map +1 -1
- package/lib/stores/EditorStore.js +3 -0
- package/lib/stores/EditorStore.js.map +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.d.ts +40 -0
- package/lib/stores/EmbeddedQueryBuilderState.d.ts.map +1 -0
- package/lib/stores/EmbeddedQueryBuilderState.js +80 -0
- package/lib/stores/EmbeddedQueryBuilderState.js.map +1 -0
- package/lib/stores/LegendStudioAppEvent.d.ts +2 -1
- package/lib/stores/LegendStudioAppEvent.d.ts.map +1 -1
- package/lib/stores/LegendStudioAppEvent.js +1 -0
- package/lib/stores/LegendStudioAppEvent.js.map +1 -1
- package/lib/stores/LegendStudioApplicationNavigationContext.d.ts +1 -0
- package/lib/stores/LegendStudioApplicationNavigationContext.d.ts.map +1 -1
- package/lib/stores/LegendStudioApplicationNavigationContext.js +1 -0
- package/lib/stores/LegendStudioApplicationNavigationContext.js.map +1 -1
- package/lib/stores/LegendStudioApplicationPlugin.d.ts +7 -7
- package/lib/stores/LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendStudioCodeSnippets.d.ts +2 -0
- package/lib/stores/LegendStudioCodeSnippets.d.ts.map +1 -1
- package/lib/stores/LegendStudioCodeSnippets.js +28 -0
- package/lib/stores/LegendStudioCodeSnippets.js.map +1 -1
- package/lib/stores/StoreRelational_LegendStudioApplicationPlugin_Extension.d.ts +13 -5
- package/lib/stores/StoreRelational_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts +11 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js +66 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.js +9 -9
- package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.d.ts +29 -0
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.d.ts.map +1 -0
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js +42 -0
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js.map +1 -0
- package/lib/stores/shared/DnDUtil.js +1 -1
- package/lib/stores/shared/PackageTreeUtil.js +6 -6
- package/lib/stores/shared/PackageTreeUtil.js.map +1 -1
- package/package.json +13 -13
- package/src/application/LegendStudio.tsx +8 -2
- package/src/application/LegendStudioPluginManager.ts +2 -2
- package/src/components/DSLExternalFormat_LegendStudioApplicationPlugin.tsx +5 -5
- package/src/components/EditorComponentTestUtils.tsx +29 -23
- package/src/components/EmbeddedQueryBuilder.tsx +165 -0
- package/src/components/editor/Editor.tsx +77 -79
- package/src/components/editor/edit-panel/GrammarTextEditor.tsx +24 -2
- package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +2 -2
- package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +1 -0
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +88 -15
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.tsx +93 -0
- package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +81 -16
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +170 -4
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +115 -20
- package/src/components/editor/edit-panel/uml-editor/ClassQueryBuilder.tsx +159 -0
- package/src/components/editor/side-bar/Explorer.tsx +20 -10
- package/src/components/project-viewer/ProjectViewer.tsx +36 -38
- package/src/index.ts +1 -1
- package/src/stores/DSLMapping_LegendStudioApplicationPlugin_Extension.ts +0 -27
- package/src/stores/DSLService_LegendStudioApplicationPlugin_Extension.ts +0 -14
- package/src/stores/EditorGraphState.ts +56 -11
- package/src/stores/EditorStore.ts +3 -0
- package/src/stores/EmbeddedQueryBuilderState.ts +105 -0
- package/src/stores/LegendStudioAppEvent.ts +1 -0
- package/src/stores/LegendStudioApplicationNavigationContext.ts +1 -0
- package/src/stores/LegendStudioApplicationPlugin.ts +7 -7
- package/src/stores/LegendStudioCodeSnippets.ts +34 -0
- package/src/stores/StoreRelational_LegendStudioApplicationPlugin_Extension.ts +19 -5
- package/src/stores/editor-state/ProjectConfigurationEditorState.ts +104 -1
- package/src/stores/editor-state/element-editor-state/connection/ConnectionEditorState.ts +9 -9
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.ts +58 -0
- package/src/stores/shared/DnDUtil.ts +1 -1
- package/src/stores/shared/PackageTreeUtil.ts +6 -6
- package/tsconfig.json +5 -0
|
@@ -38,13 +38,77 @@ import {
|
|
|
38
38
|
UpdateProjectConfigurationCommand,
|
|
39
39
|
} from '@finos/legend-server-sdlc';
|
|
40
40
|
import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js';
|
|
41
|
-
import {
|
|
41
|
+
import {
|
|
42
|
+
type ProjectVersionDependencies,
|
|
43
|
+
generateGAVCoordinates,
|
|
44
|
+
MASTER_SNAPSHOT_ALIAS,
|
|
45
|
+
ProjectData,
|
|
46
|
+
ProjectDependencyInfo,
|
|
47
|
+
ProjectDependencyCoordinates,
|
|
48
|
+
} from '@finos/legend-server-depot';
|
|
49
|
+
import { TAB_SIZE } from '@finos/legend-application';
|
|
42
50
|
|
|
43
51
|
export enum CONFIGURATION_EDITOR_TAB {
|
|
44
52
|
PROJECT_STRUCTURE = 'PROJECT_STRUCTURE',
|
|
45
53
|
PROJECT_DEPENDENCIES = 'PROJECT_DEPENDENCIES',
|
|
46
54
|
}
|
|
47
55
|
|
|
56
|
+
export enum DEPENDENCY_INFO_TYPE {
|
|
57
|
+
TREE = 'tree',
|
|
58
|
+
CONFLICTS = 'conflicts',
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const getDependencyTreeString = (
|
|
62
|
+
dependant: ProjectVersionDependencies,
|
|
63
|
+
tab: string,
|
|
64
|
+
): string => {
|
|
65
|
+
const prefix = tab + (dependant.dependencies.length ? '+-' : '\\-');
|
|
66
|
+
const gav = generateGAVCoordinates(
|
|
67
|
+
dependant.groupId,
|
|
68
|
+
dependant.artifactId,
|
|
69
|
+
dependant.versionId,
|
|
70
|
+
);
|
|
71
|
+
return `${prefix + gav}\n${dependant.dependencies
|
|
72
|
+
.map((e) => getDependencyTreeString(e, tab + ' '.repeat(TAB_SIZE)))
|
|
73
|
+
.join('')}`;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export const getDependencyTreeStringFromInfo = (
|
|
77
|
+
info: ProjectDependencyInfo,
|
|
78
|
+
): string => info.tree.map((e) => getDependencyTreeString(e, '')).join('\n');
|
|
79
|
+
|
|
80
|
+
const getConflictPathString = (path: string): string => {
|
|
81
|
+
const seperator = '>';
|
|
82
|
+
const projects = path.split(seperator);
|
|
83
|
+
let result = '';
|
|
84
|
+
let currentTab = ' '.repeat(TAB_SIZE);
|
|
85
|
+
projects.forEach((p) => {
|
|
86
|
+
result += `${currentTab + p}\n`;
|
|
87
|
+
currentTab = currentTab + ' '.repeat(TAB_SIZE);
|
|
88
|
+
});
|
|
89
|
+
return result;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export const getConflictsString = (info: ProjectDependencyInfo): string =>
|
|
93
|
+
info.conflicts
|
|
94
|
+
.map((c) => {
|
|
95
|
+
const base = `project:\n${
|
|
96
|
+
' '.repeat(TAB_SIZE) +
|
|
97
|
+
generateGAVCoordinates(c.groupId, c.artifactId, undefined)
|
|
98
|
+
}`;
|
|
99
|
+
const versions = `versions:\n${c.versions
|
|
100
|
+
.map((v) => ' '.repeat(TAB_SIZE) + v)
|
|
101
|
+
.join('\n')}`;
|
|
102
|
+
const paths = `paths:\n${c.conflictPaths
|
|
103
|
+
.map(
|
|
104
|
+
(p, idx) =>
|
|
105
|
+
`${' '.repeat(TAB_SIZE) + (idx + 1)}:\n${getConflictPathString(p)}`,
|
|
106
|
+
)
|
|
107
|
+
.join('')}`;
|
|
108
|
+
return `${base}\n${versions}\n${paths}`;
|
|
109
|
+
})
|
|
110
|
+
.join('\n\n');
|
|
111
|
+
|
|
48
112
|
export class ProjectConfigurationEditorState extends EditorState {
|
|
49
113
|
sdlcState: EditorSDLCState;
|
|
50
114
|
originalProjectConfiguration?: ProjectConfiguration | undefined; // TODO: we might want to remove this when we do change detection for project configuration
|
|
@@ -54,6 +118,8 @@ export class ProjectConfigurationEditorState extends EditorState {
|
|
|
54
118
|
projects = new Map<string, ProjectData>();
|
|
55
119
|
queryHistory = new Set<string>();
|
|
56
120
|
latestProjectStructureVersion: ProjectStructureVersion | undefined;
|
|
121
|
+
dependencyInfo: ProjectDependencyInfo | undefined;
|
|
122
|
+
dependencyInfoModalType: DEPENDENCY_INFO_TYPE | undefined;
|
|
57
123
|
isUpdatingConfiguration = false;
|
|
58
124
|
isQueryingProjects = false;
|
|
59
125
|
associatedProjectsAndVersionsFetched = false;
|
|
@@ -74,15 +140,19 @@ export class ProjectConfigurationEditorState extends EditorState {
|
|
|
74
140
|
associatedProjectsAndVersionsFetched: observable,
|
|
75
141
|
isFetchingAssociatedProjectsAndVersions: observable,
|
|
76
142
|
latestProjectStructureVersion: observable,
|
|
143
|
+
dependencyInfo: observable,
|
|
144
|
+
dependencyInfoModalType: observable,
|
|
77
145
|
originalConfig: computed,
|
|
78
146
|
setOriginalProjectConfiguration: action,
|
|
79
147
|
setProjectConfiguration: action,
|
|
148
|
+
setDependencyInfoModal: action,
|
|
80
149
|
setSelectedTab: action,
|
|
81
150
|
fectchAssociatedProjectsAndVersions: flow,
|
|
82
151
|
updateProjectConfiguration: flow,
|
|
83
152
|
updateToLatestStructure: flow,
|
|
84
153
|
updateConfigs: flow,
|
|
85
154
|
fetchLatestProjectStructureVersion: flow,
|
|
155
|
+
fetchDependencyInfo: flow,
|
|
86
156
|
});
|
|
87
157
|
|
|
88
158
|
this.selectedTab = CONFIGURATION_EDITOR_TAB.PROJECT_STRUCTURE;
|
|
@@ -104,6 +174,10 @@ export class ProjectConfigurationEditorState extends EditorState {
|
|
|
104
174
|
this.selectedTab = tab;
|
|
105
175
|
}
|
|
106
176
|
|
|
177
|
+
setDependencyInfoModal(type: DEPENDENCY_INFO_TYPE | undefined): void {
|
|
178
|
+
this.dependencyInfoModalType = type;
|
|
179
|
+
}
|
|
180
|
+
|
|
107
181
|
get headerName(): string {
|
|
108
182
|
return 'config';
|
|
109
183
|
}
|
|
@@ -171,6 +245,35 @@ export class ProjectConfigurationEditorState extends EditorState {
|
|
|
171
245
|
}
|
|
172
246
|
}
|
|
173
247
|
|
|
248
|
+
*fetchDependencyInfo(): GeneratorFn<void> {
|
|
249
|
+
try {
|
|
250
|
+
if (this.projectConfiguration?.projectDependencies) {
|
|
251
|
+
const dependencyCoordinates = (yield flowResult(
|
|
252
|
+
this.editorStore.graphState.buildProjectDependencyCoordinates(
|
|
253
|
+
this.projectConfiguration.projectDependencies,
|
|
254
|
+
),
|
|
255
|
+
)) as ProjectDependencyCoordinates[];
|
|
256
|
+
const dependencyInfoRaw =
|
|
257
|
+
(yield this.editorStore.depotServerClient.analyzeDependencyTree(
|
|
258
|
+
dependencyCoordinates.map((e) =>
|
|
259
|
+
ProjectDependencyCoordinates.serialization.toJson(e),
|
|
260
|
+
),
|
|
261
|
+
)) as PlainObject<ProjectDependencyInfo>;
|
|
262
|
+
this.dependencyInfo =
|
|
263
|
+
ProjectDependencyInfo.serialization.fromJson(dependencyInfoRaw);
|
|
264
|
+
} else {
|
|
265
|
+
this.dependencyInfo = new ProjectDependencyInfo();
|
|
266
|
+
}
|
|
267
|
+
} catch (error) {
|
|
268
|
+
assertErrorThrown(error);
|
|
269
|
+
this.dependencyInfo = undefined;
|
|
270
|
+
this.editorStore.applicationStore.log.error(
|
|
271
|
+
LogEvent.create(LEGEND_STUDIO_APP_EVENT.DEPOT_MANAGER_FAILURE),
|
|
272
|
+
error,
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
174
277
|
*updateProjectConfiguration(
|
|
175
278
|
updateConfigurationCommand: UpdateProjectConfigurationCommand,
|
|
176
279
|
): GeneratorFn<void> {
|
|
@@ -137,7 +137,7 @@ export class RelationalDatabaseConnectionValueState extends ConnectionValueState
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
selectPostProcessor = (postProcessor: PostProcessor | undefined): void => {
|
|
140
|
-
if (
|
|
140
|
+
if (postProcessor) {
|
|
141
141
|
if (postProcessor instanceof MapperPostProcessor) {
|
|
142
142
|
this.postProcessorState = new MapperPostProcessorEditorState(
|
|
143
143
|
postProcessor,
|
|
@@ -196,17 +196,17 @@ export class RelationalDatabaseConnectionValueState extends ConnectionValueState
|
|
|
196
196
|
} else if (spec instanceof RedshiftDatasourceSpecification) {
|
|
197
197
|
return CORE_DATASOURCE_SPEC_TYPE.REDSHIFT;
|
|
198
198
|
}
|
|
199
|
-
const
|
|
199
|
+
const extraDatasourceSpecificationClassifiers =
|
|
200
200
|
this.editorStore.pluginManager
|
|
201
201
|
.getApplicationPlugins()
|
|
202
202
|
.flatMap(
|
|
203
203
|
(plugin) =>
|
|
204
204
|
(
|
|
205
205
|
plugin as StoreRelational_LegendStudioApplicationPlugin_Extension
|
|
206
|
-
).
|
|
206
|
+
).getExtraDatasourceSpecificationClassifiers?.() ?? [],
|
|
207
207
|
);
|
|
208
|
-
for (const
|
|
209
|
-
const type =
|
|
208
|
+
for (const classifier of extraDatasourceSpecificationClassifiers) {
|
|
209
|
+
const type = classifier(spec);
|
|
210
210
|
if (type) {
|
|
211
211
|
return type;
|
|
212
212
|
}
|
|
@@ -315,17 +315,17 @@ export class RelationalDatabaseConnectionValueState extends ConnectionValueState
|
|
|
315
315
|
return CORE_AUTHENTICATION_STRATEGY_TYPE.MIDDLE_TIER_USERNAME_PASSWORD;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
const
|
|
318
|
+
const extraAuthenticationStrategyClassifiers =
|
|
319
319
|
this.editorStore.pluginManager
|
|
320
320
|
.getApplicationPlugins()
|
|
321
321
|
.flatMap(
|
|
322
322
|
(plugin) =>
|
|
323
323
|
(
|
|
324
324
|
plugin as StoreRelational_LegendStudioApplicationPlugin_Extension
|
|
325
|
-
).
|
|
325
|
+
).getExtraAuthenticationStrategyClassifiers?.() ?? [],
|
|
326
326
|
);
|
|
327
|
-
for (const
|
|
328
|
-
const type =
|
|
327
|
+
for (const classifier of extraAuthenticationStrategyClassifiers) {
|
|
328
|
+
const type = classifier(auth);
|
|
329
329
|
if (type) {
|
|
330
330
|
return type;
|
|
331
331
|
}
|
package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
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 type { GenericLegendApplicationStore } from '@finos/legend-application';
|
|
18
|
+
import { QueryBuilderState } from '@finos/legend-query-builder';
|
|
19
|
+
import type { GraphManagerState, Mapping } from '@finos/legend-graph';
|
|
20
|
+
import { renderMappingExecutionQueryBuilderSetupPanelContent } from '../../../../components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.js';
|
|
21
|
+
|
|
22
|
+
export class MappingExecutionQueryBuilderState extends QueryBuilderState {
|
|
23
|
+
readonly executionMapping: Mapping;
|
|
24
|
+
|
|
25
|
+
override TEMPORARY__setupPanelContentRenderer = (): React.ReactNode =>
|
|
26
|
+
renderMappingExecutionQueryBuilderSetupPanelContent(this);
|
|
27
|
+
|
|
28
|
+
constructor(
|
|
29
|
+
mapping: Mapping,
|
|
30
|
+
applicationStore: GenericLegendApplicationStore,
|
|
31
|
+
graphManagerState: GraphManagerState,
|
|
32
|
+
) {
|
|
33
|
+
super(applicationStore, graphManagerState);
|
|
34
|
+
|
|
35
|
+
this.executionMapping = mapping;
|
|
36
|
+
this.mapping = mapping;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
override get isMappingReadOnly(): boolean {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
override get isRuntimeReadOnly(): boolean {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
override get isParameterSupportDisabled(): boolean {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
override get isResultPanelHidden(): boolean {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
override get sideBarClassName(): string | undefined {
|
|
56
|
+
return 'query-builder__setup__mapping-execution';
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -51,7 +51,7 @@ export enum CORE_DND_TYPE {
|
|
|
51
51
|
MAPPING_EXPLORER_ASSOCIATION_MAPPING = 'MAPPING_EXPLORER_ASSOCIATION_MAPPING',
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
//
|
|
54
|
+
// react-dnd uses Redux under the hood and also it champions the use of plain object over class instance
|
|
55
55
|
// There is some practical reason for that (due to the potential need to serialize the item object), but as for now
|
|
56
56
|
// this way of creating the drag itm is still very convenient for us since we can do direct type comparison rather than having
|
|
57
57
|
// to use element full path, we might need follow the following threads if there are any breaking changes
|
|
@@ -79,18 +79,18 @@ const getElementProjectExplorerDnDType = (
|
|
|
79
79
|
} else if (element instanceof DataElement) {
|
|
80
80
|
return CORE_DND_TYPE.PROJECT_EXPLORER_DATA;
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const extraDragElementClassifiers = editorStore.pluginManager
|
|
83
83
|
.getApplicationPlugins()
|
|
84
84
|
.flatMap(
|
|
85
85
|
(plugin) =>
|
|
86
86
|
(
|
|
87
87
|
plugin as DSL_LegendStudioApplicationPlugin_Extension
|
|
88
|
-
).
|
|
88
|
+
).getExtraDragElementClassifiers?.() ?? [],
|
|
89
89
|
);
|
|
90
|
-
for (const
|
|
91
|
-
const
|
|
92
|
-
if (
|
|
93
|
-
return
|
|
90
|
+
for (const classifier of extraDragElementClassifiers) {
|
|
91
|
+
const dragType = classifier(element);
|
|
92
|
+
if (dragType) {
|
|
93
|
+
return dragType;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
return CORE_DND_TYPE.NONE;
|
package/tsconfig.json
CHANGED
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"./src/stores/EditorSDLCState.ts",
|
|
52
52
|
"./src/stores/EditorStore.ts",
|
|
53
53
|
"./src/stores/EditorStoreTestUtils.ts",
|
|
54
|
+
"./src/stores/EmbeddedQueryBuilderState.ts",
|
|
54
55
|
"./src/stores/ExplorerTreeState.ts",
|
|
55
56
|
"./src/stores/LegendStudioAppEvent.ts",
|
|
56
57
|
"./src/stores/LegendStudioApplicationNavigationContext.ts",
|
|
@@ -94,6 +95,7 @@
|
|
|
94
95
|
"./src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts",
|
|
95
96
|
"./src/stores/editor-state/element-editor-state/mapping/MappingElementDecorator.ts",
|
|
96
97
|
"./src/stores/editor-state/element-editor-state/mapping/MappingElementState.ts",
|
|
98
|
+
"./src/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.ts",
|
|
97
99
|
"./src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts",
|
|
98
100
|
"./src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts",
|
|
99
101
|
"./src/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.ts",
|
|
@@ -145,6 +147,7 @@
|
|
|
145
147
|
"./src/components/Core_LegendStudioApplicationPlugin.tsx",
|
|
146
148
|
"./src/components/DSLExternalFormat_LegendStudioApplicationPlugin.tsx",
|
|
147
149
|
"./src/components/EditorComponentTestUtils.tsx",
|
|
150
|
+
"./src/components/EmbeddedQueryBuilder.tsx",
|
|
148
151
|
"./src/components/LegendStudioAppInfo.tsx",
|
|
149
152
|
"./src/components/LegendStudioApplication.tsx",
|
|
150
153
|
"./src/components/LegendStudioBaseStoreProvider.tsx",
|
|
@@ -191,6 +194,7 @@
|
|
|
191
194
|
"./src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.tsx",
|
|
192
195
|
"./src/components/editor/edit-panel/mapping-editor/MappingEditor.tsx",
|
|
193
196
|
"./src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx",
|
|
197
|
+
"./src/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.tsx",
|
|
194
198
|
"./src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx",
|
|
195
199
|
"./src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx",
|
|
196
200
|
"./src/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.tsx",
|
|
@@ -212,6 +216,7 @@
|
|
|
212
216
|
"./src/components/editor/edit-panel/testable/TestAssertionEditor.tsx",
|
|
213
217
|
"./src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx",
|
|
214
218
|
"./src/components/editor/edit-panel/uml-editor/ClassEditor.tsx",
|
|
219
|
+
"./src/components/editor/edit-panel/uml-editor/ClassQueryBuilder.tsx",
|
|
215
220
|
"./src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx",
|
|
216
221
|
"./src/components/editor/edit-panel/uml-editor/ProfileEditor.tsx",
|
|
217
222
|
"./src/components/editor/edit-panel/uml-editor/PropertyEditor.tsx",
|