@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
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
fileGeneration_changeScopeElement,
|
|
93
93
|
fileGeneration_deleteScopeElement,
|
|
94
94
|
fileGeneration_setGenerationOutputPath,
|
|
95
|
-
} from '../../../../stores/
|
|
95
|
+
} from '../../../../stores/shared/modifier/DSL_Generation_GraphModifierHelper.js';
|
|
96
96
|
|
|
97
97
|
export const FileGenerationTreeNodeContainer: React.FC<
|
|
98
98
|
TreeNodeContainerProps<
|
|
@@ -272,7 +272,7 @@ export const GenerationResultViewer = observer(
|
|
|
272
272
|
tabIndex={-1}
|
|
273
273
|
disabled={fileGenerationState.isGenerating}
|
|
274
274
|
onClick={regenerate}
|
|
275
|
-
title=
|
|
275
|
+
title="Regenerate"
|
|
276
276
|
>
|
|
277
277
|
<RefreshIcon />
|
|
278
278
|
</button>
|
|
@@ -1372,7 +1372,7 @@ export const FileGenerationConfigurationEditor = observer(
|
|
|
1372
1372
|
isReadOnly || !fileGeneration.configurationProperties.length
|
|
1373
1373
|
}
|
|
1374
1374
|
onClick={resetDefaultConfiguration}
|
|
1375
|
-
title=
|
|
1375
|
+
title="Reset to default configuration"
|
|
1376
1376
|
>
|
|
1377
1377
|
<RefreshIcon />
|
|
1378
1378
|
</button>
|
|
@@ -1382,7 +1382,7 @@ export const FileGenerationConfigurationEditor = observer(
|
|
|
1382
1382
|
tabIndex={-1}
|
|
1383
1383
|
disabled={isReadOnly}
|
|
1384
1384
|
onClick={showFileGenerationModal}
|
|
1385
|
-
title=
|
|
1385
|
+
title="Promote to file generation specification..."
|
|
1386
1386
|
>
|
|
1387
1387
|
<SaveIcon />
|
|
1388
1388
|
</button>
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
externalFormat_modelUnit_addPackageableElementIncludes,
|
|
60
60
|
externalFormat_modelUnit_deletePackageableElementExcludes,
|
|
61
61
|
externalFormat_modelUnit_deletePackageableElementIncludes,
|
|
62
|
-
} from '../../../../stores/
|
|
62
|
+
} from '../../../../stores/shared/modifier/DSL_ExternalFormat_GraphModifierHelper.js';
|
|
63
63
|
|
|
64
64
|
const BindingScopeEntryEditor = observer(
|
|
65
65
|
(props: {
|
|
@@ -24,7 +24,7 @@ import { computed, makeObservable } from 'mobx';
|
|
|
24
24
|
import { ConnectionValueState } from '../../../../stores/editor-state/element-editor-state/connection/ConnectionEditorState.js';
|
|
25
25
|
import type { EditorStore } from '../../../../stores/EditorStore.js';
|
|
26
26
|
import { NewConnectionValueDriver } from '../../../../stores/editor/NewElementState.js';
|
|
27
|
-
import { externalFormat_urlStream_setUrl } from '../../../../stores/
|
|
27
|
+
import { externalFormat_urlStream_setUrl } from '../../../../stores/shared/modifier/DSL_ExternalFormat_GraphModifierHelper.js';
|
|
28
28
|
|
|
29
29
|
export class ExternalFormatConnectionValueState extends ConnectionValueState {
|
|
30
30
|
override connection: ExternalFormatConnection;
|
|
@@ -21,7 +21,7 @@ import { makeObservable, observable, action } from 'mobx';
|
|
|
21
21
|
import { observer } from 'mobx-react-lite';
|
|
22
22
|
import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
23
23
|
import type { EditorStore } from '../../../../stores/EditorStore.js';
|
|
24
|
-
import { externalFormat_schemaSet_setFormat } from '../../../../stores/
|
|
24
|
+
import { externalFormat_schemaSet_setFormat } from '../../../../stores/shared/modifier/DSL_ExternalFormat_GraphModifierHelper.js';
|
|
25
25
|
import { NewElementDriver } from '../../../../stores/editor/NewElementState.js';
|
|
26
26
|
import type { ExternalFormatTypeOption } from '../../../../stores/editor-state/ExternalFormatState.js';
|
|
27
27
|
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
externalFormat_schema_setContent,
|
|
52
52
|
externalFormat_schema_setId,
|
|
53
53
|
externalFormat_schema_setLocation,
|
|
54
|
-
} from '../../../../stores/
|
|
54
|
+
} from '../../../../stores/shared/modifier/DSL_ExternalFormat_GraphModifierHelper.js';
|
|
55
55
|
import { SchemaSetModelGenerationEditor } from './DSL_ExternalFormat_SchemaSetModelGenerationEditor.js';
|
|
56
56
|
|
|
57
57
|
const SchemaLoader = observer(
|
|
@@ -166,7 +166,7 @@ const SchemaBasicEditor = observer(
|
|
|
166
166
|
value={schema.id}
|
|
167
167
|
spellCheck={false}
|
|
168
168
|
onChange={changeId}
|
|
169
|
-
placeholder=
|
|
169
|
+
placeholder="Id"
|
|
170
170
|
/>
|
|
171
171
|
<input
|
|
172
172
|
className="schema-editor__location"
|
|
@@ -174,7 +174,7 @@ const SchemaBasicEditor = observer(
|
|
|
174
174
|
value={schema.location}
|
|
175
175
|
spellCheck={false}
|
|
176
176
|
onChange={changeLocation}
|
|
177
|
-
placeholder=
|
|
177
|
+
placeholder="Location"
|
|
178
178
|
/>
|
|
179
179
|
<div className={clsx('schema-editor__content')}>
|
|
180
180
|
<div className="schema-editor__content__input">
|
|
@@ -268,7 +268,7 @@ export const SchemaSetGeneralEditor = observer(
|
|
|
268
268
|
onClick={openSchemaLoader}
|
|
269
269
|
disabled={isReadOnly}
|
|
270
270
|
tabIndex={-1}
|
|
271
|
-
title=
|
|
271
|
+
title="Import Schemas"
|
|
272
272
|
>
|
|
273
273
|
<UploadIcon />
|
|
274
274
|
</button>
|
|
@@ -277,7 +277,7 @@ export const SchemaSetGeneralEditor = observer(
|
|
|
277
277
|
onClick={addSchema}
|
|
278
278
|
disabled={isReadOnly}
|
|
279
279
|
tabIndex={-1}
|
|
280
|
-
title=
|
|
280
|
+
title="Add Schema"
|
|
281
281
|
>
|
|
282
282
|
<PlusIcon />
|
|
283
283
|
</button>
|
|
@@ -108,7 +108,7 @@ export const SchemaSetModelGenerationEditor = observer(
|
|
|
108
108
|
tabIndex={-1}
|
|
109
109
|
disabled={isReadOnly || !properties.length}
|
|
110
110
|
onClick={regenerate}
|
|
111
|
-
title=
|
|
111
|
+
title="Reset to default configuration"
|
|
112
112
|
>
|
|
113
113
|
<RefreshIcon />
|
|
114
114
|
</button>
|
|
@@ -130,7 +130,7 @@ export const SchemaSetModelGenerationEditor = observer(
|
|
|
130
130
|
spellCheck={false}
|
|
131
131
|
value={modelGenerationState.targetBinding}
|
|
132
132
|
onChange={changeTargetBindingPath}
|
|
133
|
-
placeholder=
|
|
133
|
+
placeholder="Target binding path"
|
|
134
134
|
validationErrorMessage={
|
|
135
135
|
targetBindingPathValidationMessage
|
|
136
136
|
}
|
|
@@ -187,7 +187,7 @@ export const SchemaSetModelGenerationEditor = observer(
|
|
|
187
187
|
.isInProgress
|
|
188
188
|
}
|
|
189
189
|
onClick={regenerate}
|
|
190
|
-
title=
|
|
190
|
+
title="Regenerate"
|
|
191
191
|
>
|
|
192
192
|
<RefreshIcon />
|
|
193
193
|
</button>
|
|
@@ -29,10 +29,10 @@ import { MappingEditorState } from '../../../../stores/editor-state/element-edit
|
|
|
29
29
|
import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
30
30
|
import {
|
|
31
31
|
type SetImplementation,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
PureInstanceSetImplementation,
|
|
33
|
+
FlatDataInstanceSetImplementation,
|
|
34
|
+
EmbeddedFlatDataPropertyMapping,
|
|
35
|
+
RootRelationalInstanceSetImplementation,
|
|
36
36
|
fromElementPathToMappingElementId,
|
|
37
37
|
OperationSetImplementation,
|
|
38
38
|
OperationType,
|
|
@@ -41,9 +41,8 @@ import {
|
|
|
41
41
|
setImpl_nominateRoot,
|
|
42
42
|
operationMapping_setOperation,
|
|
43
43
|
operationMapping_setParameters,
|
|
44
|
-
|
|
45
|
-
} from '../../../../stores/
|
|
46
|
-
import { SET_IMPLEMENTATION_TYPE } from '../../../../stores/shared/ModelClassifierUtils.js';
|
|
44
|
+
setImplementation_setRoot,
|
|
45
|
+
} from '../../../../stores/shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
47
46
|
import type { DSL_Mapping_LegendStudioApplicationPlugin_Extension } from '../../../../stores/DSL_Mapping_LegendStudioApplicationPlugin_Extension.js';
|
|
48
47
|
|
|
49
48
|
export const OperatorSelector = observer(
|
|
@@ -75,7 +74,7 @@ export const OperatorSelector = observer(
|
|
|
75
74
|
options={operationsOptions}
|
|
76
75
|
onChange={changeSourceType}
|
|
77
76
|
value={selectedSourceType}
|
|
78
|
-
placeholder=
|
|
77
|
+
placeholder="Select operation ID"
|
|
79
78
|
/>
|
|
80
79
|
);
|
|
81
80
|
},
|
|
@@ -94,8 +93,6 @@ export const ClassMappingEditor = observer(
|
|
|
94
93
|
const editorStore = useEditorStore();
|
|
95
94
|
const mappingEditorState =
|
|
96
95
|
editorStore.getCurrentEditorState(MappingEditorState);
|
|
97
|
-
const setImplementationType =
|
|
98
|
-
editorStore.graphState.getSetImplementationType(setImplementation);
|
|
99
96
|
const _class = setImplementation.class;
|
|
100
97
|
// ID
|
|
101
98
|
const isDefaultId =
|
|
@@ -113,62 +110,47 @@ export const ClassMappingEditor = observer(
|
|
|
113
110
|
let sourceType = '';
|
|
114
111
|
let sourceName: string | undefined;
|
|
115
112
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
)
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
const extraMappingSourceTypeInfoGetters = editorStore.pluginManager
|
|
150
|
-
.getApplicationPlugins()
|
|
151
|
-
.flatMap(
|
|
152
|
-
(plugin) =>
|
|
153
|
-
(
|
|
154
|
-
plugin as DSL_Mapping_LegendStudioApplicationPlugin_Extension
|
|
155
|
-
).getExtraMappingSourceTypeInfoGetters?.() ?? [],
|
|
156
|
-
);
|
|
157
|
-
for (const sourceTypeInfoGetter of extraMappingSourceTypeInfoGetters) {
|
|
158
|
-
const mappingSourceTypeInfo = sourceTypeInfoGetter(setImplementation);
|
|
159
|
-
if (mappingSourceTypeInfo) {
|
|
160
|
-
sourceType = mappingSourceTypeInfo.sourceType;
|
|
161
|
-
sourceName = mappingSourceTypeInfo.sourceName;
|
|
162
|
-
}
|
|
113
|
+
if (setImplementation instanceof PureInstanceSetImplementation) {
|
|
114
|
+
sourceType = CLASS_MAPPING_SOURCE_TYPE.CLASS;
|
|
115
|
+
sourceName = setImplementation.srcClass?.value.name;
|
|
116
|
+
} else if (setImplementation instanceof FlatDataInstanceSetImplementation) {
|
|
117
|
+
sourceType = CLASS_MAPPING_SOURCE_TYPE.FLAT_DATA;
|
|
118
|
+
sourceName = setImplementation.sourceRootRecordType.value._OWNER.name;
|
|
119
|
+
} else if (setImplementation instanceof EmbeddedFlatDataPropertyMapping) {
|
|
120
|
+
sourceType = CLASS_MAPPING_SOURCE_TYPE.FLAT_DATA;
|
|
121
|
+
sourceName = (
|
|
122
|
+
setImplementation.rootInstanceSetImplementation as FlatDataInstanceSetImplementation
|
|
123
|
+
).sourceRootRecordType.value._OWNER.name;
|
|
124
|
+
} else if (
|
|
125
|
+
setImplementation instanceof RootRelationalInstanceSetImplementation
|
|
126
|
+
) {
|
|
127
|
+
sourceType = CLASS_MAPPING_SOURCE_TYPE.RELATIONAL;
|
|
128
|
+
sourceName = setImplementation.mainTableAlias?.relation.value.name;
|
|
129
|
+
} else if (setImplementation instanceof OperationSetImplementation) {
|
|
130
|
+
sourceType = CLASS_MAPPING_SOURCE_TYPE.OPERATION;
|
|
131
|
+
} else {
|
|
132
|
+
const extraMappingSourceTypeInfoGetters = editorStore.pluginManager
|
|
133
|
+
.getApplicationPlugins()
|
|
134
|
+
.flatMap(
|
|
135
|
+
(plugin) =>
|
|
136
|
+
(
|
|
137
|
+
plugin as DSL_Mapping_LegendStudioApplicationPlugin_Extension
|
|
138
|
+
).getExtraMappingSourceTypeInfoGetters?.() ?? [],
|
|
139
|
+
);
|
|
140
|
+
for (const sourceTypeInfoGetter of extraMappingSourceTypeInfoGetters) {
|
|
141
|
+
const mappingSourceTypeInfo = sourceTypeInfoGetter(setImplementation);
|
|
142
|
+
if (mappingSourceTypeInfo) {
|
|
143
|
+
sourceType = mappingSourceTypeInfo.sourceType;
|
|
144
|
+
sourceName = mappingSourceTypeInfo.sourceName;
|
|
145
|
+
break;
|
|
163
146
|
}
|
|
164
|
-
break;
|
|
165
147
|
}
|
|
166
148
|
}
|
|
167
149
|
|
|
168
150
|
const toggleRoot = (): void => {
|
|
169
151
|
if (!isReadOnly) {
|
|
170
152
|
const isRoot = setImplementation.root.value;
|
|
171
|
-
|
|
153
|
+
setImplementation_setRoot(setImplementation, !isRoot);
|
|
172
154
|
if (setImplementation.root.value) {
|
|
173
155
|
setImpl_nominateRoot(setImplementation);
|
|
174
156
|
}
|
|
@@ -201,31 +183,12 @@ export const ClassMappingEditor = observer(
|
|
|
201
183
|
</div>
|
|
202
184
|
</div>
|
|
203
185
|
</div>
|
|
204
|
-
{/* Driver */}
|
|
205
|
-
<div
|
|
206
|
-
className={clsx(
|
|
207
|
-
'mapping-element-editor__metadata__chunk',
|
|
208
|
-
'mapping-element-editor__metadata__driver-chunk',
|
|
209
|
-
`mapping-element-editor__metadata__driver--${setImplementationType.toLowerCase()}`,
|
|
210
|
-
{
|
|
211
|
-
'mapping-element-editor__metadata__source--none': !sourceName,
|
|
212
|
-
},
|
|
213
|
-
)}
|
|
214
|
-
>
|
|
215
|
-
<div className="mapping-element-editor__metadata__sub-chunk">
|
|
216
|
-
using
|
|
217
|
-
</div>
|
|
218
|
-
<div className="mapping-element-editor__metadata__sub-chunk mapping-element-editor__metadata__driver__type">
|
|
219
|
-
{setImplementationType.toUpperCase()}
|
|
220
|
-
</div>
|
|
221
|
-
</div>
|
|
222
186
|
{/* Instance Set Implementation Source */}
|
|
223
|
-
{
|
|
187
|
+
{!(setImplementation instanceof OperationSetImplementation) && (
|
|
224
188
|
<div
|
|
225
189
|
className={clsx(
|
|
226
190
|
'mapping-element-editor__metadata__chunk',
|
|
227
191
|
'mapping-element-editor__metadata__source-chunk',
|
|
228
|
-
`background--${setImplementationType.toLowerCase()}`,
|
|
229
192
|
{
|
|
230
193
|
'mapping-element-editor__metadata__source-chunk--none':
|
|
231
194
|
!sourceName,
|
|
@@ -251,12 +214,10 @@ export const ClassMappingEditor = observer(
|
|
|
251
214
|
</div>
|
|
252
215
|
)}
|
|
253
216
|
{/* Operation Set Implementation Operator */}
|
|
254
|
-
{
|
|
217
|
+
{setImplementation instanceof OperationSetImplementation && (
|
|
255
218
|
<div className="mapping-element-editor__metadata__operator-selector">
|
|
256
219
|
<OperatorSelector
|
|
257
|
-
setImplementation={
|
|
258
|
-
setImplementation as OperationSetImplementation
|
|
259
|
-
}
|
|
220
|
+
setImplementation={setImplementation}
|
|
260
221
|
isReadOnly={isReadOnly}
|
|
261
222
|
/>
|
|
262
223
|
</div>
|
|
@@ -275,7 +236,7 @@ export const ClassMappingEditor = observer(
|
|
|
275
236
|
onClick={toggleRoot}
|
|
276
237
|
disabled={isReadOnly}
|
|
277
238
|
tabIndex={-1}
|
|
278
|
-
title=
|
|
239
|
+
title="Toggle set class mapping as root"
|
|
279
240
|
>
|
|
280
241
|
{setImplementation.root.value ? (
|
|
281
242
|
<CheckSquareIcon />
|
|
@@ -64,11 +64,11 @@ import {
|
|
|
64
64
|
PackageableElementExplicitReference,
|
|
65
65
|
} from '@finos/legend-graph';
|
|
66
66
|
import {
|
|
67
|
-
|
|
67
|
+
enumerationMapping_updateSourceType,
|
|
68
68
|
enumValueMapping_addSourceValue,
|
|
69
69
|
enumValueMapping_deleteSourceValue,
|
|
70
70
|
enumValueMapping_updateSourceValue,
|
|
71
|
-
} from '../../../../stores/
|
|
71
|
+
} from '../../../../stores/shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
72
72
|
import {
|
|
73
73
|
buildElementOption,
|
|
74
74
|
getPackageableElementOptionFormatter,
|
|
@@ -115,7 +115,7 @@ const EnumerationMappingSourceSelectorModal = observer(
|
|
|
115
115
|
): void => {
|
|
116
116
|
const value = val?.value;
|
|
117
117
|
if (!value || value instanceof Type) {
|
|
118
|
-
|
|
118
|
+
enumerationMapping_updateSourceType(
|
|
119
119
|
enumerationMapping,
|
|
120
120
|
value ? PackageableElementExplicitReference.create(value) : undefined,
|
|
121
121
|
);
|
|
@@ -149,7 +149,7 @@ const EnumerationMappingSourceSelectorModal = observer(
|
|
|
149
149
|
options={options}
|
|
150
150
|
onChange={changeSourceType}
|
|
151
151
|
value={selectedSourceType}
|
|
152
|
-
placeholder=
|
|
152
|
+
placeholder="Choose a type..."
|
|
153
153
|
isClearable={true}
|
|
154
154
|
filterOption={filterOption}
|
|
155
155
|
formatOptionLabel={getPackageableElementOptionFormatter({})}
|
|
@@ -245,7 +245,7 @@ export const SourceValueInput = observer(
|
|
|
245
245
|
value={value}
|
|
246
246
|
onChange={onChange}
|
|
247
247
|
onBlur={onBlur}
|
|
248
|
-
placeholder=
|
|
248
|
+
placeholder="Source value"
|
|
249
249
|
type={inputType}
|
|
250
250
|
/>
|
|
251
251
|
<div className="enumeration-mapping-editor__enum-value__source-value__info">
|
|
@@ -259,7 +259,7 @@ export const SourceValueInput = observer(
|
|
|
259
259
|
disabled={isReadOnly}
|
|
260
260
|
onClick={deleteSourceValue}
|
|
261
261
|
tabIndex={-1}
|
|
262
|
-
title=
|
|
262
|
+
title="Remove"
|
|
263
263
|
>
|
|
264
264
|
<TimesIcon />
|
|
265
265
|
</button>
|
|
@@ -297,7 +297,7 @@ const EnumValueMappingEditor = observer(
|
|
|
297
297
|
disabled={isReadOnly}
|
|
298
298
|
onClick={addSourceValue}
|
|
299
299
|
tabIndex={-1}
|
|
300
|
-
title=
|
|
300
|
+
title="Add enum value"
|
|
301
301
|
>
|
|
302
302
|
<PlusIcon />
|
|
303
303
|
</button>
|
|
@@ -368,7 +368,7 @@ export const EnumerationMappingEditor = observer(
|
|
|
368
368
|
const handleDrop = useCallback(
|
|
369
369
|
(item: MappingElementSourceDropTarget): void => {
|
|
370
370
|
if (!isReadOnly && item.data.packageableElement instanceof Type) {
|
|
371
|
-
|
|
371
|
+
enumerationMapping_updateSourceType(
|
|
372
372
|
enumerationMapping,
|
|
373
373
|
PackageableElementExplicitReference.create(
|
|
374
374
|
item.data.packageableElement,
|
|
@@ -513,7 +513,7 @@ export const EnumerationMappingEditor = observer(
|
|
|
513
513
|
onClick={showSourceSelectorModal}
|
|
514
514
|
disabled={isReadOnly}
|
|
515
515
|
tabIndex={-1}
|
|
516
|
-
title=
|
|
516
|
+
title="Select a source..."
|
|
517
517
|
>
|
|
518
518
|
<PencilIcon />
|
|
519
519
|
</button>
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
EnumerationMappingExplicitReference,
|
|
47
47
|
} from '@finos/legend-graph';
|
|
48
48
|
import { StudioLambdaEditor } from '../../../shared/StudioLambdaEditor.js';
|
|
49
|
-
import { flatDataPropertyMapping_setTransformer } from '../../../../stores/
|
|
49
|
+
import { flatDataPropertyMapping_setTransformer } from '../../../../stores/shared/modifier/STO_FlatData_GraphModifierHelper.js';
|
|
50
50
|
import {
|
|
51
51
|
CLASS_PROPERTY_TYPE,
|
|
52
52
|
getClassPropertyType,
|
|
@@ -194,13 +194,13 @@ const EnumerationPropertyMappingEditor = observer(
|
|
|
194
194
|
options={options}
|
|
195
195
|
onChange={handleSelectionChange}
|
|
196
196
|
value={{ value: transformerLabel, label: transformerLabel }}
|
|
197
|
-
placeholder=
|
|
197
|
+
placeholder="Select an existing enumeration mapping"
|
|
198
198
|
/>
|
|
199
199
|
<button
|
|
200
200
|
className="property-mapping-editor__entry__visit-btn"
|
|
201
201
|
onClick={visit}
|
|
202
202
|
tabIndex={-1}
|
|
203
|
-
title=
|
|
203
|
+
title="Visit enumeration mapping"
|
|
204
204
|
>
|
|
205
205
|
<ArrowCircleRightIcon />
|
|
206
206
|
</button>
|
|
@@ -312,7 +312,7 @@ export const FlatDataPropertyMappingEditor = observer(
|
|
|
312
312
|
// className="property-mapping-editor__entry--embedded__visit-btn"
|
|
313
313
|
// onClick={visitEmbeddedPropertyMapping}
|
|
314
314
|
// tabIndex={-1}
|
|
315
|
-
// title=
|
|
315
|
+
// title="Create mapping element"
|
|
316
316
|
// ><ArrowCircleRightIcon /></button>
|
|
317
317
|
// {`to visit the embedded class mapping for property '${flatDataPropertyMappingState.propertyMapping.property.name}'.`}
|
|
318
318
|
// </div>
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js';
|
|
52
52
|
import { TypeTree } from '../../../shared/TypeTree.js';
|
|
53
53
|
import { FlatDataRecordTypeTree } from './FlatDataRecordTypeTree.js';
|
|
54
|
-
import {
|
|
54
|
+
import { PropertyMappingEditor } from './PropertyMappingsEditor.js';
|
|
55
55
|
import { useDrop } from 'react-dnd';
|
|
56
56
|
import { FlatDataInstanceSetImplementationState } from '../../../../stores/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.js';
|
|
57
57
|
import { MappingElementDecorationCleaner } from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementDecorator.js';
|
|
@@ -540,7 +540,7 @@ export const InstanceSetImplementationEditor = observer(
|
|
|
540
540
|
{!isReadOnly &&
|
|
541
541
|
!isUnsupported &&
|
|
542
542
|
sortedProperties.map((property) => (
|
|
543
|
-
<
|
|
543
|
+
<PropertyMappingEditor
|
|
544
544
|
key={property.name}
|
|
545
545
|
property={property}
|
|
546
546
|
instanceSetImplementationState={
|
|
@@ -562,7 +562,7 @@ export const InstanceSetImplementationEditor = observer(
|
|
|
562
562
|
).length,
|
|
563
563
|
)
|
|
564
564
|
.map((property) => (
|
|
565
|
-
<
|
|
565
|
+
<PropertyMappingEditor
|
|
566
566
|
key={property.name}
|
|
567
567
|
property={property}
|
|
568
568
|
instanceSetImplementationState={
|
|
@@ -68,34 +68,6 @@ export interface MappingElementSourceSelectOption {
|
|
|
68
68
|
value: unknown;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
const getMappingSourcePackageableElementOptionFormatter = (props: {
|
|
72
|
-
darkMode?: boolean;
|
|
73
|
-
}): ((option: MappingElementSourceSelectOption) => React.ReactNode) =>
|
|
74
|
-
function MappingSourceOptionLabel(
|
|
75
|
-
option: MappingElementSourceSelectOption,
|
|
76
|
-
): React.ReactNode {
|
|
77
|
-
if (option.value instanceof PackageableElement) {
|
|
78
|
-
return getPackageableElementOptionFormatter(props)(
|
|
79
|
-
buildElementOption(option.value),
|
|
80
|
-
);
|
|
81
|
-
} else if (option.value instanceof TableAlias) {
|
|
82
|
-
const tableOwner = option.value.relation.ownerReference;
|
|
83
|
-
return getPackageableElementOptionFormatter(props)(
|
|
84
|
-
buildElementOption(tableOwner.value),
|
|
85
|
-
);
|
|
86
|
-
} else {
|
|
87
|
-
const className = props.darkMode
|
|
88
|
-
? 'packageable-element-format-option-label--dark'
|
|
89
|
-
: 'packageable-element-format-option-label';
|
|
90
|
-
return (
|
|
91
|
-
<div className={className}>
|
|
92
|
-
<div className="packageable-element-format-option-label-type"></div>
|
|
93
|
-
<div className={`${className}__name`}>{option.label}</div>
|
|
94
|
-
</div>
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
|
|
99
71
|
export const getSourceElementLabel = (
|
|
100
72
|
srcElement: unknown | undefined,
|
|
101
73
|
): string => {
|
|
@@ -183,11 +155,21 @@ export const InstanceSetImplementationSourceSelectorModal = observer(
|
|
|
183
155
|
}),
|
|
184
156
|
)
|
|
185
157
|
.map(buildMappingElementSourceOption);
|
|
186
|
-
const
|
|
158
|
+
const sourceFilterOption = createFilter({
|
|
187
159
|
ignoreCase: true,
|
|
188
160
|
ignoreAccents: false,
|
|
189
161
|
stringify: getMappingElementSourceFilterText,
|
|
190
162
|
});
|
|
163
|
+
const formatSourceOptionLabel = (
|
|
164
|
+
option: MappingElementSourceSelectOption,
|
|
165
|
+
): React.ReactNode => {
|
|
166
|
+
if (option.value instanceof PackageableElement) {
|
|
167
|
+
return getPackageableElementOptionFormatter({})(
|
|
168
|
+
buildElementOption(option.value),
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
return <div className="mapping-source-option-label">{option.label}</div>;
|
|
172
|
+
};
|
|
191
173
|
const sourceSelectorRef = useRef<SelectComponent>(null);
|
|
192
174
|
const selectedSourceType = buildMappingElementSourceOption(
|
|
193
175
|
sourceElementToSelect ??
|
|
@@ -234,10 +216,8 @@ export const InstanceSetImplementationSourceSelectorModal = observer(
|
|
|
234
216
|
value={selectedSourceType}
|
|
235
217
|
placeholder={`Select a source...`}
|
|
236
218
|
isClearable={true}
|
|
237
|
-
filterOption={
|
|
238
|
-
formatOptionLabel={
|
|
239
|
-
{},
|
|
240
|
-
)}
|
|
219
|
+
filterOption={sourceFilterOption}
|
|
220
|
+
formatOptionLabel={formatSourceOptionLabel}
|
|
241
221
|
/>
|
|
242
222
|
</div>
|
|
243
223
|
</Dialog>
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
PURE_EnumerationIcon,
|
|
34
34
|
PURE_AssociationIcon,
|
|
35
35
|
Panel,
|
|
36
|
+
useResizeDetector,
|
|
36
37
|
} from '@finos/legend-art';
|
|
37
38
|
import { ClassMappingEditor } from './ClassMappingEditor.js';
|
|
38
39
|
import { EnumerationMappingEditor } from './EnumerationMappingEditor.js';
|
|
39
|
-
import { useResizeDetector } from 'react-resize-detector';
|
|
40
40
|
import {
|
|
41
41
|
type MappingEditorTabState,
|
|
42
42
|
type MappingElement,
|
|
@@ -329,7 +329,7 @@ export const MappingEditor = observer(() => {
|
|
|
329
329
|
className="mapping-editor__header__tab__close-btn"
|
|
330
330
|
onClick={closeTab(tabState)}
|
|
331
331
|
tabIndex={-1}
|
|
332
|
-
title=
|
|
332
|
+
title="Close"
|
|
333
333
|
>
|
|
334
334
|
<TimesIcon />
|
|
335
335
|
</button>
|
|
@@ -80,12 +80,12 @@ import {
|
|
|
80
80
|
isStubbed_RawLambda,
|
|
81
81
|
} from '@finos/legend-graph';
|
|
82
82
|
import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js';
|
|
83
|
-
import { objectInputData_setData } from '../../../../stores/
|
|
84
|
-
import { flatData_setData } from '../../../../stores/
|
|
83
|
+
import { objectInputData_setData } from '../../../../stores/shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
84
|
+
import { flatData_setData } from '../../../../stores/shared/modifier/STO_FlatData_GraphModifierHelper.js';
|
|
85
85
|
import {
|
|
86
86
|
relationalInputData_setData,
|
|
87
87
|
relationalInputData_setInputType,
|
|
88
|
-
} from '../../../../stores/
|
|
88
|
+
} from '../../../../stores/shared/modifier/STO_Relational_GraphModifierHelper.js';
|
|
89
89
|
import { MappingExecutionQueryBuilderState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js';
|
|
90
90
|
import type { QueryBuilderState } from '@finos/legend-query-builder';
|
|
91
91
|
|
|
@@ -153,7 +153,7 @@ export const ClassMappingSelectorModal = observer(
|
|
|
153
153
|
options={classMappingOptions}
|
|
154
154
|
onChange={changeClassMappingOption}
|
|
155
155
|
value={null}
|
|
156
|
-
placeholder=
|
|
156
|
+
placeholder="Choose a class mapping..."
|
|
157
157
|
filterOption={filterOption}
|
|
158
158
|
isClearable={true}
|
|
159
159
|
/>
|
|
@@ -376,7 +376,7 @@ const MappingExecutionQueryEditor = observer(
|
|
|
376
376
|
className="panel__header__action"
|
|
377
377
|
tabIndex={-1}
|
|
378
378
|
onClick={clearQuery}
|
|
379
|
-
title=
|
|
379
|
+
title="Clear query"
|
|
380
380
|
>
|
|
381
381
|
<TimesIcon />
|
|
382
382
|
</button>
|
|
@@ -681,7 +681,7 @@ export const MappingExecutionInputDataBuilder = observer(
|
|
|
681
681
|
className="panel__header__action"
|
|
682
682
|
tabIndex={-1}
|
|
683
683
|
onClick={showClassMappingSelectorModal}
|
|
684
|
-
title=
|
|
684
|
+
title="Regenerate..."
|
|
685
685
|
>
|
|
686
686
|
<RefreshIcon className="mapping-execution-builder__icon--refresh" />
|
|
687
687
|
</button>
|
|
@@ -689,7 +689,7 @@ export const MappingExecutionInputDataBuilder = observer(
|
|
|
689
689
|
className="panel__header__action"
|
|
690
690
|
tabIndex={-1}
|
|
691
691
|
onClick={clearInputData}
|
|
692
|
-
title=
|
|
692
|
+
title="Clear input data"
|
|
693
693
|
>
|
|
694
694
|
<TimesIcon />
|
|
695
695
|
</button>
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
PureInstanceSetImplementationFilterState,
|
|
69
69
|
PureInstanceSetImplementationState,
|
|
70
70
|
} from '../../../../stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.js';
|
|
71
|
-
import { pureInstanceSetImpl_setMappingFilter } from '../../../../stores/
|
|
71
|
+
import { pureInstanceSetImpl_setMappingFilter } from '../../../../stores/shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
72
72
|
|
|
73
73
|
export const MappingExplorerContextMenu = observer(
|
|
74
74
|
forwardRef<
|
|
@@ -524,7 +524,7 @@ export const MappingExplorer = observer((props: { isReadOnly: boolean }) => {
|
|
|
524
524
|
onClick={openNewMapingModal}
|
|
525
525
|
disabled={isReadOnly}
|
|
526
526
|
tabIndex={-1}
|
|
527
|
-
title=
|
|
527
|
+
title="Create new mapping element"
|
|
528
528
|
>
|
|
529
529
|
<PlusIcon />
|
|
530
530
|
</button>
|