@finos/legend-application-studio 28.17.9 → 28.17.10
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/application/LegendStudio.js +3 -2
- package/lib/application/LegendStudio.js.map +1 -1
- package/lib/components/ElementIconUtils.js +24 -23
- package/lib/components/ElementIconUtils.js.map +1 -1
- package/lib/components/LegendStudioAppInfo.js +8 -7
- package/lib/components/LegendStudioAppInfo.js.map +1 -1
- package/lib/components/LegendStudioFrameworkProvider.js +4 -3
- package/lib/components/LegendStudioFrameworkProvider.js.map +1 -1
- package/lib/components/LegendStudioWebApplication.d.ts +2 -2
- package/lib/components/LegendStudioWebApplication.js +14 -13
- package/lib/components/LegendStudioWebApplication.js.map +1 -1
- package/lib/components/ShowcaseManager.d.ts +1 -1
- package/lib/components/ShowcaseManager.js +30 -29
- package/lib/components/ShowcaseManager.js.map +1 -1
- package/lib/components/editor/ActivityBar.d.ts +1 -1
- package/lib/components/editor/ActivityBar.js +28 -27
- package/lib/components/editor/ActivityBar.js.map +1 -1
- package/lib/components/editor/Editor.js +9 -8
- package/lib/components/editor/Editor.js.map +1 -1
- package/lib/components/editor/EditorStoreProvider.js +4 -3
- package/lib/components/editor/EditorStoreProvider.js.map +1 -1
- package/lib/components/editor/EmbeddedQueryBuilder.d.ts +1 -1
- package/lib/components/editor/EmbeddedQueryBuilder.js +6 -5
- package/lib/components/editor/EmbeddedQueryBuilder.js.map +1 -1
- package/lib/components/editor/QuickInput.d.ts +1 -1
- package/lib/components/editor/QuickInput.js +6 -5
- package/lib/components/editor/QuickInput.js.map +1 -1
- package/lib/components/editor/StatusBar.d.ts +1 -1
- package/lib/components/editor/StatusBar.js +12 -11
- package/lib/components/editor/StatusBar.js.map +1 -1
- package/lib/components/editor/__test-utils__/EditorComponentTestUtils.js +3 -2
- 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 +5 -4
- 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 +3 -2
- 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 +40 -39
- 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 +12 -11
- 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 +5 -4
- 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 +15 -14
- 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 +15 -14
- 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 +30 -29
- 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 +4 -3
- 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 +10 -9
- 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 +11 -10
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseEditorHelper.js +11 -10
- 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 +6 -5
- 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 +14 -13
- 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 +3 -2
- 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 +55 -54
- 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 +8 -7
- 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 +7 -6
- 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 +18 -17
- 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 +10 -9
- package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.js.map +1 -1
- package/lib/components/editor/editor-group/database/IsolatedQueryDatabase.js +6 -5
- 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 +11 -10
- 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 +6 -5
- 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 +3 -2
- 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 +6 -5
- 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 +3 -2
- 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 +7 -6
- 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 +27 -26
- 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 +13 -12
- 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 +17 -16
- 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 +11 -10
- 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 +3 -2
- 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 +3 -2
- 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 +16 -15
- 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 +6 -5
- 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 +39 -38
- 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 +13 -12
- 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 +4 -3
- 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 +6 -5
- 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 +33 -32
- 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 +9 -8
- 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 +11 -10
- 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 +7 -6
- package/lib/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/FlatDataRecordTypeTree.js +8 -7
- 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 +12 -11
- 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 +6 -5
- 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 +20 -19
- 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 +25 -24
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.js +5 -4
- 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 +12 -11
- 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 +30 -29
- 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 +12 -11
- 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 +9 -8
- 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 +5 -4
- 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 +15 -14
- 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 +10 -9
- package/lib/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/TypeTree.js +9 -8
- 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 +22 -21
- 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 +5 -4
- 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 +11 -10
- 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 +9 -8
- 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 +22 -21
- 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 +27 -26
- 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 +11 -10
- 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 +6 -5
- 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 +25 -24
- 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 +33 -32
- 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 +11 -10
- 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 +13 -12
- 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 +12 -11
- 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 +30 -29
- 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 +6 -5
- 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 +23 -22
- 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 +31 -30
- 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 +8 -7
- 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 +31 -30
- 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 +11 -10
- 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 +8 -7
- 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 +8 -7
- 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 +7 -6
- 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 +7 -6
- 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 +10 -9
- 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 +3 -2
- 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 +3 -2
- 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 +7 -6
- 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 +6 -5
- 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 +6 -5
- 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 +19 -18
- 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 +27 -26
- 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 +37 -36
- 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 +13 -12
- 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 +29 -28
- 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 +18 -17
- 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 +13 -12
- 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 +28 -27
- 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 +9 -8
- 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 +10 -9
- 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 +7 -6
- 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 +7 -6
- 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 +7 -6
- 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 +33 -32
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js +4 -3
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.js +8 -7
- package/lib/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/lazy-text-editor/LazyTextEditor.js +11 -10
- 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 +8 -7
- package/lib/components/project-reviewer/ProjectReviewSideBar.js.map +1 -1
- package/lib/components/project-reviewer/ProjectReviewStoreProvider.js +4 -3
- package/lib/components/project-reviewer/ProjectReviewStoreProvider.js.map +1 -1
- package/lib/components/project-reviewer/ProjectReviewer.js +6 -5
- 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 +10 -9
- package/lib/components/project-reviewer/ProjectReviewerPanel.js.map +1 -1
- package/lib/components/project-view/ProjectViewer.js +24 -23
- package/lib/components/project-view/ProjectViewer.js.map +1 -1
- package/lib/components/project-view/ProjectViewerStoreProvider.js +4 -3
- package/lib/components/project-view/ProjectViewerStoreProvider.js.map +1 -1
- package/lib/components/showcase/ShowcaseViewer.js +20 -19
- package/lib/components/showcase/ShowcaseViewer.js.map +1 -1
- package/lib/components/showcase/ShowcaseViewerStoreProvider.js +4 -3
- 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 +16 -15
- 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 +8 -7
- package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -1
- package/lib/components/workspace-setup/ProjectSelectorUtils.js +7 -6
- package/lib/components/workspace-setup/ProjectSelectorUtils.js.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSelectorUtils.js +3 -2
- package/lib/components/workspace-setup/WorkspaceSelectorUtils.js.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.js +28 -27
- package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/package.json +5 -5
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV, Fragment as _Fragment } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-application-studio/src/components/editor/editor-group/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -56,7 +57,7 @@ export const MapperPostProcessorEditor = observer((props) => {
|
|
56
57
|
val.from &&
|
57
58
|
mapper.from === val.from).length >= 2;
|
58
59
|
const isMapperDuplicated = (val) => isSchemaMapperDuplicated(val) || isTableMapperDuplicated(val);
|
59
|
-
return (
|
60
|
+
return (_jsxDEV(ResizablePanelGroup, { orientation: "horizontal", children: _jsxDEV(ResizablePanel, { children: _jsxDEV(ResizablePanelGroup, { orientation: "vertical", children: [_jsxDEV(ResizablePanel, { size: 170, minSize: 70, children: _jsxDEV(Panel, { children: [_jsxDEV(PanelHeader, { title: "mapper", children: _jsxDEV(PanelHeaderActions, { children: _jsxDEV(DropdownMenu, { title: "Create mapper", className: "panel__header__action", disabled: isReadOnly, content: _jsxDEV(MenuContent, { children: [_jsxDEV(MenuContentItem, { onClick: addSchemaMapper, children: "New Schema Mapper" }, void 0, false, { fileName: _jsxFileName, lineNumber: 146, columnNumber: 27 }, this), _jsxDEV(MenuContentItem, { onClick: addTableMapper, children: "New Table Mapper" }, void 0, false, { fileName: _jsxFileName, lineNumber: 149, columnNumber: 27 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 144, columnNumber: 32 }, this), menuProps: {
|
60
61
|
anchorOrigin: {
|
61
62
|
vertical: 'bottom',
|
62
63
|
horizontal: 'right',
|
@@ -66,16 +67,16 @@ export const MapperPostProcessorEditor = observer((props) => {
|
|
66
67
|
horizontal: 'right',
|
67
68
|
},
|
68
69
|
elevation: 7,
|
69
|
-
}, children:
|
70
|
+
}, children: _jsxDEV(PlusIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 166, columnNumber: 23 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 140, columnNumber: 21 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 139, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 138, columnNumber: 17 }, this), _jsxDEV(PanelContent, { children: mappers.map((mapper) => (_jsxDEV(ContextMenu, { disabled: isReadOnly, content: _jsxDEV(MenuContent, { children: _jsxDEV(MenuContentItem, { disabled: isReadOnly, onClick: deleteMapper(mapper), children: "Delete" }, void 0, false, { fileName: _jsxFileName, lineNumber: 177, columnNumber: 27 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 175, columnNumber: 32 }, this), menuProps: { elevation: 7 }, children: _jsxDEV(PanelListSelectorItem, { validationError: isMapperDuplicated(mapper), isSelected: mapper === postProcessorState.selectedMapper, onSelect: () => selectMapper(mapper), children: _jsxDEV(PanelListSelectorItemLabel, { title: mapper instanceof TableNameMapper
|
70
71
|
? 'Table Mapper'
|
71
72
|
: 'Schema Mapper', errorMessage: isMapperDuplicated(mapper)
|
72
73
|
? 'Mappers have the same values'
|
73
|
-
: undefined }) }) }, mapper._UUID))) })] }) }),
|
74
|
+
: undefined }, void 0, false, { fileName: _jsxFileName, lineNumber: 194, columnNumber: 25 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 187, columnNumber: 23 }, this) }, mapper._UUID, false, { fileName: _jsxFileName, lineNumber: 171, columnNumber: 45 }, this))) }, void 0, false, { fileName: _jsxFileName, lineNumber: 170, columnNumber: 17 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 137, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 136, columnNumber: 13 }, this), _jsxDEV(ResizablePanelSplitter, { children: _jsxDEV(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }, void 0, false, { fileName: _jsxFileName, lineNumber: 213, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 212, columnNumber: 13 }, this), _jsxDEV(ResizablePanel, { children: _jsxDEV(Panel, { children: [_jsxDEV(PanelHeader, { title: postProcessorState.selectedMapper instanceof TableNameMapper
|
74
75
|
? 'Table Mapper'
|
75
|
-
: 'Schema Mapper' }),
|
76
|
+
: 'Schema Mapper' }, void 0, false, { fileName: _jsxFileName, lineNumber: 217, columnNumber: 17 }, this), _jsxDEV(PanelContent, { children: [!selectedMapper && (_jsxDEV(BlankPanelContent, { children: !mappers.length
|
76
77
|
? 'Add a mapper'
|
77
|
-
: 'Choose a mapper to view' })), selectedMapper && (
|
78
|
+
: 'Choose a mapper to view' }, void 0, false, { fileName: _jsxFileName, lineNumber: 225, columnNumber: 40 }, this)), selectedMapper && (_jsxDEV(PanelForm, { children: [_jsxDEV(PanelFormTextField, { isReadOnly: isReadOnly, value: selectedMapper.from, name: "From", update: (value) => mapper_setFrom(selectedMapper, value ?? '') }, void 0, false, { fileName: _jsxFileName, lineNumber: 234, columnNumber: 23 }, this), _jsxDEV(PanelFormTextField, { isReadOnly: isReadOnly, value: selectedMapper.to, name: "To", update: (value) => mapper_setTo(selectedMapper, value ?? '') }, void 0, false, { fileName: _jsxFileName, lineNumber: 242, columnNumber: 23 }, this), selectedSchemaNameMapper && (_jsxDEV(_Fragment, { children: [_jsxDEV(PanelFormTextField, { isReadOnly: isReadOnly, value: selectedSchemaNameMapper.from, name: "Schema - From", update: (value) => {
|
78
79
|
schemaNameMapper_setFrom(selectedSchemaNameMapper, value ?? '');
|
79
|
-
} }),
|
80
|
+
} }, void 0, false, { fileName: _jsxFileName, lineNumber: 252, columnNumber: 27 }, this), _jsxDEV(PanelFormTextField, { isReadOnly: isReadOnly, value: selectedSchemaNameMapper.to, name: "Schema - To", update: (value) => schemaNameMapper_setTo(selectedSchemaNameMapper, value ?? '') }, void 0, false, { fileName: _jsxFileName, lineNumber: 263, columnNumber: 27 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 250, columnNumber: 53 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 232, columnNumber: 39 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 224, columnNumber: 17 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 216, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 215, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 135, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 134, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 132, columnNumber: 13 }, this));
|
80
81
|
});
|
81
82
|
//# sourceMappingURL=MapperPostProcessorEditor.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MapperPostProcessorEditor.js","sourceRoot":"","sources":["../../../../../../src/components/editor/editor-group/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"MapperPostProcessorEditor.js","sourceRoot":"","sources":["../../../../../../src/components/editor/editor-group/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,QAAQ,EACR,sBAAsB,EACtB,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,WAAW,EACX,eAAe,EACf,YAAY,EACZ,qBAAqB,EACrB,iB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E,QAAC,kBAAkB,IACjB,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,wBAAwB,CAAC,IAAI,EACpC,IAAI,EAAC,eAAe,EACpB,MAAM,EAAE,CAAC,KAAyB,EAAQ,EAAE;gEAC1C,wBAAwB,CACtB,wBAAwB,EACxB,KAAK,IAAI,EAAE,CACZ,CAAC;4DACJ,CAAC,uFACD,EACF,QAAC,kBAAkB,IACjB,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,wBAAwB,CAAC,EAAE,EAClC,IAAI,EAAC,aAAa,EAClB,MAAM,EAAE,CAAC,KAAyB,EAAQ,EAAE,CAC1C,sBAAsB,CACpB,wBAAwB,EACxB,KAAK,IAAI,EAAE,CACZ,uFAEH,uFACD,CACJ,uFACS,CACb,uFACY,uFACT,uFACO,uFACG,sFACP,uFACG,CACvB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -18,16 +18,16 @@ import type { ExternalFormatDataState } from '../../../../stores/editor/editor-s
|
|
18
18
|
export declare const ExternalFormatDataEditor: ((props: {
|
19
19
|
externalFormatDataState: ExternalFormatDataState;
|
20
20
|
isReadOnly: boolean;
|
21
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
21
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
22
22
|
displayName: string;
|
23
23
|
};
|
24
24
|
export declare const EmbeddedDataEditor: ((props: {
|
25
25
|
embeddedDataEditorState: EmbeddedDataEditorState;
|
26
26
|
isReadOnly: boolean;
|
27
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
27
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
28
28
|
displayName: string;
|
29
29
|
};
|
30
|
-
export declare const DataElementEditor: (() => import("react/jsx-runtime").JSX.Element) & {
|
30
|
+
export declare const DataElementEditor: (() => import("react/jsx-dev-runtime").JSX.Element) & {
|
31
31
|
displayName: string;
|
32
32
|
};
|
33
33
|
//# sourceMappingURL=DataElementEditor.d.ts.map
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV, Fragment as _Fragment } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-application-studio/src/components/editor/editor-group/data-editor/DataElementEditor.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -47,15 +48,15 @@ export const ExternalFormatDataEditor = observer((props) => {
|
|
47
48
|
.formatContentTypes;
|
48
49
|
const onContentTypeChange = (val) => externalFormatData_setContentType(externalFormatDataState.embeddedData, val);
|
49
50
|
const language = getEditorLanguageForFormat(editorStore.graphState.graphGenerationState.externalFormatState.getFormatTypeForContentType(externalFormatDataState.embeddedData.contentType));
|
50
|
-
return (
|
51
|
+
return (_jsxDEV("div", { className: "panel external-format-data-editor", children: [_jsxDEV("div", { className: "external-format-data-editor__header", children: [_jsxDEV("div", { className: "external-format-data-editor__header__title", children: [isReadOnly && (_jsxDEV("div", { className: "external-format-editor-editor__header__lock", children: _jsxDEV(LockIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 118, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 116, columnNumber: 29 }, this)), _jsxDEV("div", { className: "external-format-data-editor__header__title__label", children: externalFormatDataState.label() }, void 0, false, { fileName: _jsxFileName, lineNumber: 121, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 115, columnNumber: 11 }, this), _jsxDEV("div", { className: "external-format-data-editor__header__actions", children: _jsxDEV(DropdownMenu, { className: "external-format-data-editor__type", disabled: isReadOnly, content: _jsxDEV(MenuContent, { className: "external-format-data-editor__dropdown", children: contentTypeOptions.map((contentType) => (_jsxDEV(MenuContentItem, { className: "external-format-data-editor__option", onClick: () => onContentTypeChange(contentType), children: contentType }, contentType, false, { fileName: _jsxFileName, lineNumber: 131, columnNumber: 61 }, this))) }, void 0, false, { fileName: _jsxFileName, lineNumber: 129, columnNumber: 24 }, this), menuProps: {
|
51
52
|
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
52
53
|
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
53
|
-
}, children: [
|
54
|
+
}, children: [_jsxDEV("div", { className: "external-format-data-editor__type__label", children: externalFormatDataState.embeddedData.contentType }, void 0, false, { fileName: _jsxFileName, lineNumber: 147, columnNumber: 15 }, this), _jsxDEV("div", { className: "external-format-data-editor__type__icon", children: _jsxDEV(CaretDownIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 151, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 150, columnNumber: 15 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 126, columnNumber: 13 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 125, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 114, columnNumber: 9 }, this), _jsxDEV("div", { className: clsx('external-format-data-editor__content'), children: _jsxDEV("div", { className: "external-format-data-editor__content__input", children: _jsxDEV(CodeEditor, { language: language, inputValue: externalFormatDataState.embeddedData.data, updateInput: changeData, hideGutter: true }, void 0, false, { fileName: _jsxFileName, lineNumber: 158, columnNumber: 13 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 157, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 156, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 112, columnNumber: 13 }, this));
|
54
55
|
});
|
55
56
|
export const EmbeddedDataEditor = observer((props) => {
|
56
57
|
const { embeddedDataEditorState, isReadOnly } = props;
|
57
58
|
const embeddedDataState = embeddedDataEditorState.embeddedDataState;
|
58
|
-
return (
|
59
|
+
return (_jsxDEV("div", { className: "panel connection-editor", children: renderEmbeddedDataEditor(embeddedDataState, isReadOnly) }, void 0, false, { fileName: _jsxFileName, lineNumber: 178, columnNumber: 13 }, this));
|
59
60
|
});
|
60
61
|
export const DataElementEditor = observer(() => {
|
61
62
|
const editorStore = useEditorStore();
|
@@ -99,8 +100,8 @@ export const DataElementEditor = observer(() => {
|
|
99
100
|
}), [handleDropStereotype]);
|
100
101
|
const seeDocumentation = () => applicationStore.assistantService.openDocumentationEntry(LEGEND_STUDIO_DOCUMENTATION_KEY.QUESTION_HOW_TO_CREATE_A_DATA_ELEMENT);
|
101
102
|
useApplicationNavigationContext(LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.DATA_ELEMENT_EDITOR);
|
102
|
-
return (
|
103
|
+
return (_jsxDEV("div", { className: "data-editor", children: [_jsxDEV("div", { className: "data-editor__header", children: _jsxDEV("div", { className: "data-editor__header__title", children: [isReadOnly && (_jsxDEV("div", { className: "data-editor__header__lock", children: _jsxDEV(LockIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 286, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 284, columnNumber: 27 }, this)), _jsxDEV("div", { className: "data-editor__header__title__label", children: ["Data Element", _jsxDEV("button", { className: "binding-editor__header__title__label__hint", tabIndex: -1, onClick: seeDocumentation, title: "click to see more details on creating a data element", children: _jsxDEV(InfoCircleIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 297, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 291, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 289, columnNumber: 11 }, this), _jsxDEV("div", { className: "data-editor__header__title__content", children: dataElement.name }, void 0, false, { fileName: _jsxFileName, lineNumber: 301, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 283, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 282, columnNumber: 7 }, this), _jsxDEV("div", { className: "uml-element-editor__tabs", children: Object.values(DATA_TAB_TYPE).map((tab) => (_jsxDEV("div", { onClick: changeTab(tab), className: clsx('relational-connection-editor__tab', {
|
103
104
|
'relational-connection-editor__tab--active': tab === selectedTab,
|
104
|
-
}), children: prettyCONSTName(tab) }, tab))) }),
|
105
|
+
}), children: prettyCONSTName(tab) }, tab, false, { fileName: _jsxFileName, lineNumber: 307, columnNumber: 53 }, this))) }, void 0, false, { fileName: _jsxFileName, lineNumber: 306, columnNumber: 7 }, this), _jsxDEV("div", { className: "data-editor__content", children: [selectedTab === DATA_TAB_TYPE.GENERAL && (_jsxDEV(EmbeddedDataEditor, { embeddedDataEditorState: editorState.embeddedDataState, isReadOnly: isReadOnly }, void 0, false, { fileName: _jsxFileName, lineNumber: 320, columnNumber: 52 }, this)), selectedTab === DATA_TAB_TYPE.STEREOTYPES && (_jsxDEV(_Fragment, { children: [_jsxDEV("div", { className: "data-editor__header", children: [_jsxDEV("div", { className: "data-editor__header__title", children: [isReadOnly && (_jsxDEV("div", { className: "element-editor__header__lock", children: _jsxDEV(LockIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 332, columnNumber: 21 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 330, columnNumber: 33 }, this)), _jsxDEV("div", { className: "data-editor__header__title__label", children: "Stereotypes" }, void 0, false, { fileName: _jsxFileName, lineNumber: 335, columnNumber: 17 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 329, columnNumber: 15 }, this), _jsxDEV("div", { className: "data-editor__header__actions", children: _jsxDEV("button", { className: "data-editor__header__action", onClick: addStereotype, disabled: isReadOnly, tabIndex: -1, title: "Add Stereotype", children: _jsxDEV(PlusIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 347, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 340, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 339, columnNumber: 15 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 328, columnNumber: 13 }, this), _jsxDEV("div", { className: "data-editor__content", children: _jsxDEV("div", { className: "data-editor__content__lists", children: _jsxDEV(PanelDropZone, { isDragOver: isStereotypeDragOver && !isReadOnly, dropTargetConnector: dropStereotypeRef, children: _jsxDEV(PanelContentLists, { children: [_jsxDEV(StereotypeDragPreviewLayer, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 358, columnNumber: 21 }, this), dataElement.stereotypes.map((stereotype) => (_jsxDEV(StereotypeSelector, { annotatedElement: dataElement, stereotype: stereotype, deleteStereotype: _deleteStereotype(stereotype), isReadOnly: isReadOnly, darkTheme: true }, stereotype.value._UUID, false, { fileName: _jsxFileName, lineNumber: 359, columnNumber: 67 }, this)))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 357, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 353, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 352, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 351, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 326, columnNumber: 56 }, this)), selectedTab === DATA_TAB_TYPE.TAGGED_VALUES && (_jsxDEV(_Fragment, { children: [_jsxDEV("div", { className: "data-editor__header", children: [_jsxDEV("div", { className: "data-editor__header__title", children: [isReadOnly && (_jsxDEV("div", { className: "data-editor__header__lock", children: _jsxDEV(LockIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 381, columnNumber: 21 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 379, columnNumber: 33 }, this)), _jsxDEV("div", { className: "data-editor__header__title__label", children: "Tagged Values" }, void 0, false, { fileName: _jsxFileName, lineNumber: 384, columnNumber: 17 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 378, columnNumber: 15 }, this), _jsxDEV("div", { className: "data-editor__header__actions", children: _jsxDEV("button", { className: "data-editor__header__action", onClick: addTaggedValue, disabled: isReadOnly, tabIndex: -1, title: "Add Tagged value", children: _jsxDEV(PlusIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 396, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 389, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 388, columnNumber: 15 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 377, columnNumber: 13 }, this), _jsxDEV("div", { className: "data-editor__content", children: _jsxDEV("div", { className: "data-editor__content__lists", children: _jsxDEV(PanelDropZone, { isDragOver: isTaggedValueDragOver && !isReadOnly, dropTargetConnector: dropTaggedValueRef, children: _jsxDEV(PanelContentLists, { children: [_jsxDEV(TaggedValueDragPreviewLayer, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 407, columnNumber: 21 }, this), dataElement.taggedValues.map((taggedValue) => (_jsxDEV(TaggedValueEditor, { annotatedElement: dataElement, taggedValue: taggedValue, deleteValue: deleteTaggedValue(taggedValue), isReadOnly: isReadOnly, darkTheme: true }, taggedValue._UUID, false, { fileName: _jsxFileName, lineNumber: 408, columnNumber: 69 }, this)))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 406, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 402, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 401, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 400, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 375, columnNumber: 58 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 319, columnNumber: 7 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 280, columnNumber: 11 }, this));
|
105
106
|
});
|
106
107
|
//# sourceMappingURL=DataElementEditor.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataElementEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/data-editor/DataElementEditor.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"DataElementEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/data-editor/DataElementEditor.tsx"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AAEH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AAqB,aAClC,iBAAK,SAAS,EAAC,4BAA4B,aACxC,UAAU,IAAI,CACb,iBAAK,SAAS,EAAC,2BAA2B,YACxC,QAAC,QAAQ,yFAAG,uFACR,CACP,EACD,iBAAK,SAAS,EAAC,mCAAmC,kHAE5C,uFACF,EACN,iBAAK,SAAS,EAAC,8BAA8B,YAC3C,oBACE,SAAS,EAAC,6BAA6B,EACvC,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAC,kBAAkB,YAExB,QAAC,QAAQ,yFAAG,uFACL,uFACL,uFACF,EACN,iBAAK,SAAS,EAAC,sBAAsB,YACnC,iBAAK,SAAS,EAAC,6BAA6B,YAC1C,QAAC,aAAa,IACZ,UAAU,EAAE,qBAAqB,IAAI,CAAC,UAAU,EAChD,mBAAmB,EAAE,kBAAkB,YAEvC,QAAC,iBAAiB,eAChB,QAAC,2BAA2B,yFAAG,EAC9B,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAC7C,QAAC,iBAAiB,IAChB,gBAAgB,EAAE,WAAW,EAE7B,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,iBAAiB,CAAC,WAAW,CAAC,EAC3C,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,IAAI,IAJV,WAAW,CAAC,KAAK,6EAKtB,CACH,CAAC,uFACgB,uFACN,uFACZ,uFACF,uFACL,CACJ,sFACG,uFACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -19,32 +19,32 @@ import { type EmbeddedDataState, DataElementReferenceState, ExternalFormatDataSt
|
|
19
19
|
export declare const ExternalFormatDataEditor: ((props: {
|
20
20
|
externalFormatDataState: ExternalFormatDataState;
|
21
21
|
isReadOnly: boolean;
|
22
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
22
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
23
23
|
displayName: string;
|
24
24
|
};
|
25
25
|
export declare const DataElementReferenceDataEditor: ((props: {
|
26
26
|
dataElementReferenceState: DataElementReferenceState;
|
27
27
|
isReadOnly: boolean;
|
28
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
28
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
29
29
|
displayName: string;
|
30
30
|
};
|
31
31
|
export declare const ModelEmbeddedDataEditor: ((props: {
|
32
32
|
modelDataState: ModelEmbeddedDataState;
|
33
33
|
modelStoreDataState: ModelStoreDataState;
|
34
34
|
isReadOnly: boolean;
|
35
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
35
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
36
36
|
displayName: string;
|
37
37
|
};
|
38
38
|
export declare const ModelStoreDataEditor: ((props: {
|
39
39
|
modelStoreDataState: ModelStoreDataState;
|
40
40
|
isReadOnly: boolean;
|
41
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
41
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
42
42
|
displayName: string;
|
43
43
|
};
|
44
44
|
export declare const EmbeddedDataEditor: ((props: {
|
45
45
|
embeddedDataEditorState: EmbeddedDataEditorState;
|
46
46
|
isReadOnly: boolean;
|
47
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
47
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
48
48
|
displayName: string;
|
49
49
|
};
|
50
50
|
export declare function renderEmbeddedDataEditor(embeddedDataState: EmbeddedDataState, isReadOnly: boolean): React.ReactNode;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV, Fragment as _Fragment } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-application-studio/src/components/editor/editor-group/data-editor/EmbeddedDataEditor.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -44,10 +45,10 @@ export const ExternalFormatDataEditor = observer((props) => {
|
|
44
45
|
const language = getEditorLanguageForFormat(editorStore.graphState.graphGenerationState.externalFormatState.getFormatTypeForContentType(externalFormatDataState.embeddedData.contentType));
|
45
46
|
const format = () => externalFormatDataState.format();
|
46
47
|
useApplicationNavigationContext(LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.EMBEDDED_DATA_EXTERNAL_FORMAT_EDITOR);
|
47
|
-
return (
|
48
|
+
return (_jsxDEV("div", { className: "panel external-format-data-editor", children: [_jsxDEV("div", { className: "external-format-data-editor__header", children: [_jsxDEV("div", { className: "external-format-data-editor__header__title", children: [isReadOnly && (_jsxDEV("div", { className: "external-format-editor-editor__header__lock", children: _jsxDEV(LockIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 106, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 104, columnNumber: 29 }, this)), _jsxDEV("div", { className: "external-format-data-editor__header__title__label", children: externalFormatDataState.label() }, void 0, false, { fileName: _jsxFileName, lineNumber: 109, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 103, columnNumber: 11 }, this), _jsxDEV("div", { className: "external-format-data-editor__header__actions", children: [_jsxDEV("button", { className: "panel__header__action", disabled: !externalFormatDataState.supportsFormatting || isReadOnly, tabIndex: -1, onClick: format, title: "Format External Format", children: _jsxDEV(WrenchIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 123, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 114, columnNumber: 13 }, this), _jsxDEV(DropdownMenu, { className: "external-format-data-editor__type", disabled: isReadOnly, content: _jsxDEV(MenuContent, { className: "external-format-data-editor__dropdown", children: contentTypeOptions.map((contentType) => (_jsxDEV(MenuContentItem, { className: "external-format-data-editor__option", onClick: () => onContentTypeChange(contentType), children: contentType }, contentType, false, { fileName: _jsxFileName, lineNumber: 130, columnNumber: 61 }, this))) }, void 0, false, { fileName: _jsxFileName, lineNumber: 128, columnNumber: 24 }, this), menuProps: {
|
48
49
|
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
49
50
|
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
50
|
-
}, children: [
|
51
|
+
}, children: [_jsxDEV("div", { className: "external-format-data-editor__type__label", children: externalFormatDataState.embeddedData.contentType }, void 0, false, { fileName: _jsxFileName, lineNumber: 146, columnNumber: 15 }, this), _jsxDEV("div", { className: "external-format-data-editor__type__icon", children: _jsxDEV(CaretDownIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 150, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 149, columnNumber: 15 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 125, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 113, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 102, columnNumber: 9 }, this), _jsxDEV(PanelContent, { className: "model-loader__editor", children: _jsxDEV(CodeEditor, { language: language, inputValue: externalFormatDataState.embeddedData.data, updateInput: changeData, hideGutter: true }, void 0, false, { fileName: _jsxFileName, lineNumber: 156, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 155, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 100, columnNumber: 13 }, this));
|
51
52
|
});
|
52
53
|
export const DataElementReferenceDataEditor = observer((props) => {
|
53
54
|
const { dataElementReferenceState, isReadOnly } = props;
|
@@ -63,8 +64,8 @@ export const DataElementReferenceDataEditor = observer((props) => {
|
|
63
64
|
};
|
64
65
|
const visitData = () => editorStore.graphEditorMode.openElement(dataElement);
|
65
66
|
useApplicationNavigationContext(LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.EMBEDDED_DATA_DATA_ELEMENT_REFERENCE_EDITOR);
|
66
|
-
return (
|
67
|
-
.TEMPORARY__isLightColorThemeEnabled }),
|
67
|
+
return (_jsxDEV("div", { className: "panel data-element-reference-editor", children: [_jsxDEV("div", { className: "data-element-reference-editor__header", children: _jsxDEV("div", { className: "data-element-reference-editor__header__title", children: [isReadOnly && (_jsxDEV("div", { className: "external-format-editor-editor__header__lock", children: _jsxDEV(LockIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 200, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 198, columnNumber: 29 }, this)), _jsxDEV("div", { className: "data-element-reference-editor__header__title__label", children: dataElementReferenceState.label() }, void 0, false, { fileName: _jsxFileName, lineNumber: 203, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 197, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 196, columnNumber: 9 }, this), _jsxDEV("div", { className: clsx('data-element-reference-editor__content'), children: [_jsxDEV("div", { className: "data-element-reference-editor__value", children: [_jsxDEV("div", { className: "btn--sm data-element-reference-editor__value__label", children: _jsxDEV(PURE_DataIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 211, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 210, columnNumber: 13 }, this), _jsxDEV(CustomSelectorInput, { className: "panel__content__form__section__dropdown data-element-reference-editor__value__dropdown", disabled: isReadOnly, options: options, onChange: onDataElementChange, value: selectedOption, darkMode: !applicationStore.layoutService
|
68
|
+
.TEMPORARY__isLightColorThemeEnabled }, void 0, false, { fileName: _jsxFileName, lineNumber: 213, columnNumber: 13 }, this), _jsxDEV("button", { className: "btn--dark btn--sm data-element-reference-editor__value-btn", onClick: visitData, tabIndex: -1, title: "See data element", children: _jsxDEV(LongArrowRightIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 230, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 224, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 209, columnNumber: 11 }, this), _jsxDEV("div", { className: "data-element-reference-editor__content__value", children: renderEmbeddedDataEditor(dataElementReferenceState.embeddedDataValueState, isReadOnly) }, void 0, false, { fileName: _jsxFileName, lineNumber: 233, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 208, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 194, columnNumber: 13 }, this));
|
68
69
|
});
|
69
70
|
export const ModelEmbeddedDataEditor = observer((props) => {
|
70
71
|
const { isReadOnly, modelStoreDataState, modelDataState } = props;
|
@@ -92,38 +93,38 @@ export const ModelEmbeddedDataEditor = observer((props) => {
|
|
92
93
|
modelStoreData_setDataModelModel(modelData, PackageableElementExplicitReference.create(val.value));
|
93
94
|
}
|
94
95
|
};
|
95
|
-
return (
|
96
|
+
return (_jsxDEV(_Fragment, { children: [!hideClass && (_jsxDEV("div", { className: "sample-data-generator__controller", children: [_jsxDEV("div", { className: "sample-data-generator__controller__icon", title: "class", children: _jsxDEV(PURE_ClassIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 293, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 289, columnNumber: 13 }, this), _jsxDEV(CustomSelectorInput, { ref: classSelectorRef, className: "sample-data-generator__controller__class-selector", options: classOptions, onChange: changeClass, value: selectedClassOption, darkMode: !applicationStore.layoutService
|
96
97
|
.TEMPORARY__isLightColorThemeEnabled, filterOption: elementFilterOption, formatOptionLabel: getPackageableElementOptionFormatter({
|
97
98
|
darkMode: !applicationStore.layoutService
|
98
99
|
.TEMPORARY__isLightColorThemeEnabled,
|
99
|
-
}) })] })), renderEmbeddedDataEditor(modelDataState.embeddedDataState, isReadOnly)] }));
|
100
|
+
}) }, void 0, false, { fileName: _jsxFileName, lineNumber: 295, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 287, columnNumber: 25 }, this)), renderEmbeddedDataEditor(modelDataState.embeddedDataState, isReadOnly)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 285, columnNumber: 13 }, this));
|
100
101
|
});
|
101
102
|
export const ModelStoreDataEditor = observer((props) => {
|
102
103
|
const { isReadOnly, modelStoreDataState } = props;
|
103
104
|
useApplicationNavigationContext(LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.EMBEDDED_DATA_MODEL_STORE_EDITOR);
|
104
|
-
return (
|
105
|
+
return (_jsxDEV("div", { className: "panel connection-editor", children: modelStoreDataState.modelDataStates.map((_modelDataState) => {
|
105
106
|
if (_modelDataState instanceof ModelEmbeddedDataState) {
|
106
|
-
return (
|
107
|
+
return (_jsxDEV(ModelEmbeddedDataEditor, { modelDataState: _modelDataState, modelStoreDataState: modelStoreDataState, isReadOnly: isReadOnly }, _modelDataState.uuid, false, { fileName: _jsxFileName, lineNumber: 334, columnNumber: 21 }, this));
|
107
108
|
}
|
108
|
-
return (
|
109
|
-
}) }));
|
109
|
+
return (_jsxDEV(UnsupportedEditorPanel, { text: 'Unsuppored Model Data Type', isReadOnly: false }, _modelDataState.uuid, false, { fileName: _jsxFileName, lineNumber: 344, columnNumber: 19 }, this));
|
110
|
+
}) }, void 0, false, { fileName: _jsxFileName, lineNumber: 330, columnNumber: 13 }, this));
|
110
111
|
});
|
111
112
|
export const EmbeddedDataEditor = observer((props) => {
|
112
113
|
const { embeddedDataEditorState, isReadOnly } = props;
|
113
|
-
return (
|
114
|
+
return (_jsxDEV("div", { className: "panel connection-editor", children: renderEmbeddedDataEditor(embeddedDataEditorState.embeddedDataState, isReadOnly) }, void 0, false, { fileName: _jsxFileName, lineNumber: 363, columnNumber: 13 }, this));
|
114
115
|
});
|
115
116
|
export function renderEmbeddedDataEditor(embeddedDataState, isReadOnly) {
|
116
117
|
if (embeddedDataState instanceof ExternalFormatDataState) {
|
117
|
-
return (
|
118
|
+
return (_jsxDEV(ExternalFormatDataEditor, { externalFormatDataState: embeddedDataState, isReadOnly: isReadOnly }, void 0, false, { fileName: _jsxFileName, lineNumber: 379, columnNumber: 13 }, this));
|
118
119
|
}
|
119
120
|
else if (embeddedDataState instanceof RelationalCSVDataState) {
|
120
|
-
return (
|
121
|
+
return (_jsxDEV(RelationalCSVDataEditor, { dataState: embeddedDataState, isReadOnly: isReadOnly }, void 0, false, { fileName: _jsxFileName, lineNumber: 386, columnNumber: 13 }, this));
|
121
122
|
}
|
122
123
|
else if (embeddedDataState instanceof DataElementReferenceState) {
|
123
|
-
return (
|
124
|
+
return (_jsxDEV(DataElementReferenceDataEditor, { dataElementReferenceState: embeddedDataState, isReadOnly: isReadOnly }, void 0, false, { fileName: _jsxFileName, lineNumber: 393, columnNumber: 13 }, this));
|
124
125
|
}
|
125
126
|
else if (embeddedDataState instanceof ModelStoreDataState) {
|
126
|
-
return (
|
127
|
+
return (_jsxDEV(ModelStoreDataEditor, { modelStoreDataState: embeddedDataState, isReadOnly: isReadOnly }, void 0, false, { fileName: _jsxFileName, lineNumber: 400, columnNumber: 13 }, this));
|
127
128
|
}
|
128
129
|
else {
|
129
130
|
const extraEmbeddedDataEditorRenderers = embeddedDataState.editorStore.pluginManager
|
@@ -135,7 +136,7 @@ export function renderEmbeddedDataEditor(embeddedDataState, isReadOnly) {
|
|
135
136
|
return editor;
|
136
137
|
}
|
137
138
|
}
|
138
|
-
return (
|
139
|
+
return (_jsxDEV("div", { className: "panel connection-editor", children: [_jsxDEV("div", { className: "data-editor__header", children: _jsxDEV("div", { className: "data-editor__header__title", children: [isReadOnly && (_jsxDEV("div", { className: "element-editor__header__lock", children: _jsxDEV(LockIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 428, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 426, columnNumber: 29 }, this)), _jsxDEV("div", { className: "data-editor__header__title__label", children: embeddedDataState.label() }, void 0, false, { fileName: _jsxFileName, lineNumber: 431, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 425, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 424, columnNumber: 9 }, this), _jsxDEV(PanelContent, { children: _jsxDEV(UnsupportedEditorPanel, { text: "Can't display this embedded data in form-mode", isReadOnly: isReadOnly }, void 0, false, { fileName: _jsxFileName, lineNumber: 437, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 436, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 422, columnNumber: 13 }, this));
|
139
140
|
}
|
140
141
|
}
|
141
142
|
//# sourceMappingURL=EmbeddedDataEditor.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmbeddedDataEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/data-editor/EmbeddedDataEditor.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"EmbeddedDataEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/data-editor/EmbeddedDataEditor.tsx"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EACL,aAAa,EACb,IAAI,EACJ,mBAAmB,EACnB,YAAY,EACZ,QAAQ,EACR,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,cAAc,EACd,aAAa,EACb,UAAU,EAEV,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EACL,iCAAiC,EACjC,0BAA0B,EAC1B,gCAAgC,GACjC,MAAM,mEAAmE,CAAC;AAE3E,OAAO,EAEL,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,uFAAuF,CAAC;AAC/F,OAAO,EACL,mCAAmC,GAGpC,M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AI,CACb,iBAAK,SAAS,EAAC,8BAA8B,YAC3C,QAAC,QAAQ,yFAAG,uFACR,CACP,EACD,iBAAK,SAAS,EAAC,mCAAmC,YAC/C,iBAAiB,CAAC,KAAK,EAAE,uFACtB,uFACF,sFACF,EACN,QAAC,YAAY,cACX,QAAC,sBAAsB,IACrB,IAAI,EAAC,+CAA+C,EACpD,UAAU,EAAE,UAAU,uFACtB,sFACW,uFACX,CACP,CAAC;IACJ,CAAC;AACH,CAAC"}
|
@@ -22,7 +22,7 @@ export interface TableOption {
|
|
22
22
|
export declare const RelationalCSVDataEditor: ((props: {
|
23
23
|
dataState: RelationalCSVDataState;
|
24
24
|
isReadOnly: boolean;
|
25
|
-
}) => import("react/jsx-runtime").JSX.Element) & {
|
25
|
+
}) => import("react/jsx-dev-runtime").JSX.Element) & {
|
26
26
|
displayName: string;
|
27
27
|
};
|
28
28
|
//# sourceMappingURL=RelationalCSVDataEditor.d.ts.map
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { jsxDEV as _jsxDEV, Fragment as _Fragment } from "react/jsx-dev-runtime";
|
2
|
+
const _jsxFileName = "/home/runner/work/legend-studio/legend-studio/packages/legend-application-studio/src/components/editor/editor-group/data-editor/RelationalCSVDataEditor.tsx";
|
2
3
|
/**
|
3
4
|
* Copyright (c) 2020-present, Goldman Sachs
|
4
5
|
*
|
@@ -82,20 +83,20 @@ const RelationalTableIdentifierEditor = observer((props) => {
|
|
82
83
|
}
|
83
84
|
closeModal();
|
84
85
|
};
|
85
|
-
return (
|
86
|
+
return (_jsxDEV(Dialog, { open: dataState.showTableIdentifierModal, onClose: closeModal, classes: { container: 'search-modal__container' }, PaperProps: { classes: { root: 'search-modal__inner-container' } }, children: _jsxDEV("form", { onSubmit: (event) => {
|
86
87
|
event.preventDefault();
|
87
88
|
handleSubmit();
|
88
89
|
closeModal();
|
89
|
-
}, className: "modal modal--dark search-modal", children: [
|
90
|
+
}, className: "modal modal--dark search-modal", children: [_jsxDEV("div", { className: "modal__title", children: existingDataTable
|
90
91
|
? 'Rename Relational Data Table'
|
91
|
-
: 'Add Relational Data Table' }),
|
92
|
-
.TEMPORARY__isLightColorThemeEnabled }) })] }),
|
92
|
+
: 'Add Relational Data Table' }, void 0, false, { fileName: _jsxFileName, lineNumber: 153, columnNumber: 11 }, this), _jsxDEV("div", { className: "relational-data-editor__identifier", children: resolvedDb && !existingDataTable ? (_jsxDEV(_Fragment, { children: [_jsxDEV("div", { className: "panel__content__form__section", children: [_jsxDEV("div", { className: "panel__content__form__section__header__label", children: "Table" }, void 0, false, { fileName: _jsxFileName, lineNumber: 162, columnNumber: 19 }, this), _jsxDEV("div", { className: "explorer__new-element-modal__driver", children: _jsxDEV(CustomSelectorInput, { className: "explorer__new-element-modal__driver__dropdown", options: tableOptions, onChange: onTableChange, value: selectedTable, isClearable: false, darkMode: !applicationStore.layoutService
|
93
|
+
.TEMPORARY__isLightColorThemeEnabled }, void 0, false, { fileName: _jsxFileName, lineNumber: 166, columnNumber: 21 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 165, columnNumber: 19 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 161, columnNumber: 17 }, this), _jsxDEV(PanelFormBooleanField, { isReadOnly: isReadOnly, value: includeBare, name: "Include Columns and First Row", prompt: "Will include table columns and first row using table definition", update: toggleIncludeBare }, void 0, false, { fileName: _jsxFileName, lineNumber: 179, columnNumber: 17 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 159, columnNumber: 50 }, this)) : (_jsxDEV(_Fragment, { children: [_jsxDEV("div", { className: "relational-data-editor__identifier__values", children: _jsxDEV("input", { className: "panel__content__form__section__input", disabled: isReadOnly, placeholder: "schemaName", value: schemaName, onChange: changeSchemaValue }, void 0, false, { fileName: _jsxFileName, lineNumber: 190, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 189, columnNumber: 17 }, this), _jsxDEV("div", { className: "relational-data-editor__identifier__values", children: _jsxDEV("input", { className: "relational-data-editor__identifier__values panel__content__form__section__input", disabled: isReadOnly, placeholder: "tableName", value: tableName, onChange: changeTableValue }, void 0, false, { fileName: _jsxFileName, lineNumber: 199, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 198, columnNumber: 17 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 187, columnNumber: 18 }, this)) }, void 0, false, { fileName: _jsxFileName, lineNumber: 158, columnNumber: 11 }, this), _jsxDEV("div", { className: "search-modal__actions", children: _jsxDEV("button", { className: "btn btn--dark", disabled: isDisabled || isReadOnly, children: existingDataTable ? 'Rename' : 'Add' }, void 0, false, { fileName: _jsxFileName, lineNumber: 211, columnNumber: 13 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 210, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 145, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 138, columnNumber: 13 }, this));
|
93
94
|
});
|
94
95
|
const RelationalCSVTableContextMenu = observer(forwardRef(function TestContainerContextMenu(props, ref) {
|
95
96
|
const { dataState, table } = props;
|
96
97
|
const rename = () => dataState.openIdentifierModal(table);
|
97
98
|
const remove = () => dataState.deleteTable(table);
|
98
|
-
return (
|
99
|
+
return (_jsxDEV(MenuContent, { ref: ref, children: [_jsxDEV(MenuContentItem, { onClick: rename, children: "Rename" }, void 0, false, { fileName: _jsxFileName, lineNumber: 237, columnNumber: 9 }, this), _jsxDEV(MenuContentItem, { onClick: remove, children: "Delete" }, void 0, false, { fileName: _jsxFileName, lineNumber: 238, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 235, columnNumber: 13 }, this));
|
99
100
|
}));
|
100
101
|
const ImportModal = observer((props) => {
|
101
102
|
const { isReadOnly, dataState } = props;
|
@@ -110,7 +111,7 @@ const ImportModal = observer((props) => {
|
|
110
111
|
const changeCSV = (event) => {
|
111
112
|
setCSV(event.target.value);
|
112
113
|
};
|
113
|
-
return (
|
114
|
+
return (_jsxDEV(Dialog, { open: dataState.showImportCSVModal, onClose: closeModal, classes: { container: 'search-modal__container' }, PaperProps: { classes: { root: 'search-modal__inner-container' } }, children: _jsxDEV(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: "relational-data-editor__import", children: [_jsxDEV(ModalHeader, { title: "Import CSV" }, void 0, false, { fileName: _jsxFileName, lineNumber: 273, columnNumber: 11 }, this), _jsxDEV(ModalBody, { children: _jsxDEV("textarea", { className: "relational-data-editor__import__textarea", spellCheck: false, placeholder: "CSV Text", value: csv, onChange: changeCSV, disabled: isReadOnly }, void 0, false, { fileName: _jsxFileName, lineNumber: 275, columnNumber: 13 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 274, columnNumber: 11 }, this), _jsxDEV(ModalFooter, { children: _jsxDEV(ModalFooterButton, { text: "Import", title: "Create new query", onClick: importVal }, void 0, false, { fileName: _jsxFileName, lineNumber: 285, columnNumber: 13 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 284, columnNumber: 11 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 267, columnNumber: 9 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 260, columnNumber: 13 }, this));
|
114
115
|
});
|
115
116
|
export const RelationalCSVDataEditor = observer((props) => {
|
116
117
|
const { dataState, isReadOnly } = props;
|
@@ -128,12 +129,12 @@ export const RelationalCSVDataEditor = observer((props) => {
|
|
128
129
|
const isTableActive = (table) => currentTableState?.table === table;
|
129
130
|
const showCSVModal = () => dataState.setShowImportCsvModal(true);
|
130
131
|
useApplicationNavigationContext(LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.EMBEDDED_DATA_RELATIONAL_EDITOR);
|
131
|
-
return (
|
132
|
+
return (_jsxDEV(ResizablePanelGroup, { orientation: "vertical", children: [_jsxDEV(ResizablePanel, { minSize: 30, size: 300, children: _jsxDEV("div", { className: "relational-data-editor", children: [_jsxDEV("div", { className: "relational-data-editor__header", children: [_jsxDEV("div", { className: "relational-data-editor__header__title", children: _jsxDEV("div", { className: "relational-data-editor__header__title__label", children: "Relational Table Explorer" }, void 0, false, { fileName: _jsxFileName, lineNumber: 327, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 326, columnNumber: 15 }, this), _jsxDEV("div", { className: "relational-data-editor__header__actions", children: [_jsxDEV("button", { className: "schema-set-panel__header__action", onClick: showCSVModal, disabled: isReadOnly, tabIndex: -1, title: "Import CSV", children: _jsxDEV(UploadIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 339, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 332, columnNumber: 17 }, this), _jsxDEV("button", { className: "relational-data-editor__header__action", onClick: openIdentifierModal, disabled: isReadOnly, tabIndex: -1, title: "Add Relational Table Data", children: _jsxDEV(PlusIcon, {}, void 0, false, { fileName: _jsxFileName, lineNumber: 348, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 341, columnNumber: 17 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 331, columnNumber: 15 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 325, columnNumber: 13 }, this), _jsxDEV(MenuContent, { className: "relational-data-editor__content", children: dataState.embeddedData.tables.map((_table) => (_jsxDEV(ContextMenu, { className: clsx('relational-data-editor-explorer__item', {
|
132
133
|
'relational-data-editor-explorer__item--selected-from-context-menu': !isTableActive(_table) &&
|
133
134
|
selectedTableFromContextMenu ===
|
134
135
|
currentTableState?.table,
|
135
136
|
}, {
|
136
137
|
'relational-data-editor-explorer__item--active': isTableActive(_table),
|
137
|
-
}), disabled: isReadOnly, content:
|
138
|
+
}), disabled: isReadOnly, content: _jsxDEV(RelationalCSVTableContextMenu, { dataState: dataState, table: _table }, void 0, false, { fileName: _jsxFileName, lineNumber: 371, columnNumber: 30 }, this), menuProps: { elevation: 7 }, onOpen: () => onContextMenuOpen(_table), onClose: () => onContextMenuClose(), children: _jsxDEV("button", { className: clsx('relational-data-editor-explorer__item__label'), onClick: () => changeSelectedTable(_table), tabIndex: -1, children: _jsxDEV("div", { className: "relational-data-editor-explorer__item__label__text", children: `${_table.schema}.${_table.table}` }, void 0, false, { fileName: _jsxFileName, lineNumber: 388, columnNumber: 23 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 381, columnNumber: 21 }, this) }, `${_table.table}.${_table.schema}`, false, { fileName: _jsxFileName, lineNumber: 354, columnNumber: 54 }, this))) }, void 0, false, { fileName: _jsxFileName, lineNumber: 352, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 324, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 323, columnNumber: 9 }, this), _jsxDEV(ResizablePanelSplitter, { children: _jsxDEV(ResizablePanelSplitterLine, { color: "var(--color-dark-grey-200)" }, void 0, false, { fileName: _jsxFileName, lineNumber: 399, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 398, columnNumber: 9 }, this), _jsxDEV(ResizablePanel, { children: _jsxDEV("div", { className: "relational-data-editor", children: [_jsxDEV("div", { className: "relational-data-editor__header", children: _jsxDEV("div", { className: "relational-data-editor__header__title", children: _jsxDEV("div", { className: "relational-data-editor__header__title__label", children: "CSV Values" }, void 0, false, { fileName: _jsxFileName, lineNumber: 405, columnNumber: 17 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 404, columnNumber: 15 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 403, columnNumber: 13 }, this), _jsxDEV("div", { className: "relational-data-editor__content", children: [currentTableState && (_jsxDEV("div", { className: "relational-data-editor__values", children: _jsxDEV(CodeEditor, { inputValue: currentTableState.table.values, updateInput: updateTableValues, isReadOnly: isReadOnly, language: CODE_EDITOR_LANGUAGE.TEXT }, void 0, false, { fileName: _jsxFileName, lineNumber: 413, columnNumber: 19 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 411, columnNumber: 38 }, this)), !currentTableState && (_jsxDEV(BlankPanelPlaceholder, { onClick: () => openIdentifierModal(), text: "Add a relational data table", clickActionType: "add", tooltipText: "Click to add new relational data table" }, void 0, false, { fileName: _jsxFileName, lineNumber: 421, columnNumber: 39 }, this)), dataState.showTableIdentifierModal && (_jsxDEV(RelationalTableIdentifierEditor, { dataState: dataState, isReadOnly: isReadOnly }, void 0, false, { fileName: _jsxFileName, lineNumber: 429, columnNumber: 55 }, this)), dataState.showImportCSVModal && (_jsxDEV(ImportModal, { dataState: dataState, isReadOnly: isReadOnly }, void 0, false, { fileName: _jsxFileName, lineNumber: 435, columnNumber: 49 }, this))] }, void 0, true, { fileName: _jsxFileName, lineNumber: 410, columnNumber: 13 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 402, columnNumber: 11 }, this) }, void 0, false, { fileName: _jsxFileName, lineNumber: 401, columnNumber: 9 }, this)] }, void 0, true, { fileName: _jsxFileName, lineNumber: 321, columnNumber: 13 }, this));
|
138
139
|
});
|
139
140
|
//# sourceMappingURL=RelationalCSVDataEditor.js.map
|