@finos/legend-application-studio 16.0.1 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/LegendStudioApplicationConfig.d.ts +4 -3
- package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.js +9 -3
- package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
- package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/EditorComponentTestUtils.js +2 -2
- package/lib/components/EditorComponentTestUtils.js.map +1 -1
- package/lib/components/EmbeddedQueryBuilder.d.ts.map +1 -1
- package/lib/components/EmbeddedQueryBuilder.js +2 -6
- package/lib/components/EmbeddedQueryBuilder.js.map +1 -1
- package/lib/components/LegendStudioApplication.js +1 -1
- package/lib/components/LegendStudioApplication.js.map +1 -1
- package/lib/components/LegendStudioBaseStoreProvider.d.ts +0 -2
- package/lib/components/LegendStudioBaseStoreProvider.d.ts.map +1 -1
- package/lib/components/LegendStudioBaseStoreProvider.js +2 -2
- package/lib/components/LegendStudioBaseStoreProvider.js.map +1 -1
- package/lib/components/editor/EditorStoreProvider.d.ts.map +1 -1
- package/lib/components/editor/EditorStoreProvider.js +2 -3
- package/lib/components/editor/EditorStoreProvider.js.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.js +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js +1 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.js +4 -4
- package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.js +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js +19 -4
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js +6 -6
- 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 +1 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/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.d.ts +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js +2 -2
- package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/BindingElementEditor.js +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/BindingElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.js +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js +2 -2
- 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 +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +2 -5
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js +2 -5
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js +2 -2
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js +2 -2
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +3 -2
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/NewServiceModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/NewServiceModal.js +1 -1
- package/lib/components/editor/edit-panel/service-editor/NewServiceModal.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +1 -4
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.js +8 -8
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js +2 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js +2 -2
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js +2 -2
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js +1 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.js +1 -1
- package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.js.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.js +5 -2
- package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +4 -4
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.js +1 -1
- package/lib/components/editor/side-bar/LocalChanges.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.js +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts.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/shared/ElementIconUtils.js +1 -1
- package/lib/components/shared/ElementIconUtils.js.map +1 -1
- package/lib/components/{workspace-setup/ProjectSelector.d.ts → shared/ProjectSelectorUtils.d.ts} +9 -7
- package/lib/components/shared/ProjectSelectorUtils.d.ts.map +1 -0
- package/lib/components/shared/ProjectSelectorUtils.js +28 -0
- package/lib/components/shared/ProjectSelectorUtils.js.map +1 -0
- package/lib/components/shared/TypeTree.js +2 -2
- package/lib/components/shared/TypeTree.js.map +1 -1
- package/lib/components/{workspace-setup/WorkspaceSetupStoreProvider.d.ts → shared/WorkspaceSelectorUtils.d.ts} +8 -8
- package/lib/components/shared/WorkspaceSelectorUtils.d.ts.map +1 -0
- package/lib/components/shared/WorkspaceSelectorUtils.js +24 -0
- package/lib/components/shared/WorkspaceSelectorUtils.js.map +1 -0
- package/lib/components/workspace-setup/{ProjectCreateModal.d.ts → CreateProjectModal.d.ts} +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -0
- package/lib/components/workspace-setup/{ProjectCreateModal.js → CreateProjectModal.js} +4 -4
- package/lib/components/workspace-setup/{ProjectCreateModal.js.map → CreateProjectModal.js.map} +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts +22 -0
- package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -0
- package/lib/components/workspace-setup/CreateWorkspaceModal.js +67 -0
- package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -0
- package/lib/components/workspace-setup/WorkspaceSetup.d.ts +2 -0
- package/lib/components/workspace-setup/WorkspaceSetup.d.ts.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.js +96 -115
- 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 +9 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -7
- package/lib/index.js.map +1 -1
- package/lib/package.json +4 -4
- package/lib/stores/{DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.d.ts → DSLGeneration_LegendStudioApplicationPlugin_Extension.d.ts} +5 -2
- package/lib/stores/DSLGeneration_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -0
- package/lib/stores/{DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.js → DSLGeneration_LegendStudioApplicationPlugin_Extension.js} +1 -1
- package/lib/stores/DSLGeneration_LegendStudioApplicationPlugin_Extension.js.map +1 -0
- package/lib/stores/EditorGraphState.d.ts +1 -1
- package/lib/stores/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.js +3 -2
- package/lib/stores/EditorGraphState.js.map +1 -1
- package/lib/stores/EditorStore.d.ts +6 -8
- package/lib/stores/EditorStore.d.ts.map +1 -1
- package/lib/stores/EditorStore.js +39 -13
- package/lib/stores/EditorStore.js.map +1 -1
- package/lib/stores/EditorStoreTestUtils.d.ts.map +1 -1
- package/lib/stores/EditorStoreTestUtils.js +1 -1
- package/lib/stores/EditorStoreTestUtils.js.map +1 -1
- package/lib/stores/ExplorerTreeState.d.ts +2 -2
- package/lib/stores/ExplorerTreeState.d.ts.map +1 -1
- package/lib/stores/ExplorerTreeState.js +2 -2
- package/lib/stores/ExplorerTreeState.js.map +1 -1
- package/lib/stores/LegendStudioAppEvent.d.ts.map +1 -1
- package/lib/stores/LegendStudioAppEvent.js +2 -0
- package/lib/stores/LegendStudioAppEvent.js.map +1 -1
- package/lib/stores/LegendStudioBaseStore.d.ts +2 -3
- package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendStudioBaseStore.js +7 -2
- 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.d.ts.map +1 -1
- package/lib/stores/editor/NewElementState.js +5 -2
- package/lib/stores/editor/NewElementState.js.map +1 -1
- package/lib/stores/editor-state/FileGenerationState.d.ts +1 -1
- package/lib/stores/editor-state/FileGenerationState.d.ts.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/FileGenerationViewerState.d.ts +1 -1
- package/lib/stores/editor-state/FileGenerationViewerState.d.ts.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.d.ts +1 -1
- package/lib/stores/editor-state/GraphGenerationState.d.ts.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.js +2 -2
- package/lib/stores/editor-state/GraphGenerationState.js.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js +3 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/RuntimeEditorState.d.ts +1 -1
- package/lib/stores/editor-state/element-editor-state/RuntimeEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +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 +2 -2
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -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 +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts +5 -8
- 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 +15 -20
- 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/graphModifier/DSLMapping_GraphModifierHelper.js +1 -1
- package/lib/stores/graphModifier/DSLMapping_GraphModifierHelper.js.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts +1 -2
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js +2 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
- package/lib/stores/shared/{DnDUtil.d.ts → DnDUtils.d.ts} +2 -2
- package/lib/stores/shared/DnDUtils.d.ts.map +1 -0
- package/lib/stores/shared/{DnDUtil.js → DnDUtils.js} +1 -1
- package/lib/stores/shared/DnDUtils.js.map +1 -0
- package/lib/stores/shared/{FileGenerationTreeUtil.d.ts → FileGenerationTreeUtils.d.ts} +1 -1
- package/lib/stores/shared/FileGenerationTreeUtils.d.ts.map +1 -0
- package/lib/stores/shared/{FileGenerationTreeUtil.js → FileGenerationTreeUtils.js} +1 -1
- package/lib/stores/shared/FileGenerationTreeUtils.js.map +1 -0
- package/lib/stores/shared/{MockDataUtil.d.ts → MockDataUtils.d.ts} +1 -1
- package/lib/stores/shared/MockDataUtils.d.ts.map +1 -0
- package/lib/stores/shared/{MockDataUtil.js → MockDataUtils.js} +2 -2
- package/lib/stores/shared/MockDataUtils.js.map +1 -0
- package/lib/stores/shared/{ModelUtil.d.ts → ModelClassifierUtils.d.ts} +1 -1
- package/lib/stores/shared/ModelClassifierUtils.d.ts.map +1 -0
- package/lib/stores/shared/{ModelUtil.js → ModelClassifierUtils.js} +1 -1
- package/lib/stores/shared/ModelClassifierUtils.js.map +1 -0
- package/lib/stores/shared/{PackageTreeUtil.d.ts → PackageTreeUtils.d.ts} +2 -2
- package/lib/stores/shared/PackageTreeUtils.d.ts.map +1 -0
- package/lib/stores/shared/{PackageTreeUtil.js → PackageTreeUtils.js} +2 -2
- package/lib/stores/shared/PackageTreeUtils.js.map +1 -0
- package/lib/stores/shared/{TreeUtil.d.ts → TreeUtils.d.ts} +2 -2
- package/lib/stores/shared/TreeUtils.d.ts.map +1 -0
- package/lib/stores/shared/{TreeUtil.js → TreeUtils.js} +1 -1
- package/lib/stores/shared/TreeUtils.js.map +1 -0
- package/lib/stores/shared/testable/TestableUtils.js +1 -1
- package/lib/stores/shared/testable/TestableUtils.js.map +1 -1
- package/lib/stores/workspace-setup/WorkspaceSetupStore.d.ts +18 -33
- package/lib/stores/workspace-setup/WorkspaceSetupStore.d.ts.map +1 -1
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js +137 -133
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js.map +1 -1
- package/package.json +13 -13
- package/src/application/LegendStudioApplicationConfig.ts +12 -5
- package/src/components/EditorComponentTestUtils.tsx +1 -6
- package/src/components/EmbeddedQueryBuilder.tsx +2 -8
- package/src/components/LegendStudioApplication.tsx +1 -1
- package/src/components/LegendStudioBaseStoreProvider.tsx +2 -5
- package/src/components/editor/EditorStoreProvider.tsx +1 -6
- package/src/components/editor/edit-panel/FunctionEditor.tsx +1 -1
- package/src/components/editor/edit-panel/GenerationSpecificationEditor.tsx +5 -5
- package/src/components/editor/edit-panel/GrammarTextEditor.tsx +4 -4
- package/src/components/editor/edit-panel/RuntimeEditor.tsx +2 -2
- package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +31 -3
- package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +16 -11
- package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +1 -1
- package/src/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.tsx +2 -3
- package/src/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.tsx +4 -4
- package/src/components/editor/edit-panel/external-format-editor/BindingElementEditor.tsx +1 -1
- package/src/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.tsx +0 -1
- package/src/components/editor/edit-panel/mapping-editor/ClassMappingEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.tsx +2 -2
- package/src/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.tsx +2 -2
- package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +2 -14
- package/src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +1 -9
- package/src/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/NewMappingElementModal.tsx +2 -6
- package/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.tsx +2 -2
- package/src/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.tsx +1 -1
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +5 -5
- package/src/components/editor/edit-panel/service-editor/NewServiceModal.tsx +2 -3
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +1 -1
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +1 -8
- package/src/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.tsx +15 -10
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.tsx +1 -1
- package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +2 -2
- package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +2 -2
- package/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx +1 -1
- package/src/components/editor/edit-panel/uml-editor/PropertyEditor.tsx +1 -1
- package/src/components/editor/side-bar/CreateNewElementModal.tsx +5 -2
- package/src/components/editor/side-bar/Explorer.tsx +5 -5
- package/src/components/editor/side-bar/LocalChanges.tsx +1 -1
- package/src/components/editor/side-bar/WorkspaceReview.tsx +1 -1
- package/src/components/editor/side-bar/WorkspaceSyncConflictResolver.tsx +2 -8
- package/src/components/shared/ElementIconUtils.tsx +1 -1
- package/src/components/shared/ProjectSelectorUtils.tsx +63 -0
- package/src/components/shared/TypeTree.tsx +3 -3
- package/src/components/shared/WorkspaceSelectorUtils.tsx +45 -0
- package/src/components/workspace-setup/{ProjectCreateModal.tsx → CreateProjectModal.tsx} +7 -3
- package/src/components/workspace-setup/CreateWorkspaceModal.tsx +178 -0
- package/src/components/workspace-setup/WorkspaceSetup.tsx +300 -346
- package/src/index.ts +9 -9
- package/src/stores/{DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.ts → DSLGeneration_LegendStudioApplicationPlugin_Extension.ts} +4 -1
- package/src/stores/EditorGraphState.ts +2 -3
- package/src/stores/EditorStore.ts +52 -19
- package/src/stores/EditorStoreTestUtils.ts +0 -1
- package/src/stores/ExplorerTreeState.ts +3 -3
- package/src/stores/LegendStudioAppEvent.ts +3 -0
- package/src/stores/LegendStudioBaseStore.ts +7 -4
- package/src/stores/LegendStudioRouter.ts +1 -1
- package/src/stores/editor/NewElementState.ts +5 -1
- package/src/stores/editor-state/FileGenerationState.ts +1 -1
- package/src/stores/editor-state/FileGenerationViewerState.ts +1 -1
- package/src/stores/editor-state/GraphGenerationState.ts +6 -6
- package/src/stores/editor-state/ProjectConfigurationEditorState.ts +2 -1
- package/src/stores/editor-state/element-editor-state/RuntimeEditorState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts +2 -2
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +1 -2
- package/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +33 -32
- package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +1 -1
- package/src/stores/graphModifier/DSLMapping_GraphModifierHelper.ts +1 -1
- package/src/stores/project-viewer/ProjectViewerStore.ts +6 -6
- package/src/stores/shared/{DnDUtil.ts → DnDUtils.ts} +1 -1
- package/src/stores/shared/{FileGenerationTreeUtil.ts → FileGenerationTreeUtils.ts} +0 -0
- package/src/stores/shared/{MockDataUtil.ts → MockDataUtils.ts} +4 -1
- package/src/stores/shared/{ModelUtil.ts → ModelClassifierUtils.ts} +0 -0
- package/src/stores/shared/{PackageTreeUtil.ts → PackageTreeUtils.ts} +2 -2
- package/src/stores/shared/{TreeUtil.ts → TreeUtils.ts} +1 -1
- package/src/stores/shared/testable/TestableUtils.ts +1 -1
- package/src/stores/workspace-setup/WorkspaceSetupStore.ts +208 -190
- package/tsconfig.json +12 -12
- package/lib/components/workspace-setup/ProjectCreateModal.d.ts.map +0 -1
- package/lib/components/workspace-setup/ProjectSelector.d.ts.map +0 -1
- package/lib/components/workspace-setup/ProjectSelector.js +0 -65
- package/lib/components/workspace-setup/ProjectSelector.js.map +0 -1
- package/lib/components/workspace-setup/WorkspaceSelector.d.ts +0 -22
- package/lib/components/workspace-setup/WorkspaceSelector.d.ts.map +0 -1
- package/lib/components/workspace-setup/WorkspaceSelector.js +0 -57
- package/lib/components/workspace-setup/WorkspaceSelector.js.map +0 -1
- package/lib/components/workspace-setup/WorkspaceSetupStoreProvider.d.ts.map +0 -1
- package/lib/components/workspace-setup/WorkspaceSetupStoreProvider.js +0 -34
- package/lib/components/workspace-setup/WorkspaceSetupStoreProvider.js.map +0 -1
- package/lib/stores/DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.d.ts.map +0 -1
- package/lib/stores/DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.js.map +0 -1
- package/lib/stores/shared/DnDUtil.d.ts.map +0 -1
- package/lib/stores/shared/DnDUtil.js.map +0 -1
- package/lib/stores/shared/FileGenerationTreeUtil.d.ts.map +0 -1
- package/lib/stores/shared/FileGenerationTreeUtil.js.map +0 -1
- package/lib/stores/shared/MockDataUtil.d.ts.map +0 -1
- package/lib/stores/shared/MockDataUtil.js.map +0 -1
- package/lib/stores/shared/ModelUtil.d.ts.map +0 -1
- package/lib/stores/shared/ModelUtil.js.map +0 -1
- package/lib/stores/shared/PackageTreeUtil.d.ts.map +0 -1
- package/lib/stores/shared/PackageTreeUtil.js.map +0 -1
- package/lib/stores/shared/TreeUtil.d.ts.map +0 -1
- package/lib/stores/shared/TreeUtil.js.map +0 -1
- package/src/components/workspace-setup/ProjectSelector.tsx +0 -148
- package/src/components/workspace-setup/WorkspaceSelector.tsx +0 -135
- package/src/components/workspace-setup/WorkspaceSetupStoreProvider.tsx +0 -56
|
@@ -34,14 +34,14 @@ import {
|
|
|
34
34
|
type LegendApplicationConfigurationData,
|
|
35
35
|
} from '@finos/legend-application';
|
|
36
36
|
|
|
37
|
-
export class
|
|
37
|
+
export class ServiceRegistrationEnvironmentConfig {
|
|
38
38
|
env!: string;
|
|
39
39
|
executionUrl!: string;
|
|
40
40
|
modes: string[] = [];
|
|
41
41
|
managementUrl!: string;
|
|
42
42
|
|
|
43
43
|
static readonly serialization = new SerializationFactory(
|
|
44
|
-
createModelSchema(
|
|
44
|
+
createModelSchema(ServiceRegistrationEnvironmentConfig, {
|
|
45
45
|
env: primitive(),
|
|
46
46
|
executionUrl: primitive(),
|
|
47
47
|
managementUrl: primitive(),
|
|
@@ -51,6 +51,7 @@ export class ServiceRegistrationEnvInfo {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
class LegendStudioApplicationCoreOptions {
|
|
54
|
+
projectCreationGroupIdSuggestion = 'org.finos.legend.*';
|
|
54
55
|
/**
|
|
55
56
|
* Indicates if we should keep section index and do not rewrite/flatten the paths shortened by section
|
|
56
57
|
* imports.
|
|
@@ -68,13 +69,15 @@ class LegendStudioApplicationCoreOptions {
|
|
|
68
69
|
* @modularize
|
|
69
70
|
* See https://github.com/finos/legend-studio/issues/65
|
|
70
71
|
*/
|
|
71
|
-
TEMPORARY__serviceRegistrationConfig:
|
|
72
|
+
TEMPORARY__serviceRegistrationConfig: ServiceRegistrationEnvironmentConfig[] =
|
|
73
|
+
[];
|
|
72
74
|
|
|
73
75
|
private static readonly serialization = new SerializationFactory(
|
|
74
76
|
createModelSchema(LegendStudioApplicationCoreOptions, {
|
|
77
|
+
projectCreationGroupIdSuggestion: optional(primitive()),
|
|
75
78
|
TEMPORARY__preserveSectionIndex: optional(primitive()),
|
|
76
79
|
TEMPORARY__serviceRegistrationConfig: list(
|
|
77
|
-
object(
|
|
80
|
+
object(ServiceRegistrationEnvironmentConfig),
|
|
78
81
|
),
|
|
79
82
|
}),
|
|
80
83
|
);
|
|
@@ -111,6 +114,7 @@ export class LegendStudioApplicationConfig extends LegendApplicationConfig {
|
|
|
111
114
|
) {
|
|
112
115
|
super(input);
|
|
113
116
|
|
|
117
|
+
// engine
|
|
114
118
|
assertNonNullable(
|
|
115
119
|
input.configData.engine,
|
|
116
120
|
`Can't configure application: 'engine' field is missing`,
|
|
@@ -119,8 +123,9 @@ export class LegendStudioApplicationConfig extends LegendApplicationConfig {
|
|
|
119
123
|
input.configData.engine.url,
|
|
120
124
|
`Can't configure application: 'engine.url' field is missing or empty`,
|
|
121
125
|
);
|
|
122
|
-
|
|
123
126
|
this.engineQueryServerUrl = input.configData.engine.queryUrl;
|
|
127
|
+
|
|
128
|
+
// depot
|
|
124
129
|
assertNonNullable(
|
|
125
130
|
input.configData.depot,
|
|
126
131
|
`Can't configure application: 'depot' field is missing`,
|
|
@@ -130,6 +135,7 @@ export class LegendStudioApplicationConfig extends LegendApplicationConfig {
|
|
|
130
135
|
`Can't configure application: 'depot.url' field is missing or empty`,
|
|
131
136
|
);
|
|
132
137
|
|
|
138
|
+
// sdlc
|
|
133
139
|
assertNonNullable(
|
|
134
140
|
input.configData.sdlc,
|
|
135
141
|
`Can't configure application: 'sdlc' field is missing`,
|
|
@@ -140,6 +146,7 @@ export class LegendStudioApplicationConfig extends LegendApplicationConfig {
|
|
|
140
146
|
);
|
|
141
147
|
this.SDLCServerBaseHeaders = input.configData.sdlc.baseHeaders;
|
|
142
148
|
|
|
149
|
+
// options
|
|
143
150
|
this.options = LegendStudioApplicationCoreOptions.create(
|
|
144
151
|
(input.configData.extensions?.core ??
|
|
145
152
|
{}) as PlainObject<LegendStudioApplicationCoreOptions>,
|
|
@@ -134,11 +134,7 @@ export const TEST_DATA__DefaultDepotInfo = {
|
|
|
134
134
|
export const TEST__LegendStudioBaseStoreProvider: React.FC<{
|
|
135
135
|
children: React.ReactNode;
|
|
136
136
|
}> = ({ children }) => (
|
|
137
|
-
<LegendStudioBaseStoreProvider
|
|
138
|
-
pluginManager={LegendStudioPluginManager.create()}
|
|
139
|
-
>
|
|
140
|
-
{children}
|
|
141
|
-
</LegendStudioBaseStoreProvider>
|
|
137
|
+
<LegendStudioBaseStoreProvider>{children}</LegendStudioBaseStoreProvider>
|
|
142
138
|
);
|
|
143
139
|
|
|
144
140
|
export const TEST__provideMockedEditorStore = (customization?: {
|
|
@@ -163,7 +159,6 @@ export const TEST__provideMockedEditorStore = (customization?: {
|
|
|
163
159
|
customization?.depotServerClient ?? TEST__getTestDepotServerClient(),
|
|
164
160
|
customization?.graphManagerState ??
|
|
165
161
|
TEST__getTestGraphManagerState(customization?.pluginManager),
|
|
166
|
-
pluginManager,
|
|
167
162
|
);
|
|
168
163
|
const MockedEditorStoreProvider = require('./editor/EditorStoreProvider.js'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment
|
|
169
164
|
MockedEditorStoreProvider.useEditorStore = jest.fn();
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
EmptyWindowRestoreIcon,
|
|
25
25
|
} from '@finos/legend-art';
|
|
26
26
|
import { flowResult } from 'mobx';
|
|
27
|
-
import {
|
|
27
|
+
import { noop } from '@finos/legend-shared';
|
|
28
28
|
import {
|
|
29
29
|
useApplicationNavigationContext,
|
|
30
30
|
ActionAlertActionType,
|
|
@@ -65,13 +65,7 @@ const QueryBuilderDialog = observer(
|
|
|
65
65
|
);
|
|
66
66
|
|
|
67
67
|
const confirmCloseQueryBuilder = (): void => {
|
|
68
|
-
|
|
69
|
-
// in the future, we could consider a similar approach to how we do change detection in Studio
|
|
70
|
-
if (
|
|
71
|
-
queryBuilderState.changeDetectionState.isEnabled &&
|
|
72
|
-
queryBuilderState.changeDetectionState.queryHashCode !==
|
|
73
|
-
hashObject(queryBuilderState.buildQuery())
|
|
74
|
-
) {
|
|
68
|
+
if (queryBuilderState.changeDetectionState.hasChanged) {
|
|
75
69
|
applicationStore.setActionAlertInfo({
|
|
76
70
|
message:
|
|
77
71
|
'Unsaved changes to your query will be lost if you continue. Do you still want to proceed?',
|
|
@@ -210,7 +210,7 @@ export const LegendStudioApplication = observer(
|
|
|
210
210
|
pluginManager={pluginManager}
|
|
211
211
|
log={applicationStore.log}
|
|
212
212
|
>
|
|
213
|
-
<LegendStudioBaseStoreProvider
|
|
213
|
+
<LegendStudioBaseStoreProvider>
|
|
214
214
|
<LegendApplicationComponentFrameworkProvider>
|
|
215
215
|
<LegendStudioApplicationRoot />
|
|
216
216
|
</LegendApplicationComponentFrameworkProvider>
|
|
@@ -26,13 +26,12 @@ import type { LegendStudioPluginManager } from '../application/LegendStudioPlugi
|
|
|
26
26
|
import { useLocalObservable } from 'mobx-react-lite';
|
|
27
27
|
import { useApplicationStore } from '@finos/legend-application';
|
|
28
28
|
import type { LegendStudioApplicationConfig } from '../application/LegendStudioApplicationConfig.js';
|
|
29
|
-
import type { LegendStudioApplicationPlugin } from '../stores/LegendStudioApplicationPlugin.js';
|
|
30
29
|
|
|
31
30
|
export const useLegendStudioApplicationStore =
|
|
32
31
|
(): LegendStudioApplicationStore =>
|
|
33
32
|
useApplicationStore<
|
|
34
33
|
LegendStudioApplicationConfig,
|
|
35
|
-
|
|
34
|
+
LegendStudioPluginManager
|
|
36
35
|
>();
|
|
37
36
|
|
|
38
37
|
const LegendStudioBaseStoreContext = createContext<
|
|
@@ -40,9 +39,8 @@ const LegendStudioBaseStoreContext = createContext<
|
|
|
40
39
|
>(undefined);
|
|
41
40
|
|
|
42
41
|
export const LegendStudioBaseStoreProvider: React.FC<{
|
|
43
|
-
pluginManager: LegendStudioPluginManager;
|
|
44
42
|
children: React.ReactNode;
|
|
45
|
-
}> = ({
|
|
43
|
+
}> = ({ children }) => {
|
|
46
44
|
const applicationStore = useLegendStudioApplicationStore();
|
|
47
45
|
const sdlcServerClient = useSDLCServerClient();
|
|
48
46
|
const depotServerClient = useDepotServerClient();
|
|
@@ -52,7 +50,6 @@ export const LegendStudioBaseStoreProvider: React.FC<{
|
|
|
52
50
|
applicationStore,
|
|
53
51
|
sdlcServerClient,
|
|
54
52
|
depotServerClient,
|
|
55
|
-
pluginManager,
|
|
56
53
|
),
|
|
57
54
|
);
|
|
58
55
|
return (
|
|
@@ -20,10 +20,7 @@ import { EditorStore } from '../../stores/EditorStore.js';
|
|
|
20
20
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
21
21
|
import { useSDLCServerClient } from '@finos/legend-server-sdlc';
|
|
22
22
|
import { useDepotServerClient } from '@finos/legend-server-depot';
|
|
23
|
-
import {
|
|
24
|
-
useLegendStudioApplicationStore,
|
|
25
|
-
useLegendStudioBaseStore,
|
|
26
|
-
} from '../LegendStudioBaseStoreProvider.js';
|
|
23
|
+
import { useLegendStudioApplicationStore } from '../LegendStudioBaseStoreProvider.js';
|
|
27
24
|
import { useGraphManagerState } from '@finos/legend-graph';
|
|
28
25
|
|
|
29
26
|
const EditorStoreContext = createContext<EditorStore | undefined>(undefined);
|
|
@@ -35,7 +32,6 @@ export const EditorStoreProvider: React.FC<{
|
|
|
35
32
|
const sdlcServerClient = useSDLCServerClient();
|
|
36
33
|
const depotServerClient = useDepotServerClient();
|
|
37
34
|
const graphManagerState = useGraphManagerState();
|
|
38
|
-
const baseStore = useLegendStudioBaseStore();
|
|
39
35
|
const store = useLocalObservable(
|
|
40
36
|
() =>
|
|
41
37
|
new EditorStore(
|
|
@@ -43,7 +39,6 @@ export const EditorStoreProvider: React.FC<{
|
|
|
43
39
|
sdlcServerClient,
|
|
44
40
|
depotServerClient,
|
|
45
41
|
graphManagerState,
|
|
46
|
-
baseStore.pluginManager,
|
|
47
42
|
),
|
|
48
43
|
);
|
|
49
44
|
return (
|
|
@@ -47,15 +47,15 @@ import {
|
|
|
47
47
|
CORE_DND_TYPE,
|
|
48
48
|
type ElementDragSource,
|
|
49
49
|
type FileGenerationSourceDropTarget,
|
|
50
|
-
} from '../../../stores/shared/
|
|
50
|
+
} from '../../../stores/shared/DnDUtils.js';
|
|
51
51
|
import { getNullableFirstElement } from '@finos/legend-shared';
|
|
52
|
-
import type {
|
|
52
|
+
import type { DSLGeneration_LegendStudioApplicationPlugin_Extension } from '../../../stores/DSLGeneration_LegendStudioApplicationPlugin_Extension.js';
|
|
53
53
|
import { flowResult } from 'mobx';
|
|
54
54
|
import { useEditorStore } from '../EditorStoreProvider.js';
|
|
55
55
|
import {
|
|
56
56
|
type PackageableElement,
|
|
57
57
|
type PackageableElementReference,
|
|
58
|
-
type
|
|
58
|
+
type DSLGeneration_PureGraphManagerPlugin_Extension,
|
|
59
59
|
FileGenerationSpecification,
|
|
60
60
|
PackageableElementExplicitReference,
|
|
61
61
|
GenerationTreeNode,
|
|
@@ -233,7 +233,7 @@ const ModelGenerationSpecifications = observer(
|
|
|
233
233
|
.flatMap(
|
|
234
234
|
(plugin) =>
|
|
235
235
|
(
|
|
236
|
-
plugin as
|
|
236
|
+
plugin as DSLGeneration_PureGraphManagerPlugin_Extension
|
|
237
237
|
).getExtraModelGenerationElementGetters?.() ?? [],
|
|
238
238
|
)
|
|
239
239
|
.flatMap((getter) => getter(editorStore.graphManagerState.graph));
|
|
@@ -243,7 +243,7 @@ const ModelGenerationSpecifications = observer(
|
|
|
243
243
|
.flatMap(
|
|
244
244
|
(plugin) =>
|
|
245
245
|
(
|
|
246
|
-
plugin as
|
|
246
|
+
plugin as DSLGeneration_LegendStudioApplicationPlugin_Extension
|
|
247
247
|
).getExtraModelGenerationSpecificationElementDnDTypes?.() ?? [],
|
|
248
248
|
);
|
|
249
249
|
const modelGenerationElementOptions =
|
|
@@ -49,7 +49,7 @@ import { useResizeDetector } from 'react-resize-detector';
|
|
|
49
49
|
import {
|
|
50
50
|
type ElementDragSource,
|
|
51
51
|
CORE_DND_TYPE,
|
|
52
|
-
} from '../../../stores/shared/
|
|
52
|
+
} from '../../../stores/shared/DnDUtils.js';
|
|
53
53
|
import { useDrop } from 'react-dnd';
|
|
54
54
|
import type {
|
|
55
55
|
DSL_LegendStudioApplicationPlugin_Extension,
|
|
@@ -838,7 +838,7 @@ export const GrammarTextEditor = observer(() => {
|
|
|
838
838
|
}, [editorStore, applicationStore, editor, grammarTextEditorState]);
|
|
839
839
|
|
|
840
840
|
// Drag and Drop
|
|
841
|
-
const
|
|
841
|
+
const extraElementDragTypes = editorStore.pluginManager
|
|
842
842
|
.getApplicationPlugins()
|
|
843
843
|
.flatMap(
|
|
844
844
|
(plugin) =>
|
|
@@ -859,7 +859,7 @@ export const GrammarTextEditor = observer(() => {
|
|
|
859
859
|
const [, dropConnector] = useDrop<ElementDragSource>(
|
|
860
860
|
() => ({
|
|
861
861
|
accept: [
|
|
862
|
-
...
|
|
862
|
+
...extraElementDragTypes,
|
|
863
863
|
CORE_DND_TYPE.PROJECT_EXPLORER_PACKAGE,
|
|
864
864
|
CORE_DND_TYPE.PROJECT_EXPLORER_CLASS,
|
|
865
865
|
CORE_DND_TYPE.PROJECT_EXPLORER_ASSOCIATION,
|
|
@@ -880,7 +880,7 @@ export const GrammarTextEditor = observer(() => {
|
|
|
880
880
|
|
|
881
881
|
drop: (item) => handleDrop(item),
|
|
882
882
|
}),
|
|
883
|
-
[
|
|
883
|
+
[extraElementDragTypes, handleDrop],
|
|
884
884
|
);
|
|
885
885
|
dropConnector(textEditorRef);
|
|
886
886
|
|
|
@@ -56,13 +56,13 @@ import {
|
|
|
56
56
|
PanelDropZone,
|
|
57
57
|
} from '@finos/legend-art';
|
|
58
58
|
import { getElementIcon } from '../../shared/ElementIconUtils.js';
|
|
59
|
-
import type { RuntimeExplorerTreeNodeData } from '../../../stores/shared/
|
|
59
|
+
import type { RuntimeExplorerTreeNodeData } from '../../../stores/shared/TreeUtils.js';
|
|
60
60
|
import { ConnectionEditor } from './connection-editor/ConnectionEditor.js';
|
|
61
61
|
import {
|
|
62
62
|
type UMLEditorElementDropTarget,
|
|
63
63
|
CORE_DND_TYPE,
|
|
64
64
|
ElementDragSource,
|
|
65
|
-
} from '../../../stores/shared/
|
|
65
|
+
} from '../../../stores/shared/DnDUtils.js';
|
|
66
66
|
import { useDrop } from 'react-dnd';
|
|
67
67
|
import {
|
|
68
68
|
assertErrorThrown,
|
package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx
CHANGED
|
@@ -48,6 +48,8 @@ import {
|
|
|
48
48
|
ResizablePanelSplitterLine,
|
|
49
49
|
PanelContent,
|
|
50
50
|
Panel,
|
|
51
|
+
Badge,
|
|
52
|
+
PanelListSelectorItemLabel,
|
|
51
53
|
} from '@finos/legend-art';
|
|
52
54
|
import { capitalize, prettyCONSTName } from '@finos/legend-shared';
|
|
53
55
|
|
|
@@ -1260,6 +1262,26 @@ const PostProcessorRelationalConnectionEditor = observer(
|
|
|
1260
1262
|
connectionValueState.selectPostProcessor(postProcessor);
|
|
1261
1263
|
};
|
|
1262
1264
|
|
|
1265
|
+
const getPostProcessorLabel = (postProcessor: PostProcessor): string => {
|
|
1266
|
+
if (postProcessor instanceof MapperPostProcessor) {
|
|
1267
|
+
return POST_PROCESSOR_TYPE.MAPPER;
|
|
1268
|
+
} else {
|
|
1269
|
+
const extraPostProcessorEditorClassifier = plugins.flatMap(
|
|
1270
|
+
(plugin) =>
|
|
1271
|
+
(
|
|
1272
|
+
plugin as StoreRelational_LegendStudioApplicationPlugin_Extension
|
|
1273
|
+
).getExtraPostProcessorClassifierGetters?.() ?? [],
|
|
1274
|
+
);
|
|
1275
|
+
for (const classify of extraPostProcessorEditorClassifier) {
|
|
1276
|
+
const label = classify(postProcessor);
|
|
1277
|
+
if (label) {
|
|
1278
|
+
return label;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
return 'unknown type';
|
|
1283
|
+
};
|
|
1284
|
+
|
|
1263
1285
|
return (
|
|
1264
1286
|
<div className="relational-connection-editor">
|
|
1265
1287
|
<ResizablePanelGroup orientation="horizontal">
|
|
@@ -1269,7 +1291,7 @@ const PostProcessorRelationalConnectionEditor = observer(
|
|
|
1269
1291
|
<ResizablePanel>
|
|
1270
1292
|
<div className="relational-connection-editor__content">
|
|
1271
1293
|
<ResizablePanelGroup orientation="vertical">
|
|
1272
|
-
<ResizablePanel size={
|
|
1294
|
+
<ResizablePanel size={200} minSize={100}>
|
|
1273
1295
|
<Panel>
|
|
1274
1296
|
<PanelHeader title="post-processor">
|
|
1275
1297
|
<DropdownMenu
|
|
@@ -1323,13 +1345,19 @@ const PostProcessorRelationalConnectionEditor = observer(
|
|
|
1323
1345
|
menuProps={{ elevation: 7 }}
|
|
1324
1346
|
>
|
|
1325
1347
|
<PanelListSelectorItem
|
|
1326
|
-
title={`Post-Processor ${idx + 1}`}
|
|
1327
1348
|
onSelect={() => selectPostProcessor(postProcessor)}
|
|
1328
1349
|
isSelected={
|
|
1329
1350
|
postProcessor ===
|
|
1330
1351
|
postProcessorState?.postProcessor
|
|
1331
1352
|
}
|
|
1332
|
-
|
|
1353
|
+
>
|
|
1354
|
+
<PanelListSelectorItemLabel
|
|
1355
|
+
title={`Post-Processor ${idx + 1}`}
|
|
1356
|
+
/>
|
|
1357
|
+
<Badge
|
|
1358
|
+
title={getPostProcessorLabel(postProcessor)}
|
|
1359
|
+
/>
|
|
1360
|
+
</PanelListSelectorItem>
|
|
1333
1361
|
</ContextMenu>
|
|
1334
1362
|
))}
|
|
1335
1363
|
</PanelContent>
|
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
Panel,
|
|
33
33
|
PanelHeader,
|
|
34
34
|
PanelContent,
|
|
35
|
+
PanelListSelectorItemLabel,
|
|
35
36
|
} from '@finos/legend-art';
|
|
36
37
|
import {
|
|
37
38
|
type Mapper,
|
|
@@ -181,21 +182,25 @@ export const MapperPostProcessorEditor = observer(
|
|
|
181
182
|
menuProps={{ elevation: 7 }}
|
|
182
183
|
>
|
|
183
184
|
<PanelListSelectorItem
|
|
184
|
-
|
|
185
|
-
mapper instanceof TableNameMapper
|
|
186
|
-
? 'Table Mapper'
|
|
187
|
-
: 'Schema Mapper'
|
|
188
|
-
}
|
|
189
|
-
validationErrorMessage={
|
|
190
|
-
isMapperDuplicated(mapper)
|
|
191
|
-
? 'Mappers have the same values'
|
|
192
|
-
: undefined
|
|
193
|
-
}
|
|
185
|
+
validationError={true}
|
|
194
186
|
isSelected={
|
|
195
187
|
mapper === postProcessorState.selectedMapper
|
|
196
188
|
}
|
|
197
189
|
onSelect={() => selectMapper(mapper)}
|
|
198
|
-
|
|
190
|
+
>
|
|
191
|
+
<PanelListSelectorItemLabel
|
|
192
|
+
title={
|
|
193
|
+
mapper instanceof TableNameMapper
|
|
194
|
+
? 'Table Mapper'
|
|
195
|
+
: 'Schema Mapper'
|
|
196
|
+
}
|
|
197
|
+
validationErrorMessage={
|
|
198
|
+
isMapperDuplicated(mapper)
|
|
199
|
+
? 'Mappers have the same values'
|
|
200
|
+
: undefined
|
|
201
|
+
}
|
|
202
|
+
/>
|
|
203
|
+
</PanelListSelectorItem>
|
|
199
204
|
</ContextMenu>
|
|
200
205
|
))}
|
|
201
206
|
</PanelContent>{' '}
|
package/src/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.tsx
CHANGED
|
@@ -105,7 +105,7 @@ const NewFileGenerationModal = observer(
|
|
|
105
105
|
<div className="input-group">
|
|
106
106
|
<input
|
|
107
107
|
ref={nameRef}
|
|
108
|
-
className="
|
|
108
|
+
className="input input--dark input-group__input"
|
|
109
109
|
disabled={isReadOnly}
|
|
110
110
|
value={servicePath}
|
|
111
111
|
spellCheck={false}
|
|
@@ -120,9 +120,8 @@ const NewFileGenerationModal = observer(
|
|
|
120
120
|
</div>
|
|
121
121
|
<div className="search-modal__actions">
|
|
122
122
|
<button
|
|
123
|
-
className="
|
|
123
|
+
className="btn btn--dark"
|
|
124
124
|
disabled={isReadOnly || elementAlreadyExists}
|
|
125
|
-
color="primary"
|
|
126
125
|
>
|
|
127
126
|
Create
|
|
128
127
|
</button>
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
type FileGenerationSourceDropTarget,
|
|
62
62
|
type ElementDragSource,
|
|
63
63
|
CORE_DND_TYPE,
|
|
64
|
-
} from '../../../../stores/shared/
|
|
64
|
+
} from '../../../../stores/shared/DnDUtils.js';
|
|
65
65
|
import type { FileGenerationState } from '../../../../stores/editor-state/FileGenerationState.js';
|
|
66
66
|
import type { ElementFileGenerationState } from '../../../../stores/editor-state/element-editor-state/ElementFileGenerationState.js';
|
|
67
67
|
import {
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
GenerationDirectory,
|
|
70
70
|
GenerationFile,
|
|
71
71
|
getFileGenerationChildNodes,
|
|
72
|
-
} from '../../../../stores/shared/
|
|
72
|
+
} from '../../../../stores/shared/FileGenerationTreeUtils.js';
|
|
73
73
|
import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js';
|
|
74
74
|
import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
75
75
|
import {
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
} from '@finos/legend-graph';
|
|
85
85
|
import { useApplicationStore } from '@finos/legend-application';
|
|
86
86
|
import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js';
|
|
87
|
-
import type {
|
|
87
|
+
import type { DSLGeneration_LegendStudioApplicationPlugin_Extension } from '../../../../stores/DSLGeneration_LegendStudioApplicationPlugin_Extension.js';
|
|
88
88
|
import {
|
|
89
89
|
fileGeneration_addScopeElement,
|
|
90
90
|
fileGeneration_changeScopeElement,
|
|
@@ -239,7 +239,7 @@ export const GenerationResultViewer = observer(
|
|
|
239
239
|
.flatMap(
|
|
240
240
|
(plugin) =>
|
|
241
241
|
(
|
|
242
|
-
plugin as
|
|
242
|
+
plugin as DSLGeneration_LegendStudioApplicationPlugin_Extension
|
|
243
243
|
).getExtraFileGenerationResultViewerActionConfigurations?.() ??
|
|
244
244
|
[],
|
|
245
245
|
)
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
CORE_DND_TYPE,
|
|
51
51
|
type ElementDragSource,
|
|
52
52
|
type UMLEditorElementDropTarget,
|
|
53
|
-
} from '../../../../stores/shared/
|
|
53
|
+
} from '../../../../stores/shared/DnDUtils.js';
|
|
54
54
|
import {
|
|
55
55
|
externalFormat_Binding_setContentType,
|
|
56
56
|
externalFormat_Binding_setSchemaId,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
operationMapping_setParameters,
|
|
44
44
|
setImpl_setRoot,
|
|
45
45
|
} from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper.js';
|
|
46
|
-
import { SET_IMPLEMENTATION_TYPE } from '../../../../stores/shared/
|
|
46
|
+
import { SET_IMPLEMENTATION_TYPE } from '../../../../stores/shared/ModelClassifierUtils.js';
|
|
47
47
|
import type { DSLMapping_LegendStudioApplicationPlugin_Extension } from '../../../../stores/DSLMapping_LegendStudioApplicationPlugin_Extension.js';
|
|
48
48
|
|
|
49
49
|
export const OperatorSelector = observer(
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
type MappingElementSourceDropTarget,
|
|
42
42
|
CORE_DND_TYPE,
|
|
43
43
|
TypeDragSource,
|
|
44
|
-
} from '../../../../stores/shared/
|
|
44
|
+
} from '../../../../stores/shared/DnDUtils.js';
|
|
45
45
|
import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js';
|
|
46
46
|
import { noop } from '@finos/legend-shared';
|
|
47
47
|
import {
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
type FlatDataPropertyMappingTransformDropTarget,
|
|
21
21
|
CORE_DND_TYPE,
|
|
22
22
|
FlatDataColumnDragSource,
|
|
23
|
-
} from '../../../../stores/shared/
|
|
23
|
+
} from '../../../../stores/shared/DnDUtils.js';
|
|
24
24
|
import {
|
|
25
25
|
type MappingElement,
|
|
26
26
|
MappingEditorState,
|
|
@@ -50,7 +50,7 @@ import { flatDataPropertyMapping_setTransformer } from '../../../../stores/graph
|
|
|
50
50
|
import {
|
|
51
51
|
CLASS_PROPERTY_TYPE,
|
|
52
52
|
getClassPropertyType,
|
|
53
|
-
} from '../../../../stores/shared/
|
|
53
|
+
} from '../../../../stores/shared/ModelClassifierUtils.js';
|
|
54
54
|
|
|
55
55
|
const SimplePropertyMappingEditor = observer(
|
|
56
56
|
(props: {
|
|
@@ -26,8 +26,8 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
CORE_DND_TYPE,
|
|
28
28
|
FlatDataColumnDragSource,
|
|
29
|
-
} from '../../../../stores/shared/
|
|
30
|
-
import type { FlatDataRecordTypeTreeNodeData } from '../../../../stores/shared/
|
|
29
|
+
} from '../../../../stores/shared/DnDUtils.js';
|
|
30
|
+
import type { FlatDataRecordTypeTreeNodeData } from '../../../../stores/shared/TreeUtils.js';
|
|
31
31
|
import { addUniqueEntry } from '@finos/legend-shared';
|
|
32
32
|
import {
|
|
33
33
|
DEFAULT_SOURCE_PARAMETER_NAME,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
CORE_DND_TYPE,
|
|
32
32
|
type ElementDragSource,
|
|
33
33
|
type MappingElementSourceDropTarget,
|
|
34
|
-
} from '../../../../stores/shared/
|
|
34
|
+
} from '../../../../stores/shared/DnDUtils.js';
|
|
35
35
|
import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js';
|
|
36
36
|
import {
|
|
37
37
|
InstanceSetImplementationState,
|
|
@@ -52,13 +52,8 @@ import { NewServiceModal } from '../service-editor/NewServiceModal.js';
|
|
|
52
52
|
import {
|
|
53
53
|
type MappingElementDragSource,
|
|
54
54
|
CORE_DND_TYPE,
|
|
55
|
-
} from '../../../../stores/shared/
|
|
56
|
-
import {
|
|
57
|
-
assertErrorThrown,
|
|
58
|
-
guaranteeType,
|
|
59
|
-
hashObject,
|
|
60
|
-
uniq,
|
|
61
|
-
} from '@finos/legend-shared';
|
|
55
|
+
} from '../../../../stores/shared/DnDUtils.js';
|
|
56
|
+
import { assertErrorThrown, guaranteeType, uniq } from '@finos/legend-shared';
|
|
62
57
|
import {
|
|
63
58
|
type MappingExecutionState,
|
|
64
59
|
MappingExecutionEmptyInputDataState,
|
|
@@ -201,10 +196,6 @@ const MappingExecutionQueryEditor = observer(
|
|
|
201
196
|
queryBuilderState.initializeWithQuery(
|
|
202
197
|
executionState.queryState.query,
|
|
203
198
|
);
|
|
204
|
-
queryBuilderState.changeDetectionState.setQueryHashCode(
|
|
205
|
-
hashObject(executionState.queryState.query),
|
|
206
|
-
);
|
|
207
|
-
queryBuilderState.changeDetectionState.setIsEnabled(true);
|
|
208
199
|
return queryBuilderState;
|
|
209
200
|
},
|
|
210
201
|
actionConfigs: [
|
|
@@ -223,9 +214,6 @@ const MappingExecutionQueryEditor = observer(
|
|
|
223
214
|
applicationStore.notifySuccess(
|
|
224
215
|
`Mapping execution query is updated`,
|
|
225
216
|
);
|
|
226
|
-
queryBuilderState.changeDetectionState.setQueryHashCode(
|
|
227
|
-
hashObject(rawLambda),
|
|
228
|
-
);
|
|
229
217
|
embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration(
|
|
230
218
|
undefined,
|
|
231
219
|
);
|
|
@@ -51,12 +51,11 @@ import { useDrop } from 'react-dnd';
|
|
|
51
51
|
import {
|
|
52
52
|
type MappingElementDragSource,
|
|
53
53
|
CORE_DND_TYPE,
|
|
54
|
-
} from '../../../../stores/shared/
|
|
54
|
+
} from '../../../../stores/shared/DnDUtils.js';
|
|
55
55
|
import {
|
|
56
56
|
IllegalStateError,
|
|
57
57
|
guaranteeType,
|
|
58
58
|
tryToFormatLosslessJSONString,
|
|
59
|
-
hashObject,
|
|
60
59
|
assertErrorThrown,
|
|
61
60
|
} from '@finos/legend-shared';
|
|
62
61
|
import {
|
|
@@ -115,10 +114,6 @@ const MappingTestQueryEditor = observer(
|
|
|
115
114
|
embeddedQueryBuilderState.editorStore.graphManagerState,
|
|
116
115
|
);
|
|
117
116
|
queryBuilderState.initializeWithQuery(testState.queryState.query);
|
|
118
|
-
queryBuilderState.changeDetectionState.setQueryHashCode(
|
|
119
|
-
hashObject(testState.queryState.query),
|
|
120
|
-
);
|
|
121
|
-
queryBuilderState.changeDetectionState.setIsEnabled(true);
|
|
122
117
|
return queryBuilderState;
|
|
123
118
|
},
|
|
124
119
|
actionConfigs: [
|
|
@@ -137,9 +132,6 @@ const MappingTestQueryEditor = observer(
|
|
|
137
132
|
applicationStore.notifySuccess(
|
|
138
133
|
`Mapping test query is updated`,
|
|
139
134
|
);
|
|
140
|
-
queryBuilderState.changeDetectionState.setQueryHashCode(
|
|
141
|
-
hashObject(rawLambda),
|
|
142
|
-
);
|
|
143
135
|
embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration(
|
|
144
136
|
undefined,
|
|
145
137
|
);
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
type MappingElementDragSource,
|
|
44
44
|
CORE_DND_TYPE,
|
|
45
|
-
} from '../../../../stores/shared/
|
|
45
|
+
} from '../../../../stores/shared/DnDUtils.js';
|
|
46
46
|
import { ClassMappingSelectorModal } from './MappingExecutionBuilder.js';
|
|
47
47
|
import { flowResult } from 'mobx';
|
|
48
48
|
import { Randomizer } from '@finos/legend-shared';
|