@finos/legend-application-studio 15.1.0 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/LegendStudio.d.ts.map +1 -1
- package/lib/application/LegendStudio.js +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 +1 -1
- package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/EditorComponentTestUtils.js +19 -23
- 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/FunctionEditor.js +3 -3
- package/lib/components/editor/edit-panel/FunctionEditor.js.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/UnsupportedElementEditor.js +1 -1
- package/lib/components/editor/edit-panel/UnsupportedElementEditor.js.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/ConnectionEditor.js +2 -2
- package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.js.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/DatabaseBuilder.js +1 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js.map +1 -1
- package/lib/{stores/editor-state/element-editor-state/mapping/relational → components/editor/edit-panel/connection-editor}/DatabaseEditorHelper.d.ts +0 -0
- package/lib/components/editor/edit-panel/connection-editor/DatabaseEditorHelper.d.ts.map +1 -0
- package/lib/{stores/editor-state/element-editor-state/mapping/relational → components/editor/edit-panel/connection-editor}/DatabaseEditorHelper.js +0 -0
- package/lib/components/editor/edit-panel/connection-editor/DatabaseEditorHelper.js.map +1 -0
- 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 +3 -13
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js +103 -41
- 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 +25 -0
- package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.d.ts.map +1 -0
- package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js +77 -0
- package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js.map +1 -0
- 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/EmbeddedDataEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js +1 -1
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js.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/EnumerationMappingEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js.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/InstanceSetImplementationEditor.js +2 -2
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js.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/InstanceSetImplementationSourceSelectorModal.js +2 -5
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.js.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/NewMappingElementModal.js +4 -4
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js.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/mapping-editor/relational/TableOrViewSourceTree.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/TableOrViewSourceTree.js.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/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/ServiceExecutionEditor.js +2 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js.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/ServiceTestDataEditor.js +7 -5
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js.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/AssociationEditor.js +2 -2
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.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/ClassEditor.js +9 -7
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js.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/StereotypeSelector.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js +4 -1
- package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js +4 -1
- package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js.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/CreateNewElementModal.js +7 -4
- package/lib/components/editor/side-bar/CreateNewElementModal.js.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/editor/side-bar/testable/GlobalTestRunner.js +8 -2
- 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 +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 +4 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -3
- package/lib/index.js.map +1 -1
- package/lib/package.json +9 -9
- 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.js +1 -1
- package/lib/stores/EditorStore.d.ts +3 -9
- package/lib/stores/EditorStore.d.ts.map +1 -1
- package/lib/stores/EditorStore.js +6 -54
- 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/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 +41 -6
- package/lib/stores/StoreRelational_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -1
- package/lib/stores/editor/NewElementState.d.ts +1 -1
- package/lib/stores/editor/NewElementState.d.ts.map +1 -1
- package/lib/stores/editor/NewElementState.js +5 -3
- package/lib/stores/editor/NewElementState.js.map +1 -1
- package/lib/stores/editor-state/ModelImporterState.d.ts.map +1 -1
- package/lib/stores/editor-state/ModelImporterState.js +10 -6
- package/lib/stores/editor-state/ModelImporterState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.d.ts +9 -2
- package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.js +40 -10
- package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/PostProcessorEditorState.d.ts +30 -0
- package/lib/stores/editor-state/element-editor-state/connection/PostProcessorEditorState.d.ts.map +1 -0
- package/lib/stores/editor-state/element-editor-state/connection/PostProcessorEditorState.js +49 -0
- package/lib/stores/editor-state/element-editor-state/connection/PostProcessorEditorState.js.map +1 -0
- 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/editor-state/element-editor-state/service/ServiceExecutionState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.d.ts +2 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js +6 -4
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
- package/lib/stores/graphModifier/StoreRelational_GraphModifierHelper.d.ts +10 -1
- package/lib/stores/graphModifier/StoreRelational_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graphModifier/StoreRelational_GraphModifierHelper.js +27 -1
- package/lib/stores/graphModifier/StoreRelational_GraphModifierHelper.js.map +1 -1
- 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/lib/stores/sidebar-state/testable/GlobalTestRunnerState.d.ts +1 -3
- package/lib/stores/sidebar-state/testable/GlobalTestRunnerState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/testable/GlobalTestRunnerState.js +1 -4
- package/lib/stores/sidebar-state/testable/GlobalTestRunnerState.js.map +1 -1
- package/package.json +17 -17
- 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 +20 -35
- package/src/components/EmbeddedQueryBuilder.tsx +165 -0
- package/src/components/editor/Editor.tsx +77 -79
- package/src/components/editor/edit-panel/FunctionEditor.tsx +9 -2
- package/src/components/editor/edit-panel/GrammarTextEditor.tsx +24 -2
- package/src/components/editor/edit-panel/UnsupportedElementEditor.tsx +1 -1
- package/src/components/editor/edit-panel/connection-editor/ConnectionEditor.tsx +6 -2
- package/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx +1 -1
- package/src/{stores/editor-state/element-editor-state/mapping/relational → components/editor/edit-panel/connection-editor}/DatabaseEditorHelper.tsx +0 -0
- package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +371 -172
- package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +279 -0
- package/src/components/editor/edit-panel/data-editor/EmbeddedDataEditor.tsx +2 -1
- package/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx +5 -1
- package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx +2 -2
- package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.tsx +2 -9
- 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/mapping-editor/NewMappingElementModal.tsx +4 -3
- package/src/components/editor/edit-panel/mapping-editor/relational/TableOrViewSourceTree.tsx +1 -1
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +6 -2
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +115 -20
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.tsx +12 -5
- package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +3 -1
- package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +21 -12
- package/src/components/editor/edit-panel/uml-editor/ClassQueryBuilder.tsx +159 -0
- package/src/components/editor/edit-panel/uml-editor/StereotypeSelector.tsx +7 -4
- package/src/components/editor/edit-panel/uml-editor/TaggedValueEditor.tsx +7 -4
- package/src/components/editor/side-bar/CreateNewElementModal.tsx +9 -3
- package/src/components/editor/side-bar/Explorer.tsx +20 -10
- package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +13 -1
- package/src/components/project-viewer/ProjectViewer.tsx +36 -38
- package/src/index.ts +7 -3
- package/src/stores/DSLMapping_LegendStudioApplicationPlugin_Extension.ts +0 -27
- package/src/stores/DSLService_LegendStudioApplicationPlugin_Extension.ts +0 -14
- package/src/stores/EditorGraphState.ts +1 -1
- package/src/stores/EditorStore.ts +5 -81
- package/src/stores/EmbeddedQueryBuilderState.ts +105 -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 +74 -5
- package/src/stores/editor/NewElementState.ts +8 -7
- package/src/stores/editor-state/ModelImporterState.ts +15 -11
- package/src/stores/editor-state/element-editor-state/connection/ConnectionEditorState.ts +55 -9
- package/src/stores/editor-state/element-editor-state/connection/PostProcessorEditorState.ts +73 -0
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.ts +58 -0
- package/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +14 -4
- package/src/stores/graphModifier/StoreRelational_GraphModifierHelper.ts +64 -0
- package/src/stores/shared/DnDUtil.ts +1 -1
- package/src/stores/shared/PackageTreeUtil.ts +6 -6
- package/src/stores/sidebar-state/testable/GlobalTestRunnerState.ts +2 -9
- package/tsconfig.json +10 -3
- package/tsconfig.package.json +38 -0
- package/lib/stores/editor-state/element-editor-state/mapping/relational/DatabaseEditorHelper.d.ts.map +0 -1
- package/lib/stores/editor-state/element-editor-state/mapping/relational/DatabaseEditorHelper.js.map +0 -1
|
@@ -117,7 +117,7 @@ export abstract class LegendStudioApplicationPlugin extends LegendApplicationPlu
|
|
|
117
117
|
getExtraTestableMetadata?(): TestableMetadataGetter[];
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
export type
|
|
120
|
+
export type ElementClassifier = (
|
|
121
121
|
metamodel: PackageableElement,
|
|
122
122
|
) => string | undefined;
|
|
123
123
|
|
|
@@ -165,7 +165,7 @@ export type ElementEditorStateCreator = (
|
|
|
165
165
|
element: PackageableElement,
|
|
166
166
|
) => ElementEditorState | undefined;
|
|
167
167
|
|
|
168
|
-
export type
|
|
168
|
+
export type DragElementClassifier = (
|
|
169
169
|
element: PackageableElement,
|
|
170
170
|
) => string | undefined;
|
|
171
171
|
|
|
@@ -251,7 +251,7 @@ export interface DSL_LegendStudioApplicationPlugin_Extension
|
|
|
251
251
|
/**
|
|
252
252
|
* Get the list of classifiers for a packageable element.
|
|
253
253
|
*/
|
|
254
|
-
|
|
254
|
+
getExtraElementClassifiers?(): ElementClassifier[];
|
|
255
255
|
|
|
256
256
|
/**
|
|
257
257
|
* Get the list of (user-friendly) type labelers for a packageable element.
|
|
@@ -304,14 +304,14 @@ export interface DSL_LegendStudioApplicationPlugin_Extension
|
|
|
304
304
|
getExtraElementEditorStateCreators?(): ElementEditorStateCreator[];
|
|
305
305
|
|
|
306
306
|
/**
|
|
307
|
-
* Get the list of the
|
|
307
|
+
* Get the list of the classifiers for draggable elements from explorer tree
|
|
308
308
|
*/
|
|
309
|
-
|
|
309
|
+
getExtraDragElementClassifiers?(): DragElementClassifier[];
|
|
310
310
|
|
|
311
311
|
/**
|
|
312
|
-
* Get the list of the supported drag
|
|
312
|
+
* Get the list of the supported drag element type speficiers for Pure grammar text editor.
|
|
313
313
|
*/
|
|
314
|
-
|
|
314
|
+
getExtraPureGrammarTextEditorDragElementTypes?(): string[];
|
|
315
315
|
|
|
316
316
|
/**
|
|
317
317
|
* Get the list of Pure grammar parser description getters based on parser section keyword
|
|
@@ -157,6 +157,40 @@ export const RELATIONAL_DATABASE_CONNECTION_SNIPPET = `RelationalDatabaseConnect
|
|
|
157
157
|
auth: \${5:DefaultH2 {\\}};
|
|
158
158
|
}`;
|
|
159
159
|
|
|
160
|
+
// ------------------------------------- Post-Processor -------------------------------------
|
|
161
|
+
|
|
162
|
+
export const POST_PROCESSOR_RELATIONAL_DATABASE_CONNECTION_SNIPPET = `RelationalDatabaseConnection \${1:model::NewConnection}
|
|
163
|
+
{
|
|
164
|
+
store: \${2:model::SomeStore};
|
|
165
|
+
// example of a simple H2 connection with a mapper post processor
|
|
166
|
+
type: \${3:H2};
|
|
167
|
+
specification: \${4:LocalH2 {\\}};
|
|
168
|
+
auth: \${5:DefaultH2 {\\}};
|
|
169
|
+
// example of mapper post processor
|
|
170
|
+
postProcessors:
|
|
171
|
+
[
|
|
172
|
+
mapper
|
|
173
|
+
{
|
|
174
|
+
mappers:
|
|
175
|
+
[
|
|
176
|
+
];
|
|
177
|
+
}
|
|
178
|
+
];
|
|
179
|
+
}`;
|
|
180
|
+
|
|
181
|
+
export const createConnectionSnippetWithPostProcessorSuggestionSnippet = (
|
|
182
|
+
snippetText: string,
|
|
183
|
+
): string =>
|
|
184
|
+
`RelationalDatabaseConnection \${1:model::NewConnection}
|
|
185
|
+
{
|
|
186
|
+
store: \${2:model::SomeStore};
|
|
187
|
+
type: \${3:H2};
|
|
188
|
+
specification: \${4:LocalH2 {\\}};
|
|
189
|
+
auth: \${5:DefaultH2 {\\}};
|
|
190
|
+
postProcessors:
|
|
191
|
+
[
|
|
192
|
+
\n${indent(snippetText, ' '.repeat(TAB_SIZE))}\n]; }`;
|
|
193
|
+
|
|
160
194
|
// ------------------------------------- Mapping -------------------------------------
|
|
161
195
|
|
|
162
196
|
export const BLANK_MAPPING_SNIPPET = `Mapping \${1:model::NewMapping}
|
|
@@ -14,15 +14,28 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type {
|
|
17
|
+
import type {
|
|
18
|
+
DSL_LegendStudioApplicationPlugin_Extension,
|
|
19
|
+
ElementEmbeddedContentSnippetSuggestion,
|
|
20
|
+
} from './LegendStudioApplicationPlugin.js';
|
|
18
21
|
import type {
|
|
19
22
|
DatasourceSpecification,
|
|
20
23
|
AuthenticationStrategy,
|
|
24
|
+
PostProcessor,
|
|
25
|
+
ObserverContext,
|
|
21
26
|
} from '@finos/legend-graph';
|
|
27
|
+
import type { RelationalDatabaseConnectionValueState } from './editor-state/element-editor-state/connection/ConnectionEditorState.js';
|
|
28
|
+
import type { PostProcessorEditorState } from './editor-state/element-editor-state/connection/PostProcessorEditorState.js';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* NOTE: The tab-stop index of the snippet must start from 6
|
|
32
|
+
*/
|
|
33
|
+
export type EmbeddedPostProcessorSnippetSuggestion =
|
|
34
|
+
ElementEmbeddedContentSnippetSuggestion;
|
|
22
35
|
|
|
23
36
|
// connection datasource specification
|
|
24
37
|
|
|
25
|
-
export type
|
|
38
|
+
export type DatasourceSpecificationClassifier = (
|
|
26
39
|
metamodel: DatasourceSpecification,
|
|
27
40
|
) => string | undefined;
|
|
28
41
|
|
|
@@ -37,7 +50,7 @@ export type DatasourceSpecificationEditorRenderer = (
|
|
|
37
50
|
|
|
38
51
|
// connection authentication strategy
|
|
39
52
|
|
|
40
|
-
export type
|
|
53
|
+
export type AuthenticationStrategyClassifier = (
|
|
41
54
|
metamodel: AuthenticationStrategy,
|
|
42
55
|
) => string | undefined;
|
|
43
56
|
|
|
@@ -50,6 +63,29 @@ export type AuthenticationStrategyEditorRenderer = (
|
|
|
50
63
|
isReadOnly: boolean,
|
|
51
64
|
) => React.ReactNode | undefined;
|
|
52
65
|
|
|
66
|
+
// connection post-processor
|
|
67
|
+
|
|
68
|
+
export type PostProcessorTypeGetter = (
|
|
69
|
+
metamodel: PostProcessor,
|
|
70
|
+
) => string | undefined;
|
|
71
|
+
|
|
72
|
+
export type PostProcessorCreator = (
|
|
73
|
+
type: string,
|
|
74
|
+
connectionValueState: RelationalDatabaseConnectionValueState,
|
|
75
|
+
observerContext: ObserverContext,
|
|
76
|
+
) => PostProcessor | undefined;
|
|
77
|
+
|
|
78
|
+
export type PostProcessorEditorRenderer = (
|
|
79
|
+
metamodel: PostProcessor,
|
|
80
|
+
connectionValueState: RelationalDatabaseConnectionValueState,
|
|
81
|
+
isReadOnly: boolean,
|
|
82
|
+
) => React.ReactNode | undefined;
|
|
83
|
+
|
|
84
|
+
export type PostProcessorStateCreator = (
|
|
85
|
+
metamodel: PostProcessor,
|
|
86
|
+
connectionValueState: RelationalDatabaseConnectionValueState,
|
|
87
|
+
) => PostProcessorEditorState | undefined;
|
|
88
|
+
|
|
53
89
|
export interface StoreRelational_LegendStudioApplicationPlugin_Extension
|
|
54
90
|
extends DSL_LegendStudioApplicationPlugin_Extension {
|
|
55
91
|
// --------------------- relational database connection datasource specification ------------------
|
|
@@ -63,7 +99,7 @@ export interface StoreRelational_LegendStudioApplicationPlugin_Extension
|
|
|
63
99
|
/**
|
|
64
100
|
* Get the list of classifiers for a relational database datasource specification.
|
|
65
101
|
*/
|
|
66
|
-
|
|
102
|
+
getExtraDatasourceSpecificationClassifiers?(): DatasourceSpecificationClassifier[];
|
|
67
103
|
|
|
68
104
|
/**
|
|
69
105
|
* Get the list of creators for relational database datasource specification given the type specifier.
|
|
@@ -86,7 +122,7 @@ export interface StoreRelational_LegendStudioApplicationPlugin_Extension
|
|
|
86
122
|
/**
|
|
87
123
|
* Get the list of classifiers for a relational database authentication strategy.
|
|
88
124
|
*/
|
|
89
|
-
|
|
125
|
+
getExtraAuthenticationStrategyClassifiers?(): AuthenticationStrategyClassifier[];
|
|
90
126
|
|
|
91
127
|
/**
|
|
92
128
|
* Get the list of creators for relational database authentication strategy given the type specifier.
|
|
@@ -97,4 +133,37 @@ export interface StoreRelational_LegendStudioApplicationPlugin_Extension
|
|
|
97
133
|
* Get the list of renderers for the editor for a relational database authentication strategy.
|
|
98
134
|
*/
|
|
99
135
|
getExtraAuthenticationStrategyEditorRenderers?(): AuthenticationStrategyEditorRenderer[];
|
|
136
|
+
|
|
137
|
+
// --------------------- relational database connection post-processor ------------------
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Get the list of the supported type for post-processors.
|
|
141
|
+
*
|
|
142
|
+
*/
|
|
143
|
+
getExtraPostProcessorClassifiers?(): string[];
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Get the list of classifiers for a post-processor.
|
|
147
|
+
*/
|
|
148
|
+
getExtraPostProcessorClassifierGetters?(): PostProcessorTypeGetter[];
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Get the list of creators for post-processor given the type specifier.
|
|
152
|
+
*/
|
|
153
|
+
getExtraPostProcessorCreators?(): PostProcessorCreator[];
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Get the list of state creators for a post-processor.
|
|
157
|
+
*/
|
|
158
|
+
getExtraPostProcessorStateCreators?(): PostProcessorStateCreator[];
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Get the list of Pure grammar suggestion snippet getters for post-processors.
|
|
162
|
+
*/
|
|
163
|
+
getExtraPostProcessorSnippetSuggestions?(): EmbeddedPostProcessorSnippetSuggestion[];
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Get the list of renderers for the editor for a post-processor.
|
|
167
|
+
*/
|
|
168
|
+
getExtraPostProcessorEditorRenderers?(): PostProcessorEditorRenderer[];
|
|
100
169
|
}
|
|
@@ -92,7 +92,10 @@ import {
|
|
|
92
92
|
import type { EmbeddedDataTypeOption } from '../editor-state/element-editor-state/data/DataEditorState.js';
|
|
93
93
|
import { dataElement_setEmbeddedData } from '../graphModifier/DSLData_GraphModifierHelper.js';
|
|
94
94
|
import { PACKAGEABLE_ELEMENT_TYPE } from '../shared/ModelUtil.js';
|
|
95
|
-
import
|
|
95
|
+
import {
|
|
96
|
+
buildElementOption,
|
|
97
|
+
type PackageableElementOption,
|
|
98
|
+
} from '@finos/legend-application';
|
|
96
99
|
import { EmbeddedDataType } from '../editor-state/ExternalFormatState.js';
|
|
97
100
|
import { createEmbeddedData } from '../editor-state/element-editor-state/data/EmbeddedDataState.js';
|
|
98
101
|
|
|
@@ -302,7 +305,7 @@ export class NewRelationalDatabaseConnectionDriver extends NewConnectionValueDri
|
|
|
302
305
|
if (store instanceof Database) {
|
|
303
306
|
selectedStore = store;
|
|
304
307
|
} else {
|
|
305
|
-
const dbs = this.editorStore.graphManagerState.
|
|
308
|
+
const dbs = this.editorStore.graphManagerState.usableDatabases;
|
|
306
309
|
selectedStore = dbs.length ? (dbs[0] as Database) : stub_Database();
|
|
307
310
|
}
|
|
308
311
|
return new RelationalDatabaseConnection(
|
|
@@ -431,7 +434,8 @@ export class NewServiceDriver extends NewElementDriver<Service> {
|
|
|
431
434
|
isValid: computed,
|
|
432
435
|
createElement: action,
|
|
433
436
|
});
|
|
434
|
-
this.mappingOption =
|
|
437
|
+
this.mappingOption =
|
|
438
|
+
editorStore.graphManagerState.usableMappings.map(buildElementOption)[0];
|
|
435
439
|
}
|
|
436
440
|
|
|
437
441
|
setMappingOption(val: PackageableElementOption<Mapping> | undefined): void {
|
|
@@ -447,10 +451,7 @@ export class NewServiceDriver extends NewElementDriver<Service> {
|
|
|
447
451
|
const _mapping = mappingOption.value;
|
|
448
452
|
const mapping = PackageableElementExplicitReference.create(_mapping);
|
|
449
453
|
const service = new Service(name);
|
|
450
|
-
const runtimes =
|
|
451
|
-
this.editorStore.graphManagerState.graph.ownRuntimes.concat(
|
|
452
|
-
this.editorStore.graphManagerState.graph.dependencyManager.runtimes,
|
|
453
|
-
);
|
|
454
|
+
const runtimes = this.editorStore.graphManagerState.usableRuntimes;
|
|
454
455
|
const compatibleRuntimes = runtimes.filter((runtime) =>
|
|
455
456
|
runtime.runtimeValue.mappings.map((m) => m.value).includes(_mapping),
|
|
456
457
|
);
|
|
@@ -499,16 +499,20 @@ export class ModelImporterState extends EditorState {
|
|
|
499
499
|
setModelImporterExtension(
|
|
500
500
|
extension: ModelImporterExtensionConfiguration,
|
|
501
501
|
): ExtensionModelImporterEditorState {
|
|
502
|
-
|
|
503
|
-
this.modelImportEditorState instanceof
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
502
|
+
if (
|
|
503
|
+
this.modelImportEditorState instanceof
|
|
504
|
+
ExtensionModelImporterEditorState &&
|
|
505
|
+
this.modelImportEditorState.config === extension
|
|
506
|
+
) {
|
|
507
|
+
return this.modelImportEditorState;
|
|
508
|
+
} else {
|
|
509
|
+
const modelImporterEditorState = new ExtensionModelImporterEditorState(
|
|
510
|
+
extension,
|
|
511
|
+
extension.getExtensionModelImportRendererStateCreator(this),
|
|
512
|
+
this,
|
|
513
|
+
);
|
|
514
|
+
this.setImportEditorState(modelImporterEditorState);
|
|
515
|
+
return modelImporterEditorState;
|
|
516
|
+
}
|
|
513
517
|
}
|
|
514
518
|
}
|
|
@@ -52,12 +52,18 @@ import {
|
|
|
52
52
|
RedshiftDatasourceSpecification,
|
|
53
53
|
createValidationError,
|
|
54
54
|
isStubbed_PackageableElement,
|
|
55
|
+
type PostProcessor,
|
|
56
|
+
MapperPostProcessor,
|
|
55
57
|
} from '@finos/legend-graph';
|
|
56
58
|
import type { DSLMapping_LegendStudioApplicationPlugin_Extension } from '../../../DSLMapping_LegendStudioApplicationPlugin_Extension.js';
|
|
57
59
|
import {
|
|
58
60
|
relationDbConnection_setNewAuthenticationStrategy,
|
|
59
61
|
relationDbConnection_setDatasourceSpecification,
|
|
60
62
|
} from '../../../graphModifier/StoreRelational_GraphModifierHelper.js';
|
|
63
|
+
import {
|
|
64
|
+
MapperPostProcessorEditorState,
|
|
65
|
+
type PostProcessorEditorState,
|
|
66
|
+
} from './PostProcessorEditorState.js';
|
|
61
67
|
|
|
62
68
|
export abstract class ConnectionValueState {
|
|
63
69
|
editorStore: EditorStore;
|
|
@@ -74,6 +80,7 @@ export abstract class ConnectionValueState {
|
|
|
74
80
|
export enum RELATIONAL_DATABASE_TAB_TYPE {
|
|
75
81
|
GENERAL = 'GENERAL',
|
|
76
82
|
STORE = 'STORE',
|
|
83
|
+
POST_PROCESSORS = 'POST-PROCESSORS',
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
export enum CORE_DATASOURCE_SPEC_TYPE {
|
|
@@ -86,6 +93,10 @@ export enum CORE_DATASOURCE_SPEC_TYPE {
|
|
|
86
93
|
BIGQUERY = 'BIGQUERY',
|
|
87
94
|
}
|
|
88
95
|
|
|
96
|
+
export enum POST_PROCESSOR_TYPE {
|
|
97
|
+
MAPPER = 'MAPPER',
|
|
98
|
+
}
|
|
99
|
+
|
|
89
100
|
export enum CORE_AUTHENTICATION_STRATEGY_TYPE {
|
|
90
101
|
DELEGATED_KERBEROS = 'DELEGATED_KERBEROS',
|
|
91
102
|
H2_DEFAULT = 'H2_DEFAULT',
|
|
@@ -102,6 +113,7 @@ export class RelationalDatabaseConnectionValueState extends ConnectionValueState
|
|
|
102
113
|
override connection: RelationalDatabaseConnection;
|
|
103
114
|
selectedTab = RELATIONAL_DATABASE_TAB_TYPE.GENERAL;
|
|
104
115
|
databaseBuilderState: DatabaseBuilderState;
|
|
116
|
+
postProcessorState: PostProcessorEditorState | undefined;
|
|
105
117
|
|
|
106
118
|
constructor(
|
|
107
119
|
editorStore: EditorStore,
|
|
@@ -109,17 +121,50 @@ export class RelationalDatabaseConnectionValueState extends ConnectionValueState
|
|
|
109
121
|
) {
|
|
110
122
|
super(editorStore, connection);
|
|
111
123
|
makeObservable(this, {
|
|
112
|
-
setSelectedTab: action,
|
|
113
124
|
databaseBuilderState: observable,
|
|
114
125
|
selectedTab: observable,
|
|
126
|
+
postProcessorState: observable,
|
|
127
|
+
setSelectedTab: action,
|
|
128
|
+
selectPostProcessor: action,
|
|
115
129
|
});
|
|
130
|
+
|
|
116
131
|
this.connection = connection;
|
|
132
|
+
|
|
117
133
|
this.databaseBuilderState = new DatabaseBuilderState(
|
|
118
134
|
editorStore,
|
|
119
135
|
connection,
|
|
120
136
|
);
|
|
121
137
|
}
|
|
122
138
|
|
|
139
|
+
selectPostProcessor = (postProcessor: PostProcessor | undefined): void => {
|
|
140
|
+
if (!this.postProcessorState && postProcessor) {
|
|
141
|
+
if (postProcessor instanceof MapperPostProcessor) {
|
|
142
|
+
this.postProcessorState = new MapperPostProcessorEditorState(
|
|
143
|
+
postProcessor,
|
|
144
|
+
this,
|
|
145
|
+
);
|
|
146
|
+
} else {
|
|
147
|
+
const extraPostProcessorStateCreators = this.editorStore.pluginManager
|
|
148
|
+
.getApplicationPlugins()
|
|
149
|
+
.flatMap(
|
|
150
|
+
(plugin) =>
|
|
151
|
+
(
|
|
152
|
+
plugin as StoreRelational_LegendStudioApplicationPlugin_Extension
|
|
153
|
+
).getExtraPostProcessorStateCreators?.() ?? [],
|
|
154
|
+
);
|
|
155
|
+
for (const creator of extraPostProcessorStateCreators) {
|
|
156
|
+
const postProcessorState = creator(postProcessor, this);
|
|
157
|
+
if (postProcessorState) {
|
|
158
|
+
this.postProcessorState = postProcessorState;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
if (this.postProcessorState) {
|
|
164
|
+
this.postProcessorState.setPostProcessorState(postProcessor);
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
|
|
123
168
|
get storeValidationResult(): ValidationIssue | undefined {
|
|
124
169
|
return isStubbed_PackageableElement(this.connection.store.value)
|
|
125
170
|
? createValidationError(['Connection database cannot be empty'])
|
|
@@ -151,17 +196,17 @@ export class RelationalDatabaseConnectionValueState extends ConnectionValueState
|
|
|
151
196
|
} else if (spec instanceof RedshiftDatasourceSpecification) {
|
|
152
197
|
return CORE_DATASOURCE_SPEC_TYPE.REDSHIFT;
|
|
153
198
|
}
|
|
154
|
-
const
|
|
199
|
+
const extraDatasourceSpecificationClassifiers =
|
|
155
200
|
this.editorStore.pluginManager
|
|
156
201
|
.getApplicationPlugins()
|
|
157
202
|
.flatMap(
|
|
158
203
|
(plugin) =>
|
|
159
204
|
(
|
|
160
205
|
plugin as StoreRelational_LegendStudioApplicationPlugin_Extension
|
|
161
|
-
).
|
|
206
|
+
).getExtraDatasourceSpecificationClassifiers?.() ?? [],
|
|
162
207
|
);
|
|
163
|
-
for (const
|
|
164
|
-
const type =
|
|
208
|
+
for (const classifier of extraDatasourceSpecificationClassifiers) {
|
|
209
|
+
const type = classifier(spec);
|
|
165
210
|
if (type) {
|
|
166
211
|
return type;
|
|
167
212
|
}
|
|
@@ -270,17 +315,17 @@ export class RelationalDatabaseConnectionValueState extends ConnectionValueState
|
|
|
270
315
|
return CORE_AUTHENTICATION_STRATEGY_TYPE.MIDDLE_TIER_USERNAME_PASSWORD;
|
|
271
316
|
}
|
|
272
317
|
|
|
273
|
-
const
|
|
318
|
+
const extraAuthenticationStrategyClassifiers =
|
|
274
319
|
this.editorStore.pluginManager
|
|
275
320
|
.getApplicationPlugins()
|
|
276
321
|
.flatMap(
|
|
277
322
|
(plugin) =>
|
|
278
323
|
(
|
|
279
324
|
plugin as StoreRelational_LegendStudioApplicationPlugin_Extension
|
|
280
|
-
).
|
|
325
|
+
).getExtraAuthenticationStrategyClassifiers?.() ?? [],
|
|
281
326
|
);
|
|
282
|
-
for (const
|
|
283
|
-
const type =
|
|
327
|
+
for (const classifier of extraAuthenticationStrategyClassifiers) {
|
|
328
|
+
const type = classifier(auth);
|
|
284
329
|
if (type) {
|
|
285
330
|
return type;
|
|
286
331
|
}
|
|
@@ -480,6 +525,7 @@ export class PackageableConnectionEditorState extends ElementEditorState {
|
|
|
480
525
|
editorStore,
|
|
481
526
|
newElement,
|
|
482
527
|
);
|
|
528
|
+
|
|
483
529
|
return editorState;
|
|
484
530
|
}
|
|
485
531
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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 {
|
|
18
|
+
PostProcessor,
|
|
19
|
+
Mapper,
|
|
20
|
+
MapperPostProcessor,
|
|
21
|
+
} from '@finos/legend-graph';
|
|
22
|
+
import { makeObservable, observable, action } from 'mobx';
|
|
23
|
+
import type { RelationalDatabaseConnectionValueState } from './ConnectionEditorState.js';
|
|
24
|
+
|
|
25
|
+
export abstract class PostProcessorEditorState {
|
|
26
|
+
postProcessor: PostProcessor | undefined;
|
|
27
|
+
connectionValueState: RelationalDatabaseConnectionValueState;
|
|
28
|
+
|
|
29
|
+
constructor(
|
|
30
|
+
postProcessor: PostProcessor | undefined,
|
|
31
|
+
connectionValueState: RelationalDatabaseConnectionValueState,
|
|
32
|
+
) {
|
|
33
|
+
makeObservable(this, {
|
|
34
|
+
postProcessor: observable,
|
|
35
|
+
connectionValueState: observable,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
this.postProcessor = postProcessor;
|
|
39
|
+
this.connectionValueState = connectionValueState;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
abstract setPostProcessorState(val: PostProcessor | undefined): void;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export class MapperPostProcessorEditorState extends PostProcessorEditorState {
|
|
46
|
+
selectedMapper: Mapper | undefined;
|
|
47
|
+
|
|
48
|
+
constructor(
|
|
49
|
+
postProcessor: MapperPostProcessor | undefined,
|
|
50
|
+
connectionValueState: RelationalDatabaseConnectionValueState,
|
|
51
|
+
) {
|
|
52
|
+
super(postProcessor, connectionValueState);
|
|
53
|
+
|
|
54
|
+
makeObservable(this, {
|
|
55
|
+
selectedMapper: observable,
|
|
56
|
+
setSelectedMapper: action,
|
|
57
|
+
setPostProcessorState: action,
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
this.postProcessor = postProcessor;
|
|
61
|
+
this.connectionValueState = connectionValueState;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
setPostProcessorState = (val: PostProcessor | undefined): void => {
|
|
65
|
+
this.postProcessor = val;
|
|
66
|
+
|
|
67
|
+
this.setSelectedMapper(undefined);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
setSelectedMapper = (val: Mapper | undefined): void => {
|
|
71
|
+
this.selectedMapper = val;
|
|
72
|
+
};
|
|
73
|
+
}
|
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
|
+
}
|
|
@@ -904,7 +904,7 @@ export class MultiServicePureExecutionState extends ServicePureExecutionState {
|
|
|
904
904
|
|
|
905
905
|
addExecutionParameter(value: string): void {
|
|
906
906
|
const _mapping =
|
|
907
|
-
this.editorStore.
|
|
907
|
+
this.editorStore.graphManagerState.usableMappings[0] ?? stub_Mapping();
|
|
908
908
|
const _key = new KeyedExecutionParameter(
|
|
909
909
|
value,
|
|
910
910
|
PackageableElementExplicitReference.create(_mapping),
|
package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts
CHANGED
|
@@ -206,13 +206,17 @@ export class ConnectionTestDataState {
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
export class NewConnectionDataState {
|
|
209
|
+
readonly editorStore: EditorStore;
|
|
209
210
|
readonly testSuiteState: ServiceTestDataState;
|
|
210
211
|
showModal = false;
|
|
211
212
|
connection: IdentifiedConnection | undefined;
|
|
212
213
|
embeddedDataType: EmbeddedDataTypeOption | undefined;
|
|
213
214
|
dataElement: DataElement | undefined;
|
|
214
215
|
|
|
215
|
-
constructor(
|
|
216
|
+
constructor(
|
|
217
|
+
editorStore: EditorStore,
|
|
218
|
+
serviceTestDataState: ServiceTestDataState,
|
|
219
|
+
) {
|
|
216
220
|
makeObservable(this, {
|
|
217
221
|
showModal: observable,
|
|
218
222
|
connection: observable,
|
|
@@ -224,8 +228,10 @@ export class NewConnectionDataState {
|
|
|
224
228
|
handleConnectionChange: action,
|
|
225
229
|
setDataElement: action,
|
|
226
230
|
});
|
|
227
|
-
|
|
228
|
-
this.
|
|
231
|
+
|
|
232
|
+
this.editorStore = editorStore;
|
|
233
|
+
this.testSuiteState = serviceTestDataState;
|
|
234
|
+
this.dataElement = editorStore.graphManagerState.usableDataElements[0];
|
|
229
235
|
}
|
|
230
236
|
|
|
231
237
|
setModal(val: boolean): void {
|
|
@@ -303,6 +309,7 @@ export class ServiceTestDataState {
|
|
|
303
309
|
newConnectionDataState: observable,
|
|
304
310
|
selectedDataState: observable,
|
|
305
311
|
});
|
|
312
|
+
|
|
306
313
|
this.testData = testData;
|
|
307
314
|
this.testSuiteState = testSuiteState;
|
|
308
315
|
this.editorStore = testSuiteState.editorStore;
|
|
@@ -315,7 +322,10 @@ export class ServiceTestDataState {
|
|
|
315
322
|
connectionData,
|
|
316
323
|
);
|
|
317
324
|
}
|
|
318
|
-
this.newConnectionDataState = new NewConnectionDataState(
|
|
325
|
+
this.newConnectionDataState = new NewConnectionDataState(
|
|
326
|
+
this.editorStore,
|
|
327
|
+
this,
|
|
328
|
+
);
|
|
319
329
|
}
|
|
320
330
|
|
|
321
331
|
createConnectionTestData(): void {
|