@finos/legend-application-studio 18.0.1 → 18.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/LegendStudio.d.ts.map +1 -1
- package/lib/application/LegendStudio.js +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.js +10 -10
- 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 +14 -14
- 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 +59 -51
- 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 +58 -24
- 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.js +4 -4
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js +8 -8
- 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 +7 -4
- 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 +3 -2
- package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js +9 -3
- 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 +20 -9
- 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.js +1 -1
- 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 -7
- package/lib/stores/shared/modifier/DSL_Mapping_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/{graphModifier → shared/modifier}/DSL_Mapping_GraphModifierHelper.js +15 -16
- 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 +12 -12
- 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 +27 -27
- 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 +199 -206
- 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 +250 -86
- 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 +6 -6
- package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +11 -11
- 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 +9 -5
- 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 +15 -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 +18 -10
- 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 +1 -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 +15 -20
- 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
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { useEffect } from 'react';
|
|
18
|
-
import { Switch, Route } from 'react-router';
|
|
19
18
|
import { WorkspaceSetup } from './workspace-setup/WorkspaceSetup.js';
|
|
20
19
|
import { Editor } from './editor/Editor.js';
|
|
21
20
|
import { WorkspaceReview } from './workspace-review/WorkspaceReview.js';
|
|
@@ -41,6 +40,8 @@ import { GraphManagerStateProvider } from '@finos/legend-graph';
|
|
|
41
40
|
import {
|
|
42
41
|
generateExtensionUrlPattern,
|
|
43
42
|
LegendApplicationComponentFrameworkProvider,
|
|
43
|
+
Route,
|
|
44
|
+
Switch,
|
|
44
45
|
useApplicationStore,
|
|
45
46
|
VirtualAssistant,
|
|
46
47
|
} from '@finos/legend-application';
|
|
@@ -50,7 +51,7 @@ import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../stores/LegendStudioDocumenta
|
|
|
50
51
|
const LegendStudioNotFoundRouteScreen = observer(() => {
|
|
51
52
|
const applicationStore = useApplicationStore();
|
|
52
53
|
|
|
53
|
-
const currentPath = applicationStore.navigator.
|
|
54
|
+
const currentPath = applicationStore.navigator.getCurrentLocation();
|
|
54
55
|
|
|
55
56
|
const documentation = applicationStore.documentationService.getDocEntry(
|
|
56
57
|
LEGEND_STUDIO_DOCUMENTATION_KEY.NOT_FOUND_HELP,
|
|
@@ -86,7 +87,7 @@ const LegendStudioNotFoundRouteScreen = observer(() => {
|
|
|
86
87
|
<div className="not-found-screen__text-content__detail">
|
|
87
88
|
The requested URL
|
|
88
89
|
<span className="not-found-screen__text-content__detail__url">
|
|
89
|
-
{applicationStore.navigator.
|
|
90
|
+
{applicationStore.navigator.generateAddress(currentPath)}
|
|
90
91
|
</span>
|
|
91
92
|
was not found in the application
|
|
92
93
|
</div>
|
|
@@ -87,15 +87,13 @@ export const ActivityBarMenu: React.FC = () => {
|
|
|
87
87
|
// documentation
|
|
88
88
|
const goToDocumentation = (): void => {
|
|
89
89
|
if (appDocUrl) {
|
|
90
|
-
applicationStore.navigator.
|
|
90
|
+
applicationStore.navigator.visitAddress(appDocUrl);
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
// go to setup page
|
|
94
|
-
const
|
|
95
|
-
applicationStore.navigator.
|
|
96
|
-
applicationStore.navigator.
|
|
97
|
-
generateSetupRoute(undefined),
|
|
98
|
-
),
|
|
94
|
+
const goToWorkspaceSetup = (): void =>
|
|
95
|
+
applicationStore.navigator.visitAddress(
|
|
96
|
+
applicationStore.navigator.generateAddress(generateSetupRoute(undefined)),
|
|
99
97
|
);
|
|
100
98
|
// help
|
|
101
99
|
const openHelp = (): void => {
|
|
@@ -142,9 +140,9 @@ export const ActivityBarMenu: React.FC = () => {
|
|
|
142
140
|
<MenuContentDivider />
|
|
143
141
|
<MenuContentItem
|
|
144
142
|
className="app__header__menu__item"
|
|
145
|
-
onClick={
|
|
143
|
+
onClick={goToWorkspaceSetup}
|
|
146
144
|
>
|
|
147
|
-
Back to
|
|
145
|
+
Back to workspace setup
|
|
148
146
|
</MenuContentItem>
|
|
149
147
|
</MenuContent>
|
|
150
148
|
}
|
|
@@ -14,20 +14,17 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { Fragment,
|
|
17
|
+
import { Fragment, useEffect } from 'react';
|
|
18
18
|
import { observer } from 'mobx-react-lite';
|
|
19
|
-
import { useResizeDetector } from 'react-resize-detector';
|
|
20
|
-
import type { Location } from 'history';
|
|
21
19
|
import {
|
|
22
20
|
type ResizablePanelHandlerProps,
|
|
23
|
-
Backdrop,
|
|
24
21
|
buildReactHotkeysConfiguration,
|
|
25
22
|
getControlledResizablePanelProps,
|
|
26
23
|
ResizablePanel,
|
|
27
24
|
ResizablePanelGroup,
|
|
28
25
|
ResizablePanelSplitter,
|
|
29
26
|
ResizablePanelSplitterLine,
|
|
30
|
-
|
|
27
|
+
useResizeDetector,
|
|
31
28
|
} from '@finos/legend-art';
|
|
32
29
|
import { AuxiliaryPanel } from './aux-panel/AuxiliaryPanel.js';
|
|
33
30
|
import { SideBar } from './side-bar/SideBar.js';
|
|
@@ -36,7 +33,6 @@ import { GlobalHotKeys } from 'react-hotkeys';
|
|
|
36
33
|
import { GrammarTextEditor } from './edit-panel/GrammarTextEditor.js';
|
|
37
34
|
import { StatusBar } from './StatusBar.js';
|
|
38
35
|
import { ActivityBar } from './ActivityBar.js';
|
|
39
|
-
import { useParams, Prompt } from 'react-router';
|
|
40
36
|
import type {
|
|
41
37
|
EditorPathParams,
|
|
42
38
|
GroupEditorPathParams,
|
|
@@ -46,10 +42,9 @@ import { isNonNullable } from '@finos/legend-shared';
|
|
|
46
42
|
import { flowResult } from 'mobx';
|
|
47
43
|
import { useEditorStore, withEditorStore } from './EditorStoreProvider.js';
|
|
48
44
|
import {
|
|
49
|
-
ActionAlertType,
|
|
50
|
-
ActionAlertActionType,
|
|
51
45
|
useApplicationStore,
|
|
52
46
|
useApplicationNavigationContext,
|
|
47
|
+
useParams,
|
|
53
48
|
} from '@finos/legend-application';
|
|
54
49
|
import { WorkspaceType } from '@finos/legend-server-sdlc';
|
|
55
50
|
import { WorkspaceSyncConflictResolver } from './side-bar/WorkspaceSyncConflictResolver.js';
|
|
@@ -120,111 +115,85 @@ export const Editor = withEditorStore(
|
|
|
120
115
|
).catch(applicationStore.alertUnhandledError);
|
|
121
116
|
}, [editorStore, applicationStore, projectId, workspaceId, workspaceType]);
|
|
122
117
|
|
|
123
|
-
// Browser Navigation Blocking (reload, close tab, go to another URL)
|
|
124
|
-
// NOTE: there is no way to customize the alert message for now since Chrome removed support for it
|
|
125
|
-
// See https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload#Browser_compatibility
|
|
126
|
-
// There is also no way to customize this modal style-wise so we would only be able to do so for route navigation blocking
|
|
127
|
-
// See https://medium.com/@jozollo/blocking-navigation-with-react-router-v4-a3f2e359d096
|
|
128
118
|
useEffect(() => {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
* NOTE: one subtle trick here. Since we have to use `useEffect` to set the event listener for `beforeunload` event,
|
|
132
|
-
* we have to be be careful, if we extract `editorStore.ignoreNavigationBlock` out to a variable such as `ignoreNavigationBlock`
|
|
133
|
-
* and then make this `useEffect` be called in response to that, there is a chance that if we set `editorStore.ignoreNavigationBlock`
|
|
134
|
-
* to `true` and then go on to call systematic refresh (i.e. `window.location.reload()`) immediately, the event listener on window will
|
|
135
|
-
* become stale and still show the blocking popup.
|
|
136
|
-
*
|
|
137
|
-
* This is almost guaranteed to happen as `useEffect` occurs after rendering, and thus will defnitely be called after the immediate
|
|
138
|
-
* `window.location.reload()`. As such, the best way is instead of expecting `useEffect` to watch out for the change in `ignoreNavigationBlock`
|
|
139
|
-
* we will access the value of `ignoreNavigationBlock` in the body of the `onUnload` function to make it more dynamic. This ensures the
|
|
140
|
-
* event listener will never go stale
|
|
141
|
-
*/
|
|
142
|
-
const showAlert =
|
|
119
|
+
applicationStore.navigator.blockPlatformNavigation([
|
|
120
|
+
(): boolean =>
|
|
143
121
|
editorStore.isInConflictResolutionMode ||
|
|
144
|
-
editorStore.hasUnpushedChanges
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
122
|
+
editorStore.localChangesState.hasUnpushedChanges,
|
|
123
|
+
]);
|
|
124
|
+
return (): void => {
|
|
125
|
+
applicationStore.navigator.unblockPlatformNavigation();
|
|
148
126
|
};
|
|
149
|
-
|
|
150
|
-
window.addEventListener('beforeunload', onUnload);
|
|
151
|
-
return (): void => window.removeEventListener('beforeunload', onUnload);
|
|
152
|
-
}, [editorStore]);
|
|
127
|
+
}, [editorStore, applicationStore]);
|
|
153
128
|
|
|
154
129
|
// Route Navigation Blocking
|
|
155
130
|
// See https://medium.com/@michaelchan_13570/using-react-router-v4-prompt-with-custom-modal-component-ca839f5faf39
|
|
156
|
-
const [blockedLocation, setBlockedLocation] = useState<
|
|
157
|
-
|
|
158
|
-
>();
|
|
159
|
-
const retryBlockedLocation = useCallback(
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
);
|
|
167
|
-
// NOTE: we have to use `useStateWithCallback` here because we want to guarantee that we call `history.push(blockedLocation.pathname)`
|
|
168
|
-
// after confirmedAllowNavigation is flipped, otherwise we would end up in the `false` case of handleBlockedNavigation again!
|
|
169
|
-
// Another way to go about this is to use `setTimeout(() => history.push(...), 0)` but it can potentially be more error-prone
|
|
170
|
-
// See https://www.robinwieruch.de/react-usestate-callback
|
|
171
|
-
const [confirmedAllowNavigation, setConfirmedAllowNavigation] =
|
|
172
|
-
|
|
173
|
-
const onNavigationChangeIndicator = Boolean(
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
);
|
|
177
|
-
const handleRouteNavigationBlocking = (nextLocation: Location): boolean => {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
};
|
|
131
|
+
// const [blockedLocation, setBlockedLocation] = useState<
|
|
132
|
+
// Location | undefined
|
|
133
|
+
// >();
|
|
134
|
+
// const retryBlockedLocation = useCallback(
|
|
135
|
+
// (allowedNavigation: boolean): void => {
|
|
136
|
+
// if (allowedNavigation && blockedLocation) {
|
|
137
|
+
// applicationStore.navigator.goToLocation(blockedLocation.pathname);
|
|
138
|
+
// }
|
|
139
|
+
// },
|
|
140
|
+
// [blockedLocation, applicationStore],
|
|
141
|
+
// );
|
|
142
|
+
// // NOTE: we have to use `useStateWithCallback` here because we want to guarantee that we call `history.push(blockedLocation.pathname)`
|
|
143
|
+
// // after confirmedAllowNavigation is flipped, otherwise we would end up in the `false` case of handleBlockedNavigation again!
|
|
144
|
+
// // Another way to go about this is to use `setTimeout(() => history.push(...), 0)` but it can potentially be more error-prone
|
|
145
|
+
// // See https://www.robinwieruch.de/react-usestate-callback
|
|
146
|
+
// const [confirmedAllowNavigation, setConfirmedAllowNavigation] =
|
|
147
|
+
// useStateWithCallback<boolean>(false, retryBlockedLocation);
|
|
148
|
+
// const onNavigationChangeIndicator = Boolean(
|
|
149
|
+
// editorStore.changeDetectionState.workspaceLocalLatestRevisionState.changes
|
|
150
|
+
// .length,
|
|
151
|
+
// );
|
|
152
|
+
// const handleRouteNavigationBlocking = (nextLocation: Location): boolean => {
|
|
153
|
+
// // NOTE: as long as we're in conflict resolution, we want this block to be present
|
|
154
|
+
// const showAlert =
|
|
155
|
+
// editorStore.isInConflictResolutionMode ||
|
|
156
|
+
// editorStore.hasUnpushedChanges;
|
|
157
|
+
// if (
|
|
158
|
+
// !editorStore.ignoreNavigationBlocking &&
|
|
159
|
+
// !confirmedAllowNavigation &&
|
|
160
|
+
// showAlert
|
|
161
|
+
// ) {
|
|
162
|
+
// editorStore.setActionAlertInfo({
|
|
163
|
+
// message: editorStore.isInConflictResolutionMode
|
|
164
|
+
// ? 'You have not accepted the conflict resolution, the current resolution will be discarded. Leave anyway?'
|
|
165
|
+
// : 'You have unpushed changes. Leave anyway?',
|
|
166
|
+
// type: ActionAlertType.CAUTION,
|
|
167
|
+
// onEnter: (): void => editorStore.setBlockGlobalHotkeys(true),
|
|
168
|
+
// onClose: (): void => editorStore.setBlockGlobalHotkeys(false),
|
|
169
|
+
// actions: [
|
|
170
|
+
// {
|
|
171
|
+
// label: 'Leave this page',
|
|
172
|
+
// type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
|
173
|
+
// handler: (): void => setConfirmedAllowNavigation(true),
|
|
174
|
+
// },
|
|
175
|
+
// {
|
|
176
|
+
// label: 'Stay on this page',
|
|
177
|
+
// type: ActionAlertActionType.PROCEED,
|
|
178
|
+
// default: true,
|
|
179
|
+
// handler: (): void => setBlockedLocation(undefined),
|
|
180
|
+
// },
|
|
181
|
+
// ],
|
|
182
|
+
// });
|
|
183
|
+
// setBlockedLocation(nextLocation);
|
|
184
|
+
// return false;
|
|
185
|
+
// }
|
|
186
|
+
// // Reset the confirm flag and the blocked location here
|
|
187
|
+
// setBlockedLocation(undefined);
|
|
188
|
+
// setConfirmedAllowNavigation(false);
|
|
189
|
+
// return true;
|
|
190
|
+
// };
|
|
216
191
|
const editable =
|
|
217
192
|
editorStore.graphManagerState.graphBuildState.hasCompleted &&
|
|
218
193
|
editorStore.isInitialized;
|
|
219
194
|
const isResolvingConflicts =
|
|
220
195
|
editorStore.isInConflictResolutionMode &&
|
|
221
196
|
!editorStore.conflictResolutionState.hasResolvedAllConflicts;
|
|
222
|
-
const promptComponent = (
|
|
223
|
-
<Prompt
|
|
224
|
-
when={onNavigationChangeIndicator}
|
|
225
|
-
message={handleRouteNavigationBlocking}
|
|
226
|
-
/>
|
|
227
|
-
);
|
|
228
197
|
|
|
229
198
|
useApplicationNavigationContext(
|
|
230
199
|
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.EDITOR,
|
|
@@ -233,7 +202,6 @@ export const Editor = withEditorStore(
|
|
|
233
202
|
return (
|
|
234
203
|
<div className="app__page">
|
|
235
204
|
<div className="editor">
|
|
236
|
-
{promptComponent}
|
|
237
205
|
<GlobalHotKeys
|
|
238
206
|
keyMap={hotkeyMapping}
|
|
239
207
|
handlers={hotkeyHandlers}
|
|
@@ -241,7 +209,6 @@ export const Editor = withEditorStore(
|
|
|
241
209
|
>
|
|
242
210
|
<div className="editor__body">
|
|
243
211
|
<ActivityBar />
|
|
244
|
-
<Backdrop className="backdrop" open={editorStore.backdrop} />
|
|
245
212
|
<div ref={ref} className="editor__content-container">
|
|
246
213
|
<div className="editor__content">
|
|
247
214
|
<ResizablePanelGroup orientation="vertical">
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { observer } from 'mobx-react-lite';
|
|
18
|
-
import { useParams } from 'react-router';
|
|
19
|
-
import { Link } from 'react-router-dom';
|
|
20
18
|
import {
|
|
21
19
|
clsx,
|
|
22
20
|
HammerIcon,
|
|
@@ -40,6 +38,7 @@ import { flowResult } from 'mobx';
|
|
|
40
38
|
import { useEditorStore } from './EditorStoreProvider.js';
|
|
41
39
|
import { WorkspaceType } from '@finos/legend-server-sdlc';
|
|
42
40
|
import { useLegendStudioApplicationStore } from '../LegendStudioBaseStoreProvider.js';
|
|
41
|
+
import { useParams } from '@finos/legend-application';
|
|
43
42
|
|
|
44
43
|
export const StatusBar = observer((props: { actionsDisabled: boolean }) => {
|
|
45
44
|
const { actionsDisabled } = props;
|
|
@@ -151,19 +150,31 @@ export const StatusBar = observer((props: { actionsDisabled: boolean }) => {
|
|
|
151
150
|
<div className="editor__status-bar__workspace__icon">
|
|
152
151
|
<CodeBranchIcon />
|
|
153
152
|
</div>
|
|
154
|
-
<
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
153
|
+
<button
|
|
154
|
+
className="editor__status-bar__workspace__project"
|
|
155
|
+
title="Go back to workspace setup using the specified project"
|
|
156
|
+
tabIndex={-1}
|
|
157
|
+
onClick={(): void =>
|
|
158
|
+
applicationStore.navigator.goToLocation(
|
|
159
|
+
generateSetupRoute(projectId),
|
|
160
|
+
)
|
|
161
|
+
}
|
|
162
|
+
>
|
|
163
|
+
{currentProject?.name ?? 'unknown'}
|
|
164
|
+
</button>
|
|
159
165
|
/
|
|
160
|
-
<
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
<button
|
|
167
|
+
className="editor__status-bar__workspace__workspace"
|
|
168
|
+
title="Go back to workspace setup using the specified workspace"
|
|
169
|
+
tabIndex={-1}
|
|
170
|
+
onClick={(): void =>
|
|
171
|
+
applicationStore.navigator.goToLocation(
|
|
172
|
+
generateSetupRoute(projectId, workspaceId, workspaceType),
|
|
173
|
+
)
|
|
174
|
+
}
|
|
175
|
+
>
|
|
176
|
+
{workspaceId}
|
|
177
|
+
</button>
|
|
167
178
|
{workspaceOutOfSync && (
|
|
168
179
|
<button
|
|
169
180
|
className="editor__status-bar__workspace__status"
|
|
@@ -106,7 +106,7 @@ export const AuxiliaryPanel = observer(() => {
|
|
|
106
106
|
className="auxiliary-panel__header__action"
|
|
107
107
|
onClick={toggleExpandAuxPanel}
|
|
108
108
|
tabIndex={-1}
|
|
109
|
-
title=
|
|
109
|
+
title="Toggle expand/collapse"
|
|
110
110
|
>
|
|
111
111
|
{editorStore.auxPanelDisplayState.isMaximized ? (
|
|
112
112
|
<ChevronDownIcon />
|
|
@@ -118,7 +118,7 @@ export const AuxiliaryPanel = observer(() => {
|
|
|
118
118
|
className="auxiliary-panel__header__action"
|
|
119
119
|
onClick={closePanel}
|
|
120
120
|
tabIndex={-1}
|
|
121
|
-
title=
|
|
121
|
+
title="Close"
|
|
122
122
|
>
|
|
123
123
|
<XIcon />
|
|
124
124
|
</button>
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
TimesIcon,
|
|
26
26
|
PlusIcon,
|
|
27
27
|
ArrowsAltHIcon,
|
|
28
|
+
useResizeDetector,
|
|
28
29
|
} from '@finos/legend-art';
|
|
29
30
|
import { MappingEditor } from './mapping-editor/MappingEditor.js';
|
|
30
31
|
import { UMLEditor } from './uml-editor/UMLEditor.js';
|
|
@@ -33,7 +34,6 @@ import { UMLEditorState } from '../../../stores/editor-state/element-editor-stat
|
|
|
33
34
|
import { ElementEditorState } from '../../../stores/editor-state/element-editor-state/ElementEditorState.js';
|
|
34
35
|
import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID.js';
|
|
35
36
|
import { ELEMENT_NATIVE_VIEW_MODE } from '../../../stores/EditorConfig.js';
|
|
36
|
-
import { useResizeDetector } from 'react-resize-detector';
|
|
37
37
|
import type { EditorState } from '../../../stores/editor-state/EditorState.js';
|
|
38
38
|
import {
|
|
39
39
|
DIFF_VIEW_MODE,
|
|
@@ -429,7 +429,7 @@ export const EditPanel = observer(() => {
|
|
|
429
429
|
className="edit-panel__header__tab__close-btn"
|
|
430
430
|
onClick={closeTab(editorState)}
|
|
431
431
|
tabIndex={-1}
|
|
432
|
-
title=
|
|
432
|
+
title="Close"
|
|
433
433
|
>
|
|
434
434
|
<TimesIcon />
|
|
435
435
|
</button>
|
|
@@ -94,12 +94,12 @@ import {
|
|
|
94
94
|
annotatedElement_deleteStereotype,
|
|
95
95
|
annotatedElement_deleteTaggedValue,
|
|
96
96
|
function_swapParameters,
|
|
97
|
-
} from '../../../stores/
|
|
97
|
+
} from '../../../stores/shared/modifier/DomainGraphModifierHelper.js';
|
|
98
98
|
import {
|
|
99
99
|
rawVariableExpression_setMultiplicity,
|
|
100
100
|
rawVariableExpression_setName,
|
|
101
101
|
rawVariableExpression_setType,
|
|
102
|
-
} from '../../../stores/
|
|
102
|
+
} from '../../../stores/shared/modifier/RawValueSpecificationGraphModifierHelper.js';
|
|
103
103
|
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../stores/LegendStudioApplicationNavigationContext.js';
|
|
104
104
|
|
|
105
105
|
enum FUNCTION_PARAMETER_TYPE {
|
|
@@ -267,7 +267,7 @@ const ParameterBasicEditor = observer(
|
|
|
267
267
|
value={parameter.name}
|
|
268
268
|
spellCheck={false}
|
|
269
269
|
onChange={changeValue}
|
|
270
|
-
placeholder=
|
|
270
|
+
placeholder="Parameter name"
|
|
271
271
|
/>
|
|
272
272
|
{!isReadOnly && isEditingType && (
|
|
273
273
|
<CustomSelectorInput
|
|
@@ -275,7 +275,7 @@ const ParameterBasicEditor = observer(
|
|
|
275
275
|
options={typeOptions}
|
|
276
276
|
onChange={changeType}
|
|
277
277
|
value={selectedType}
|
|
278
|
-
placeholder=
|
|
278
|
+
placeholder="Choose a type..."
|
|
279
279
|
filterOption={filterOption}
|
|
280
280
|
/>
|
|
281
281
|
)}
|
|
@@ -311,7 +311,7 @@ const ParameterBasicEditor = observer(
|
|
|
311
311
|
className="property-basic-editor__type__visit-btn"
|
|
312
312
|
onClick={openElement}
|
|
313
313
|
tabIndex={-1}
|
|
314
|
-
title=
|
|
314
|
+
title="Visit element"
|
|
315
315
|
>
|
|
316
316
|
<ArrowCircleRightIcon />
|
|
317
317
|
</button>
|
|
@@ -343,7 +343,7 @@ const ParameterBasicEditor = observer(
|
|
|
343
343
|
className="property-basic-editor__type__visit-btn"
|
|
344
344
|
onClick={openElement}
|
|
345
345
|
tabIndex={-1}
|
|
346
|
-
title=
|
|
346
|
+
title="Visit element"
|
|
347
347
|
>
|
|
348
348
|
<ArrowCircleRightIcon />
|
|
349
349
|
</button>
|
|
@@ -375,7 +375,7 @@ const ParameterBasicEditor = observer(
|
|
|
375
375
|
disabled={isReadOnly}
|
|
376
376
|
onClick={deleteParameter}
|
|
377
377
|
tabIndex={-1}
|
|
378
|
-
title=
|
|
378
|
+
title="Remove"
|
|
379
379
|
>
|
|
380
380
|
<TimesIcon />
|
|
381
381
|
</button>
|
|
@@ -469,7 +469,7 @@ const ReturnTypeEditor = observer(
|
|
|
469
469
|
options={typeOptions}
|
|
470
470
|
onChange={changeType}
|
|
471
471
|
value={selectedType}
|
|
472
|
-
placeholder=
|
|
472
|
+
placeholder="Choose a type..."
|
|
473
473
|
filterOption={filterOption}
|
|
474
474
|
/>
|
|
475
475
|
)}
|
|
@@ -505,7 +505,7 @@ const ReturnTypeEditor = observer(
|
|
|
505
505
|
className="property-basic-editor__type__visit-btn"
|
|
506
506
|
onClick={openElement}
|
|
507
507
|
tabIndex={-1}
|
|
508
|
-
title=
|
|
508
|
+
title="Visit element"
|
|
509
509
|
>
|
|
510
510
|
<ArrowCircleRightIcon />
|
|
511
511
|
</button>
|
|
@@ -537,7 +537,7 @@ const ReturnTypeEditor = observer(
|
|
|
537
537
|
className="property-basic-editor__type__visit-btn"
|
|
538
538
|
onClick={openElement}
|
|
539
539
|
tabIndex={-1}
|
|
540
|
-
title=
|
|
540
|
+
title="Visit element"
|
|
541
541
|
>
|
|
542
542
|
<ArrowCircleRightIcon />
|
|
543
543
|
</button>
|
|
@@ -637,7 +637,7 @@ export const FunctionMainEditor = observer(
|
|
|
637
637
|
disabled={isReadOnly}
|
|
638
638
|
onClick={addParameter}
|
|
639
639
|
tabIndex={-1}
|
|
640
|
-
title=
|
|
640
|
+
title="Add Parameter"
|
|
641
641
|
>
|
|
642
642
|
<PlusIcon />
|
|
643
643
|
</button>
|
|
@@ -686,7 +686,7 @@ export const FunctionMainEditor = observer(
|
|
|
686
686
|
})}
|
|
687
687
|
>
|
|
688
688
|
<StudioLambdaEditor
|
|
689
|
-
className=
|
|
689
|
+
className="function-editor__element__lambda-editor"
|
|
690
690
|
disabled={
|
|
691
691
|
lambdaEditorState.isConvertingFunctionBodyToString || isReadOnly
|
|
692
692
|
}
|
|
@@ -67,12 +67,12 @@ import {
|
|
|
67
67
|
useApplicationStore,
|
|
68
68
|
type PackageableElementOption,
|
|
69
69
|
} from '@finos/legend-application';
|
|
70
|
-
import { packageableElementReference_setValue } from '../../../stores/
|
|
70
|
+
import { packageableElementReference_setValue } from '../../../stores/shared/modifier/DomainGraphModifierHelper.js';
|
|
71
71
|
import {
|
|
72
72
|
generationSpecification_addFileGeneration,
|
|
73
73
|
generationSpecification_deleteFileGeneration,
|
|
74
74
|
generationSpecification_setId,
|
|
75
|
-
} from '../../../stores/
|
|
75
|
+
} from '../../../stores/shared/modifier/DSL_Generation_GraphModifierHelper.js';
|
|
76
76
|
|
|
77
77
|
const GENERATION_SPEC_NODE_DND_TYPE = 'GENERATION_SPEC_NODE';
|
|
78
78
|
|
|
@@ -207,7 +207,7 @@ const ModelGenerationItem = observer(
|
|
|
207
207
|
className="btn--dark btn--sm"
|
|
208
208
|
onClick={visitModelGeneration}
|
|
209
209
|
tabIndex={-1}
|
|
210
|
-
title=
|
|
210
|
+
title="See mapping"
|
|
211
211
|
>
|
|
212
212
|
<LongArrowRightIcon />
|
|
213
213
|
</button>
|
|
@@ -215,7 +215,7 @@ const ModelGenerationItem = observer(
|
|
|
215
215
|
className="generation-spec-model-generation-editor__item__remove-btn"
|
|
216
216
|
onClick={deleteNode}
|
|
217
217
|
tabIndex={-1}
|
|
218
|
-
title=
|
|
218
|
+
title="Remove"
|
|
219
219
|
>
|
|
220
220
|
<TimesIcon />
|
|
221
221
|
</button>
|
|
@@ -384,7 +384,7 @@ const FileGenerationItem = observer(
|
|
|
384
384
|
className="btn--dark btn--sm"
|
|
385
385
|
onClick={visitFileGen}
|
|
386
386
|
tabIndex={-1}
|
|
387
|
-
title=
|
|
387
|
+
title="See mapping"
|
|
388
388
|
>
|
|
389
389
|
<LongArrowRightIcon />
|
|
390
390
|
</button>
|
|
@@ -392,7 +392,7 @@ const FileGenerationItem = observer(
|
|
|
392
392
|
className="generation-spec-file-generation-editor__item__remove-btn"
|
|
393
393
|
onClick={deleteColumnSort}
|
|
394
394
|
tabIndex={-1}
|
|
395
|
-
title=
|
|
395
|
+
title="Remove"
|
|
396
396
|
>
|
|
397
397
|
<TimesIcon />
|
|
398
398
|
</button>
|
|
@@ -542,7 +542,7 @@ export const GenerationSpecificationEditor = observer(() => {
|
|
|
542
542
|
)}
|
|
543
543
|
tabIndex={-1}
|
|
544
544
|
onClick={generate}
|
|
545
|
-
title=
|
|
545
|
+
title="Generate"
|
|
546
546
|
>
|
|
547
547
|
<FireIcon />
|
|
548
548
|
</button>
|
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
MoreHorizontalIcon,
|
|
38
38
|
HackerIcon,
|
|
39
39
|
PanelContent,
|
|
40
|
+
useResizeDetector,
|
|
40
41
|
} from '@finos/legend-art';
|
|
41
42
|
import {
|
|
42
43
|
TAB_SIZE,
|
|
@@ -46,7 +47,6 @@ import {
|
|
|
46
47
|
type DocumentationEntry,
|
|
47
48
|
useApplicationNavigationContext,
|
|
48
49
|
} from '@finos/legend-application';
|
|
49
|
-
import { useResizeDetector } from 'react-resize-detector';
|
|
50
50
|
import {
|
|
51
51
|
type ElementDragSource,
|
|
52
52
|
CORE_DND_TYPE,
|
|
@@ -151,7 +151,7 @@ export const ModelImporter = observer(() => {
|
|
|
151
151
|
const label = modelImporterState.modelImportEditorState.label;
|
|
152
152
|
const modelImportEditorState = modelImporterState.modelImportEditorState;
|
|
153
153
|
const loadModel = (): void => {
|
|
154
|
-
if (editorStore.hasUnpushedChanges) {
|
|
154
|
+
if (editorStore.localChangesState.hasUnpushedChanges) {
|
|
155
155
|
editorStore.setActionAlertInfo({
|
|
156
156
|
message: 'You have unpushed changes',
|
|
157
157
|
prompt:
|
|
@@ -164,10 +164,9 @@ export const ModelImporter = observer(() => {
|
|
|
164
164
|
label: 'Proceed to load model',
|
|
165
165
|
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
|
166
166
|
handler: (): void => {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
).catch(applicationStore.alertUnhandledError);
|
|
167
|
+
modelImporterState.modelImportEditorState
|
|
168
|
+
.loadModel()
|
|
169
|
+
.catch(applicationStore.alertUnhandledError);
|
|
171
170
|
},
|
|
172
171
|
},
|
|
173
172
|
{
|
|
@@ -178,9 +177,9 @@ export const ModelImporter = observer(() => {
|
|
|
178
177
|
],
|
|
179
178
|
});
|
|
180
179
|
} else {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
180
|
+
modelImporterState.modelImportEditorState
|
|
181
|
+
.loadModel()
|
|
182
|
+
.catch(applicationStore.alertUnhandledError);
|
|
184
183
|
}
|
|
185
184
|
};
|
|
186
185
|
useApplicationNavigationContext(
|
|
@@ -104,7 +104,7 @@ import type { DSL_Mapping_LegendStudioApplicationPlugin_Extension } from '../../
|
|
|
104
104
|
import {
|
|
105
105
|
runtime_addIdentifiedConnection,
|
|
106
106
|
runtime_deleteIdentifiedConnection,
|
|
107
|
-
} from '../../../stores/
|
|
107
|
+
} from '../../../stores/shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
108
108
|
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../stores/LegendStudioApplicationNavigationContext.js';
|
|
109
109
|
|
|
110
110
|
const getConnectionTooltipText = (
|
|
@@ -607,7 +607,7 @@ const IdentifiedConnectionEditor = observer(
|
|
|
607
607
|
className="btn--dark btn--sm runtime-connection-editor__connection-option__visit-btn"
|
|
608
608
|
onClick={visitConnection}
|
|
609
609
|
tabIndex={-1}
|
|
610
|
-
title=
|
|
610
|
+
title="See connection"
|
|
611
611
|
>
|
|
612
612
|
<LongArrowRightIcon />
|
|
613
613
|
</button>
|
|
@@ -32,7 +32,7 @@ import type { DSL_Mapping_LegendStudioApplicationPlugin_Extension } from '../../
|
|
|
32
32
|
import {
|
|
33
33
|
modelConnection_setClass,
|
|
34
34
|
modelConnection_setUrl,
|
|
35
|
-
} from '../../../../stores/
|
|
35
|
+
} from '../../../../stores/shared/modifier/DSL_Mapping_GraphModifierHelper.js';
|
|
36
36
|
import {
|
|
37
37
|
buildElementOption,
|
|
38
38
|
useApplicationNavigationContext,
|