@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
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { useState, useRef } from 'react';
|
|
18
|
+
import { observer } from 'mobx-react-lite';
|
|
19
|
+
import { clsx, Dialog, SquareIcon, PanelLoadingIndicator, CheckSquareIcon, } from '@finos/legend-art';
|
|
20
|
+
import { flowResult } from 'mobx';
|
|
21
|
+
import { WorkspaceType } from '@finos/legend-server-sdlc';
|
|
22
|
+
import { useApplicationStore, DocumentationLink, } from '@finos/legend-application';
|
|
23
|
+
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../stores/LegendStudioDocumentation.js';
|
|
24
|
+
import { useWorkspaceSetupStore } from './WorkspaceSetup.js';
|
|
25
|
+
export const CreateWorkspaceModal = observer((props) => {
|
|
26
|
+
const { selectedProject } = props;
|
|
27
|
+
const setupStore = useWorkspaceSetupStore();
|
|
28
|
+
const applicationStore = useApplicationStore();
|
|
29
|
+
const workspaceNameInputRef = useRef(null);
|
|
30
|
+
const [workspaceName, setWorkspaceName] = useState('');
|
|
31
|
+
const [isGroupWorkspace, setIsGroupWorkspace] = useState(true);
|
|
32
|
+
const workspaceAlreadyExists = Boolean(setupStore.workspaces.find((workspace) => workspace.workspaceId === workspaceName &&
|
|
33
|
+
((workspace.workspaceType === WorkspaceType.GROUP &&
|
|
34
|
+
isGroupWorkspace) ||
|
|
35
|
+
(workspace.workspaceType === WorkspaceType.USER &&
|
|
36
|
+
!isGroupWorkspace))));
|
|
37
|
+
const createWorkspace = () => {
|
|
38
|
+
if (workspaceName) {
|
|
39
|
+
flowResult(setupStore.createWorkspace(selectedProject.projectId, workspaceName, isGroupWorkspace ? WorkspaceType.GROUP : WorkspaceType.USER)).catch(applicationStore.alertUnhandledError);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
const changeWorkspaceName = (event) => setWorkspaceName(event.target.value);
|
|
43
|
+
const toggleGroupWorkspace = (event) => {
|
|
44
|
+
event.preventDefault();
|
|
45
|
+
setIsGroupWorkspace(!isGroupWorkspace);
|
|
46
|
+
};
|
|
47
|
+
const handleEnter = () => {
|
|
48
|
+
workspaceNameInputRef.current?.focus();
|
|
49
|
+
};
|
|
50
|
+
const onClose = () => {
|
|
51
|
+
setupStore.setShowCreateWorkspaceModal(false);
|
|
52
|
+
};
|
|
53
|
+
const handleSubmit = (event) => {
|
|
54
|
+
event.preventDefault();
|
|
55
|
+
createWorkspace();
|
|
56
|
+
};
|
|
57
|
+
return (_jsx(Dialog, { open: setupStore.showCreateWorkspaceModal, onClose: onClose, TransitionProps: {
|
|
58
|
+
onEnter: handleEnter,
|
|
59
|
+
}, classes: { container: 'search-modal__container' }, PaperProps: { classes: { root: 'search-modal__inner-container' } }, children: _jsxs("div", { className: "modal modal--dark workspace-setup__create-workspace-modal", children: [_jsxs("div", { className: "modal__title", children: ["Create Workspace", _jsx(DocumentationLink, { className: "workspace-setup__create-workspace-modal__doc__create-workspace", documentationKey: LEGEND_STUDIO_DOCUMENTATION_KEY.CREATE_WORKSPACE })] }), _jsxs("form", { onSubmit: handleSubmit, children: [_jsx(PanelLoadingIndicator, { isLoading: setupStore.createWorkspaceState.isInProgress }), _jsxs("div", { className: "panel__content__form workspace-setup__create-workspace-modal__form workspace-setup__create-workspace-modal__form__workspace", children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Workspace Name" }), _jsxs("div", { className: "input-group", children: [_jsx("input", { className: "input input--dark input-group__input workspace-setup__create-workspace-modal__form__workspace-name__input", ref: workspaceNameInputRef, spellCheck: false, disabled: setupStore.createWorkspaceState.isInProgress ||
|
|
60
|
+
setupStore.createOrImportProjectState.isInProgress, placeholder: "MyWorkspace", value: workspaceName, onChange: changeWorkspaceName }), workspaceAlreadyExists && (_jsx("div", { className: "input-group__error-message", children: "Workspace with same name already exists" }))] })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Group Workspace" }), _jsxs("div", { className: "panel__content__form__section__toggler", children: [_jsx("button", { onClick: toggleGroupWorkspace, type: "button" // prevent this toggler being activated on form submission
|
|
61
|
+
, className: clsx('panel__content__form__section__toggler__btn', {
|
|
62
|
+
'panel__content__form__section__toggler__btn--toggled': isGroupWorkspace,
|
|
63
|
+
}), tabIndex: -1, children: isGroupWorkspace ? _jsx(CheckSquareIcon, {}) : _jsx(SquareIcon, {}) }), _jsx("div", { className: "panel__content__form__section__toggler__prompt", children: "Group workspaces can be accessed by all users in the project" })] })] })] }), _jsx("div", { className: "panel__content__form__actions", children: _jsx("button", { disabled: setupStore.createWorkspaceState.isInProgress ||
|
|
64
|
+
setupStore.createOrImportProjectState.isInProgress ||
|
|
65
|
+
!workspaceName, className: "btn btn--dark", children: "Create" }) })] })] }) }));
|
|
66
|
+
});
|
|
67
|
+
//# sourceMappingURL=CreateWorkspaceModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateWorkspaceModal.js","source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F,IACF,EACN,cAAK,SAAS,EAAC,+BAA+B,YAC5C,iBACE,QAAQ,EACN,UAAU,CAAC,oBAAoB,CAAC,YAAY;oCAC5C,UAAU,CAAC,0BAA0B,CAAC,YAAY;oCAClD,CAAC,aAAa,EAEhB,SAAS,EAAC,eAAe,uBAGlB,GACL,IACD,IACH,GACC,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -14,5 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
/// <reference types="react" resolution-mode="require"/>
|
|
17
|
+
import { WorkspaceSetupStore } from '../../stores/workspace-setup/WorkspaceSetupStore.js';
|
|
18
|
+
export declare const useWorkspaceSetupStore: () => WorkspaceSetupStore;
|
|
17
19
|
export declare const WorkspaceSetup: import("react").FC<{}>;
|
|
18
20
|
//# sourceMappingURL=WorkspaceSetup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceSetup.d.ts","sourceRoot":"","sources":["../../../src/components/workspace-setup/WorkspaceSetup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;
|
|
1
|
+
{"version":3,"file":"WorkspaceSetup.d.ts","sourceRoot":"","sources":["../../../src/components/workspace-setup/WorkspaceSetup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA2CH,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAsB1F,eAAO,MAAM,sBAAsB,QAAO,mBAIvC,CAAC;AAWJ,eAAO,MAAM,cAAc,wBAyQ1B,CAAC"}
|
|
@@ -14,142 +14,123 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { observer } from 'mobx-react-lite';
|
|
21
|
-
import { clsx, Dialog, SquareIcon, compareLabelFn, CustomSelectorInput, PanelLoadingIndicator, CheckSquareIcon, MarkdownTextViewer, AssistantIcon, } from '@finos/legend-art';
|
|
22
|
-
import { useWorkspaceSetupStore, withWorkspaceSetupStore, } from './WorkspaceSetupStoreProvider.js';
|
|
17
|
+
import { createContext, useContext, useEffect, useMemo, useState } from 'react';
|
|
18
|
+
import { observer, useLocalObservable } from 'mobx-react-lite';
|
|
19
|
+
import { clsx, MarkdownTextViewer, AssistantIcon, compareLabelFn, PlusIcon, GitBranchIcon, CustomSelectorInput, RepoIcon, } from '@finos/legend-art';
|
|
23
20
|
import { useParams } from 'react-router';
|
|
24
21
|
import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js';
|
|
25
|
-
import { generateEditorRoute, } from '../../stores/LegendStudioRouter.js';
|
|
22
|
+
import { generateEditorRoute, LEGEND_STUDIO_PATH_PARAM_TOKEN, } from '../../stores/LegendStudioRouter.js';
|
|
26
23
|
import { flowResult } from 'mobx';
|
|
27
|
-
import {
|
|
28
|
-
import { useApplicationStore, DocumentationLink, useApplicationNavigationContext, } from '@finos/legend-application';
|
|
24
|
+
import { DocumentationLink, useApplicationNavigationContext, } from '@finos/legend-application';
|
|
29
25
|
import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../stores/LegendStudioDocumentation.js';
|
|
30
|
-
import { CreateProjectModal } from './
|
|
26
|
+
import { CreateProjectModal } from './CreateProjectModal.js';
|
|
31
27
|
import { ActivityBarMenu } from '../editor/ActivityBar.js';
|
|
32
28
|
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../stores/LegendStudioApplicationNavigationContext.js';
|
|
29
|
+
import { CreateWorkspaceModal } from './CreateWorkspaceModal.js';
|
|
33
30
|
import { useLegendStudioApplicationStore } from '../LegendStudioBaseStoreProvider.js';
|
|
34
|
-
|
|
31
|
+
import { buildProjectOption, getProjectOptionLabelFormatter, } from '../shared/ProjectSelectorUtils.js';
|
|
32
|
+
import { buildWorkspaceOption, formatWorkspaceOptionLabel, } from '../shared/WorkspaceSelectorUtils.js';
|
|
33
|
+
import { debounce, guaranteeNonNullable } from '@finos/legend-shared';
|
|
34
|
+
import { WorkspaceSetupStore } from '../../stores/workspace-setup/WorkspaceSetupStore.js';
|
|
35
|
+
import { useSDLCServerClient } from '@finos/legend-server-sdlc';
|
|
36
|
+
const WorkspaceSetupStoreContext = createContext(undefined);
|
|
37
|
+
const WorkspaceSetupStoreProvider = ({ children }) => {
|
|
38
|
+
const applicationStore = useLegendStudioApplicationStore();
|
|
39
|
+
const sdlcServerClient = useSDLCServerClient();
|
|
40
|
+
const store = useLocalObservable(() => new WorkspaceSetupStore(applicationStore, sdlcServerClient));
|
|
41
|
+
return (_jsx(WorkspaceSetupStoreContext.Provider, { value: store, children: children }));
|
|
42
|
+
};
|
|
43
|
+
export const useWorkspaceSetupStore = () => guaranteeNonNullable(useContext(WorkspaceSetupStoreContext), `Can't find workspace setup store in context`);
|
|
44
|
+
const withWorkspaceSetupStore = (WrappedComponent) => function WithWorkspaceSetupStore() {
|
|
45
|
+
return (_jsx(WorkspaceSetupStoreProvider, { children: _jsx(WrappedComponent, {}) }));
|
|
46
|
+
};
|
|
47
|
+
export const WorkspaceSetup = withWorkspaceSetupStore(observer(() => {
|
|
48
|
+
const params = useParams();
|
|
49
|
+
const projectId = params[LEGEND_STUDIO_PATH_PARAM_TOKEN.PROJECT_ID];
|
|
50
|
+
const workspaceId = params[LEGEND_STUDIO_PATH_PARAM_TOKEN.WORKSPACE_ID];
|
|
51
|
+
const groupWorkspaceId = params[LEGEND_STUDIO_PATH_PARAM_TOKEN.GROUP_WORKSPACE_ID];
|
|
35
52
|
const setupStore = useWorkspaceSetupStore();
|
|
36
|
-
const applicationStore =
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
?
|
|
46
|
-
:
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
createOrImportProjectState.isInProgress;
|
|
51
|
-
const onSelectionChange = (val) => {
|
|
52
|
-
if ((val !== null || selectedOption !== null) &&
|
|
53
|
-
(!val || !selectedOption || val.value !== selectedOption.value)) {
|
|
54
|
-
setCurrentProjectId(val?.value);
|
|
55
|
-
workspaceNameInputRef.current?.focus();
|
|
53
|
+
const applicationStore = useLegendStudioApplicationStore();
|
|
54
|
+
const [projectSearchText, setProjectSearchText] = useState('');
|
|
55
|
+
const toggleAssistant = () => applicationStore.assistantService.toggleAssistant();
|
|
56
|
+
const documentation = applicationStore.documentationService.getDocEntry(LEGEND_STUDIO_DOCUMENTATION_KEY.SETUP_WORKSPACE);
|
|
57
|
+
// projects
|
|
58
|
+
const projectOptions = setupStore.projects
|
|
59
|
+
.map(buildProjectOption)
|
|
60
|
+
.sort(compareLabelFn);
|
|
61
|
+
const selectedProjectOption = setupStore.currentProject
|
|
62
|
+
? buildProjectOption(setupStore.currentProject)
|
|
63
|
+
: null;
|
|
64
|
+
const onProjectChange = (val) => {
|
|
65
|
+
if (val) {
|
|
66
|
+
flowResult(setupStore.changeProject(val.value)).catch(applicationStore.alertUnhandledError);
|
|
56
67
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
? 'Loading projects'
|
|
60
|
-
: loadProjectsState.hasFailed
|
|
61
|
-
? 'Error fetching projects'
|
|
62
|
-
: projectOptions.length
|
|
63
|
-
? 'Choose an existing project'
|
|
64
|
-
: 'You have no projects, please create or acquire access for at least one';
|
|
65
|
-
const closeModal = () => {
|
|
66
|
-
setupStore.setShowCreateWorkspaceModal(false);
|
|
67
|
-
};
|
|
68
|
-
const createWorkspace = () => {
|
|
69
|
-
if (currentProjectId && workspaceName) {
|
|
70
|
-
flowResult(setupStore.createWorkspace(currentProjectId, workspaceName, workspaceType)).catch(applicationStore.alertUnhandledError);
|
|
68
|
+
else {
|
|
69
|
+
setupStore.resetProject();
|
|
71
70
|
}
|
|
72
71
|
};
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
const showCreateProjectModal = () => setupStore.setShowCreateProjectModal(true);
|
|
73
|
+
// project search text
|
|
74
|
+
const debouncedLoadProjects = useMemo(() => debounce((input) => {
|
|
75
|
+
flowResult(setupStore.loadProjects(input)).catch(applicationStore.alertUnhandledError);
|
|
76
|
+
}, 500), [applicationStore, setupStore]);
|
|
77
|
+
const onProjectSearchTextChange = (value) => {
|
|
78
|
+
if (value !== projectSearchText) {
|
|
79
|
+
setProjectSearchText(value);
|
|
80
|
+
debouncedLoadProjects.cancel();
|
|
81
|
+
debouncedLoadProjects(value);
|
|
82
|
+
}
|
|
77
83
|
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
84
|
+
// workspaces
|
|
85
|
+
const workspaceOptions = setupStore.workspaces
|
|
86
|
+
.map(buildWorkspaceOption)
|
|
87
|
+
.sort(compareLabelFn);
|
|
88
|
+
const selectedWorkspaceOption = setupStore.currentWorkspace
|
|
89
|
+
? buildWorkspaceOption(setupStore.currentWorkspace)
|
|
90
|
+
: null;
|
|
91
|
+
const onWorkspaceChange = (val) => {
|
|
92
|
+
if (val) {
|
|
93
|
+
setupStore.changeWorkspace(val.value);
|
|
81
94
|
}
|
|
82
95
|
else {
|
|
83
|
-
|
|
96
|
+
setupStore.resetWorkspace();
|
|
84
97
|
}
|
|
85
98
|
};
|
|
86
|
-
const
|
|
87
|
-
event.preventDefault();
|
|
88
|
-
setIsGroupWorkspace(!isGroupWorkspace);
|
|
89
|
-
};
|
|
90
|
-
return (_jsx(Dialog, { open: showCreateWorkspaceModal, onClose: closeModal, TransitionProps: {
|
|
91
|
-
onEnter: handleEnter,
|
|
92
|
-
}, classes: { container: 'search-modal__container' }, PaperProps: { classes: { root: 'search-modal__inner-container' } }, children: _jsxs("div", { className: "modal modal--dark workspace-setup__create-workspace-modal", children: [_jsxs("div", { className: "modal__title", children: ["Create Workspace", _jsx(DocumentationLink, { className: "workspace-setup__create-workspace-modal__doc__create-workspace", documentationKey: LEGEND_STUDIO_DOCUMENTATION_KEY.CREATE_WORKSPACE })] }), _jsxs("form", { onSubmit: handleSubmit, children: [_jsx(PanelLoadingIndicator, { isLoading: setupStore.createWorkspaceState.isInProgress }), _jsxs("div", { className: "panel__content__form workspace-setup__create-workspace-modal__form workspace-setup__create-workspace-modal__form__workspace", children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Project Name" }), _jsx(CustomSelectorInput, { className: "workspace-setup-selector__input workspace-setup__workspace__selector", ref: projectSelectorRef, options: projectOptions, disabled: dispatchingActions ||
|
|
93
|
-
isFetchingProjects ||
|
|
94
|
-
!projectOptions.length, isLoading: isFetchingProjects, onChange: onSelectionChange, value: selectedOption, placeholder: projectSelectorPlaceholder, isClearable: true, escapeClearsValue: true, darkMode: true })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Workspace Name" }), _jsx("input", { className: "workspace-setup__create-workspace-modal__form__workspace-name__input", ref: workspaceNameInputRef, spellCheck: false, disabled: dispatchingActions, placeholder: "MyWorkspace", value: workspaceName, onChange: changeWorkspaceName })] }), _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Group Workspace" }), _jsxs("div", { className: "panel__content__form__section__toggler", children: [_jsx("button", { onClick: toggleGroupWorkspace, type: "button" // prevent this toggler being activated on form submission
|
|
95
|
-
, className: clsx('panel__content__form__section__toggler__btn', {
|
|
96
|
-
'panel__content__form__section__toggler__btn--toggled': isGroupWorkspace,
|
|
97
|
-
}), tabIndex: -1, children: isGroupWorkspace ? _jsx(CheckSquareIcon, {}) : _jsx(SquareIcon, {}) }), _jsx("div", { className: "panel__content__form__section__toggler__prompt", children: "Group workspaces can be edited by all users in the corresponding project." })] })] })] }), _jsx("div", { className: "panel__content__form__actions", children: _jsx("button", { disabled: dispatchingActions || !workspaceName || !currentProjectId, className: "btn btn--dark", children: "Create" }) })] })] }) }));
|
|
98
|
-
});
|
|
99
|
-
const WorkspaceSetupContent = observer(() => {
|
|
100
|
-
const setupStore = useWorkspaceSetupStore();
|
|
101
|
-
const applicationStore = useLegendStudioApplicationStore();
|
|
102
|
-
const projectSelectorRef = useRef(null);
|
|
103
|
-
const workspaceSelectorRef = useRef(null);
|
|
104
|
-
const proceedButtonRef = useRef(null);
|
|
105
|
-
const documentation = applicationStore.documentationService.getDocEntry(LEGEND_STUDIO_DOCUMENTATION_KEY.SETUP_WORKSPACE);
|
|
106
|
-
const isCreatingWorkspace = setupStore.createWorkspaceState.isInProgress;
|
|
107
|
-
const isCreatingOrImportingProject = setupStore.createOrImportProjectState.isInProgress;
|
|
108
|
-
const disableProceedButton = !setupStore.currentProjectId ||
|
|
109
|
-
!setupStore.currentWorkspaceCompositeId ||
|
|
110
|
-
isCreatingWorkspace ||
|
|
111
|
-
isCreatingOrImportingProject;
|
|
112
|
-
const onProjectChange = (focusNext) => focusNext
|
|
113
|
-
? workspaceSelectorRef.current?.focus()
|
|
114
|
-
: projectSelectorRef.current?.focus();
|
|
115
|
-
const onWorkspaceChange = (focusNext) => focusNext
|
|
116
|
-
? proceedButtonRef.current?.focus()
|
|
117
|
-
: workspaceSelectorRef.current?.focus();
|
|
118
|
-
const handleCreateProjectModal = () => setupStore.setShowCreateProjectModal(true);
|
|
119
|
-
const handleCreateWorkspaceModal = () => setupStore.setShowCreateWorkspaceModal(true);
|
|
99
|
+
const showCreateWorkspaceModal = () => setupStore.setShowCreateWorkspaceModal(true);
|
|
120
100
|
const handleProceed = () => {
|
|
121
|
-
if (setupStore.
|
|
122
|
-
setupStore.currentProject
|
|
123
|
-
setupStore.currentWorkspaceCompositeId &&
|
|
124
|
-
setupStore.currentWorkspace) {
|
|
125
|
-
applicationStore.navigator.goTo(generateEditorRoute(setupStore.currentProjectId, setupStore.currentWorkspace.workspaceId, setupStore.currentWorkspace.workspaceType));
|
|
101
|
+
if (setupStore.currentProject && setupStore.currentWorkspace) {
|
|
102
|
+
applicationStore.navigator.goTo(generateEditorRoute(setupStore.currentProject.projectId, setupStore.currentWorkspace.workspaceId, setupStore.currentWorkspace.workspaceType));
|
|
126
103
|
}
|
|
127
104
|
};
|
|
128
|
-
const toggleAssistant = () => applicationStore.assistantService.toggleAssistant();
|
|
129
|
-
useEffect(() => {
|
|
130
|
-
if (!disableProceedButton) {
|
|
131
|
-
proceedButtonRef.current?.focus();
|
|
132
|
-
}
|
|
133
|
-
}, [disableProceedButton]);
|
|
134
|
-
return (_jsx("div", { className: "app__page", children: _jsxs("div", { className: "workspace-setup", children: [_jsxs("div", { className: "workspace-setup__body", children: [_jsx("div", { className: "activity-bar", children: _jsx(ActivityBarMenu, {}) }), _jsx("div", { className: "workspace-setup__content", "data-testid": LEGEND_STUDIO_TEST_ID.SETUP__CONTENT, children: _jsxs("div", { className: "workspace-setup__content__main", children: [_jsxs("div", { className: "workspace-setup__title", children: [_jsxs("div", { className: "workspace-setup__title__header", children: ["Setup Workspace", _jsx(DocumentationLink, { className: "workspace-setup__doc__setup-workspace", documentationKey: LEGEND_STUDIO_DOCUMENTATION_KEY.SETUP_WORKSPACE })] }), documentation?.markdownText && (_jsx("div", { className: "workspace-setup__title__documentation", children: _jsx(MarkdownTextViewer, { value: documentation.markdownText }) }))] }), _jsxs("div", { children: [_jsx(ProjectSelector, { ref: projectSelectorRef, onChange: onProjectChange, create: handleCreateProjectModal }), _jsx(WorkspaceSelector, { ref: workspaceSelectorRef, onChange: onWorkspaceChange, create: handleCreateWorkspaceModal }), _jsx("div", { className: "workspace-setup__actions", children: _jsx("button", { ref: proceedButtonRef, className: "workspace-setup__next-btn btn--dark", onClick: handleProceed, disabled: disableProceedButton, children: "Edit Workspace" }) })] }), setupStore.showCreateProjectModal && _jsx(CreateProjectModal, {}), setupStore.showCreateWorkspaceModal && _jsx(CreateWorkspaceModal, {})] }) })] }), _jsxs("div", { "data-testid": LEGEND_STUDIO_TEST_ID.STATUS_BAR, className: "editor__status-bar", children: [_jsx("div", { className: "editor__status-bar__left" }), _jsx("div", { className: "editor__status-bar__right", children: _jsx("button", { className: clsx('editor__status-bar__action editor__status-bar__action__toggler', {
|
|
135
|
-
'editor__status-bar__action__toggler--active': !applicationStore.assistantService.isHidden,
|
|
136
|
-
}), onClick: toggleAssistant, tabIndex: -1, title: "Toggle assistant", children: _jsx(AssistantIcon, {}) }) })] })] }) }));
|
|
137
|
-
});
|
|
138
|
-
export const WorkspaceSetup = withWorkspaceSetupStore(observer(() => {
|
|
139
|
-
const params = useParams();
|
|
140
|
-
const setupStore = useWorkspaceSetupStore();
|
|
141
|
-
const applicationStore = useApplicationStore();
|
|
142
105
|
useEffect(() => {
|
|
143
|
-
setupStore.
|
|
144
|
-
|
|
145
|
-
|
|
106
|
+
flowResult(setupStore.initialize(projectId, workspaceId, groupWorkspaceId)).catch(applicationStore.alertUnhandledError);
|
|
107
|
+
}, [
|
|
108
|
+
setupStore,
|
|
109
|
+
applicationStore,
|
|
110
|
+
projectId,
|
|
111
|
+
workspaceId,
|
|
112
|
+
groupWorkspaceId,
|
|
113
|
+
]);
|
|
146
114
|
useEffect(() => {
|
|
147
|
-
flowResult(setupStore.
|
|
148
|
-
|
|
149
|
-
flowResult(setupStore.fetchWorkspaces(setupStore.currentProjectId)).catch(applicationStore.alertUnhandledError);
|
|
150
|
-
}
|
|
151
|
-
}, [applicationStore, setupStore]);
|
|
115
|
+
flowResult(setupStore.loadProjects('')).catch(applicationStore.alertUnhandledError);
|
|
116
|
+
}, [setupStore, applicationStore]);
|
|
152
117
|
useApplicationNavigationContext(LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.SETUP);
|
|
153
|
-
return _jsx(
|
|
118
|
+
return (_jsx("div", { className: "app__page", children: _jsxs("div", { className: "workspace-setup", children: [_jsxs("div", { className: "workspace-setup__body", children: [_jsx("div", { className: "activity-bar", children: _jsx(ActivityBarMenu, {}) }), _jsx("div", { className: "workspace-setup__content", "data-testid": LEGEND_STUDIO_TEST_ID.SETUP__CONTENT, children: _jsxs("div", { className: "workspace-setup__content__main", children: [_jsxs("div", { className: "workspace-setup__title", children: [_jsxs("div", { className: "workspace-setup__title__header", children: ["Setup Workspace", _jsx(DocumentationLink, { className: "workspace-setup__doc__setup-workspace", documentationKey: LEGEND_STUDIO_DOCUMENTATION_KEY.SETUP_WORKSPACE })] }), documentation?.markdownText && (_jsx("div", { className: "workspace-setup__title__documentation", children: _jsx(MarkdownTextViewer, { value: documentation.markdownText }) }))] }), _jsxs("form", { onSubmit: handleProceed, children: [_jsxs("div", { className: "workspace-setup__selector", children: [_jsx("div", { className: "workspace-setup__selector__icon", title: "project", children: _jsx(RepoIcon, { className: "workspace-setup__selector__icon--project" }) }), _jsx(CustomSelectorInput, { className: "workspace-setup__selector__input", options: projectOptions, isLoading: setupStore.loadProjectsState.isInProgress, onInputChange: onProjectSearchTextChange, inputValue: projectSearchText, onChange: onProjectChange, value: selectedProjectOption, placeholder: "Search for project...", isClearable: true, escapeClearsValue: true, darkMode: true, formatOptionLabel: getProjectOptionLabelFormatter(applicationStore) }), _jsx("button", { className: "workspace-setup__selector__action btn--dark", onClick: showCreateProjectModal, tabIndex: -1, type: "button" // prevent this toggler being activated on form submission
|
|
119
|
+
, title: "Create a Project", children: _jsx(PlusIcon, {}) })] }), _jsxs("div", { className: "workspace-setup__selector", children: [_jsx("div", { className: "workspace-setup__selector__icon", title: "workspace", children: _jsx(GitBranchIcon, { className: "workspace-setup__selector__icon--workspace" }) }), _jsx(CustomSelectorInput, { className: "workspace-setup__selector__input", options: workspaceOptions, disabled: !setupStore.currentProject ||
|
|
120
|
+
setupStore.loadProjectsState.isInProgress ||
|
|
121
|
+
setupStore.loadWorkspacesState.isInProgress, isLoading: setupStore.loadWorkspacesState.isInProgress, onChange: onWorkspaceChange, formatOptionLabel: formatWorkspaceOptionLabel, value: selectedWorkspaceOption, placeholder: setupStore.loadWorkspacesState.isInProgress
|
|
122
|
+
? 'Loading workspaces...'
|
|
123
|
+
: !setupStore.currentProject
|
|
124
|
+
? 'In order to select a workspace, a project must be selected'
|
|
125
|
+
: workspaceOptions.length
|
|
126
|
+
? 'Choose an existing workspace'
|
|
127
|
+
: 'You have no workspaces. Please create one to proceed...', isClearable: true, escapeClearsValue: true, darkMode: true }), _jsx("button", { className: "workspace-setup__selector__action btn--dark", onClick: showCreateWorkspaceModal, disabled: !setupStore.currentProject, tabIndex: -1, type: "button" // prevent this toggler being activated on form submission
|
|
128
|
+
, title: "Create a Workspace", children: _jsx(PlusIcon, {}) })] }), _jsx("div", { className: "workspace-setup__actions", children: _jsx("button", { className: "workspace-setup__next-btn btn--dark", onClick: handleProceed, disabled: !setupStore.currentProject ||
|
|
129
|
+
!setupStore.currentWorkspace ||
|
|
130
|
+
setupStore.createWorkspaceState.isInProgress ||
|
|
131
|
+
setupStore.createOrImportProjectState.isInProgress, children: "Edit Workspace" }) })] }), setupStore.showCreateProjectModal && _jsx(CreateProjectModal, {}), setupStore.showCreateWorkspaceModal &&
|
|
132
|
+
setupStore.currentProject && (_jsx(CreateWorkspaceModal, { selectedProject: setupStore.currentProject }))] }) })] }), _jsxs("div", { "data-testid": LEGEND_STUDIO_TEST_ID.STATUS_BAR, className: "editor__status-bar", children: [_jsx("div", { className: "editor__status-bar__left" }), _jsx("div", { className: "editor__status-bar__right", children: _jsx("button", { className: clsx('editor__status-bar__action editor__status-bar__action__toggler', {
|
|
133
|
+
'editor__status-bar__action__toggler--active': !applicationStore.assistantService.isHidden,
|
|
134
|
+
}), onClick: toggleAssistant, tabIndex: -1, title: "Toggle assistant", children: _jsx(AssistantIcon, {}) }) })] })] }) }));
|
|
154
135
|
}));
|
|
155
136
|
//# sourceMappingURL=WorkspaceSetup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceSetup.js","sourceRoot":"","sources":["../../../src/components/workspace-setup/WorkspaceSetup.tsx"],"names":[],"mappings":";AAAA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