@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,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-application-studio/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.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
|
*
|
@@ -44,17 +43,17 @@ const SchemaLoader = observer((props) => {
|
|
44
43
|
importState.importSchemas(importState.files);
|
45
44
|
}
|
46
45
|
};
|
47
|
-
return (
|
46
|
+
return (_jsx(Dialog, { onClose: onClose, open: importState.importSchemaModal, TransitionProps: {
|
48
47
|
appear: false, // disable transition
|
49
|
-
}, children:
|
48
|
+
}, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: "modal--scrollable patch-loader", children: [_jsx(ModalHeader, { title: "Schema Content Loader" }), _jsxs(ModalBody, { children: [_jsx(PanelLoadingIndicator, { isLoading: importState.loadingSchemaContentState.isInProgress }), _jsx("div", { children: _jsx("input", { type: "file", name: "myFiles", onChange: onChange, multiple: true }) }), importState.files && (_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Schema Files" }), _jsx("div", { className: "panel__content__form__section__list", children: _jsx("div", { className: "panel__content__form__section__list__items", children: importState.files.map((value) => (_jsxs("div", { className: "panel__content__form__section__list__item", children: [_jsx("div", { className: "panel__content__form__section__list__item__value", children: value.name }), _jsx("div", { className: "panel__content__form__section__list__item__actions", children: _jsx("button", { title: "Remove change", className: "panel__content__form__section__list__item__remove-btn", onClick: () => importState.removeFile(value), tabIndex: -1, children: _jsx(TimesIcon, {}) }) })] }, value.name))) }) })] }))] }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { className: "blocking-alert__action--standard", text: "Import Schemas", onClick: importSchemas, disabled: !importState.files?.length }) })] }) }));
|
50
49
|
});
|
51
50
|
const SchemaBasicEditor = observer((props) => {
|
52
51
|
const { schema, isReadOnly, language } = props;
|
53
52
|
const changeId = (event) => externalFormat_schema_setId(schema, event.target.value);
|
54
53
|
const changeLocation = (event) => externalFormat_schema_setLocation(schema, event.target.value);
|
55
|
-
return (
|
54
|
+
return (_jsxs("div", { className: "schema-editor", children: [_jsx("input", { className: "schema-editor__id", disabled: isReadOnly, value: schema.id, spellCheck: false, onChange: changeId, placeholder: "Id" }), _jsx("input", { className: "schema-editor__location", disabled: isReadOnly, value: schema.location, spellCheck: false, onChange: changeLocation, placeholder: "Location" }), _jsx("div", { className: clsx('schema-editor__content'), children: _jsx("div", { className: "schema-editor__content__input", children: _jsx(CodeEditor, { inputValue: schema.content, language: language, updateInput: (val) => {
|
56
55
|
externalFormat_schema_setContent(schema, val);
|
57
|
-
}, hideGutter: true }
|
56
|
+
}, hideGutter: true }) }) })] }));
|
58
57
|
});
|
59
58
|
export const SchemaSetGeneralEditor = observer((props) => {
|
60
59
|
const { schemaSetEditorState, isReadOnly } = props;
|
@@ -95,14 +94,14 @@ export const SchemaSetGeneralEditor = observer((props) => {
|
|
95
94
|
flowResult(schemaSetEditorState.validateSchema(currentSchema)).catch(applicationStore.alertUnhandledError);
|
96
95
|
}
|
97
96
|
};
|
98
|
-
return (
|
97
|
+
return (_jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsx(ResizablePanel, { minSize: 30, size: 300, children: _jsxs("div", { className: "schema-set-panel", children: [_jsxs("div", { className: "schema-set-panel__header", children: [_jsx("div", { className: "panel__header__title", children: _jsx("div", { className: "panel__header__title__label", children: `${schemaSet.format} configuration` }) }), _jsxs("div", { className: "schema-set-panel__header__actions", children: [_jsx("button", { className: "schema-set-panel__header__action", onClick: openSchemaLoader, disabled: isReadOnly, tabIndex: -1, title: "Import Schemas", children: _jsx(UploadIcon, {}) }), _jsx("button", { className: "schema-set-panel__header__action", onClick: addSchema, disabled: isReadOnly, tabIndex: -1, title: "Add Schema", children: _jsx(PlusIcon, {}) })] })] }), schemaSet.schemas.map((schema, index) => (_jsx(ContextMenu, { className: clsx('schema-set-panel__item', {
|
99
98
|
'schema-set-panel__item--active': currentSchema === schema,
|
100
|
-
}), disabled: isReadOnly, content:
|
99
|
+
}), disabled: isReadOnly, content: _jsx(MenuContent, { children: _jsx(MenuContentItem, { onClick: deleteSchema(schema), children: "Delete" }) }), menuProps: { elevation: 7 }, children: _jsx("div", { className: "schema-set-panel__item__label", onClick: changeState(schema), children: schema.id ? schema.id : `Schema${index + 1}` }) }, schema._UUID)))] }) }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }) }), _jsx(ResizablePanel, { children: _jsxs("div", { className: "schema-set-panel", children: [_jsxs("div", { className: "schema-set-panel__header", children: [_jsxs("div", { className: "schema-set-panel__header__title", children: [isReadOnly && (_jsx("div", { className: "schema-set-panel__header__lock", children: _jsx(LockIcon, {}) })), _jsx("div", { className: "schema-set-panel__header__title__label", children: "Schema" }), _jsx("div", { className: "schema-set-panel__header__title__content", children: currentSchema !== undefined
|
101
100
|
? currentSchema.id
|
102
101
|
? currentSchema.id
|
103
102
|
: `Schema${getIndex(currentSchema) + 1}`
|
104
|
-
: '' }
|
105
|
-
.importSchemaModal && (
|
103
|
+
: '' })] }), _jsx("div", { className: "panel__header__actions", children: schemaSetEditorState instanceof SchemaSetEditorState && (_jsx("button", { className: "btn--dark model-loader__header__load-btn", onClick: validateSchema, disabled: !currentSchema, tabIndex: -1, title: "Validate Schema", children: "Validate" })) })] }), _jsx("div", { className: "schema-set-panel__content", children: _jsxs("div", { className: "schema-set-panel__content__lists", children: [schemaSetEditorState.importSchemaContentState
|
104
|
+
.importSchemaModal && (_jsx(SchemaLoader, { schemaSetEditorState: schemaSetEditorState })), currentSchema !== undefined && (_jsx(SchemaBasicEditor, { language: language, schema: currentSchema, isReadOnly: isReadOnly }, currentSchema._UUID))] }) })] }) })] }));
|
106
105
|
});
|
107
106
|
export const SchemaSetEditor = observer(() => {
|
108
107
|
const editorStore = useEditorStore();
|
@@ -115,19 +114,19 @@ export const SchemaSetEditor = observer(() => {
|
|
115
114
|
const changeTab = (tab) => () => schemaSetEditorState.setSelectedTab(tab);
|
116
115
|
const renderMainEditPanel = () => {
|
117
116
|
if (isFetchingDescriptions) {
|
118
|
-
return (
|
117
|
+
return (_jsx(BlankPanelContent, { children: "Fetching format descriptions" }));
|
119
118
|
}
|
120
119
|
if (currentTab === SCHEMA_SET_TAB_TYPE.SCHEMAS) {
|
121
|
-
return (
|
120
|
+
return (_jsx(SchemaSetGeneralEditor, { schemaSetEditorState: schemaSetEditorState, isReadOnly: isReadOnly }));
|
122
121
|
}
|
123
122
|
const supportsModelGeneraiton = schemaSetEditorState.schemaSetModelGenerationState.description
|
124
123
|
?.supportsModelGeneration;
|
125
|
-
return supportsModelGeneraiton ? (
|
124
|
+
return supportsModelGeneraiton ? (_jsx(SchemaSetModelGenerationEditor, { modelGenerationState: schemaSetEditorState.schemaSetModelGenerationState, isReadOnly: isReadOnly })) : (_jsxs(BlankPanelContent, { children: ["Format ", schemaSet.format, " does not support Model Generation"] }));
|
126
125
|
};
|
127
126
|
useApplicationNavigationContext(LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.SCHEMA_SET_EDITOR);
|
128
|
-
return (
|
127
|
+
return (_jsxs("div", { className: "panel schema-set-panel", children: [_jsx("div", { className: "schema-set-panel__header", children: _jsxs("div", { className: "schema-set-panel__header__title", children: [schemaSetEditorState.isReadOnly && (_jsx("div", { className: "schema-set-panel__header__lock", children: _jsx(LockIcon, {}) })), _jsx("div", { className: "schema-set-panel__header__title__label", children: "Schema Set" }), _jsx("div", { className: "schema-set-panel__header__title__content", children: schemaSetEditorState.schemaSet.name })] }) }), _jsxs(PanelContent, { children: [_jsx(PanelLoadingIndicator, { isLoading: isFetchingDescriptions }), _jsx("div", { className: "panel__header", children: _jsx("div", { className: "uml-element-editor__tabs", children: Object.values(SCHEMA_SET_TAB_TYPE).map((tab) => (_jsx("div", { onClick: changeTab(tab), className: clsx('relational-connection-editor__tab', {
|
129
128
|
'relational-connection-editor__tab--active': tab === currentTab,
|
130
|
-
}), children: prettyCONSTName(tab) }, tab
|
131
|
-
renderMainEditPanel()] }
|
129
|
+
}), children: prettyCONSTName(tab) }, tab))) }) }), _jsxs("div", { className: "panel__content file-generation-editor__content", children: [currentTab === SCHEMA_SET_TAB_TYPE.SCHEMAS && (_jsx(SchemaSetGeneralEditor, { schemaSetEditorState: schemaSetEditorState, isReadOnly: isReadOnly })), currentTab === SCHEMA_SET_TAB_TYPE.GENERATE_MODEL &&
|
130
|
+
renderMainEditPanel()] })] })] }));
|
132
131
|
});
|
133
132
|
//# sourceMappingURL=DSL_ExternalFormat_SchemaSetElementEditor.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSL_ExternalFormat_SchemaSetElementEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"DSL_ExternalFormat_SchemaSetElementEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,WAAW,EACX,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,QAAQ,EACR,QAAQ,EACR,qBAAqB,EACrB,UAAU,EACV,MAAM,EACN,SAAS,EACT,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oBAAoB,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EACL,oBAA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BAAoB,CAAC,SAAS,CAAC,IAAI,GAChC,IACF,GACF,EACN,MAAC,YAAY,eACX,KAAC,qBAAqB,IAAC,SAAS,EAAE,sBAAsB,GAAI,EAC5D,cAAK,SAAS,EAAC,eAAe,YAC5B,cAAK,SAAS,EAAC,0BAA0B,YACtC,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAC/C,cAEE,OAAO,EAAE,SAAS,CAAC,GAAG,CAAC,EACvB,SAAS,EAAE,IAAI,CAAC,mCAAmC,EAAE;oCACnD,2CAA2C,EACzC,GAAG,KAAK,UAAU;iCACrB,CAAC,YAED,eAAe,CAAC,GAAG,CAAC,IAPhB,GAAG,CAQJ,CACP,CAAC,GACE,GACF,EACN,eAAK,SAAS,EAAC,gDAAgD,aAC5D,UAAU,KAAK,mBAAmB,CAAC,OAAO,IAAI,CAC7C,KAAC,sBAAsB,IACrB,oBAAoB,EAAE,oBAAoB,EAC1C,UAAU,EAAE,UAAU,GACtB,CACH,EACA,UAAU,KAAK,mBAAmB,CAAC,cAAc;gCAChD,mBAAmB,EAAE,IACnB,IACO,IACX,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -17,7 +17,7 @@ import type { SchemaSetModelGenerationState } from '../../../../stores/editor/ed
|
|
17
17
|
export declare const SchemaSetModelGenerationEditor: ((props: {
|
18
18
|
modelGenerationState: SchemaSetModelGenerationState;
|
19
19
|
isReadOnly: boolean;
|
20
|
-
}) => import("react/jsx-
|
20
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
21
21
|
displayName: string;
|
22
22
|
};
|
23
23
|
//# sourceMappingURL=DSL_ExternalFormat_SchemaSetModelGenerationEditor.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/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.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
|
*
|
@@ -65,12 +64,12 @@ export const SchemaSetModelGenerationEditor = observer((props) => {
|
|
65
64
|
modelGenerationState.importGeneratedModelsIntoGraph();
|
66
65
|
};
|
67
66
|
useApplicationNavigationContext(LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.SCHEMA_SET_MODEL_GENERATION);
|
68
|
-
return (
|
67
|
+
return (_jsx(PanelContent, { className: "file-generation-editor__content", children: _jsxs(ResizablePanelGroup, { orientation: "vertical", children: [_jsx(ResizablePanel, { size: 250, minSize: 50, children: _jsxs(Panel, { className: "file-generation-editor__configuration", children: [_jsx(PanelHeader, { title: `${format} configuration`, children: _jsx(PanelHeaderActions, { children: _jsx(PanelHeaderActionItem, { className: "file-generation-editor__configuration__reset-btn", disabled: isReadOnly || !properties.length, onClick: resetProperties, title: "Reset to default configuration", children: _jsx(RefreshIcon, {}) }) }) }), _jsx(PanelContent, { children: _jsxs("div", { className: "file-generation-editor__configuration__content", children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: 'Target Binding Path' }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: 'If path is provided, a binding will be generated alongside the models. The binding will ensure the schema and models are compatible through compile time validations.' }), _jsx(InputWithInlineValidation, { className: "query-builder__variables__variable__name__input input-group__input", spellCheck: false, value: modelGenerationState.targetBinding, onChange: changeTargetBindingPath, placeholder: "Target binding path", error: targetBindingPathValidationMessage })] }), modelGenerationState.modelGenerationProperties
|
69
68
|
.filter((property) => !Object.values(HIDDEN_CONFIGURATION_PROPERTIES).includes(property.name))
|
70
|
-
.map((abstractGenerationProperty) => (
|
69
|
+
.map((abstractGenerationProperty) => (_jsx(GenerationPropertyEditor, { update: update, isReadOnly: isReadOnly, getConfigValue: getConfigValue, property: abstractGenerationProperty }, abstractGenerationProperty.name)))] }) })] }) }), _jsx(ResizablePanelSplitter, { children: _jsx(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }) }), _jsx(ResizablePanel, { children: _jsxs(Panel, { className: "generation-result-viewer__file", children: [_jsx(PanelHeader, { title: "result", children: _jsxs(PanelHeaderActions, { children: [_jsx(PanelHeaderActionItem, { className: " generation-result-viewer__generate-btn", onClick: regenerate, disabled: modelGenerationState.generatingModelsState.isInProgress ||
|
71
70
|
modelGenerationState.importGeneratedElementsState
|
72
|
-
.isInProgress, title: "Regenerate", children:
|
71
|
+
.isInProgress, title: "Regenerate", children: _jsxs("div", { className: "generation-result-viewer__generate-btn__label", children: [_jsx(RefreshIcon, { className: "generation-result-viewer__generate-btn__label__icon" }), _jsx("div", { className: "generation-result-viewer__generate-btn__label__title", children: "Generate" })] }) }), !modelGenerationState.isolatedGraph && (_jsx("button", { className: "btn--dark model-loader__header__load-btn", onClick: importGeneratedElements, disabled: modelGenerationState.generationValue === '', tabIndex: -1, title: "Import generated elements", children: "Import" }))] }) }), _jsxs(PanelContent, { children: [_jsx(PanelLoadingIndicator, { isLoading: modelGenerationState.generatingModelsState.isInProgress ||
|
73
72
|
modelGenerationState.importGeneratedElementsState
|
74
|
-
.isInProgress }
|
73
|
+
.isInProgress }), _jsx(CodeEditor, { inputValue: modelGenerationState.generationValue, isReadOnly: true, language: CODE_EDITOR_LANGUAGE.PURE })] })] }) })] }) }));
|
75
74
|
});
|
76
75
|
//# sourceMappingURL=DSL_ExternalFormat_SchemaSetModelGenerationEditor.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DSL_ExternalFormat_SchemaSetModelGenerationEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"DSL_ExternalFormat_SchemaSetModelGenerationEditor.js","sourceRoot":"","sources":["../../../../../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AC9C,YAAY,GAEjB,EACF,KAAC,UAAU,IACT,UAAU,EAAE,oBAAoB,CAAC,eAAe,EAChD,UAAU,EAAE,IAAI,EAChB,QAAQ,EAAE,oBAAoB,CAAC,IAAI,GACnC,IACW,IACT,GACO,IACG,GACT,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -20,7 +20,7 @@ export declare enum FUNCTION_ACTIVATE_TYPE {
|
|
20
20
|
REFINER = "Refiner",
|
21
21
|
BIG_QUERY_NATIVE_APP = "BigQuery Native App"
|
22
22
|
}
|
23
|
-
export declare const FunctionEditor: (() => import("react/jsx-
|
23
|
+
export declare const FunctionEditor: (() => import("react/jsx-runtime").JSX.Element) & {
|
24
24
|
displayName: string;
|
25
25
|
};
|
26
26
|
//# sourceMappingURL=FunctionEditor.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/function-activator/FunctionEditor.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
|
*
|
@@ -158,12 +157,12 @@ const ParameterBasicEditor = observer((props) => {
|
|
158
157
|
dragConnector(handleRef);
|
159
158
|
dropConnector(ref);
|
160
159
|
useDragPreviewLayer(dragPreviewConnector);
|
161
|
-
return (
|
162
|
-
.TEMPORARY__isLightColorThemeEnabled }
|
160
|
+
return (_jsxs(PanelDnDEntry, { ref: ref, placeholder: _jsx("div", { className: "dnd__placeholder--light" }), className: "property-basic-editor__container", showPlaceholder: isBeingDragged, children: [_jsx(PanelEntryDragHandle, { dragSourceConnector: handleRef, isDragging: isBeingDragged }), _jsxs("div", { className: "property-basic-editor", children: [isReadOnly && (_jsx("div", { className: "property-basic-editor__lock", children: _jsx(LockIcon, {}) })), _jsx("input", { className: "property-basic-editor__name input--dark", disabled: isReadOnly, value: parameter.name, spellCheck: false, onChange: changeValue, placeholder: "Parameter name" }), !isReadOnly && isEditingType && (_jsx(CustomSelectorInput, { className: "property-basic-editor__type", options: typeOptions, onChange: changeType, value: selectedType, placeholder: "Choose a type...", filterOption: filterOption, darkMode: !applicationStore.layoutService
|
161
|
+
.TEMPORARY__isLightColorThemeEnabled })), !isReadOnly && !isEditingType && (_jsxs("div", { className: clsx('property-basic-editor__type', 'property-basic-editor__type--show-click-hint', `background--${typeName.toLowerCase()}`, {
|
163
162
|
'property-basic-editor__type--has-visit-btn': typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE,
|
164
|
-
}), children: [typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE && (
|
163
|
+
}), children: [typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE && (_jsx("div", { className: "property-basic-editor__type__abbr", children: getElementIcon(paramType, editorStore) })), _jsx("div", { className: "property-basic-editor__type__label", children: paramType.name }), _jsx("div", { className: "property-basic-editor__type__label property-basic-editor__type__label--hover", onClick: () => setIsEditingType(true), children: "Click to edit" }), typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE && (_jsx("button", { "data-testid": LEGEND_STUDIO_TEST_ID.TYPE_VISIT, className: "property-basic-editor__type__visit-btn", onClick: openElement, tabIndex: -1, title: "Visit element", children: _jsx(ArrowCircleRightIcon, {}) }))] })), isReadOnly && (_jsxs("div", { className: clsx('property-basic-editor__type', `background--${typeName.toLowerCase()}`, {
|
165
164
|
'property-basic-editor__type--has-visit-btn': typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE,
|
166
|
-
}), children: [typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE && (
|
165
|
+
}), children: [typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE && (_jsx("div", { className: "property-basic-editor__type__abbr", children: getElementIcon(paramType, editorStore) })), _jsx("div", { className: "property-basic-editor__type__label", children: paramType.name }), typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE && (_jsx("button", { "data-testid": LEGEND_STUDIO_TEST_ID.TYPE_VISIT, className: "property-basic-editor__type__visit-btn", onClick: openElement, tabIndex: -1, title: "Visit element", children: _jsx(ArrowCircleRightIcon, {}) }))] })), _jsxs("div", { className: "property-basic-editor__multiplicity", children: [_jsx("input", { className: "property-basic-editor__multiplicity-bound", disabled: isReadOnly, spellCheck: false, value: lowerBound, onChange: changeLowerBound }), _jsx("div", { className: "property-basic-editor__multiplicity__range", children: ".." }), _jsx("input", { className: "property-basic-editor__multiplicity-bound", disabled: isReadOnly, spellCheck: false, value: upperBound, onChange: changeUpperBound })] }), !isReadOnly && (_jsx("button", { className: "uml-element-editor__remove-btn btn--dark btn--caution", disabled: isReadOnly, onClick: deleteParameter, tabIndex: -1, title: "Remove", children: _jsx(TimesIcon, {}) }))] })] }));
|
167
166
|
});
|
168
167
|
const ReturnTypeEditor = observer((props) => {
|
169
168
|
const { functionElement, isReadOnly } = props;
|
@@ -215,12 +214,12 @@ const ReturnTypeEditor = observer((props) => {
|
|
215
214
|
setUpperBound(event.target.value);
|
216
215
|
updateMultiplicity(lowerBound, event.target.value);
|
217
216
|
};
|
218
|
-
return (
|
219
|
-
.TEMPORARY__isLightColorThemeEnabled }
|
217
|
+
return (_jsxs("div", { className: "function-editor__return__type-editor", children: [!isReadOnly && isEditingType && (_jsx(CustomSelectorInput, { className: "property-basic-editor__type", options: typeOptions, onChange: changeType, value: selectedType, placeholder: "Choose a type...", filterOption: filterOption, darkMode: !applicationStore.layoutService
|
218
|
+
.TEMPORARY__isLightColorThemeEnabled })), !isReadOnly && !isEditingType && (_jsxs("div", { className: clsx('property-basic-editor__type', 'property-basic-editor__type--show-click-hint', `background--${typeName.toLowerCase()}`, {
|
220
219
|
'property-basic-editor__type--has-visit-btn': typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE,
|
221
|
-
}), children: [typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE && (
|
220
|
+
}), children: [typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE && (_jsx("div", { className: "property-basic-editor__type__abbr", children: getElementIcon(returnType.value, editorStore) })), _jsx("div", { className: "property-basic-editor__type__label", children: returnType.value.name }), _jsx("div", { className: "property-basic-editor__type__label property-basic-editor__type__label--hover", onClick: () => setIsEditingType(true), children: "Click to edit" }), typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE && (_jsx("button", { "data-testid": LEGEND_STUDIO_TEST_ID.TYPE_VISIT, className: "property-basic-editor__type__visit-btn", onClick: openElement, tabIndex: -1, title: "Visit element", children: _jsx(ArrowCircleRightIcon, {}) }))] })), isReadOnly && (_jsxs("div", { className: clsx('property-basic-editor__type', `background--${typeName.toLowerCase()}`, {
|
222
221
|
'property-basic-editor__type--has-visit-btn': typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE,
|
223
|
-
}), children: [typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE && (
|
222
|
+
}), children: [typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE && (_jsx("div", { className: "property-basic-editor__type__abbr", children: getElementIcon(returnType.value, editorStore) })), _jsx("div", { className: "property-basic-editor__type__label", children: returnType.value.name }), typeName !== FUNCTION_PARAMETER_TYPE.PRIMITIVE && (_jsx("button", { "data-testid": LEGEND_STUDIO_TEST_ID.TYPE_VISIT, className: "property-basic-editor__type__visit-btn", onClick: openElement, tabIndex: -1, title: "Visit element", children: _jsx(ArrowCircleRightIcon, {}) }))] })), _jsxs("div", { className: "property-basic-editor__multiplicity", children: [_jsx("input", { className: "property-basic-editor__multiplicity-bound", disabled: isReadOnly, spellCheck: false, value: lowerBound, onChange: changeLowerBound }), _jsx("div", { className: "property-basic-editor__multiplicity__range", children: ".." }), _jsx("input", { className: "property-basic-editor__multiplicity-bound", disabled: isReadOnly, spellCheck: false, value: upperBound, onChange: changeUpperBound })] }), _jsx("button", { className: "uml-element-editor__remove-btn btn--dark btn--caution", disabled: true, tabIndex: -1, children: _jsx(TimesIcon, {}) })] }));
|
224
223
|
});
|
225
224
|
const FunctionPromoteEditor = observer((props) => {
|
226
225
|
const { functionElement, activatorPromoteState } = props;
|
@@ -267,33 +266,33 @@ const FunctionPromoteEditor = observer((props) => {
|
|
267
266
|
const renderFunctionPromoteTypes = (type) => {
|
268
267
|
switch (type) {
|
269
268
|
case FUNCTION_ACTIVATE_TYPE.SNOWFLAKE_NATIVE_APP:
|
270
|
-
return (
|
269
|
+
return (_jsx(BaseCard, { cardMedia: _jsx(Snowflake_BrandIcon, { className: "function-promote-editor__type-icon" }), cardName: type, cardContent: "Deploy the function as a UDTF(user-defined table function) in snowflake", isActive: activatorPromoteState.activateType ===
|
271
270
|
FUNCTION_ACTIVATE_TYPE.SNOWFLAKE_NATIVE_APP, onClick: () => {
|
272
271
|
activatorPromoteState.setAcitvateType(type);
|
273
|
-
} }, FUNCTION_ACTIVATE_TYPE.SNOWFLAKE_NATIVE_APP
|
272
|
+
} }, FUNCTION_ACTIVATE_TYPE.SNOWFLAKE_NATIVE_APP));
|
274
273
|
case FUNCTION_ACTIVATE_TYPE.HOSTED_SERVICE:
|
275
|
-
return (
|
274
|
+
return (_jsx(BaseCard, { cardMedia: _jsx(RocketIcon, { className: "function-promote-editor__type-icon" }), cardName: type, cardContent: "Create a HostedService that will be deployed to a server environment and executed with a pattern", isActive: activatorPromoteState.activateType ===
|
276
275
|
FUNCTION_ACTIVATE_TYPE.HOSTED_SERVICE, onClick: () => {
|
277
276
|
activatorPromoteState.setAcitvateType(type);
|
278
|
-
} }, FUNCTION_ACTIVATE_TYPE.HOSTED_SERVICE
|
277
|
+
} }, FUNCTION_ACTIVATE_TYPE.HOSTED_SERVICE));
|
279
278
|
case FUNCTION_ACTIVATE_TYPE.SERVICE_JAR:
|
280
|
-
return (
|
281
|
-
FUNCTION_ACTIVATE_TYPE.SERVICE_JAR }, FUNCTION_ACTIVATE_TYPE.SERVICE_JAR
|
279
|
+
return (_jsx(BaseCard, { cardMedia: _jsx("div", { className: "coming-soon-label", children: "Coming Soon" }), cardName: type, cardContent: "Deploy the function in the definition of a Store persistence", isDisable: true, isActive: activatorPromoteState.activateType ===
|
280
|
+
FUNCTION_ACTIVATE_TYPE.SERVICE_JAR }, FUNCTION_ACTIVATE_TYPE.SERVICE_JAR));
|
282
281
|
case FUNCTION_ACTIVATE_TYPE.REFINER:
|
283
|
-
return (
|
284
|
-
FUNCTION_ACTIVATE_TYPE.REFINER }, FUNCTION_ACTIVATE_TYPE.REFINER
|
282
|
+
return (_jsx(BaseCard, { cardMedia: _jsx("div", { className: "coming-soon-label", children: "Coming Soon" }), cardName: type, cardContent: "Use the service in a refiner context", isDisable: true, isActive: activatorPromoteState.activateType ===
|
283
|
+
FUNCTION_ACTIVATE_TYPE.REFINER }, FUNCTION_ACTIVATE_TYPE.REFINER));
|
285
284
|
case FUNCTION_ACTIVATE_TYPE.BIG_QUERY_NATIVE_APP:
|
286
|
-
return (
|
287
|
-
FUNCTION_ACTIVATE_TYPE.BIG_QUERY_NATIVE_APP }, FUNCTION_ACTIVATE_TYPE.BIG_QUERY_NATIVE_APP
|
285
|
+
return (_jsx(BaseCard, { cardMedia: _jsx("div", { className: "coming-soon-label", children: "Coming Soon" }), cardName: type, cardContent: "Deploy the function as a UDTF(user-defined table function) in BigQuery", isDisable: true, isActive: activatorPromoteState.activateType ===
|
286
|
+
FUNCTION_ACTIVATE_TYPE.BIG_QUERY_NATIVE_APP }, FUNCTION_ACTIVATE_TYPE.BIG_QUERY_NATIVE_APP));
|
288
287
|
default:
|
289
|
-
return
|
288
|
+
return _jsx(_Fragment, {});
|
290
289
|
}
|
291
290
|
};
|
292
|
-
return (
|
291
|
+
return (_jsx(Dialog, { open: activatorPromoteState.isActivatingFunction, onClose: closeModal, classes: { container: 'search-modal__container' }, PaperProps: { classes: { root: 'search-modal__inner-container' } }, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: "function-promote-editor", children: [_jsxs(ModalBody, { className: "function-promote-editor__content", children: [_jsx("div", { className: "function-promote-editor__content__prompt", children: "Select any one of the following activator types to continue" }), _jsx("div", { className: "function-promote-editor__content__activator-types", children: Object.values(FUNCTION_ACTIVATE_TYPE).map((type) => renderFunctionPromoteTypes(type)) }), _jsx("div", { className: "function-promote-editor__content__prompt", children: "Target Path" }), _jsx(InputWithInlineValidation, { className: "panel__content__form__section__input", spellCheck: false, onChange: onTargetPathChange, value: activatorPromoteState.activatorPath, error: elementAlreadyExistsMessage, showEditableIcon: true })] }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { className: "function-promote-editor__action-btn", onClick: closeModal, title: "Close", type: "secondary", children: "Cancel" }), _jsx(ModalFooterButton, { className: "function-promote-editor__action-btn function-promote-editor__action-btn--primitive", disabled: !activatorPromoteState.activateType ||
|
293
292
|
!validateFunctionActivator(activatorPromoteState.activateType), title: activatorPromoteState.activateType &&
|
294
293
|
validateFunctionActivator(activatorPromoteState.activateType)
|
295
294
|
? ''
|
296
|
-
: validationMessage, onClick: promoteFunction, children: "Activate" }
|
295
|
+
: validationMessage, onClick: promoteFunction, children: "Activate" })] })] }) }));
|
297
296
|
});
|
298
297
|
const FunctionDefinitionEditor = observer((props) => {
|
299
298
|
const { functionEditorState, isReadOnly } = props;
|
@@ -330,21 +329,21 @@ const FunctionDefinitionEditor = observer((props) => {
|
|
330
329
|
const renderFuncResult = () => {
|
331
330
|
if (execResult instanceof RawExecutionResult) {
|
332
331
|
const val = execResult.value === null ? 'null' : execResult.value.toString();
|
333
|
-
return (
|
332
|
+
return (_jsx(CodeEditor, { language: CODE_EDITOR_LANGUAGE.TEXT, inputValue: val, isReadOnly: true }));
|
334
333
|
}
|
335
334
|
else if (execResult !== undefined) {
|
336
335
|
const json = returnUndefOnError(() => JSON.stringify(extractExecutionResultValues(execResult), null, DEFAULT_TAB_SIZE)) ?? JSON.stringify(execResult);
|
337
|
-
return (
|
336
|
+
return (_jsx(CodeEditor, { language: CODE_EDITOR_LANGUAGE.JSON, inputValue: json, isReadOnly: true }));
|
338
337
|
}
|
339
|
-
return
|
338
|
+
return _jsx(BlankPanelContent, { children: "Function Did Not Run" });
|
340
339
|
};
|
341
|
-
return (
|
342
|
-
functionEditorState.isRunningFunc }
|
340
|
+
return (_jsxs(_Fragment, { children: [_jsx(PanelLoadingIndicator, { isLoading: functionEditorState.isGeneratingPlan ||
|
341
|
+
functionEditorState.isRunningFunc }), _jsxs("div", { className: "function-editor__definition", children: [_jsxs("div", { className: "function-editor__definition__item", children: [_jsxs("div", { className: "function-editor__definition__item__header", children: [_jsx("div", { className: "function-editor__definition__item__header__title", children: "PARAMETERS" }), _jsx("button", { className: "function-editor__definition__item__header__add-btn btn--dark", disabled: isReadOnly, onClick: addParameter, tabIndex: -1, title: "Add Parameter", children: _jsx(PlusIcon, {}) })] }), _jsx(DragPreviewLayer, { labelGetter: (item) => item.parameter.name === '' ? '(unknown)' : item.parameter.name, types: [FUNCTION_PARAMETER_DND_TYPE] }), _jsxs("div", { ref: dropParameterRef, className: clsx('function-editor__definition__item__content', {
|
343
342
|
'panel__content__lists--dnd-over': isParameterDragOver && !isReadOnly,
|
344
|
-
}), children: [functionElement.parameters.map((param) => (
|
343
|
+
}), children: [functionElement.parameters.map((param) => (_jsx(ParameterBasicEditor, { parameter: param, _func: functionElement, deleteParameter: deleteParameter(param), isReadOnly: isReadOnly }, param._UUID))), functionElement.parameters.length === 0 && (_jsx("div", { className: "function-editor__definition__item__content--empty", children: "No parameters" }))] })] }), _jsxs("div", { className: "function-editor__definition__item", children: [_jsxs("div", { className: "function-editor__definition__item__header", children: [_jsx("div", { className: "function-editor__definition__item__header__title", children: "LAMBDA" }), _jsx("div", { className: "", children: _jsx(ReturnTypeEditor, { functionElement: functionElement, isReadOnly: isReadOnly }) })] }), _jsx("div", { className: clsx('function-editor__definition__item__content', {
|
345
344
|
backdrop__element: Boolean(functionEditorState.functionDefinitionEditorState.parserError),
|
346
|
-
}), children:
|
347
|
-
isReadOnly, lambdaEditorState: lambdaEditorState, forceBackdrop: false, autoFocus: true }
|
345
|
+
}), children: _jsx(LambdaEditor, { className: "function-editor__definition__lambda-editor lambda-editor--dark", disabled: lambdaEditorState.isConvertingFunctionBodyToString ||
|
346
|
+
isReadOnly, lambdaEditorState: lambdaEditorState, forceBackdrop: false, autoFocus: true }) })] }), _jsxs("div", { className: "function-editor__definition__item", children: [_jsx("div", { className: "function-editor__definition__item__header", children: _jsxs("div", { className: "function-editor__definition__item__header__title", children: ["RESULT", _jsx(PanelGroupItemExperimentalBadge, {})] }) }), _jsx("div", { className: "function-editor__definition__item__content", children: _jsx("div", { className: "function-editor__definition__result-viewer", children: renderFuncResult() }) })] })] })] }));
|
348
347
|
});
|
349
348
|
export const FunctionEditor = observer(() => {
|
350
349
|
const editorStore = useEditorStore();
|
@@ -440,7 +439,7 @@ export const FunctionEditor = observer(() => {
|
|
440
439
|
applicationStore.notificationService.notifyError(`Can't save query: ${error.message}`);
|
441
440
|
}
|
442
441
|
});
|
443
|
-
return (
|
442
|
+
return (_jsx("button", { className: "query-builder__dialog__header__custom-action", tabIndex: -1, disabled: isReadOnly, onClick: save, children: "Save Query" }));
|
444
443
|
},
|
445
444
|
},
|
446
445
|
],
|
@@ -454,9 +453,9 @@ export const FunctionEditor = observer(() => {
|
|
454
453
|
const openFunctionActivateModal = () => {
|
455
454
|
functionEditorState.activatorPromoteState.showFunctionActivateModal();
|
456
455
|
};
|
457
|
-
return (
|
456
|
+
return (_jsx("div", { "data-testid": LEGEND_STUDIO_TEST_ID.FUNCTION_EDITOR, className: "function-editor uml-editor uml-editor--dark", children: _jsxs(Panel, { children: [_jsx("div", { className: "panel__header", children: _jsxs("div", { className: "panel__header__title", children: [isReadOnly && (_jsx("div", { className: "uml-element-editor__header__lock", children: _jsx(LockIcon, {}) })), _jsx("div", { className: "panel__header__title__label", children: "function" }), _jsx("div", { className: "panel__header__title__content", children: functionElement.functionName })] }) }), _jsxs("div", { className: "panel__header function-editor__tabs__header", children: [_jsx("div", { className: "function-editor__tabs", children: Object.values(FUNCTION_EDITOR_TAB).map((tab) => (_jsxs("div", { onClick: changeTab(tab), className: clsx('function-editor__tab', {
|
458
457
|
'function-editor__tab--active': tab === selectedTab,
|
459
|
-
}), children: [prettyCONSTName(tab), tab === FUNCTION_EDITOR_TAB.TEST_SUITES && (
|
458
|
+
}), children: [prettyCONSTName(tab), tab === FUNCTION_EDITOR_TAB.TEST_SUITES && (_jsx(DocumentationLink, { documentationKey: LEGEND_STUDIO_DOCUMENTATION_KEY.QUESTION_HOW_TO_WRITE_A_FUNCTION_TEST }))] }, tab))) }), _jsxs("div", { className: "panel__header__actions", children: [selectedTab === FUNCTION_EDITOR_TAB.DEFINITION && (_jsxs(_Fragment, { children: [_jsx("div", { className: "btn__dropdown-combo btn__dropdown-combo--primary", 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" })] }) }), _jsx("div", { className: "btn__dropdown-combo btn__dropdown-combo--primary", children: functionEditorState.isRunningFunc ? (_jsx("button", { className: "btn__dropdown-combo__canceler", onClick: cancelQuery, 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: runFunc, title: "Run Function", disabled: executionIsRunning, tabIndex: -1, children: [_jsx(PlayIcon, { className: "btn__dropdown-combo__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__label__title", children: "Run" })] }), _jsx(DropdownMenu, { className: "btn__dropdown-combo__dropdown-btn", disabled: executionIsRunning, 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: {
|
460
459
|
anchorOrigin: {
|
461
460
|
vertical: 'bottom',
|
462
461
|
horizontal: 'right',
|
@@ -465,12 +464,12 @@ export const FunctionEditor = observer(() => {
|
|
465
464
|
vertical: 'top',
|
466
465
|
horizontal: 'right',
|
467
466
|
},
|
468
|
-
}, children:
|
467
|
+
}, children: _jsx(CaretDownIcon, {}) })] })) }), _jsx("div", { className: "btn__dropdown-combo btn__dropdown-combo--primary", children: _jsxs("button", { className: "btn__dropdown-combo__label", onClick: openFunctionActivateModal, title: "Activate function", tabIndex: -1, children: [_jsx(RocketIcon, { className: "btn__dropdown-combo__label__icon" }), _jsx("div", { className: "btn__dropdown-combo__label__title", children: "Activate" })] }) })] })), _jsx("button", { className: "panel__header__action", disabled: isReadOnly || selectedTab === FUNCTION_EDITOR_TAB.DEFINITION, onClick: add, tabIndex: -1, title: addButtonTitle, children: _jsx(PlusIcon, {}) })] })] }), _jsxs(PanelContent, { children: [selectedTab === FUNCTION_EDITOR_TAB.DEFINITION && (_jsx(FunctionDefinitionEditor, { functionEditorState: functionEditorState, isReadOnly: isReadOnly })), selectedTab === FUNCTION_EDITOR_TAB.TAGGED_VALUES && (_jsxs("div", { ref: dropTaggedValueRef, className: clsx('panel__content__lists', {
|
469
468
|
'panel__content__lists--dnd-over': isTaggedValueDragOver && !isReadOnly,
|
470
|
-
}), children: [
|
469
|
+
}), children: [_jsx(TaggedValueDragPreviewLayer, {}), functionElement.taggedValues.map((taggedValue) => (_jsx(TaggedValueEditor, { annotatedElement: functionElement, taggedValue: taggedValue, deleteValue: _deleteTaggedValue(taggedValue), isReadOnly: isReadOnly, darkTheme: true }, taggedValue._UUID)))] })), selectedTab === FUNCTION_EDITOR_TAB.STEREOTYPES && (_jsxs("div", { ref: dropStereotypeRef, className: clsx('panel__content__lists', {
|
471
470
|
'panel__content__lists--dnd-over': isStereotypeDragOver && !isReadOnly,
|
472
|
-
}), children: [
|
473
|
-
.showModal && (
|
474
|
-
.observerContext, lambdaParametersState: functionEditorState.parametersState }
|
471
|
+
}), children: [_jsx(StereotypeDragPreviewLayer, {}), functionElement.stereotypes.map((stereotype) => (_jsx(StereotypeSelector, { annotatedElement: functionElement, stereotype: stereotype, deleteStereotype: _deleteStereotype(stereotype), isReadOnly: isReadOnly, darkTheme: true }, stereotype.value._UUID)))] })), selectedTab === FUNCTION_EDITOR_TAB.TEST_SUITES && (_jsx(FunctionTestableEditor, { functionTestableState: functionEditorState.functionTestableEditorState })), _jsx(ExecutionPlanViewer, { executionPlanState: functionEditorState.executionPlanState }), functionEditorState.parametersState.parameterValuesEditorState
|
472
|
+
.showModal && (_jsx(LambdaParameterValuesEditor, { graph: functionEditorState.editorStore.graphManagerState.graph, observerContext: functionEditorState.editorStore.changeDetectionState
|
473
|
+
.observerContext, lambdaParametersState: functionEditorState.parametersState }))] }), functionEditorState.activatorPromoteState.isActivatingFunction && (_jsx(FunctionPromoteEditor, { functionElement: functionElement, activatorPromoteState: functionEditorState.activatorPromoteState }))] }) }));
|
475
474
|
});
|
476
475
|
//# sourceMappingURL=FunctionEditor.js.map
|