@finos/legend-application-studio 16.0.2 → 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.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +2 -1
- 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 +2 -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 +4 -2
- 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 +1 -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
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
Enumeration,
|
|
44
44
|
Association,
|
|
45
45
|
} from '@finos/legend-graph';
|
|
46
|
-
import { BASIC_SET_IMPLEMENTATION_TYPE } from '../../../../stores/shared/
|
|
46
|
+
import { BASIC_SET_IMPLEMENTATION_TYPE } from '../../../../stores/shared/ModelClassifierUtils.js';
|
|
47
47
|
import {
|
|
48
48
|
buildElementOption,
|
|
49
49
|
getPackageableElementOptionFormatter,
|
|
@@ -263,11 +263,7 @@ export const NewMappingElementModal = observer(() => {
|
|
|
263
263
|
/>
|
|
264
264
|
)}
|
|
265
265
|
<div className="search-modal__actions">
|
|
266
|
-
<button
|
|
267
|
-
className="btn btn--primary"
|
|
268
|
-
disabled={disableCreateButton}
|
|
269
|
-
color="primary"
|
|
270
|
-
>
|
|
266
|
+
<button className="btn btn--primary" disabled={disableCreateButton}>
|
|
271
267
|
Create
|
|
272
268
|
</button>
|
|
273
269
|
</div>
|
package/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx
CHANGED
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
CORE_DND_TYPE,
|
|
30
30
|
type OperationSetImplementationDropTarget,
|
|
31
31
|
type MappingElementDragSource,
|
|
32
|
-
} from '../../../../stores/shared/
|
|
32
|
+
} from '../../../../stores/shared/DnDUtils.js';
|
|
33
33
|
import { useDrop } from 'react-dnd';
|
|
34
34
|
import { noop } from '@finos/legend-shared';
|
|
35
35
|
import {
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
CLASS_PROPERTY_TYPE,
|
|
61
61
|
getClassPropertyType,
|
|
62
62
|
SET_IMPLEMENTATION_TYPE,
|
|
63
|
-
} from '../../../../stores/shared/
|
|
63
|
+
} from '../../../../stores/shared/ModelClassifierUtils.js';
|
|
64
64
|
import type { DSLMapping_LegendStudioApplicationPlugin_Extension } from '../../../../stores/DSLMapping_LegendStudioApplicationPlugin_Extension.js';
|
|
65
65
|
|
|
66
66
|
export const getExpectedReturnType = (
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
type TransformDropTarget,
|
|
21
21
|
CORE_DND_TYPE,
|
|
22
22
|
TypeDragSource,
|
|
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 { getExpectedReturnType } from './PropertyMappingsEditor.js';
|
|
|
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: {
|
|
@@ -51,7 +51,7 @@ import { getExpectedReturnType } from '../PropertyMappingsEditor.js';
|
|
|
51
51
|
import {
|
|
52
52
|
CLASS_PROPERTY_TYPE,
|
|
53
53
|
getClassPropertyType,
|
|
54
|
-
} from '../../../../../stores/shared/
|
|
54
|
+
} from '../../../../../stores/shared/ModelClassifierUtils.js';
|
|
55
55
|
|
|
56
56
|
const SimplePropertyMappingEditor = observer(
|
|
57
57
|
(props: {
|
package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx
CHANGED
|
@@ -60,11 +60,13 @@ import {
|
|
|
60
60
|
SNAPSHOT_VERSION_ALIAS,
|
|
61
61
|
MASTER_SNAPSHOT_ALIAS,
|
|
62
62
|
type ProjectData,
|
|
63
|
-
compareSemVerVersions,
|
|
64
|
-
generateGAVCoordinates,
|
|
65
63
|
type ProjectDependencyInfo,
|
|
66
64
|
} from '@finos/legend-server-depot';
|
|
67
65
|
import { generateViewProjectRoute } from '../../../../stores/LegendStudioRouter.js';
|
|
66
|
+
import {
|
|
67
|
+
compareSemVerVersions,
|
|
68
|
+
generateGAVCoordinates,
|
|
69
|
+
} from '@finos/legend-storage';
|
|
68
70
|
|
|
69
71
|
interface VersionOption {
|
|
70
72
|
label: string;
|
|
@@ -85,7 +85,7 @@ export const NewServiceModal = observer(
|
|
|
85
85
|
<div className="input-group">
|
|
86
86
|
<input
|
|
87
87
|
ref={nameRef}
|
|
88
|
-
className="
|
|
88
|
+
className="input input--dark input-group__input"
|
|
89
89
|
disabled={isReadOnly}
|
|
90
90
|
value={servicePath}
|
|
91
91
|
spellCheck={false}
|
|
@@ -100,9 +100,8 @@ export const NewServiceModal = observer(
|
|
|
100
100
|
</div>
|
|
101
101
|
<div className="search-modal__actions">
|
|
102
102
|
<button
|
|
103
|
-
className="
|
|
103
|
+
className="btn btn--dark"
|
|
104
104
|
disabled={Boolean(isReadOnly) || elementAlreadyExists}
|
|
105
|
-
color="primary"
|
|
106
105
|
onClick={create}
|
|
107
106
|
>
|
|
108
107
|
Create
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
CORE_DND_TYPE,
|
|
30
30
|
type ElementDragSource,
|
|
31
31
|
type UMLEditorElementDropTarget,
|
|
32
|
-
} from '../../../../stores/shared/
|
|
32
|
+
} from '../../../../stores/shared/DnDUtils.js';
|
|
33
33
|
import { UnsupportedEditorPanel } from '../../../editor/edit-panel/UnsupportedElementEditor.js';
|
|
34
34
|
import {
|
|
35
35
|
clsx,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
PauseCircleIcon,
|
|
37
37
|
PencilIcon,
|
|
38
38
|
} from '@finos/legend-art';
|
|
39
|
-
import { assertErrorThrown, debounce
|
|
39
|
+
import { assertErrorThrown, debounce } from '@finos/legend-shared';
|
|
40
40
|
import { flowResult } from 'mobx';
|
|
41
41
|
import { useEditorStore } from '../../EditorStoreProvider.js';
|
|
42
42
|
import {
|
|
@@ -272,10 +272,6 @@ export const ServiceExecutionQueryEditor = observer(
|
|
|
272
272
|
queryBuilderState.initializeWithQuery(
|
|
273
273
|
executionState.execution.func,
|
|
274
274
|
);
|
|
275
|
-
queryBuilderState.changeDetectionState.setQueryHashCode(
|
|
276
|
-
hashObject(executionState.execution.func),
|
|
277
|
-
);
|
|
278
|
-
queryBuilderState.changeDetectionState.setIsEnabled(true);
|
|
279
275
|
return queryBuilderState;
|
|
280
276
|
},
|
|
281
277
|
actionConfigs: [
|
|
@@ -294,9 +290,6 @@ export const ServiceExecutionQueryEditor = observer(
|
|
|
294
290
|
applicationStore.notifySuccess(
|
|
295
291
|
`Service query is updated`,
|
|
296
292
|
);
|
|
297
|
-
queryBuilderState.changeDetectionState.setQueryHashCode(
|
|
298
|
-
hashObject(rawLambda),
|
|
299
|
-
);
|
|
300
293
|
embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration(
|
|
301
294
|
undefined,
|
|
302
295
|
);
|
|
@@ -36,7 +36,8 @@ export const ServiceRegistrationEditor = observer(() => {
|
|
|
36
36
|
const applicationStore = useApplicationStore();
|
|
37
37
|
const serviceState = editorStore.getCurrentEditorState(ServiceEditorState);
|
|
38
38
|
const registrationState = serviceState.registrationState;
|
|
39
|
-
|
|
39
|
+
|
|
40
|
+
// env & execution server
|
|
40
41
|
const envOptions = registrationState.options.map((info) => ({
|
|
41
42
|
label: info.env.toUpperCase(),
|
|
42
43
|
value: info.env,
|
|
@@ -47,7 +48,13 @@ export const ServiceRegistrationEditor = observer(() => {
|
|
|
47
48
|
value: registrationState.serviceEnv,
|
|
48
49
|
}
|
|
49
50
|
: null;
|
|
50
|
-
|
|
51
|
+
const onServerEnvChange = (
|
|
52
|
+
val: { label: string; value: string } | null,
|
|
53
|
+
): void => {
|
|
54
|
+
registrationState.updateEnv(val?.value);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
// execution mode
|
|
51
58
|
const serviceTypesOptions = registrationState.executionModes.map((mode) => ({
|
|
52
59
|
label: prettyCONSTName(mode),
|
|
53
60
|
value: mode,
|
|
@@ -63,12 +70,8 @@ export const ServiceRegistrationEditor = observer(() => {
|
|
|
63
70
|
): void => {
|
|
64
71
|
registrationState.updateType(val?.value);
|
|
65
72
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
): void => {
|
|
69
|
-
registrationState.updateEnv(val?.value);
|
|
70
|
-
};
|
|
71
|
-
// version Projection
|
|
73
|
+
|
|
74
|
+
// version
|
|
72
75
|
const selectedVersion = registrationState.projectVersion
|
|
73
76
|
? {
|
|
74
77
|
label:
|
|
@@ -91,18 +94,21 @@ export const ServiceRegistrationEditor = observer(() => {
|
|
|
91
94
|
: !registrationState.versionOptions.length
|
|
92
95
|
? 'Project has no versions'
|
|
93
96
|
: undefined;
|
|
97
|
+
|
|
94
98
|
// activate
|
|
95
99
|
const toggleActivatePostRegistration = (): void => {
|
|
96
100
|
registrationState.setActivatePostRegistration(
|
|
97
101
|
!registrationState.activatePostRegistration,
|
|
98
102
|
);
|
|
99
103
|
};
|
|
104
|
+
|
|
100
105
|
// store model for full interactive
|
|
101
106
|
const toggleUseStoreModel = (): void => {
|
|
102
107
|
registrationState.setUseStoreModelWithFullInteractive(
|
|
103
108
|
!registrationState.TEMPORARY__useStoreModel,
|
|
104
109
|
);
|
|
105
110
|
};
|
|
111
|
+
|
|
106
112
|
// actions
|
|
107
113
|
const registerService = (): void => {
|
|
108
114
|
if (selectedEnvOption && selectedServiceType) {
|
|
@@ -115,6 +121,7 @@ export const ServiceRegistrationEditor = observer(() => {
|
|
|
115
121
|
!selectedEnvOption ||
|
|
116
122
|
!selectedServiceType ||
|
|
117
123
|
registrationState.registrationState.isInProgress;
|
|
124
|
+
|
|
118
125
|
return (
|
|
119
126
|
<div
|
|
120
127
|
data-testid={LEGEND_STUDIO_TEST_ID.SERVICE_REGISTRATION_EDITOR}
|
|
@@ -156,7 +163,6 @@ export const ServiceRegistrationEditor = observer(() => {
|
|
|
156
163
|
onClick={toggleActivatePostRegistration}
|
|
157
164
|
>
|
|
158
165
|
<button
|
|
159
|
-
type="button"
|
|
160
166
|
className={clsx('panel__content__form__section__toggler__btn', {
|
|
161
167
|
'panel__content__form__section__toggler__btn--toggled':
|
|
162
168
|
registrationState.activatePostRegistration,
|
|
@@ -214,7 +220,6 @@ export const ServiceRegistrationEditor = observer(() => {
|
|
|
214
220
|
onClick={toggleUseStoreModel}
|
|
215
221
|
>
|
|
216
222
|
<button
|
|
217
|
-
type="button"
|
|
218
223
|
className={clsx('panel__content__form__section__toggler__btn', {
|
|
219
224
|
'panel__content__form__section__toggler__btn--toggled':
|
|
220
225
|
registrationState.TEMPORARY__useStoreModel,
|
|
@@ -372,7 +372,7 @@ export const NewConnectionDataModal = observer(
|
|
|
372
372
|
</div>
|
|
373
373
|
<div className="modal__footer">
|
|
374
374
|
<button
|
|
375
|
-
type="button"
|
|
375
|
+
type="button" // prevent this toggler being activated on form submission
|
|
376
376
|
className="btn btn--dark"
|
|
377
377
|
onClick={closeModal}
|
|
378
378
|
>
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
CORE_DND_TYPE,
|
|
25
25
|
type UMLEditorElementDropTarget,
|
|
26
26
|
type ElementDragSource,
|
|
27
|
-
} from '../../../../stores/shared/
|
|
27
|
+
} from '../../../../stores/shared/DnDUtils.js';
|
|
28
28
|
import { useDrop } from 'react-dnd';
|
|
29
29
|
import {
|
|
30
30
|
clsx,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
import {
|
|
88
88
|
CLASS_PROPERTY_TYPE,
|
|
89
89
|
getClassPropertyType,
|
|
90
|
-
} from '../../../../stores/shared/
|
|
90
|
+
} from '../../../../stores/shared/ModelClassifierUtils.js';
|
|
91
91
|
import {
|
|
92
92
|
buildElementOption,
|
|
93
93
|
useApplicationNavigationContext,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
CORE_DND_TYPE,
|
|
22
22
|
type ElementDragSource,
|
|
23
23
|
type UMLEditorElementDropTarget,
|
|
24
|
-
} from '../../../../stores/shared/
|
|
24
|
+
} from '../../../../stores/shared/DnDUtils.js';
|
|
25
25
|
import {
|
|
26
26
|
clsx,
|
|
27
27
|
CustomSelectorInput,
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
import {
|
|
133
133
|
CLASS_PROPERTY_TYPE,
|
|
134
134
|
getClassPropertyType,
|
|
135
|
-
} from '../../../../stores/shared/
|
|
135
|
+
} from '../../../../stores/shared/ModelClassifierUtils.js';
|
|
136
136
|
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../stores/LegendStudioApplicationNavigationContext.js';
|
|
137
137
|
|
|
138
138
|
type ClassPropertyDragSource = {
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
CORE_DND_TYPE,
|
|
26
26
|
type ElementDragSource,
|
|
27
27
|
type UMLEditorElementDropTarget,
|
|
28
|
-
} from '../../../../stores/shared/
|
|
28
|
+
} from '../../../../stores/shared/DnDUtils.js';
|
|
29
29
|
import { prettyCONSTName } from '@finos/legend-shared';
|
|
30
30
|
import {
|
|
31
31
|
BlankPanelContent,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
} from '@finos/legend-application';
|
|
49
49
|
import type { EmbeddedDataTypeOption } from '../../../stores/editor-state/element-editor-state/data/DataEditorState.js';
|
|
50
50
|
import type { DSLData_LegendStudioApplicationPlugin_Extension } from '../../../stores/DSLData_LegendStudioApplicationPlugin_Extension.js';
|
|
51
|
-
import { PACKAGEABLE_ELEMENT_TYPE } from '../../../stores/shared/
|
|
51
|
+
import { PACKAGEABLE_ELEMENT_TYPE } from '../../../stores/shared/ModelClassifierUtils.js';
|
|
52
52
|
import { EmbeddedDataType } from '../../../stores/editor-state/ExternalFormatState.js';
|
|
53
53
|
|
|
54
54
|
export const getElementTypeLabel = (
|
|
@@ -206,7 +206,10 @@ const NewPureModelConnectionDriverEditor = observer(
|
|
|
206
206
|
{ label: 'ModelStore', value: undefined },
|
|
207
207
|
];
|
|
208
208
|
storeOptions = storeOptions.concat(
|
|
209
|
-
editorStore.
|
|
209
|
+
editorStore.graphManagerState.usableStores
|
|
210
|
+
.map(buildElementOption)
|
|
211
|
+
.slice()
|
|
212
|
+
.sort(compareLabelFn),
|
|
210
213
|
);
|
|
211
214
|
const selectedStoreOption = {
|
|
212
215
|
label: store?.path ?? 'ModelStore',
|
|
@@ -51,15 +51,15 @@ import {
|
|
|
51
51
|
CreateNewElementModal,
|
|
52
52
|
} from './CreateNewElementModal.js';
|
|
53
53
|
import { useDrag } from 'react-dnd';
|
|
54
|
-
import { ElementDragSource } from '../../../stores/shared/
|
|
54
|
+
import { ElementDragSource } from '../../../stores/shared/DnDUtils.js';
|
|
55
55
|
import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID.js';
|
|
56
56
|
import { ACTIVITY_MODE } from '../../../stores/EditorConfig.js';
|
|
57
|
-
import { getTreeChildNodes } from '../../../stores/shared/
|
|
58
|
-
import type { PackageTreeNodeData } from '../../../stores/shared/
|
|
57
|
+
import { getTreeChildNodes } from '../../../stores/shared/PackageTreeUtils.js';
|
|
58
|
+
import type { PackageTreeNodeData } from '../../../stores/shared/TreeUtils.js';
|
|
59
59
|
import {
|
|
60
60
|
type GenerationTreeNodeData,
|
|
61
61
|
getFileGenerationChildNodes,
|
|
62
|
-
} from '../../../stores/shared/
|
|
62
|
+
} from '../../../stores/shared/FileGenerationTreeUtils.js';
|
|
63
63
|
import { FileGenerationTree } from '../../editor/edit-panel/element-generation-editor/FileGenerationEditor.js';
|
|
64
64
|
import { generateViewEntityRoute } from '../../../stores/LegendStudioRouter.js';
|
|
65
65
|
import { toTitleCase } from '@finos/legend-shared';
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
Class,
|
|
79
79
|
} from '@finos/legend-graph';
|
|
80
80
|
import { useApplicationStore } from '@finos/legend-application';
|
|
81
|
-
import { PACKAGEABLE_ELEMENT_TYPE } from '../../../stores/shared/
|
|
81
|
+
import { PACKAGEABLE_ELEMENT_TYPE } from '../../../stores/shared/ModelClassifierUtils.js';
|
|
82
82
|
import { useLegendStudioApplicationStore } from '../../LegendStudioBaseStoreProvider.js';
|
|
83
83
|
import { queryClass } from '../edit-panel/uml-editor/ClassQueryBuilder.js';
|
|
84
84
|
|
|
@@ -118,7 +118,6 @@ const PatchLoader = observer(() => {
|
|
|
118
118
|
</div>
|
|
119
119
|
<div className="modal__footer">
|
|
120
120
|
<button
|
|
121
|
-
type="button"
|
|
122
121
|
className="btn btn--dark blocking-alert__action--standard"
|
|
123
122
|
onClick={upload}
|
|
124
123
|
disabled={!patchState.changes?.length || !patchState.isValidPatch}
|
|
@@ -204,6 +203,7 @@ export const LocalChanges = observer(() => {
|
|
|
204
203
|
applicationStore.alertUnhandledError,
|
|
205
204
|
);
|
|
206
205
|
}, [applicationStore, localChangesState]);
|
|
206
|
+
|
|
207
207
|
return (
|
|
208
208
|
<div className="panel local-changes">
|
|
209
209
|
<div className="panel__header side-bar__header">
|
|
@@ -253,20 +253,14 @@ export const WorkspaceSyncConflictResolver = observer(() => {
|
|
|
253
253
|
</div>
|
|
254
254
|
<div className="modal__footer">
|
|
255
255
|
<button
|
|
256
|
-
|
|
257
|
-
className="btn btn--primary btn--dark"
|
|
256
|
+
className="btn btn--dark"
|
|
258
257
|
disabled={Boolean(conflicts.length)}
|
|
259
258
|
title="Apply Resolutions"
|
|
260
259
|
onClick={applyResolutions}
|
|
261
260
|
>
|
|
262
261
|
Apply Resolutions
|
|
263
262
|
</button>
|
|
264
|
-
<button
|
|
265
|
-
type="button"
|
|
266
|
-
title="Aborts"
|
|
267
|
-
className="btn btn--dark"
|
|
268
|
-
onClick={abort}
|
|
269
|
-
>
|
|
263
|
+
<button className="btn btn--dark" title="Aborts" onClick={abort}>
|
|
270
264
|
Abort
|
|
271
265
|
</button>
|
|
272
266
|
</div>
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
PURE_PackageIcon,
|
|
48
48
|
PURE_DataIcon,
|
|
49
49
|
} from '@finos/legend-art';
|
|
50
|
-
import { PACKAGEABLE_ELEMENT_TYPE } from '../../stores/shared/
|
|
50
|
+
import { PACKAGEABLE_ELEMENT_TYPE } from '../../stores/shared/ModelClassifierUtils.js';
|
|
51
51
|
|
|
52
52
|
export const getClassPropertyIcon = (type: Type): React.ReactNode => {
|
|
53
53
|
if (type instanceof PrimitiveType) {
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { ArrowCircleRightIcon } from '@finos/legend-art';
|
|
18
|
+
import type { Project } from '@finos/legend-server-sdlc';
|
|
19
|
+
import type { LegendStudioApplicationStore } from '../../stores/LegendStudioBaseStore.js';
|
|
20
|
+
import { generateViewProjectRoute } from '../../stores/LegendStudioRouter.js';
|
|
21
|
+
|
|
22
|
+
export interface ProjectOption {
|
|
23
|
+
label: string;
|
|
24
|
+
value: Project;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const buildProjectOption = (project: Project): ProjectOption => ({
|
|
28
|
+
label: project.name,
|
|
29
|
+
value: project,
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export const getProjectOptionLabelFormatter = (
|
|
33
|
+
applicationStore: LegendStudioApplicationStore,
|
|
34
|
+
): ((option: ProjectOption) => React.ReactNode) =>
|
|
35
|
+
function ProjectOptionLabel(option: ProjectOption): React.ReactNode {
|
|
36
|
+
const viewProject = (): void =>
|
|
37
|
+
applicationStore.navigator.openNewWindow(
|
|
38
|
+
applicationStore.navigator.generateLocation(
|
|
39
|
+
generateViewProjectRoute(option.value.projectId),
|
|
40
|
+
),
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<div className="project-selector__option">
|
|
45
|
+
<div className="project-selector__option__label">
|
|
46
|
+
<div className="project-selector__option__label__name">
|
|
47
|
+
{option.label}
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<button
|
|
51
|
+
type="button" // prevent this toggler being activated on form submission
|
|
52
|
+
className="project-selector__option__visit-btn"
|
|
53
|
+
tabIndex={-1}
|
|
54
|
+
onClick={viewProject}
|
|
55
|
+
>
|
|
56
|
+
<div className="project-selector__option__visit-btn__label">view</div>
|
|
57
|
+
<div className="project-selector__option__visit-btn__icon">
|
|
58
|
+
<ArrowCircleRightIcon />
|
|
59
|
+
</div>
|
|
60
|
+
</button>
|
|
61
|
+
</div>
|
|
62
|
+
);
|
|
63
|
+
};
|
|
@@ -32,9 +32,9 @@ import {
|
|
|
32
32
|
ChevronRightIcon,
|
|
33
33
|
} from '@finos/legend-art';
|
|
34
34
|
import { useDrag } from 'react-dnd';
|
|
35
|
-
import { TypeDragSource, CORE_DND_TYPE } from '../../stores/shared/
|
|
35
|
+
import { TypeDragSource, CORE_DND_TYPE } from '../../stores/shared/DnDUtils.js';
|
|
36
36
|
import { getClassPropertyIcon } from './ElementIconUtils.js';
|
|
37
|
-
import type { TypeTreeNodeData } from '../../stores/shared/
|
|
37
|
+
import type { TypeTreeNodeData } from '../../stores/shared/TreeUtils.js';
|
|
38
38
|
import {
|
|
39
39
|
type Type,
|
|
40
40
|
type Enum,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
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 getEnumTypeTreeNodeData = (
|
|
56
56
|
_enum: Enum,
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { UserIcon, UsersIcon } from '@finos/legend-art';
|
|
18
|
+
import { type Workspace, WorkspaceType } from '@finos/legend-server-sdlc';
|
|
19
|
+
|
|
20
|
+
export interface WorkspaceOption {
|
|
21
|
+
label: string;
|
|
22
|
+
value: Workspace;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const buildWorkspaceOption = (
|
|
26
|
+
workspace: Workspace,
|
|
27
|
+
): WorkspaceOption => ({
|
|
28
|
+
label: workspace.workspaceId,
|
|
29
|
+
value: workspace,
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export const formatWorkspaceOptionLabel = (
|
|
33
|
+
option: WorkspaceOption,
|
|
34
|
+
): React.ReactNode => (
|
|
35
|
+
<div className="workspace-selector__option">
|
|
36
|
+
<div className="workspace-selector__option__icon">
|
|
37
|
+
{option.value.workspaceType === WorkspaceType.GROUP ? (
|
|
38
|
+
<UsersIcon />
|
|
39
|
+
) : (
|
|
40
|
+
<UserIcon />
|
|
41
|
+
)}
|
|
42
|
+
</div>
|
|
43
|
+
<div className="workspace-selector__option__name">{option.label}</div>
|
|
44
|
+
</div>
|
|
45
|
+
);
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
PencilIcon,
|
|
25
25
|
MarkdownTextViewer,
|
|
26
26
|
} from '@finos/legend-art';
|
|
27
|
-
import { useWorkspaceSetupStore } from './WorkspaceSetupStoreProvider.js';
|
|
28
27
|
import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js';
|
|
29
28
|
import { isNumber } from '@finos/legend-shared';
|
|
30
29
|
import { flowResult } from 'mobx';
|
|
@@ -35,6 +34,7 @@ import {
|
|
|
35
34
|
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../stores/LegendStudioDocumentation.js';
|
|
36
35
|
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../stores/LegendStudioApplicationNavigationContext.js';
|
|
37
36
|
import { useLegendStudioApplicationStore } from '../LegendStudioBaseStoreProvider.js';
|
|
37
|
+
import { useWorkspaceSetupStore } from './WorkspaceSetup.js';
|
|
38
38
|
|
|
39
39
|
enum CREATE_PROJECT_MODAL_TAB {
|
|
40
40
|
CREATE = 'CREATE',
|
|
@@ -202,7 +202,9 @@ const CreateNewProjectTab = observer(() => {
|
|
|
202
202
|
<input
|
|
203
203
|
className="panel__content__form__section__input"
|
|
204
204
|
spellCheck={false}
|
|
205
|
-
placeholder=
|
|
205
|
+
placeholder={
|
|
206
|
+
applicationStore.config.options.projectCreationGroupIdSuggestion
|
|
207
|
+
}
|
|
206
208
|
value={groupId}
|
|
207
209
|
onChange={changeGroupId}
|
|
208
210
|
/>
|
|
@@ -501,7 +503,9 @@ const ImportProjectTab = observer(() => {
|
|
|
501
503
|
<input
|
|
502
504
|
className="panel__content__form__section__input"
|
|
503
505
|
spellCheck={false}
|
|
504
|
-
placeholder=
|
|
506
|
+
placeholder={
|
|
507
|
+
applicationStore.config.options.projectCreationGroupIdSuggestion
|
|
508
|
+
}
|
|
505
509
|
value={groupId}
|
|
506
510
|
disabled={Boolean(importProjectSuccessReport)}
|
|
507
511
|
onChange={changeGroupId}
|