@finos/legend-application-studio 15.2.0 → 16.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/LegendStudio.d.ts.map +1 -1
- package/lib/application/LegendStudio.js +5 -2
- package/lib/application/LegendStudio.js.map +1 -1
- package/lib/application/LegendStudioPluginManager.js +2 -2
- package/lib/application/LegendStudioPluginManager.js.map +1 -1
- package/lib/components/DSLExternalFormat_LegendStudioApplicationPlugin.d.ts +4 -4
- package/lib/components/DSLExternalFormat_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/DSLExternalFormat_LegendStudioApplicationPlugin.js +3 -3
- package/lib/components/DSLExternalFormat_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/EditorComponentTestUtils.d.ts +10 -2
- package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/EditorComponentTestUtils.js +24 -18
- package/lib/components/EditorComponentTestUtils.js.map +1 -1
- package/lib/components/EmbeddedQueryBuilder.d.ts +19 -0
- package/lib/components/EmbeddedQueryBuilder.d.ts.map +1 -0
- package/lib/components/EmbeddedQueryBuilder.js +80 -0
- package/lib/components/EmbeddedQueryBuilder.js.map +1 -0
- package/lib/components/LegendStudioApplication.d.ts +0 -1
- package/lib/components/LegendStudioApplication.d.ts.map +1 -1
- package/lib/components/editor/Editor.d.ts.map +1 -1
- package/lib/components/editor/Editor.js +12 -13
- package/lib/components/editor/Editor.js.map +1 -1
- package/lib/components/editor/StatusBar.d.ts +0 -1
- package/lib/components/editor/StatusBar.d.ts.map +1 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.d.ts +0 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.d.ts.map +1 -1
- package/lib/components/editor/aux-panel/Console.d.ts +0 -1
- package/lib/components/editor/aux-panel/Console.d.ts.map +1 -1
- package/lib/components/editor/aux-panel/DevTool.d.ts +0 -1
- package/lib/components/editor/aux-panel/DevTool.d.ts.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts +0 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.d.ts +0 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/FunctionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.js +15 -3
- package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.d.ts +0 -1
- package/lib/components/editor/edit-panel/ModelImporter.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/UnsupportedElementEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/UnsupportedElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.d.ts +0 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts +0 -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 +2 -2
- 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 +0 -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.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.d.ts +0 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.d.ts +0 -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/ElementNativeView.d.ts +0 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/BindingElementEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/BindingElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/ExternalFormatConnectionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/ExternalFormatConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/NewSchemaSetDriver.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/NewSchemaSetDriver.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.d.ts +0 -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/SchemaSetModelGenerationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/SchemaSetModelGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts +0 -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 +40 -8
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.d.ts +18 -0
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.d.ts.map +1 -0
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.js +38 -0
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.js.map +1 -0
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts +0 -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 +40 -8
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts +0 -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 +52 -8
- 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 +0 -1
- package/lib/components/editor/edit-panel/service-editor/NewServiceModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts +0 -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 +58 -10
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.d.ts +19 -0
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.d.ts.map +1 -0
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js +80 -0
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js.map +1 -0
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/UMLEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/UMLEditor.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts +0 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.d.ts +0 -1
- package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +15 -8
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.d.ts +0 -1
- package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts +0 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/SideBar.d.ts +0 -1
- package/lib/components/editor/side-bar/SideBar.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts.map +1 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts +0 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
- package/lib/components/project-viewer/ProjectViewer.d.ts.map +1 -1
- package/lib/components/project-viewer/ProjectViewer.js +5 -6
- package/lib/components/project-viewer/ProjectViewer.js.map +1 -1
- package/lib/components/shared/DiffView.d.ts +0 -1
- package/lib/components/shared/DiffView.d.ts.map +1 -1
- package/lib/components/shared/StudioLambdaEditor.d.ts +0 -1
- package/lib/components/shared/StudioLambdaEditor.d.ts.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts +0 -1
- package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts +0 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts.map +1 -1
- package/lib/components/workspace-setup/ProjectCreateModal.d.ts +0 -1
- package/lib/components/workspace-setup/ProjectCreateModal.d.ts.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +5 -5
- package/lib/stores/DSLMapping_LegendStudioApplicationPlugin_Extension.d.ts +0 -18
- package/lib/stores/DSLMapping_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -1
- package/lib/stores/DSLService_LegendStudioApplicationPlugin_Extension.d.ts +0 -10
- package/lib/stores/DSLService_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.js +37 -9
- package/lib/stores/EditorGraphState.js.map +1 -1
- package/lib/stores/EditorStore.d.ts +2 -0
- package/lib/stores/EditorStore.d.ts.map +1 -1
- package/lib/stores/EditorStore.js +3 -0
- package/lib/stores/EditorStore.js.map +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.d.ts +40 -0
- package/lib/stores/EmbeddedQueryBuilderState.d.ts.map +1 -0
- package/lib/stores/EmbeddedQueryBuilderState.js +80 -0
- package/lib/stores/EmbeddedQueryBuilderState.js.map +1 -0
- package/lib/stores/LegendStudioAppEvent.d.ts +2 -1
- package/lib/stores/LegendStudioAppEvent.d.ts.map +1 -1
- package/lib/stores/LegendStudioAppEvent.js +1 -0
- package/lib/stores/LegendStudioAppEvent.js.map +1 -1
- package/lib/stores/LegendStudioApplicationNavigationContext.d.ts +1 -0
- package/lib/stores/LegendStudioApplicationNavigationContext.d.ts.map +1 -1
- package/lib/stores/LegendStudioApplicationNavigationContext.js +1 -0
- package/lib/stores/LegendStudioApplicationNavigationContext.js.map +1 -1
- package/lib/stores/LegendStudioApplicationPlugin.d.ts +7 -7
- package/lib/stores/LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendStudioCodeSnippets.d.ts +2 -0
- package/lib/stores/LegendStudioCodeSnippets.d.ts.map +1 -1
- package/lib/stores/LegendStudioCodeSnippets.js +28 -0
- package/lib/stores/LegendStudioCodeSnippets.js.map +1 -1
- package/lib/stores/StoreRelational_LegendStudioApplicationPlugin_Extension.d.ts +13 -5
- package/lib/stores/StoreRelational_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts +11 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js +66 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.js +9 -9
- package/lib/stores/editor-state/element-editor-state/connection/ConnectionEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.d.ts +29 -0
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.d.ts.map +1 -0
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js +42 -0
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js.map +1 -0
- package/lib/stores/shared/DnDUtil.js +1 -1
- package/lib/stores/shared/PackageTreeUtil.js +6 -6
- package/lib/stores/shared/PackageTreeUtil.js.map +1 -1
- package/package.json +13 -13
- package/src/application/LegendStudio.tsx +8 -2
- package/src/application/LegendStudioPluginManager.ts +2 -2
- package/src/components/DSLExternalFormat_LegendStudioApplicationPlugin.tsx +5 -5
- package/src/components/EditorComponentTestUtils.tsx +29 -23
- package/src/components/EmbeddedQueryBuilder.tsx +165 -0
- package/src/components/editor/Editor.tsx +77 -79
- package/src/components/editor/edit-panel/GrammarTextEditor.tsx +24 -2
- package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +2 -2
- package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +1 -0
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +88 -15
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionQueryBuilder.tsx +93 -0
- package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +81 -16
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +170 -4
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +115 -20
- package/src/components/editor/edit-panel/uml-editor/ClassQueryBuilder.tsx +159 -0
- package/src/components/editor/side-bar/Explorer.tsx +20 -10
- package/src/components/project-viewer/ProjectViewer.tsx +36 -38
- package/src/index.ts +1 -1
- package/src/stores/DSLMapping_LegendStudioApplicationPlugin_Extension.ts +0 -27
- package/src/stores/DSLService_LegendStudioApplicationPlugin_Extension.ts +0 -14
- package/src/stores/EditorGraphState.ts +56 -11
- package/src/stores/EditorStore.ts +3 -0
- package/src/stores/EmbeddedQueryBuilderState.ts +105 -0
- package/src/stores/LegendStudioAppEvent.ts +1 -0
- package/src/stores/LegendStudioApplicationNavigationContext.ts +1 -0
- package/src/stores/LegendStudioApplicationPlugin.ts +7 -7
- package/src/stores/LegendStudioCodeSnippets.ts +34 -0
- package/src/stores/StoreRelational_LegendStudioApplicationPlugin_Extension.ts +19 -5
- package/src/stores/editor-state/ProjectConfigurationEditorState.ts +104 -1
- package/src/stores/editor-state/element-editor-state/connection/ConnectionEditorState.ts +9 -9
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.ts +58 -0
- package/src/stores/shared/DnDUtil.ts +1 -1
- package/src/stores/shared/PackageTreeUtil.ts +6 -6
- package/tsconfig.json +5 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageTreeUtil.js","sourceRoot":"","sources":["../../../src/stores/shared/PackageTreeUtil.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAIrE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAEL,iBAAiB,EACjB,OAAO,EACP,KAAK,EACL,WAAW,EACX,OAAO,EACP,WAAW,EACX,0BAA0B,EAC1B,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,OAAO,EACP,kBAAkB,EAClB,qBAAqB,EACrB,2BAA2B,EAC3B,uBAAuB,EACvB,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAE7B,MAAM,gCAAgC,GAAG,CACvC,WAAwB,EACxB,OAA2B,EACnB,EAAE;IACV,I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G,CAAC,EAAE,CAAC,CAAC;QACpC,IAAI,IAAI,EAAE;YACR,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;SACpB;KACF;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,WAAwB,EACxB,IAAyB,EACzB,QAAuC,EAChB,EAAE;IACzB,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,kBAAkB,YAAY,OAAO,EAAE;QAClE,+BAA+B,CAAC,WAAW,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC7D,OAAO,CACL,IAAI,CAAC,WAAW;aACb,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;aACnC,MAAM,CAAC,aAAa,CAAC;YACtB,wDAAwD;aACvD,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;aAC9C,IAAI,CACH,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACP,CAAC,CAAC,CAAC,kBAAkB,YAAY,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACjD,CAAC,CAAC,CAAC,kBAAkB,YAAY,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CACpD,CACJ,CAAC;KACH;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-application-studio",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.1",
|
|
4
4
|
"description": "Legend Studio application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -44,18 +44,19 @@
|
|
|
44
44
|
"test:watch": "jest --watch"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@finos/legend-application": "7.1
|
|
48
|
-
"@finos/legend-art": "3.1
|
|
49
|
-
"@finos/legend-graph": "
|
|
50
|
-
"@finos/legend-
|
|
51
|
-
"@finos/legend-server-
|
|
52
|
-
"@finos/legend-
|
|
53
|
-
"@finos/legend-
|
|
47
|
+
"@finos/legend-application": "7.2.1",
|
|
48
|
+
"@finos/legend-art": "3.2.1",
|
|
49
|
+
"@finos/legend-graph": "15.0.0",
|
|
50
|
+
"@finos/legend-query-builder": "0.0.2",
|
|
51
|
+
"@finos/legend-server-depot": "3.0.12",
|
|
52
|
+
"@finos/legend-server-sdlc": "4.0.14",
|
|
53
|
+
"@finos/legend-shared": "6.1.1",
|
|
54
|
+
"@finos/legend-storage": "3.0.10",
|
|
54
55
|
"@testing-library/react": "13.4.0",
|
|
55
|
-
"@types/react": "18.0.
|
|
56
|
+
"@types/react": "18.0.20",
|
|
56
57
|
"@types/react-dom": "18.0.6",
|
|
57
58
|
"@types/react-router-dom": "5.3.3",
|
|
58
|
-
"date-fns": "2.29.
|
|
59
|
+
"date-fns": "2.29.3",
|
|
59
60
|
"history": "5.3.0",
|
|
60
61
|
"mobx": "6.6.2",
|
|
61
62
|
"mobx-react-lite": "3.4.0",
|
|
@@ -64,7 +65,6 @@
|
|
|
64
65
|
"node-diff3": "3.1.2",
|
|
65
66
|
"react": "18.2.0",
|
|
66
67
|
"react-dnd": "16.0.1",
|
|
67
|
-
"react-dnd-html5-backend": "16.0.1",
|
|
68
68
|
"react-dom": "18.2.0",
|
|
69
69
|
"react-hotkeys": "2.0.0",
|
|
70
70
|
"react-resize-detector": "7.1.2",
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
"serializr": "2.0.5"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@finos/legend-dev-utils": "2.0.
|
|
76
|
+
"@finos/legend-dev-utils": "2.0.16",
|
|
77
77
|
"@jest/globals": "29.0.3",
|
|
78
78
|
"cross-env": "7.0.3",
|
|
79
|
-
"eslint": "8.23.
|
|
79
|
+
"eslint": "8.23.1",
|
|
80
80
|
"jest": "29.0.3",
|
|
81
81
|
"npm-run-all": "4.1.5",
|
|
82
82
|
"rimraf": "3.0.2",
|
|
@@ -28,19 +28,24 @@ import {
|
|
|
28
28
|
WebApplicationNavigatorProvider,
|
|
29
29
|
type LegendApplicationConfigurationInput,
|
|
30
30
|
} from '@finos/legend-application';
|
|
31
|
-
import {
|
|
31
|
+
import { Core_PureGraphManagerPlugin } from '@finos/legend-graph';
|
|
32
32
|
import { getRootElement } from '@finos/legend-art';
|
|
33
33
|
import {
|
|
34
34
|
type LegendStudioApplicationConfigurationData,
|
|
35
35
|
LegendStudioApplicationConfig,
|
|
36
36
|
} from './LegendStudioApplicationConfig.js';
|
|
37
37
|
import { Core_LegendStudioApplicationPlugin } from '../components/Core_LegendStudioApplicationPlugin.js';
|
|
38
|
+
import {
|
|
39
|
+
QueryBuilder_GraphManagerPreset,
|
|
40
|
+
setupQueryBuilderUILibrary,
|
|
41
|
+
} from '@finos/legend-query-builder';
|
|
38
42
|
|
|
39
43
|
const setupLegendStudioUILibrary = async (
|
|
40
44
|
pluginManager: LegendStudioPluginManager,
|
|
41
45
|
logger: LegendApplicationLogger,
|
|
42
46
|
): Promise<void> => {
|
|
43
47
|
await setupLegendApplicationUILibrary(pluginManager, logger);
|
|
48
|
+
await setupQueryBuilderUILibrary();
|
|
44
49
|
|
|
45
50
|
configureReactHotkeys({
|
|
46
51
|
// By default, `react-hotkeys` will avoid capturing keys from input tags like <input>, <textarea>, <select>
|
|
@@ -56,8 +61,9 @@ export class LegendStudio extends LegendApplication {
|
|
|
56
61
|
|
|
57
62
|
static create(): LegendStudio {
|
|
58
63
|
const application = new LegendStudio(LegendStudioPluginManager.create());
|
|
64
|
+
application.withBasePresets([new QueryBuilder_GraphManagerPreset()]);
|
|
59
65
|
application.withBasePlugins([
|
|
60
|
-
new
|
|
66
|
+
new Core_PureGraphManagerPlugin(),
|
|
61
67
|
new Core_LegendStudioApplicationPlugin(),
|
|
62
68
|
]);
|
|
63
69
|
return application;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { LegendApplicationPluginManager } from '@finos/legend-application';
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
Core_PureGraphManagerPlugin,
|
|
20
20
|
type GraphManagerPluginManager,
|
|
21
21
|
type PureGraphManagerPlugin,
|
|
22
22
|
type PureGraphPlugin,
|
|
@@ -70,7 +70,7 @@ export class LegendStudioPluginManager
|
|
|
70
70
|
override getHiddenPluginNames(): string[] {
|
|
71
71
|
return [
|
|
72
72
|
Core_LegendStudioApplicationPlugin.NAME,
|
|
73
|
-
|
|
73
|
+
Core_PureGraphManagerPlugin.NAME,
|
|
74
74
|
];
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -43,8 +43,8 @@ import {
|
|
|
43
43
|
type ElementEditorRenderer,
|
|
44
44
|
type ElementEditorStateCreator,
|
|
45
45
|
type ElementIconGetter,
|
|
46
|
-
type
|
|
47
|
-
type
|
|
46
|
+
type DragElementClassifier,
|
|
47
|
+
type ElementClassifier,
|
|
48
48
|
type NewElementDriverCreator,
|
|
49
49
|
type NewElementDriverEditorRenderer,
|
|
50
50
|
type NewElementFromStateCreator,
|
|
@@ -120,7 +120,7 @@ export class DSLExternalFormat_LegendStudioApplicationPlugin
|
|
|
120
120
|
return [SCHEMA_SET_ELEMENT_TYPE, BINDING_ELEMENT_TYPE];
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
getExtraElementClassifiers(): ElementClassifier[] {
|
|
124
124
|
return [
|
|
125
125
|
(element: PackageableElement): string | undefined => {
|
|
126
126
|
if (element instanceof SchemaSet) {
|
|
@@ -239,7 +239,7 @@ export class DSLExternalFormat_LegendStudioApplicationPlugin
|
|
|
239
239
|
];
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
|
|
242
|
+
getExtraDragElementClassifiers(): DragElementClassifier[] {
|
|
243
243
|
return [
|
|
244
244
|
(element: PackageableElement): string | undefined => {
|
|
245
245
|
if (element instanceof SchemaSet) {
|
|
@@ -251,7 +251,7 @@ export class DSLExternalFormat_LegendStudioApplicationPlugin
|
|
|
251
251
|
},
|
|
252
252
|
];
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
getExtraPureGrammarTextEditorDragElementTypes(): string[] {
|
|
255
255
|
return [
|
|
256
256
|
SCHEMA_SET_ELEMENT_PROJECT_EXPLORER_DND_TYPE,
|
|
257
257
|
BINDING_ELEMENT_PROJECT_EXPLORER_DND_TYPE,
|
|
@@ -28,12 +28,7 @@ import { LEGEND_STUDIO_TEST_ID } from './LegendStudioTestID.js';
|
|
|
28
28
|
import { EditorStore } from '../stores/EditorStore.js';
|
|
29
29
|
import { Editor } from './editor/Editor.js';
|
|
30
30
|
import { generateEditorRoute } from '../stores/LegendStudioRouter.js';
|
|
31
|
-
import {
|
|
32
|
-
type PlainObject,
|
|
33
|
-
type TEMPORARY__JestMock,
|
|
34
|
-
MOBX__disableSpyOrMock,
|
|
35
|
-
MOBX__enableSpyOrMock,
|
|
36
|
-
} from '@finos/legend-shared';
|
|
31
|
+
import type { PlainObject, TEMPORARY__JestMock } from '@finos/legend-shared';
|
|
37
32
|
import { LegendStudioPluginManager } from '../application/LegendStudioPluginManager.js';
|
|
38
33
|
import type { Entity } from '@finos/legend-storage';
|
|
39
34
|
import {
|
|
@@ -63,6 +58,7 @@ import {
|
|
|
63
58
|
type ProjectVersionEntities,
|
|
64
59
|
TEST__DepotServerClientProvider,
|
|
65
60
|
TEST__getTestDepotServerClient,
|
|
61
|
+
type ProjectDependencyInfo,
|
|
66
62
|
} from '@finos/legend-server-depot';
|
|
67
63
|
import { LegendStudioBaseStoreProvider } from './LegendStudioBaseStoreProvider.js';
|
|
68
64
|
import {
|
|
@@ -128,6 +124,13 @@ export const TEST_DATA__DefaultSDLCInfo = {
|
|
|
128
124
|
],
|
|
129
125
|
};
|
|
130
126
|
|
|
127
|
+
export const TEST_DATA__DefaultDepotInfo = {
|
|
128
|
+
dependencyInfo: {
|
|
129
|
+
tree: [],
|
|
130
|
+
conflicts: [],
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
|
|
131
134
|
export const TEST__LegendStudioBaseStoreProvider: React.FC<{
|
|
132
135
|
children: React.ReactNode;
|
|
133
136
|
}> = ({ children }) => (
|
|
@@ -226,6 +229,7 @@ export const TEST__setUpEditor = async (
|
|
|
226
229
|
projects: PlainObject<ProjectData>[];
|
|
227
230
|
projectData: PlainObject<ProjectData>[];
|
|
228
231
|
projectDependency: PlainObject<ProjectVersionEntities>[];
|
|
232
|
+
projectDependencyInfo: PlainObject<ProjectDependencyInfo>;
|
|
229
233
|
},
|
|
230
234
|
): Promise<RenderResult> => {
|
|
231
235
|
const {
|
|
@@ -240,45 +244,43 @@ export const TEST__setUpEditor = async (
|
|
|
240
244
|
projectData,
|
|
241
245
|
projects,
|
|
242
246
|
projectDependency,
|
|
247
|
+
projectDependencyInfo,
|
|
243
248
|
} = data;
|
|
244
|
-
// mock editor initialization data
|
|
245
|
-
|
|
246
|
-
MOBX__enableSpyOrMock();
|
|
247
249
|
|
|
248
250
|
// SDLC
|
|
249
251
|
jest
|
|
250
252
|
.spyOn(MOCK__editorStore.sdlcServerClient, 'getProject')
|
|
251
|
-
.
|
|
253
|
+
.mockReturnValue(Promise.resolve(project));
|
|
252
254
|
jest
|
|
253
255
|
.spyOn(MOCK__editorStore.sdlcServerClient, 'getWorkspace')
|
|
254
|
-
.
|
|
256
|
+
.mockReturnValue(Promise.resolve(workspace));
|
|
255
257
|
jest
|
|
256
258
|
.spyOn(MOCK__editorStore.sdlcServerClient, 'getVersions')
|
|
257
|
-
.
|
|
259
|
+
.mockReturnValue(Promise.resolve(projectVersions));
|
|
258
260
|
jest
|
|
259
261
|
.spyOn(MOCK__editorStore.sdlcServerClient, 'getRevision')
|
|
260
|
-
.
|
|
262
|
+
.mockReturnValue(Promise.resolve(curentRevision));
|
|
261
263
|
jest
|
|
262
264
|
.spyOn(
|
|
263
265
|
MOCK__editorStore.sdlcServerClient,
|
|
264
266
|
'checkIfWorkspaceIsInConflictResolutionMode',
|
|
265
267
|
)
|
|
266
|
-
.
|
|
268
|
+
.mockReturnValue(Promise.resolve(false));
|
|
267
269
|
jest
|
|
268
270
|
.spyOn(MOCK__editorStore.sdlcServerClient, 'isWorkspaceOutdated')
|
|
269
|
-
.
|
|
271
|
+
.mockReturnValue(Promise.resolve(false));
|
|
270
272
|
jest
|
|
271
273
|
.spyOn(MOCK__editorStore.sdlcServerClient, 'getEntities')
|
|
272
|
-
.
|
|
274
|
+
.mockReturnValue(Promise.resolve(entities));
|
|
273
275
|
jest
|
|
274
276
|
.spyOn(MOCK__editorStore.sdlcServerClient, 'getConfiguration')
|
|
275
|
-
.
|
|
277
|
+
.mockReturnValue(Promise.resolve(projectConfiguration));
|
|
276
278
|
jest
|
|
277
279
|
.spyOn(
|
|
278
280
|
MOCK__editorStore.sdlcServerClient,
|
|
279
281
|
'getLatestProjectStructureVersion',
|
|
280
282
|
)
|
|
281
|
-
.
|
|
283
|
+
.mockReturnValue(Promise.resolve(latestProjectStructureVersion));
|
|
282
284
|
MOCK__editorStore.sdlcServerClient._setFeatures(
|
|
283
285
|
SDLCServerFeaturesConfiguration.serialization.fromJson({
|
|
284
286
|
canCreateProject: true,
|
|
@@ -289,13 +291,16 @@ export const TEST__setUpEditor = async (
|
|
|
289
291
|
// depot
|
|
290
292
|
jest
|
|
291
293
|
.spyOn(MOCK__editorStore.depotServerClient, 'getProjects')
|
|
292
|
-
.
|
|
294
|
+
.mockReturnValue(Promise.resolve(projects));
|
|
293
295
|
jest
|
|
294
296
|
.spyOn(MOCK__editorStore.depotServerClient, 'getProjectById')
|
|
295
|
-
.
|
|
297
|
+
.mockReturnValue(Promise.resolve(projectData));
|
|
296
298
|
jest
|
|
297
299
|
.spyOn(MOCK__editorStore.depotServerClient, 'collectDependencyEntities')
|
|
298
|
-
.
|
|
300
|
+
.mockReturnValue(Promise.resolve(projectDependency));
|
|
301
|
+
jest
|
|
302
|
+
.spyOn(MOCK__editorStore.depotServerClient, 'analyzeDependencyTree')
|
|
303
|
+
.mockReturnValue(Promise.resolve(projectDependencyInfo));
|
|
299
304
|
|
|
300
305
|
// TODO: we need to think of how we will mock these calls when we modularize
|
|
301
306
|
const graphManagerState = MOCK__editorStore.graphManagerState;
|
|
@@ -305,7 +310,7 @@ export const TEST__setUpEditor = async (
|
|
|
305
310
|
graphManagerState.graphManager,
|
|
306
311
|
'getAvailableGenerationConfigurationDescriptions',
|
|
307
312
|
)
|
|
308
|
-
.
|
|
313
|
+
.mockReturnValue(Promise.resolve(availableGenerationDescriptions));
|
|
309
314
|
|
|
310
315
|
// mock change detections (since we do not test them now)
|
|
311
316
|
MOCK__editorStore.changeDetectionState.workspaceLocalLatestRevisionState.buildEntityHashesIndex =
|
|
@@ -318,7 +323,6 @@ export const TEST__setUpEditor = async (
|
|
|
318
323
|
jest.fn<TEMPORARY__JestMock>();
|
|
319
324
|
MOCK__editorStore.workspaceUpdaterState.fetchLatestCommittedReviews =
|
|
320
325
|
jest.fn<TEMPORARY__JestMock>();
|
|
321
|
-
MOBX__disableSpyOrMock();
|
|
322
326
|
|
|
323
327
|
const history = createMemoryHistory({
|
|
324
328
|
initialEntries: [
|
|
@@ -397,6 +401,7 @@ export const TEST__setUpEditorWithDefaultSDLCData = (
|
|
|
397
401
|
projects?: PlainObject<ProjectData>[];
|
|
398
402
|
projectData?: PlainObject<ProjectData>[];
|
|
399
403
|
projectDependency?: PlainObject<ProjectVersionEntities>[];
|
|
404
|
+
projectDependencyInfo?: PlainObject<ProjectDependencyInfo>;
|
|
400
405
|
},
|
|
401
406
|
): Promise<RenderResult> =>
|
|
402
407
|
TEST__setUpEditor(MOCK__editorStore, {
|
|
@@ -415,5 +420,6 @@ export const TEST__setUpEditorWithDefaultSDLCData = (
|
|
|
415
420
|
projects: [],
|
|
416
421
|
projectData: [],
|
|
417
422
|
projectDependency: [],
|
|
423
|
+
projectDependencyInfo: TEST_DATA__DefaultDepotInfo.dependencyInfo,
|
|
418
424
|
...overrides,
|
|
419
425
|
});
|
|
@@ -0,0 +1,165 @@
|
|
|
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 { Fragment, useState } from 'react';
|
|
18
|
+
import { observer } from 'mobx-react-lite';
|
|
19
|
+
import {
|
|
20
|
+
clsx,
|
|
21
|
+
Dialog,
|
|
22
|
+
TimesIcon,
|
|
23
|
+
WindowMaximizeIcon,
|
|
24
|
+
EmptyWindowRestoreIcon,
|
|
25
|
+
} from '@finos/legend-art';
|
|
26
|
+
import { flowResult } from 'mobx';
|
|
27
|
+
import { hashObject, noop } from '@finos/legend-shared';
|
|
28
|
+
import {
|
|
29
|
+
useApplicationNavigationContext,
|
|
30
|
+
ActionAlertActionType,
|
|
31
|
+
ActionAlertType,
|
|
32
|
+
useApplicationStore,
|
|
33
|
+
} from '@finos/legend-application';
|
|
34
|
+
import {
|
|
35
|
+
QueryBuilder,
|
|
36
|
+
type QueryBuilderState,
|
|
37
|
+
} from '@finos/legend-query-builder';
|
|
38
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../stores/LegendStudioApplicationNavigationContext.js';
|
|
39
|
+
import { useEditorStore } from './editor/EditorStoreProvider.js';
|
|
40
|
+
import type { EmbeddedQueryBuilderState } from '../stores/EmbeddedQueryBuilderState.js';
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* NOTE: Query builder is by right a mini-app so we have it hosted in a full-screen modal dialog
|
|
44
|
+
* See https://material.io/components/dialogs#full-screen-dialog
|
|
45
|
+
*/
|
|
46
|
+
const QueryBuilderDialog = observer(
|
|
47
|
+
(props: {
|
|
48
|
+
embeddedQueryBuilderState: EmbeddedQueryBuilderState;
|
|
49
|
+
queryBuilderState: QueryBuilderState;
|
|
50
|
+
}) => {
|
|
51
|
+
const { embeddedQueryBuilderState, queryBuilderState } = props;
|
|
52
|
+
const applicationStore = useApplicationStore();
|
|
53
|
+
const [isMaximized, setIsMaximized] = useState(false);
|
|
54
|
+
const toggleMaximize = (): void => setIsMaximized(!isMaximized);
|
|
55
|
+
const closeQueryBuilder = (): void => {
|
|
56
|
+
flowResult(
|
|
57
|
+
embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration(
|
|
58
|
+
undefined,
|
|
59
|
+
),
|
|
60
|
+
).catch(applicationStore.alertUnhandledError);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
useApplicationNavigationContext(
|
|
64
|
+
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.EMBEDDED_QUERY_BUILDER,
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
const confirmCloseQueryBuilder = (): void => {
|
|
68
|
+
// NOTE: This is poor-man change detection for query
|
|
69
|
+
// in the future, we could consider a similar approach to how we do change detection in Studio
|
|
70
|
+
if (
|
|
71
|
+
queryBuilderState.changeDetectionState.isEnabled &&
|
|
72
|
+
queryBuilderState.changeDetectionState.queryHashCode !==
|
|
73
|
+
hashObject(queryBuilderState.buildQuery())
|
|
74
|
+
) {
|
|
75
|
+
applicationStore.setActionAlertInfo({
|
|
76
|
+
message:
|
|
77
|
+
'Unsaved changes to your query will be lost if you continue. Do you still want to proceed?',
|
|
78
|
+
type: ActionAlertType.CAUTION,
|
|
79
|
+
actions: [
|
|
80
|
+
{
|
|
81
|
+
label: 'Proceed',
|
|
82
|
+
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
|
83
|
+
handler: applicationStore.guardUnhandledError(async () =>
|
|
84
|
+
closeQueryBuilder(),
|
|
85
|
+
),
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
label: 'Cancel',
|
|
89
|
+
type: ActionAlertActionType.PROCEED,
|
|
90
|
+
default: true,
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
});
|
|
94
|
+
} else {
|
|
95
|
+
closeQueryBuilder();
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
return (
|
|
100
|
+
<Dialog
|
|
101
|
+
open={Boolean(embeddedQueryBuilderState.queryBuilderState)}
|
|
102
|
+
onClose={noop} // disallow closing dialog by using Esc key or clicking on the backdrop
|
|
103
|
+
classes={{
|
|
104
|
+
root: 'editor-modal__root-container',
|
|
105
|
+
container: 'editor-modal__container',
|
|
106
|
+
paper:
|
|
107
|
+
'editor-modal__content query-builder__dialog__container__content',
|
|
108
|
+
}}
|
|
109
|
+
>
|
|
110
|
+
<div
|
|
111
|
+
className={clsx(
|
|
112
|
+
'modal modal--dark editor-modal query-builder__dialog',
|
|
113
|
+
{ 'query-builder__dialog--expanded': isMaximized },
|
|
114
|
+
)}
|
|
115
|
+
>
|
|
116
|
+
<div className="query-builder__dialog__header">
|
|
117
|
+
<div className="query-builder__dialog__header__actions">
|
|
118
|
+
{embeddedQueryBuilderState.actionConfigs.map((config) => (
|
|
119
|
+
<Fragment key={config.key}>
|
|
120
|
+
{config.renderer(queryBuilderState)}
|
|
121
|
+
</Fragment>
|
|
122
|
+
))}
|
|
123
|
+
<button
|
|
124
|
+
className="query-builder__dialog__header__action"
|
|
125
|
+
tabIndex={-1}
|
|
126
|
+
onClick={toggleMaximize}
|
|
127
|
+
>
|
|
128
|
+
{isMaximized ? (
|
|
129
|
+
<EmptyWindowRestoreIcon />
|
|
130
|
+
) : (
|
|
131
|
+
<WindowMaximizeIcon />
|
|
132
|
+
)}
|
|
133
|
+
</button>
|
|
134
|
+
<button
|
|
135
|
+
className="query-builder__dialog__header__action"
|
|
136
|
+
tabIndex={-1}
|
|
137
|
+
onClick={confirmCloseQueryBuilder}
|
|
138
|
+
>
|
|
139
|
+
<TimesIcon />
|
|
140
|
+
</button>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
<div className="query-builder__dialog__content">
|
|
144
|
+
<QueryBuilder queryBuilderState={queryBuilderState} />
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
</Dialog>
|
|
148
|
+
);
|
|
149
|
+
},
|
|
150
|
+
);
|
|
151
|
+
|
|
152
|
+
export const EmbeddedQueryBuilder = observer(() => {
|
|
153
|
+
const editorStore = useEditorStore();
|
|
154
|
+
const queryBuilderExtensionState = editorStore.embeddedQueryBuilderState;
|
|
155
|
+
|
|
156
|
+
if (!queryBuilderExtensionState.queryBuilderState) {
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
return (
|
|
160
|
+
<QueryBuilderDialog
|
|
161
|
+
embeddedQueryBuilderState={queryBuilderExtensionState}
|
|
162
|
+
queryBuilderState={queryBuilderExtensionState.queryBuilderState}
|
|
163
|
+
/>
|
|
164
|
+
);
|
|
165
|
+
});
|