@finos/legend-application-studio 18.0.0 → 18.0.2
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 +1 -2
- package/lib/application/LegendStudio.js.map +1 -1
- package/lib/components/DSL_ExternalFormat_LegendStudioApplicationPlugin.js +1 -1
- package/lib/components/DSL_ExternalFormat_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/EditorComponentTestUtils.js +1 -3
- package/lib/components/EditorComponentTestUtils.js.map +1 -1
- package/lib/components/LegendStudioApplication.d.ts.map +1 -1
- package/lib/components/LegendStudioApplication.js +3 -4
- package/lib/components/LegendStudioApplication.js.map +1 -1
- package/lib/components/editor/ActivityBar.d.ts.map +1 -1
- package/lib/components/editor/ActivityBar.js +3 -3
- package/lib/components/editor/ActivityBar.js.map +1 -1
- package/lib/components/editor/Editor.d.ts.map +1 -1
- package/lib/components/editor/Editor.js +81 -93
- package/lib/components/editor/Editor.js.map +1 -1
- package/lib/components/editor/StatusBar.d.ts.map +1 -1
- package/lib/components/editor/StatusBar.js +2 -3
- package/lib/components/editor/StatusBar.js.map +1 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.js +1 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.js.map +1 -1
- package/lib/components/editor/edit-panel/EditPanel.js +2 -3
- package/lib/components/editor/edit-panel/EditPanel.js.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.js +13 -13
- package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js +5 -5
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.js +1 -2
- package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.js +7 -4
- package/lib/components/editor/edit-panel/ModelImporter.js.map +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.js +2 -2
- package/lib/components/editor/edit-panel/RuntimeEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.js +1 -1
- package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.js.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/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.js +1 -1
- package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js +12 -12
- 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.js +2 -2
- 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.js +3 -3
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js +3 -3
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js +3 -3
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js +2 -3
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.js +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js +3 -3
- package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_ExternalFormatConnectionEditor.js +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_ExternalFormatConnectionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.js +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +3 -3
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js +2 -2
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.js +36 -49
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js +7 -7
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js.map +1 -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 +8 -17
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js +2 -3
- package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +6 -6
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js +2 -2
- package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js +5 -5
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js +63 -43
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js.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.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +9 -10
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js +2 -2
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js +3 -3
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +3 -3
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.js +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts +15 -0
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.js +3 -3
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.js +2 -2
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js +6 -6
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js +11 -11
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js +3 -3
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.js +4 -4
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.js +2 -2
- package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js +2 -2
- package/lib/components/editor/edit-panel/uml-editor/StereotypeSelector.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js +3 -3
- package/lib/components/editor/edit-panel/uml-editor/TaggedValueEditor.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +3 -3
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.js +8 -8
- package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.js +4 -4
- package/lib/components/editor/side-bar/WorkflowManager.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.js +2 -4
- package/lib/components/editor/side-bar/WorkspaceReview.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.js +2 -4
- package/lib/components/editor/side-bar/WorkspaceUpdater.js.map +1 -1
- package/lib/components/project-viewer/ProjectViewer.d.ts.map +1 -1
- package/lib/components/project-viewer/ProjectViewer.js +4 -7
- package/lib/components/project-viewer/ProjectViewer.js.map +1 -1
- package/lib/components/shared/DiffView.d.ts.map +1 -1
- package/lib/components/shared/DiffView.js +1 -2
- package/lib/components/shared/DiffView.js.map +1 -1
- package/lib/components/shared/ProjectSelectorUtils.js +1 -1
- package/lib/components/shared/ProjectSelectorUtils.js.map +1 -1
- package/lib/components/shared/StudioLambdaEditor.d.ts +1 -1
- package/lib/components/shared/StudioLambdaEditor.d.ts.map +1 -1
- package/lib/components/shared/StudioLambdaEditor.js +3 -2
- package/lib/components/shared/StudioLambdaEditor.js.map +1 -1
- package/lib/components/workspace-review/WorkspaceReview.d.ts.map +1 -1
- package/lib/components/workspace-review/WorkspaceReview.js +4 -6
- package/lib/components/workspace-review/WorkspaceReview.js.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.js +2 -2
- package/lib/components/workspace-review/WorkspaceReviewSideBar.js.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.js +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.js.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.js +2 -3
- package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +5 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/package.json +2 -7
- package/lib/stores/DSL_Mapping_LegendStudioApplicationPlugin_Extension.d.ts +0 -5
- package/lib/stores/DSL_Mapping_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.d.ts +2 -14
- package/lib/stores/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.js +3 -48
- package/lib/stores/EditorGraphState.js.map +1 -1
- package/lib/stores/EditorStore.d.ts +1 -4
- package/lib/stores/EditorStore.d.ts.map +1 -1
- package/lib/stores/EditorStore.js +9 -20
- package/lib/stores/EditorStore.js.map +1 -1
- package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendStudioBaseStore.js +5 -3
- package/lib/stores/LegendStudioBaseStore.js.map +1 -1
- package/lib/stores/LegendStudioRouter.js +1 -1
- package/lib/stores/LegendStudioRouter.js.map +1 -1
- package/lib/stores/editor/NewElementState.js +4 -4
- package/lib/stores/editor/NewElementState.js.map +1 -1
- package/lib/stores/editor-state/FileGenerationState.js +1 -1
- package/lib/stores/editor-state/FileGenerationState.js.map +1 -1
- package/lib/stores/editor-state/GenerationSpecificationEditorState.js +1 -1
- package/lib/stores/editor-state/GenerationSpecificationEditorState.js.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.js +1 -1
- package/lib/stores/editor-state/GraphGenerationState.js.map +1 -1
- package/lib/stores/editor-state/ModelImporterState.d.ts +5 -5
- package/lib/stores/editor-state/ModelImporterState.d.ts.map +1 -1
- package/lib/stores/editor-state/ModelImporterState.js +12 -10
- package/lib/stores/editor-state/ModelImporterState.js.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ClassState.d.ts +1 -1
- package/lib/stores/editor-state/element-editor-state/ClassState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ClassState.js +2 -2
- package/lib/stores/editor-state/element-editor-state/ClassState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.d.ts +1 -1
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/RuntimeEditorState.js +2 -2
- package/lib/stores/editor-state/element-editor-state/RuntimeEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/data/EmbeddedDataState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/data/EmbeddedDataState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js +4 -4
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingElementDecorator.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingElementDecorator.js +36 -29
- package/lib/stores/editor-state/element-editor-state/mapping/MappingElementDecorator.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingElementState.d.ts +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingElementState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingElementState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingElementState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts +2 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js +6 -5
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.d.ts +2 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js +5 -4
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.d.ts +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.js +2 -2
- package/lib/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.d.ts +2 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js +4 -3
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js +13 -3
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js +3 -2
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestableState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestableState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/testable/TestableEditorState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/testable/TestableEditorState.js.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js +2 -2
- package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
- package/lib/stores/shared/ModelClassifierUtils.d.ts +0 -10
- package/lib/stores/shared/ModelClassifierUtils.d.ts.map +1 -1
- package/lib/stores/shared/ModelClassifierUtils.js +0 -11
- package/lib/stores/shared/ModelClassifierUtils.js.map +1 -1
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Data_GraphModifierHelper.d.ts +0 -0
- package/lib/stores/shared/modifier/DSL_Data_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Data_GraphModifierHelper.js +0 -0
- package/lib/stores/shared/modifier/DSL_Data_GraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_ExternalFormat_GraphModifierHelper.d.ts +0 -0
- package/lib/stores/shared/modifier/DSL_ExternalFormat_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_ExternalFormat_GraphModifierHelper.js +0 -0
- package/lib/stores/shared/modifier/DSL_ExternalFormat_GraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Generation_GraphModifierHelper.d.ts +0 -0
- package/lib/stores/shared/modifier/DSL_Generation_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Generation_GraphModifierHelper.js +0 -0
- package/lib/stores/shared/modifier/DSL_Generation_GraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Mapping_GraphModifierHelper.d.ts +7 -6
- package/lib/stores/shared/modifier/DSL_Mapping_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Mapping_GraphModifierHelper.js +16 -14
- package/lib/stores/shared/modifier/DSL_Mapping_GraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Service_GraphModifierHelper.d.ts +0 -0
- package/lib/stores/shared/modifier/DSL_Service_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Service_GraphModifierHelper.js +0 -0
- package/lib/stores/shared/modifier/DSL_Service_GraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DomainGraphModifierHelper.d.ts +0 -0
- package/lib/stores/shared/modifier/DomainGraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DomainGraphModifierHelper.js +3 -3
- package/lib/stores/shared/modifier/DomainGraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/GraphModifierHelper.d.ts +0 -0
- package/lib/stores/shared/modifier/GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/GraphModifierHelper.js +0 -0
- package/lib/stores/shared/modifier/GraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier/ValueSpecificationGraphModifierHelper.d.ts → shared/modifier/RawValueSpecificationGraphModifierHelper.d.ts} +4 -4
- package/lib/stores/shared/modifier/RawValueSpecificationGraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier/ValueSpecificationGraphModifierHelper.js → shared/modifier/RawValueSpecificationGraphModifierHelper.js} +8 -9
- package/lib/stores/shared/modifier/RawValueSpecificationGraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/STO_FlatData_GraphModifierHelper.d.ts +0 -0
- package/lib/stores/shared/modifier/STO_FlatData_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/STO_FlatData_GraphModifierHelper.js +0 -0
- package/lib/stores/shared/modifier/STO_FlatData_GraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/STO_Relational_GraphModifierHelper.d.ts +1 -1
- package/lib/stores/shared/modifier/STO_Relational_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/STO_Relational_GraphModifierHelper.js +0 -0
- package/lib/stores/shared/modifier/STO_Relational_GraphModifierHelper.js.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/Testable_GraphModifierHelper.d.ts +0 -0
- package/lib/stores/shared/modifier/Testable_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/Testable_GraphModifierHelper.js +0 -0
- package/lib/stores/shared/modifier/Testable_GraphModifierHelper.js.map +1 -0
- package/lib/stores/sidebar-state/LocalChangesState.d.ts +1 -0
- package/lib/stores/sidebar-state/LocalChangesState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.js +4 -0
- package/lib/stores/sidebar-state/LocalChangesState.js.map +1 -1
- package/lib/stores/sidebar-state/ProjectOverviewState.js +2 -2
- package/lib/stores/sidebar-state/ProjectOverviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.js +6 -2
- package/lib/stores/sidebar-state/WorkspaceReviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js +1 -0
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js.map +1 -1
- package/lib/stores/workspace-setup/WorkspaceSetupStore.d.ts.map +1 -1
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js +6 -6
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js.map +1 -1
- package/package.json +11 -16
- package/src/application/LegendStudio.tsx +1 -1
- package/src/components/DSL_ExternalFormat_LegendStudioApplicationPlugin.tsx +1 -1
- package/src/components/EditorComponentTestUtils.tsx +2 -2
- package/src/components/LegendStudioApplication.tsx +4 -3
- package/src/components/editor/ActivityBar.tsx +6 -8
- package/src/components/editor/Editor.tsx +70 -103
- package/src/components/editor/StatusBar.tsx +25 -14
- package/src/components/editor/aux-panel/AuxiliaryPanel.tsx +2 -2
- package/src/components/editor/edit-panel/EditPanel.tsx +2 -2
- package/src/components/editor/edit-panel/FunctionEditor.tsx +14 -15
- package/src/components/editor/edit-panel/GenerationSpecificationEditor.tsx +7 -7
- package/src/components/editor/edit-panel/GrammarTextEditor.tsx +1 -1
- package/src/components/editor/edit-panel/ModelImporter.tsx +7 -8
- package/src/components/editor/edit-panel/RuntimeEditor.tsx +2 -2
- package/src/components/editor/edit-panel/connection-editor/ConnectionEditor.tsx +1 -1
- package/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx +1 -1
- package/src/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.tsx +1 -1
- package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +22 -22
- package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +2 -2
- package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +4 -4
- package/src/components/editor/edit-panel/data-editor/EmbeddedDataEditor.tsx +3 -3
- package/src/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.tsx +4 -4
- package/src/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.tsx +3 -3
- package/src/components/editor/edit-panel/diff-editor/EntityDiffView.tsx +1 -1
- package/src/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.tsx +1 -1
- package/src/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.tsx +4 -4
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.tsx +1 -1
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_ExternalFormatConnectionEditor.tsx +1 -1
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.tsx +1 -1
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +5 -5
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.tsx +3 -3
- package/src/components/editor/edit-panel/mapping-editor/ClassMappingEditor.tsx +45 -84
- package/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx +9 -9
- package/src/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.tsx +4 -4
- package/src/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx +3 -3
- package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.tsx +13 -33
- package/src/components/editor/edit-panel/mapping-editor/MappingEditor.tsx +2 -2
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +7 -7
- package/src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx +2 -2
- package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +6 -6
- package/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx +5 -5
- package/src/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.tsx +204 -106
- package/src/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.tsx +4 -4
- package/src/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.tsx +4 -4
- package/src/components/editor/edit-panel/mapping-editor/relational/TableOrViewSourceTree.tsx +1 -1
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +34 -40
- package/src/components/editor/edit-panel/service-editor/ServiceEditor.tsx +2 -2
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +4 -4
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +4 -1
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.tsx +1 -1
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.tsx +6 -2
- package/src/components/editor/edit-panel/testable/TestAssertionEditor.tsx +2 -2
- package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +10 -8
- package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +16 -14
- package/src/components/editor/edit-panel/uml-editor/ClassQueryBuilder.tsx +1 -1
- package/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx +5 -5
- package/src/components/editor/edit-panel/uml-editor/ProfileEditor.tsx +5 -5
- package/src/components/editor/edit-panel/uml-editor/PropertyEditor.tsx +2 -2
- package/src/components/editor/edit-panel/uml-editor/StereotypeSelector.tsx +5 -5
- package/src/components/editor/edit-panel/uml-editor/TaggedValueEditor.tsx +8 -8
- package/src/components/editor/side-bar/Explorer.tsx +4 -4
- package/src/components/editor/side-bar/ProjectOverview.tsx +56 -35
- package/src/components/editor/side-bar/WorkflowManager.tsx +4 -4
- package/src/components/editor/side-bar/WorkspaceReview.tsx +15 -12
- package/src/components/editor/side-bar/WorkspaceSyncConflictResolver.tsx +1 -1
- package/src/components/editor/side-bar/WorkspaceUpdater.tsx +12 -9
- package/src/components/project-viewer/ProjectViewer.tsx +14 -7
- package/src/components/shared/DiffView.tsx +1 -1
- package/src/components/shared/ProjectSelectorUtils.tsx +2 -2
- package/src/components/shared/StudioLambdaEditor.tsx +8 -8
- package/src/components/workspace-review/WorkspaceReview.tsx +32 -23
- package/src/components/workspace-review/WorkspaceReviewSideBar.tsx +2 -2
- package/src/components/workspace-setup/CreateProjectModal.tsx +1 -1
- package/src/components/workspace-setup/WorkspaceSetup.tsx +2 -2
- package/src/index.ts +5 -5
- package/src/stores/DSL_Mapping_LegendStudioApplicationPlugin_Extension.ts +0 -9
- package/src/stores/EditorGraphState.ts +3 -67
- package/src/stores/EditorStore.ts +12 -24
- package/src/stores/LegendStudioBaseStore.ts +7 -4
- package/src/stores/LegendStudioRouter.ts +1 -1
- package/src/stores/editor/NewElementState.ts +4 -4
- package/src/stores/editor-state/FileGenerationState.ts +1 -1
- package/src/stores/editor-state/GenerationSpecificationEditorState.ts +1 -1
- package/src/stores/editor-state/GraphGenerationState.ts +1 -1
- package/src/stores/editor-state/ModelImporterState.ts +16 -15
- package/src/stores/editor-state/ProjectConfigurationEditorState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/ClassState.ts +2 -2
- package/src/stores/editor-state/element-editor-state/ElementFileGenerationState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/FunctionEditorState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/RuntimeEditorState.ts +2 -2
- package/src/stores/editor-state/element-editor-state/connection/ConnectionEditorState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/data/EmbeddedDataState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts +4 -4
- package/src/stores/editor-state/element-editor-state/mapping/MappingElementDecorator.ts +57 -57
- package/src/stores/editor-state/element-editor-state/mapping/MappingElementState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +5 -5
- package/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +5 -8
- package/src/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.ts +2 -2
- package/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +9 -7
- package/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +40 -1
- package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.ts +2 -2
- package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestableState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/testable/TestAssertionState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/testable/TestableEditorState.ts +1 -1
- package/src/stores/project-viewer/ProjectViewerStore.ts +2 -2
- package/src/stores/shared/ModelClassifierUtils.ts +0 -11
- package/src/stores/{graphModifier → shared/modifier}/DSL_Data_GraphModifierHelper.ts +0 -0
- package/src/stores/{graphModifier → shared/modifier}/DSL_ExternalFormat_GraphModifierHelper.ts +0 -0
- package/src/stores/{graphModifier → shared/modifier}/DSL_Generation_GraphModifierHelper.ts +0 -0
- package/src/stores/{graphModifier → shared/modifier}/DSL_Mapping_GraphModifierHelper.ts +20 -14
- package/src/stores/{graphModifier → shared/modifier}/DSL_Service_GraphModifierHelper.ts +0 -0
- package/src/stores/{graphModifier → shared/modifier}/DomainGraphModifierHelper.ts +2 -3
- package/src/stores/{graphModifier → shared/modifier}/GraphModifierHelper.ts +0 -0
- package/src/stores/{graphModifier/ValueSpecificationGraphModifierHelper.ts → shared/modifier/RawValueSpecificationGraphModifierHelper.ts} +6 -9
- package/src/stores/{graphModifier → shared/modifier}/STO_FlatData_GraphModifierHelper.ts +0 -0
- package/src/stores/{graphModifier → shared/modifier}/STO_Relational_GraphModifierHelper.ts +1 -1
- package/src/stores/{graphModifier → shared/modifier}/Testable_GraphModifierHelper.ts +0 -0
- package/src/stores/sidebar-state/LocalChangesState.ts +7 -0
- package/src/stores/sidebar-state/ProjectOverviewState.ts +2 -2
- package/src/stores/sidebar-state/WorkspaceReviewState.ts +7 -4
- package/src/stores/sidebar-state/WorkspaceUpdaterState.ts +1 -0
- package/src/stores/workspace-setup/WorkspaceSetupStore.ts +8 -6
- package/tsconfig.json +11 -11
- package/lib/stores/graphModifier/DSL_Data_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/DSL_Data_GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/DSL_ExternalFormat_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/DSL_ExternalFormat_GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/DSL_Generation_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/DSL_Generation_GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/DSL_Mapping_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/DSL_Mapping_GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/DSL_Service_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/DSL_Service_GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/DomainGraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/DomainGraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/STO_FlatData_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/STO_FlatData_GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/STO_Relational_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/STO_Relational_GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/Testable_GraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/Testable_GraphModifierHelper.js.map +0 -1
- package/lib/stores/graphModifier/ValueSpecificationGraphModifierHelper.d.ts.map +0 -1
- package/lib/stores/graphModifier/ValueSpecificationGraphModifierHelper.js.map +0 -1
|
@@ -36,12 +36,12 @@ import {
|
|
|
36
36
|
getAllClassConstraints,
|
|
37
37
|
getAllClassDerivedProperties,
|
|
38
38
|
} from '@finos/legend-graph';
|
|
39
|
-
import { LambdaEditorState } from '@finos/legend-application';
|
|
40
39
|
import {
|
|
41
40
|
constraint_setFunctionDefinition,
|
|
42
41
|
derivedProperty_setBody,
|
|
43
42
|
derivedProperty_setParameters,
|
|
44
|
-
} from '../../
|
|
43
|
+
} from '../../shared/modifier/DomainGraphModifierHelper.js';
|
|
44
|
+
import { LambdaEditorState } from '@finos/legend-query-builder';
|
|
45
45
|
|
|
46
46
|
export const CONSTRAINT_SOURCE_ID_LABEL = 'constraint';
|
|
47
47
|
export const DERIVED_PROPERTY_SOURCE_ID_LABEL = 'derivedProperty';
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
createObservableFileGeneration,
|
|
28
28
|
fileGeneration_setType,
|
|
29
|
-
} from '../../
|
|
29
|
+
} from '../../shared/modifier/DSL_Generation_GraphModifierHelper.js';
|
|
30
30
|
import { handlePostCreateAction } from '../../editor/NewElementState.js';
|
|
31
31
|
|
|
32
32
|
export class ElementFileGenerationState {
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
buildSourceInformationSourceId,
|
|
36
36
|
isStubbed_PackageableElement,
|
|
37
37
|
} from '@finos/legend-graph';
|
|
38
|
-
import { LambdaEditorState } from '@finos/legend-
|
|
38
|
+
import { LambdaEditorState } from '@finos/legend-query-builder';
|
|
39
39
|
|
|
40
40
|
export enum FUNCTION_SPEC_TAB {
|
|
41
41
|
GENERAL = 'GENERAL',
|
|
@@ -67,14 +67,14 @@ import {
|
|
|
67
67
|
generateIdentifiedConnectionId,
|
|
68
68
|
} from '@finos/legend-graph';
|
|
69
69
|
import type { DSL_Mapping_LegendStudioApplicationPlugin_Extension } from '../../DSL_Mapping_LegendStudioApplicationPlugin_Extension.js';
|
|
70
|
-
import { packageableElementReference_setValue } from '../../
|
|
70
|
+
import { packageableElementReference_setValue } from '../../shared/modifier/DomainGraphModifierHelper.js';
|
|
71
71
|
import {
|
|
72
72
|
runtime_addIdentifiedConnection,
|
|
73
73
|
runtime_addMapping,
|
|
74
74
|
runtime_addUniqueStoreConnectionsForStore,
|
|
75
75
|
runtime_deleteIdentifiedConnection,
|
|
76
76
|
runtime_deleteMapping,
|
|
77
|
-
} from '../../
|
|
77
|
+
} from '../../shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
78
78
|
|
|
79
79
|
export const getClassMappingStore = (
|
|
80
80
|
setImplementation: SetImplementation,
|
|
@@ -59,7 +59,7 @@ import type { DSL_Mapping_LegendStudioApplicationPlugin_Extension } from '../../
|
|
|
59
59
|
import {
|
|
60
60
|
relationDbConnection_setNewAuthenticationStrategy,
|
|
61
61
|
relationDbConnection_setDatasourceSpecification,
|
|
62
|
-
} from '../../../
|
|
62
|
+
} from '../../../shared/modifier/STO_Relational_GraphModifierHelper.js';
|
|
63
63
|
import {
|
|
64
64
|
MapperPostProcessorEditorState,
|
|
65
65
|
type PostProcessorEditorState,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
getNullableSchema,
|
|
50
50
|
getNullableTable,
|
|
51
51
|
} from '@finos/legend-graph';
|
|
52
|
-
import { connection_setStore } from '../../../
|
|
52
|
+
import { connection_setStore } from '../../../shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
53
53
|
|
|
54
54
|
export abstract class DatabaseBuilderTreeNodeData implements TreeNodeData {
|
|
55
55
|
isOpen?: boolean | undefined;
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
relationalData_setTableName,
|
|
43
43
|
relationalData_setTableSchemaName,
|
|
44
44
|
relationalData_setTableValues,
|
|
45
|
-
} from '../../../
|
|
45
|
+
} from '../../../shared/modifier/DSL_Data_GraphModifierHelper.js';
|
|
46
46
|
import { EmbeddedDataType } from '../../ExternalFormatState.js';
|
|
47
47
|
|
|
48
48
|
export const createEmbeddedData = (
|
|
@@ -55,7 +55,7 @@ import { type EntityChange, EntityChangeType } from '@finos/legend-server-sdlc';
|
|
|
55
55
|
import type { EditorStore } from '../../../EditorStore.js';
|
|
56
56
|
import { ElementEditorState } from '../ElementEditorState.js';
|
|
57
57
|
import { LEGEND_STUDIO_APP_EVENT } from '../../../LegendStudioAppEvent.js';
|
|
58
|
-
import { configurationProperty_setValue } from '../../../
|
|
58
|
+
import { configurationProperty_setValue } from '../../../shared/modifier/DSL_Generation_GraphModifierHelper.js';
|
|
59
59
|
|
|
60
60
|
export enum SCHEMA_SET_TAB_TYPE {
|
|
61
61
|
SCHEMAS = 'SCHEMAS',
|
|
@@ -99,13 +99,12 @@ import {
|
|
|
99
99
|
stub_Class,
|
|
100
100
|
findPropertyMapping,
|
|
101
101
|
} from '@finos/legend-graph';
|
|
102
|
-
import { LambdaEditorState } from '@finos/legend-application';
|
|
103
102
|
import type {
|
|
104
103
|
DSL_Mapping_LegendStudioApplicationPlugin_Extension,
|
|
105
104
|
MappingElementLabel,
|
|
106
105
|
} from '../../../DSL_Mapping_LegendStudioApplicationPlugin_Extension.js';
|
|
107
106
|
import type { LegendStudioApplicationPlugin } from '../../../LegendStudioApplicationPlugin.js';
|
|
108
|
-
import { flatData_setSourceRootRecordType } from '../../../
|
|
107
|
+
import { flatData_setSourceRootRecordType } from '../../../shared/modifier/STO_FlatData_GraphModifierHelper.js';
|
|
109
108
|
import {
|
|
110
109
|
pureInstanceSetImpl_setSrcClass,
|
|
111
110
|
mapping_addClassMapping,
|
|
@@ -117,9 +116,10 @@ import {
|
|
|
117
116
|
mapping_deleteTest,
|
|
118
117
|
setImpl_updateRootOnCreate,
|
|
119
118
|
setImpl_updateRootOnDelete,
|
|
120
|
-
} from '../../../
|
|
119
|
+
} from '../../../shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
121
120
|
import { BASIC_SET_IMPLEMENTATION_TYPE } from '../../../shared/ModelClassifierUtils.js';
|
|
122
|
-
import { rootRelationalSetImp_setMainTableAlias } from '../../../
|
|
121
|
+
import { rootRelationalSetImp_setMainTableAlias } from '../../../shared/modifier/STO_Relational_GraphModifierHelper.js';
|
|
122
|
+
import { LambdaEditorState } from '@finos/legend-query-builder';
|
|
123
123
|
|
|
124
124
|
export interface MappingExplorerTreeNodeData extends TreeNodeData {
|
|
125
125
|
mappingElement: MappingElement;
|
|
@@ -67,15 +67,15 @@ import {
|
|
|
67
67
|
} from '@finos/legend-graph';
|
|
68
68
|
import type { EditorStore } from '../../../EditorStore.js';
|
|
69
69
|
import {
|
|
70
|
-
|
|
70
|
+
enumerationMapping_setEnumValueMappings,
|
|
71
71
|
enumValueMapping_addSourceValue,
|
|
72
72
|
enumValueMapping_setSourceValues,
|
|
73
|
-
|
|
73
|
+
instanceSetImplementation_setPropertyMappings,
|
|
74
74
|
operationMapping_setParameters,
|
|
75
75
|
pureInstanceSetImpl_setPropertyMappings,
|
|
76
76
|
purePropertyMapping_setTransformer,
|
|
77
|
-
} from '../../../
|
|
78
|
-
import { rootRelationalSetImp_setPropertyMappings } from '../../../
|
|
77
|
+
} from '../../../shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
78
|
+
import { rootRelationalSetImp_setPropertyMappings } from '../../../shared/modifier/STO_Relational_GraphModifierHelper.js';
|
|
79
79
|
import type { DSL_Mapping_LegendStudioApplicationPlugin_Extension } from '../../../DSL_Mapping_LegendStudioApplicationPlugin_Extension.js';
|
|
80
80
|
|
|
81
81
|
/**
|
|
@@ -157,7 +157,7 @@ export class MappingElementDecorator implements SetImplementationVisitor<void> {
|
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
if (enumValueMappingsToAdd.length) {
|
|
160
|
-
|
|
160
|
+
enumerationMapping_setEnumValueMappings(
|
|
161
161
|
enumerationMapping,
|
|
162
162
|
enumerationMapping.enumValueMappings.concat(enumValueMappingsToAdd),
|
|
163
163
|
);
|
|
@@ -208,14 +208,8 @@ export class MappingElementDecorator implements SetImplementationVisitor<void> {
|
|
|
208
208
|
propertyType instanceof Unit ||
|
|
209
209
|
propertyType instanceof Measure
|
|
210
210
|
) {
|
|
211
|
-
// only allow one property mapping per primitive property
|
|
212
|
-
assertTrue(
|
|
213
|
-
!existingPropertyMappings.length ||
|
|
214
|
-
existingPropertyMappings.length === 1,
|
|
215
|
-
'Only one property mapping should exist per simple type (e.g. primitive, measure, unit) property',
|
|
216
|
-
);
|
|
217
211
|
return existingPropertyMappings.length
|
|
218
|
-
?
|
|
212
|
+
? existingPropertyMappings
|
|
219
213
|
: [
|
|
220
214
|
new PurePropertyMapping(
|
|
221
215
|
setImplementation,
|
|
@@ -226,14 +220,8 @@ export class MappingElementDecorator implements SetImplementationVisitor<void> {
|
|
|
226
220
|
),
|
|
227
221
|
];
|
|
228
222
|
} else if (propertyType instanceof Enumeration) {
|
|
229
|
-
// only allow one property mapping per enumeration property
|
|
230
|
-
assertTrue(
|
|
231
|
-
!existingPropertyMappings.length ||
|
|
232
|
-
existingPropertyMappings.length === 1,
|
|
233
|
-
'Only one property mapping should exist per enumeration type property',
|
|
234
|
-
);
|
|
235
223
|
const enumerationPropertyMapping = existingPropertyMappings.length
|
|
236
|
-
?
|
|
224
|
+
? existingPropertyMappings
|
|
237
225
|
: [
|
|
238
226
|
new PurePropertyMapping(
|
|
239
227
|
setImplementation,
|
|
@@ -323,10 +311,17 @@ export class MappingElementDecorator implements SetImplementationVisitor<void> {
|
|
|
323
311
|
pureInstanceSetImpl_setPropertyMappings(
|
|
324
312
|
setImplementation,
|
|
325
313
|
decoratedPropertyMappings.concat(
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
314
|
+
// NOTE: here, we remove some low-quality property mappings
|
|
315
|
+
// i.e. stubbed property mappings from before adding new decorated property mappings
|
|
316
|
+
propertyMappingsBeforeDecoration
|
|
317
|
+
.filter(
|
|
318
|
+
(propertyMapping) =>
|
|
319
|
+
!isStubbed_RawLambda(propertyMapping.transform),
|
|
320
|
+
)
|
|
321
|
+
.filter(
|
|
322
|
+
(propertyMapping) =>
|
|
323
|
+
!decoratedPropertyMappings.includes(propertyMapping),
|
|
324
|
+
),
|
|
330
325
|
),
|
|
331
326
|
this.editorStore.changeDetectionState.observerContext,
|
|
332
327
|
);
|
|
@@ -355,14 +350,8 @@ export class MappingElementDecorator implements SetImplementationVisitor<void> {
|
|
|
355
350
|
propertyType instanceof Unit ||
|
|
356
351
|
propertyType instanceof Measure
|
|
357
352
|
) {
|
|
358
|
-
// only allow one property mapping per primitive property
|
|
359
|
-
assertTrue(
|
|
360
|
-
!existingPropertyMappings.length ||
|
|
361
|
-
existingPropertyMappings.length === 1,
|
|
362
|
-
'Only one property mapping should exist per simple type (e.g. primitive, measure, unit) property',
|
|
363
|
-
);
|
|
364
353
|
return existingPropertyMappings.length
|
|
365
|
-
?
|
|
354
|
+
? existingPropertyMappings
|
|
366
355
|
: [
|
|
367
356
|
new FlatDataPropertyMapping(
|
|
368
357
|
setImplementation,
|
|
@@ -439,13 +428,23 @@ export class MappingElementDecorator implements SetImplementationVisitor<void> {
|
|
|
439
428
|
setImplementation,
|
|
440
429
|
decoratePropertyMapping,
|
|
441
430
|
);
|
|
442
|
-
|
|
431
|
+
instanceSetImplementation_setPropertyMappings(
|
|
443
432
|
setImplementation,
|
|
444
433
|
decoratedPropertyMappings.concat(
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
434
|
+
// NOTE: here, we remove some low-quality property mappings
|
|
435
|
+
// i.e. stubbed property mappings, incompatible property mappings
|
|
436
|
+
// from before adding new decorated property mappings
|
|
437
|
+
propertyMappingsBeforeDecoration
|
|
438
|
+
.filter(
|
|
439
|
+
(propertyMapping) =>
|
|
440
|
+
(propertyMapping instanceof FlatDataPropertyMapping &&
|
|
441
|
+
!isStubbed_RawLambda(propertyMapping.transform)) ||
|
|
442
|
+
propertyMapping instanceof EmbeddedFlatDataPropertyMapping,
|
|
443
|
+
)
|
|
444
|
+
.filter(
|
|
445
|
+
(propertyMapping) =>
|
|
446
|
+
!decoratedPropertyMappings.includes(propertyMapping),
|
|
447
|
+
),
|
|
449
448
|
),
|
|
450
449
|
this.editorStore.changeDetectionState.observerContext,
|
|
451
450
|
);
|
|
@@ -486,15 +485,9 @@ export class MappingElementDecorator implements SetImplementationVisitor<void> {
|
|
|
486
485
|
propertyType instanceof Unit ||
|
|
487
486
|
propertyType instanceof Measure
|
|
488
487
|
) {
|
|
489
|
-
// only allow one property mapping per primitive property
|
|
490
|
-
assertTrue(
|
|
491
|
-
!existingPropertyMappings.length ||
|
|
492
|
-
existingPropertyMappings.length === 1,
|
|
493
|
-
'Only one property mapping should exist per simple type (e.g. primitive, measure, unit) property',
|
|
494
|
-
);
|
|
495
488
|
if (existingPropertyMappings.length) {
|
|
496
489
|
// TODO?: do we want to check the type of the property mapping here?
|
|
497
|
-
return
|
|
490
|
+
return existingPropertyMappings;
|
|
498
491
|
}
|
|
499
492
|
const newPropertyMapping = new RelationalPropertyMapping(
|
|
500
493
|
setImplementation,
|
|
@@ -506,16 +499,10 @@ export class MappingElementDecorator implements SetImplementationVisitor<void> {
|
|
|
506
499
|
stub_RawRelationalOperationElement();
|
|
507
500
|
return [newPropertyMapping];
|
|
508
501
|
} else if (propertyType instanceof Enumeration) {
|
|
509
|
-
// only allow one property mapping per enumeration property
|
|
510
|
-
assertTrue(
|
|
511
|
-
!existingPropertyMappings.length ||
|
|
512
|
-
existingPropertyMappings.length === 1,
|
|
513
|
-
'Only one property mapping should exist per enumeration type property',
|
|
514
|
-
);
|
|
515
502
|
let ePropertyMapping: PropertyMapping[] = [];
|
|
516
503
|
if (existingPropertyMappings.length) {
|
|
517
504
|
// TODO?: do we want to check the type of the property mapping here?
|
|
518
|
-
ePropertyMapping =
|
|
505
|
+
ePropertyMapping = existingPropertyMappings;
|
|
519
506
|
} else {
|
|
520
507
|
const newPropertyMapping = new RelationalPropertyMapping(
|
|
521
508
|
setImplementation,
|
|
@@ -613,13 +600,26 @@ export class MappingElementDecorator implements SetImplementationVisitor<void> {
|
|
|
613
600
|
setImplementation,
|
|
614
601
|
decoratePropertyMapping,
|
|
615
602
|
);
|
|
616
|
-
|
|
603
|
+
instanceSetImplementation_setPropertyMappings(
|
|
617
604
|
setImplementation,
|
|
618
605
|
decoratedPropertyMappings.concat(
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
606
|
+
// NOTE: here, we remove some low-quality property mappings
|
|
607
|
+
// i.e. stubbed property mappings, incompatible property mappings
|
|
608
|
+
// from before adding new decorated property mappings
|
|
609
|
+
propertyMappingsBeforeDecoration
|
|
610
|
+
.filter(
|
|
611
|
+
(propertyMapping) =>
|
|
612
|
+
(propertyMapping instanceof RelationalPropertyMapping &&
|
|
613
|
+
!isStubbed_RawRelationalOperationElement(
|
|
614
|
+
propertyMapping.relationalOperation,
|
|
615
|
+
)) ||
|
|
616
|
+
propertyMapping instanceof
|
|
617
|
+
EmbeddedRelationalInstanceSetImplementation,
|
|
618
|
+
)
|
|
619
|
+
.filter(
|
|
620
|
+
(propertyMapping) =>
|
|
621
|
+
!decoratedPropertyMappings.includes(propertyMapping),
|
|
622
|
+
),
|
|
623
623
|
),
|
|
624
624
|
this.editorStore.changeDetectionState.observerContext,
|
|
625
625
|
);
|
|
@@ -677,7 +677,7 @@ export class MappingElementDecorationCleaner
|
|
|
677
677
|
enumValueMapping.sourceValues.filter(isNonNullable),
|
|
678
678
|
);
|
|
679
679
|
});
|
|
680
|
-
|
|
680
|
+
enumerationMapping_setEnumValueMappings(
|
|
681
681
|
enumerationMapping,
|
|
682
682
|
nonEmptyEnumValueMappings,
|
|
683
683
|
);
|
|
@@ -708,7 +708,7 @@ export class MappingElementDecorationCleaner
|
|
|
708
708
|
visit_PureInstanceSetImplementation(
|
|
709
709
|
setImplementation: PureInstanceSetImplementation,
|
|
710
710
|
): void {
|
|
711
|
-
|
|
711
|
+
instanceSetImplementation_setPropertyMappings(
|
|
712
712
|
setImplementation,
|
|
713
713
|
setImplementation.propertyMappings.filter(
|
|
714
714
|
(propertyMapping) => !isStubbed_RawLambda(propertyMapping.transform),
|
|
@@ -722,7 +722,7 @@ export class MappingElementDecorationCleaner
|
|
|
722
722
|
| FlatDataInstanceSetImplementation
|
|
723
723
|
| EmbeddedFlatDataPropertyMapping,
|
|
724
724
|
): void {
|
|
725
|
-
|
|
725
|
+
instanceSetImplementation_setPropertyMappings(
|
|
726
726
|
setImplementation,
|
|
727
727
|
setImplementation.propertyMappings.filter(
|
|
728
728
|
(propertyMapping) =>
|
|
@@ -24,7 +24,7 @@ import type {
|
|
|
24
24
|
SetImplementation,
|
|
25
25
|
Type,
|
|
26
26
|
} from '@finos/legend-graph';
|
|
27
|
-
import { LambdaEditorState } from '@finos/legend-
|
|
27
|
+
import { LambdaEditorState } from '@finos/legend-query-builder';
|
|
28
28
|
|
|
29
29
|
export class MappingElementState {
|
|
30
30
|
readonly uuid = uuid();
|
|
@@ -104,30 +104,30 @@ import {
|
|
|
104
104
|
ActionAlertActionType,
|
|
105
105
|
ActionAlertType,
|
|
106
106
|
ExecutionPlanState,
|
|
107
|
-
LambdaEditorState,
|
|
108
107
|
TAB_SIZE,
|
|
109
108
|
} from '@finos/legend-application';
|
|
110
109
|
import {
|
|
111
110
|
objectInputData_setData,
|
|
112
111
|
runtime_addIdentifiedConnection,
|
|
113
112
|
runtime_addMapping,
|
|
114
|
-
} from '../../../
|
|
115
|
-
import { flatData_setData } from '../../../
|
|
113
|
+
} from '../../../shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
114
|
+
import { flatData_setData } from '../../../shared/modifier/STO_FlatData_GraphModifierHelper.js';
|
|
116
115
|
import {
|
|
117
116
|
service_addTestSuite,
|
|
118
117
|
service_initNewService,
|
|
119
118
|
service_setExecution,
|
|
120
|
-
} from '../../../
|
|
119
|
+
} from '../../../shared/modifier/DSL_Service_GraphModifierHelper.js';
|
|
121
120
|
import {
|
|
122
121
|
localH2DatasourceSpecification_setTestDataSetupCsv,
|
|
123
122
|
localH2DatasourceSpecification_setTestDataSetupSqls,
|
|
124
123
|
relationalInputData_setData,
|
|
125
|
-
} from '../../../
|
|
124
|
+
} from '../../../shared/modifier/STO_Relational_GraphModifierHelper.js';
|
|
126
125
|
import {
|
|
127
126
|
createEmptyEqualToJsonAssertion,
|
|
128
127
|
createBareExternalFormat,
|
|
129
128
|
} from '../../../shared/testable/TestableUtils.js';
|
|
130
129
|
import { SERIALIZATION_FORMAT } from '../service/testable/ServiceTestEditorState.js';
|
|
130
|
+
import { LambdaEditorState } from '@finos/legend-query-builder';
|
|
131
131
|
|
|
132
132
|
export class MappingExecutionQueryState extends LambdaEditorState {
|
|
133
133
|
editorStore: EditorStore;
|
|
@@ -84,12 +84,8 @@ import {
|
|
|
84
84
|
generateIdentifiedConnectionId,
|
|
85
85
|
DEPRECATED__validate_MappingTest,
|
|
86
86
|
} from '@finos/legend-graph';
|
|
87
|
-
import {
|
|
88
|
-
|
|
89
|
-
LambdaEditorState,
|
|
90
|
-
TAB_SIZE,
|
|
91
|
-
} from '@finos/legend-application';
|
|
92
|
-
import { flatData_setData } from '../../../graphModifier/STO_FlatData_GraphModifierHelper.js';
|
|
87
|
+
import { ExecutionPlanState, TAB_SIZE } from '@finos/legend-application';
|
|
88
|
+
import { flatData_setData } from '../../../shared/modifier/STO_FlatData_GraphModifierHelper.js';
|
|
93
89
|
import {
|
|
94
90
|
expectedOutputMappingTestAssert_setExpectedOutput,
|
|
95
91
|
mappingTest_setAssert,
|
|
@@ -97,12 +93,13 @@ import {
|
|
|
97
93
|
objectInputData_setData,
|
|
98
94
|
runtime_addIdentifiedConnection,
|
|
99
95
|
runtime_addMapping,
|
|
100
|
-
} from '../../../
|
|
96
|
+
} from '../../../shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
101
97
|
import {
|
|
102
98
|
localH2DatasourceSpecification_setTestDataSetupCsv,
|
|
103
99
|
localH2DatasourceSpecification_setTestDataSetupSqls,
|
|
104
100
|
relationalInputData_setData,
|
|
105
|
-
} from '../../../
|
|
101
|
+
} from '../../../shared/modifier/STO_Relational_GraphModifierHelper.js';
|
|
102
|
+
import { LambdaEditorState } from '@finos/legend-query-builder';
|
|
106
103
|
|
|
107
104
|
export enum TEST_RESULT {
|
|
108
105
|
NONE = 'NONE', // test has not run yet
|
package/src/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.ts
CHANGED
|
@@ -39,8 +39,8 @@ import {
|
|
|
39
39
|
stub_RawLambda,
|
|
40
40
|
isStubbed_RawLambda,
|
|
41
41
|
} from '@finos/legend-graph';
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
42
|
+
import { pureInstanceSetImpl_setMappingFilter } from '../../../shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
43
|
+
import { LambdaEditorState } from '@finos/legend-query-builder';
|
|
44
44
|
|
|
45
45
|
export class PurePropertyMappingState extends PropertyMappingState {
|
|
46
46
|
editorStore: EditorStore;
|
|
@@ -30,14 +30,9 @@ import {
|
|
|
30
30
|
RuntimeEditorState,
|
|
31
31
|
} from '../../../editor-state/element-editor-state/RuntimeEditorState.js';
|
|
32
32
|
import {
|
|
33
|
-
buildParametersLetLambdaFunc,
|
|
34
33
|
DEFAULT_TYPEAHEAD_SEARCH_LIMIT,
|
|
35
34
|
DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH,
|
|
36
35
|
ExecutionPlanState,
|
|
37
|
-
LambdaEditorState,
|
|
38
|
-
LambdaParametersState,
|
|
39
|
-
LambdaParameterState,
|
|
40
|
-
PARAMETER_SUBMIT_ACTION,
|
|
41
36
|
TAB_SIZE,
|
|
42
37
|
} from '@finos/legend-application';
|
|
43
38
|
import {
|
|
@@ -70,7 +65,7 @@ import {
|
|
|
70
65
|
stub_Mapping,
|
|
71
66
|
} from '@finos/legend-graph';
|
|
72
67
|
import { type Entity, parseGACoordinates } from '@finos/legend-storage';
|
|
73
|
-
import { runtime_addMapping } from '../../../
|
|
68
|
+
import { runtime_addMapping } from '../../../shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
74
69
|
import type { EditorStore } from '../../../EditorStore.js';
|
|
75
70
|
import {
|
|
76
71
|
keyedExecutionParameter_setKey,
|
|
@@ -81,7 +76,14 @@ import {
|
|
|
81
76
|
pureSingleExecution_setMapping,
|
|
82
77
|
pureSingleExecution_setRuntime,
|
|
83
78
|
service_setExecution,
|
|
84
|
-
} from '../../../
|
|
79
|
+
} from '../../../shared/modifier/DSL_Service_GraphModifierHelper.js';
|
|
80
|
+
import {
|
|
81
|
+
buildParametersLetLambdaFunc,
|
|
82
|
+
LambdaEditorState,
|
|
83
|
+
LambdaParametersState,
|
|
84
|
+
LambdaParameterState,
|
|
85
|
+
PARAMETER_SUBMIT_ACTION,
|
|
86
|
+
} from '@finos/legend-query-builder';
|
|
85
87
|
|
|
86
88
|
export class ServiceExecutionParameterState extends LambdaParametersState {
|
|
87
89
|
executionState: ServicePureExecutionState;
|
|
@@ -29,13 +29,20 @@ import {
|
|
|
29
29
|
getNullableFirstElement,
|
|
30
30
|
assertTrue,
|
|
31
31
|
URL_SEPARATOR,
|
|
32
|
+
filterByType,
|
|
32
33
|
} from '@finos/legend-shared';
|
|
33
34
|
import { LEGEND_STUDIO_APP_EVENT } from '../../../LegendStudioAppEvent.js';
|
|
34
35
|
import { Version } from '@finos/legend-server-sdlc';
|
|
35
36
|
import {
|
|
36
37
|
type Service,
|
|
37
38
|
type ServiceRegistrationResult,
|
|
39
|
+
type PureExecution,
|
|
38
40
|
ServiceExecutionMode,
|
|
41
|
+
buildLambdaVariableExpressions,
|
|
42
|
+
VariableExpression,
|
|
43
|
+
TYPICAL_MULTIPLICITY_TYPE,
|
|
44
|
+
generateMultiplicityString,
|
|
45
|
+
multiplicityComparator,
|
|
39
46
|
} from '@finos/legend-graph';
|
|
40
47
|
import { ServiceRegistrationEnvironmentConfig } from '../../../../application/LegendStudioApplicationConfig.js';
|
|
41
48
|
import {
|
|
@@ -261,7 +268,7 @@ export class ServiceRegistrationState {
|
|
|
261
268
|
label: 'Launch Service',
|
|
262
269
|
type: ActionAlertActionType.PROCEED,
|
|
263
270
|
handler: (): void => {
|
|
264
|
-
this.editorStore.applicationStore.navigator.
|
|
271
|
+
this.editorStore.applicationStore.navigator.visitAddress(
|
|
265
272
|
generateServiceManagementUrl(
|
|
266
273
|
config.managementUrl,
|
|
267
274
|
serviceRegistrationResult.pattern,
|
|
@@ -314,5 +321,37 @@ export class ServiceRegistrationState {
|
|
|
314
321
|
'Service version can not be empty in Semi-interactive and Prod service type',
|
|
315
322
|
);
|
|
316
323
|
}
|
|
324
|
+
|
|
325
|
+
// validate service parameter multiplicities
|
|
326
|
+
const supportedServiceParamMultiplicties = [
|
|
327
|
+
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
|
328
|
+
TYPICAL_MULTIPLICITY_TYPE.ZEROMANY,
|
|
329
|
+
TYPICAL_MULTIPLICITY_TYPE.ZEROONE,
|
|
330
|
+
].map((p) =>
|
|
331
|
+
this.editorStore.graphManagerState.graph.getTypicalMultiplicity(p),
|
|
332
|
+
);
|
|
333
|
+
const invalidParams = buildLambdaVariableExpressions(
|
|
334
|
+
(this.service.execution as PureExecution).func,
|
|
335
|
+
this.editorStore.graphManagerState,
|
|
336
|
+
)
|
|
337
|
+
.filter(filterByType(VariableExpression))
|
|
338
|
+
.filter(
|
|
339
|
+
(p) =>
|
|
340
|
+
!supportedServiceParamMultiplicties.some((m) =>
|
|
341
|
+
multiplicityComparator(m, p.multiplicity),
|
|
342
|
+
),
|
|
343
|
+
);
|
|
344
|
+
assertTrue(
|
|
345
|
+
invalidParams.length === 0,
|
|
346
|
+
`Parameter(s)${invalidParams.map(
|
|
347
|
+
(p) =>
|
|
348
|
+
` ${p.name}: [${generateMultiplicityString(
|
|
349
|
+
p.multiplicity.lowerBound,
|
|
350
|
+
p.multiplicity.upperBound,
|
|
351
|
+
)}]`,
|
|
352
|
+
)} has/have unsupported multiplicity. Supported multiplicities include ${supportedServiceParamMultiplicties.map(
|
|
353
|
+
(m) => ` [${generateMultiplicityString(m.lowerBound, m.upperBound)}]`,
|
|
354
|
+
)}.`,
|
|
355
|
+
);
|
|
317
356
|
}
|
|
318
357
|
}
|
package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts
CHANGED
|
@@ -51,7 +51,7 @@ import type { EditorStore } from '../../../../EditorStore.js';
|
|
|
51
51
|
import {
|
|
52
52
|
service_addConnectionTestData,
|
|
53
53
|
service_setConnectionTestDataEmbeddedData,
|
|
54
|
-
} from '../../../../
|
|
54
|
+
} from '../../../../shared/modifier/DSL_Service_GraphModifierHelper.js';
|
|
55
55
|
import {
|
|
56
56
|
createMockEnumerationProperty,
|
|
57
57
|
createMockPrimitiveProperty,
|
package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.ts
CHANGED
|
@@ -23,7 +23,6 @@ import {
|
|
|
23
23
|
ParameterValue,
|
|
24
24
|
buildLambdaVariableExpressions,
|
|
25
25
|
VariableExpression,
|
|
26
|
-
generateVariableExpressionMockValue,
|
|
27
26
|
} from '@finos/legend-graph';
|
|
28
27
|
import { action, flow, makeObservable, observable } from 'mobx';
|
|
29
28
|
import { TestableTestEditorState } from '../../testable/TestableEditorState.js';
|
|
@@ -35,7 +34,7 @@ import {
|
|
|
35
34
|
service_setParameterValues,
|
|
36
35
|
service_setParameterValueSpec,
|
|
37
36
|
service_setSerializationFormat,
|
|
38
|
-
} from '../../../../
|
|
37
|
+
} from '../../../../shared/modifier/DSL_Service_GraphModifierHelper.js';
|
|
39
38
|
import {
|
|
40
39
|
assertErrorThrown,
|
|
41
40
|
deleteEntry,
|
|
@@ -46,6 +45,7 @@ import {
|
|
|
46
45
|
uuid,
|
|
47
46
|
} from '@finos/legend-shared';
|
|
48
47
|
import type { EditorStore } from '../../../../EditorStore.js';
|
|
48
|
+
import { generateVariableExpressionMockValue } from '@finos/legend-query-builder';
|
|
49
49
|
|
|
50
50
|
export enum SERIALIZATION_FORMAT {
|
|
51
51
|
PURE = 'PURE',
|
package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestableState.ts
CHANGED
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
service_addTest,
|
|
47
47
|
service_addTestSuite,
|
|
48
48
|
service_deleteTestSuite,
|
|
49
|
-
} from '../../../../
|
|
49
|
+
} from '../../../../shared/modifier/DSL_Service_GraphModifierHelper.js';
|
|
50
50
|
import { createEmptyEqualToJsonAssertion } from '../../../../shared/testable/TestableUtils.js';
|
|
51
51
|
import type { ServiceEditorState } from '../ServiceEditorState.js';
|
|
52
52
|
import { ServiceTestDataState } from './ServiceTestDataState.js';
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from '@finos/legend-shared';
|
|
37
37
|
import { action, flow, makeObservable, observable } from 'mobx';
|
|
38
38
|
import type { EditorStore } from '../../../EditorStore.js';
|
|
39
|
-
import { externalFormatData_setData } from '../../../
|
|
39
|
+
import { externalFormatData_setData } from '../../../shared/modifier/DSL_Data_GraphModifierHelper.js';
|
|
40
40
|
import {
|
|
41
41
|
getTestableResultFromAssertionStatus,
|
|
42
42
|
TESTABLE_RESULT,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from '@finos/legend-shared';
|
|
36
36
|
import { action, makeObservable, observable } from 'mobx';
|
|
37
37
|
import type { EditorStore } from '../../../EditorStore.js';
|
|
38
|
-
import { atomicTest_addAssertion } from '../../../
|
|
38
|
+
import { atomicTest_addAssertion } from '../../../shared/modifier/Testable_GraphModifierHelper.js';
|
|
39
39
|
import { createEmptyEqualToJsonAssertion } from '../../../shared/testable/TestableUtils.js';
|
|
40
40
|
import { TESTABLE_RESULT } from '../../../sidebar-state/testable/GlobalTestRunnerState.js';
|
|
41
41
|
import {
|
|
@@ -112,7 +112,7 @@ export class ProjectViewerStore {
|
|
|
112
112
|
if (entityPath) {
|
|
113
113
|
this.elementPath = entityPath;
|
|
114
114
|
if (projectId) {
|
|
115
|
-
this.editorStore.applicationStore.navigator.
|
|
115
|
+
this.editorStore.applicationStore.navigator.goToLocation(
|
|
116
116
|
versionId
|
|
117
117
|
? generateViewVersionRoute(projectId, versionId)
|
|
118
118
|
: revisionId
|
|
@@ -125,7 +125,7 @@ export class ProjectViewerStore {
|
|
|
125
125
|
artifactId,
|
|
126
126
|
versionId: _versionId,
|
|
127
127
|
} = parseGAVCoordinates(gav);
|
|
128
|
-
this.editorStore.applicationStore.navigator.
|
|
128
|
+
this.editorStore.applicationStore.navigator.goToLocation(
|
|
129
129
|
generateViewProjectByGAVRoute(groupId, artifactId, _versionId),
|
|
130
130
|
);
|
|
131
131
|
}
|
|
@@ -74,14 +74,3 @@ export enum BASIC_SET_IMPLEMENTATION_TYPE {
|
|
|
74
74
|
OPERATION = 'operation',
|
|
75
75
|
INSTANCE = 'instance',
|
|
76
76
|
}
|
|
77
|
-
|
|
78
|
-
export enum SET_IMPLEMENTATION_TYPE {
|
|
79
|
-
OPERATION = 'operation',
|
|
80
|
-
MERGE_OPERATION = 'mergeOperation',
|
|
81
|
-
PUREINSTANCE = 'pureInstance',
|
|
82
|
-
FLAT_DATA = 'flatData',
|
|
83
|
-
EMBEDDED_FLAT_DATA = 'embeddedFlatData',
|
|
84
|
-
RELATIONAL = 'relational',
|
|
85
|
-
EMBEDDED_RELATIONAL = 'embeddedRelational',
|
|
86
|
-
AGGREGATION_AWARE = 'aggregationAware',
|
|
87
|
-
}
|
|
File without changes
|
package/src/stores/{graphModifier → shared/modifier}/DSL_ExternalFormat_GraphModifierHelper.ts
RENAMED
|
File without changes
|
|
File without changes
|