@finos/legend-application-studio 15.2.0 → 16.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/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 +1 -1
- package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/EditorComponentTestUtils.js +13 -17
- 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/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.js +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/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/element-editor-state/connection/ConnectionEditorState.js +8 -8
- 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 +14 -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/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 +1 -1
- package/src/stores/EditorStore.ts +3 -0
- package/src/stores/EmbeddedQueryBuilderState.ts +105 -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/element-editor-state/connection/ConnectionEditorState.ts +8 -8
- 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":"LegendStudio.d.ts","sourceRoot":"","sources":["../../src/application/LegendStudio.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EACL,KAAK,uBAAuB,EAG5B,iBAAiB,EAGjB,KAAK,mCAAmC,EACzC,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EACL,KAAK,wCAAwC,EAC7C,6BAA6B,EAC9B,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendStudio.d.ts","sourceRoot":"","sources":["../../src/application/LegendStudio.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EACL,KAAK,uBAAuB,EAG5B,iBAAiB,EAGjB,KAAK,mCAAmC,EACzC,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EACL,KAAK,wCAAwC,EAC7C,6BAA6B,EAC9B,MAAM,oCAAoC,CAAC;AAsB5C,qBAAa,YAAa,SAAQ,iBAAiB;IACzC,MAAM,EAAE,6BAA6B,CAAC;IACtC,aAAa,EAAE,yBAAyB,CAAC;IAEjD,MAAM,CAAC,MAAM,IAAI,YAAY;IAUvB,oBAAoB,CACxB,KAAK,EAAE,mCAAmC,CAAC,wCAAwC,CAAC,GACnF,OAAO,CAAC,uBAAuB,CAAC;IAI7B,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;CAyBvC"}
|
|
@@ -20,12 +20,14 @@ import { configure as configureReactHotkeys } from 'react-hotkeys';
|
|
|
20
20
|
import { LegendStudioApplication } from '../components/LegendStudioApplication.js';
|
|
21
21
|
import { LegendStudioPluginManager } from './LegendStudioPluginManager.js';
|
|
22
22
|
import { ApplicationStoreProvider, LegendApplication, setupLegendApplicationUILibrary, WebApplicationNavigatorProvider, } from '@finos/legend-application';
|
|
23
|
-
import {
|
|
23
|
+
import { Core_PureGraphManagerPlugin } from '@finos/legend-graph';
|
|
24
24
|
import { getRootElement } from '@finos/legend-art';
|
|
25
25
|
import { LegendStudioApplicationConfig, } from './LegendStudioApplicationConfig.js';
|
|
26
26
|
import { Core_LegendStudioApplicationPlugin } from '../components/Core_LegendStudioApplicationPlugin.js';
|
|
27
|
+
import { QueryBuilder_GraphManagerPreset, setupQueryBuilderUILibrary, } from '@finos/legend-query-builder';
|
|
27
28
|
const setupLegendStudioUILibrary = async (pluginManager, logger) => {
|
|
28
29
|
await setupLegendApplicationUILibrary(pluginManager, logger);
|
|
30
|
+
await setupQueryBuilderUILibrary();
|
|
29
31
|
configureReactHotkeys({
|
|
30
32
|
// By default, `react-hotkeys` will avoid capturing keys from input tags like <input>, <textarea>, <select>
|
|
31
33
|
// We want to listen to hotkey from every where in the app so we disable that
|
|
@@ -36,8 +38,9 @@ const setupLegendStudioUILibrary = async (pluginManager, logger) => {
|
|
|
36
38
|
export class LegendStudio extends LegendApplication {
|
|
37
39
|
static create() {
|
|
38
40
|
const application = new LegendStudio(LegendStudioPluginManager.create());
|
|
41
|
+
application.withBasePresets([new QueryBuilder_GraphManagerPreset()]);
|
|
39
42
|
application.withBasePlugins([
|
|
40
|
-
new
|
|
43
|
+
new Core_PureGraphManagerPlugin(),
|
|
41
44
|
new Core_LegendStudioApplicationPlugin(),
|
|
42
45
|
]);
|
|
43
46
|
return application;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendStudio.js","sourceRoot":"","sources":["../../src/application/LegendStudio.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,SAAS,IAAI,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,yBAAyB,E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B;IAIjD,MAAM,CAAC,MAAM;QACX,MAAM,WAAW,GAAG,IAAI,YAAY,CAAC,yBAAyB,CAAC,MAAM,EAAE,CAAC,CAAC;QACzE,WAAW,CAAC,eAAe,CAAC,CAAC,IAAI,+BAA+B,EAAE,CAAC,CAAC,CAAC;QACrE,WAAW,CAAC,eAAe,CAAC;YAC1B,IAAI,2BAA2B,EAAE;YACjC,IAAI,kCAAkC,EAAE;SACzC,CAAC,CAAC;QACH,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,oBAAoB,CACxB,KAAoF;QAEpF,OAAO,IAAI,6BAA6B,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,oCAAoC;QACpC,MAAM,0BAA0B,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAElE,2BAA2B;QAC3B,MAAM,WAAW,GAAG,UAAU,CAAC,cAAc,EAAE,CAAC,CAAC;QACjD,WAAW,CAAC,MAAM;QAChB,oGAAoG;QACpG,yCAAyC;QACzC,iDAAiD;QACjD,KAAC,aAAa,IAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,YACnC,KAAC,+BAA+B,cAC9B,KAAC,wBAAwB,IACvB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,aAAa,EAAE,IAAI,CAAC,aAAa,YAEjC,KAAC,uBAAuB,IACtB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,aAAa,EAAE,IAAI,CAAC,aAAa,GACjC,GACuB,GACK,GACpB,CACjB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { LegendApplicationPluginManager } from '@finos/legend-application';
|
|
17
|
-
import {
|
|
17
|
+
import { Core_PureGraphManagerPlugin, } from '@finos/legend-graph';
|
|
18
18
|
import { Core_LegendStudioApplicationPlugin } from '../components/Core_LegendStudioApplicationPlugin.js';
|
|
19
19
|
export class LegendStudioPluginManager extends LegendApplicationPluginManager {
|
|
20
20
|
pureProtocolProcessorPlugins = [];
|
|
@@ -47,7 +47,7 @@ export class LegendStudioPluginManager extends LegendApplicationPluginManager {
|
|
|
47
47
|
getHiddenPluginNames() {
|
|
48
48
|
return [
|
|
49
49
|
Core_LegendStudioApplicationPlugin.NAME,
|
|
50
|
-
|
|
50
|
+
Core_PureGraphManagerPlugin.NAME,
|
|
51
51
|
];
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendStudioPluginManager.js","sourceRoot":"","sources":["../../src/application/LegendStudioPluginManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"LegendStudioPluginManager.js","sourceRoot":"","sources":["../../src/application/LegendStudioPluginManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EACL,2BAA2B,GAK5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kCAAkC,EAAE,MAAM,qDAAqD,CAAC;AAGzG,MAAM,OAAO,yBACX,SAAQ,8BAA6D;IAG7D,4BAA4B,GAAkC,EAAE,CAAC;IACjE,uBAAuB,GAA6B,EAAE,CAAC;IACvD,gBAAgB,GAAsB,EAAE,CAAC;IAEjD;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,MAAM,CAAC,MAAM;QACX,OAAO,IAAI,yBAAyB,EAAE,CAAC;IACzC,CAAC;IAED,mCAAmC,CACjC,MAAmC;QAEnC,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;IAED,8BAA8B,CAAC,MAA8B;QAC3D,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IAED,uBAAuB,CAAC,MAAuB;QAC7C,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAED,0BAA0B;QACxB,OAAO,CAAC,GAAG,IAAI,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IAED,+BAA+B;QAC7B,OAAO,CAAC,GAAG,IAAI,CAAC,4BAA4B,CAAC,CAAC;IAChD,CAAC;IAED,mBAAmB;QACjB,OAAO,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACpC,CAAC;IAEQ,oBAAoB;QAC3B,OAAO;YACL,kCAAkC,CAAC,IAAI;YACvC,2BAA2B,CAAC,IAAI;SACjC,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { type ElementEditorRenderer, type ElementEditorStateCreator, type ElementIconGetter, type
|
|
16
|
+
import { type ElementEditorRenderer, type ElementEditorStateCreator, type ElementIconGetter, type DragElementClassifier, type ElementClassifier, type NewElementDriverCreator, type NewElementDriverEditorRenderer, type NewElementFromStateCreator, type PureGrammarParserElementSnippetSuggestionsGetter, type PureGrammarParserElementDocumentationGetter, type PureGrammarParserDocumentationGetter, type PureGrammarParserKeywordSuggestionGetter, LegendStudioApplicationPlugin } from '../stores/LegendStudioApplicationPlugin.js';
|
|
17
17
|
import type { ConnectionEditorRenderer, ConnectionValueEditorStateBuilder, DefaultConnectionValueBuilder, DSLMapping_LegendStudioApplicationPlugin_Extension, NewConnectionDriverCreator, RuntimeConnectionTooltipTextBuilder } from '../stores/DSLMapping_LegendStudioApplicationPlugin_Extension.js';
|
|
18
18
|
export declare class DSLExternalFormat_LegendStudioApplicationPlugin extends LegendStudioApplicationPlugin implements DSLMapping_LegendStudioApplicationPlugin_Extension {
|
|
19
19
|
constructor();
|
|
20
20
|
getExtraRequiredDocumentationKeys(): string[];
|
|
21
21
|
getExtraSupportedElementTypes(): string[];
|
|
22
|
-
|
|
22
|
+
getExtraElementClassifiers(): ElementClassifier[];
|
|
23
23
|
getExtraElementIconGetters(): ElementIconGetter[];
|
|
24
24
|
getExtraElementEditorRenderers(): ElementEditorRenderer[];
|
|
25
25
|
getExtraNewElementFromStateCreators(): NewElementFromStateCreator[];
|
|
26
26
|
getExtraElementEditorStateCreators(): ElementEditorStateCreator[];
|
|
27
27
|
getExtraNewElementDriverCreators(): NewElementDriverCreator[];
|
|
28
28
|
getExtraNewElementDriverEditorRenderers(): NewElementDriverEditorRenderer[];
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
getExtraDragElementClassifiers(): DragElementClassifier[];
|
|
30
|
+
getExtraPureGrammarTextEditorDragElementTypes(): string[];
|
|
31
31
|
getExtraRuntimeConnectionTooltipTextBuilders(): RuntimeConnectionTooltipTextBuilder[];
|
|
32
32
|
getExtraDefaultConnectionValueBuilders(): DefaultConnectionValueBuilder[];
|
|
33
33
|
getExtraConnectionValueEditorStateBuilders(): ConnectionValueEditorStateBuilder[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLExternalFormat_LegendStudioApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/DSLExternalFormat_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA2BH,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,
|
|
1
|
+
{"version":3,"file":"DSLExternalFormat_LegendStudioApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/components/DSLExternalFormat_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA2BH,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAA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46
|
getExtraSupportedElementTypes() {
|
|
47
47
|
return [SCHEMA_SET_ELEMENT_TYPE, BINDING_ELEMENT_TYPE];
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
getExtraElementClassifiers() {
|
|
50
50
|
return [
|
|
51
51
|
(element) => {
|
|
52
52
|
if (element instanceof SchemaSet) {
|
|
@@ -140,7 +140,7 @@ export class DSLExternalFormat_LegendStudioApplicationPlugin extends LegendStudi
|
|
|
140
140
|
},
|
|
141
141
|
];
|
|
142
142
|
}
|
|
143
|
-
|
|
143
|
+
getExtraDragElementClassifiers() {
|
|
144
144
|
return [
|
|
145
145
|
(element) => {
|
|
146
146
|
if (element instanceof SchemaSet) {
|
|
@@ -153,7 +153,7 @@ export class DSLExternalFormat_LegendStudioApplicationPlugin extends LegendStudi
|
|
|
153
153
|
},
|
|
154
154
|
];
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
getExtraPureGrammarTextEditorDragElementTypes() {
|
|
157
157
|
return [
|
|
158
158
|
SCHEMA_SET_ELEMENT_PROJECT_EXPLORER_DND_TYPE,
|
|
159
159
|
BINDING_ELEMENT_PROJECT_EXPLORER_DND_TYPE,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLExternalFormat_LegendStudioApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/DSLExternalFormat_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,sEAAsE,CAAC;AACvG,OAAO,EAIL,mCAAmC,EACnC,SAAS,EACT,OAAO,EACP,SAAS,EACT,wBAAwB,EACxB,SAAS,EACT,uCAAuC,EACvC,wCAAwC,EACxC,0CAA0C,GAC3C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,8BA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|
+
{"version":3,"file":"DSLExternalFormat_LegendStudioApplicationPlugin.js","sourceRoot":"","sources":["../../src/components/DSLExternalFormat_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,sEAAsE,CAAC;AACvG,OAAO,EAIL,mCAAmC,EACnC,SAAS,EACT,OAAO,EACP,SAAS,EACT,wBAAwB,EACxB,SAAS,EACT,uCAAuC,EACvC,wCAAwC,EACxC,0CAA0C,GAC3C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,8BAA8B,EAC9B,kCAAkC,EAClC,iCAAiC,GAClC,MAAM,8EAA8E,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,oEAAoE,CAAC;AACnG,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,OAAO,EAcL,6BAA6B,GAC9B,MAAM,4CAA4C,CAAC;AAWpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qFAAqF,CAAC;AAC3H,OAAO,EAAE,kBAAkB,EAAE,MAAM,mFAAmF,CAAC;AAEvH,OAAO,EACL,qCAAqC,EACrC,+BAA+B,GAChC,MAAM,kEAAkE,CAAC;AAE1E,OAAO,EAAE,mDAAmD,EAAE,MAAM,kDAAkD,CAAC;AACvH,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,kCAAkC,EAClC,iCAAiC,EACjC,uCAAuC,GACxC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,kEAAkE,CAAC;AAO1E,MAAM,uBAAuB,GAAG,WAAW,CAAC;AAC5C,MAAM,4CAA4C,GAChD,6BAA6B,CAAC;AAChC,MAAM,oBAAoB,GAAG,SAAS,CAAC;AACvC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,EAAE,0CAA0C;wBAChD,WAAW,EAAE,iBAAiB;wBAC9B,UAAU,EAAE,kCAAkC;qBAC/C;oBACD;wBACE,IAAI,EAAE,0CAA0C;wBAChD,WAAW,EAAE,gBAAgB;wBAC7B,UAAU,EAAE,iCAAiC;qBAC9C;iBACF;gBACH,CAAC,CAAC,SAAS;SAChB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
/// <reference types="react" resolution-mode="require"/>
|
|
17
17
|
import { type RenderResult } from '@testing-library/react';
|
|
18
18
|
import { EditorStore } from '../stores/EditorStore.js';
|
|
19
|
-
import {
|
|
19
|
+
import type { PlainObject } from '@finos/legend-shared';
|
|
20
20
|
import { LegendStudioPluginManager } from '../application/LegendStudioPluginManager.js';
|
|
21
21
|
import type { Entity } from '@finos/legend-storage';
|
|
22
22
|
import { type Project, type ProjectConfiguration, type ProjectStructureVersion, type Revision, type SDLCServerClient, type Version, type Workspace } from '@finos/legend-server-sdlc';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorComponentTestUtils.d.ts","sourceRoot":"","sources":["../../src/components/EditorComponentTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,YAAY,EAKlB,MAAM,wBAAwB,CAAC;AAIhC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,
|
|
1
|
+
{"version":3,"file":"EditorComponentTestUtils.d.ts","sourceRoot":"","sources":["../../src/components/EditorComponentTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,YAAY,EAKlB,MAAM,wBAAwB,CAAC;AAIhC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,KAAK,EAAE,WAAW,EAAuB,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,6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@@ -22,7 +22,6 @@ import { LEGEND_STUDIO_TEST_ID } from './LegendStudioTestID.js';
|
|
|
22
22
|
import { EditorStore } from '../stores/EditorStore.js';
|
|
23
23
|
import { Editor } from './editor/Editor.js';
|
|
24
24
|
import { generateEditorRoute } from '../stores/LegendStudioRouter.js';
|
|
25
|
-
import { MOBX__disableSpyOrMock, MOBX__enableSpyOrMock, } from '@finos/legend-shared';
|
|
26
25
|
import { LegendStudioPluginManager } from '../application/LegendStudioPluginManager.js';
|
|
27
26
|
import { WorkspaceType, TEST__SDLCServerClientProvider, TEST__getTestSDLCServerClient, SDLCServerFeaturesConfiguration, } from '@finos/legend-server-sdlc';
|
|
28
27
|
import { TEST__GraphManagerStateProvider, TEST__getTestGraphManagerState, ELEMENT_PATH_DELIMITER, } from '@finos/legend-graph';
|
|
@@ -127,36 +126,34 @@ export const TEST__openElementFromExplorerTree = async (path, renderResult) => {
|
|
|
127
126
|
*/
|
|
128
127
|
export const TEST__setUpEditor = async (MOCK__editorStore, data) => {
|
|
129
128
|
const { project, workspace, curentRevision, projectVersions, projectConfiguration, entities, latestProjectStructureVersion, availableGenerationDescriptions, projectData, projects, projectDependency, } = data;
|
|
130
|
-
// mock editor initialization data
|
|
131
|
-
MOBX__enableSpyOrMock();
|
|
132
129
|
// SDLC
|
|
133
130
|
jest
|
|
134
131
|
.spyOn(MOCK__editorStore.sdlcServerClient, 'getProject')
|
|
135
|
-
.
|
|
132
|
+
.mockReturnValue(Promise.resolve(project));
|
|
136
133
|
jest
|
|
137
134
|
.spyOn(MOCK__editorStore.sdlcServerClient, 'getWorkspace')
|
|
138
|
-
.
|
|
135
|
+
.mockReturnValue(Promise.resolve(workspace));
|
|
139
136
|
jest
|
|
140
137
|
.spyOn(MOCK__editorStore.sdlcServerClient, 'getVersions')
|
|
141
|
-
.
|
|
138
|
+
.mockReturnValue(Promise.resolve(projectVersions));
|
|
142
139
|
jest
|
|
143
140
|
.spyOn(MOCK__editorStore.sdlcServerClient, 'getRevision')
|
|
144
|
-
.
|
|
141
|
+
.mockReturnValue(Promise.resolve(curentRevision));
|
|
145
142
|
jest
|
|
146
143
|
.spyOn(MOCK__editorStore.sdlcServerClient, 'checkIfWorkspaceIsInConflictResolutionMode')
|
|
147
|
-
.
|
|
144
|
+
.mockReturnValue(Promise.resolve(false));
|
|
148
145
|
jest
|
|
149
146
|
.spyOn(MOCK__editorStore.sdlcServerClient, 'isWorkspaceOutdated')
|
|
150
|
-
.
|
|
147
|
+
.mockReturnValue(Promise.resolve(false));
|
|
151
148
|
jest
|
|
152
149
|
.spyOn(MOCK__editorStore.sdlcServerClient, 'getEntities')
|
|
153
|
-
.
|
|
150
|
+
.mockReturnValue(Promise.resolve(entities));
|
|
154
151
|
jest
|
|
155
152
|
.spyOn(MOCK__editorStore.sdlcServerClient, 'getConfiguration')
|
|
156
|
-
.
|
|
153
|
+
.mockReturnValue(Promise.resolve(projectConfiguration));
|
|
157
154
|
jest
|
|
158
155
|
.spyOn(MOCK__editorStore.sdlcServerClient, 'getLatestProjectStructureVersion')
|
|
159
|
-
.
|
|
156
|
+
.mockReturnValue(Promise.resolve(latestProjectStructureVersion));
|
|
160
157
|
MOCK__editorStore.sdlcServerClient._setFeatures(SDLCServerFeaturesConfiguration.serialization.fromJson({
|
|
161
158
|
canCreateProject: true,
|
|
162
159
|
canCreateVersion: true,
|
|
@@ -164,19 +161,19 @@ export const TEST__setUpEditor = async (MOCK__editorStore, data) => {
|
|
|
164
161
|
// depot
|
|
165
162
|
jest
|
|
166
163
|
.spyOn(MOCK__editorStore.depotServerClient, 'getProjects')
|
|
167
|
-
.
|
|
164
|
+
.mockReturnValue(Promise.resolve(projects));
|
|
168
165
|
jest
|
|
169
166
|
.spyOn(MOCK__editorStore.depotServerClient, 'getProjectById')
|
|
170
|
-
.
|
|
167
|
+
.mockReturnValue(Promise.resolve(projectData));
|
|
171
168
|
jest
|
|
172
169
|
.spyOn(MOCK__editorStore.depotServerClient, 'collectDependencyEntities')
|
|
173
|
-
.
|
|
170
|
+
.mockReturnValue(Promise.resolve(projectDependency));
|
|
174
171
|
// TODO: we need to think of how we will mock these calls when we modularize
|
|
175
172
|
const graphManagerState = MOCK__editorStore.graphManagerState;
|
|
176
173
|
graphManagerState.graphManager.initialize = jest.fn();
|
|
177
174
|
jest
|
|
178
175
|
.spyOn(graphManagerState.graphManager, 'getAvailableGenerationConfigurationDescriptions')
|
|
179
|
-
.
|
|
176
|
+
.mockReturnValue(Promise.resolve(availableGenerationDescriptions));
|
|
180
177
|
// mock change detections (since we do not test them now)
|
|
181
178
|
MOCK__editorStore.changeDetectionState.workspaceLocalLatestRevisionState.buildEntityHashesIndex =
|
|
182
179
|
jest.fn();
|
|
@@ -188,7 +185,6 @@ export const TEST__setUpEditor = async (MOCK__editorStore, data) => {
|
|
|
188
185
|
jest.fn();
|
|
189
186
|
MOCK__editorStore.workspaceUpdaterState.fetchLatestCommittedReviews =
|
|
190
187
|
jest.fn();
|
|
191
|
-
MOBX__disableSpyOrMock();
|
|
192
188
|
const history = createMemoryHistory({
|
|
193
189
|
initialEntries: [
|
|
194
190
|
generateEditorRoute(workspace.projectId, workspace.workspaceId, WorkspaceType.USER),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorComponentTestUtils.js","sourceRoot":"","sources":["../../src/components/EditorComponentTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAEL,MAAM,EACN,SAAS,EACT,OAAO,EACP,SAAS,GACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EA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,IAAI,CAAC,CACzE,CAAC;IACF,mCAAmC;IACnC,MAAM,OAAO,CAAC,GAAG,EAAE,CACjB,MAAM,CAAC,iBAAiB,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAClE,CAAC;IACF,qDAAqD;IACrD,MAAM,OAAO,CAAC,GAAG,EAAE,CACjB,MAAM,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,IAAI,CACtE,IAAI,CACL,CACF,CAAC;IACF,MAAM,OAAO,CAAC,GAAG,EAAE,CACjB,YAAY,CAAC,WAAW,CAAC,qBAAqB,CAAC,cAAc,CAAC,CAC/D,CAAC;IACF,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAClD,iBAA8B,EAC9B,SAYC,EACsB,EAAE,CACzB,iBAAiB,CAAC,iBAAiB,EAAE;IACnC,OAAO,EAAE,0BAA0B,CAAC,OAAO;IAC3C,SAAS,EAAE,0BAA0B,CAAC,SAAS;IAC/C,cAAc,EAAE,0BAA0B,CAAC,eAAe;IAC1D,eAAe,EAAE,EAAE;IACnB,QAAQ,EAAE,EAAE;IACZ,oBAAoB,EAAE,0BAA0B,CAAC,aAAa;IAC9D,6BAA6B,EAC3B,0BAA0B,CAAC,6BAA6B;IAC1D,+BAA+B,EAAE;QAC/B,GAAG,0BAA0B,CAAC,0BAA0B;QACxD,GAAG,0BAA0B,CAAC,wBAAwB;KACvD;IACD,QAAQ,EAAE,EAAE;IACZ,WAAW,EAAE,EAAE;IACf,iBAAiB,EAAE,EAAE;IACrB,GAAG,SAAS;CACb,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export declare const EmbeddedQueryBuilder: (() => JSX.Element | null) & {
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=EmbeddedQueryBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmbeddedQueryBuilder.d.ts","sourceRoot":"","sources":["../../src/components/EmbeddedQueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAyIH,eAAO,MAAM,oBAAoB;;CAa/B,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 { Fragment, useState } from 'react';
|
|
18
|
+
import { observer } from 'mobx-react-lite';
|
|
19
|
+
import { clsx, Dialog, TimesIcon, WindowMaximizeIcon, EmptyWindowRestoreIcon, } from '@finos/legend-art';
|
|
20
|
+
import { flowResult } from 'mobx';
|
|
21
|
+
import { hashObject, noop } from '@finos/legend-shared';
|
|
22
|
+
import { useApplicationNavigationContext, ActionAlertActionType, ActionAlertType, useApplicationStore, } from '@finos/legend-application';
|
|
23
|
+
import { QueryBuilder, } from '@finos/legend-query-builder';
|
|
24
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../stores/LegendStudioApplicationNavigationContext.js';
|
|
25
|
+
import { useEditorStore } from './editor/EditorStoreProvider.js';
|
|
26
|
+
/**
|
|
27
|
+
* NOTE: Query builder is by right a mini-app so we have it hosted in a full-screen modal dialog
|
|
28
|
+
* See https://material.io/components/dialogs#full-screen-dialog
|
|
29
|
+
*/
|
|
30
|
+
const QueryBuilderDialog = observer((props) => {
|
|
31
|
+
const { embeddedQueryBuilderState, queryBuilderState } = props;
|
|
32
|
+
const applicationStore = useApplicationStore();
|
|
33
|
+
const [isMaximized, setIsMaximized] = useState(false);
|
|
34
|
+
const toggleMaximize = () => setIsMaximized(!isMaximized);
|
|
35
|
+
const closeQueryBuilder = () => {
|
|
36
|
+
flowResult(embeddedQueryBuilderState.setEmbeddedQueryBuilderConfiguration(undefined)).catch(applicationStore.alertUnhandledError);
|
|
37
|
+
};
|
|
38
|
+
useApplicationNavigationContext(LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.EMBEDDED_QUERY_BUILDER);
|
|
39
|
+
const confirmCloseQueryBuilder = () => {
|
|
40
|
+
// NOTE: This is poor-man change detection for query
|
|
41
|
+
// in the future, we could consider a similar approach to how we do change detection in Studio
|
|
42
|
+
if (queryBuilderState.changeDetectionState.isEnabled &&
|
|
43
|
+
queryBuilderState.changeDetectionState.queryHashCode !==
|
|
44
|
+
hashObject(queryBuilderState.buildQuery())) {
|
|
45
|
+
applicationStore.setActionAlertInfo({
|
|
46
|
+
message: 'Unsaved changes to your query will be lost if you continue. Do you still want to proceed?',
|
|
47
|
+
type: ActionAlertType.CAUTION,
|
|
48
|
+
actions: [
|
|
49
|
+
{
|
|
50
|
+
label: 'Proceed',
|
|
51
|
+
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
|
52
|
+
handler: applicationStore.guardUnhandledError(async () => closeQueryBuilder()),
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: 'Cancel',
|
|
56
|
+
type: ActionAlertActionType.PROCEED,
|
|
57
|
+
default: true,
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
closeQueryBuilder();
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
return (_jsx(Dialog, { open: Boolean(embeddedQueryBuilderState.queryBuilderState), onClose: noop, classes: {
|
|
67
|
+
root: 'editor-modal__root-container',
|
|
68
|
+
container: 'editor-modal__container',
|
|
69
|
+
paper: 'editor-modal__content query-builder__dialog__container__content',
|
|
70
|
+
}, children: _jsxs("div", { className: clsx('modal modal--dark editor-modal query-builder__dialog', { 'query-builder__dialog--expanded': isMaximized }), children: [_jsx("div", { className: "query-builder__dialog__header", children: _jsxs("div", { className: "query-builder__dialog__header__actions", children: [embeddedQueryBuilderState.actionConfigs.map((config) => (_jsx(Fragment, { children: config.renderer(queryBuilderState) }, config.key))), _jsx("button", { className: "query-builder__dialog__header__action", tabIndex: -1, onClick: toggleMaximize, children: isMaximized ? (_jsx(EmptyWindowRestoreIcon, {})) : (_jsx(WindowMaximizeIcon, {})) }), _jsx("button", { className: "query-builder__dialog__header__action", tabIndex: -1, onClick: confirmCloseQueryBuilder, children: _jsx(TimesIcon, {}) })] }) }), _jsx("div", { className: "query-builder__dialog__content", children: _jsx(QueryBuilder, { queryBuilderState: queryBuilderState }) })] }) }));
|
|
71
|
+
});
|
|
72
|
+
export const EmbeddedQueryBuilder = observer(() => {
|
|
73
|
+
const editorStore = useEditorStore();
|
|
74
|
+
const queryBuilderExtensionState = editorStore.embeddedQueryBuilderState;
|
|
75
|
+
if (!queryBuilderExtensionState.queryBuilderState) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
return (_jsx(QueryBuilderDialog, { embeddedQueryBuilderState: queryBuilderExtensionState, queryBuilderState: queryBuilderExtensionState.queryBuilderState }));
|
|
79
|
+
});
|
|
80
|
+
//# sourceMappingURL=EmbeddedQueryBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmbeddedQueryBuilder.js","sourceRoot":"","sources":["../../src/components/EmbeddedQueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,MAAM,EACN,SAAS,EACT,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EACL,+BAA+B,EAC/B,qBAAqB,EACrB,eAAe,EACf,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,YAAY,GAEb,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,gDAAgD,EAAE,MAAM,uDAAuD,CAAC;AACzH,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAGjE;;;GAGG;AACH,MAAM,kBAAkB,GAAG,QAAQ,CACjC,CAAC,KAGA,EAAE,EAAE;IACH,MAAM,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IAC/D,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MA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
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
|
17
16
|
import type { LegendStudioPluginManager } from '../application/LegendStudioPluginManager.js';
|
|
18
17
|
import type { LegendStudioApplicationConfig } from '../application/LegendStudioApplicationConfig.js';
|
|
19
18
|
export declare const LegendStudioApplicationRoot: (() => JSX.Element) & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendStudioApplication.d.ts","sourceRoot":"","sources":["../../src/components/LegendStudioApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"LegendStudioApplication.d.ts","sourceRoot":"","sources":["../../src/components/LegendStudioApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAgBH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AAgB7F,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iDAAiD,CAAC;AA4DrG,eAAO,MAAM,2BAA2B;;CA+EtC,CAAC;AAEH,eAAO,MAAM,uBAAuB,WAC1B;IACN,MAAM,EAAE,6BAA6B,CAAC;IACtC,aAAa,EAAE,yBAAyB,CAAC;CAC1C;;CA+BF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../src/components/editor/Editor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;
|
|
1
|
+
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../src/components/editor/Editor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA4CH,eAAO,MAAM,MAAM,wBAgQlB,CAAC"}
|
|
@@ -16,8 +16,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
16
16
|
*/
|
|
17
17
|
import { Fragment, useState, useEffect, useCallback } from 'react';
|
|
18
18
|
import { observer } from 'mobx-react-lite';
|
|
19
|
-
import { DndProvider } from 'react-dnd';
|
|
20
|
-
import { HTML5Backend } from 'react-dnd-html5-backend';
|
|
21
19
|
import { useResizeDetector } from 'react-resize-detector';
|
|
22
20
|
import { Backdrop, buildReactHotkeysConfiguration, getControlledResizablePanelProps, ResizablePanel, ResizablePanelGroup, ResizablePanelSplitter, ResizablePanelSplitterLine, useStateWithCallback, } from '@finos/legend-art';
|
|
23
21
|
import { AuxiliaryPanel } from './aux-panel/AuxiliaryPanel.js';
|
|
@@ -36,6 +34,7 @@ import { ActionAlertType, ActionAlertActionType, useApplicationStore, useApplica
|
|
|
36
34
|
import { WorkspaceType } from '@finos/legend-server-sdlc';
|
|
37
35
|
import { WorkspaceSyncConflictResolver } from './side-bar/WorkspaceSyncConflictResolver.js';
|
|
38
36
|
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../stores/LegendStudioApplicationNavigationContext.js';
|
|
37
|
+
import { EmbeddedQueryBuilder } from '../EmbeddedQueryBuilder.js';
|
|
39
38
|
export const Editor = withEditorStore(observer(() => {
|
|
40
39
|
const params = useParams();
|
|
41
40
|
const projectId = params.projectId;
|
|
@@ -161,16 +160,16 @@ export const Editor = withEditorStore(observer(() => {
|
|
|
161
160
|
!editorStore.conflictResolutionState.hasResolvedAllConflicts;
|
|
162
161
|
const promptComponent = (_jsx(Prompt, { when: onNavigationChangeIndicator, message: handleRouteNavigationBlocking }));
|
|
163
162
|
useApplicationNavigationContext(LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.EDITOR);
|
|
164
|
-
return (_jsx(
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
163
|
+
return (_jsx("div", { className: "app__page", children: _jsxs("div", { className: "editor", children: [promptComponent, _jsxs(GlobalHotKeys, { keyMap: hotkeyMapping, handlers: hotkeyHandlers, allowChanges: true, children: [_jsxs("div", { className: "editor__body", children: [_jsx(ActivityBar, {}), _jsx(Backdrop, { className: "backdrop", open: editorStore.backdrop }), _jsx("div", { ref: ref, className: "editor__content-container", children: _jsx("div", { className: "editor__content", children: _jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsx(ResizablePanel, { ...getControlledResizablePanelProps(editorStore.sideBarDisplayState.size === 0, {
|
|
164
|
+
onStopResize: resizeSideBar,
|
|
165
|
+
size: editorStore.sideBarDisplayState.size,
|
|
166
|
+
}), direction: 1, children: _jsx(SideBar, {}) }), _jsx(ResizablePanelSplitter, {}), _jsx(ResizablePanel, { minSize: 300, children: _jsxs(ResizablePanelGroup, { orientation: "horizontal", children: [_jsxs(ResizablePanel, { ...getControlledResizablePanelProps(editorStore.auxPanelDisplayState.isMaximized), children: [(isResolvingConflicts || editable) &&
|
|
167
|
+
editorStore.isInFormMode && _jsx(EditPanel, {}), editable && editorStore.isInGrammarTextMode && (_jsx(GrammarTextEditor, {})), !editable && _jsx(EditPanelSplashScreen, {})] }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: editorStore.auxPanelDisplayState.isMaximized
|
|
168
|
+
? 'transparent'
|
|
169
|
+
: 'var(--color-dark-grey-250)' }) }), _jsx(ResizablePanel, { ...getControlledResizablePanelProps(editorStore.auxPanelDisplayState.size === 0, {
|
|
170
|
+
onStopResize: resizeAuxPanel,
|
|
171
|
+
size: editorStore.auxPanelDisplayState.size,
|
|
172
|
+
}), direction: -1, children: _jsx(AuxiliaryPanel, {}) })] }) })] }) }) })] }), _jsx(StatusBar, { actionsDisabled: !editable }), editable && _jsx(ProjectSearchCommand, {}), editorStore.localChangesState.workspaceSyncState
|
|
173
|
+
.workspaceSyncConflictResolutionState.showModal && (_jsx(WorkspaceSyncConflictResolver, {})), _jsx(EmbeddedQueryBuilder, {}), extraEditorExtensionComponents] })] }) }));
|
|
175
174
|
}));
|
|
176
175
|
//# sourceMappingURL=Editor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.js","sourceRoot":"","sources":["../../../src/components/editor/Editor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Editor.js","sourceRoot":"","sources":["../../../src/components/editor/Editor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAEL,QAAQ,EACR,8BAA8B,EAC9B,gCAAgC,EAChC,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,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W,CAAC,oBAAoB,CAAC,WAAW,CAC7C,aAEA,CAAC,oBAAoB,IAAI,QAAQ,CAAC;wEACjC,WAAW,CAAC,YAAY,IAAI,KAAC,SAAS,KAAG,EAC1C,QAAQ,IAAI,WAAW,CAAC,mBAAmB,IAAI,CAC9C,KAAC,iBAAiB,KAAG,CACtB,EACA,CAAC,QAAQ,IAAI,KAAC,qBAAqB,KAAG,IACxB,EACjB,KAAC,sBAAsB,cACrB,KAAC,0BAA0B,IACzB,KAAK,EACH,WAAW,CAAC,oBAAoB,CAAC,WAAW;wEAC1C,CAAC,CAAC,aAAa;wEACf,CAAC,CAAC,4BAA4B,GAElC,GACqB,EACzB,KAAC,cAAc,OACT,gCAAgC,CAClC,WAAW,CAAC,oBAAoB,CAAC,IAAI,KAAK,CAAC,EAC3C;oEACE,YAAY,EAAE,cAAc;oEAC5B,IAAI,EAAE,WAAW,CAAC,oBAAoB,CAAC,IAAI;iEAC5C,CACF,EACD,SAAS,EAAE,CAAC,CAAC,YAEb,KAAC,cAAc,KAAG,GACH,IACG,GACP,IACG,GAClB,GACF,IACF,EACN,KAAC,SAAS,IAAC,eAAe,EAAE,CAAC,QAAQ,GAAI,EACxC,QAAQ,IAAI,KAAC,oBAAoB,KAAG,EACpC,WAAW,CAAC,iBAAiB,CAAC,kBAAkB;6BAC9C,oCAAoC,CAAC,SAAS,IAAI,CACnD,KAAC,6BAA6B,KAAG,CAClC,EACD,KAAC,oBAAoB,KAAG,EACvB,8BAA8B,IACjB,IACZ,GACF,CACP,CAAC;AACJ,CAAC,CAAC,CACH,CAAC"}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
|
17
16
|
export declare const StatusBar: ((props: {
|
|
18
17
|
actionsDisabled: boolean;
|
|
19
18
|
}) => JSX.Element) & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../../src/components/editor/StatusBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../../src/components/editor/StatusBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA6BH,eAAO,MAAM,SAAS,WAAoB;IAAE,eAAe,EAAE,OAAO,CAAA;CAAE;;CA6TpE,CAAC"}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
|
17
16
|
export declare const AuxiliaryPanel: (() => JSX.Element) & {
|
|
18
17
|
displayName: string;
|
|
19
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuxiliaryPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/aux-panel/AuxiliaryPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"AuxiliaryPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/aux-panel/AuxiliaryPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,eAAO,MAAM,cAAc;;CA6GzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Console.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/aux-panel/Console.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"Console.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/aux-panel/Console.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,eAAO,MAAM,OAAO;;CAIlB,CAAC"}
|