@finos/legend-application-studio 28.17.10 → 28.17.12
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/application/LegendStudio.js +2 -3
- package/lib/application/LegendStudio.js.map +1 -1
- package/lib/components/ElementIconUtils.js +23 -24
- package/lib/components/ElementIconUtils.js.map +1 -1
- package/lib/components/LegendStudioAppInfo.js +7 -8
- package/lib/components/LegendStudioAppInfo.js.map +1 -1
- package/lib/components/LegendStudioFrameworkProvider.js +3 -4
- package/lib/components/LegendStudioFrameworkProvider.js.map +1 -1
- package/lib/components/LegendStudioWebApplication.d.ts +2 -2
- package/lib/components/LegendStudioWebApplication.js +13 -14
- package/lib/components/LegendStudioWebApplication.js.map +1 -1
- package/lib/components/ShowcaseManager.d.ts +1 -1
- package/lib/components/ShowcaseManager.js +29 -30
- package/lib/components/ShowcaseManager.js.map +1 -1
- package/lib/components/editor/ActivityBar.d.ts +1 -1
- package/lib/components/editor/ActivityBar.js +27 -28
- package/lib/components/editor/ActivityBar.js.map +1 -1
- package/lib/components/editor/Editor.js +8 -9
- package/lib/components/editor/Editor.js.map +1 -1
- package/lib/components/editor/EditorStoreProvider.js +3 -4
- package/lib/components/editor/EditorStoreProvider.js.map +1 -1
- package/lib/components/editor/EmbeddedQueryBuilder.d.ts +1 -1
- package/lib/components/editor/EmbeddedQueryBuilder.js +5 -6
- package/lib/components/editor/EmbeddedQueryBuilder.js.map +1 -1
- package/lib/components/editor/QuickInput.d.ts +1 -1
- package/lib/components/editor/QuickInput.js +5 -6
- package/lib/components/editor/QuickInput.js.map +1 -1
- package/lib/components/editor/StatusBar.d.ts +1 -1
- package/lib/components/editor/StatusBar.js +11 -12
- package/lib/components/editor/StatusBar.js.map +1 -1
- package/lib/components/editor/__test-utils__/EditorComponentTestUtils.js +2 -3
- package/lib/components/editor/__test-utils__/EditorComponentTestUtils.js.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.js +4 -5
- package/lib/components/editor/command-center/ProjectSearchCommand.js.map +1 -1
- package/lib/components/editor/editor-group/ArtifactGenerationViewer.d.ts +1 -1
- package/lib/components/editor/editor-group/ArtifactGenerationViewer.js +2 -3
- package/lib/components/editor/editor-group/ArtifactGenerationViewer.js.map +1 -1
- package/lib/components/editor/editor-group/EditorGroup.d.ts +1 -1
- package/lib/components/editor/editor-group/EditorGroup.js +39 -40
- package/lib/components/editor/editor-group/EditorGroup.js.map +1 -1
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.js +11 -12
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/GrammarTextEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/GrammarTextEditor.js +4 -5
- package/lib/components/editor/editor-group/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/editor-group/ModelImporter.d.ts +1 -1
- package/lib/components/editor/editor-group/ModelImporter.js +14 -15
- package/lib/components/editor/editor-group/ModelImporter.js.map +1 -1
- package/lib/components/editor/editor-group/ProtocolValueBuilder.d.ts +1 -1
- package/lib/components/editor/editor-group/ProtocolValueBuilder.js +14 -15
- package/lib/components/editor/editor-group/ProtocolValueBuilder.js.map +1 -1
- package/lib/components/editor/editor-group/RuntimeEditor.d.ts +4 -4
- package/lib/components/editor/editor-group/RuntimeEditor.js +29 -30
- package/lib/components/editor/editor-group/RuntimeEditor.js.map +1 -1
- package/lib/components/editor/editor-group/UnsupportedElementEditor.d.ts +2 -2
- package/lib/components/editor/editor-group/UnsupportedElementEditor.js +3 -4
- package/lib/components/editor/editor-group/UnsupportedElementEditor.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/ConnectionEditor.d.ts +2 -2
- package/lib/components/editor/editor-group/connection-editor/ConnectionEditor.js +9 -10
- package/lib/components/editor/editor-group/connection-editor/ConnectionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.d.ts +2 -2
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.js +10 -11
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseEditorHelper.js +10 -11
- package/lib/components/editor/editor-group/connection-editor/DatabaseEditorHelper.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseModelBuilder.d.ts +3 -3
- package/lib/components/editor/editor-group/connection-editor/DatabaseModelBuilder.js +5 -6
- package/lib/components/editor/editor-group/connection-editor/DatabaseModelBuilder.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseSchemaExplorer.d.ts +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseSchemaExplorer.js +13 -14
- package/lib/components/editor/editor-group/connection-editor/DatabaseSchemaExplorer.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/FlatDataConnectionEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/connection-editor/FlatDataConnectionEditor.js +2 -3
- package/lib/components/editor/editor-group/connection-editor/FlatDataConnectionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.d.ts +2 -2
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js +54 -55
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/post-processor-editor/MapperPostProcessorEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/connection-editor/post-processor-editor/MapperPostProcessorEditor.js +7 -8
- package/lib/components/editor/editor-group/connection-editor/post-processor-editor/MapperPostProcessorEditor.js.map +1 -1
- package/lib/components/editor/editor-group/data-editor/DataElementEditor.d.ts +3 -3
- package/lib/components/editor/editor-group/data-editor/DataElementEditor.js +6 -7
- package/lib/components/editor/editor-group/data-editor/DataElementEditor.js.map +1 -1
- package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.d.ts +5 -5
- package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.js +17 -18
- package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.js.map +1 -1
- package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.js +9 -10
- package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.js.map +1 -1
- package/lib/components/editor/editor-group/database/IsolatedQueryDatabase.js +5 -6
- package/lib/components/editor/editor-group/database/IsolatedQueryDatabase.js.map +1 -1
- package/lib/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.d.ts +2 -2
- package/lib/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.js +10 -11
- package/lib/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.js.map +1 -1
- package/lib/components/editor/editor-group/diff-editor/EntityDiffView.d.ts +2 -2
- package/lib/components/editor/editor-group/diff-editor/EntityDiffView.js +5 -6
- package/lib/components/editor/editor-group/diff-editor/EntityDiffView.js.map +1 -1
- package/lib/components/editor/editor-group/diff-editor/ProjectConfigDiffView.d.ts +1 -1
- package/lib/components/editor/editor-group/diff-editor/ProjectConfigDiffView.js +2 -3
- package/lib/components/editor/editor-group/diff-editor/ProjectConfigDiffView.js.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/ElementGenerationEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/ElementGenerationEditor.js +5 -6
- package/lib/components/editor/editor-group/element-generation-editor/ElementGenerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/ElementNativeView.d.ts +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/ElementNativeView.js +2 -3
- package/lib/components/editor/editor-group/element-generation-editor/ElementNativeView.js.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/ElementXTGenerationEditor.d.ts +2 -2
- package/lib/components/editor/editor-group/element-generation-editor/ElementXTGenerationEditor.js +6 -7
- package/lib/components/editor/editor-group/element-generation-editor/ElementXTGenerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.d.ts +3 -3
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js +26 -27
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileSystemViewer.d.ts +3 -3
- package/lib/components/editor/editor-group/element-generation-editor/FileSystemViewer.js +12 -13
- package/lib/components/editor/editor-group/element-generation-editor/FileSystemViewer.js.map +1 -1
- package/lib/components/editor/editor-group/end-to-end-flow-editor/ConnectionToQueryWorkflowEditor.d.ts +6 -6
- package/lib/components/editor/editor-group/end-to-end-flow-editor/ConnectionToQueryWorkflowEditor.js +16 -17
- package/lib/components/editor/editor-group/end-to-end-flow-editor/ConnectionToQueryWorkflowEditor.js.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.d.ts +2 -2
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js +10 -11
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_ExternalFormatConnectionEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_ExternalFormatConnectionEditor.js +2 -3
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_ExternalFormatConnectionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.d.ts +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.js +2 -3
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.js.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts +2 -2
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +15 -16
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js +5 -6
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.js +38 -39
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js +12 -13
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/INTERNAL__UnknownFunctionActivatorEdtior.d.ts +1 -1
- package/lib/components/editor/editor-group/function-activator/INTERNAL__UnknownFunctionActivatorEdtior.js +3 -4
- package/lib/components/editor/editor-group/function-activator/INTERNAL__UnknownFunctionActivatorEdtior.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js +5 -6
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.js +32 -33
- package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.d.ts +2 -2
- package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.js +8 -9
- package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.d.ts +2 -2
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js +10 -11
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.js +6 -7
- package/lib/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/FlatDataRecordTypeTree.js +7 -8
- package/lib/components/editor/editor-group/mapping-editor/FlatDataRecordTypeTree.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.d.ts +2 -2
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.js +11 -12
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.js +5 -6
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.js +19 -20
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.d.ts +7 -7
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.js +24 -25
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.js +4 -5
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExplorer.d.ts +2 -2
- package/lib/components/editor/editor-group/mapping-editor/MappingExplorer.js +11 -12
- package/lib/components/editor/editor-group/mapping-editor/MappingExplorer.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js +29 -30
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestsExplorer.d.ts +2 -2
- package/lib/components/editor/editor-group/mapping-editor/MappingTestsExplorer.js +11 -12
- package/lib/components/editor/editor-group/mapping-editor/MappingTestsExplorer.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.d.ts +1 -1
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.js +8 -9
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.js +4 -5
- package/lib/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/PropertyMappingsEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/mapping-editor/PropertyMappingsEditor.js +14 -15
- package/lib/components/editor/editor-group/mapping-editor/PropertyMappingsEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.js +9 -10
- package/lib/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/TypeTree.js +8 -9
- package/lib/components/editor/editor-group/mapping-editor/TypeTree.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/legacy/DEPRECATED__MappingTestEditor.d.ts +8 -8
- package/lib/components/editor/editor-group/mapping-editor/legacy/DEPRECATED__MappingTestEditor.js +21 -22
- package/lib/components/editor/editor-group/mapping-editor/legacy/DEPRECATED__MappingTestEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.d.ts +1 -1
- package/lib/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.js +4 -5
- package/lib/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.js +10 -11
- package/lib/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/relational/TableOrViewSourceTree.js +8 -9
- package/lib/components/editor/editor-group/mapping-editor/relational/TableOrViewSourceTree.js.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.js +21 -22
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js +26 -27
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js +10 -11
- package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/NewServiceModal.d.ts +1 -1
- package/lib/components/editor/editor-group/service-editor/NewServiceModal.js +5 -6
- package/lib/components/editor/editor-group/service-editor/NewServiceModal.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceEditor.js +24 -25
- package/lib/components/editor/editor-group/service-editor/ServiceEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.d.ts +3 -3
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.js +32 -33
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js +10 -11
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServicePostValidationEditor.d.ts +2 -2
- package/lib/components/editor/editor-group/service-editor/ServicePostValidationEditor.js +12 -13
- package/lib/components/editor/editor-group/service-editor/ServicePostValidationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.js +11 -12
- package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.d.ts +7 -7
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.js +29 -30
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.d.ts +2 -2
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.js +5 -6
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.d.ts +2 -2
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js +22 -23
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js.map +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.d.ts +5 -5
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js +30 -31
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js +7 -8
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.d.ts +2 -2
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.js +30 -31
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassQueryBuilder.d.ts +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassQueryBuilder.js +10 -11
- package/lib/components/editor/editor-group/uml-editor/ClassQueryBuilder.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/EnumerationEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/uml-editor/EnumerationEditor.js +7 -8
- package/lib/components/editor/editor-group/uml-editor/EnumerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ProfileEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/uml-editor/ProfileEditor.js +7 -8
- package/lib/components/editor/editor-group/uml-editor/ProfileEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/PropertyEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/uml-editor/PropertyEditor.js +6 -7
- package/lib/components/editor/editor-group/uml-editor/PropertyEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/StereotypeSelector.d.ts +1 -1
- package/lib/components/editor/editor-group/uml-editor/StereotypeSelector.js +6 -7
- package/lib/components/editor/editor-group/uml-editor/StereotypeSelector.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/TaggedValueEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/uml-editor/TaggedValueEditor.js +9 -10
- package/lib/components/editor/editor-group/uml-editor/TaggedValueEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/UMLEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/uml-editor/UMLEditor.js +2 -3
- package/lib/components/editor/editor-group/uml-editor/UMLEditor.js.map +1 -1
- package/lib/components/editor/panel-group/ConsolePanel.d.ts +1 -1
- package/lib/components/editor/panel-group/ConsolePanel.js +2 -3
- package/lib/components/editor/panel-group/ConsolePanel.js.map +1 -1
- package/lib/components/editor/panel-group/DevToolPanel.d.ts +1 -1
- package/lib/components/editor/panel-group/DevToolPanel.js +6 -7
- package/lib/components/editor/panel-group/DevToolPanel.js.map +1 -1
- package/lib/components/editor/panel-group/PanelGroup.d.ts +1 -1
- package/lib/components/editor/panel-group/PanelGroup.js +5 -6
- package/lib/components/editor/panel-group/PanelGroup.js.map +1 -1
- package/lib/components/editor/panel-group/ProblemsPanel.d.ts +1 -1
- package/lib/components/editor/panel-group/ProblemsPanel.js +5 -6
- package/lib/components/editor/panel-group/ProblemsPanel.js.map +1 -1
- package/lib/components/editor/panel-group/SQLPlaygroundPanel.d.ts +1 -1
- package/lib/components/editor/panel-group/SQLPlaygroundPanel.js +18 -19
- package/lib/components/editor/panel-group/SQLPlaygroundPanel.js.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts +2 -2
- package/lib/components/editor/side-bar/CreateNewElementModal.js +26 -27
- package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.d.ts +1 -1
- package/lib/components/editor/side-bar/Explorer.js +36 -37
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.d.ts +1 -1
- package/lib/components/editor/side-bar/LocalChanges.js +12 -13
- package/lib/components/editor/side-bar/LocalChanges.js.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts +2 -2
- package/lib/components/editor/side-bar/ProjectOverview.js +28 -29
- package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
- package/lib/components/editor/side-bar/RegisterService.d.ts +1 -1
- package/lib/components/editor/side-bar/RegisterService.js +17 -18
- package/lib/components/editor/side-bar/RegisterService.js.map +1 -1
- package/lib/components/editor/side-bar/SideBar.d.ts +1 -1
- package/lib/components/editor/side-bar/SideBar.js +12 -13
- package/lib/components/editor/side-bar/SideBar.js.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.js +27 -28
- package/lib/components/editor/side-bar/WorkflowManager.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts +2 -2
- package/lib/components/editor/side-bar/WorkspaceReview.js +8 -9
- package/lib/components/editor/side-bar/WorkspaceReview.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js +9 -10
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.js +6 -7
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.js +6 -7
- package/lib/components/editor/side-bar/WorkspaceUpdater.js.map +1 -1
- package/lib/components/editor/side-bar/end-to-end-workflow/EndToEndWorkflows.d.ts +1 -1
- package/lib/components/editor/side-bar/end-to-end-workflow/EndToEndWorkflows.js +6 -7
- package/lib/components/editor/side-bar/end-to-end-workflow/EndToEndWorkflows.js.map +1 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts +2 -2
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.js +32 -33
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js +3 -4
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.js +7 -8
- package/lib/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/lazy-text-editor/LazyTextEditor.js +10 -11
- package/lib/components/lazy-text-editor/LazyTextEditor.js.map +1 -1
- package/lib/components/project-reviewer/ProjectReviewSideBar.d.ts +1 -1
- package/lib/components/project-reviewer/ProjectReviewSideBar.js +7 -8
- package/lib/components/project-reviewer/ProjectReviewSideBar.js.map +1 -1
- package/lib/components/project-reviewer/ProjectReviewStoreProvider.js +3 -4
- package/lib/components/project-reviewer/ProjectReviewStoreProvider.js.map +1 -1
- package/lib/components/project-reviewer/ProjectReviewer.js +5 -6
- package/lib/components/project-reviewer/ProjectReviewer.js.map +1 -1
- package/lib/components/project-reviewer/ProjectReviewerPanel.d.ts +1 -1
- package/lib/components/project-reviewer/ProjectReviewerPanel.js +9 -10
- package/lib/components/project-reviewer/ProjectReviewerPanel.js.map +1 -1
- package/lib/components/project-view/ProjectViewer.js +23 -24
- package/lib/components/project-view/ProjectViewer.js.map +1 -1
- package/lib/components/project-view/ProjectViewerStoreProvider.js +3 -4
- package/lib/components/project-view/ProjectViewerStoreProvider.js.map +1 -1
- package/lib/components/showcase/ShowcaseViewer.js +19 -20
- package/lib/components/showcase/ShowcaseViewer.js.map +1 -1
- package/lib/components/showcase/ShowcaseViewerStoreProvider.js +3 -4
- package/lib/components/showcase/ShowcaseViewerStoreProvider.js.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.d.ts +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.js +15 -16
- package/lib/components/workspace-setup/CreateProjectModal.js.map +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.js +7 -8
- package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -1
- package/lib/components/workspace-setup/ProjectSelectorUtils.js +6 -7
- package/lib/components/workspace-setup/ProjectSelectorUtils.js.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSelectorUtils.js +2 -3
- package/lib/components/workspace-setup/WorkspaceSelectorUtils.js.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.js +27 -28
- package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/RuntimeEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/RuntimeEditorState.js +8 -5
- package/lib/stores/editor/editor-state/element-editor-state/RuntimeEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.js +2 -2
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.js +4 -3
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
- package/lib/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.js +10 -8
- package/lib/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.js.map +1 -1
- package/package.json +12 -12
- package/src/stores/editor/editor-state/element-editor-state/RuntimeEditorState.ts +10 -7
- package/src/stores/editor/editor-state/element-editor-state/function-activator/testable/FunctionTestableState.ts +2 -2
- package/src/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +4 -2
- package/src/stores/graph-modifier/DSL_Mapping_GraphModifierHelper.ts +14 -12
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PropertyMappingsEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/mapping-editor/PropertyMappingsEditor.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"PropertyMappingsEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/mapping-editor/PropertyMappingsEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAEL,kBAAkB,GACnB,MAAM,2FAA2F,CAAC;AAKnG,OAAO,EACL,wBAAwB,EACxB,kCAAkC,GACnC,MAAM,2GAA2G,CAAC;AACnH,OAAO,EACL,IAAI,EACJ,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAEL,sCAAsC,GACvC,MAAM,+GAA+G,CAAC;AACvH,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAC;AAKlG,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAIL,wBAAwB,EACxB,KAAK,EACL,iBAAiB,EACjB,aAAa,EACb,6BAA6B,EAC7B,+BAA+B,EAC/B,0BAA0B,EAC1B,iCAAiC,EACjC,uCAAuC,EACvC,qBAAqB,GAEtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,+CAA+C,EAC/C,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,sEAAsE,CAAC;AAC9E,OAAO,EACL,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,yDAAyD,CAAC;AAEjE,OAAO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pureInstanceSetImplementationState: PureInstanceSetImplementationState;
|
20
20
|
setImplementationHasParserError: boolean;
|
21
21
|
isReadOnly: boolean;
|
22
|
-
}) => import("react/jsx-
|
22
|
+
}) => import("react/jsx-runtime").JSX.Element | null) & {
|
23
23
|
displayName: string;
|
24
24
|
};
|
25
25
|
//# sourceMappingURL=PurePropertyMappingEditor.d.ts.map
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-application-studio/src/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -36,7 +35,7 @@ const SimplePropertyMappingEditor = observer((props) => {
|
|
36
35
|
const matchedExpectedTypeLabel = () => Boolean(expectedType) &&
|
37
36
|
propertyMappingState.instanceSetImplementationState.selectedType ===
|
38
37
|
expectedType;
|
39
|
-
return (
|
38
|
+
return (_jsx("div", { className: "property-mapping-editor__entry__container", children: _jsx("div", { ref: drop, className: "property-mapping-editor__entry", children: _jsx(InlineLambdaEditor, { className: clsx({ 'lambda-editor--dnd-match': canDrop }), disabled: transformProps.disableTransform, lambdaEditorState: propertyMappingState, forceBackdrop: transformProps.forceBackdrop, expectedType: expectedType, onExpectedTypeLabelSelect: onExpectedTypeLabelSelect, matchedExpectedType: matchedExpectedTypeLabel }) }) }));
|
40
39
|
});
|
41
40
|
const EnumerationPropertyMappingEditor = observer((props) => {
|
42
41
|
const { propertyMappingState, drop, dragItem, dragItemType, transformProps, isReadOnly, } = props;
|
@@ -82,7 +81,7 @@ const EnumerationPropertyMappingEditor = observer((props) => {
|
|
82
81
|
((dragItem.data?.type && dragItem.data.type === expectedType) ||
|
83
82
|
(dragItemType === CORE_DND_TYPE.TYPE_TREE_ENUM &&
|
84
83
|
dragItem.data?.parent === expectedType));
|
85
|
-
return (
|
84
|
+
return (_jsx("div", { className: "property-mapping-editor__entry__container", children: _jsxs("div", { ref: drop, className: "property-mapping-editor__entry", children: [_jsxs("div", { className: "property-mapping-editor__entry__enumeration-mapping-selector", children: [_jsx(CustomSelectorInput, { disabled: options.length <= 1 || isReadOnly, options: options, onChange: handleSelectionChange, value: { value: transformerLabel, label: transformerLabel }, placeholder: "Choose an existing enumeration mapping" }), _jsx("button", { className: "property-mapping-editor__entry__visit-btn", onClick: visit, tabIndex: -1, title: "Visit enumeration mapping", children: _jsx(ArrowCircleRightIcon, {}) })] }), _jsx(InlineLambdaEditor, { className: clsx('property-mapping-editor__entry__enumeration__transform', { 'lambda-editor--dnd-match': canDrop }), disabled: transformProps.disableTransform, lambdaEditorState: propertyMappingState, forceBackdrop: transformProps.forceBackdrop, expectedType: expectedType, onExpectedTypeLabelSelect: onExpectedTypeLabelSelect, matchedExpectedType: matchedExpectedTypeLabel })] }) }));
|
86
85
|
});
|
87
86
|
const ClassPropertyMappingEditor = observer((props) => {
|
88
87
|
const { propertyMappingState, drop, dragItem, transformProps } = props;
|
@@ -90,7 +89,7 @@ const ClassPropertyMappingEditor = observer((props) => {
|
|
90
89
|
const mappingEditorState = editorStore.tabManagerState.getCurrentEditorState(MappingEditorState);
|
91
90
|
const propertyMapping = propertyMappingState.propertyMapping;
|
92
91
|
const isDefaultId = propertyMapping.targetSetImplementation?.value.id.isDefault;
|
93
|
-
const target = isDefaultId ? (
|
92
|
+
const target = isDefaultId ? (_jsx("div", { className: "property-mapping-editor__entry__id__label__default-badge", children: "default" })) : (propertyMapping.targetSetImplementation?.value.id.value);
|
94
93
|
const expectedType = getExpectedReturnType(propertyMapping.targetSetImplementation?.value);
|
95
94
|
const onExpectedTypeLabelSelect = () => propertyMappingState.instanceSetImplementationState.setSelectedType(expectedType);
|
96
95
|
const matchedExpectedTypeLabel = () => Boolean(expectedType) &&
|
@@ -104,9 +103,9 @@ const ClassPropertyMappingEditor = observer((props) => {
|
|
104
103
|
};
|
105
104
|
// Drag and Drop
|
106
105
|
const canDrop = dragItem?.data?.type && dragItem.data.type === expectedType;
|
107
|
-
return (
|
106
|
+
return (_jsx("div", { className: "property-mapping-editor__entry__container", children: _jsxs("div", { ref: drop, className: "property-mapping-editor__entry", children: [_jsxs("div", { className: "property-mapping-editor__entry__id", children: [_jsx("div", { className: clsx('property-mapping-editor__entry__id__label', {
|
108
107
|
'property-mapping-editor__entry__id__label--default': isDefaultId,
|
109
|
-
}), children: target }
|
108
|
+
}), children: target }), _jsx("button", { className: "property-mapping-editor__entry__visit-btn", onClick: visit, tabIndex: -1, title: "Visit class mapping", children: _jsx(ArrowCircleRightIcon, {}) })] }), _jsx(InlineLambdaEditor, { className: clsx({ 'lambda-editor--dnd-match': canDrop }), disabled: transformProps.disableTransform, lambdaEditorState: propertyMappingState, forceBackdrop: transformProps.forceBackdrop, expectedType: expectedType, onExpectedTypeLabelSelect: onExpectedTypeLabelSelect, matchedExpectedType: matchedExpectedTypeLabel })] }) }));
|
110
109
|
});
|
111
110
|
export const PurePropertyMappingEditor = observer((props) => {
|
112
111
|
const { purePropertyMappingState, pureInstanceSetImplementationState, setImplementationHasParserError, isReadOnly, } = props;
|
@@ -157,11 +156,11 @@ export const PurePropertyMappingEditor = observer((props) => {
|
|
157
156
|
case CLASS_PROPERTY_TYPE.UNIT:
|
158
157
|
case CLASS_PROPERTY_TYPE.MEASURE:
|
159
158
|
case CLASS_PROPERTY_TYPE.PRIMITIVE:
|
160
|
-
return (
|
159
|
+
return (_jsx(SimplePropertyMappingEditor, { propertyMappingState: purePropertyMappingState, drop: drop, dragItem: dragItem, transformProps: transformProps, isReadOnly: isReadOnly }));
|
161
160
|
case CLASS_PROPERTY_TYPE.ENUMERATION:
|
162
|
-
return (
|
161
|
+
return (_jsx(EnumerationPropertyMappingEditor, { propertyMappingState: purePropertyMappingState, drop: drop, dragItem: dragItem, dragItemType: dragItemType, transformProps: transformProps, isReadOnly: isReadOnly }));
|
163
162
|
case CLASS_PROPERTY_TYPE.CLASS:
|
164
|
-
return (
|
163
|
+
return (_jsx(ClassPropertyMappingEditor, { propertyMappingState: purePropertyMappingState, drop: drop, dragItem: dragItem, transformProps: transformProps, isReadOnly: isReadOnly }));
|
165
164
|
default:
|
166
165
|
return null;
|
167
166
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PurePropertyMappingEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"PurePropertyMappingEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,aAAa,EACb,cAAc,GACf,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAEL,kBAAkB,GACnB,MAAM,2FAA2F,CAAC;AAKnG,OAAO,EACL,IAAI,EACJ,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA0B,OAAO,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,mCAAmC,EACnC,iBAAiB,EACjB,mCAAmC,GACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kCAAkC,EAAE,MAAM,sEAAsE,CAAC;AAC1H,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,2BAA2B,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EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,GACtB,CACH,CAAC;QACJ;YACE,OAAO,IAAI,CAAC;IAChB,CAAC;AACH,CAAC,CACF,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-application-studio/src/components/editor/editor-group/mapping-editor/TypeTree.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -100,17 +99,17 @@ const TypeTreeNodeContainer = (props) => {
|
|
100
99
|
const { selectedType } = innerProps;
|
101
100
|
const [, dragRef] = useDrag(() => ({ type: node.dndType, item: new TypeDragSource(node) }), [node]);
|
102
101
|
const isExpandable = Boolean(node.childrenIds?.length);
|
103
|
-
const nodeTypeIcon = node.type ? (getClassPropertyIcon(node.type)) : (
|
104
|
-
const nodeExpandIcon = isExpandable ? (node.isOpen ? (
|
102
|
+
const nodeTypeIcon = node.type ? (getClassPropertyIcon(node.type)) : (_jsx(PURE_EnumValueIcon, {}));
|
103
|
+
const nodeExpandIcon = isExpandable ? (node.isOpen ? (_jsx(ChevronDownIcon, {})) : (_jsx(ChevronRightIcon, {}))) : (_jsx("div", {}));
|
105
104
|
const selectNode = () => onNodeSelect?.(node);
|
106
|
-
return (
|
105
|
+
return (_jsxs("div", { className: clsx('tree-view__node__container', {
|
107
106
|
'type-tree__node__container--highlighted': node.type === selectedType,
|
108
107
|
}), onClick: selectNode, ref: dragRef, style: {
|
109
108
|
paddingLeft: `${(level - 1) * (stepPaddingInRem ?? 1)}rem`,
|
110
109
|
display: 'flex',
|
111
|
-
}, children: [
|
110
|
+
}, children: [_jsxs("div", { className: "tree-view__node__icon type-tree__node__icon", children: [_jsx("div", { className: "tree-view__node__expand-icon", children: nodeExpandIcon }), _jsx("div", { className: "type-tree__type-icon", children: nodeTypeIcon })] }), _jsxs("div", { className: "tree-view__node__label type-tree__node__label", children: [_jsx("button", { tabIndex: -1, title: `${node.id}`, children: node.label }), Boolean(node.type) && (_jsx("div", { className: "type-tree__node__type", children: _jsx("button", { className: clsx('type-tree__node__type__label', {
|
112
111
|
'type-tree__node__type__label--highlighted': node.type === selectedType,
|
113
|
-
}), tabIndex: -1, title: node.type?.path ?? '', children: node.type?.name ?? 'unknown' }
|
112
|
+
}), tabIndex: -1, title: node.type?.path ?? '', children: node.type?.name ?? 'unknown' }) }))] })] }));
|
114
113
|
};
|
115
114
|
export const TypeTree = (props) => {
|
116
115
|
const { type, selectedType } = props;
|
@@ -157,10 +156,10 @@ export const TypeTree = (props) => {
|
|
157
156
|
useEffect(() => {
|
158
157
|
setTreeData(() => getTypeTreeData(type));
|
159
158
|
}, [type]);
|
160
|
-
return (
|
159
|
+
return (_jsx(TreeView, { components: {
|
161
160
|
TreeNodeContainer: TypeTreeNodeContainer,
|
162
161
|
}, treeData: treeData, onNodeSelect: onNodeSelect, getChildNodes: getChildNodes, innerProps: {
|
163
162
|
selectedType,
|
164
|
-
} }
|
163
|
+
} }));
|
165
164
|
};
|
166
165
|
//# sourceMappingURL=TypeTree.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TypeTree.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/mapping-editor/TypeTree.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"TypeTree.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/mapping-editor/TypeTree.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,kBAAkB,EA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AAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;aACnC,MAAM,CAAC,aAAa,CAAC;YACtB,oDAAoD;aACnD,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,IAAI,YAAY,KAAK;YACtB,CAAC,CAAC,CAAC;YACH,CAAC,CAAC,CAAC,CAAC,IAAI,YAAY,WAAW;gBAC7B,CAAC,CAAC,CAAC;gBACH,CAAC,CAAC,CAAC,CAAC;YACR,CAAC,CAAC,CAAC,IAAI,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,YAAY,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CACxE,CAAC;QACJ,OAAO,aAAa,CAAC;IACvB,CAAC,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,WAAW,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3C,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,OAAO,CACL,KAAC,QAAQ,IACP,UAAU,EAAE;YACV,iBAAiB,EAAE,qBAAqB;SACzC,EACD,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE;YACV,YAAY;SACb,GACD,CACH,CAAC;AACJ,CAAC,CAAC"}
|
package/lib/components/editor/editor-group/mapping-editor/legacy/DEPRECATED__MappingTestEditor.d.ts
CHANGED
@@ -17,13 +17,13 @@ import { type DEPRECATED__MappingTestState as DEPRECATED__MappingTestState, Mapp
|
|
17
17
|
export declare const DEPRECATED__MappingTestObjectInputDataBuilder: ((props: {
|
18
18
|
inputDataState: MappingTestObjectInputDataState;
|
19
19
|
isReadOnly: boolean;
|
20
|
-
}) => import("react/jsx-
|
20
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
21
21
|
displayName: string;
|
22
22
|
};
|
23
23
|
export declare const DEPRECATED__MappingTestFlatDataInputDataBuilder: ((props: {
|
24
24
|
inputDataState: MappingTestFlatDataInputDataState;
|
25
25
|
isReadOnly: boolean;
|
26
|
-
}) => import("react/jsx-
|
26
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
27
27
|
displayName: string;
|
28
28
|
};
|
29
29
|
/**
|
@@ -32,38 +32,38 @@ export declare const DEPRECATED__MappingTestFlatDataInputDataBuilder: ((props: {
|
|
32
32
|
export declare const DEPRECATED__MappingTestRelationalInputDataBuilder: ((props: {
|
33
33
|
inputDataState: MappingTestRelationalInputDataState;
|
34
34
|
isReadOnly: boolean;
|
35
|
-
}) => import("react/jsx-
|
35
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
36
36
|
displayName: string;
|
37
37
|
};
|
38
38
|
export declare const DEPRECATED__MappingTestInputDataBuilder: ((props: {
|
39
39
|
testState: DEPRECATED__MappingTestState;
|
40
40
|
isReadOnly: boolean;
|
41
|
-
}) => import("react/jsx-
|
41
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
42
42
|
displayName: string;
|
43
43
|
};
|
44
44
|
export declare const DEPRECATED__MappingTestExpectedOutputAssertionBuilder: ((props: {
|
45
45
|
testState: DEPRECATED__MappingTestState;
|
46
46
|
assertionState: MappingTestExpectedOutputAssertionState;
|
47
47
|
isReadOnly: boolean;
|
48
|
-
}) => import("react/jsx-
|
48
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
49
49
|
displayName: string;
|
50
50
|
};
|
51
51
|
export declare const DEPRECATED__MappingTestAssertionBuilder: ((props: {
|
52
52
|
testState: DEPRECATED__MappingTestState;
|
53
53
|
isReadOnly: boolean;
|
54
|
-
}) => import("react/jsx-
|
54
|
+
}) => import("react/jsx-runtime").JSX.Element | null) & {
|
55
55
|
displayName: string;
|
56
56
|
};
|
57
57
|
export declare const DEPRECATED__MappingTestBuilder: ((props: {
|
58
58
|
testState: DEPRECATED__MappingTestState;
|
59
59
|
isReadOnly: boolean;
|
60
|
-
}) => import("react/jsx-
|
60
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
61
61
|
displayName: string;
|
62
62
|
};
|
63
63
|
export declare const DEPRECATED__MappingTestEditor: ((props: {
|
64
64
|
testState: DEPRECATED__MappingTestState;
|
65
65
|
isReadOnly: boolean;
|
66
|
-
}) => import("react/jsx-
|
66
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
67
67
|
displayName: string;
|
68
68
|
};
|
69
69
|
//# sourceMappingURL=DEPRECATED__MappingTestEditor.d.ts.map
|
package/lib/components/editor/editor-group/mapping-editor/legacy/DEPRECATED__MappingTestEditor.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-application-studio/src/components/editor/editor-group/mapping-editor/legacy/DEPRECATED__MappingTestEditor.tsx";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
3
2
|
/**
|
4
3
|
* Copyright (c) 2020-present, Goldman Sachs
|
5
4
|
*
|
@@ -67,7 +66,7 @@ const MappingTestQueryEditor = observer((props) => {
|
|
67
66
|
applicationStore.notificationService.notifyError(`Can't save query: ${error.message}`);
|
68
67
|
}
|
69
68
|
});
|
70
|
-
return (
|
69
|
+
return (_jsx("button", { className: "query-builder__dialog__header__custom-action", tabIndex: -1, disabled: isReadOnly, onClick: save, children: "Save Query" }));
|
71
70
|
},
|
72
71
|
},
|
73
72
|
],
|
@@ -118,23 +117,23 @@ const MappingTestQueryEditor = observer((props) => {
|
|
118
117
|
}),
|
119
118
|
}), [handleDrop]);
|
120
119
|
const clearQuery = applicationStore.guardUnhandledError(() => flowResult(testState.queryState.updateLamba(stub_RawLambda())));
|
121
|
-
return (
|
120
|
+
return (_jsxs("div", { className: "panel mapping-test-editor__query-panel", children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "query" }) }), _jsx("div", { className: "panel__header__actions", children: _jsxs("div", { className: "btn__dropdown-combo", children: [_jsxs("button", { className: "btn__dropdown-combo__label", onClick: editWithQueryBuilder(), title: "Edit Query", tabIndex: -1, children: [_jsx(PencilIcon, { className: "btn__dropdown-combo__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__label__title", children: "Edit Query" })] }), _jsx(DropdownMenu, { className: "btn__dropdown-combo__dropdown-btn", content: _jsxs(MenuContent, { children: [_jsx(MenuContentItem, { className: "btn__dropdown-combo__option", onClick: editWithQueryBuilder(true), children: "Text Mode" }), _jsx(MenuContentItem, { className: "btn__dropdown-combo__option", onClick: clearQuery, children: "Clear Query" })] }), menuProps: {
|
122
121
|
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
123
122
|
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
124
|
-
}, children:
|
123
|
+
}, children: _jsx(CaretDownIcon, {}) })] }) })] }), !isStubbed_RawLambda(queryState.query) && (_jsx(PanelContent, { children: _jsx("div", { className: "mapping-test-editor__query-panel__query", children: _jsx(CodeEditor, { inputValue: queryState.lambdaString, isReadOnly: true, language: CODE_EDITOR_LANGUAGE.PURE, hideMinimap: true }) }) })), isStubbed_RawLambda(queryState.query) && (_jsx(PanelContent, { children: _jsx(PanelDropZone, { dropTargetConnector: dropRef, isDragOver: isDragOver, children: _jsx(BlankPanelPlaceholder, { text: "Choose a class mapping", onClick: showClassMappingSelectorModal, clickActionType: "add", tooltipText: "Drop a class mapping, or click to choose one to start building the query", isDropZoneActive: canDrop, disabled: isReadOnly }) }) })), openClassMappingSelectorModal && (_jsx(ClassMappingSelectorModal, { mappingEditorState: testState.mappingEditorState, hideClassMappingSelectorModal: hideClassMappingSelectorModal, changeClassMapping: changeClassMapping }))] }));
|
125
124
|
});
|
126
125
|
export const DEPRECATED__MappingTestObjectInputDataBuilder = observer((props) => {
|
127
126
|
const { inputDataState, isReadOnly } = props;
|
128
127
|
// TODO?: handle XML/type
|
129
128
|
// Input data
|
130
129
|
const updateInput = (val) => inputDataState.setData(val);
|
131
|
-
return (
|
130
|
+
return (_jsx("div", { className: "panel__content mapping-test-editor__input-data-panel__content", children: _jsx(CodeEditor, { language: CODE_EDITOR_LANGUAGE.JSON, inputValue: inputDataState.data, isReadOnly: isReadOnly, updateInput: updateInput }) }));
|
132
131
|
});
|
133
132
|
export const DEPRECATED__MappingTestFlatDataInputDataBuilder = observer((props) => {
|
134
133
|
const { inputDataState, isReadOnly } = props;
|
135
134
|
// Input data
|
136
135
|
const updateInput = (val) => flatData_setData(inputDataState.inputData, val);
|
137
|
-
return (
|
136
|
+
return (_jsx("div", { className: "panel__content mapping-test-editor__input-data-panel__content", children: _jsx(CodeEditor, { language: CODE_EDITOR_LANGUAGE.TEXT, inputValue: inputDataState.inputData.data, isReadOnly: isReadOnly, updateInput: updateInput }) }));
|
138
137
|
});
|
139
138
|
/**
|
140
139
|
* Right now, we always default this to use Local H2 connection.
|
@@ -143,14 +142,14 @@ export const DEPRECATED__MappingTestRelationalInputDataBuilder = observer((props
|
|
143
142
|
const { inputDataState, isReadOnly } = props;
|
144
143
|
// Input data
|
145
144
|
const updateInput = (val) => relationalInputData_setData(inputDataState.inputData, val);
|
146
|
-
return (
|
145
|
+
return (_jsx("div", { className: "panel__content mapping-test-editor__input-data-panel__content", children: _jsx(CodeEditor, { language: getRelationalInputTestDataEditorLanguage(inputDataState.inputData.inputType), inputValue: inputDataState.inputData.data, isReadOnly: isReadOnly, updateInput: updateInput }) }));
|
147
146
|
});
|
148
147
|
const RelationalMappingTestInputDataTypeSelector = observer((props) => {
|
149
148
|
const { inputDataState, isReadOnly } = props;
|
150
149
|
const changeInputType = (val) => () => {
|
151
150
|
relationalInputData_setInputType(inputDataState.inputData, val);
|
152
151
|
};
|
153
|
-
return (
|
152
|
+
return (_jsx(DropdownMenu, { className: "mapping-test-editor__input-data-panel__type-selector", title: "Choose input data type...", disabled: isReadOnly, content: _jsx(MenuContent, { children: Object.keys(RelationalInputType).map((mode) => (_jsx(MenuContentItem, { className: "mapping-test-editor__input-data-panel__type-selector__option", onClick: changeInputType(mode), children: mode }, mode))) }), children: _jsxs("div", { className: "mapping-test-editor__input-data-panel__type-selector__value", children: [_jsx("div", { className: "mapping-test-editor__input-data-panel__type-selector__value__label", children: inputDataState.inputData.inputType }), _jsx(CaretDownIcon, {})] }) }));
|
154
153
|
});
|
155
154
|
export const DEPRECATED__MappingTestInputDataBuilder = observer((props) => {
|
156
155
|
const { testState, isReadOnly } = props;
|
@@ -170,13 +169,13 @@ export const DEPRECATED__MappingTestInputDataBuilder = observer((props) => {
|
|
170
169
|
// input data builder
|
171
170
|
let inputDataBuilder;
|
172
171
|
if (inputDataState instanceof MappingTestObjectInputDataState) {
|
173
|
-
inputDataBuilder = (
|
172
|
+
inputDataBuilder = (_jsx(DEPRECATED__MappingTestObjectInputDataBuilder, { inputDataState: inputDataState, isReadOnly: isReadOnly }));
|
174
173
|
}
|
175
174
|
else if (inputDataState instanceof MappingTestFlatDataInputDataState) {
|
176
|
-
inputDataBuilder = (
|
175
|
+
inputDataBuilder = (_jsx(DEPRECATED__MappingTestFlatDataInputDataBuilder, { inputDataState: inputDataState, isReadOnly: isReadOnly }));
|
177
176
|
}
|
178
177
|
else if (inputDataState instanceof MappingTestRelationalInputDataState) {
|
179
|
-
inputDataBuilder = (
|
178
|
+
inputDataBuilder = (_jsx(DEPRECATED__MappingTestRelationalInputDataBuilder, { inputDataState: inputDataState, isReadOnly: isReadOnly }));
|
180
179
|
}
|
181
180
|
else {
|
182
181
|
inputDataBuilder = null;
|
@@ -184,12 +183,12 @@ export const DEPRECATED__MappingTestInputDataBuilder = observer((props) => {
|
|
184
183
|
// input type
|
185
184
|
let inputTypeSelector;
|
186
185
|
if (inputDataState instanceof MappingTestRelationalInputDataState) {
|
187
|
-
inputTypeSelector = (
|
186
|
+
inputTypeSelector = (_jsx(RelationalMappingTestInputDataTypeSelector, { inputDataState: inputDataState, isReadOnly: isReadOnly }));
|
188
187
|
}
|
189
188
|
else {
|
190
189
|
inputTypeSelector = null;
|
191
190
|
}
|
192
|
-
return (
|
191
|
+
return (_jsxs("div", { className: "panel mapping-test-editor__input-data-panel", children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "input data" }) }), _jsxs("div", { className: "panel__header__actions", children: [inputTypeSelector, _jsx("button", { className: "panel__header__action", tabIndex: -1, disabled: isReadOnly, onClick: showClassMappingSelectorModal, title: "Regenerate...", children: _jsx(RefreshIcon, { className: "mapping-test-editor__icon--refresh" }) })] })] }), inputDataBuilder, openClassMappingSelectorModal && (_jsx(ClassMappingSelectorModal, { mappingEditorState: testState.mappingEditorState, hideClassMappingSelectorModal: hideClassMappingSelectorModal, changeClassMapping: changeClassMapping, classMappingFilterFn: classMappingFilterFn }))] }));
|
193
192
|
});
|
194
193
|
export const DEPRECATED__MappingTestExpectedOutputAssertionBuilder = observer((props) => {
|
195
194
|
const { testState, assertionState, isReadOnly } = props;
|
@@ -204,13 +203,13 @@ export const DEPRECATED__MappingTestExpectedOutputAssertionBuilder = observer((p
|
|
204
203
|
const formatExpectedResultJSONString = () => assertionState.setExpectedResult(tryToFormatLosslessJSONString(assertionState.expectedResult));
|
205
204
|
// Actions
|
206
205
|
const regenerateExpectedResult = applicationStore.guardUnhandledError(() => flowResult(testState.regenerateExpectedResult()));
|
207
|
-
return (
|
206
|
+
return (_jsxs("div", { className: "panel mapping-test-editor__result-panel", children: [_jsxs("div", { className: "panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: "expected" }) }), _jsxs("div", { className: "panel__header__actions", children: [_jsx("button", { className: "panel__header__action", disabled: testState.isExecutingTest || isReadOnly, onClick: regenerateExpectedResult, tabIndex: -1, title: "Regenerate Result", children: _jsx(RefreshIcon, { className: "mapping-test-editor__icon__regenerate-result" }) }), _jsx("button", { className: "panel__header__action", disabled: isReadOnly, tabIndex: -1, onClick: formatExpectedResultJSONString, title: "Format JSON", children: _jsx(WrenchIcon, {}) })] })] }), _jsxs("div", { className: clsx('panel__content mapping-test-editor__text-editor mapping-test-editor__result-panel__content', { 'panel__content--has-validation-error': !isValid }), children: [!isValid && (_jsx("div", { className: "panel__content__validation-error", title: validationResult.messages.join('\n'), children: _jsx(ErrorIcon, {}) })), _jsx(CodeEditor, { inputValue: assertionState.expectedResult, updateInput: updateExpectedResult, isReadOnly: isReadOnly, language: CODE_EDITOR_LANGUAGE.JSON })] })] }));
|
208
207
|
});
|
209
208
|
export const DEPRECATED__MappingTestAssertionBuilder = observer((props) => {
|
210
209
|
const { testState, isReadOnly } = props;
|
211
210
|
const assertionState = testState.assertionState;
|
212
211
|
if (assertionState instanceof MappingTestExpectedOutputAssertionState) {
|
213
|
-
return (
|
212
|
+
return (_jsx(DEPRECATED__MappingTestExpectedOutputAssertionBuilder, { testState: testState, assertionState: assertionState, isReadOnly: isReadOnly }));
|
214
213
|
}
|
215
214
|
return null;
|
216
215
|
});
|
@@ -221,7 +220,7 @@ export const DEPRECATED__MappingTestBuilder = observer((props) => {
|
|
221
220
|
useEffect(() => {
|
222
221
|
flowResult(testState.onTestStateOpen()).catch(applicationStore.alertUnhandledError);
|
223
222
|
}, [applicationStore, testState]);
|
224
|
-
return (
|
223
|
+
return (_jsxs("div", { className: "mapping-test-editor", children: [_jsx(PanelLoadingIndicator, { isLoading: testState.isExecutingTest }), _jsxs(ResizablePanelGroup, { orientation: "horizontal", children: [_jsx(ResizablePanel, { size: 250, minSize: 28, children: _jsx(MappingTestQueryEditor, { testState: testState, isReadOnly: isReadOnly }, testState.queryState.uuid) }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-50)" }) }), _jsx(ResizablePanel, { size: 250, minSize: 28, children: _jsx(DEPRECATED__MappingTestInputDataBuilder, { testState: testState, isReadOnly: isReadOnly }, testState.inputDataState.uuid) }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-50)" }) }), _jsx(ResizablePanel, { minSize: 28, children: _jsx(DEPRECATED__MappingTestAssertionBuilder, { testState: testState, isReadOnly: isReadOnly }, testState.assertionState.uuid) })] })] }));
|
225
224
|
});
|
226
225
|
export const DEPRECATED__MappingTestEditor = observer((props) => {
|
227
226
|
const { testState, isReadOnly } = props;
|
@@ -253,14 +252,14 @@ export const DEPRECATED__MappingTestEditor = observer((props) => {
|
|
253
252
|
throw new IllegalStateError('Unknown test result state');
|
254
253
|
}
|
255
254
|
testResult = testState.isRunningTest ? 'Running test...' : testResult;
|
256
|
-
return (
|
255
|
+
return (_jsxs("div", { className: "mapping-test-editor", children: [_jsxs("div", { className: "mapping-test-editor__header", children: [_jsx("div", { className: "mapping-test-editor__header__tabs", children: Object.values(MAPPING_TEST_EDITOR_TAB_TYPE).map((tab) => (_jsxs("div", { onClick: changeTab(tab), className: clsx('mapping-test-editor__header__tab', {
|
257
256
|
'mapping-test-editor__header__tab--active': tab === selectedTab,
|
258
|
-
}), children: [tab === MAPPING_TEST_EDITOR_TAB_TYPE.RESULT && (
|
257
|
+
}), children: [tab === MAPPING_TEST_EDITOR_TAB_TYPE.RESULT && (_jsx("div", { className: "mapping-test-editor__header__tab__test-status-indicator__container", children: _jsx(MappingTestStatusIndicator, { testState: testState }) })), tab] }, tab))) }), _jsx("div", { className: "panel__header__actions mapping-test-editor__header__actions", children: _jsx("div", { className: "mapping-test-editor__action-btn btn__dropdown-combo btn__dropdown-combo--primary", children: testState.isRunningTest ? (_jsx("button", { className: "btn__dropdown-combo__canceler", onClick: cancelTest, tabIndex: -1, children: _jsxs("div", { className: "btn--dark btn--caution btn__dropdown-combo__canceler__label", children: [_jsx(PauseCircleIcon, { className: "btn__dropdown-combo__canceler__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__canceler__label__title", children: "Stop" })] }) })) : (_jsxs(_Fragment, { children: [_jsxs("button", { className: "btn__dropdown-combo__label", onClick: runTest, disabled: testState.isExecutingTest || testState.isGeneratingPlan, tabIndex: -1, children: [_jsx(PlayIcon, { className: "btn__dropdown-combo__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__label__title", children: "Run Test" })] }), _jsx(DropdownMenu, { className: "btn__dropdown-combo__dropdown-btn", disabled: testState.isExecutingTest || testState.isGeneratingPlan, content: _jsxs(MenuContent, { children: [_jsx(MenuContentItem, { className: "btn__dropdown-combo__option", onClick: generatePlan, children: "Generate Plan" }), _jsx(MenuContentItem, { className: "btn__dropdown-combo__option", onClick: debugPlanGeneration, children: "Debug" })] }), menuProps: {
|
259
258
|
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
260
259
|
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
261
|
-
}, children:
|
260
|
+
}, children: _jsx(CaretDownIcon, {}) })] })) }) })] }), _jsxs("div", { className: "mapping-test-editor__content", children: [selectedTab === MAPPING_TEST_EDITOR_TAB_TYPE.SETUP && (_jsx(DEPRECATED__MappingTestBuilder, { testState: testState, isReadOnly: isReadOnly })), selectedTab === MAPPING_TEST_EDITOR_TAB_TYPE.RESULT && (_jsxs("div", { className: "mapping-test-editor__result", children: [_jsx("div", { className: `mapping-test-editor__result__status mapping-test-editor__result__status--${testState.isRunningTest
|
262
261
|
? 'running'
|
263
|
-
: testState.result.toLowerCase()}`, children: testResult }
|
264
|
-
MappingTestExpectedOutputAssertionState && (
|
262
|
+
: testState.result.toLowerCase()}`, children: testResult }), testState.result === TEST_RESULT.FAILED && (_jsx(_Fragment, { children: testState.assertionState instanceof
|
263
|
+
MappingTestExpectedOutputAssertionState && (_jsx("div", { className: "mapping-test-editor__result__diff", children: _jsx(JSONDiffView, { from: testState.assertionState.expectedResult, to: testState.testExecutionResultText, lossless: true }) })) }))] }))] }), _jsx(ExecutionPlanViewer, { executionPlanState: executionPlanState })] }));
|
265
264
|
});
|
266
265
|
//# sourceMappingURL=DEPRECATED__MappingTestEditor.js.map
|